2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
835 ENABLE_EXPENSIVE_CHECKS
845 LLVM_ENUM_ASM_PRINTERS
846 LLVM_ENUM_ASM_PARSERS
851 ENABLE_LLVMC_DYNAMIC_PLUGINS
898 CONVENIENCE_LTDL_TRUE
899 CONVENIENCE_LTDL_FALSE
940 ENABLE_VISIBILITY_INLINES_HIDDEN
946 ac_precious_vars='build_alias
960 ac_subdirs_all='projects/sample
962 projects/llvm-stacker
969 projects/llvm-poolalloc
971 projects/llvm-kernel'
973 # Initialize some variables set by options.
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name=s,x,x,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1010 infodir='${datarootdir}/info'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1080 eval enable_$ac_feature=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1099 eval enable_$ac_feature=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package| sed 's/-/_/g'`
1296 eval with_$ac_package=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/-/_/g'`
1305 eval with_$ac_package=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 --target=TARGET configure for building compilers for TARGET [HOST]
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --enable-optimized Compile with optimizations enabled (default is NO)
1547 --enable-profiling Compile with profiling enabled (default is NO)
1548 --enable-assertions Compile with assertion checks enabled (default is
1550 --enable-expensive-checks
1551 Compile with expensive debug checks enabled (default
1553 --enable-debug-runtime Build runtime libs with debug symbols (default is
1555 --enable-jit Enable Just In Time Compiling (default is YES)
1556 --enable-doxygen Build doxygen documentation (default is NO)
1557 --enable-threads Use threads if available (default is YES)
1558 --enable-pic Build LLVM with Position Independent Code (default
1560 --enable-targets Build specific host targets:
1561 all,host-only,{target-name} (default=all)
1562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
1566 --enable-libffi Check for the presence of libffi (default is YES)
1567 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1569 --enable-llvmc-dynamic-plugins
1570 Enable dynamic LLVMC plugins (default is YES)
1571 --enable-ltdl-install install libltdl
1572 --enable-shared[=PKGS] build shared libraries
1574 --enable-static[=PKGS] build static libraries
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1586 --with-llvmgcc Specify location of llvm-gcc driver (default
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1590 --with-extra-options Specify additional options to compile LLVM with
1591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1593 --with-binutils-include Specify path to binutils/include/ containing
1594 plugin-api.h file for gold plugin.
1595 --with-tclinclude directory where tcl headers are
1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-pic try to use only PIC/non-PIC objects [default=use
1599 --with-tags[=TAGS] include additional configurations [automatic]
1600 --with-udis86=<path> Use udis86 external x86 disassembler library
1601 --with-oprofile=<prefix>
1602 Tell OProfile >= 0.9.4 how to symbolize JIT output
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
1614 CXXCPP C++ preprocessor
1615 F77 Fortran 77 compiler command
1616 FFLAGS Fortran 77 compiler flags
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1621 Report bugs to <llvmbugs@cs.uiuc.edu>.
1626 if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629 test -d "$ac_dir" || continue
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1649 .) # We are building in place.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1673 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1682 llvm configure 2.6svn
1683 generated by GNU Autoconf 2.60
1685 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1686 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1690 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1694 cat >config.log <<_ACEOF
1695 This file contains any messages produced by compilers while
1696 running configure, to aid debugging if configure makes a mistake.
1698 It was created by llvm $as_me 2.6svn, which was
1699 generated by GNU Autoconf 2.60. Invocation command line was
1711 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1720 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1723 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1724 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 echo "PATH: $as_dir"
1751 # Keep a trace of the command line.
1752 # Strip out --no-create and --no-recursion so they do not pile up.
1753 # Strip out --silent because we don't want to record it for future runs.
1754 # Also quote any args containing shell meta-characters.
1755 # Make two passes to allow for proper duplicate-argument suppression.
1759 ac_must_keep_next=false
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1770 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1776 if test $ac_must_keep_next = true; then
1777 ac_must_keep_next=false # Got value, back to normal.
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 -* ) ac_must_keep_next=true ;;
1791 ac_configure_args="$ac_configure_args '$ac_arg'"
1796 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1797 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799 # When interrupted or exit'd, cleanup temporary files, and complete
1800 # config.log. We remove comments because anyway the quotes in there
1801 # would cause problems or look ugly.
1802 # WARNING: Use '\'' to represent an apostrophe within the trap.
1803 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1804 trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1810 ## ---------------- ##
1811 ## Cache variables. ##
1812 ## ---------------- ##
1815 # The following way of writing the cache mishandles newlines in values,
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1822 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1823 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 _ | IFS | as_nl) ;; #(
1827 *) $as_unset $ac_var ;;
1832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
1835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1847 ## ----------------- ##
1848 ## Output variables. ##
1849 ## ----------------- ##
1852 for ac_var in $ac_subst_vars
1854 eval ac_val=\$$ac_var
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 echo "$ac_var='\''$ac_val'\''"
1862 if test -n "$ac_subst_files"; then
1864 ## ------------------- ##
1865 ## File substitutions. ##
1866 ## ------------------- ##
1869 for ac_var in $ac_subst_files
1871 eval ac_val=\$$ac_var
1873 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875 echo "$ac_var='\''$ac_val'\''"
1880 if test -s confdefs.h; then
1890 test "$ac_signal" != 0 &&
1891 echo "$as_me: caught signal $ac_signal"
1892 echo "$as_me: exit $exit_status"
1894 rm -f core *.core core.conftest.* &&
1895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 for ac_signal in 1 2 13 15; do
1899 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1904 rm -f -r conftest* confdefs.h
1906 # Predefined preprocessor variables.
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_STRING "$PACKAGE_STRING"
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 # Let the site file select an alternate cache file if it wants to.
1934 # Prefer explicitly selected file to automatically selected ones.
1935 if test -n "$CONFIG_SITE"; then
1936 set x "$CONFIG_SITE"
1937 elif test "x$prefix" != xNONE; then
1938 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1940 set x "$ac_default_prefix/share/config.site" \
1941 "$ac_default_prefix/etc/config.site"
1946 if test -r "$ac_site_file"; then
1947 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948 echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1954 if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
1958 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959 echo "$as_me: loading cache $cache_file" >&6;}
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
1966 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967 echo "$as_me: creating cache $cache_file" >&6;}
1971 # Check that the precious variables saved in the cache have kept the same
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
1979 case $ac_old_set,$ac_new_set in
1981 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1985 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1986 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
1991 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1992 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1993 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1994 echo "$as_me: former value: $ac_old_val" >&2;}
1995 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1996 echo "$as_me: current value: $ac_new_val" >&2;}
1997 ac_cache_corrupted=:
2000 # Pass precious variables to config.status.
2001 if test "$ac_new_set" = set; then
2003 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 *) ac_arg=$ac_var=$ac_new_val ;;
2006 case " $ac_configure_args " in
2007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2008 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012 if $ac_cache_corrupted; then
2013 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2014 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2015 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2016 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2017 { (exit 1); exit 1; }; }
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2061 for ac_dir in autoconf "$srcdir"/autoconf; do
2062 if test -f "$ac_dir/install-sh"; then
2064 ac_install_sh="$ac_aux_dir/install-sh -c"
2066 elif test -f "$ac_dir/install.sh"; then
2068 ac_install_sh="$ac_aux_dir/install.sh -c"
2070 elif test -f "$ac_dir/shtool"; then
2072 ac_install_sh="$ac_aux_dir/shtool install -c"
2076 if test -z "$ac_aux_dir"; then
2077 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2078 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2079 { (exit 1); exit 1; }; }
2082 # These three variables are undocumented and unsupported,
2083 # and are intended to be withdrawn in a future Autoconf release.
2084 # They can cause serious problems if a builder's source tree is in a directory
2085 # whose full name contains unusual characters.
2086 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2092 if test ${srcdir} != "." ; then
2093 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2094 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2095 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2096 { (exit 1); exit 1; }; }
2100 for i in `ls ${srcdir}/projects`
2102 if test -d ${srcdir}/projects/${i} ; then
2105 sample) subdirs="$subdirs projects/sample"
2107 privbracket) subdirs="$subdirs projects/privbracket"
2109 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2111 # llvm-test is the old name of the test-suite, kept here for backwards
2113 llvm-test) subdirs="$subdirs projects/llvm-test"
2115 test-suite) subdirs="$subdirs projects/test-suite"
2117 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2119 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2121 llvm-java) subdirs="$subdirs projects/llvm-java"
2123 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2125 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2127 poolalloc) subdirs="$subdirs projects/poolalloc"
2129 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2132 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2133 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2140 # Make sure we can run config.sub.
2141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2144 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: checking build system type" >&5
2147 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 ac_build_alias=$build_alias
2152 test "x$ac_build_alias" = x &&
2153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154 test "x$ac_build_alias" = x &&
2155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
2158 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165 echo "${ECHO_T}$ac_cv_build" >&6; }
2166 case $ac_cv_build in
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169 echo "$as_me: error: invalid value of canonical build" >&2;}
2170 { (exit 1); exit 1; }; };;
2173 ac_save_IFS=$IFS; IFS='-'
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2186 { echo "$as_me:$LINENO: checking host system type" >&5
2187 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_host+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 if test "x$host_alias" = x; then
2192 ac_cv_host=$ac_cv_build
2194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2201 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206 echo "$as_me: error: invalid value of canonical host" >&2;}
2207 { (exit 1); exit 1; }; };;
2210 ac_save_IFS=$IFS; IFS='-'
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2220 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2223 { echo "$as_me:$LINENO: checking target system type" >&5
2224 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2225 if test "${ac_cv_target+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test "x$target_alias" = x; then
2229 ac_cv_target=$ac_cv_host
2231 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2233 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2234 { (exit 1); exit 1; }; }
2238 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2239 echo "${ECHO_T}$ac_cv_target" >&6; }
2240 case $ac_cv_target in
2242 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2243 echo "$as_me: error: invalid value of canonical target" >&2;}
2244 { (exit 1); exit 1; }; };;
2246 target=$ac_cv_target
2247 ac_save_IFS=$IFS; IFS='-'
2253 # Remember, the first character of IFS is used to create $*,
2254 # except with old shells:
2257 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2260 # The aliases save the names the user supplied, while $host etc.
2261 # will get canonicalized.
2262 test -n "$target_alias" &&
2263 test "$program_prefix$program_suffix$program_transform_name" = \
2265 program_prefix=${target_alias}-
2267 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2268 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2269 if test "${llvm_cv_os_type+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="AIX"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="IRIX"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Cygwin"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,-all_load"
2290 llvm_cv_no_link_all_option="-Wl,-noall_load"
2291 llvm_cv_os_type="Darwin"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="FreeBSD"
2297 llvm_cv_platform_type="Unix" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="OpenBSD"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="NetBSD"
2307 llvm_cv_platform_type="Unix" ;;
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="DragonFly"
2312 llvm_cv_platform_type="Unix" ;;
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="HP-UX"
2317 llvm_cv_platform_type="Unix" ;;
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="Interix"
2322 llvm_cv_platform_type="Unix" ;;
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="Linux"
2327 llvm_cv_platform_type="Unix" ;;
2329 llvm_cv_link_all_option="-Wl,-z,allextract"
2330 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2331 llvm_cv_os_type="SunOS"
2332 llvm_cv_platform_type="Unix" ;;
2334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336 llvm_cv_os_type="Win32"
2337 llvm_cv_platform_type="Win32" ;;
2339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2341 llvm_cv_os_type="MingW"
2342 llvm_cv_platform_type="Win32" ;;
2344 llvm_cv_link_all_option=""
2345 llvm_cv_no_link_all_option=""
2346 llvm_cv_os_type="Unknown"
2347 llvm_cv_platform_type="Unknown" ;;
2350 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2351 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2353 if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
2362 LINKALL=$llvm_cv_link_all_option
2364 NOLINKALL=$llvm_cv_no_link_all_option
2367 case $llvm_cv_platform_type in
2370 cat >>confdefs.h <<\_ACEOF
2371 #define LLVM_ON_UNIX 1
2381 cat >>confdefs.h <<\_ACEOF
2382 #define LLVM_ON_WIN32 1
2392 { echo "$as_me:$LINENO: checking target architecture" >&5
2393 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2394 if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 i?86-*) llvm_cv_target_arch="x86" ;;
2399 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2400 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2401 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2402 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2403 ia64-*) llvm_cv_target_arch="IA64" ;;
2404 arm*-*) llvm_cv_target_arch="ARM" ;;
2405 mips-*) llvm_cv_target_arch="Mips" ;;
2406 pic16-*) llvm_cv_target_arch="PIC16" ;;
2407 xcore-*) llvm_cv_target_arch="XCore" ;;
2408 msp430-*) llvm_cv_target_arch="MSP430" ;;
2409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2410 *) llvm_cv_target_arch="Unknown" ;;
2413 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2414 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2416 if test "$llvm_cv_target_arch" = "Unknown" ; then
2417 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2418 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2421 # Determine the LLVM native architecture for the target
2422 case "$llvm_cv_target_arch" in
2423 x86) LLVM_NATIVE_ARCH="X86" ;;
2424 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2425 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2428 ARCH=$llvm_cv_target_arch
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 if test -n "$ac_tool_prefix"; then
2437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC="$CC" # Let the user override the test.
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 if test -n "$CC"; then
2466 { echo "$as_me:$LINENO: result: $CC" >&5
2467 echo "${ECHO_T}$CC" >&6; }
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2475 if test -z "$ac_cv_prog_CC"; then
2477 # Extract the first word of "gcc", so it can be a program name with args.
2478 set dummy gcc; ac_word=$2
2479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_ac_ct_CC="gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2505 if test -n "$ac_ct_CC"; then
2506 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2507 echo "${ECHO_T}$ac_ct_CC" >&6; }
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2513 if test "x$ac_ct_CC" = x; then
2516 case $cross_compiling:$ac_tool_warned in
2518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&5
2521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2524 ac_tool_warned=yes ;;
2532 if test -z "$CC"; then
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_CC="${ac_tool_prefix}cc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2573 if test -z "$CC"; then
2574 # Extract the first word of "cc", so it can be a program name with args.
2575 set dummy cc; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2593 ac_prog_rejected=yes
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 if test $ac_prog_rejected = yes; then
2605 # We found a bogon in the path, so make sure we never use it.
2606 set dummy $ac_cv_prog_CC
2608 if test $# != 0; then
2609 # We chose a different compiler from the bogus one.
2610 # However, it has the same basename, so the bogon will be chosen
2611 # first if we set CC to just the basename; use the full file name.
2613 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2619 if test -n "$CC"; then
2620 { echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6; }
2623 { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 if test -n "$CC"; then
2662 { echo "$as_me:$LINENO: result: $CC" >&5
2663 echo "${ECHO_T}$CC" >&6; }
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$CC" && break
2673 if test -z "$CC"; then
2675 for ac_prog in cl.exe
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 if test -n "$ac_ct_CC"; then
2685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_ac_ct_CC="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705 if test -n "$ac_ct_CC"; then
2706 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2707 echo "${ECHO_T}$ac_ct_CC" >&6; }
2709 { echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6; }
2714 test -n "$ac_ct_CC" && break
2717 if test "x$ac_ct_CC" = x; then
2720 case $cross_compiling:$ac_tool_warned in
2722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2723 whose name does not start with the host triplet. If you think this
2724 configuration is useful to you, please write to autoconf@gnu.org." >&5
2725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet. If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2728 ac_tool_warned=yes ;;
2737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&5
2739 echo "$as_me: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details." >&2;}
2741 { (exit 1); exit 1; }; }
2743 # Provide some information about the compiler.
2744 echo "$as_me:$LINENO: checking for C compiler version" >&5
2745 ac_compiler=`set X $ac_compile; echo $2`
2746 { (ac_try="$ac_compiler --version >&5"
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler --version >&5") 2>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756 { (ac_try="$ac_compiler -v >&5"
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compiler -v >&5") 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }
2766 { (ac_try="$ac_compiler -V >&5"
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_compiler -V >&5") 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 ac_clean_files_save=$ac_clean_files
2793 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2794 # Try to create an executable without -o first, disregard a.out.
2795 # It will help us diagnose broken compilers, and finding out an intuition
2797 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2798 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2799 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801 # List of possible output files, starting from the most likely.
2802 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2803 # only as a last resort. b.out is created by i960 compilers.
2804 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2806 # The IRIX 6 linker writes into existing files which may not be
2807 # executable, retaining their permissions. Remove them first so a
2808 # subsequent execution test works.
2810 for ac_file in $ac_files
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2814 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819 if { (ac_try="$ac_link_default"
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_link_default") 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2832 # so that the user can short-circuit this test for compilers unknown to
2834 for ac_file in $ac_files
2836 test -f "$ac_file" || continue
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2841 # We found the default executable, but exeext='' is most
2845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 # We set ac_cv_exeext here because the later test for it is not
2850 # safe: cross compilers may not add the suffix if given an `-o'
2851 # argument, so we may need to know it at that point already.
2852 # Even if this section looks crufty: it has the advantage of
2859 test "$ac_cv_exeext" = no && ac_cv_exeext=
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: C compiler cannot create executables
2868 See \`config.log' for more details." >&2;}
2869 { (exit 77); exit 77; }; }
2872 ac_exeext=$ac_cv_exeext
2873 { echo "$as_me:$LINENO: result: $ac_file" >&5
2874 echo "${ECHO_T}$ac_file" >&6; }
2876 # Check that the compiler produces executables we can run. If not, either
2877 # the compiler is broken, or we cross compile.
2878 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2881 # If not cross compiling, check that we can run a simple program.
2882 if test "$cross_compiling" != yes; then
2883 if { ac_try='./$ac_file'
2884 { (case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_try") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2895 if test "$cross_compiling" = maybe; then
2898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2899 If you meant to cross compile, use \`--host'.
2900 See \`config.log' for more details." >&5
2901 echo "$as_me: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2908 { echo "$as_me:$LINENO: result: yes" >&5
2909 echo "${ECHO_T}yes" >&6; }
2911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2912 ac_clean_files=$ac_clean_files_save
2913 # Check that the compiler produces executables we can run. If not, either
2914 # the compiler is broken, or we cross compile.
2915 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2917 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2918 echo "${ECHO_T}$cross_compiling" >&6; }
2920 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2922 if { (ac_try="$ac_link"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_link") 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; then
2932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2934 # work properly (i.e., refer to `conftest.exe'), while it won't with
2936 for ac_file in conftest.exe conftest conftest.*; do
2937 test -f "$ac_file" || continue
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
2953 rm -f conftest$ac_cv_exeext
2954 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2955 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2957 rm -f conftest.$ac_ext
2958 EXEEXT=$ac_cv_exeext
2960 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2961 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2962 if test "${ac_cv_objext+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2980 rm -f conftest.o conftest.obj
2981 if { (ac_try="$ac_compile"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 for ac_file in conftest.o conftest.obj conftest.*; do
2992 test -f "$ac_file" || continue;
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2995 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3013 echo "${ECHO_T}$ac_cv_objext" >&6; }
3014 OBJEXT=$ac_cv_objext
3016 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3085 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3086 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3087 GCC=`test $ac_compiler_gnu = yes && echo yes`
3088 ac_test_CFLAGS=${CFLAGS+set}
3089 ac_save_CFLAGS=$CFLAGS
3090 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3091 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_cc_g+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 ac_save_c_werror_flag=$ac_c_werror_flag
3096 ac_c_werror_flag=yes
3099 cat >conftest.$ac_ext <<_ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_compile") 2>conftest.er1
3123 grep -v '^ *+' conftest.er1 >conftest.err
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3184 { (case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_try") 2>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; } &&
3193 { ac_try='test -s conftest.$ac_objext'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240 { (case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_try") 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_try") 2>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_c_werror_flag=$ac_save_c_werror_flag
3276 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3277 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3278 if test "$ac_test_CFLAGS" = set; then
3279 CFLAGS=$ac_save_CFLAGS
3280 elif test $ac_cv_prog_cc_g = yes; then
3281 if test "$GCC" = yes; then
3287 if test "$GCC" = yes; then
3293 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3294 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3295 if test "${ac_cv_prog_cc_c89+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 ac_cv_prog_cc_c89=no
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3308 #include <sys/types.h>
3309 #include <sys/stat.h>
3310 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3311 struct buf { int x; };
3312 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3313 static char *e (p, i)
3319 static char *f (char * (*g) (char **, int), char **p, ...)
3324 s = g (p, va_arg (v,int));
3329 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3330 function prototypes and stuff, but not '\xHH' hex character constants.
3331 These don't provoke an error unfortunately, instead are silently treated
3332 as 'x'. The following induces an error, until -std is added to get
3333 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3334 array size at least. It's necessary to write '\x00'==0 to get something
3335 that's true only with -std. */
3336 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3339 inside strings and character constants. */
3341 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343 int test (int i, double x);
3344 struct s1 {int (*f) (int a);};
3345 struct s2 {int (*f) (double a);};
3346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3358 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360 CC="$ac_save_CC $ac_arg"
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3376 { (case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_try") 2>&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_try") 2>&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_cv_prog_cc_c89=$ac_arg
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3403 rm -f core conftest.err conftest.$ac_objext
3404 test "x$ac_cv_prog_cc_c89" != "xno" && break
3406 rm -f conftest.$ac_ext
3411 case "x$ac_cv_prog_cc_c89" in
3413 { echo "$as_me:$LINENO: result: none needed" >&5
3414 echo "${ECHO_T}none needed" >&6; } ;;
3416 { echo "$as_me:$LINENO: result: unsupported" >&5
3417 echo "${ECHO_T}unsupported" >&6; } ;;
3419 CC="$CC $ac_cv_prog_cc_c89"
3420 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3421 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3438 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3439 # On Suns, sometimes $CPP names a directory.
3440 if test -n "$CPP" && test -d "$CPP"; then
3443 if test -z "$CPP"; then
3444 if test "${ac_cv_prog_CPP+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 # Double quotes because CPP needs to be expanded
3448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3451 for ac_c_preproc_warn_flag in '' yes
3453 # Use a header file that comes with gcc, so configuring glibc
3454 # with a fresh cross-compiler works.
3455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456 # <limits.h> exists even on freestanding compilers.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3466 # include <limits.h>
3468 # include <assert.h>
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494 if test -z "$ac_cpp_err"; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1 >conftest.err
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3538 if test -z "$ac_cpp_err"; then
3539 # Broken: success on invalid input.
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 # Passes both tests.
3550 rm -f conftest.err conftest.$ac_ext
3553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3554 rm -f conftest.err conftest.$ac_ext
3555 if $ac_preproc_ok; then
3567 { echo "$as_me:$LINENO: result: $CPP" >&5
3568 echo "${ECHO_T}$CPP" >&6; }
3570 for ac_c_preproc_warn_flag in '' yes
3572 # Use a header file that comes with gcc, so configuring glibc
3573 # with a fresh cross-compiler works.
3574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3575 # <limits.h> exists even on freestanding compilers.
3576 # On the NeXT, cc -E runs the code through the compiler's parser,
3577 # not just through cpp. "Syntax error" is here to catch this case.
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3585 # include <limits.h>
3587 # include <assert.h>
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 if test -z "$ac_cpp_err"; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Broken: fails on valid input.
3623 rm -f conftest.err conftest.$ac_ext
3625 # OK, works on sane cases. Now check whether nonexistent headers
3626 # can be detected and how.
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 #include <ac_nonexistent.h>
3635 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } >/dev/null; then
3648 if test -s conftest.err; then
3649 ac_cpp_err=$ac_c_preproc_warn_flag
3650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3657 if test -z "$ac_cpp_err"; then
3658 # Broken: success on invalid input.
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 # Passes both tests.
3669 rm -f conftest.err conftest.$ac_ext
3672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673 rm -f conftest.err conftest.$ac_ext
3674 if $ac_preproc_ok; then
3677 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&5
3679 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3680 See \`config.log' for more details." >&2;}
3681 { (exit 1); exit 1; }; }
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3692 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3693 if test "${ac_cv_path_GREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 # Extract the first word of "grep ggrep" to use in msg output
3697 if test -z "$GREP"; then
3698 set dummy grep ggrep; ac_prog_name=$2
3699 if test "${ac_cv_path_GREP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 ac_path_GREP_found=false
3703 # Loop through the user's path and test for each of PROGNAME-LIST
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708 test -z "$as_dir" && as_dir=.
3709 for ac_prog in grep ggrep; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3712 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3713 # Check for GNU ac_path_GREP and select it if it is found.
3714 # Check for GNU $ac_path_GREP
3715 case `"$ac_path_GREP" --version 2>&1` in
3717 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3720 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3723 cat "conftest.in" "conftest.in" >"conftest.tmp"
3724 mv "conftest.tmp" "conftest.in"
3725 cp "conftest.in" "conftest.nl"
3726 echo 'GREP' >> "conftest.nl"
3727 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3729 ac_count=`expr $ac_count + 1`
3730 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3731 # Best one so far, save it but keep looking for a better one
3732 ac_cv_path_GREP="$ac_path_GREP"
3733 ac_path_GREP_max=$ac_count
3735 # 10*(2^10) chars as input seems more than enough
3736 test $ac_count -gt 10 && break
3738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 $ac_path_GREP_found && break 3
3752 GREP="$ac_cv_path_GREP"
3753 if test -z "$GREP"; then
3754 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3755 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3756 { (exit 1); exit 1; }; }
3760 ac_cv_path_GREP=$GREP
3765 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3766 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3767 GREP="$ac_cv_path_GREP"
3770 { echo "$as_me:$LINENO: checking for egrep" >&5
3771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3772 if test "${ac_cv_path_EGREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3776 then ac_cv_path_EGREP="$GREP -E"
3778 # Extract the first word of "egrep" to use in msg output
3779 if test -z "$EGREP"; then
3780 set dummy egrep; ac_prog_name=$2
3781 if test "${ac_cv_path_EGREP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 ac_path_EGREP_found=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 test -z "$as_dir" && as_dir=.
3791 for ac_prog in egrep; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3794 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3795 # Check for GNU ac_path_EGREP and select it if it is found.
3796 # Check for GNU $ac_path_EGREP
3797 case `"$ac_path_EGREP" --version 2>&1` in
3799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3802 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805 cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 mv "conftest.tmp" "conftest.in"
3807 cp "conftest.in" "conftest.nl"
3808 echo 'EGREP' >> "conftest.nl"
3809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811 ac_count=`expr $ac_count + 1`
3812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_EGREP="$ac_path_EGREP"
3815 ac_path_EGREP_max=$ac_count
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 $ac_path_EGREP_found && break 3
3834 EGREP="$ac_cv_path_EGREP"
3835 if test -z "$EGREP"; then
3836 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3838 { (exit 1); exit 1; }; }
3842 ac_cv_path_EGREP=$EGREP
3848 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3849 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3850 EGREP="$ac_cv_path_EGREP"
3853 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3855 if test "${ac_cv_header_stdc+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3892 { (case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_try") 2>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; } &&
3901 { ac_try='test -s conftest.$ac_objext'
3902 { (case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_try") 2>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3911 ac_cv_header_stdc=yes
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 ac_cv_header_stdc=no
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 if test $ac_cv_header_stdc = yes; then
3922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933 $EGREP "memchr" >/dev/null 2>&1; then
3936 ac_cv_header_stdc=no
3942 if test $ac_cv_header_stdc = yes; then
3943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3954 $EGREP "free" >/dev/null 2>&1; then
3957 ac_cv_header_stdc=no
3963 if test $ac_cv_header_stdc = yes; then
3964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3965 if test "$cross_compiling" = yes; then
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3976 #if ((' ' & 0x0FF) == 0x020)
3977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980 # define ISLOWER(c) \
3981 (('a' <= (c) && (c) <= 'i') \
3982 || ('j' <= (c) && (c) <= 'r') \
3983 || ('s' <= (c) && (c) <= 'z'))
3984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992 for (i = 0; i < 256; i++)
3993 if (XOR (islower (i), ISLOWER (i))
3994 || toupper (i) != TOUPPER (i))
3999 rm -f conftest$ac_exeext
4000 if { (ac_try="$ac_link"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_link") 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4010 { (case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_try") 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4021 echo "$as_me: program exited with status $ac_status" >&5
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4026 ac_cv_header_stdc=no
4028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4036 if test $ac_cv_header_stdc = yes; then
4038 cat >>confdefs.h <<\_ACEOF
4039 #define STDC_HEADERS 1
4044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4055 inttypes.h stdint.h unistd.h
4057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 $ac_includes_default
4071 #include <$ac_header>
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_try") 2>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 eval "$as_ac_Header=yes"
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 eval "$as_ac_Header=no"
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_res=`eval echo '${'$as_ac_Header'}'`
4118 { echo "$as_me:$LINENO: result: $ac_res" >&5
4119 echo "${ECHO_T}$ac_res" >&6; }
4120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121 cat >>confdefs.h <<_ACEOF
4122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4131 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4132 if test "${ac_cv_c_bigendian+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 # See if sys/param.h defines the BYTE_ORDER macro.
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <sys/types.h>
4143 #include <sys/param.h>
4148 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4156 rm -f conftest.$ac_objext
4157 if { (ac_try="$ac_compile"
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_compile") 2>conftest.er1
4165 grep -v '^ *+' conftest.er1 >conftest.err
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4171 { (case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4190 # It does; now see whether it defined to BIG_ENDIAN or not.
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 #include <sys/types.h>
4198 #include <sys/param.h>
4203 #if BYTE_ORDER != BIG_ENDIAN
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_c_bigendian=yes
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_cv_c_bigendian=no
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 # It does not; compile a test program.
4259 if test "$cross_compiling" = yes; then
4260 # try to guess the endianness by grepping values into an object file
4261 ac_cv_c_bigendian=unknown
4262 cat >conftest.$ac_ext <<_ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4269 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4270 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4271 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4272 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4273 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4277 _ascii (); _ebcdic ();
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_compile") 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4317 ac_cv_c_bigendian=yes
4319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4320 if test "$ac_cv_c_bigendian" = unknown; then
4321 ac_cv_c_bigendian=no
4323 # finding both strings is unlikely to happen, but who knows?
4324 ac_cv_c_bigendian=unknown
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 $ac_includes_default
4347 /* Are we little or big endian? From Harbison&Steele. */
4351 char c[sizeof (long int)];
4354 return u.c[sizeof (long int) - 1] == 1;
4360 rm -f conftest$ac_exeext
4361 if { (ac_try="$ac_link"
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_link") 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4371 { (case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_try") 2>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_c_bigendian=no
4382 echo "$as_me: program exited with status $ac_status" >&5
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_c_bigendian=yes
4389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4398 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4399 case $ac_cv_c_bigendian in
4407 { { echo "$as_me:$LINENO: error: unknown endianness
4408 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4409 echo "$as_me: error: unknown endianness
4410 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4411 { (exit 1); exit 1; }; } ;;
4415 if test "$cross_compiling" = yes; then
4416 LLVM_CROSS_COMPILING=1
4419 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4420 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4421 if test "${ac_cv_build_exeext+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4425 ac_cv_build_exeext=.exe
4427 ac_build_prefix=${build_alias}-
4429 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4430 set dummy ${ac_build_prefix}gcc; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test -n "$BUILD_CC"; then
4437 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 BUILD_CC=$ac_cv_prog_BUILD_CC
4457 if test -n "$BUILD_CC"; then
4458 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4459 echo "${ECHO_T}$BUILD_CC" >&6; }
4461 { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4466 if test -z "$BUILD_CC"; then
4467 # Extract the first word of "gcc", so it can be a program name with args.
4468 set dummy gcc; ac_word=$2
4469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -n "$BUILD_CC"; then
4475 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_prog_BUILD_CC="gcc"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 BUILD_CC=$ac_cv_prog_BUILD_CC
4495 if test -n "$BUILD_CC"; then
4496 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4497 echo "${ECHO_T}$BUILD_CC" >&6; }
4499 { echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6; }
4504 if test -z "$BUILD_CC"; then
4505 # Extract the first word of "cc", so it can be a program name with args.
4506 set dummy cc; ac_word=$2
4507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4509 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 if test -n "$BUILD_CC"; then
4513 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4524 ac_prog_rejected=yes
4527 ac_cv_prog_BUILD_CC="cc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 if test $ac_prog_rejected = yes; then
4536 # We found a bogon in the path, so make sure we never use it.
4537 set dummy $ac_cv_prog_BUILD_CC
4539 if test $# != 0; then
4540 # We chose a different compiler from the bogus one.
4541 # However, it has the same basename, so the bogon will be chosen
4542 # first if we set BUILD_CC to just the basename; use the full file name.
4544 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
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; }
4561 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4562 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4563 { (exit 1); exit 1; }; }
4564 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4566 echo 'int main () { return 0; }' > conftest.$ac_ext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4569 (eval $ac_build_link) 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; then
4573 for file in conftest.*; do
4575 *.c | *.o | *.obj | *.dSYM) ;;
4576 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4580 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4581 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4582 { (exit 1); exit 1; }; }
4585 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4590 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4591 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4592 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4593 ac_build_exeext=$BUILD_EXEEXT
4595 ac_build_prefix=${build_alias}-
4596 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4597 set dummy ${ac_build_prefix}g++; ac_word=$2
4598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 if test -n "$BUILD_CXX"; then
4604 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4624 if test -n "$BUILD_CXX"; then
4625 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4626 echo "${ECHO_T}$BUILD_CXX" >&6; }
4628 { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4633 if test -z "$BUILD_CXX"; then
4634 # Extract the first word of "g++", so it can be a program name with args.
4635 set dummy g++; ac_word=$2
4636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4638 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 if test -n "$BUILD_CXX"; then
4642 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_BUILD_CXX="g++"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4662 if test -n "$BUILD_CXX"; then
4663 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4664 echo "${ECHO_T}$BUILD_CXX" >&6; }
4666 { echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6; }
4671 if test -z "$BUILD_CXX"; then
4672 # Extract the first word of "c++", so it can be a program name with args.
4673 set dummy c++; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 if test -n "$BUILD_CXX"; then
4680 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4691 ac_prog_rejected=yes
4694 ac_cv_prog_BUILD_CXX="c++"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 if test $ac_prog_rejected = yes; then
4703 # We found a bogon in the path, so make sure we never use it.
4704 set dummy $ac_cv_prog_BUILD_CXX
4706 if test $# != 0; then
4707 # We chose a different compiler from the bogus one.
4708 # However, it has the same basename, so the bogon will be chosen
4709 # first if we set BUILD_CXX to just the basename; use the full file name.
4711 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
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; }
4729 LLVM_CROSS_COMPILING=0
4733 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4744 # Check whether --enable-optimized was given.
4745 if test "${enable_optimized+set}" = set; then
4746 enableval=$enable_optimized;
4751 if test ${enableval} = "no" ; then
4755 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4759 # Check whether --enable-profiling was given.
4760 if test "${enable_profiling+set}" = set; then
4761 enableval=$enable_profiling;
4766 if test ${enableval} = "no" ; then
4770 ENABLE_PROFILING=ENABLE_PROFILING=1
4774 # Check whether --enable-assertions was given.
4775 if test "${enable_assertions+set}" = set; then
4776 enableval=$enable_assertions;
4781 if test ${enableval} = "yes" ; then
4785 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4789 # Check whether --enable-expensive-checks was given.
4790 if test "${enable_expensive_checks+set}" = set; then
4791 enableval=$enable_expensive_checks;
4796 if test ${enableval} = "yes" ; then
4797 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4799 EXPENSIVE_CHECKS=yes
4802 ENABLE_EXPENSIVE_CHECKS=
4808 # Check whether --enable-debug-runtime was given.
4809 if test "${enable_debug_runtime+set}" = set; then
4810 enableval=$enable_debug_runtime;
4815 if test ${enableval} = "no" ; then
4819 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4823 # Check whether --enable-jit was given.
4824 if test "${enable_jit+set}" = set; then
4825 enableval=$enable_jit;
4830 if test ${enableval} = "no"
4835 case "$llvm_cv_target_arch" in
4836 x86) TARGET_HAS_JIT=1
4838 Sparc) TARGET_HAS_JIT=0
4840 PowerPC) TARGET_HAS_JIT=1
4842 x86_64) TARGET_HAS_JIT=1
4844 Alpha) TARGET_HAS_JIT=1
4846 IA64) TARGET_HAS_JIT=0
4848 ARM) TARGET_HAS_JIT=0
4850 Mips) TARGET_HAS_JIT=0
4852 PIC16) TARGET_HAS_JIT=0
4854 XCore) TARGET_HAS_JIT=0
4856 MSP430) TARGET_HAS_JIT=0
4858 SystemZ) TARGET_HAS_JIT=0
4865 # Check whether --enable-doxygen was given.
4866 if test "${enable_doxygen+set}" = set; then
4867 enableval=$enable_doxygen;
4872 case "$enableval" in
4873 yes) ENABLE_DOXYGEN=1
4875 no) ENABLE_DOXYGEN=0
4877 default) ENABLE_DOXYGEN=0
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4884 # Check whether --enable-threads was given.
4885 if test "${enable_threads+set}" = set; then
4886 enableval=$enable_threads;
4891 case "$enableval" in
4892 yes) ENABLE_THREADS=1
4894 no) ENABLE_THREADS=0
4896 default) ENABLE_THREADS=1
4898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4903 cat >>confdefs.h <<_ACEOF
4904 #define ENABLE_THREADS $ENABLE_THREADS
4908 # Check whether --enable-pic was given.
4909 if test "${enable_pic+set}" = set; then
4910 enableval=$enable_pic;
4915 case "$enableval" in
4920 default) ENABLE_PIC=1
4922 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4923 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4924 { (exit 1); exit 1; }; } ;;
4927 cat >>confdefs.h <<_ACEOF
4928 #define ENABLE_PIC $ENABLE_PIC
4933 # Check whether --enable-targets was given.
4934 if test "${enable_targets+set}" = set; then
4935 enableval=$enable_targets;
4940 case "$enableval" in
4941 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 SystemZ CBackend MSIL CppBackend" ;;
4943 case "$llvm_cv_target_arch" in
4944 x86) TARGETS_TO_BUILD="X86" ;;
4945 x86_64) TARGETS_TO_BUILD="X86" ;;
4946 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4947 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4948 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4949 IA64) TARGETS_TO_BUILD="IA64" ;;
4950 ARM) TARGETS_TO_BUILD="ARM" ;;
4951 Mips) TARGETS_TO_BUILD="Mips" ;;
4952 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4953 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4954 XCore) TARGETS_TO_BUILD="XCore" ;;
4955 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4956 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
4957 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4958 echo "$as_me: error: Can not set target to build" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4962 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4967 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4968 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4969 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4974 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4975 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4976 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4979 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4980 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4981 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4987 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4990 # Determine whether we are building LLVM support for the native architecture.
4991 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4992 for a_target in $TARGETS_TO_BUILD; do
4993 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4994 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4996 cat >>confdefs.h <<_ACEOF
4997 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5003 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5004 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5005 LLVM_ENUM_TARGETS=""
5006 LLVM_ENUM_ASM_PRINTERS=""
5007 LLVM_ENUM_ASM_PARSERS=""
5008 for target_to_build in $TARGETS_TO_BUILD; do
5009 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5010 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5011 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5013 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5014 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5021 # Check whether --enable-cbe-printf-a was given.
5022 if test "${enable_cbe_printf_a+set}" = set; then
5023 enableval=$enable_cbe_printf_a;
5028 case "$enableval" in
5029 yes) ENABLE_CBE_PRINTF_A=1
5031 no) ENABLE_CBE_PRINTF_A=0
5033 default) ENABLE_CBE_PRINTF_A=1
5035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5040 cat >>confdefs.h <<_ACEOF
5041 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5046 # Check whether --with-llvmgccdir was given.
5047 if test "${with_llvmgccdir+set}" = set; then
5048 withval=$with_llvmgccdir;
5054 default) WITH_LLVMGCCDIR=default ;;
5055 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5056 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058 { (exit 1); exit 1; }; } ;;
5062 # Check whether --with-llvmgcc was given.
5063 if test "${with_llvmgcc+set}" = set; then
5064 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5070 # Check whether --with-llvmgxx was given.
5071 if test "${with_llvmgxx+set}" = set; then
5072 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5077 if test -n "$LLVMGCC"; then
5078 LLVMGCCCOMMAND="$LLVMGCC"
5081 if test -n "$LLVMGXX"; then
5082 LLVMGXXCOMMAND="$LLVMGXX"
5085 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5086 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088 { (exit 1); exit 1; }; };
5091 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5092 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094 { (exit 1); exit 1; }; };
5098 # Check whether --with-extra-options was given.
5099 if test "${with_extra_options+set}" = set; then
5100 withval=$with_extra_options;
5106 default) EXTRA_OPTIONS= ;;
5107 *) EXTRA_OPTIONS=$withval ;;
5109 EXTRA_OPTIONS=$EXTRA_OPTIONS
5112 # Check whether --enable-bindings was given.
5113 if test "${enable_bindings+set}" = set; then
5114 enableval=$enable_bindings;
5119 BINDINGS_TO_BUILD=""
5120 case "$enableval" in
5121 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5122 all ) BINDINGS_TO_BUILD="ocaml" ;;
5123 none | no) BINDINGS_TO_BUILD="" ;;
5124 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5125 case "$a_binding" in
5126 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5127 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5128 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5129 { (exit 1); exit 1; }; } ;;
5136 # Check whether --with-ocaml-libdir was given.
5137 if test "${with_ocaml_libdir+set}" = set; then
5138 withval=$with_ocaml_libdir;
5144 auto) with_ocaml_libdir="$withval" ;;
5145 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5146 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5147 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5152 # Check whether --with-binutils-include was given.
5153 if test "${with_binutils_include+set}" = set; then
5154 withval=$with_binutils_include;
5160 default) WITH_BINUTILS_INCDIR=default ;;
5161 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5162 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5163 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5166 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5167 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5169 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5170 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5171 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5172 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5173 { (exit 1); exit 1; }; };
5177 # Check whether --enable-libffi was given.
5178 if test "${enable_libffi+set}" = set; then
5179 enableval=$enable_libffi;
5184 case "$enableval" in
5185 yes) llvm_cv_enable_libffi="yes" ;;
5186 no) llvm_cv_enable_libffi="no" ;;
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5192 if test "$llvm_cv_os_type" = "Win32" ; then
5198 # Check whether --enable-llvmc-dynamic was given.
5199 if test "${enable_llvmc_dynamic+set}" = set; then
5200 enableval=$enable_llvmc_dynamic;
5202 enableval=$llvmc_dynamic
5205 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5206 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5209 ENABLE_LLVMC_DYNAMIC=
5213 # Check whether --enable-llvmc-dynamic-plugins was given.
5214 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5215 enableval=$enable_llvmc_dynamic_plugins;
5220 if test ${enableval} = "yes" ; then
5221 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5224 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5230 ac_cpp='$CPP $CPPFLAGS'
5231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5236 # On Suns, sometimes $CPP names a directory.
5237 if test -n "$CPP" && test -d "$CPP"; then
5240 if test -z "$CPP"; then
5241 if test "${ac_cv_prog_CPP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 # Double quotes because CPP needs to be expanded
5245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5248 for ac_c_preproc_warn_flag in '' yes
5250 # Use a header file that comes with gcc, so configuring glibc
5251 # with a fresh cross-compiler works.
5252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253 # <limits.h> exists even on freestanding compilers.
5254 # On the NeXT, cc -E runs the code through the compiler's parser,
5255 # not just through cpp. "Syntax error" is here to catch this case.
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5263 # include <limits.h>
5265 # include <assert.h>
5269 if { (ac_try="$ac_cpp conftest.$ac_ext"
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5277 grep -v '^ *+' conftest.er1 >conftest.err
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5291 if test -z "$ac_cpp_err"; then
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 # Broken: fails on valid input.
5301 rm -f conftest.err conftest.$ac_ext
5303 # OK, works on sane cases. Now check whether nonexistent headers
5304 # can be detected and how.
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <ac_nonexistent.h>
5313 if { (ac_try="$ac_cpp conftest.$ac_ext"
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_c_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5335 if test -z "$ac_cpp_err"; then
5336 # Broken: success on invalid input.
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 # Passes both tests.
5347 rm -f conftest.err conftest.$ac_ext
5350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351 rm -f conftest.err conftest.$ac_ext
5352 if $ac_preproc_ok; then
5364 { echo "$as_me:$LINENO: result: $CPP" >&5
5365 echo "${ECHO_T}$CPP" >&6; }
5367 for ac_c_preproc_warn_flag in '' yes
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat >conftest.$ac_ext <<_ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 # include <limits.h>
5384 # include <assert.h>
5388 if { (ac_try="$ac_cpp conftest.$ac_ext"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } >/dev/null; then
5401 if test -s conftest.err; then
5402 ac_cpp_err=$ac_c_preproc_warn_flag
5403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5410 if test -z "$ac_cpp_err"; then
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 # Broken: fails on valid input.
5420 rm -f conftest.err conftest.$ac_ext
5422 # OK, works on sane cases. Now check whether nonexistent headers
5423 # can be detected and how.
5424 cat >conftest.$ac_ext <<_ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 #include <ac_nonexistent.h>
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5454 if test -z "$ac_cpp_err"; then
5455 # Broken: success on invalid input.
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 # Passes both tests.
5466 rm -f conftest.err conftest.$ac_ext
5469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5470 rm -f conftest.err conftest.$ac_ext
5471 if $ac_preproc_ok; then
5474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5475 See \`config.log' for more details." >&5
5476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5477 See \`config.log' for more details." >&2;}
5478 { (exit 1); exit 1; }; }
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488 ac_cpp='$CPP $CPPFLAGS'
5489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_CC+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 if test -n "$CC"; then
5503 ac_cv_prog_CC="$CC" # Let the user override the test.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 if test -n "$CC"; then
5524 { echo "$as_me:$LINENO: result: $CC" >&5
5525 echo "${ECHO_T}$CC" >&6; }
5527 { echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6; }
5532 test -n "$CC" && break
5535 if test -z "$CC"; then
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 if test -n "$ac_ct_CC"; then
5547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_CC="$ac_prog"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5567 if test -n "$ac_ct_CC"; then
5568 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5569 echo "${ECHO_T}$ac_ct_CC" >&6; }
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5576 test -n "$ac_ct_CC" && break
5579 if test "x$ac_ct_CC" = x; then
5582 case $cross_compiling:$ac_tool_warned in
5584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5585 whose name does not start with the host triplet. If you think this
5586 configuration is useful to you, please write to autoconf@gnu.org." >&5
5587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5588 whose name does not start with the host triplet. If you think this
5589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5590 ac_tool_warned=yes ;;
5597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: no acceptable C compiler found in \$PATH
5600 See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; }
5603 # Provide some information about the compiler.
5604 echo "$as_me:$LINENO: checking for C compiler version" >&5
5605 ac_compiler=`set X $ac_compile; echo $2`
5606 { (ac_try="$ac_compiler --version >&5"
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compiler --version >&5") 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }
5616 { (ac_try="$ac_compiler -v >&5"
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compiler -v >&5") 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }
5626 { (ac_try="$ac_compiler -V >&5"
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_compiler -V >&5") 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }
5637 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5638 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5639 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5675 { (case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_try") 2>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_try") 2>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5706 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5707 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5708 GCC=`test $ac_compiler_gnu = yes && echo yes`
5709 ac_test_CFLAGS=${CFLAGS+set}
5710 ac_save_CFLAGS=$CFLAGS
5711 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5712 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5713 if test "${ac_cv_prog_cc_g+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 ac_save_c_werror_flag=$ac_c_werror_flag
5717 ac_c_werror_flag=yes
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5744 grep -v '^ *+' conftest.er1 >conftest.err
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5750 { (case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_try") 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_try") 2>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_c_werror_flag=$ac_save_c_werror_flag
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5846 rm -f conftest.$ac_objext
5847 if { (ac_try="$ac_compile"
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_try") 2>&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_c_werror_flag=$ac_save_c_werror_flag
5897 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5898 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5899 if test "$ac_test_CFLAGS" = set; then
5900 CFLAGS=$ac_save_CFLAGS
5901 elif test $ac_cv_prog_cc_g = yes; then
5902 if test "$GCC" = yes; then
5908 if test "$GCC" = yes; then
5914 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5915 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5916 if test "${ac_cv_prog_cc_c89+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_cv_prog_cc_c89=no
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5929 #include <sys/types.h>
5930 #include <sys/stat.h>
5931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5932 struct buf { int x; };
5933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5934 static char *e (p, i)
5940 static char *f (char * (*g) (char **, int), char **p, ...)
5945 s = g (p, va_arg (v,int));
5950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5951 function prototypes and stuff, but not '\xHH' hex character constants.
5952 These don't provoke an error unfortunately, instead are silently treated
5953 as 'x'. The following induces an error, until -std is added to get
5954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5955 array size at least. It's necessary to write '\x00'==0 to get something
5956 that's true only with -std. */
5957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5959 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5960 inside strings and character constants. */
5962 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5964 int test (int i, double x);
5965 struct s1 {int (*f) (int a);};
5966 struct s2 {int (*f) (double a);};
5967 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5978 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5981 CC="$ac_save_CC $ac_arg"
5982 rm -f conftest.$ac_objext
5983 if { (ac_try="$ac_compile"
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_compile") 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5997 { (case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_try") 2>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_try") 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_prog_cc_c89=$ac_arg
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6024 rm -f core conftest.err conftest.$ac_objext
6025 test "x$ac_cv_prog_cc_c89" != "xno" && break
6027 rm -f conftest.$ac_ext
6032 case "x$ac_cv_prog_cc_c89" in
6034 { echo "$as_me:$LINENO: result: none needed" >&5
6035 echo "${ECHO_T}none needed" >&6; } ;;
6037 { echo "$as_me:$LINENO: result: unsupported" >&5
6038 echo "${ECHO_T}unsupported" >&6; } ;;
6040 CC="$CC $ac_cv_prog_cc_c89"
6041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6042 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6047 ac_cpp='$CPP $CPPFLAGS'
6048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6053 ac_cpp='$CXXCPP $CPPFLAGS'
6054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6057 if test -z "$CXX"; then
6058 if test -n "$CCC"; then
6061 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_prog_CXX+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 if test -n "$CXX"; then
6072 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 if test -n "$CXX"; then
6093 { echo "$as_me:$LINENO: result: $CXX" >&5
6094 echo "${ECHO_T}$CXX" >&6; }
6096 { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6101 test -n "$CXX" && break
6104 if test -z "$CXX"; then
6108 # Extract the first word of "$ac_prog", so it can be a program name with args.
6109 set dummy $ac_prog; ac_word=$2
6110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 if test -n "$ac_ct_CXX"; then
6116 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_CXX="$ac_prog"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6136 if test -n "$ac_ct_CXX"; then
6137 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6138 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6145 test -n "$ac_ct_CXX" && break
6148 if test "x$ac_ct_CXX" = x; then
6151 case $cross_compiling:$ac_tool_warned in
6153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6154 whose name does not start with the host triplet. If you think this
6155 configuration is useful to you, please write to autoconf@gnu.org." >&5
6156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6157 whose name does not start with the host triplet. If you think this
6158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6159 ac_tool_warned=yes ;;
6167 # Provide some information about the compiler.
6168 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6169 ac_compiler=`set X $ac_compile; echo $2`
6170 { (ac_try="$ac_compiler --version >&5"
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_compiler --version >&5") 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }
6180 { (ac_try="$ac_compiler -v >&5"
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_compiler -v >&5") 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }
6190 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }
6201 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6202 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6203 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6239 { (case "(($ac_try" in
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244 (eval "$ac_try") 2>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6270 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6271 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6272 GXX=`test $ac_compiler_gnu = yes && echo yes`
6273 ac_test_CXXFLAGS=${CXXFLAGS+set}
6274 ac_save_CXXFLAGS=$CXXFLAGS
6275 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6276 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6277 if test "${ac_cv_prog_cxx_g+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6281 ac_cxx_werror_flag=yes
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6314 { (case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_try") 2>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_cv_prog_cxx_g=yes
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6339 cat >conftest.$ac_ext <<_ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6363 grep -v '^ *+' conftest.er1 >conftest.err
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_try") 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6395 cat >conftest.$ac_ext <<_ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6410 rm -f conftest.$ac_objext
6411 if { (ac_try="$ac_compile"
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compile") 2>conftest.er1
6419 grep -v '^ *+' conftest.er1 >conftest.err
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest.$ac_objext'
6435 { (case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_try") 2>&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_cv_prog_cxx_g=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6461 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6462 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6463 if test "$ac_test_CXXFLAGS" = set; then
6464 CXXFLAGS=$ac_save_CXXFLAGS
6465 elif test $ac_cv_prog_cxx_g = yes; then
6466 if test "$GXX" = yes; then
6472 if test "$GXX" = yes; then
6479 ac_cpp='$CPP $CPPFLAGS'
6480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6486 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6487 if test "${lt_cv_path_NM+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 if test -n "$NM"; then
6491 # Let the user override the test.
6494 lt_nm_to_check="${ac_tool_prefix}nm"
6495 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6496 lt_nm_to_check="$lt_nm_to_check nm"
6498 for lt_tmp_nm in $lt_nm_to_check; do
6499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6500 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6502 test -z "$ac_dir" && ac_dir=.
6503 tmp_nm="$ac_dir/$lt_tmp_nm"
6504 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6505 # Check to see if the nm accepts a BSD-compat flag.
6506 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6507 # nm: unknown option "B" ignored
6508 # Tru64's nm complains that /dev/null is an invalid object file
6509 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6510 */dev/null* | *'Invalid file or object type'*)
6511 lt_cv_path_NM="$tmp_nm -B"
6515 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6517 lt_cv_path_NM="$tmp_nm -p"
6521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6522 continue # so that we can try to find one that supports BSD flags
6531 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6534 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6535 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6540 { echo "$as_me:$LINENO: checking for GNU make" >&5
6541 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6542 if test "${llvm_cv_gnu_make_command+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 llvm_cv_gnu_make_command=''
6546 for a in "$MAKE" make gmake gnumake ; do
6547 if test -z "$a" ; then continue ; fi ;
6548 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6550 llvm_cv_gnu_make_command=$a ;
6555 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6556 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6557 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6561 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6562 echo "${ECHO_T}\"Not found\"" >&6; };
6566 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6567 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6569 if test "$LN_S" = "ln -s"; then
6570 { echo "$as_me:$LINENO: result: yes" >&5
6571 echo "${ECHO_T}yes" >&6; }
6573 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6574 echo "${ECHO_T}no, using $LN_S" >&6; }
6577 # Extract the first word of "cmp", so it can be a program name with args.
6578 set dummy cmp; ac_word=$2
6579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6581 if test "${ac_cv_path_CMP+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6609 if test -n "$CMP"; then
6610 { echo "$as_me:$LINENO: result: $CMP" >&5
6611 echo "${ECHO_T}$CMP" >&6; }
6613 { echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6; }
6618 # Extract the first word of "cp", so it can be a program name with args.
6619 set dummy cp; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_path_CP+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6650 if test -n "$CP"; then
6651 { echo "$as_me:$LINENO: result: $CP" >&5
6652 echo "${ECHO_T}$CP" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6659 # Extract the first word of "date", so it can be a program name with args.
6660 set dummy date; ac_word=$2
6661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663 if test "${ac_cv_path_DATE+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6690 DATE=$ac_cv_path_DATE
6691 if test -n "$DATE"; then
6692 { echo "$as_me:$LINENO: result: $DATE" >&5
6693 echo "${ECHO_T}$DATE" >&6; }
6695 { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6700 # Extract the first word of "find", so it can be a program name with args.
6701 set dummy find; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_path_FIND+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6731 FIND=$ac_cv_path_FIND
6732 if test -n "$FIND"; then
6733 { echo "$as_me:$LINENO: result: $FIND" >&5
6734 echo "${ECHO_T}$FIND" >&6; }
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6741 # Extract the first word of "grep", so it can be a program name with args.
6742 set dummy grep; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_GREP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6772 GREP=$ac_cv_path_GREP
6773 if test -n "$GREP"; then
6774 { echo "$as_me:$LINENO: result: $GREP" >&5
6775 echo "${ECHO_T}$GREP" >&6; }
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6782 # Extract the first word of "mkdir", so it can be a program name with args.
6783 set dummy mkdir; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_MKDIR+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6813 MKDIR=$ac_cv_path_MKDIR
6814 if test -n "$MKDIR"; then
6815 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6816 echo "${ECHO_T}$MKDIR" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6823 # Extract the first word of "mv", so it can be a program name with args.
6824 set dummy mv; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_path_MV+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6855 if test -n "$MV"; then
6856 { echo "$as_me:$LINENO: result: $MV" >&5
6857 echo "${ECHO_T}$MV" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_RANLIB+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 if test -n "$RANLIB"; then
6873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 RANLIB=$ac_cv_prog_RANLIB
6893 if test -n "$RANLIB"; then
6894 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6895 echo "${ECHO_T}$RANLIB" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6903 if test -z "$ac_cv_prog_RANLIB"; then
6904 ac_ct_RANLIB=$RANLIB
6905 # Extract the first word of "ranlib", so it can be a program name with args.
6906 set dummy ranlib; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 if test -n "$ac_ct_RANLIB"; then
6913 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_ac_ct_RANLIB="ranlib"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6933 if test -n "$ac_ct_RANLIB"; then
6934 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6935 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6941 if test "x$ac_ct_RANLIB" = x; then
6944 case $cross_compiling:$ac_tool_warned in
6946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet. If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&5
6949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6950 whose name does not start with the host triplet. If you think this
6951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6952 ac_tool_warned=yes ;;
6954 RANLIB=$ac_ct_RANLIB
6957 RANLIB="$ac_cv_prog_RANLIB"
6960 # Extract the first word of "rm", so it can be a program name with args.
6961 set dummy rm; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_RM+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6992 if test -n "$RM"; then
6993 { echo "$as_me:$LINENO: result: $RM" >&5
6994 echo "${ECHO_T}$RM" >&6; }
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 # Extract the first word of "sed", so it can be a program name with args.
7002 set dummy sed; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_SED+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7033 if test -n "$SED"; then
7034 { echo "$as_me:$LINENO: result: $SED" >&5
7035 echo "${ECHO_T}$SED" >&6; }
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 # Extract the first word of "tar", so it can be a program name with args.
7043 set dummy tar; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_TAR+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7074 if test -n "$TAR"; then
7075 { echo "$as_me:$LINENO: result: $TAR" >&5
7076 echo "${ECHO_T}$TAR" >&6; }
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "pwd", so it can be a program name with args.
7084 set dummy pwd; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_BINPWD+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7114 BINPWD=$ac_cv_path_BINPWD
7115 if test -n "$BINPWD"; then
7116 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7117 echo "${ECHO_T}$BINPWD" >&6; }
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7125 # Extract the first word of "Graphviz", so it can be a program name with args.
7126 set dummy Graphviz; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7156 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7157 if test -n "$GRAPHVIZ"; then
7158 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7159 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7166 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7168 cat >>confdefs.h <<\_ACEOF
7169 #define HAVE_GRAPHVIZ 1
7172 if test "$llvm_cv_os_type" = "MingW" ; then
7173 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7176 cat >>confdefs.h <<_ACEOF
7177 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7181 # Extract the first word of "dot", so it can be a program name with args.
7182 set dummy dot; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_DOT+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7213 if test -n "$DOT"; then
7214 { echo "$as_me:$LINENO: result: $DOT" >&5
7215 echo "${ECHO_T}$DOT" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7222 if test "$DOT" != "echo dot" ; then
7224 cat >>confdefs.h <<\_ACEOF
7228 if test "$llvm_cv_os_type" = "MingW" ; then
7229 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7232 cat >>confdefs.h <<_ACEOF
7233 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7237 # Extract the first word of "fdp", so it can be a program name with args.
7238 set dummy fdp; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_FDP+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7269 if test -n "$FDP"; then
7270 { echo "$as_me:$LINENO: result: $FDP" >&5
7271 echo "${ECHO_T}$FDP" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 if test "$FDP" != "echo fdp" ; then
7280 cat >>confdefs.h <<\_ACEOF
7284 if test "$llvm_cv_os_type" = "MingW" ; then
7285 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7288 cat >>confdefs.h <<_ACEOF
7289 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7293 # Extract the first word of "neato", so it can be a program name with args.
7294 set dummy neato; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_NEATO+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7324 NEATO=$ac_cv_path_NEATO
7325 if test -n "$NEATO"; then
7326 { echo "$as_me:$LINENO: result: $NEATO" >&5
7327 echo "${ECHO_T}$NEATO" >&6; }
7329 { echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6; }
7334 if test "$NEATO" != "echo neato" ; then
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_NEATO 1
7340 if test "$llvm_cv_os_type" = "MingW" ; then
7341 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7344 cat >>confdefs.h <<_ACEOF
7345 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7349 # Extract the first word of "twopi", so it can be a program name with args.
7350 set dummy twopi; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_TWOPI+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7380 TWOPI=$ac_cv_path_TWOPI
7381 if test -n "$TWOPI"; then
7382 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7383 echo "${ECHO_T}$TWOPI" >&6; }
7385 { echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6; }
7390 if test "$TWOPI" != "echo twopi" ; then
7392 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_TWOPI 1
7396 if test "$llvm_cv_os_type" = "MingW" ; then
7397 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7400 cat >>confdefs.h <<_ACEOF
7401 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7405 # Extract the first word of "circo", so it can be a program name with args.
7406 set dummy circo; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_CIRCO+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7436 CIRCO=$ac_cv_path_CIRCO
7437 if test -n "$CIRCO"; then
7438 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7439 echo "${ECHO_T}$CIRCO" >&6; }
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7446 if test "$CIRCO" != "echo circo" ; then
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_CIRCO 1
7452 if test "$llvm_cv_os_type" = "MingW" ; then
7453 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7456 cat >>confdefs.h <<_ACEOF
7457 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7461 for ac_prog in gv gsview32
7463 # Extract the first word of "$ac_prog", so it can be a program name with args.
7464 set dummy $ac_prog; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GV+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 if test -n "$GV"; then
7495 { echo "$as_me:$LINENO: result: $GV" >&5
7496 echo "${ECHO_T}$GV" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 test -n "$GV" && break
7505 test -n "$GV" || GV="echo gv"
7507 if test "$GV" != "echo gv" ; then
7509 cat >>confdefs.h <<\_ACEOF
7513 if test "$llvm_cv_os_type" = "MingW" ; then
7514 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7517 cat >>confdefs.h <<_ACEOF
7518 #define LLVM_PATH_GV "$GV${EXEEXT}"
7522 # Extract the first word of "dotty", so it can be a program name with args.
7523 set dummy dotty; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_DOTTY+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7553 DOTTY=$ac_cv_path_DOTTY
7554 if test -n "$DOTTY"; then
7555 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7556 echo "${ECHO_T}$DOTTY" >&6; }
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 if test "$DOTTY" != "echo dotty" ; then
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_DOTTY 1
7569 if test "$llvm_cv_os_type" = "MingW" ; then
7570 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7573 cat >>confdefs.h <<_ACEOF
7574 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7580 # Extract the first word of "perl", so it can be a program name with args.
7581 set dummy perl; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_PERL+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7611 PERL=$ac_cv_path_PERL
7612 if test -n "$PERL"; then
7613 { echo "$as_me:$LINENO: result: $PERL" >&5
7614 echo "${ECHO_T}$PERL" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 if test "$PERL" != "none"; then
7622 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7623 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7624 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7625 { echo "$as_me:$LINENO: result: yes" >&5
7626 echo "${ECHO_T}yes" >&6; }
7629 { echo "$as_me:$LINENO: result: not found" >&5
7630 echo "${ECHO_T}not found" >&6; }
7635 if test x"$PERL" = xnone; then
7638 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7639 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7640 { (exit 1); exit 1; }; }
7646 # Find a good install program. We prefer a C program (faster),
7647 # so one script is as good as another. But avoid the broken or
7648 # incompatible versions:
7649 # SysV /etc/install, /usr/sbin/install
7650 # SunOS /usr/etc/install
7651 # IRIX /sbin/install
7653 # AmigaOS /C/install, which installs bootblocks on floppy discs
7654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7657 # OS/2's system install, which has a completely different semantic
7658 # ./install, which can be erroneously created by make from ./install.sh.
7659 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7661 if test -z "$INSTALL"; then
7662 if test "${ac_cv_path_install+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 test -z "$as_dir" && as_dir=.
7670 # Account for people who put trailing slashes in PATH elements.
7672 ./ | .// | /cC/* | \
7673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7674 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7677 # OSF1 and SCO ODT 3.0 have their own names for install.
7678 # Don't use installbsd from OSF since it installs stuff as root
7680 for ac_prog in ginstall scoinst install; do
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7683 if test $ac_prog = install &&
7684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7685 # AIX install. It has an incompatible calling convention.
7687 elif test $ac_prog = install &&
7688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7689 # program-specific install script used by HP pwplus--don't use.
7692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7705 if test "${ac_cv_path_install+set}" = set; then
7706 INSTALL=$ac_cv_path_install
7708 # As a last resort, use the slow shell script. Don't cache a
7709 # value for INSTALL within a source directory, because that will
7710 # break other packages using the cache if that directory is
7711 # removed, or if the value is a relative name.
7712 INSTALL=$ac_install_sh
7715 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7716 echo "${ECHO_T}$INSTALL" >&6; }
7718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7719 # It thinks the first close brace ends the variable substitution.
7720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7727 # Extract the first word of "bzip2", so it can be a program name with args.
7728 set dummy bzip2; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_path_BZIP2+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 BZIP2=$ac_cv_path_BZIP2
7758 if test -n "$BZIP2"; then
7759 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7760 echo "${ECHO_T}$BZIP2" >&6; }
7762 { echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6; }
7767 # Extract the first word of "doxygen", so it can be a program name with args.
7768 set dummy doxygen; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 DOXYGEN=$ac_cv_path_DOXYGEN
7798 if test -n "$DOXYGEN"; then
7799 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7800 echo "${ECHO_T}$DOXYGEN" >&6; }
7802 { echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6; }
7807 # Extract the first word of "groff", so it can be a program name with args.
7808 set dummy groff; ac_word=$2
7809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811 if test "${ac_cv_path_GROFF+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 GROFF=$ac_cv_path_GROFF
7838 if test -n "$GROFF"; then
7839 { echo "$as_me:$LINENO: result: $GROFF" >&5
7840 echo "${ECHO_T}$GROFF" >&6; }
7842 { echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6; }
7847 # Extract the first word of "gzip", so it can be a program name with args.
7848 set dummy gzip; ac_word=$2
7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851 if test "${ac_cv_path_GZIP+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 GZIP=$ac_cv_path_GZIP
7878 if test -n "$GZIP"; then
7879 { echo "$as_me:$LINENO: result: $GZIP" >&5
7880 echo "${ECHO_T}$GZIP" >&6; }
7882 { echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6; }
7887 # Extract the first word of "pod2html", so it can be a program name with args.
7888 set dummy pod2html; ac_word=$2
7889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891 if test "${ac_cv_path_POD2HTML+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7906 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 POD2HTML=$ac_cv_path_POD2HTML
7918 if test -n "$POD2HTML"; then
7919 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7920 echo "${ECHO_T}$POD2HTML" >&6; }
7922 { echo "$as_me:$LINENO: result: no" >&5
7923 echo "${ECHO_T}no" >&6; }
7927 # Extract the first word of "pod2man", so it can be a program name with args.
7928 set dummy pod2man; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_path_POD2MAN+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7946 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 POD2MAN=$ac_cv_path_POD2MAN
7958 if test -n "$POD2MAN"; then
7959 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7960 echo "${ECHO_T}$POD2MAN" >&6; }
7962 { echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6; }
7967 # Extract the first word of "runtest", so it can be a program name with args.
7968 set dummy runtest; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_RUNTEST+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 RUNTEST=$ac_cv_path_RUNTEST
7998 if test -n "$RUNTEST"; then
7999 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8000 echo "${ECHO_T}$RUNTEST" >&6; }
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8009 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8010 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8012 # Check whether --with-tclinclude was given.
8013 if test "${with_tclinclude+set}" = set; then
8014 withval=$with_tclinclude; with_tclinclude=${withval}
8019 if test "${ac_cv_path_tclsh+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 if test x"${with_tclinclude}" != x ; then
8024 if test -f ${with_tclinclude}/tclsh ; then
8025 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8026 elif test -f ${with_tclinclude}/src/tclsh ; then
8027 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8029 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8030 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8031 { (exit 1); exit 1; }; }
8035 if test x"${ac_cv_path_tclsh}" = x ; then
8036 { echo "$as_me:$LINENO: result: none" >&5
8037 echo "${ECHO_T}none" >&6; }
8038 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
8040 # Extract the first word of "$ac_prog", so it can be a program name with args.
8041 set dummy $ac_prog; ac_word=$2
8042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8044 if test "${ac_cv_path_TCLSH+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8059 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 TCLSH=$ac_cv_path_TCLSH
8071 if test -n "$TCLSH"; then
8072 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8073 echo "${ECHO_T}$TCLSH" >&6; }
8075 { echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6; }
8080 test -n "$TCLSH" && break
8083 if test x"${TCLSH}" = x ; then
8084 ac_cv_path_tclsh='';
8086 ac_cv_path_tclsh="${TCLSH}";
8089 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8090 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8091 TCLSH="${ac_cv_path_tclsh}"
8097 # Extract the first word of "zip", so it can be a program name with args.
8098 set dummy zip; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_path_ZIP+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 if test -n "$ZIP"; then
8129 { echo "$as_me:$LINENO: result: $ZIP" >&5
8130 echo "${ECHO_T}$ZIP" >&6; }
8132 { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8137 for ac_prog in ocamlc
8139 # Extract the first word of "$ac_prog", so it can be a program name with args.
8140 set dummy $ac_prog; ac_word=$2
8141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143 if test "${ac_cv_path_OCAMLC+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 OCAMLC=$ac_cv_path_OCAMLC
8170 if test -n "$OCAMLC"; then
8171 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8172 echo "${ECHO_T}$OCAMLC" >&6; }
8174 { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8179 test -n "$OCAMLC" && break
8182 for ac_prog in ocamlopt
8184 # Extract the first word of "$ac_prog", so it can be a program name with args.
8185 set dummy $ac_prog; ac_word=$2
8186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8188 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 OCAMLOPT=$ac_cv_path_OCAMLOPT
8215 if test -n "$OCAMLOPT"; then
8216 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8217 echo "${ECHO_T}$OCAMLOPT" >&6; }
8219 { echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6; }
8224 test -n "$OCAMLOPT" && break
8227 for ac_prog in ocamldep
8229 # Extract the first word of "$ac_prog", so it can be a program name with args.
8230 set dummy $ac_prog; ac_word=$2
8231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8233 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 OCAMLDEP=$ac_cv_path_OCAMLDEP
8260 if test -n "$OCAMLDEP"; then
8261 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8262 echo "${ECHO_T}$OCAMLDEP" >&6; }
8264 { echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6; }
8269 test -n "$OCAMLDEP" && break
8272 for ac_prog in ocamldoc
8274 # Extract the first word of "$ac_prog", so it can be a program name with args.
8275 set dummy $ac_prog; ac_word=$2
8276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8278 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 OCAMLDOC=$ac_cv_path_OCAMLDOC
8305 if test -n "$OCAMLDOC"; then
8306 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8307 echo "${ECHO_T}$OCAMLDOC" >&6; }
8309 { echo "$as_me:$LINENO: result: no" >&5
8310 echo "${ECHO_T}no" >&6; }
8314 test -n "$OCAMLDOC" && break
8317 for ac_prog in gas as
8319 # Extract the first word of "$ac_prog", so it can be a program name with args.
8320 set dummy $ac_prog; ac_word=$2
8321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8323 if test "${ac_cv_path_GAS+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8338 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 if test -n "$GAS"; then
8351 { echo "$as_me:$LINENO: result: $GAS" >&5
8352 echo "${ECHO_T}$GAS" >&6; }
8354 { echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6; }
8359 test -n "$GAS" && break
8363 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8364 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8365 if test "${llvm_cv_link_use_r+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 ac_cpp='$CPP $CPPFLAGS'
8370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8375 CFLAGS="$CFLAGS -Wl,-R."
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8386 int main() { return 0; }
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (ac_try="$ac_link"
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_link") 2>conftest.er1
8400 grep -v '^ *+' conftest.er1 >conftest.err
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest$ac_exeext'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 llvm_cv_link_use_r=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 llvm_cv_link_use_r=no
8433 rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8437 ac_cpp='$CPP $CPPFLAGS'
8438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8444 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8445 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8446 if test "$llvm_cv_link_use_r" = yes ; then
8448 cat >>confdefs.h <<\_ACEOF
8449 #define HAVE_LINK_R 1
8455 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8456 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8457 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 ac_cpp='$CPP $CPPFLAGS'
8462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8467 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8468 cat >conftest.$ac_ext <<_ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8478 int main() { return 0; }
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 llvm_cv_link_use_export_dynamic=yes
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 llvm_cv_link_use_export_dynamic=no
8525 rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8529 ac_cpp='$CPP $CPPFLAGS'
8530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8537 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8538 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8540 cat >>confdefs.h <<\_ACEOF
8541 #define HAVE_LINK_EXPORT_DYNAMIC 1
8549 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8550 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8551 if test "${ac_cv_c_const+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 cat >conftest.$ac_ext <<_ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8564 /* FIXME: Include the comments suggested by Paul. */
8566 /* Ultrix mips cc rejects this. */
8567 typedef int charset[2];
8569 /* SunOS 4.1.1 cc rejects this. */
8570 char const *const *ccp;
8572 /* NEC SVR4.0.2 mips cc rejects this. */
8573 struct point {int x, y;};
8574 static struct point const zero = {0,0};
8575 /* AIX XL C 1.02.0.0 rejects this.
8576 It does not let you subtract one const X* pointer from another in
8577 an arm of an if-expression whose if-part is not a constant
8579 const char *g = "string";
8580 ccp = &g + (g ? g-g : 0);
8581 /* HPUX 7.0 cc rejects these. */
8584 ccp = (char const *const *) p;
8585 { /* SCO 3.2v4 cc rejects this. */
8587 char const *s = 0 ? (char *) 0 : (char const *) 0;
8592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8594 const int *foo = &x[0];
8597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8598 typedef const int *iptr;
8602 { /* AIX XL C 1.02.0.0 rejects this saying
8603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8604 struct s { int j; const int *ap[3]; };
8605 struct s *b; b->j = 5;
8607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8611 return !x[0] && !zero.x;
8618 rm -f conftest.$ac_objext
8619 if { (ac_try="$ac_compile"
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_compile") 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8633 { (case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_try") 2>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_try") 2>&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8663 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8664 if test $ac_cv_c_const = no; then
8666 cat >>confdefs.h <<\_ACEOF
8678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8679 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8680 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8681 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 #include <sys/types.h>
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 eval "$as_ac_Header=yes"
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 eval "$as_ac_Header=no"
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 ac_res=`eval echo '${'$as_ac_Header'}'`
8748 { echo "$as_me:$LINENO: result: $ac_res" >&5
8749 echo "${ECHO_T}$ac_res" >&6; }
8750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8751 cat >>confdefs.h <<_ACEOF
8752 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8755 ac_header_dirent=$ac_hdr; break
8759 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8760 if test $ac_header_dirent = dirent.h; then
8761 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8763 if test "${ac_cv_search_opendir+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 ac_func_search_save_LIBS=$LIBS
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8774 /* Override any GCC internal prototype to avoid an error.
8775 Use char because int might match the return type of a GCC
8776 builtin and then its argument prototype would still apply. */
8789 for ac_lib in '' dir; do
8790 if test -z "$ac_lib"; then
8791 ac_res="none required"
8794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (ac_try="$ac_link"
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_link") 2>conftest.er1
8805 grep -v '^ *+' conftest.er1 >conftest.err
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8811 { (case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_try") 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_try") 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_search_opendir=$ac_res
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8838 rm -f core conftest.err conftest.$ac_objext \
8840 if test "${ac_cv_search_opendir+set}" = set; then
8844 if test "${ac_cv_search_opendir+set}" = set; then
8847 ac_cv_search_opendir=no
8850 LIBS=$ac_func_search_save_LIBS
8852 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8853 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8854 ac_res=$ac_cv_search_opendir
8855 if test "$ac_res" != no; then
8856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8861 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8862 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8863 if test "${ac_cv_search_opendir+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 ac_func_search_save_LIBS=$LIBS
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8889 for ac_lib in '' x; do
8890 if test -z "$ac_lib"; then
8891 ac_res="none required"
8894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (ac_try="$ac_link"
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_link") 2>conftest.er1
8905 grep -v '^ *+' conftest.er1 >conftest.err
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8911 { (case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_try") 2>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_try") 2>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_cv_search_opendir=$ac_res
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8938 rm -f core conftest.err conftest.$ac_objext \
8940 if test "${ac_cv_search_opendir+set}" = set; then
8944 if test "${ac_cv_search_opendir+set}" = set; then
8947 ac_cv_search_opendir=no
8950 LIBS=$ac_func_search_save_LIBS
8952 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8953 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8954 ac_res=$ac_cv_search_opendir
8955 if test "$ac_res" != no; then
8956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8963 for ac_header in dlfcn.h
8965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 ac_res=`eval echo '${'$as_ac_Header'}'`
8973 { echo "$as_me:$LINENO: result: $ac_res" >&5
8974 echo "${ECHO_T}$ac_res" >&6; }
8976 # Is the header compilable?
8977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8979 cat >conftest.$ac_ext <<_ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 $ac_includes_default
8986 #include <$ac_header>
8988 rm -f conftest.$ac_objext
8989 if { (ac_try="$ac_compile"
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_compile") 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_header_compiler=yes
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 ac_header_compiler=no
9030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9032 echo "${ECHO_T}$ac_header_compiler" >&6; }
9034 # Is the header present?
9035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 #include <$ac_header>
9045 if { (ac_try="$ac_cpp conftest.$ac_ext"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } >/dev/null; then
9058 if test -s conftest.err; then
9059 ac_cpp_err=$ac_c_preproc_warn_flag
9060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9067 if test -z "$ac_cpp_err"; then
9068 ac_header_preproc=yes
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_header_preproc=no
9076 rm -f conftest.err conftest.$ac_ext
9077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9078 echo "${ECHO_T}$ac_header_preproc" >&6; }
9080 # So? What about this header?
9081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9087 ac_header_preproc=yes
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9103 ## ----------------------------------- ##
9104 ## Report this to llvmbugs@cs.uiuc.edu ##
9105 ## ----------------------------------- ##
9107 ) | sed "s/^/$as_me: WARNING: /" >&2
9110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 eval "$as_ac_Header=\$ac_header_preproc"
9117 ac_res=`eval echo '${'$as_ac_Header'}'`
9118 { echo "$as_me:$LINENO: result: $ac_res" >&5
9119 echo "${ECHO_T}$ac_res" >&6; }
9122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9131 # Check whether --enable-ltdl-install was given.
9132 if test "${enable_ltdl_install+set}" = set; then
9133 enableval=$enable_ltdl_install;
9139 if test x"${enable_ltdl_install-no}" != xno; then
9141 INSTALL_LTDL_FALSE='#'
9143 INSTALL_LTDL_TRUE='#'
9149 if test x"${enable_ltdl_convenience-no}" != xno; then
9150 CONVENIENCE_LTDL_TRUE=
9151 CONVENIENCE_LTDL_FALSE='#'
9153 CONVENIENCE_LTDL_TRUE='#'
9154 CONVENIENCE_LTDL_FALSE=
9158 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9161 libname_spec='lib$name'
9169 shlibpath_overrides_runpath=unknown
9171 dynamic_linker="$host_os ld.so"
9172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9173 if test "$GCC" = yes; then
9174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9175 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9176 # if the path contains ";" then we assume it to be the separator
9177 # otherwise default to the standard path separator (i.e. ":") - it is
9178 # assumed that no part of a normal pathname contains ";" but that should
9179 # okay in the real world where ";" in dirpaths is itself problematic.
9180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9187 need_lib_prefix=unknown
9188 hardcode_into_libs=no
9190 # when you set need_version to no, make sure it does not cause -set_version
9191 # flags to be left without arguments
9192 need_version=unknown
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9198 shlibpath_var=LIBPATH
9200 # AIX 3 has no versioning support, so we append a major version to the name.
9201 soname_spec='${libname}${release}${shared_ext}$major'
9208 hardcode_into_libs=yes
9209 if test "$host_cpu" = ia64; then
9210 # AIX 5 supports IA64
9211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9212 shlibpath_var=LD_LIBRARY_PATH
9214 # With GCC up to 2.95.x, collect2 would create an import file
9215 # for dependence libraries. The import file would start with
9216 # the line `#! .'. This would cause the generated library to
9217 # depend on `.', always an invalid library. This was fixed in
9218 # development snapshots of GCC prior to 3.0.
9220 aix4 | aix4.[01] | aix4.[01].*)
9221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9231 # soname into executable. Probably we can add versioning support to
9232 # collect2, so additional links can be useful in future.
9233 if test "$aix_use_runtimelinking" = yes; then
9234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9235 # instead of lib<name>.a to let people know that these are not
9236 # typical AIX shared libraries.
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239 # We preserve .a as extension for shared libraries through AIX4.2
9240 # and later when we are not doing run time linking.
9241 library_names_spec='${libname}${release}.a $libname.a'
9242 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LIBPATH
9249 library_names_spec='$libname.ixlibrary $libname.a'
9250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9251 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'
9255 library_names_spec='${libname}${shared_ext}'
9256 dynamic_linker="$host_os ld.so"
9257 shlibpath_var=LIBRARY_PATH
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9269 # the default ld.so.conf also contains /usr/contrib/lib and
9270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9271 # libtool to hard-code these into programs
9274 cygwin* | mingw* | pw32*)
9275 version_type=windows
9280 case $GCC,$host_os in
9281 yes,cygwin* | yes,mingw* | yes,pw32*)
9282 library_names_spec='$libname.dll.a'
9283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9284 postinstall_cmds='base_file=`basename \${file}`~
9285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9286 dldir=$destdir/`dirname \$dlpath`~
9287 test -d \$dldir || mkdir -p \$dldir~
9288 $install_prog $dir/$dlname \$dldir/$dlname~
9289 chmod a+x \$dldir/$dlname'
9290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9291 dlpath=$dir/\$dldll~
9293 shlibpath_overrides_runpath=yes
9297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9302 # MinGW DLLs use traditional 'lib' prefix
9303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9305 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9306 # It is most probably a Windows format PATH printed by
9307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9308 # path with ; separators, and with drive letters. We can handle the
9309 # drive letters (cygwin fileutils understands them), so leave them,
9310 # especially as we might pass files found there to a mingw objdump,
9311 # which wouldn't understand a cygwinified path. Ahh.
9312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9318 # pw32 DLLs use 'pw' prefix rather than 'lib'
9319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9328 dynamic_linker='Win32 ld.exe'
9329 # FIXME: first we should search . and the directory the executable is in
9333 darwin* | rhapsody*)
9334 dynamic_linker="$host_os dyld"
9338 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9339 soname_spec='${libname}${release}${major}$shared_ext'
9340 shlibpath_overrides_runpath=yes
9341 shlibpath_var=DYLD_LIBRARY_PATH
9342 shrext_cmds='.dylib'
9343 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9344 if test "$GCC" = yes; then
9345 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"`
9347 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=no
9373 hardcode_into_libs=yes
9374 dynamic_linker='GNU ld.so'
9377 freebsd* | dragonfly*)
9378 # DragonFly does not have aout. When/if they implement a new
9379 # versioning mechanism, adjust this.
9380 if test -x /usr/bin/objformat; then
9381 objformat=`/usr/bin/objformat`
9384 freebsd[123]*) objformat=aout ;;
9388 version_type=freebsd-$objformat
9389 case $version_type in
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9400 shlibpath_var=LD_LIBRARY_PATH
9403 shlibpath_overrides_runpath=yes
9405 freebsd3.[01]* | freebsdelf3.[01]*)
9406 shlibpath_overrides_runpath=yes
9407 hardcode_into_libs=yes
9409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9411 shlibpath_overrides_runpath=no
9412 hardcode_into_libs=yes
9414 freebsd*) # from 4.6 on
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 hardcode_into_libs=yes
9431 hpux9* | hpux10* | hpux11*)
9432 # Give a soname corresponding to the major version so that dld.sl refuses to
9433 # link against other versions.
9440 hardcode_into_libs=yes
9441 dynamic_linker="$host_os dld.so"
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 if test "X$HPUX_IA64_MODE" = X32; then
9447 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 hardcode_into_libs=yes
9456 dynamic_linker="$host_os dld.sl"
9457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9466 dynamic_linker="$host_os dld.sl"
9467 shlibpath_var=SHLIB_PATH
9468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 soname_spec='${libname}${release}${shared_ext}$major'
9473 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9474 postinstall_cmds='chmod 555 $lib'
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9482 soname_spec='${libname}${release}${shared_ext}$major'
9483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=no
9486 hardcode_into_libs=yes
9489 irix5* | irix6* | nonstopux*)
9491 nonstopux*) version_type=nonstopux ;;
9493 if test "$lt_cv_prog_gnu_ld" = yes; then
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9504 irix5* | nonstopux*)
9508 case $LD in # libtool.m4 will add one of these switches to LD
9509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9510 libsuff= shlibsuff= libmagic=32-bit;;
9511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9512 libsuff=32 shlibsuff=N32 libmagic=N32;;
9513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9515 *) libsuff= shlibsuff= libmagic=never-match;;
9519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9520 shlibpath_overrides_runpath=no
9521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9523 hardcode_into_libs=yes
9526 # No shared lib support for Linux oldld, aout, or coff.
9527 linux*oldld* | linux*aout* | linux*coff*)
9531 # This must be Linux ELF.
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 shlibpath_overrides_runpath=no
9541 # This implies no fast_install, which is unacceptable.
9542 # Some rework will be needed to allow for fast_install
9543 # before this can be enabled.
9544 hardcode_into_libs=yes
9546 # Append ld.so.conf contents to the search path
9547 if test -f /etc/ld.so.conf; then
9548 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' ' '`
9549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9552 # We used to test for /lib/ld.so.1 and disable shared libraries on
9553 # powerpc, because MkLinux only supported shared libraries with the
9554 # GNU dynamic linker. Since this was broken with cross compilers,
9555 # most powerpc-linux boxes support dynamic linking these days and
9556 # people can always --disable-shared, the test was removed, and we
9557 # assume the GNU/Linux dynamic linker is in use.
9558 dynamic_linker='GNU/Linux ld.so'
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=no
9569 hardcode_into_libs=yes
9570 dynamic_linker='GNU ld.so'
9577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9580 dynamic_linker='NetBSD (a.out) ld.so'
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 dynamic_linker='NetBSD ld.elf_so'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes
9588 hardcode_into_libs=yes
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 shlibpath_var=LD_LIBRARY_PATH
9595 shlibpath_overrides_runpath=yes
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9610 sys_lib_dlsearch_path_spec="/usr/lib"
9612 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9614 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9615 *) need_version=no ;;
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9622 openbsd2.[89] | openbsd2.[89].*)
9623 shlibpath_overrides_runpath=no
9626 shlibpath_overrides_runpath=yes
9630 shlibpath_overrides_runpath=yes
9635 libname_spec='$name'
9638 library_names_spec='$libname${shared_ext} $libname.a'
9639 dynamic_linker='OS/2 ld.exe'
9640 shlibpath_var=LIBPATH
9643 osf3* | osf4* | osf5*)
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9651 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=yes
9662 hardcode_into_libs=yes
9663 # ldd complains unless libraries are executable
9664 postinstall_cmds='chmod +x $lib'
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9671 shlibpath_var=LD_LIBRARY_PATH
9672 shlibpath_overrides_runpath=yes
9673 if test "$with_gnu_ld" = yes; then
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 case $host_vendor in
9686 shlibpath_overrides_runpath=no
9688 export_dynamic_flag_spec='${wl}-Blargedynsym'
9689 runpath_var=LD_RUN_PATH
9697 shlibpath_overrides_runpath=no
9698 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9704 if test -d /usr/nec ;then
9706 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9707 soname_spec='$libname${shared_ext}.$major'
9708 shlibpath_var=LD_LIBRARY_PATH
9712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9713 version_type=freebsd-elf
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 shlibpath_var=LD_LIBRARY_PATH
9719 hardcode_into_libs=yes
9720 if test "$with_gnu_ld" = yes; then
9721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9722 shlibpath_overrides_runpath=no
9724 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9725 shlibpath_overrides_runpath=yes
9728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9732 sys_lib_dlsearch_path_spec='/usr/lib'
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 shlibpath_var=LD_LIBRARY_PATH
9746 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9747 echo "${ECHO_T}$dynamic_linker" >&6; }
9748 test "$dynamic_linker" = no && can_build_shared=no
9750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751 if test "$GCC" = yes; then
9752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9756 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9757 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9758 if test "${libltdl_cv_shlibext+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 eval libltdl_cv_shlibext=$shrext_cmds
9766 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9767 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9768 if test -n "$libltdl_cv_shlibext"; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9777 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9778 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9779 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 libltdl_cv_shlibpath_var="$shlibpath_var"
9784 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9785 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9786 if test -n "$libltdl_cv_shlibpath_var"; then
9788 cat >>confdefs.h <<_ACEOF
9789 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9795 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9796 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9797 if test "${libltdl_cv_sys_search_path+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9802 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9803 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9804 if test -n "$libltdl_cv_sys_search_path"; then
9806 for dir in $libltdl_cv_sys_search_path; do
9807 if test -z "$sys_search_path"; then
9808 sys_search_path="$dir"
9810 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9814 cat >>confdefs.h <<_ACEOF
9815 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9820 { echo "$as_me:$LINENO: checking for objdir" >&5
9821 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9822 if test "${libltdl_cv_objdir+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 libltdl_cv_objdir="$objdir"
9826 if test -n "$objdir"; then
9829 rm -f .libs 2>/dev/null
9830 mkdir .libs 2>/dev/null
9831 if test -d .libs; then
9832 libltdl_cv_objdir=.libs
9834 # MS-DOS does not allow filenames that begin with a dot.
9835 libltdl_cv_objdir=_libs
9837 rmdir .libs 2>/dev/null
9841 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9842 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9844 cat >>confdefs.h <<_ACEOF
9845 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9853 # Check for command to grab the raw symbol name followed by C symbol from nm.
9854 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9855 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9856 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 # These are sane defaults that work on at least a few old systems.
9861 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9863 # Character class describing NM global symbol codes.
9864 symcode='[BCDEGRST]'
9866 # Regexp to match symbols that can be accessed directly from C.
9867 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9869 # Transform an extracted symbol line into a proper C declaration
9870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9872 # Transform an extracted symbol line into symbol name and symbol address
9873 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'"
9875 # Define system-specific variables.
9880 cygwin* | mingw* | pw32*)
9881 symcode='[ABCDGISTW]'
9883 hpux*) # Its linker distinguishes data from code symbols
9884 if test "$host_cpu" = ia64; then
9885 symcode='[ABCDEGRST]'
9887 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9888 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'"
9891 if test "$host_cpu" = ia64; then
9892 symcode='[ABCDGIRSTW]'
9893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9894 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'"
9898 symcode='[BCDEGRST]'
9901 symcode='[BCDEGQRST]'
9912 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9920 # Handle CRLF in mingw tool chain
9924 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9928 # If we're using GNU nm, then use its standard symbol codes.
9929 case `$NM -V 2>&1` in
9930 *GNU* | *'with BFD'*)
9931 symcode='[ABCDGIRSTW]' ;;
9934 # Try without a prefix undercore, then with it.
9935 for ac_symprfx in "" "_"; do
9937 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9938 symxfrm="\\1 $ac_symprfx\\2 \\2"
9940 # Write the raw and C identifiers.
9941 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9943 # Check to see that the pipe works correctly.
9947 cat > conftest.$ac_ext <<EOF
9952 void nm_test_func(){}
9956 int main(){nm_test_var='a';nm_test_func();return(0);}
9959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9960 (eval $ac_compile) 2>&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; then
9964 # Now try to grab the symbols.
9966 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9967 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && test -s "$nlist"; then
9971 # Try sorting and uniquifying the output.
9972 if sort "$nlist" | uniq > "$nlist"T; then
9973 mv -f "$nlist"T "$nlist"
9978 # Make sure that we snagged all the symbols we need.
9979 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9980 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9981 cat <<EOF > conftest.$ac_ext
9987 # Now generate the symbol file.
9988 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9990 cat <<EOF >> conftest.$ac_ext
9991 #if defined (__STDC__) && __STDC__
9992 # define lt_ptr_t void *
9994 # define lt_ptr_t char *
9998 /* The mapping between symbol names and symbols. */
10003 lt_preloaded_symbols[] =
10006 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10007 cat <<\EOF >> conftest.$ac_ext
10015 # Now try linking the two files.
10016 mv conftest.$ac_objext conftstm.$ac_objext
10017 lt_save_LIBS="$LIBS"
10018 lt_save_CFLAGS="$CFLAGS"
10019 LIBS="conftstm.$ac_objext"
10020 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10028 LIBS="$lt_save_LIBS"
10029 CFLAGS="$lt_save_CFLAGS"
10031 echo "cannot find nm_test_func in $nlist" >&5
10034 echo "cannot find nm_test_var in $nlist" >&5
10037 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10040 echo "$progname: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10043 rm -f conftest* conftst*
10045 # Do not use the global_symbol_pipe unless it works.
10046 if test "$pipe_works" = yes; then
10049 lt_cv_sys_global_symbol_pipe=
10055 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10056 lt_cv_sys_global_symbol_to_cdecl=
10058 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10059 { echo "$as_me:$LINENO: result: failed" >&5
10060 echo "${ECHO_T}failed" >&6; }
10062 { echo "$as_me:$LINENO: result: ok" >&5
10063 echo "${ECHO_T}ok" >&6; }
10067 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10068 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10069 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10073 libltdl_cv_preloaded_symbols=yes
10075 libltdl_cv_preloaded_symbols=no
10079 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10080 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10081 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10083 cat >>confdefs.h <<\_ACEOF
10084 #define HAVE_PRELOADED_SYMBOLS 1
10092 ac_cpp='$CPP $CPPFLAGS'
10093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10098 { echo "$as_me:$LINENO: checking for shl_load" >&5
10099 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10100 if test "${ac_cv_func_shl_load+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10111 #define shl_load innocuous_shl_load
10113 /* System header to define __stub macros and hopefully few prototypes,
10114 which can conflict with char shl_load (); below.
10115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10116 <limits.h> exists even on freestanding compilers. */
10119 # include <limits.h>
10121 # include <assert.h>
10126 /* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
10133 /* The GNU C library defines this for functions which it implements
10134 to always fail with ENOSYS. Some functions are actually named
10135 something starting with __ and the normal name is an alias. */
10136 #if defined __stub_shl_load || defined __stub___shl_load
10143 return shl_load ();
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_link") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ac_cv_func_shl_load=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_func_shl_load=no
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10193 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10194 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10195 if test $ac_cv_func_shl_load = yes; then
10197 cat >>confdefs.h <<\_ACEOF
10198 #define HAVE_SHL_LOAD 1
10202 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10203 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10204 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 ac_check_lib_save_LIBS=$LIBS
10209 cat >conftest.$ac_ext <<_ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10226 return shl_load ();
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_try") 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_cv_lib_dld_shl_load=yes
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10270 ac_cv_lib_dld_shl_load=no
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10277 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10278 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10279 if test $ac_cv_lib_dld_shl_load = yes; then
10281 cat >>confdefs.h <<\_ACEOF
10282 #define HAVE_SHL_LOAD 1
10285 LIBADD_DL="$LIBADD_DL -ldld"
10287 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10288 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 ac_check_lib_save_LIBS=$LIBS
10294 cat >conftest.$ac_ext <<_ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10301 /* Override any GCC internal prototype to avoid an error.
10302 Use char because int might match the return type of a GCC
10303 builtin and then its argument prototype would still apply. */
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_link") 2>conftest.er1
10325 grep -v '^ *+' conftest.er1 >conftest.err
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest$ac_exeext'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 ac_cv_lib_dl_dlopen=yes
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_cv_lib_dl_dlopen=no
10358 rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 LIBS=$ac_check_lib_save_LIBS
10362 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10363 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10364 if test $ac_cv_lib_dl_dlopen = yes; then
10366 cat >>confdefs.h <<\_ACEOF
10367 #define HAVE_LIBDL 1
10370 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10379 # include <dlfcn.h>
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_link") 2>conftest.er1
10399 grep -v '^ *+' conftest.er1 >conftest.err
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10405 { (case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_try") 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; } &&
10414 { ac_try='test -s conftest$ac_exeext'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_LIBDL 1
10428 libltdl_cv_func_dlopen="yes"
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10434 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10435 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lsvld $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10477 { (case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_try") 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest$ac_exeext'
10487 { (case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_try") 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_lib_svld_dlopen=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_lib_svld_dlopen=no
10504 rm -f core conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_check_lib_save_LIBS
10508 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10509 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10510 if test $ac_cv_lib_svld_dlopen = yes; then
10512 cat >>confdefs.h <<\_ACEOF
10513 #define HAVE_LIBDL 1
10516 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10518 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10519 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10520 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 ac_check_lib_save_LIBS=$LIBS
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10532 /* Override any GCC internal prototype to avoid an error.
10533 Use char because int might match the return type of a GCC
10534 builtin and then its argument prototype would still apply. */
10542 return dld_link ();
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1 >conftest.err
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10562 { (case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_try") 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_try") 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 ac_cv_lib_dld_dld_link=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_cv_lib_dld_dld_link=no
10589 rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10594 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10595 if test $ac_cv_lib_dld_dld_link = yes; then
10597 cat >>confdefs.h <<\_ACEOF
10601 LIBADD_DL="$LIBADD_DL -ldld"
10603 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10604 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10605 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10616 #define _dyld_func_lookup innocuous__dyld_func_lookup
10618 /* System header to define __stub macros and hopefully few prototypes,
10619 which can conflict with char _dyld_func_lookup (); below.
10620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10621 <limits.h> exists even on freestanding compilers. */
10624 # include <limits.h>
10626 # include <assert.h>
10629 #undef _dyld_func_lookup
10631 /* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10637 char _dyld_func_lookup ();
10638 /* The GNU C library defines this for functions which it implements
10639 to always fail with ENOSYS. Some functions are actually named
10640 something starting with __ and the normal name is an alias. */
10641 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10648 return _dyld_func_lookup ();
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (ac_try="$ac_link"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_link") 2>conftest.er1
10662 grep -v '^ *+' conftest.er1 >conftest.err
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10668 { (case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_try") 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_try") 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_func__dyld_func_lookup=yes
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 ac_cv_func__dyld_func_lookup=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10698 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10699 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10700 if test $ac_cv_func__dyld_func_lookup = yes; then
10702 cat >>confdefs.h <<\_ACEOF
10703 #define HAVE_DYLD 1
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10729 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10731 lt_save_LIBS="$LIBS"
10732 LIBS="$LIBS $LIBADD_DL"
10734 for ac_func in dlerror
10736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.$ac_ext <<_ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10750 #define $ac_func innocuous_$ac_func
10752 /* System header to define __stub macros and hopefully few prototypes,
10753 which can conflict with char $ac_func (); below.
10754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755 <limits.h> exists even on freestanding compilers. */
10758 # include <limits.h>
10760 # include <assert.h>
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10772 /* The GNU C library defines this for functions which it implements
10773 to always fail with ENOSYS. Some functions are actually named
10774 something starting with __ and the normal name is an alias. */
10775 #if defined __stub_$ac_func || defined __stub___$ac_func
10782 return $ac_func ();
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_link") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest$ac_exeext'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 eval "$as_ac_var=yes"
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 eval "$as_ac_var=no"
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10832 ac_res=`eval echo '${'$as_ac_var'}'`
10833 { echo "$as_me:$LINENO: result: $ac_res" >&5
10834 echo "${ECHO_T}$ac_res" >&6; }
10835 if test `eval echo '${'$as_ac_var'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10843 LIBS="$lt_save_LIBS"
10846 ac_cpp='$CPP $CPPFLAGS'
10847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10853 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10854 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10855 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 ac_cv_sys_symbol_underscore=no
10859 cat > conftest.$ac_ext <<EOF
10860 void nm_test_func(){}
10861 int main(){nm_test_func;return 0;}
10863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864 (eval $ac_compile) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; then
10868 # Now try to grab the symbols.
10869 ac_nlist=conftest.nm
10870 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10871 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && test -s "$ac_nlist"; then
10875 # See whether the symbols have a leading underscore.
10876 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10877 ac_cv_sys_symbol_underscore=yes
10879 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10882 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10886 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10889 echo "configure: failed program was:" >&5
10895 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10896 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10899 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10900 if test x"$libltdl_cv_func_dlopen" = xyes ||
10901 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10902 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10903 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10904 if test "${libltdl_cv_need_uscore+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 libltdl_cv_need_uscore=unknown
10909 LIBS="$LIBS $LIBADD_DL"
10910 if test "$cross_compiling" = yes; then :
10911 libltdl_cv_need_uscore=cross
10913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10914 lt_status=$lt_dlunknown
10915 cat > conftest.$ac_ext <<EOF
10916 #line 10916 "configure"
10917 #include "confdefs.h"
10926 # define LT_DLGLOBAL RTLD_GLOBAL
10929 # define LT_DLGLOBAL DL_GLOBAL
10931 # define LT_DLGLOBAL 0
10935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10936 find out it does not work in some platform. */
10937 #ifndef LT_DLLAZY_OR_NOW
10939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10942 # define LT_DLLAZY_OR_NOW DL_LAZY
10945 # define LT_DLLAZY_OR_NOW RTLD_NOW
10948 # define LT_DLLAZY_OR_NOW DL_NOW
10950 # define LT_DLLAZY_OR_NOW 0
10958 extern "C" void exit (int);
10961 void fnord() { int i=42;}
10964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10965 int status = $lt_dlunknown;
10969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10971 /* dlclose (self); */
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10984 (./conftest; exit; ) >&5 2>/dev/null
10986 case x$lt_status in
10987 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10988 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10989 x$lt_dlunknown|x*) ;;
10992 # compilation failed
11001 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11002 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11006 if test x"$libltdl_cv_need_uscore" = xyes; then
11008 cat >>confdefs.h <<\_ACEOF
11009 #define NEED_USCORE 1
11015 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11016 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11017 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 # PORTME does your system automatically load deplibs for dlopen?
11021 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11022 # For now, we just catch OSes we know something about -- in the
11023 # future, we'll try test this programmatically.
11024 libltdl_cv_sys_dlopen_deplibs=unknown
11026 aix3*|aix4.1.*|aix4.2.*)
11027 # Unknown whether this is true for these versions of AIX, but
11028 # we want this `case' here to explicitly catch those versions.
11029 libltdl_cv_sys_dlopen_deplibs=unknown
11032 libltdl_cv_sys_dlopen_deplibs=yes
11035 # Assuming the user has installed a libdl from somewhere, this is true
11036 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11037 libltdl_cv_sys_dlopen_deplibs=yes
11039 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11040 # GNU and its variants, using gnu ld.so (Glibc)
11041 libltdl_cv_sys_dlopen_deplibs=yes
11044 libltdl_cv_sys_dlopen_deplibs=yes
11047 libltdl_cv_sys_dlopen_deplibs=yes
11049 irix[12345]*|irix6.[01]*)
11050 # Catch all versions of IRIX before 6.2, and indicate that we don't
11051 # know how it worked for any of those versions.
11052 libltdl_cv_sys_dlopen_deplibs=unknown
11055 # The case above catches anything before 6.2, and it's known that
11056 # at 6.2 and later dlopen does load deplibs.
11057 libltdl_cv_sys_dlopen_deplibs=yes
11060 libltdl_cv_sys_dlopen_deplibs=yes
11063 libltdl_cv_sys_dlopen_deplibs=yes
11066 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11067 # it did *not* use an RPATH in a shared library to find objects the
11068 # library depends on, so we explictly say `no'.
11069 libltdl_cv_sys_dlopen_deplibs=no
11071 osf5.0|osf5.0a|osf5.1)
11072 # dlopen *does* load deplibs and with the right loader patch applied
11073 # it even uses RPATH in a shared library to search for shared objects
11074 # that the library depends on, but there's no easy way to know if that
11075 # patch is installed. Since this is the case, all we can really
11076 # say is unknown -- it depends on the patch being installed. If
11077 # it is, this changes to `yes'. Without it, it would be `no'.
11078 libltdl_cv_sys_dlopen_deplibs=unknown
11081 # the two cases above should catch all versions of osf <= 5.1. Read
11082 # the comments above for what we know about them.
11083 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11084 # is used to find them so we can finally say `yes'.
11085 libltdl_cv_sys_dlopen_deplibs=yes
11088 libltdl_cv_sys_dlopen_deplibs=yes
11090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11091 libltdl_cv_sys_dlopen_deplibs=yes
11096 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11097 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11098 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define LTDL_DLOPEN_DEPLIBS 1
11107 for ac_header in argz.h
11109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 ac_res=`eval echo '${'$as_ac_Header'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11120 # Is the header compilable?
11121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 $ac_includes_default
11130 #include <$ac_header>
11132 rm -f conftest.$ac_objext
11133 if { (ac_try="$ac_compile"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_compile") 2>conftest.er1
11141 grep -v '^ *+' conftest.er1 >conftest.err
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11147 { (case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_try") 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest.$ac_objext'
11157 { (case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_try") 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 ac_header_compiler=yes
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 ac_header_compiler=no
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11176 echo "${ECHO_T}$ac_header_compiler" >&6; }
11178 # Is the header present?
11179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11181 cat >conftest.$ac_ext <<_ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 #include <$ac_header>
11189 if { (ac_try="$ac_cpp conftest.$ac_ext"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11197 grep -v '^ *+' conftest.er1 >conftest.err
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } >/dev/null; then
11202 if test -s conftest.err; then
11203 ac_cpp_err=$ac_c_preproc_warn_flag
11204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11211 if test -z "$ac_cpp_err"; then
11212 ac_header_preproc=yes
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_header_preproc=no
11220 rm -f conftest.err conftest.$ac_ext
11221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222 echo "${ECHO_T}$ac_header_preproc" >&6; }
11224 # So? What about this header?
11225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231 ac_header_preproc=yes
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11247 ## ----------------------------------- ##
11248 ## Report this to llvmbugs@cs.uiuc.edu ##
11249 ## ----------------------------------- ##
11251 ) | sed "s/^/$as_me: WARNING: /" >&2
11254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 eval "$as_ac_Header=\$ac_header_preproc"
11261 ac_res=`eval echo '${'$as_ac_Header'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11267 cat >>confdefs.h <<_ACEOF
11268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276 { echo "$as_me:$LINENO: checking for error_t" >&5
11277 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11278 if test "${ac_cv_type_error_t+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11291 typedef error_t ac__type_new_;
11295 if ((ac__type_new_ *) 0)
11297 if (sizeof (ac__type_new_))
11303 rm -f conftest.$ac_objext
11304 if { (ac_try="$ac_compile"
11305 case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_compile") 2>conftest.er1
11312 grep -v '^ *+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11318 { (case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_try") 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_try") 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_type_error_t=yes
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 ac_cv_type_error_t=no
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11348 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11349 if test $ac_cv_type_error_t = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define HAVE_ERROR_T 1
11358 cat >>confdefs.h <<\_ACEOF
11359 #define error_t int
11370 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11386 #define $ac_func innocuous_$ac_func
11388 /* System header to define __stub macros and hopefully few prototypes,
11389 which can conflict with char $ac_func (); below.
11390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11391 <limits.h> exists even on freestanding compilers. */
11394 # include <limits.h>
11396 # include <assert.h>
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11408 /* The GNU C library defines this for functions which it implements
11409 to always fail with ENOSYS. Some functions are actually named
11410 something starting with __ and the normal name is an alias. */
11411 #if defined __stub_$ac_func || defined __stub___$ac_func
11418 return $ac_func ();
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (ac_try="$ac_link"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_link") 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438 { (case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_try") 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest$ac_exeext'
11448 { (case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_try") 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 eval "$as_ac_var=yes"
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 eval "$as_ac_var=no"
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11468 ac_res=`eval echo '${'$as_ac_var'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11471 if test `eval echo '${'$as_ac_var'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11506 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11520 # Is the header compilable?
11521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <$ac_header>
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_compile") 2>conftest.er1
11541 grep -v '^ *+' conftest.er1 >conftest.err
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_try") 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; } &&
11556 { ac_try='test -s conftest.$ac_objext'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_header_compiler=yes
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_header_compiler=no
11574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11576 echo "${ECHO_T}$ac_header_compiler" >&6; }
11578 # Is the header present?
11579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11581 cat >conftest.$ac_ext <<_ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 #include <$ac_header>
11589 if { (ac_try="$ac_cpp conftest.$ac_ext"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } >/dev/null; then
11602 if test -s conftest.err; then
11603 ac_cpp_err=$ac_c_preproc_warn_flag
11604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11611 if test -z "$ac_cpp_err"; then
11612 ac_header_preproc=yes
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 ac_header_preproc=no
11620 rm -f conftest.err conftest.$ac_ext
11621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11622 echo "${ECHO_T}$ac_header_preproc" >&6; }
11624 # So? What about this header?
11625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11631 ac_header_preproc=yes
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11647 ## ----------------------------------- ##
11648 ## Report this to llvmbugs@cs.uiuc.edu ##
11649 ## ----------------------------------- ##
11651 ) | sed "s/^/$as_me: WARNING: /" >&2
11654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 eval "$as_ac_Header=\$ac_header_preproc"
11661 ac_res=`eval echo '${'$as_ac_Header'}'`
11662 { echo "$as_me:$LINENO: result: $ac_res" >&5
11663 echo "${ECHO_T}$ac_res" >&6; }
11666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11667 cat >>confdefs.h <<_ACEOF
11668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11679 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 ac_res=`eval echo '${'$as_ac_Header'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11692 # Is the header compilable?
11693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 $ac_includes_default
11702 #include <$ac_header>
11704 rm -f conftest.$ac_objext
11705 if { (ac_try="$ac_compile"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_compile") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest.$ac_objext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_header_compiler=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_header_compiler=no
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11748 echo "${ECHO_T}$ac_header_compiler" >&6; }
11750 # Is the header present?
11751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <$ac_header>
11761 if { (ac_try="$ac_cpp conftest.$ac_ext"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } >/dev/null; then
11774 if test -s conftest.err; then
11775 ac_cpp_err=$ac_c_preproc_warn_flag
11776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11783 if test -z "$ac_cpp_err"; then
11784 ac_header_preproc=yes
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ac_header_preproc=no
11792 rm -f conftest.err conftest.$ac_ext
11793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11794 echo "${ECHO_T}$ac_header_preproc" >&6; }
11796 # So? What about this header?
11797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11803 ac_header_preproc=yes
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11819 ## ----------------------------------- ##
11820 ## Report this to llvmbugs@cs.uiuc.edu ##
11821 ## ----------------------------------- ##
11823 ) | sed "s/^/$as_me: WARNING: /" >&2
11826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 eval "$as_ac_Header=\$ac_header_preproc"
11833 ac_res=`eval echo '${'$as_ac_Header'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11849 for ac_header in string.h strings.h
11851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 ac_res=`eval echo '${'$as_ac_Header'}'`
11859 { echo "$as_me:$LINENO: result: $ac_res" >&5
11860 echo "${ECHO_T}$ac_res" >&6; }
11862 # Is the header compilable?
11863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11872 #include <$ac_header>
11874 rm -f conftest.$ac_objext
11875 if { (ac_try="$ac_compile"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_compile") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_header_compiler=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_header_compiler=no
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11918 echo "${ECHO_T}$ac_header_compiler" >&6; }
11920 # Is the header present?
11921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 #include <$ac_header>
11931 if { (ac_try="$ac_cpp conftest.$ac_ext"
11932 case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11939 grep -v '^ *+' conftest.er1 >conftest.err
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } >/dev/null; then
11944 if test -s conftest.err; then
11945 ac_cpp_err=$ac_c_preproc_warn_flag
11946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11953 if test -z "$ac_cpp_err"; then
11954 ac_header_preproc=yes
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 ac_header_preproc=no
11962 rm -f conftest.err conftest.$ac_ext
11963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11964 echo "${ECHO_T}$ac_header_preproc" >&6; }
11966 # So? What about this header?
11967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11973 ac_header_preproc=yes
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11989 ## ----------------------------------- ##
11990 ## Report this to llvmbugs@cs.uiuc.edu ##
11991 ## ----------------------------------- ##
11993 ) | sed "s/^/$as_me: WARNING: /" >&2
11996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 eval "$as_ac_Header=\$ac_header_preproc"
12003 ac_res=`eval echo '${'$as_ac_Header'}'`
12004 { echo "$as_me:$LINENO: result: $ac_res" >&5
12005 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12020 for ac_func in strchr index
12022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 cat >conftest.$ac_ext <<_ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12036 #define $ac_func innocuous_$ac_func
12038 /* System header to define __stub macros and hopefully few prototypes,
12039 which can conflict with char $ac_func (); below.
12040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12041 <limits.h> exists even on freestanding compilers. */
12044 # include <limits.h>
12046 # include <assert.h>
12051 /* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
12058 /* The GNU C library defines this for functions which it implements
12059 to always fail with ENOSYS. Some functions are actually named
12060 something starting with __ and the normal name is an alias. */
12061 #if defined __stub_$ac_func || defined __stub___$ac_func
12068 return $ac_func ();
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (ac_try="$ac_link"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_link") 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_try") 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 eval "$as_ac_var=yes"
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 eval "$as_ac_var=no"
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12118 ac_res=`eval echo '${'$as_ac_var'}'`
12119 { echo "$as_me:$LINENO: result: $ac_res" >&5
12120 echo "${ECHO_T}$ac_res" >&6; }
12121 if test `eval echo '${'$as_ac_var'}'` = yes; then
12122 cat >>confdefs.h <<_ACEOF
12123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12131 for ac_func in strrchr rindex
12133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12147 #define $ac_func innocuous_$ac_func
12149 /* System header to define __stub macros and hopefully few prototypes,
12150 which can conflict with char $ac_func (); below.
12151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152 <limits.h> exists even on freestanding compilers. */
12155 # include <limits.h>
12157 # include <assert.h>
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12169 /* The GNU C library defines this for functions which it implements
12170 to always fail with ENOSYS. Some functions are actually named
12171 something starting with __ and the normal name is an alias. */
12172 #if defined __stub_$ac_func || defined __stub___$ac_func
12179 return $ac_func ();
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (ac_try="$ac_link"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_link") 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 eval "$as_ac_var=yes"
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 eval "$as_ac_var=no"
12226 rm -f core conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
12229 ac_res=`eval echo '${'$as_ac_var'}'`
12230 { echo "$as_me:$LINENO: result: $ac_res" >&5
12231 echo "${ECHO_T}$ac_res" >&6; }
12232 if test `eval echo '${'$as_ac_var'}'` = yes; then
12233 cat >>confdefs.h <<_ACEOF
12234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242 for ac_func in memcpy bcopy
12244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12258 #define $ac_func innocuous_$ac_func
12260 /* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char $ac_func (); below.
12262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12263 <limits.h> exists even on freestanding compilers. */
12266 # include <limits.h>
12268 # include <assert.h>
12273 /* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12280 /* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
12283 #if defined __stub_$ac_func || defined __stub___$ac_func
12290 return $ac_func ();
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (ac_try="$ac_link"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_link") 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
12309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12310 { (case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_try") 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest$ac_exeext'
12320 { (case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_try") 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 eval "$as_ac_var=yes"
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 eval "$as_ac_var=no"
12337 rm -f core conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12340 ac_res=`eval echo '${'$as_ac_var'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12343 if test `eval echo '${'$as_ac_var'}'` = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12353 for ac_func in memmove strcmp
12355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 cat >conftest.$ac_ext <<_ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12369 #define $ac_func innocuous_$ac_func
12371 /* System header to define __stub macros and hopefully few prototypes,
12372 which can conflict with char $ac_func (); below.
12373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12374 <limits.h> exists even on freestanding compilers. */
12377 # include <limits.h>
12379 # include <assert.h>
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12391 /* The GNU C library defines this for functions which it implements
12392 to always fail with ENOSYS. Some functions are actually named
12393 something starting with __ and the normal name is an alias. */
12394 #if defined __stub_$ac_func || defined __stub___$ac_func
12401 return $ac_func ();
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (ac_try="$ac_link"
12408 case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_link") 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12421 { (case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_try") 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_try") 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 eval "$as_ac_var=yes"
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 eval "$as_ac_var=no"
12448 rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12451 ac_res=`eval echo '${'$as_ac_var'}'`
12452 { echo "$as_me:$LINENO: result: $ac_res" >&5
12453 echo "${ECHO_T}$ac_res" >&6; }
12454 if test `eval echo '${'$as_ac_var'}'` = yes; then
12455 cat >>confdefs.h <<_ACEOF
12456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12465 for ac_func in closedir opendir readdir
12467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 cat >conftest.$ac_ext <<_ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481 #define $ac_func innocuous_$ac_func
12483 /* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char $ac_func (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12489 # include <limits.h>
12491 # include <assert.h>
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined __stub_$ac_func || defined __stub___$ac_func
12513 return $ac_func ();
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (ac_try="$ac_link"
12520 case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_link") 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest$ac_exeext'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 eval "$as_ac_var=yes"
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 eval "$as_ac_var=no"
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12563 ac_res=`eval echo '${'$as_ac_var'}'`
12564 { echo "$as_me:$LINENO: result: $ac_res" >&5
12565 echo "${ECHO_T}$ac_res" >&6; }
12566 if test `eval echo '${'$as_ac_var'}'` = yes; then
12567 cat >>confdefs.h <<_ACEOF
12568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12575 # Check whether --enable-shared was given.
12576 if test "${enable_shared+set}" = set; then
12577 enableval=$enable_shared; p=${PACKAGE-default}
12579 yes) enable_shared=yes ;;
12580 no) enable_shared=no ;;
12583 # Look at the argument we got. We use all the common list separators.
12584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12585 for pkg in $enableval; do
12587 if test "X$pkg" = "X$p"; then
12599 # Check whether --enable-static was given.
12600 if test "${enable_static+set}" = set; then
12601 enableval=$enable_static; p=${PACKAGE-default}
12603 yes) enable_static=yes ;;
12604 no) enable_static=no ;;
12607 # Look at the argument we got. We use all the common list separators.
12608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12609 for pkg in $enableval; do
12611 if test "X$pkg" = "X$p"; then
12623 # Check whether --enable-fast-install was given.
12624 if test "${enable_fast_install+set}" = set; then
12625 enableval=$enable_fast_install; p=${PACKAGE-default}
12627 yes) enable_fast_install=yes ;;
12628 no) enable_fast_install=no ;;
12630 enable_fast_install=no
12631 # Look at the argument we got. We use all the common list separators.
12632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12633 for pkg in $enableval; do
12635 if test "X$pkg" = "X$p"; then
12636 enable_fast_install=yes
12643 enable_fast_install=yes
12647 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12648 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12649 if test "${lt_cv_path_SED+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 # Loop through the user's path and test for sed and gsed.
12653 # Then use that list of sed's as ones to test for truncation.
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12658 test -z "$as_dir" && as_dir=.
12659 for lt_ac_prog in sed gsed; do
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12662 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12669 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12670 # along with /bin/sed that truncates output.
12671 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12672 test ! -f $lt_ac_sed && continue
12673 cat /dev/null > conftest.in
12675 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12676 # Check for GNU sed and select it if it is found.
12677 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12678 lt_cv_path_SED=$lt_ac_sed
12682 cat conftest.in conftest.in >conftest.tmp
12683 mv conftest.tmp conftest.in
12684 cp conftest.in conftest.nl
12686 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12687 cmp -s conftest.out conftest.nl || break
12688 # 10000 chars as input seems more than enough
12689 test $lt_ac_count -gt 10 && break
12690 lt_ac_count=`expr $lt_ac_count + 1`
12691 if test $lt_ac_count -gt $lt_ac_max; then
12692 lt_ac_max=$lt_ac_count
12693 lt_cv_path_SED=$lt_ac_sed
12700 SED=$lt_cv_path_SED
12701 { echo "$as_me:$LINENO: result: $SED" >&5
12702 echo "${ECHO_T}$SED" >&6; }
12705 # Check whether --with-gnu-ld was given.
12706 if test "${with_gnu_ld+set}" = set; then
12707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12713 if test "$GCC" = yes; then
12714 # Check if gcc -print-prog-name=ld gives a path.
12715 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12716 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12719 # gcc leaves a trailing carriage return which upsets mingw
12720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12725 # Accept absolute paths.
12727 re_direlt='/[^/][^/]*/\.\./'
12728 # Canonicalize the pathname of ld
12729 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12730 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12731 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12733 test -z "$LD" && LD="$ac_prog"
12736 # If it fails, then pretend we aren't using GCC.
12740 # If it is relative, then search for the first ld in PATH.
12741 with_gnu_ld=unknown
12744 elif test "$with_gnu_ld" = yes; then
12745 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12746 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12748 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12749 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12751 if test "${lt_cv_path_LD+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 if test -z "$LD"; then
12755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12756 for ac_dir in $PATH; do
12758 test -z "$ac_dir" && ac_dir=.
12759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12760 lt_cv_path_LD="$ac_dir/$ac_prog"
12761 # Check to see if the program is GNU ld. I'd rather use --version,
12762 # but apparently some variants of GNU ld only accept -v.
12763 # Break only if it was the GNU/non-GNU ld that we prefer.
12764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12765 *GNU* | *'with BFD'*)
12766 test "$with_gnu_ld" != no && break
12769 test "$with_gnu_ld" != yes && break
12776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12780 LD="$lt_cv_path_LD"
12781 if test -n "$LD"; then
12782 { echo "$as_me:$LINENO: result: $LD" >&5
12783 echo "${ECHO_T}$LD" >&6; }
12785 { echo "$as_me:$LINENO: result: no" >&5
12786 echo "${ECHO_T}no" >&6; }
12788 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12789 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12790 { (exit 1); exit 1; }; }
12791 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12792 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12793 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12797 case `$LD -v 2>&1 </dev/null` in
12798 *GNU* | *'with BFD'*)
12799 lt_cv_prog_gnu_ld=yes
12802 lt_cv_prog_gnu_ld=no
12806 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12807 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12808 with_gnu_ld=$lt_cv_prog_gnu_ld
12811 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12812 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12813 if test "${lt_cv_ld_reload_flag+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 lt_cv_ld_reload_flag='-r'
12818 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12819 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12820 reload_flag=$lt_cv_ld_reload_flag
12821 case $reload_flag in
12823 *) reload_flag=" $reload_flag" ;;
12825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12828 if test "$GCC" = yes; then
12829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12836 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12837 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12838 if test "${lt_cv_deplibs_check_method+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 lt_cv_file_magic_cmd='$MAGIC_CMD'
12842 lt_cv_file_magic_test_file=
12843 lt_cv_deplibs_check_method='unknown'
12844 # Need to set the preceding variable on all platforms that support
12845 # interlibrary dependencies.
12846 # 'none' -- dependencies not supported.
12847 # `unknown' -- same as none, but documents that we really don't know.
12848 # 'pass_all' -- all dependencies passed with no checks.
12849 # 'test_compile' -- check by making test program.
12850 # 'file_magic [[regex]]' -- check by looking for files in library path
12851 # which responds to the $file_magic_cmd with a given extended regex.
12852 # If you have `file' or equivalent on your system and you're not sure
12853 # whether `pass_all' will *always* work, you probably want this one.
12857 lt_cv_deplibs_check_method=pass_all
12861 lt_cv_deplibs_check_method=pass_all
12865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12866 lt_cv_file_magic_cmd='/usr/bin/file -L'
12867 lt_cv_file_magic_test_file=/shlib/libc.so
12871 # func_win32_libid is a shell function defined in ltmain.sh
12872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12873 lt_cv_file_magic_cmd='func_win32_libid'
12877 # Base MSYS/MinGW do not provide the 'file' command needed by
12878 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12879 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12880 lt_cv_file_magic_cmd='$OBJDUMP -f'
12883 darwin* | rhapsody*)
12884 lt_cv_deplibs_check_method=pass_all
12887 freebsd* | kfreebsd*-gnu | dragonfly*)
12888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12891 # Not sure whether the presence of OpenBSD here was a mistake.
12892 # Let's accept both of them until this is cleared up.
12893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12894 lt_cv_file_magic_cmd=/usr/bin/file
12895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12899 lt_cv_deplibs_check_method=pass_all
12904 lt_cv_deplibs_check_method=pass_all
12907 hpux10.20* | hpux11*)
12908 lt_cv_file_magic_cmd=/usr/bin/file
12911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12915 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]'
12916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12930 irix5* | irix6* | nonstopux*)
12932 *-32|*"-32 ") libmagic=32-bit;;
12933 *-n32|*"-n32 ") libmagic=N32;;
12934 *-64|*"-64 ") libmagic=64-bit;;
12935 *) libmagic=never-match;;
12937 lt_cv_deplibs_check_method=pass_all
12940 # This must be Linux ELF.
12942 lt_cv_deplibs_check_method=pass_all
12946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12955 lt_cv_file_magic_cmd=/usr/bin/file
12956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12960 lt_cv_deplibs_check_method=unknown
12964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12971 osf3* | osf4* | osf5*)
12972 lt_cv_deplibs_check_method=pass_all
12976 lt_cv_deplibs_check_method=pass_all
12980 case $host_vendor in
12982 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]'
12983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12986 lt_cv_deplibs_check_method=pass_all
12989 lt_cv_file_magic_cmd='/bin/file'
12990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12993 lt_cv_file_magic_cmd='/bin/file'
12994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12995 lt_cv_file_magic_test_file=/lib/libc.so
12998 lt_cv_deplibs_check_method=pass_all
13001 lt_cv_deplibs_check_method=pass_all
13006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13007 lt_cv_deplibs_check_method=pass_all
13012 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13013 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13014 file_magic_cmd=$lt_cv_file_magic_cmd
13015 deplibs_check_method=$lt_cv_deplibs_check_method
13016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13020 # If no C compiler was specified, use CC.
13023 # If no C compiler flags were specified, use CFLAGS.
13024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13026 # Allow CC to be a program name with arguments.
13029 # Check whether --enable-libtool-lock was given.
13030 if test "${enable_libtool_lock+set}" = set; then
13031 enableval=$enable_libtool_lock;
13034 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13036 # Some flags need to be propagated to the compiler or linker for good
13040 # Find out which ABI we are using.
13041 echo 'int i;' > conftest.$ac_ext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; then
13047 case `/usr/bin/file conftest.$ac_objext` in
13049 HPUX_IA64_MODE="32"
13052 HPUX_IA64_MODE="64"
13059 # Find out which ABI we are using.
13060 echo '#line 13060 "configure"' > conftest.$ac_ext
13061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13062 (eval $ac_compile) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; then
13066 if test "$lt_cv_prog_gnu_ld" = yes; then
13067 case `/usr/bin/file conftest.$ac_objext` in
13069 LD="${LD-ld} -melf32bsmip"
13072 LD="${LD-ld} -melf32bmipn32"
13075 LD="${LD-ld} -melf64bmip"
13079 case `/usr/bin/file conftest.$ac_objext` in
13095 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13096 # Find out which ABI we are using.
13097 echo 'int i;' > conftest.$ac_ext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; then
13103 case `/usr/bin/file conftest.o` in
13107 LD="${LD-ld} -m elf_i386"
13109 ppc64-*linux*|powerpc64-*linux*)
13110 LD="${LD-ld} -m elf32ppclinux"
13113 LD="${LD-ld} -m elf_s390"
13116 LD="${LD-ld} -m elf32_sparc"
13123 LD="${LD-ld} -m elf_x86_64"
13125 ppc*-*linux*|powerpc*-*linux*)
13126 LD="${LD-ld} -m elf64ppc"
13129 LD="${LD-ld} -m elf64_s390"
13132 LD="${LD-ld} -m elf64_sparc"
13142 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13143 SAVE_CFLAGS="$CFLAGS"
13144 CFLAGS="$CFLAGS -belf"
13145 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13146 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13147 if test "${lt_cv_cc_needs_belf+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 ac_cpp='$CPP $CPPFLAGS'
13152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest$ac_exeext'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 lt_cv_cc_needs_belf=yes
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 lt_cv_cc_needs_belf=no
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13216 ac_cpp='$CPP $CPPFLAGS'
13217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13222 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13223 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13226 CFLAGS="$SAVE_CFLAGS"
13230 # Find out which ABI we are using.
13231 echo 'int i;' > conftest.$ac_ext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; then
13237 case `/usr/bin/file conftest.o` in
13239 case $lt_cv_prog_gnu_ld in
13240 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13241 *) LD="${LD-ld} -64" ;;
13252 need_locks="$enable_libtool_lock"
13257 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13258 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13259 (test "X$CXX" != "Xg++"))) ; then
13261 ac_cpp='$CXXCPP $CPPFLAGS'
13262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13265 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13266 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13267 if test -z "$CXXCPP"; then
13268 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 # Double quotes because CXXCPP needs to be expanded
13272 for CXXCPP in "$CXX -E" "/lib/cpp"
13274 ac_preproc_ok=false
13275 for ac_cxx_preproc_warn_flag in '' yes
13277 # Use a header file that comes with gcc, so configuring glibc
13278 # with a fresh cross-compiler works.
13279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13280 # <limits.h> exists even on freestanding compilers.
13281 # On the NeXT, cc -E runs the code through the compiler's parser,
13282 # not just through cpp. "Syntax error" is here to catch this case.
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 # include <limits.h>
13292 # include <assert.h>
13296 if { (ac_try="$ac_cpp conftest.$ac_ext"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_cxx_preproc_warn_flag
13311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13318 if test -z "$ac_cpp_err"; then
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 # Broken: fails on valid input.
13328 rm -f conftest.err conftest.$ac_ext
13330 # OK, works on sane cases. Now check whether nonexistent headers
13331 # can be detected and how.
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 #include <ac_nonexistent.h>
13340 if { (ac_try="$ac_cpp conftest.$ac_ext"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } >/dev/null; then
13353 if test -s conftest.err; then
13354 ac_cpp_err=$ac_cxx_preproc_warn_flag
13355 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13362 if test -z "$ac_cpp_err"; then
13363 # Broken: success on invalid input.
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 # Passes both tests.
13374 rm -f conftest.err conftest.$ac_ext
13377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13378 rm -f conftest.err conftest.$ac_ext
13379 if $ac_preproc_ok; then
13384 ac_cv_prog_CXXCPP=$CXXCPP
13387 CXXCPP=$ac_cv_prog_CXXCPP
13389 ac_cv_prog_CXXCPP=$CXXCPP
13391 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13392 echo "${ECHO_T}$CXXCPP" >&6; }
13393 ac_preproc_ok=false
13394 for ac_cxx_preproc_warn_flag in '' yes
13396 # Use a header file that comes with gcc, so configuring glibc
13397 # with a fresh cross-compiler works.
13398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13399 # <limits.h> exists even on freestanding compilers.
13400 # On the NeXT, cc -E runs the code through the compiler's parser,
13401 # not just through cpp. "Syntax error" is here to catch this case.
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13409 # include <limits.h>
13411 # include <assert.h>
13415 if { (ac_try="$ac_cpp conftest.$ac_ext"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } >/dev/null; then
13428 if test -s conftest.err; then
13429 ac_cpp_err=$ac_cxx_preproc_warn_flag
13430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13437 if test -z "$ac_cpp_err"; then
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 # Broken: fails on valid input.
13447 rm -f conftest.err conftest.$ac_ext
13449 # OK, works on sane cases. Now check whether nonexistent headers
13450 # can be detected and how.
13451 cat >conftest.$ac_ext <<_ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 #include <ac_nonexistent.h>
13459 if { (ac_try="$ac_cpp conftest.$ac_ext"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } >/dev/null; then
13472 if test -s conftest.err; then
13473 ac_cpp_err=$ac_cxx_preproc_warn_flag
13474 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13481 if test -z "$ac_cpp_err"; then
13482 # Broken: success on invalid input.
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 # Passes both tests.
13493 rm -f conftest.err conftest.$ac_ext
13496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13497 rm -f conftest.err conftest.$ac_ext
13498 if $ac_preproc_ok; then
13501 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13502 See \`config.log' for more details." >&5
13503 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13504 See \`config.log' for more details." >&2;}
13505 { (exit 1); exit 1; }; }
13509 ac_cpp='$CXXCPP $CPPFLAGS'
13510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13518 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13519 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13520 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13521 if test -n "$ac_tool_prefix"; then
13522 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
13524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13528 if test "${ac_cv_prog_F77+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 if test -n "$F77"; then
13532 ac_cv_prog_F77="$F77" # Let the user override the test.
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13541 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 F77=$ac_cv_prog_F77
13552 if test -n "$F77"; then
13553 { echo "$as_me:$LINENO: result: $F77" >&5
13554 echo "${ECHO_T}$F77" >&6; }
13556 { echo "$as_me:$LINENO: result: no" >&5
13557 echo "${ECHO_T}no" >&6; }
13561 test -n "$F77" && break
13564 if test -z "$F77"; then
13566 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
13568 # Extract the first word of "$ac_prog", so it can be a program name with args.
13569 set dummy $ac_prog; ac_word=$2
13570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13572 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 if test -n "$ac_ct_F77"; then
13576 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13585 ac_cv_prog_ac_ct_F77="$ac_prog"
13586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13596 if test -n "$ac_ct_F77"; then
13597 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13598 echo "${ECHO_T}$ac_ct_F77" >&6; }
13600 { echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6; }
13605 test -n "$ac_ct_F77" && break
13608 if test "x$ac_ct_F77" = x; then
13611 case $cross_compiling:$ac_tool_warned in
13613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13614 whose name does not start with the host triplet. If you think this
13615 configuration is useful to you, please write to autoconf@gnu.org." >&5
13616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13617 whose name does not start with the host triplet. If you think this
13618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13619 ac_tool_warned=yes ;;
13626 # Provide some information about the compiler.
13627 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13628 ac_compiler=`set X $ac_compile; echo $2`
13629 { (ac_try="$ac_compiler --version >&5"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compiler --version >&5") 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }
13639 { (ac_try="$ac_compiler -v >&5"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_compiler -v >&5") 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }
13649 { (ac_try="$ac_compiler -V >&5"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_compiler -V >&5") 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }
13661 # If we don't use `.F' as extension, the preprocessor is not run on the
13662 # input file. (Note that this only needs to work for GNU compilers.)
13663 ac_save_ext=$ac_ext
13665 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13666 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13667 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 cat >conftest.$ac_ext <<_ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (ac_try="$ac_compile"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13693 { (case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_try") 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try='test -s conftest.$ac_objext'
13703 { (case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_try") 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_compiler_gnu=yes
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13724 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13725 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13726 ac_ext=$ac_save_ext
13727 ac_test_FFLAGS=${FFLAGS+set}
13728 ac_save_FFLAGS=$FFLAGS
13730 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13731 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13732 if test "${ac_cv_prog_f77_g+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_cv_prog_f77_g=yes
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_cv_prog_f77_g=no
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13787 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13788 if test "$ac_test_FFLAGS" = set; then
13789 FFLAGS=$ac_save_FFLAGS
13790 elif test $ac_cv_prog_f77_g = yes; then
13791 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13797 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13804 G77=`test $ac_compiler_gnu = yes && echo yes`
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13813 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13815 # find the maximum length of command line arguments
13816 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13817 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13818 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 # On DJGPP, this test can blow up pretty badly due to problems in libc
13827 # (any single argument exceeding 2000 bytes causes a buffer overrun
13828 # during glob expansion). Even if it were fixed, the result of this
13829 # check would be larger than it should be.
13830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13834 # Under GNU Hurd, this test is not required because there is
13835 # no limit to the length of command line arguments.
13836 # Libtool will interpret -1 as no limit whatsoever
13837 lt_cv_sys_max_cmd_len=-1;
13841 # On Win9x/ME, this test blows up -- it succeeds, but takes
13842 # about 5 minutes as the teststring grows exponentially.
13843 # Worse, since 9x/ME are not pre-emptively multitasking,
13844 # you end up with a "frozen" computer, even though with patience
13845 # the test eventually succeeds (with a max line length of 256k).
13846 # Instead, let's just punt: use the minimum linelength reported by
13847 # all of the supported platforms: 8192 (on NT/2K/XP).
13848 lt_cv_sys_max_cmd_len=8192;
13852 # On AmigaOS with pdksh, this test takes hours, literally.
13853 # So we just punt and use a minimum line length of 8192.
13854 lt_cv_sys_max_cmd_len=8192;
13857 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13858 # This has been around since 386BSD, at least. Likely further.
13859 if test -x /sbin/sysctl; then
13860 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13861 elif test -x /usr/sbin/sysctl; then
13862 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13864 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13866 # And add a safety zone
13867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13872 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13873 lt_cv_sys_max_cmd_len=196608
13877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13879 # nice to cause kernel panics so lets avoid the loop below.
13880 # First set a reasonable default.
13881 lt_cv_sys_max_cmd_len=16384
13883 if test -x /sbin/sysconfig; then
13884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13890 lt_cv_sys_max_cmd_len=102400
13892 sysv5* | sco5v6* | sysv4.2uw2*)
13893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13894 if test -n "$kargmax"; then
13895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13897 lt_cv_sys_max_cmd_len=32768
13901 # If test is not a shell built-in, we'll probably end up computing a
13902 # maximum length that is only half of the actual maximum length, but
13904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13905 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13906 = "XX$teststring") >/dev/null 2>&1 &&
13907 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13908 lt_cv_sys_max_cmd_len=$new_result &&
13909 test $i != 17 # 1/2 MB should be enough
13912 teststring=$teststring$teststring
13915 # Add a significant safety factor because C++ compilers can tack on massive
13916 # amounts of additional arguments before passing them to the linker.
13917 # It appears as though 1/2 is a usable value.
13918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13924 if test -n $lt_cv_sys_max_cmd_len ; then
13925 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13926 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13928 { echo "$as_me:$LINENO: result: none" >&5
13929 echo "${ECHO_T}none" >&6; }
13935 # Check for command to grab the raw symbol name followed by C symbol from nm.
13936 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13937 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13938 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 # These are sane defaults that work on at least a few old systems.
13943 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13945 # Character class describing NM global symbol codes.
13946 symcode='[BCDEGRST]'
13948 # Regexp to match symbols that can be accessed directly from C.
13949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13951 # Transform an extracted symbol line into a proper C declaration
13952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13954 # Transform an extracted symbol line into symbol name and symbol address
13955 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'"
13957 # Define system-specific variables.
13962 cygwin* | mingw* | pw32*)
13963 symcode='[ABCDGISTW]'
13965 hpux*) # Its linker distinguishes data from code symbols
13966 if test "$host_cpu" = ia64; then
13967 symcode='[ABCDEGRST]'
13969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13970 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'"
13973 if test "$host_cpu" = ia64; then
13974 symcode='[ABCDGIRSTW]'
13975 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13976 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'"
13979 irix* | nonstopux*)
13980 symcode='[BCDEGRST]'
13983 symcode='[BCDEGQRST]'
13994 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14002 # Handle CRLF in mingw tool chain
14006 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14010 # If we're using GNU nm, then use its standard symbol codes.
14011 case `$NM -V 2>&1` in
14012 *GNU* | *'with BFD'*)
14013 symcode='[ABCDGIRSTW]' ;;
14016 # Try without a prefix undercore, then with it.
14017 for ac_symprfx in "" "_"; do
14019 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14020 symxfrm="\\1 $ac_symprfx\\2 \\2"
14022 # Write the raw and C identifiers.
14023 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14025 # Check to see that the pipe works correctly.
14029 cat > conftest.$ac_ext <<EOF
14034 void nm_test_func(){}
14038 int main(){nm_test_var='a';nm_test_func();return(0);}
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; then
14046 # Now try to grab the symbols.
14048 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14049 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } && test -s "$nlist"; then
14053 # Try sorting and uniquifying the output.
14054 if sort "$nlist" | uniq > "$nlist"T; then
14055 mv -f "$nlist"T "$nlist"
14060 # Make sure that we snagged all the symbols we need.
14061 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14062 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14063 cat <<EOF > conftest.$ac_ext
14069 # Now generate the symbol file.
14070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14072 cat <<EOF >> conftest.$ac_ext
14073 #if defined (__STDC__) && __STDC__
14074 # define lt_ptr_t void *
14076 # define lt_ptr_t char *
14080 /* The mapping between symbol names and symbols. */
14085 lt_preloaded_symbols[] =
14088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14089 cat <<\EOF >> conftest.$ac_ext
14097 # Now try linking the two files.
14098 mv conftest.$ac_objext conftstm.$ac_objext
14099 lt_save_LIBS="$LIBS"
14100 lt_save_CFLAGS="$CFLAGS"
14101 LIBS="conftstm.$ac_objext"
14102 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14110 LIBS="$lt_save_LIBS"
14111 CFLAGS="$lt_save_CFLAGS"
14113 echo "cannot find nm_test_func in $nlist" >&5
14116 echo "cannot find nm_test_var in $nlist" >&5
14119 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14122 echo "$progname: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14125 rm -f conftest* conftst*
14127 # Do not use the global_symbol_pipe unless it works.
14128 if test "$pipe_works" = yes; then
14131 lt_cv_sys_global_symbol_pipe=
14137 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14138 lt_cv_sys_global_symbol_to_cdecl=
14140 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14141 { echo "$as_me:$LINENO: result: failed" >&5
14142 echo "${ECHO_T}failed" >&6; }
14144 { echo "$as_me:$LINENO: result: ok" >&5
14145 echo "${ECHO_T}ok" >&6; }
14148 { echo "$as_me:$LINENO: checking for objdir" >&5
14149 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14150 if test "${lt_cv_objdir+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 rm -f .libs 2>/dev/null
14154 mkdir .libs 2>/dev/null
14155 if test -d .libs; then
14158 # MS-DOS does not allow filenames that begin with a dot.
14161 rmdir .libs 2>/dev/null
14163 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14164 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14165 objdir=$lt_cv_objdir
14173 # AIX sometimes has problems with the GCC collect2 program. For some
14174 # reason, if we set the COLLECT_NAMES environment variable, the problems
14175 # vanish in a puff of smoke.
14176 if test "X${COLLECT_NAMES+set}" != Xset; then
14178 export COLLECT_NAMES
14183 # Sed substitution that helps us do robust quoting. It backslashifies
14184 # metacharacters that are still active within double-quoted strings.
14185 Xsed='sed -e 1s/^X//'
14186 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14188 # Same as above, but do not quote variable references.
14189 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14191 # Sed substitution to delay expansion of an escaped shell variable in a
14192 # double_quote_subst'ed string.
14193 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14195 # Sed substitution to avoid accidental globbing in evaled expressions
14196 no_glob_subst='s/\*/\\\*/g'
14201 # Global variables:
14202 default_ofile=mklib
14203 can_build_shared=yes
14205 # All known linkers require a `.a' archive for static linking (except MSVC,
14206 # which needs '.lib').
14208 ltmain="$ac_aux_dir/ltmain.sh"
14209 ofile="$default_ofile"
14210 with_gnu_ld="$lt_cv_prog_gnu_ld"
14212 if test -n "$ac_tool_prefix"; then
14213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14214 set dummy ${ac_tool_prefix}ar; ac_word=$2
14215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14217 if test "${ac_cv_prog_AR+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 if test -n "$AR"; then
14221 ac_cv_prog_AR="$AR" # Let the user override the test.
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14230 ac_cv_prog_AR="${ac_tool_prefix}ar"
14231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 if test -n "$AR"; then
14242 { echo "$as_me:$LINENO: result: $AR" >&5
14243 echo "${ECHO_T}$AR" >&6; }
14245 { echo "$as_me:$LINENO: result: no" >&5
14246 echo "${ECHO_T}no" >&6; }
14251 if test -z "$ac_cv_prog_AR"; then
14253 # Extract the first word of "ar", so it can be a program name with args.
14254 set dummy ar; ac_word=$2
14255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 if test -n "$ac_ct_AR"; then
14261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264 for as_dir in $PATH
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14270 ac_cv_prog_ac_ct_AR="ar"
14271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14281 if test -n "$ac_ct_AR"; then
14282 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14283 echo "${ECHO_T}$ac_ct_AR" >&6; }
14285 { echo "$as_me:$LINENO: result: no" >&5
14286 echo "${ECHO_T}no" >&6; }
14289 if test "x$ac_ct_AR" = x; then
14292 case $cross_compiling:$ac_tool_warned in
14294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14295 whose name does not start with the host triplet. If you think this
14296 configuration is useful to you, please write to autoconf@gnu.org." >&5
14297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14298 whose name does not start with the host triplet. If you think this
14299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14300 ac_tool_warned=yes ;;
14305 AR="$ac_cv_prog_AR"
14308 if test -n "$ac_tool_prefix"; then
14309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14313 if test "${ac_cv_prog_RANLIB+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 if test -n "$RANLIB"; then
14317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 RANLIB=$ac_cv_prog_RANLIB
14337 if test -n "$RANLIB"; then
14338 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14339 echo "${ECHO_T}$RANLIB" >&6; }
14341 { echo "$as_me:$LINENO: result: no" >&5
14342 echo "${ECHO_T}no" >&6; }
14347 if test -z "$ac_cv_prog_RANLIB"; then
14348 ac_ct_RANLIB=$RANLIB
14349 # Extract the first word of "ranlib", so it can be a program name with args.
14350 set dummy ranlib; ac_word=$2
14351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14353 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 if test -n "$ac_ct_RANLIB"; then
14357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14366 ac_cv_prog_ac_ct_RANLIB="ranlib"
14367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14377 if test -n "$ac_ct_RANLIB"; then
14378 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14379 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14381 { echo "$as_me:$LINENO: result: no" >&5
14382 echo "${ECHO_T}no" >&6; }
14385 if test "x$ac_ct_RANLIB" = x; then
14388 case $cross_compiling:$ac_tool_warned in
14390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14391 whose name does not start with the host triplet. If you think this
14392 configuration is useful to you, please write to autoconf@gnu.org." >&5
14393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14394 whose name does not start with the host triplet. If you think this
14395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14396 ac_tool_warned=yes ;;
14398 RANLIB=$ac_ct_RANLIB
14401 RANLIB="$ac_cv_prog_RANLIB"
14404 if test -n "$ac_tool_prefix"; then
14405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14406 set dummy ${ac_tool_prefix}strip; ac_word=$2
14407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14409 if test "${ac_cv_prog_STRIP+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 if test -n "$STRIP"; then
14413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
14421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14432 STRIP=$ac_cv_prog_STRIP
14433 if test -n "$STRIP"; then
14434 { echo "$as_me:$LINENO: result: $STRIP" >&5
14435 echo "${ECHO_T}$STRIP" >&6; }
14437 { echo "$as_me:$LINENO: result: no" >&5
14438 echo "${ECHO_T}no" >&6; }
14443 if test -z "$ac_cv_prog_STRIP"; then
14445 # Extract the first word of "strip", so it can be a program name with args.
14446 set dummy strip; ac_word=$2
14447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14449 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 if test -n "$ac_ct_STRIP"; then
14453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14462 ac_cv_prog_ac_ct_STRIP="strip"
14463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14473 if test -n "$ac_ct_STRIP"; then
14474 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14475 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14477 { echo "$as_me:$LINENO: result: no" >&5
14478 echo "${ECHO_T}no" >&6; }
14481 if test "x$ac_ct_STRIP" = x; then
14484 case $cross_compiling:$ac_tool_warned in
14486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14487 whose name does not start with the host triplet. If you think this
14488 configuration is useful to you, please write to autoconf@gnu.org." >&5
14489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14490 whose name does not start with the host triplet. If you think this
14491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14492 ac_tool_warned=yes ;;
14497 STRIP="$ac_cv_prog_STRIP"
14502 old_CFLAGS="$CFLAGS"
14504 # Set sane defaults for various variables
14505 test -z "$AR" && AR=ar
14506 test -z "$AR_FLAGS" && AR_FLAGS=cru
14507 test -z "$AS" && AS=as
14508 test -z "$CC" && CC=cc
14509 test -z "$LTCC" && LTCC=$CC
14510 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14511 test -z "$DLLTOOL" && DLLTOOL=dlltool
14512 test -z "$LD" && LD=ld
14513 test -z "$LN_S" && LN_S="ln -s"
14514 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14515 test -z "$NM" && NM=nm
14516 test -z "$SED" && SED=sed
14517 test -z "$OBJDUMP" && OBJDUMP=objdump
14518 test -z "$RANLIB" && RANLIB=:
14519 test -z "$STRIP" && STRIP=:
14520 test -z "$ac_objext" && ac_objext=o
14522 # Determine commands to create old-style static archives.
14523 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14524 old_postinstall_cmds='chmod 644 $oldlib'
14525 old_postuninstall_cmds=
14527 if test -n "$RANLIB"; then
14530 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14536 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14539 for cc_temp in $compiler""; do
14541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14547 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14550 # Only perform the check for file, if the check method requires it
14551 case $deplibs_check_method in
14553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14554 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14555 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14556 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14564 lt_save_MAGIC_CMD="$MAGIC_CMD"
14565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14567 for ac_dir in $ac_dummy; do
14569 test -z "$ac_dir" && ac_dir=.
14570 if test -f $ac_dir/${ac_tool_prefix}file; then
14571 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14572 if test -n "$file_magic_test_file"; then
14573 case $deplibs_check_method in
14575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14578 $EGREP "$file_magic_regex" > /dev/null; then
14583 *** Warning: the command libtool uses to detect shared libraries,
14584 *** $file_magic_cmd, produces output that libtool cannot recognize.
14585 *** The result is that libtool may fail to recognize shared libraries
14586 *** as such. This will affect the creation of libtool libraries that
14587 *** depend on shared libraries, but programs linked with such libtool
14588 *** libraries will work regardless of this problem. Nevertheless, you
14589 *** may want to report the problem to your system manager and/or to
14590 *** bug-libtool@gnu.org
14600 MAGIC_CMD="$lt_save_MAGIC_CMD"
14605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14606 if test -n "$MAGIC_CMD"; then
14607 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14608 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14610 { echo "$as_me:$LINENO: result: no" >&5
14611 echo "${ECHO_T}no" >&6; }
14614 if test -z "$lt_cv_path_MAGIC_CMD"; then
14615 if test -n "$ac_tool_prefix"; then
14616 { echo "$as_me:$LINENO: checking for file" >&5
14617 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14618 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14626 lt_save_MAGIC_CMD="$MAGIC_CMD"
14627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14629 for ac_dir in $ac_dummy; do
14631 test -z "$ac_dir" && ac_dir=.
14632 if test -f $ac_dir/file; then
14633 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14634 if test -n "$file_magic_test_file"; then
14635 case $deplibs_check_method in
14637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14640 $EGREP "$file_magic_regex" > /dev/null; then
14645 *** Warning: the command libtool uses to detect shared libraries,
14646 *** $file_magic_cmd, produces output that libtool cannot recognize.
14647 *** The result is that libtool may fail to recognize shared libraries
14648 *** as such. This will affect the creation of libtool libraries that
14649 *** depend on shared libraries, but programs linked with such libtool
14650 *** libraries will work regardless of this problem. Nevertheless, you
14651 *** may want to report the problem to your system manager and/or to
14652 *** bug-libtool@gnu.org
14662 MAGIC_CMD="$lt_save_MAGIC_CMD"
14667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14668 if test -n "$MAGIC_CMD"; then
14669 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14670 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14672 { echo "$as_me:$LINENO: result: no" >&5
14673 echo "${ECHO_T}no" >&6; }
14686 enable_win32_dll=no
14688 # Check whether --enable-libtool-lock was given.
14689 if test "${enable_libtool_lock+set}" = set; then
14690 enableval=$enable_libtool_lock;
14693 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14696 # Check whether --with-pic was given.
14697 if test "${with_pic+set}" = set; then
14698 withval=$with_pic; pic_mode="$withval"
14703 test -z "$pic_mode" && pic_mode=default
14705 # Use C for the default configuration in the libtool script
14709 ac_cpp='$CPP $CPPFLAGS'
14710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14715 # Source file extension for C test sources.
14718 # Object file extension for compiled C test sources.
14722 # Code to be used in simple compile tests
14723 lt_simple_compile_test_code="int some_variable = 0;\n"
14725 # Code to be used in simple link tests
14726 lt_simple_link_test_code='int main(){return(0);}\n'
14729 # If no C compiler was specified, use CC.
14732 # If no C compiler flags were specified, use CFLAGS.
14733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14735 # Allow CC to be a program name with arguments.
14739 # save warnings/boilerplate of simple test code
14740 ac_outfile=conftest.$ac_objext
14741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14743 _lt_compiler_boilerplate=`cat conftest.err`
14746 ac_outfile=conftest.$ac_objext
14747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14749 _lt_linker_boilerplate=`cat conftest.err`
14754 lt_prog_compiler_no_builtin_flag=
14756 if test "$GCC" = yes; then
14757 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14760 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14761 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14762 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 lt_cv_prog_compiler_rtti_exceptions=no
14766 ac_outfile=conftest.$ac_objext
14767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14768 lt_compiler_flag="-fno-rtti -fno-exceptions"
14769 # Insert the option either (1) after the last *FLAGS variable, or
14770 # (2) before a word containing "conftest.", or (3) at the end.
14771 # Note that $ac_compile itself does not contain backslashes and begins
14772 # with a dollar sign (not a hyphen), so the echo should work correctly.
14773 # The option is referenced via a variable to avoid confusing sed.
14774 lt_compile=`echo "$ac_compile" | $SED \
14775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14777 -e 's:$: $lt_compiler_flag:'`
14778 (eval echo "\"\$as_me:14778: $lt_compile\"" >&5)
14779 (eval "$lt_compile" 2>conftest.err)
14781 cat conftest.err >&5
14782 echo "$as_me:14782: \$? = $ac_status" >&5
14783 if (exit $ac_status) && test -s "$ac_outfile"; then
14784 # The compiler can only warn and ignore the option if not recognized
14785 # So say no if there are warnings other than the usual output.
14786 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14789 lt_cv_prog_compiler_rtti_exceptions=yes
14795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14796 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14798 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14799 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14806 lt_prog_compiler_wl=
14807 lt_prog_compiler_pic=
14808 lt_prog_compiler_static=
14810 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14811 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14813 if test "$GCC" = yes; then
14814 lt_prog_compiler_wl='-Wl,'
14815 lt_prog_compiler_static='-static'
14819 # All AIX code is PIC.
14820 if test "$host_cpu" = ia64; then
14821 # AIX 5 now supports IA64 processor
14822 lt_prog_compiler_static='-Bstatic'
14827 # FIXME: we need at least 68020 code to build shared libraries, but
14828 # adding the `-m68020' flag to GCC prevents building anything better,
14830 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14833 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14834 # PIC is the default for these OSes.
14837 mingw* | pw32* | os2*)
14838 # This hack is so that the source file can tell whether it is being
14839 # built for inclusion in a dll (and should export symbols for example).
14840 lt_prog_compiler_pic='-DDLL_EXPORT'
14843 darwin* | rhapsody*)
14844 # PIC is the default on this platform
14845 # Common symbols not allowed in MH_DYLIB files
14846 lt_prog_compiler_pic='-fno-common'
14850 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14851 # Instead, we relocate shared libraries at runtime.
14855 # Just because we use GCC doesn't mean we suddenly get shared libraries
14856 # on systems that don't support them.
14857 lt_prog_compiler_can_build_shared=no
14862 if test -d /usr/nec; then
14863 lt_prog_compiler_pic=-Kconform_pic
14868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14869 # not for PA HP-UX.
14875 lt_prog_compiler_pic='-fPIC'
14881 lt_prog_compiler_pic='-fPIC'
14885 # PORTME Check for flag to pass linker flags through the system compiler.
14888 lt_prog_compiler_wl='-Wl,'
14889 if test "$host_cpu" = ia64; then
14890 # AIX 5 now supports IA64 processor
14891 lt_prog_compiler_static='-Bstatic'
14893 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14897 # PIC is the default on this platform
14898 # Common symbols not allowed in MH_DYLIB files
14899 case $cc_basename in
14901 lt_prog_compiler_pic='-qnocommon'
14902 lt_prog_compiler_wl='-Wl,'
14907 mingw* | pw32* | os2*)
14908 # This hack is so that the source file can tell whether it is being
14909 # built for inclusion in a dll (and should export symbols for example).
14910 lt_prog_compiler_pic='-DDLL_EXPORT'
14913 hpux9* | hpux10* | hpux11*)
14914 lt_prog_compiler_wl='-Wl,'
14915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14916 # not for PA HP-UX.
14922 lt_prog_compiler_pic='+Z'
14925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14926 lt_prog_compiler_static='${wl}-a ${wl}archive'
14929 irix5* | irix6* | nonstopux*)
14930 lt_prog_compiler_wl='-Wl,'
14931 # PIC (with -KPIC) is the default.
14932 lt_prog_compiler_static='-non_shared'
14936 lt_prog_compiler_pic='-KPIC'
14937 lt_prog_compiler_static='-Bstatic'
14941 case $cc_basename in
14943 lt_prog_compiler_wl='-Wl,'
14944 lt_prog_compiler_pic='-KPIC'
14945 lt_prog_compiler_static='-static'
14947 pgcc* | pgf77* | pgf90* | pgf95*)
14948 # Portland Group compilers (*not* the Pentium gcc compiler,
14949 # which looks to be a dead project)
14950 lt_prog_compiler_wl='-Wl,'
14951 lt_prog_compiler_pic='-fpic'
14952 lt_prog_compiler_static='-Bstatic'
14955 lt_prog_compiler_wl='-Wl,'
14956 # All Alpha code is PIC.
14957 lt_prog_compiler_static='-non_shared'
14962 osf3* | osf4* | osf5*)
14963 lt_prog_compiler_wl='-Wl,'
14964 # All OSF/1 code is PIC.
14965 lt_prog_compiler_static='-non_shared'
14969 lt_prog_compiler_pic='-KPIC'
14970 lt_prog_compiler_static='-Bstatic'
14971 case $cc_basename in
14972 f77* | f90* | f95*)
14973 lt_prog_compiler_wl='-Qoption ld ';;
14975 lt_prog_compiler_wl='-Wl,';;
14980 lt_prog_compiler_wl='-Qoption ld '
14981 lt_prog_compiler_pic='-PIC'
14982 lt_prog_compiler_static='-Bstatic'
14985 sysv4 | sysv4.2uw2* | sysv4.3*)
14986 lt_prog_compiler_wl='-Wl,'
14987 lt_prog_compiler_pic='-KPIC'
14988 lt_prog_compiler_static='-Bstatic'
14992 if test -d /usr/nec ;then
14993 lt_prog_compiler_pic='-Kconform_pic'
14994 lt_prog_compiler_static='-Bstatic'
14998 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14999 lt_prog_compiler_wl='-Wl,'
15000 lt_prog_compiler_pic='-KPIC'
15001 lt_prog_compiler_static='-Bstatic'
15005 lt_prog_compiler_wl='-Wl,'
15006 lt_prog_compiler_can_build_shared=no
15010 lt_prog_compiler_pic='-pic'
15011 lt_prog_compiler_static='-Bstatic'
15015 lt_prog_compiler_can_build_shared=no
15020 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15021 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15024 # Check to make sure the PIC flag actually works.
15026 if test -n "$lt_prog_compiler_pic"; then
15028 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15029 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15030 if test "${lt_prog_compiler_pic_works+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 lt_prog_compiler_pic_works=no
15034 ac_outfile=conftest.$ac_objext
15035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15036 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15037 # Insert the option either (1) after the last *FLAGS variable, or
15038 # (2) before a word containing "conftest.", or (3) at the end.
15039 # Note that $ac_compile itself does not contain backslashes and begins
15040 # with a dollar sign (not a hyphen), so the echo should work correctly.
15041 # The option is referenced via a variable to avoid confusing sed.
15042 lt_compile=`echo "$ac_compile" | $SED \
15043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15045 -e 's:$: $lt_compiler_flag:'`
15046 (eval echo "\"\$as_me:15046: $lt_compile\"" >&5)
15047 (eval "$lt_compile" 2>conftest.err)
15049 cat conftest.err >&5
15050 echo "$as_me:15050: \$? = $ac_status" >&5
15051 if (exit $ac_status) && test -s "$ac_outfile"; then
15052 # The compiler can only warn and ignore the option if not recognized
15053 # So say no if there are warnings other than the usual output.
15054 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15057 lt_prog_compiler_pic_works=yes
15063 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15064 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15066 if test x"$lt_prog_compiler_pic_works" = xyes; then
15067 case $lt_prog_compiler_pic in
15069 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15072 lt_prog_compiler_pic=
15073 lt_prog_compiler_can_build_shared=no
15078 # For platforms which do not support PIC, -DPIC is meaningless:
15080 lt_prog_compiler_pic=
15083 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15088 # Check to make sure the static flag actually works.
15090 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15091 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15092 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15093 if test "${lt_prog_compiler_static_works+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 lt_prog_compiler_static_works=no
15097 save_LDFLAGS="$LDFLAGS"
15098 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15099 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15101 # The linker can only warn and ignore the option if not recognized
15102 # So say no if there are warnings
15103 if test -s conftest.err; then
15104 # Append any errors to the config.log.
15105 cat conftest.err 1>&5
15106 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15108 if diff conftest.exp conftest.er2 >/dev/null; then
15109 lt_prog_compiler_static_works=yes
15112 lt_prog_compiler_static_works=yes
15116 LDFLAGS="$save_LDFLAGS"
15119 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15120 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15122 if test x"$lt_prog_compiler_static_works" = xyes; then
15125 lt_prog_compiler_static=
15129 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15130 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15131 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 lt_cv_prog_compiler_c_o=no
15135 $rm -r conftest 2>/dev/null
15139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15141 lt_compiler_flag="-o out/conftest2.$ac_objext"
15142 # Insert the option either (1) after the last *FLAGS variable, or
15143 # (2) before a word containing "conftest.", or (3) at the end.
15144 # Note that $ac_compile itself does not contain backslashes and begins
15145 # with a dollar sign (not a hyphen), so the echo should work correctly.
15146 lt_compile=`echo "$ac_compile" | $SED \
15147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15149 -e 's:$: $lt_compiler_flag:'`
15150 (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
15151 (eval "$lt_compile" 2>out/conftest.err)
15153 cat out/conftest.err >&5
15154 echo "$as_me:15154: \$? = $ac_status" >&5
15155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15157 # The compiler can only warn and ignore the option if not recognized
15158 # So say no if there are warnings
15159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15162 lt_cv_prog_compiler_c_o=yes
15167 # SGI C++ compiler will create directory out/ii_files/ for
15168 # template instantiation
15169 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15170 $rm out/* && rmdir out
15176 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15177 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15180 hard_links="nottested"
15181 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15182 # do not overwrite the value of need_locks provided by the user
15183 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15184 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15189 ln conftest.a conftest.b 2>&5 || hard_links=no
15190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15191 { echo "$as_me:$LINENO: result: $hard_links" >&5
15192 echo "${ECHO_T}$hard_links" >&6; }
15193 if test "$hard_links" = no; then
15194 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15195 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15202 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15203 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15206 allow_undefined_flag=
15207 enable_shared_with_static_runtimes=no
15209 archive_expsym_cmds=
15210 old_archive_From_new_cmds=
15211 old_archive_from_expsyms_cmds=
15212 export_dynamic_flag_spec=
15213 whole_archive_flag_spec=
15214 thread_safe_flag_spec=
15215 hardcode_libdir_flag_spec=
15216 hardcode_libdir_flag_spec_ld=
15217 hardcode_libdir_separator=
15219 hardcode_minus_L=no
15220 hardcode_shlibpath_var=unsupported
15221 link_all_deplibs=unknown
15222 hardcode_automatic=no
15224 module_expsym_cmds=
15225 always_export_symbols=no
15226 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15227 # include_expsyms should be a list of space-separated symbols to be *always*
15228 # included in the symbol list
15230 # exclude_expsyms can be an extended regexp of symbols to exclude
15231 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15232 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15233 # as well as any symbol that contains `d'.
15234 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15235 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15236 # platforms (ab)use it in PIC code, but their linkers get confused if
15237 # the symbol is explicitly referenced. Since portable code cannot
15238 # rely on this symbol name, it's probably fine to never include it in
15239 # preloaded symbol tables.
15240 extract_expsyms_cmds=
15241 # Just being paranoid about ensuring that cc_basename is set.
15242 for cc_temp in $compiler""; do
15244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15250 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15253 cygwin* | mingw* | pw32*)
15254 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15255 # When not using gcc, we currently assume that we are using
15256 # Microsoft Visual C++.
15257 if test "$GCC" != yes; then
15262 # we just hope/assume this is gcc and not c89 (= MSVC++)
15271 if test "$with_gnu_ld" = yes; then
15272 # If archive_cmds runs LD, not CC, wlarc should be empty
15275 # Set some defaults for GNU ld with shared library support. These
15276 # are reset later if shared libraries are not supported. Putting them
15277 # here allows them to be overridden if necessary.
15278 runpath_var=LD_RUN_PATH
15279 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15280 export_dynamic_flag_spec='${wl}--export-dynamic'
15281 # ancient GNU ld didn't support --whole-archive et. al.
15282 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15283 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15285 whole_archive_flag_spec=
15287 supports_anon_versioning=no
15288 case `$LD -v 2>/dev/null` in
15289 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15290 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15291 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15292 *\ 2.11.*) ;; # other 2.11 versions
15293 *) supports_anon_versioning=yes ;;
15296 # See if GNU ld supports shared libraries.
15298 aix3* | aix4* | aix5*)
15299 # On AIX/PPC, the GNU linker is very broken
15300 if test "$host_cpu" != ia64; then
15304 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15305 *** to be unable to reliably create shared libraries on AIX.
15306 *** Therefore, libtool is disabling shared libraries support. If you
15307 *** really care for shared libraries, you may want to modify your PATH
15308 *** so that a non-GNU linker is found, and then restart.
15315 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)'
15316 hardcode_libdir_flag_spec='-L$libdir'
15317 hardcode_minus_L=yes
15319 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15320 # that the semantics of dynamic libraries on AmigaOS, at least up
15321 # to version 4, is to share data among multiple programs linked
15322 # with the same dynamic library. Since this doesn't match the
15323 # behavior of shared libraries on other platforms, we can't use
15329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15330 allow_undefined_flag=unsupported
15331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15332 # support --undefined. This deserves some investigation. FIXME
15333 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15339 cygwin* | mingw* | pw32*)
15340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15341 # as there is no search path for DLLs.
15342 hardcode_libdir_flag_spec='-L$libdir'
15343 allow_undefined_flag=unsupported
15344 always_export_symbols=no
15345 enable_shared_with_static_runtimes=yes
15346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15348 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15350 # If the export-symbols file already is a .def file (1st line
15351 # is EXPORTS), use it as is; otherwise, prepend...
15352 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15353 cp $export_symbols $output_objdir/$soname.def;
15355 echo EXPORTS > $output_objdir/$soname.def;
15356 cat $export_symbols >> $output_objdir/$soname.def;
15358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15366 hardcode_shlibpath_var=no
15367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15368 export_dynamic_flag_spec='${wl}-E'
15369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15370 # Instead, shared libraries are loaded at an image base (0x10000000 by
15371 # default) and relocated if they conflict, which is a slow very memory
15372 # consuming and fragmenting process. To avoid this, we pick a random,
15373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15376 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'
15380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15382 case $cc_basename,$host_cpu in
15383 pgcc*) # Portland Group C compiler
15384 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'
15385 tmp_addflag=' $pic_flag'
15387 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15388 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'
15389 tmp_addflag=' $pic_flag -Mnomain' ;;
15390 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15391 tmp_addflag=' -i_dynamic' ;;
15392 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15393 tmp_addflag=' -i_dynamic -nofor_main' ;;
15394 ifc* | ifort*) # Intel Fortran compiler
15395 tmp_addflag=' -nofor_main' ;;
15397 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15399 if test $supports_anon_versioning = yes; then
15400 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15402 $echo "local: *; };" >> $output_objdir/$libname.ver~
15403 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15421 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15425 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15426 *** create shared libraries on Solaris systems. Therefore, libtool
15427 *** is disabling shared libraries support. We urge you to upgrade GNU
15428 *** binutils to release 2.9.1 or newer. Another option is to modify
15429 *** your PATH or compiler configuration so that the native linker is
15430 *** used, and then restart.
15433 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15442 case `$LD -v 2>&1` in
15443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15447 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15448 *** reliably create shared libraries on SCO systems. Therefore, libtool
15449 *** is disabling shared libraries support. We urge you to upgrade GNU
15450 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15451 *** your PATH or compiler configuration so that the native linker is
15452 *** used, and then restart.
15457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15458 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15469 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15471 hardcode_direct=yes
15472 hardcode_shlibpath_var=no
15476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15485 if test "$ld_shlibs" = no; then
15487 hardcode_libdir_flag_spec=
15488 export_dynamic_flag_spec=
15489 whole_archive_flag_spec=
15492 # PORTME fill in a description of your system's linker (not GNU ld)
15495 allow_undefined_flag=unsupported
15496 always_export_symbols=yes
15497 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'
15498 # Note: this linker hardcodes the directories in LIBPATH if there
15499 # are no directories specified by -L.
15500 hardcode_minus_L=yes
15501 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15502 # Neither direct hardcoding nor static linking is supported with a
15504 hardcode_direct=unsupported
15509 if test "$host_cpu" = ia64; then
15510 # On IA64, the linker does run time linking by default, so we don't
15511 # have to do anything special.
15512 aix_use_runtimelinking=no
15513 exp_sym_flag='-Bexport'
15516 # If we're using GNU nm, then we don't want the "-C" option.
15517 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15518 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15519 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'
15521 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'
15523 aix_use_runtimelinking=no
15525 # Test if we are trying to use run time linking or normal
15526 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15527 # need to do runtime linking.
15528 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15529 for ld_flag in $LDFLAGS; do
15530 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15531 aix_use_runtimelinking=yes
15538 exp_sym_flag='-bexport'
15539 no_entry_flag='-bnoentry'
15542 # When large executables or shared objects are built, AIX ld can
15543 # have problems creating the table of contents. If linking a library
15544 # or program results in "error TOC overflow" add -mminimal-toc to
15545 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15546 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15549 hardcode_direct=yes
15550 hardcode_libdir_separator=':'
15551 link_all_deplibs=yes
15553 if test "$GCC" = yes; then
15554 case $host_os in aix4.[012]|aix4.[012].*)
15555 # We only want to do this on AIX 4.2 and lower, the check
15556 # below for broken collect2 doesn't work under 4.3+
15557 collect2name=`${CC} -print-prog-name=collect2`
15558 if test -f "$collect2name" && \
15559 strings "$collect2name" | grep resolve_lib_name >/dev/null
15561 # We have reworked collect2
15562 hardcode_direct=yes
15564 # We have old collect2
15565 hardcode_direct=unsupported
15566 # It fails to find uninstalled libraries when the uninstalled
15567 # path is not listed in the libpath. Setting hardcode_minus_L
15568 # to unsupported forces relinking
15569 hardcode_minus_L=yes
15570 hardcode_libdir_flag_spec='-L$libdir'
15571 hardcode_libdir_separator=
15575 shared_flag='-shared'
15576 if test "$aix_use_runtimelinking" = yes; then
15577 shared_flag="$shared_flag "'${wl}-G'
15581 if test "$host_cpu" = ia64; then
15582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583 # chokes on -Wl,-G. The following line is correct:
15586 if test "$aix_use_runtimelinking" = yes; then
15587 shared_flag='${wl}-G'
15589 shared_flag='${wl}-bM:SRE'
15594 # It seems that -bexpall does not export symbols beginning with
15595 # underscore (_), so it is better to generate a list of symbols to export.
15596 always_export_symbols=yes
15597 if test "$aix_use_runtimelinking" = yes; then
15598 # Warning - without using the other runtime loading flags (-brtl),
15599 # -berok will link without error, but may produce a broken library.
15600 allow_undefined_flag='-berok'
15601 # Determine the default libpath from the value encoded in an empty executable.
15602 cat >conftest.$ac_ext <<_ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (ac_try="$ac_link"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_link") 2>conftest.er1
15626 grep -v '^ *+' conftest.er1 >conftest.err
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_try") 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15654 # Check for a 64-bit object if we didn't find anything.
15655 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; }
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15664 rm -f core conftest.err conftest.$ac_objext \
15665 conftest$ac_exeext conftest.$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15668 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15669 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"
15671 if test "$host_cpu" = ia64; then
15672 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15673 allow_undefined_flag="-z nodefs"
15674 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"
15676 # Determine the default libpath from the value encoded in an empty executable.
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (ac_try="$ac_link"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15701 grep -v '^ *+' conftest.er1 >conftest.err
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15707 { (case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_try") 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15729 # Check for a 64-bit object if we didn't find anything.
15730 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; }
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15739 rm -f core conftest.err conftest.$ac_objext \
15740 conftest$ac_exeext conftest.$ac_ext
15741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 # Warning - without using the other run time loading flags,
15745 # -berok will link without error, but may produce a broken library.
15746 no_undefined_flag=' ${wl}-bernotok'
15747 allow_undefined_flag=' ${wl}-berok'
15748 # Exported symbols can be pulled into shared objects from archives
15749 whole_archive_flag_spec='$convenience'
15750 archive_cmds_need_lc=yes
15751 # This is similar to how AIX traditionally builds its shared libraries.
15752 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'
15758 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)'
15759 hardcode_libdir_flag_spec='-L$libdir'
15760 hardcode_minus_L=yes
15761 # see comment about different semantics on the GNU ld section
15766 export_dynamic_flag_spec=-rdynamic
15769 cygwin* | mingw* | pw32*)
15770 # When not using gcc, we currently assume that we are using
15771 # Microsoft Visual C++.
15772 # hardcode_libdir_flag_spec is actually meaningless, as there is
15773 # no search path for DLLs.
15774 hardcode_libdir_flag_spec=' '
15775 allow_undefined_flag=unsupported
15776 # Tell ltmain to make .lib files, not .a files.
15778 # Tell ltmain to make .dll files, not .so files.
15780 # FIXME: Setting linknames here is a bad hack.
15781 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15782 # The linker will automatically build a .lib file if we build a DLL.
15783 old_archive_From_new_cmds='true'
15784 # FIXME: Should let the user specify the lib program.
15785 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15786 fix_srcfile_path='`cygpath -w "$srcfile"`'
15787 enable_shared_with_static_runtimes=yes
15790 darwin* | rhapsody*)
15792 rhapsody* | darwin1.[012])
15793 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15797 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15799 case ${MACOSX_DEPLOYMENT_TARGET} in
15801 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15804 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15810 archive_cmds_need_lc=no
15812 hardcode_automatic=yes
15813 hardcode_shlibpath_var=unsupported
15814 whole_archive_flag_spec=''
15815 link_all_deplibs=yes
15816 if test "$GCC" = yes ; then
15817 output_verbose_link_cmd='echo'
15818 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15819 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15821 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}'
15822 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}'
15824 case $cc_basename in
15826 output_verbose_link_cmd='echo'
15827 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15828 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15830 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}'
15831 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}'
15841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 hardcode_libdir_flag_spec='-L$libdir'
15843 hardcode_shlibpath_var=no
15850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15851 # support. Future versions do this automatically, but an explicit c++rt0.o
15852 # does not break anything, and helps significantly (at the cost of a little
15855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15856 hardcode_libdir_flag_spec='-R$libdir'
15857 hardcode_direct=yes
15858 hardcode_shlibpath_var=no
15861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_direct=yes
15865 hardcode_minus_L=yes
15866 hardcode_shlibpath_var=no
15869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15870 freebsd* | kfreebsd*-gnu | dragonfly*)
15871 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15872 hardcode_libdir_flag_spec='-R$libdir'
15873 hardcode_direct=yes
15874 hardcode_shlibpath_var=no
15878 if test "$GCC" = yes; then
15879 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'
15881 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'
15883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15884 hardcode_libdir_separator=:
15885 hardcode_direct=yes
15887 # hardcode_minus_L: Not really in the search PATH,
15888 # but as the default location of the library.
15889 hardcode_minus_L=yes
15890 export_dynamic_flag_spec='${wl}-E'
15894 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15895 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15899 if test "$with_gnu_ld" = no; then
15900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15901 hardcode_libdir_separator=:
15903 hardcode_direct=yes
15904 export_dynamic_flag_spec='${wl}-E'
15906 # hardcode_minus_L: Not really in the search PATH,
15907 # but as the default location of the library.
15908 hardcode_minus_L=yes
15913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15916 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15922 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15928 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15931 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15934 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15938 if test "$with_gnu_ld" = no; then
15939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15940 hardcode_libdir_separator=:
15944 hardcode_libdir_flag_spec_ld='+b $libdir'
15946 hardcode_shlibpath_var=no
15949 hardcode_direct=yes
15950 export_dynamic_flag_spec='${wl}-E'
15952 # hardcode_minus_L: Not really in the search PATH,
15953 # but as the default location of the library.
15954 hardcode_minus_L=yes
15960 irix5* | irix6* | nonstopux*)
15961 if test "$GCC" = yes; then
15962 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'
15964 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'
15965 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15968 hardcode_libdir_separator=:
15969 link_all_deplibs=yes
15973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15976 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15978 hardcode_libdir_flag_spec='-R$libdir'
15979 hardcode_direct=yes
15980 hardcode_shlibpath_var=no
15984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_direct=yes
15986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15987 hardcode_libdir_separator=:
15988 hardcode_shlibpath_var=no
15992 hardcode_direct=yes
15993 hardcode_shlibpath_var=no
15994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15998 export_dynamic_flag_spec='${wl}-E'
16001 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003 hardcode_libdir_flag_spec='-R$libdir'
16006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16014 hardcode_libdir_flag_spec='-L$libdir'
16015 hardcode_minus_L=yes
16016 allow_undefined_flag=unsupported
16017 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'
16018 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16022 if test "$GCC" = yes; then
16023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16024 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'
16026 allow_undefined_flag=' -expect_unresolved \*'
16027 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'
16029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16030 hardcode_libdir_separator=:
16033 osf4* | osf5*) # as osf3* with the addition of -msym flag
16034 if test "$GCC" = yes; then
16035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16036 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'
16037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16039 allow_undefined_flag=' -expect_unresolved \*'
16040 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'
16041 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16042 $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'
16044 # Both c and cxx compiler support -rpath directly
16045 hardcode_libdir_flag_spec='-rpath $libdir'
16047 hardcode_libdir_separator=:
16051 no_undefined_flag=' -z text'
16052 if test "$GCC" = yes; then
16054 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16059 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16063 hardcode_libdir_flag_spec='-R$libdir'
16064 hardcode_shlibpath_var=no
16066 solaris2.[0-5] | solaris2.[0-5].*) ;;
16068 # The compiler driver will combine linker options so we
16069 # cannot just pass the convience library names through
16070 # without $wl, iff we do not link with $LD.
16071 # Luckily, gcc supports the same syntax we need for Sun Studio.
16072 # Supported since Solaris 2.6 (maybe 2.5.1?)
16075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16077 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' ;;
16080 link_all_deplibs=yes
16084 if test "x$host_vendor" = xsequent; then
16085 # Use $CC to link under sequent, because it throws in some extra .o
16086 # files that make .init and .fini sections work.
16087 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16091 hardcode_libdir_flag_spec='-L$libdir'
16092 hardcode_direct=yes
16093 hardcode_minus_L=yes
16094 hardcode_shlibpath_var=no
16098 case $host_vendor in
16100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct=yes # is this really true???
16104 ## LD is ld it makes a PLAMLIB
16105 ## CC just makes a GrossModule.
16106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16107 reload_cmds='$CC -r -o $output$reload_objs'
16111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16115 runpath_var='LD_RUN_PATH'
16116 hardcode_shlibpath_var=no
16120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_shlibpath_var=no
16122 export_dynamic_flag_spec='-Bexport'
16126 if test -d /usr/nec; then
16127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 hardcode_shlibpath_var=no
16129 runpath_var=LD_RUN_PATH
16130 hardcode_runpath_var=yes
16135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16136 no_undefined_flag='${wl}-z,text'
16137 archive_cmds_need_lc=no
16138 hardcode_shlibpath_var=no
16139 runpath_var='LD_RUN_PATH'
16141 if test "$GCC" = yes; then
16142 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16150 sysv5* | sco3.2v5* | sco5v6*)
16151 # Note: We can NOT use -z defs as we might desire, because we do not
16152 # link with -lc, and that would cause any symbols used from libc to
16153 # always be unresolved, which means just about no library would
16154 # ever link correctly. If we're not using GNU ld we use -z text
16155 # though, which does catch some bad symbols but isn't as heavy-handed
16157 no_undefined_flag='${wl}-z,text'
16158 allow_undefined_flag='${wl}-z,nodefs'
16159 archive_cmds_need_lc=no
16160 hardcode_shlibpath_var=no
16161 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16162 hardcode_libdir_separator=':'
16163 link_all_deplibs=yes
16164 export_dynamic_flag_spec='${wl}-Bexport'
16165 runpath_var='LD_RUN_PATH'
16167 if test "$GCC" = yes; then
16168 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16172 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178 hardcode_libdir_flag_spec='-L$libdir'
16179 hardcode_shlibpath_var=no
16188 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16189 echo "${ECHO_T}$ld_shlibs" >&6; }
16190 test "$ld_shlibs" = no && can_build_shared=no
16193 # Do we need to explicitly link libc?
16195 case "x$archive_cmds_need_lc" in
16197 # Assume -lc should be added
16198 archive_cmds_need_lc=yes
16200 if test "$enable_shared" = yes && test "$GCC" = yes; then
16201 case $archive_cmds in
16203 # FIXME: we may have to deal with multi-command sequences.
16206 # Test whether the compiler implicitly links with -lc since on some
16207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16208 # to ld, don't add -lc before -lgcc.
16209 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16210 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } 2>conftest.err; then
16221 libobjs=conftest.$ac_objext
16223 wl=$lt_prog_compiler_wl
16224 pic_flag=$lt_prog_compiler_pic
16230 lt_save_allow_undefined_flag=$allow_undefined_flag
16231 allow_undefined_flag=
16232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16233 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }
16238 archive_cmds_need_lc=no
16240 archive_cmds_need_lc=yes
16242 allow_undefined_flag=$lt_save_allow_undefined_flag
16244 cat conftest.err 1>&5
16247 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16248 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16255 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16256 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16257 library_names_spec=
16258 libname_spec='lib$name'
16262 postuninstall_cmds=
16266 shlibpath_overrides_runpath=unknown
16268 dynamic_linker="$host_os ld.so"
16269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16270 if test "$GCC" = yes; then
16271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16272 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16273 # if the path contains ";" then we assume it to be the separator
16274 # otherwise default to the standard path separator (i.e. ":") - it is
16275 # assumed that no part of a normal pathname contains ";" but that should
16276 # okay in the real world where ";" in dirpaths is itself problematic.
16277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16284 need_lib_prefix=unknown
16285 hardcode_into_libs=no
16287 # when you set need_version to no, make sure it does not cause -set_version
16288 # flags to be left without arguments
16289 need_version=unknown
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16295 shlibpath_var=LIBPATH
16297 # AIX 3 has no versioning support, so we append a major version to the name.
16298 soname_spec='${libname}${release}${shared_ext}$major'
16305 hardcode_into_libs=yes
16306 if test "$host_cpu" = ia64; then
16307 # AIX 5 supports IA64
16308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16309 shlibpath_var=LD_LIBRARY_PATH
16311 # With GCC up to 2.95.x, collect2 would create an import file
16312 # for dependence libraries. The import file would start with
16313 # the line `#! .'. This would cause the generated library to
16314 # depend on `.', always an invalid library. This was fixed in
16315 # development snapshots of GCC prior to 3.0.
16317 aix4 | aix4.[01] | aix4.[01].*)
16318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16323 can_build_shared=no
16327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16328 # soname into executable. Probably we can add versioning support to
16329 # collect2, so additional links can be useful in future.
16330 if test "$aix_use_runtimelinking" = yes; then
16331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16332 # instead of lib<name>.a to let people know that these are not
16333 # typical AIX shared libraries.
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336 # We preserve .a as extension for shared libraries through AIX4.2
16337 # and later when we are not doing run time linking.
16338 library_names_spec='${libname}${release}.a $libname.a'
16339 soname_spec='${libname}${release}${shared_ext}$major'
16341 shlibpath_var=LIBPATH
16346 library_names_spec='$libname.ixlibrary $libname.a'
16347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16348 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'
16352 library_names_spec='${libname}${shared_ext}'
16353 dynamic_linker="$host_os ld.so"
16354 shlibpath_var=LIBRARY_PATH
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16366 # the default ld.so.conf also contains /usr/contrib/lib and
16367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16368 # libtool to hard-code these into programs
16371 cygwin* | mingw* | pw32*)
16372 version_type=windows
16377 case $GCC,$host_os in
16378 yes,cygwin* | yes,mingw* | yes,pw32*)
16379 library_names_spec='$libname.dll.a'
16380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16381 postinstall_cmds='base_file=`basename \${file}`~
16382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16383 dldir=$destdir/`dirname \$dlpath`~
16384 test -d \$dldir || mkdir -p \$dldir~
16385 $install_prog $dir/$dlname \$dldir/$dlname~
16386 chmod a+x \$dldir/$dlname'
16387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16388 dlpath=$dir/\$dldll~
16390 shlibpath_overrides_runpath=yes
16394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16399 # MinGW DLLs use traditional 'lib' prefix
16400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16402 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16403 # It is most probably a Windows format PATH printed by
16404 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16405 # path with ; separators, and with drive letters. We can handle the
16406 # drive letters (cygwin fileutils understands them), so leave them,
16407 # especially as we might pass files found there to a mingw objdump,
16408 # which wouldn't understand a cygwinified path. Ahh.
16409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16415 # pw32 DLLs use 'pw' prefix rather than 'lib'
16416 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16425 dynamic_linker='Win32 ld.exe'
16426 # FIXME: first we should search . and the directory the executable is in
16430 darwin* | rhapsody*)
16431 dynamic_linker="$host_os dyld"
16432 version_type=darwin
16435 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16436 soname_spec='${libname}${release}${major}$shared_ext'
16437 shlibpath_overrides_runpath=yes
16438 shlibpath_var=DYLD_LIBRARY_PATH
16439 shrext_cmds='.dylib'
16440 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16441 if test "$GCC" = yes; then
16442 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"`
16444 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 shlibpath_var=LD_LIBRARY_PATH
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 shlibpath_overrides_runpath=no
16470 hardcode_into_libs=yes
16471 dynamic_linker='GNU ld.so'
16474 freebsd* | dragonfly*)
16475 # DragonFly does not have aout. When/if they implement a new
16476 # versioning mechanism, adjust this.
16477 if test -x /usr/bin/objformat; then
16478 objformat=`/usr/bin/objformat`
16481 freebsd[123]*) objformat=aout ;;
16482 *) objformat=elf ;;
16485 version_type=freebsd-$objformat
16486 case $version_type in
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16497 shlibpath_var=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath=yes
16502 freebsd3.[01]* | freebsdelf3.[01]*)
16503 shlibpath_overrides_runpath=yes
16504 hardcode_into_libs=yes
16506 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16507 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16508 shlibpath_overrides_runpath=no
16509 hardcode_into_libs=yes
16511 freebsd*) # from 4.6 on
16512 shlibpath_overrides_runpath=yes
16513 hardcode_into_libs=yes
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16523 soname_spec='${libname}${release}${shared_ext}$major'
16524 shlibpath_var=LD_LIBRARY_PATH
16525 hardcode_into_libs=yes
16528 hpux9* | hpux10* | hpux11*)
16529 # Give a soname corresponding to the major version so that dld.sl refuses to
16530 # link against other versions.
16537 hardcode_into_libs=yes
16538 dynamic_linker="$host_os dld.so"
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 if test "X$HPUX_IA64_MODE" = X32; then
16544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16552 hardcode_into_libs=yes
16553 dynamic_linker="$host_os dld.sl"
16554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557 soname_spec='${libname}${release}${shared_ext}$major'
16558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16563 dynamic_linker="$host_os dld.sl"
16564 shlibpath_var=SHLIB_PATH
16565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16570 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16571 postinstall_cmds='chmod 555 $lib'
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=no
16583 hardcode_into_libs=yes
16586 irix5* | irix6* | nonstopux*)
16588 nonstopux*) version_type=nonstopux ;;
16590 if test "$lt_cv_prog_gnu_ld" = yes; then
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16601 irix5* | nonstopux*)
16602 libsuff= shlibsuff=
16605 case $LD in # libtool.m4 will add one of these switches to LD
16606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16607 libsuff= shlibsuff= libmagic=32-bit;;
16608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16609 libsuff=32 shlibsuff=N32 libmagic=N32;;
16610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16612 *) libsuff= shlibsuff= libmagic=never-match;;
16616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16617 shlibpath_overrides_runpath=no
16618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16620 hardcode_into_libs=yes
16623 # No shared lib support for Linux oldld, aout, or coff.
16624 linux*oldld* | linux*aout* | linux*coff*)
16628 # This must be Linux ELF.
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=no
16638 # This implies no fast_install, which is unacceptable.
16639 # Some rework will be needed to allow for fast_install
16640 # before this can be enabled.
16641 hardcode_into_libs=yes
16643 # Append ld.so.conf contents to the search path
16644 if test -f /etc/ld.so.conf; then
16645 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' ' '`
16646 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16649 # We used to test for /lib/ld.so.1 and disable shared libraries on
16650 # powerpc, because MkLinux only supported shared libraries with the
16651 # GNU dynamic linker. Since this was broken with cross compilers,
16652 # most powerpc-linux boxes support dynamic linking these days and
16653 # people can always --disable-shared, the test was removed, and we
16654 # assume the GNU/Linux dynamic linker is in use.
16655 dynamic_linker='GNU/Linux ld.so'
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=no
16666 hardcode_into_libs=yes
16667 dynamic_linker='GNU ld.so'
16674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16677 dynamic_linker='NetBSD (a.out) ld.so'
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16680 soname_spec='${libname}${release}${shared_ext}$major'
16681 dynamic_linker='NetBSD ld.elf_so'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=yes
16685 hardcode_into_libs=yes
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691 shlibpath_var=LD_LIBRARY_PATH
16692 shlibpath_overrides_runpath=yes
16699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16700 soname_spec='${libname}${release}${shared_ext}$major'
16701 shlibpath_var=LD_LIBRARY_PATH
16702 shlibpath_overrides_runpath=yes
16707 sys_lib_dlsearch_path_spec="/usr/lib"
16709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16712 *) need_version=no ;;
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16719 openbsd2.[89] | openbsd2.[89].*)
16720 shlibpath_overrides_runpath=no
16723 shlibpath_overrides_runpath=yes
16727 shlibpath_overrides_runpath=yes
16732 libname_spec='$name'
16735 library_names_spec='$libname${shared_ext} $libname.a'
16736 dynamic_linker='OS/2 ld.exe'
16737 shlibpath_var=LIBPATH
16740 osf3* | osf4* | osf5*)
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 hardcode_into_libs=yes
16760 # ldd complains unless libraries are executable
16761 postinstall_cmds='chmod +x $lib'
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes
16770 if test "$with_gnu_ld" = yes; then
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 case $host_vendor in
16783 shlibpath_overrides_runpath=no
16785 export_dynamic_flag_spec='${wl}-Blargedynsym'
16786 runpath_var=LD_RUN_PATH
16794 shlibpath_overrides_runpath=no
16795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16801 if test -d /usr/nec ;then
16803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16804 soname_spec='$libname${shared_ext}.$major'
16805 shlibpath_var=LD_LIBRARY_PATH
16809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16810 version_type=freebsd-elf
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 hardcode_into_libs=yes
16817 if test "$with_gnu_ld" = yes; then
16818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16819 shlibpath_overrides_runpath=no
16821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16822 shlibpath_overrides_runpath=yes
16825 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16829 sys_lib_dlsearch_path_spec='/usr/lib'
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 soname_spec='${libname}${release}${shared_ext}$major'
16836 shlibpath_var=LD_LIBRARY_PATH
16843 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16844 echo "${ECHO_T}$dynamic_linker" >&6; }
16845 test "$dynamic_linker" = no && can_build_shared=no
16847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16848 if test "$GCC" = yes; then
16849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16852 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16853 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16855 if test -n "$hardcode_libdir_flag_spec" || \
16856 test -n "$runpath_var" || \
16857 test "X$hardcode_automatic" = "Xyes" ; then
16859 # We can hardcode non-existant directories.
16860 if test "$hardcode_direct" != no &&
16861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16862 # have to relink, otherwise we might link with an installed library
16863 # when we should be linking with a yet-to-be-installed one
16864 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16865 test "$hardcode_minus_L" != no; then
16866 # Linking always hardcodes the temporary library directory.
16867 hardcode_action=relink
16869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16870 hardcode_action=immediate
16873 # We cannot hardcode anything, or else we can only hardcode existing
16875 hardcode_action=unsupported
16877 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16878 echo "${ECHO_T}$hardcode_action" >&6; }
16880 if test "$hardcode_action" = relink; then
16881 # Fast installation is not supported
16882 enable_fast_install=no
16883 elif test "$shlibpath_overrides_runpath" = yes ||
16884 test "$enable_shared" = no; then
16885 # Fast installation is not necessary
16886 enable_fast_install=needless
16891 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16892 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16893 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16896 { echo "$as_me:$LINENO: result: yes" >&5
16897 echo "${ECHO_T}yes" >&6; }
16899 # FIXME - insert some real tests, host_os isn't really good enough
16902 if test -n "$STRIP" ; then
16903 striplib="$STRIP -x"
16904 { echo "$as_me:$LINENO: result: yes" >&5
16905 echo "${ECHO_T}yes" >&6; }
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16912 { echo "$as_me:$LINENO: result: no" >&5
16913 echo "${ECHO_T}no" >&6; }
16918 if test "x$enable_dlopen" != xyes; then
16919 enable_dlopen=unknown
16920 enable_dlopen_self=unknown
16921 enable_dlopen_self_static=unknown
16928 lt_cv_dlopen="load_add_on"
16930 lt_cv_dlopen_self=yes
16934 lt_cv_dlopen="LoadLibrary"
16939 lt_cv_dlopen="dlopen"
16944 # if libdl is installed we need to link against it
16945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 ac_check_lib_save_LIBS=$LIBS
16952 cat >conftest.$ac_ext <<_ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (ac_try="$ac_link"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>conftest.er1
16983 grep -v '^ *+' conftest.er1 >conftest.err
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16989 { (case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_try") 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try='test -s conftest$ac_exeext'
16999 { (case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_try") 2>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008 ac_cv_lib_dl_dlopen=yes
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_cv_lib_dl_dlopen=no
17016 rm -f core conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
17018 LIBS=$ac_check_lib_save_LIBS
17020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17022 if test $ac_cv_lib_dl_dlopen = yes; then
17023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17026 lt_cv_dlopen="dyld"
17028 lt_cv_dlopen_self=yes
17035 { echo "$as_me:$LINENO: checking for shl_load" >&5
17036 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17037 if test "${ac_cv_func_shl_load+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17048 #define shl_load innocuous_shl_load
17050 /* System header to define __stub macros and hopefully few prototypes,
17051 which can conflict with char shl_load (); below.
17052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053 <limits.h> exists even on freestanding compilers. */
17056 # include <limits.h>
17058 # include <assert.h>
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17070 /* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
17073 #if defined __stub_shl_load || defined __stub___shl_load
17080 return shl_load ();
17085 rm -f conftest.$ac_objext conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>conftest.er1
17094 grep -v '^ *+' conftest.er1 >conftest.err
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest$ac_exeext'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 ac_cv_func_shl_load=yes
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 ac_cv_func_shl_load=no
17127 rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17130 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17131 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17132 if test $ac_cv_func_shl_load = yes; then
17133 lt_cv_dlopen="shl_load"
17135 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17136 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17137 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 ac_check_lib_save_LIBS=$LIBS
17142 cat >conftest.$ac_ext <<_ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17149 /* Override any GCC internal prototype to avoid an error.
17150 Use char because int might match the return type of a GCC
17151 builtin and then its argument prototype would still apply. */
17159 return shl_load ();
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_link") 2>conftest.er1
17173 grep -v '^ *+' conftest.er1 >conftest.err
17175 cat conftest.err >&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
17178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; } &&
17188 { ac_try='test -s conftest$ac_exeext'
17189 { (case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_try") 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_lib_dld_shl_load=yes
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17203 ac_cv_lib_dld_shl_load=no
17206 rm -f core conftest.err conftest.$ac_objext \
17207 conftest$ac_exeext conftest.$ac_ext
17208 LIBS=$ac_check_lib_save_LIBS
17210 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17211 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17212 if test $ac_cv_lib_dld_shl_load = yes; then
17213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17215 { echo "$as_me:$LINENO: checking for dlopen" >&5
17216 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17217 if test "${ac_cv_func_dlopen+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 cat >conftest.$ac_ext <<_ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228 #define dlopen innocuous_dlopen
17230 /* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char dlopen (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17236 # include <limits.h>
17238 # include <assert.h>
17243 /* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17250 /* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253 #if defined __stub_dlopen || defined __stub___dlopen
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17274 grep -v '^ *+' conftest.er1 >conftest.err
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; } &&
17289 { ac_try='test -s conftest$ac_exeext'
17290 { (case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_try") 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_func_dlopen=yes
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17304 ac_cv_func_dlopen=no
17307 rm -f core conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17310 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17311 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17312 if test $ac_cv_func_dlopen = yes; then
17313 lt_cv_dlopen="dlopen"
17315 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17316 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17317 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 ac_check_lib_save_LIBS=$LIBS
17322 cat >conftest.$ac_ext <<_ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h. */
17329 /* Override any GCC internal prototype to avoid an error.
17330 Use char because int might match the return type of a GCC
17331 builtin and then its argument prototype would still apply. */
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_link") 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest$ac_exeext'
17369 { (case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_try") 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_cv_lib_dl_dlopen=yes
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ac_cv_lib_dl_dlopen=no
17386 rm -f core conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
17388 LIBS=$ac_check_lib_save_LIBS
17390 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17391 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17392 if test $ac_cv_lib_dl_dlopen = yes; then
17393 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17395 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17396 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17397 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 ac_check_lib_save_LIBS=$LIBS
17401 LIBS="-lsvld $LIBS"
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17409 /* Override any GCC internal prototype to avoid an error.
17410 Use char because int might match the return type of a GCC
17411 builtin and then its argument prototype would still apply. */
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (ac_try="$ac_link"
17426 case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_link") 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17439 { (case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_try") 2>&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest$ac_exeext'
17449 { (case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_try") 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
17458 ac_cv_lib_svld_dlopen=yes
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 ac_cv_lib_svld_dlopen=no
17466 rm -f core conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17468 LIBS=$ac_check_lib_save_LIBS
17470 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17471 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17472 if test $ac_cv_lib_svld_dlopen = yes; then
17473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17475 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17476 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17477 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 ac_check_lib_save_LIBS=$LIBS
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17489 /* Override any GCC internal prototype to avoid an error.
17490 Use char because int might match the return type of a GCC
17491 builtin and then its argument prototype would still apply. */
17499 return dld_link ();
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_link") 2>conftest.er1
17513 grep -v '^ *+' conftest.er1 >conftest.err
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17519 { (case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_try") 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest$ac_exeext'
17529 { (case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_try") 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_cv_lib_dld_dld_link=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_cv_lib_dld_dld_link=no
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17551 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17552 if test $ac_cv_lib_dld_dld_link = yes; then
17553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17574 if test "x$lt_cv_dlopen" != xno; then
17580 case $lt_cv_dlopen in
17582 save_CPPFLAGS="$CPPFLAGS"
17583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17585 save_LDFLAGS="$LDFLAGS"
17586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17589 LIBS="$lt_cv_dlopen_libs $LIBS"
17591 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17592 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17593 if test "${lt_cv_dlopen_self+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 if test "$cross_compiling" = yes; then :
17597 lt_cv_dlopen_self=cross
17599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17600 lt_status=$lt_dlunknown
17601 cat > conftest.$ac_ext <<EOF
17602 #line 17602 "configure"
17603 #include "confdefs.h"
17612 # define LT_DLGLOBAL RTLD_GLOBAL
17615 # define LT_DLGLOBAL DL_GLOBAL
17617 # define LT_DLGLOBAL 0
17621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622 find out it does not work in some platform. */
17623 #ifndef LT_DLLAZY_OR_NOW
17625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17628 # define LT_DLLAZY_OR_NOW DL_LAZY
17631 # define LT_DLLAZY_OR_NOW RTLD_NOW
17634 # define LT_DLLAZY_OR_NOW DL_NOW
17636 # define LT_DLLAZY_OR_NOW 0
17644 extern "C" void exit (int);
17647 void fnord() { int i=42;}
17650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17651 int status = $lt_dlunknown;
17655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17657 /* dlclose (self); */
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666 (eval $ac_link) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17670 (./conftest; exit; ) >&5 2>/dev/null
17672 case x$lt_status in
17673 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17674 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17675 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17678 # compilation failed
17679 lt_cv_dlopen_self=no
17686 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17687 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17689 if test "x$lt_cv_dlopen_self" = xyes; then
17690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17691 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17692 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17693 if test "${lt_cv_dlopen_self_static+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 if test "$cross_compiling" = yes; then :
17697 lt_cv_dlopen_self_static=cross
17699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17700 lt_status=$lt_dlunknown
17701 cat > conftest.$ac_ext <<EOF
17702 #line 17702 "configure"
17703 #include "confdefs.h"
17712 # define LT_DLGLOBAL RTLD_GLOBAL
17715 # define LT_DLGLOBAL DL_GLOBAL
17717 # define LT_DLGLOBAL 0
17721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17722 find out it does not work in some platform. */
17723 #ifndef LT_DLLAZY_OR_NOW
17725 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17728 # define LT_DLLAZY_OR_NOW DL_LAZY
17731 # define LT_DLLAZY_OR_NOW RTLD_NOW
17734 # define LT_DLLAZY_OR_NOW DL_NOW
17736 # define LT_DLLAZY_OR_NOW 0
17744 extern "C" void exit (int);
17747 void fnord() { int i=42;}
17750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17751 int status = $lt_dlunknown;
17755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17756 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17757 /* dlclose (self); */
17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766 (eval $ac_link) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17770 (./conftest; exit; ) >&5 2>/dev/null
17772 case x$lt_status in
17773 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17774 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17775 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17778 # compilation failed
17779 lt_cv_dlopen_self_static=no
17786 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17787 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17790 CPPFLAGS="$save_CPPFLAGS"
17791 LDFLAGS="$save_LDFLAGS"
17796 case $lt_cv_dlopen_self in
17797 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17798 *) enable_dlopen_self=unknown ;;
17801 case $lt_cv_dlopen_self_static in
17802 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17803 *) enable_dlopen_self_static=unknown ;;
17808 # Report which library types will actually be built
17809 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17810 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17811 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17812 echo "${ECHO_T}$can_build_shared" >&6; }
17814 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17815 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17816 test "$can_build_shared" = "no" && enable_shared=no
17818 # On AIX, shared libraries and static libraries use the same namespace, and
17819 # are all built from PIC.
17822 test "$enable_shared" = yes && enable_static=no
17823 if test -n "$RANLIB"; then
17824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17825 postinstall_cmds='$RANLIB $lib'
17830 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17831 test "$enable_shared" = yes && enable_static=no
17835 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17836 echo "${ECHO_T}$enable_shared" >&6; }
17838 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17839 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17840 # Make sure either enable_shared or enable_static is yes.
17841 test "$enable_shared" = yes || enable_static=yes
17842 { echo "$as_me:$LINENO: result: $enable_static" >&5
17843 echo "${ECHO_T}$enable_static" >&6; }
17845 # The else clause should only fire when bootstrapping the
17846 # libtool distribution, otherwise you forgot to ship ltmain.sh
17847 # with your package, and you will get complaints that there are
17848 # no rules to generate ltmain.sh.
17849 if test -f "$ltmain"; then
17850 # See if we are running on zsh, and set the options which allow our commands through
17851 # without removal of \ escapes.
17852 if test -n "${ZSH_VERSION+set}" ; then
17853 setopt NO_GLOB_SUBST
17855 # Now quote all the things that may contain metacharacters while being
17856 # careful not to overquote the AC_SUBSTed values. We take copies of the
17857 # variables and quote the copies for generation of the libtool script.
17858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17862 deplibs_check_method reload_flag reload_cmds need_locks \
17863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17864 lt_cv_sys_global_symbol_to_c_name_address \
17865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17866 old_postinstall_cmds old_postuninstall_cmds \
17870 lt_prog_compiler_wl \
17871 lt_prog_compiler_pic \
17872 lt_prog_compiler_static \
17873 lt_prog_compiler_no_builtin_flag \
17874 export_dynamic_flag_spec \
17875 thread_safe_flag_spec \
17876 whole_archive_flag_spec \
17877 enable_shared_with_static_runtimes \
17879 old_archive_from_new_cmds \
17884 compiler_lib_search_path \
17886 archive_expsym_cmds \
17888 postuninstall_cmds \
17889 old_archive_from_expsyms_cmds \
17890 allow_undefined_flag \
17891 no_undefined_flag \
17892 export_symbols_cmds \
17893 hardcode_libdir_flag_spec \
17894 hardcode_libdir_flag_spec_ld \
17895 hardcode_libdir_separator \
17896 hardcode_automatic \
17898 module_expsym_cmds \
17899 lt_cv_prog_compiler_c_o \
17901 include_expsyms; do
17904 old_archive_cmds | \
17905 old_archive_from_new_cmds | \
17907 archive_expsym_cmds | \
17909 module_expsym_cmds | \
17910 old_archive_from_expsyms_cmds | \
17911 export_symbols_cmds | \
17912 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17913 postinstall_cmds | postuninstall_cmds | \
17914 old_postinstall_cmds | old_postuninstall_cmds | \
17915 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17916 # Double-quote double-evaled strings.
17917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17926 *'\$0 --fallback-echo"')
17927 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17931 cfgfile="${ofile}T"
17932 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17934 { echo "$as_me:$LINENO: creating $ofile" >&5
17935 echo "$as_me: creating $ofile" >&6;}
17937 cat <<__EOF__ >> "$cfgfile"
17940 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17941 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17942 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17944 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17945 # Free Software Foundation, Inc.
17947 # This file is part of GNU Libtool:
17948 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17950 # This program is free software; you can redistribute it and/or modify
17951 # it under the terms of the GNU General Public License as published by
17952 # the Free Software Foundation; either version 2 of the License, or
17953 # (at your option) any later version.
17955 # This program is distributed in the hope that it will be useful, but
17956 # WITHOUT ANY WARRANTY; without even the implied warranty of
17957 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17958 # General Public License for more details.
17960 # You should have received a copy of the GNU General Public License
17961 # along with this program; if not, write to the Free Software
17962 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17964 # As a special exception to the GNU General Public License, if you
17965 # distribute this file as part of a program that contains a
17966 # configuration script generated by Autoconf, you may include it under
17967 # the same distribution terms that you use for the rest of that program.
17969 # A sed program that does not truncate output.
17972 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17973 Xsed="$SED -e 1s/^X//"
17975 # The HP-UX ksh and POSIX shell print the target directory to stdout
17976 # if CDPATH is set.
17977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17979 # The names of the tagged configurations supported by this script.
17982 # ### BEGIN LIBTOOL CONFIG
17984 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17986 # Shell to use when invoking shell scripts.
17989 # Whether or not to build shared libraries.
17990 build_libtool_libs=$enable_shared
17992 # Whether or not to build static libraries.
17993 build_old_libs=$enable_static
17995 # Whether or not to add -lc for building shared libraries.
17996 build_libtool_need_lc=$archive_cmds_need_lc
17998 # Whether or not to disallow shared libs when runtime libs are static
17999 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18001 # Whether or not to optimize for fast installation.
18002 fast_install=$enable_fast_install
18005 host_alias=$host_alias
18009 # The build system.
18010 build_alias=$build_alias
18014 # An echo program that does not interpret backslashes.
18019 AR_FLAGS=$lt_AR_FLAGS
18024 # LTCC compiler flags.
18025 LTCFLAGS=$lt_LTCFLAGS
18027 # A language-specific compiler.
18030 # Is the compiler the GNU C compiler?
18036 # The linker used to build libraries.
18039 # Whether we need hard or soft links.
18042 # A BSD-compatible nm program.
18045 # A symbol stripping program
18048 # Used to examine libraries when file_magic_cmd begins "file"
18049 MAGIC_CMD=$MAGIC_CMD
18051 # Used on cygwin: DLL creation program.
18054 # Used on cygwin: object dumper.
18057 # Used on cygwin: assembler.
18060 # The name of the directory that contains temporary libtool files.
18063 # How to create reloadable object files.
18064 reload_flag=$lt_reload_flag
18065 reload_cmds=$lt_reload_cmds
18067 # How to pass a linker flag through the compiler.
18068 wl=$lt_lt_prog_compiler_wl
18070 # Object file suffix (normally "o").
18071 objext="$ac_objext"
18073 # Old archive suffix (normally "a").
18076 # Shared library suffix (normally ".so").
18077 shrext_cmds='$shrext_cmds'
18079 # Executable file suffix (normally "").
18082 # Additional compiler flags for building library objects.
18083 pic_flag=$lt_lt_prog_compiler_pic
18086 # What is the maximum length of a command?
18087 max_cmd_len=$lt_cv_sys_max_cmd_len
18089 # Does compiler simultaneously support -c and -o options?
18090 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18092 # Must we lock files when doing compilation?
18093 need_locks=$lt_need_locks
18095 # Do we need the lib prefix for modules?
18096 need_lib_prefix=$need_lib_prefix
18098 # Do we need a version for libraries?
18099 need_version=$need_version
18101 # Whether dlopen is supported.
18102 dlopen_support=$enable_dlopen
18104 # Whether dlopen of programs is supported.
18105 dlopen_self=$enable_dlopen_self
18107 # Whether dlopen of statically linked programs is supported.
18108 dlopen_self_static=$enable_dlopen_self_static
18110 # Compiler flag to prevent dynamic linking.
18111 link_static_flag=$lt_lt_prog_compiler_static
18113 # Compiler flag to turn off builtin functions.
18114 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18116 # Compiler flag to allow reflexive dlopens.
18117 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18119 # Compiler flag to generate shared objects directly from archives.
18120 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18122 # Compiler flag to generate thread-safe objects.
18123 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18125 # Library versioning type.
18126 version_type=$version_type
18128 # Format of library name prefix.
18129 libname_spec=$lt_libname_spec
18131 # List of archive names. First name is the real one, the rest are links.
18132 # The last name is the one that the linker finds with -lNAME.
18133 library_names_spec=$lt_library_names_spec
18135 # The coded name of the library, if different from the real name.
18136 soname_spec=$lt_soname_spec
18138 # Commands used to build and install an old-style archive.
18140 old_archive_cmds=$lt_old_archive_cmds
18141 old_postinstall_cmds=$lt_old_postinstall_cmds
18142 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18144 # Create an old-style archive from a shared archive.
18145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18147 # Create a temporary old-style archive to link instead of a shared archive.
18148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18150 # Commands used to build and install a shared archive.
18151 archive_cmds=$lt_archive_cmds
18152 archive_expsym_cmds=$lt_archive_expsym_cmds
18153 postinstall_cmds=$lt_postinstall_cmds
18154 postuninstall_cmds=$lt_postuninstall_cmds
18156 # Commands used to build a loadable module (assumed same as above if empty)
18157 module_cmds=$lt_module_cmds
18158 module_expsym_cmds=$lt_module_expsym_cmds
18160 # Commands to strip libraries.
18161 old_striplib=$lt_old_striplib
18162 striplib=$lt_striplib
18164 # Dependencies to place before the objects being linked to create a
18166 predep_objects=$lt_predep_objects
18168 # Dependencies to place after the objects being linked to create a
18170 postdep_objects=$lt_postdep_objects
18172 # Dependencies to place before the objects being linked to create a
18174 predeps=$lt_predeps
18176 # Dependencies to place after the objects being linked to create a
18178 postdeps=$lt_postdeps
18180 # The library search path used internally by the compiler when linking
18181 # a shared library.
18182 compiler_lib_search_path=$lt_compiler_lib_search_path
18184 # Method to check whether dependent libraries are shared objects.
18185 deplibs_check_method=$lt_deplibs_check_method
18187 # Command to use when deplibs_check_method == file_magic.
18188 file_magic_cmd=$lt_file_magic_cmd
18190 # Flag that allows shared libraries with undefined symbols to be built.
18191 allow_undefined_flag=$lt_allow_undefined_flag
18193 # Flag that forces no undefined symbols.
18194 no_undefined_flag=$lt_no_undefined_flag
18196 # Commands used to finish a libtool library installation in a directory.
18197 finish_cmds=$lt_finish_cmds
18199 # Same as above, but a single script fragment to be evaled but not shown.
18200 finish_eval=$lt_finish_eval
18202 # Take the output of nm and produce a listing of raw symbols and C names.
18203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18205 # Transform the output of nm in a proper C declaration
18206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18208 # Transform the output of nm in a C name address pair
18209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18211 # This is the shared library runtime path variable.
18212 runpath_var=$runpath_var
18214 # This is the shared library path variable.
18215 shlibpath_var=$shlibpath_var
18217 # Is shlibpath searched before the hard-coded library search path?
18218 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18220 # How to hardcode a shared library path into an executable.
18221 hardcode_action=$hardcode_action
18223 # Whether we should hardcode library paths into libraries.
18224 hardcode_into_libs=$hardcode_into_libs
18226 # Flag to hardcode \$libdir into a binary during linking.
18227 # This must work even if \$libdir does not exist.
18228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18230 # If ld is used when linking, flag to hardcode \$libdir into
18231 # a binary during linking. This must work even if \$libdir does
18233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18235 # Whether we need a single -rpath flag with a separated argument.
18236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18238 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18239 # resulting binary.
18240 hardcode_direct=$hardcode_direct
18242 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18243 # resulting binary.
18244 hardcode_minus_L=$hardcode_minus_L
18246 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18247 # the resulting binary.
18248 hardcode_shlibpath_var=$hardcode_shlibpath_var
18250 # Set to yes if building a shared library automatically hardcodes DIR into the library
18251 # and all subsequent libraries and executables linked against it.
18252 hardcode_automatic=$hardcode_automatic
18254 # Variables whose values should be saved in libtool wrapper scripts and
18255 # restored at relink time.
18256 variables_saved_for_relink="$variables_saved_for_relink"
18258 # Whether libtool must link a program against all its dependency libraries.
18259 link_all_deplibs=$link_all_deplibs
18261 # Compile-time system search path for libraries
18262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18264 # Run-time system search path for libraries
18265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18267 # Fix the shell variable \$srcfile for the compiler.
18268 fix_srcfile_path="$fix_srcfile_path"
18270 # Set to yes if exported symbols are required.
18271 always_export_symbols=$always_export_symbols
18273 # The commands to list exported symbols.
18274 export_symbols_cmds=$lt_export_symbols_cmds
18276 # The commands to extract the exported symbol list from a shared archive.
18277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18279 # Symbols that should not be listed in the preloaded symbols.
18280 exclude_expsyms=$lt_exclude_expsyms
18282 # Symbols that must always be exported.
18283 include_expsyms=$lt_include_expsyms
18285 # ### END LIBTOOL CONFIG
18292 cat <<\EOF >> "$cfgfile"
18294 # AIX sometimes has problems with the GCC collect2 program. For some
18295 # reason, if we set the COLLECT_NAMES environment variable, the problems
18296 # vanish in a puff of smoke.
18297 if test "X${COLLECT_NAMES+set}" != Xset; then
18299 export COLLECT_NAMES
18305 # We use sed instead of cat because bash on DJGPP gets confused if
18306 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18307 # text mode, it properly converts lines to CR/LF. This bash problem
18308 # is reportedly fixed, but why not run on old versions too?
18309 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18311 mv -f "$cfgfile" "$ofile" || \
18312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18316 # If there is no Makefile yet, we rely on a make rule to execute
18317 # `config.status --recheck' to rerun these tests and create the
18318 # libtool script then.
18319 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18320 if test -f "$ltmain_in"; then
18321 test -f Makefile && make "$ltmain"
18327 ac_cpp='$CPP $CPPFLAGS'
18328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18335 # Check whether --with-tags was given.
18336 if test "${with_tags+set}" = set; then
18337 withval=$with_tags; tagnames="$withval"
18341 if test -f "$ltmain" && test -n "$tagnames"; then
18342 if test ! -f "${ofile}"; then
18343 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18344 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18347 if test -z "$LTCC"; then
18348 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18349 if test -z "$LTCC"; then
18350 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18351 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18354 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18357 if test -z "$LTCFLAGS"; then
18358 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18361 # Extract list of available tagged configurations in $ofile.
18362 # Note that this assumes the entire list is on one line.
18363 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18366 for tagname in $tagnames; do
18368 # Check whether tagname contains only valid characters
18369 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18371 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18372 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18373 { (exit 1); exit 1; }; }
18377 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18379 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18380 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18381 { (exit 1); exit 1; }; }
18384 # Update the list of available tags.
18385 if test -n "$tagname"; then
18386 echo appending configuration tag \"$tagname\" to $ofile
18390 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18391 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18392 (test "X$CXX" != "Xg++"))) ; then
18394 ac_cpp='$CXXCPP $CPPFLAGS'
18395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18402 archive_cmds_need_lc_CXX=no
18403 allow_undefined_flag_CXX=
18404 always_export_symbols_CXX=no
18405 archive_expsym_cmds_CXX=
18406 export_dynamic_flag_spec_CXX=
18407 hardcode_direct_CXX=no
18408 hardcode_libdir_flag_spec_CXX=
18409 hardcode_libdir_flag_spec_ld_CXX=
18410 hardcode_libdir_separator_CXX=
18411 hardcode_minus_L_CXX=no
18412 hardcode_shlibpath_var_CXX=unsupported
18413 hardcode_automatic_CXX=no
18415 module_expsym_cmds_CXX=
18416 link_all_deplibs_CXX=unknown
18417 old_archive_cmds_CXX=$old_archive_cmds
18418 no_undefined_flag_CXX=
18419 whole_archive_flag_spec_CXX=
18420 enable_shared_with_static_runtimes_CXX=no
18422 # Dependencies to place before and after the object being linked:
18423 predep_objects_CXX=
18424 postdep_objects_CXX=
18427 compiler_lib_search_path_CXX=
18429 # Source file extension for C++ test sources.
18432 # Object file extension for compiled C++ test sources.
18436 # Code to be used in simple compile tests
18437 lt_simple_compile_test_code="int some_variable = 0;\n"
18439 # Code to be used in simple link tests
18440 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18444 # If no C compiler was specified, use CC.
18447 # If no C compiler flags were specified, use CFLAGS.
18448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18450 # Allow CC to be a program name with arguments.
18454 # save warnings/boilerplate of simple test code
18455 ac_outfile=conftest.$ac_objext
18456 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18457 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18458 _lt_compiler_boilerplate=`cat conftest.err`
18461 ac_outfile=conftest.$ac_objext
18462 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18463 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18464 _lt_linker_boilerplate=`cat conftest.err`
18468 # Allow CC to be a program name with arguments.
18473 lt_save_with_gnu_ld=$with_gnu_ld
18474 lt_save_path_LD=$lt_cv_path_LD
18475 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18476 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18478 $as_unset lt_cv_prog_gnu_ld
18480 if test -n "${lt_cv_path_LDCXX+set}"; then
18481 lt_cv_path_LD=$lt_cv_path_LDCXX
18483 $as_unset lt_cv_path_LD
18485 test -z "${LDCXX+set}" || LD=$LDCXX
18489 for cc_temp in $compiler""; do
18491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18500 # We don't want -fno-exception wen compiling C++ code, so set the
18501 # no_builtin_flag separately
18502 if test "$GXX" = yes; then
18503 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18505 lt_prog_compiler_no_builtin_flag_CXX=
18508 if test "$GXX" = yes; then
18509 # Set up default GNU C++ configuration
18512 # Check whether --with-gnu-ld was given.
18513 if test "${with_gnu_ld+set}" = set; then
18514 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18520 if test "$GCC" = yes; then
18521 # Check if gcc -print-prog-name=ld gives a path.
18522 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18523 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18526 # gcc leaves a trailing carriage return which upsets mingw
18527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18532 # Accept absolute paths.
18534 re_direlt='/[^/][^/]*/\.\./'
18535 # Canonicalize the pathname of ld
18536 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18538 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18540 test -z "$LD" && LD="$ac_prog"
18543 # If it fails, then pretend we aren't using GCC.
18547 # If it is relative, then search for the first ld in PATH.
18548 with_gnu_ld=unknown
18551 elif test "$with_gnu_ld" = yes; then
18552 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18553 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18555 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18556 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18558 if test "${lt_cv_path_LD+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 if test -z "$LD"; then
18562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18563 for ac_dir in $PATH; do
18565 test -z "$ac_dir" && ac_dir=.
18566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18567 lt_cv_path_LD="$ac_dir/$ac_prog"
18568 # Check to see if the program is GNU ld. I'd rather use --version,
18569 # but apparently some variants of GNU ld only accept -v.
18570 # Break only if it was the GNU/non-GNU ld that we prefer.
18571 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18572 *GNU* | *'with BFD'*)
18573 test "$with_gnu_ld" != no && break
18576 test "$with_gnu_ld" != yes && break
18583 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18587 LD="$lt_cv_path_LD"
18588 if test -n "$LD"; then
18589 { echo "$as_me:$LINENO: result: $LD" >&5
18590 echo "${ECHO_T}$LD" >&6; }
18592 { echo "$as_me:$LINENO: result: no" >&5
18593 echo "${ECHO_T}no" >&6; }
18595 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18596 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18597 { (exit 1); exit 1; }; }
18598 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18599 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18600 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18604 case `$LD -v 2>&1 </dev/null` in
18605 *GNU* | *'with BFD'*)
18606 lt_cv_prog_gnu_ld=yes
18609 lt_cv_prog_gnu_ld=no
18613 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18614 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18615 with_gnu_ld=$lt_cv_prog_gnu_ld
18619 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18620 # archiving commands below assume that GNU ld is being used.
18621 if test "$with_gnu_ld" = yes; then
18622 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18623 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'
18625 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18628 # If archive_cmds runs LD, not CC, wlarc should be empty
18629 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18630 # investigate it a little bit more. (MM)
18633 # ancient GNU ld didn't support --whole-archive et. al.
18634 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18635 grep 'no-whole-archive' > /dev/null; then
18636 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18638 whole_archive_flag_spec_CXX=
18644 # A generic and very simple default shared library creation
18645 # command for GNU C++ for the case where it uses the native
18646 # linker, instead of GNU ld. If possible, this setting should
18647 # overridden to take advantage of the native linker features on
18648 # the platform it is being used on.
18649 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18652 # Commands to make compiler produce verbose output that lists
18653 # what "hidden" libraries, object files and flags are used when
18654 # linking a shared library.
18655 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18663 # PORTME: fill in a description of your system's C++ link characteristics
18664 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18665 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18669 # FIXME: insert proper C++ library support
18673 if test "$host_cpu" = ia64; then
18674 # On IA64, the linker does run time linking by default, so we don't
18675 # have to do anything special.
18676 aix_use_runtimelinking=no
18677 exp_sym_flag='-Bexport'
18680 aix_use_runtimelinking=no
18682 # Test if we are trying to use run time linking or normal
18683 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18684 # need to do runtime linking.
18685 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18686 for ld_flag in $LDFLAGS; do
18689 aix_use_runtimelinking=yes
18697 exp_sym_flag='-bexport'
18698 no_entry_flag='-bnoentry'
18701 # When large executables or shared objects are built, AIX ld can
18702 # have problems creating the table of contents. If linking a library
18703 # or program results in "error TOC overflow" add -mminimal-toc to
18704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18707 archive_cmds_CXX=''
18708 hardcode_direct_CXX=yes
18709 hardcode_libdir_separator_CXX=':'
18710 link_all_deplibs_CXX=yes
18712 if test "$GXX" = yes; then
18713 case $host_os in aix4.[012]|aix4.[012].*)
18714 # We only want to do this on AIX 4.2 and lower, the check
18715 # below for broken collect2 doesn't work under 4.3+
18716 collect2name=`${CC} -print-prog-name=collect2`
18717 if test -f "$collect2name" && \
18718 strings "$collect2name" | grep resolve_lib_name >/dev/null
18720 # We have reworked collect2
18721 hardcode_direct_CXX=yes
18723 # We have old collect2
18724 hardcode_direct_CXX=unsupported
18725 # It fails to find uninstalled libraries when the uninstalled
18726 # path is not listed in the libpath. Setting hardcode_minus_L
18727 # to unsupported forces relinking
18728 hardcode_minus_L_CXX=yes
18729 hardcode_libdir_flag_spec_CXX='-L$libdir'
18730 hardcode_libdir_separator_CXX=
18734 shared_flag='-shared'
18735 if test "$aix_use_runtimelinking" = yes; then
18736 shared_flag="$shared_flag "'${wl}-G'
18740 if test "$host_cpu" = ia64; then
18741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18742 # chokes on -Wl,-G. The following line is correct:
18745 if test "$aix_use_runtimelinking" = yes; then
18746 shared_flag='${wl}-G'
18748 shared_flag='${wl}-bM:SRE'
18753 # It seems that -bexpall does not export symbols beginning with
18754 # underscore (_), so it is better to generate a list of symbols to export.
18755 always_export_symbols_CXX=yes
18756 if test "$aix_use_runtimelinking" = yes; then
18757 # Warning - without using the other runtime loading flags (-brtl),
18758 # -berok will link without error, but may produce a broken library.
18759 allow_undefined_flag_CXX='-berok'
18760 # Determine the default libpath from the value encoded in an empty executable.
18761 cat >conftest.$ac_ext <<_ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18776 rm -f conftest.$ac_objext conftest$ac_exeext
18777 if { (ac_try="$ac_link"
18778 case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_link") 2>conftest.er1
18785 grep -v '^ *+' conftest.er1 >conftest.err
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18813 # Check for a 64-bit object if we didn't find anything.
18814 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; }
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18823 rm -f core conftest.err conftest.$ac_objext \
18824 conftest$ac_exeext conftest.$ac_ext
18825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18827 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18829 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"
18831 if test "$host_cpu" = ia64; then
18832 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18833 allow_undefined_flag_CXX="-z nodefs"
18834 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"
18836 # Determine the default libpath from the value encoded in an empty executable.
18837 cat >conftest.$ac_ext <<_ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (ac_try="$ac_link"
18854 case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>conftest.er1
18861 grep -v '^ *+' conftest.er1 >conftest.err
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18889 # Check for a 64-bit object if we didn't find anything.
18890 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; }
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18904 # Warning - without using the other run time loading flags,
18905 # -berok will link without error, but may produce a broken library.
18906 no_undefined_flag_CXX=' ${wl}-bernotok'
18907 allow_undefined_flag_CXX=' ${wl}-berok'
18908 # Exported symbols can be pulled into shared objects from archives
18909 whole_archive_flag_spec_CXX='$convenience'
18910 archive_cmds_need_lc_CXX=yes
18911 # This is similar to how AIX traditionally builds its shared libraries.
18912 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'
18918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18919 allow_undefined_flag_CXX=unsupported
18920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18921 # support --undefined. This deserves some investigation. FIXME
18922 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18929 case $cc_basename in
18931 # FIXME: insert proper C++ library support
18937 cygwin* | mingw* | pw32*)
18938 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18939 # as there is no search path for DLLs.
18940 hardcode_libdir_flag_spec_CXX='-L$libdir'
18941 allow_undefined_flag_CXX=unsupported
18942 always_export_symbols_CXX=no
18943 enable_shared_with_static_runtimes_CXX=yes
18945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18946 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'
18947 # If the export-symbols file already is a .def file (1st line
18948 # is EXPORTS), use it as is; otherwise, prepend...
18949 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18950 cp $export_symbols $output_objdir/$soname.def;
18952 echo EXPORTS > $output_objdir/$soname.def;
18953 cat $export_symbols >> $output_objdir/$soname.def;
18955 $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'
18960 darwin* | rhapsody*)
18962 rhapsody* | darwin1.[012])
18963 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18967 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18969 case ${MACOSX_DEPLOYMENT_TARGET} in
18971 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18974 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18980 archive_cmds_need_lc_CXX=no
18981 hardcode_direct_CXX=no
18982 hardcode_automatic_CXX=yes
18983 hardcode_shlibpath_var_CXX=unsupported
18984 whole_archive_flag_spec_CXX=''
18985 link_all_deplibs_CXX=yes
18987 if test "$GXX" = yes ; then
18988 lt_int_apple_cc_single_mod=no
18989 output_verbose_link_cmd='echo'
18990 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18991 lt_int_apple_cc_single_mod=yes
18993 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18994 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18996 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'
18998 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19001 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}'
19003 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}'
19005 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}'
19007 case $cc_basename in
19009 output_verbose_link_cmd='echo'
19010 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'
19011 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19012 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19013 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}'
19014 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}'
19024 case $cc_basename in
19026 # FIXME: insert proper C++ library support
19030 # Green Hills C++ Compiler
19031 # FIXME: insert proper C++ library support
19035 # FIXME: insert proper C++ library support
19041 # C++ shared libraries reported to be fairly broken before switch to ELF
19045 archive_cmds_need_lc_CXX=no
19047 freebsd* | kfreebsd*-gnu | dragonfly*)
19048 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19055 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19056 hardcode_libdir_separator_CXX=:
19057 export_dynamic_flag_spec_CXX='${wl}-E'
19058 hardcode_direct_CXX=yes
19059 hardcode_minus_L_CXX=yes # Not in the search PATH,
19060 # but as the default
19061 # location of the library.
19063 case $cc_basename in
19065 # FIXME: insert proper C++ library support
19069 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'
19070 # Commands to make compiler produce verbose output that lists
19071 # what "hidden" libraries, object files and flags are used when
19072 # linking a shared library.
19074 # There doesn't appear to be a way to prevent this compiler from
19075 # explicitly linking system object files so we need to strip them
19076 # from the output so that they don't get included in the library
19078 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'
19081 if test "$GXX" = yes; then
19082 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'
19084 # FIXME: insert proper C++ library support
19091 if test $with_gnu_ld = no; then
19092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19093 hardcode_libdir_separator_CXX=:
19097 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19100 export_dynamic_flag_spec_CXX='${wl}-E'
19106 hardcode_direct_CXX=no
19107 hardcode_shlibpath_var_CXX=no
19110 hardcode_direct_CXX=yes
19111 hardcode_minus_L_CXX=yes # Not in the search PATH,
19112 # but as the default
19113 # location of the library.
19117 case $cc_basename in
19119 # FIXME: insert proper C++ library support
19125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19128 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19131 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19134 # Commands to make compiler produce verbose output that lists
19135 # what "hidden" libraries, object files and flags are used when
19136 # linking a shared library.
19138 # There doesn't appear to be a way to prevent this compiler from
19139 # explicitly linking system object files so we need to strip them
19140 # from the output so that they don't get included in the library
19142 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'
19145 if test "$GXX" = yes; then
19146 if test $with_gnu_ld = no; then
19149 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19152 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19155 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'
19160 # FIXME: insert proper C++ library support
19167 hardcode_direct_CXX=no
19168 hardcode_shlibpath_var_CXX=no
19169 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19170 export_dynamic_flag_spec_CXX='${wl}-E'
19171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19172 # Instead, shared libraries are loaded at an image base (0x10000000 by
19173 # default) and relocated if they conflict, which is a slow very memory
19174 # consuming and fragmenting process. To avoid this, we pick a random,
19175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19176 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19177 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'
19178 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'
19181 case $cc_basename in
19184 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'
19186 # Archives containing C++ object files must be created using
19187 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19188 # necessary to make sure instantiated templates are included
19190 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19193 if test "$GXX" = yes; then
19194 if test "$with_gnu_ld" = no; then
19195 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'
19197 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'
19200 link_all_deplibs_CXX=yes
19203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19204 hardcode_libdir_separator_CXX=:
19207 case $cc_basename in
19209 # Kuck and Associates, Inc. (KAI) C++ Compiler
19211 # KCC will only create a shared library if the output file
19212 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19213 # to its proper name (with version) after linking.
19214 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'
19215 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'
19216 # Commands to make compiler produce verbose output that lists
19217 # what "hidden" libraries, object files and flags are used when
19218 # linking a shared library.
19220 # There doesn't appear to be a way to prevent this compiler from
19221 # explicitly linking system object files so we need to strip them
19222 # from the output so that they don't get included in the library
19224 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'
19226 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19229 # Archives containing C++ object files must be created using
19230 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19231 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19236 # version 8.0 and above of icpc choke on multiply defined symbols
19237 # if we add $predep_objects and $postdep_objects, however 7.1 and
19238 # earlier do not add the objects themselves.
19239 case `$CC -V 2>&1` in
19241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19242 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'
19244 *) # Version 8.0 or newer
19247 ia64*) tmp_idyn=' -i_dynamic';;
19249 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250 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'
19253 archive_cmds_need_lc_CXX=no
19254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19255 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19256 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19259 # Portland Group C++ compiler
19260 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19261 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'
19263 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19265 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'
19269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19270 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'
19272 runpath_var=LD_RUN_PATH
19273 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19274 hardcode_libdir_separator_CXX=:
19276 # Commands to make compiler produce verbose output that lists
19277 # what "hidden" libraries, object files and flags are used when
19278 # linking a shared library.
19280 # There doesn't appear to be a way to prevent this compiler from
19281 # explicitly linking system object files so we need to strip them
19282 # from the output so that they don't get included in the library
19284 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'
19289 # FIXME: insert proper C++ library support
19293 # FIXME: insert proper C++ library support
19297 case $cc_basename in
19299 # FIXME: insert proper C++ library support
19303 # FIXME: insert proper C++ library support
19309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19310 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19312 hardcode_libdir_flag_spec_CXX='-R$libdir'
19313 hardcode_direct_CXX=yes
19314 hardcode_shlibpath_var_CXX=no
19316 # Workaround some broken pre-1.5 toolchains
19317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19320 # C++ shared libraries are fairly broken
19324 hardcode_direct_CXX=yes
19325 hardcode_shlibpath_var_CXX=no
19326 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19329 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19330 export_dynamic_flag_spec_CXX='${wl}-E'
19331 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19333 output_verbose_link_cmd='echo'
19336 case $cc_basename in
19338 # Kuck and Associates, Inc. (KAI) C++ Compiler
19340 # KCC will only create a shared library if the output file
19341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19342 # to its proper name (with version) after linking.
19343 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'
19345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19346 hardcode_libdir_separator_CXX=:
19348 # Archives containing C++ object files must be created using
19349 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19354 # Rational C++ 2.4.1
19355 # FIXME: insert proper C++ library support
19359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19360 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'
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19363 hardcode_libdir_separator_CXX=:
19365 # Commands to make compiler produce verbose output that lists
19366 # what "hidden" libraries, object files and flags are used when
19367 # linking a shared library.
19369 # There doesn't appear to be a way to prevent this compiler from
19370 # explicitly linking system object files so we need to strip them
19371 # from the output so that they don't get included in the library
19373 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'
19376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19378 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'
19380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19381 hardcode_libdir_separator_CXX=:
19383 # Commands to make compiler produce verbose output that lists
19384 # what "hidden" libraries, object files and flags are used when
19385 # linking a shared library.
19386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19389 # FIXME: insert proper C++ library support
19396 case $cc_basename in
19398 # Kuck and Associates, Inc. (KAI) C++ Compiler
19400 # KCC will only create a shared library if the output file
19401 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19402 # to its proper name (with version) after linking.
19403 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'
19405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19406 hardcode_libdir_separator_CXX=:
19408 # Archives containing C++ object files must be created using
19409 # the KAI C++ compiler.
19410 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19413 # Rational C++ 2.4.1
19414 # FIXME: insert proper C++ library support
19418 allow_undefined_flag_CXX=' -expect_unresolved \*'
19419 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'
19420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19421 echo "-hidden">> $lib.exp~
19422 $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~
19425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19426 hardcode_libdir_separator_CXX=:
19428 # Commands to make compiler produce verbose output that lists
19429 # what "hidden" libraries, object files and flags are used when
19430 # linking a shared library.
19432 # There doesn't appear to be a way to prevent this compiler from
19433 # explicitly linking system object files so we need to strip them
19434 # from the output so that they don't get included in the library
19436 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19441 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19452 # FIXME: insert proper C++ library support
19459 # FIXME: insert proper C++ library support
19463 case $cc_basename in
19466 # FIXME: insert proper C++ library support
19471 # FIXME: insert proper C++ library support
19475 # FIXME: insert proper C++ library support
19481 case $cc_basename in
19483 # Sun C++ 4.2, 5.x and Centerline C++
19484 archive_cmds_need_lc_CXX=yes
19485 no_undefined_flag_CXX=' -zdefs'
19486 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19487 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19488 $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'
19490 hardcode_libdir_flag_spec_CXX='-R$libdir'
19491 hardcode_shlibpath_var_CXX=no
19493 solaris2.[0-5] | solaris2.[0-5].*) ;;
19495 # The C++ compiler is used as linker so we must use $wl
19496 # flag to pass the commands to the underlying system
19497 # linker. We must also pass each convience library through
19498 # to the system linker between allextract/defaultextract.
19499 # The C++ compiler will combine linker options so we
19500 # cannot just pass the convience library names through
19502 # Supported since Solaris 2.6 (maybe 2.5.1?)
19503 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'
19506 link_all_deplibs_CXX=yes
19508 output_verbose_link_cmd='echo'
19510 # Archives containing C++ object files must be created using
19511 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19512 # necessary to make sure instantiated templates are included
19514 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19517 # Green Hills C++ Compiler
19518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19520 # The C++ compiler must be used to create the archive.
19521 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19524 # GNU C++ compiler with Solaris linker
19525 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19526 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19527 if $CC --version | grep -v '^2\.7' > /dev/null; then
19528 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19530 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19537 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19539 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19540 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19541 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19543 # Commands to make compiler produce verbose output that lists
19544 # what "hidden" libraries, object files and flags are used when
19545 # linking a shared library.
19546 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19549 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19554 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19555 no_undefined_flag_CXX='${wl}-z,text'
19556 archive_cmds_need_lc_CXX=no
19557 hardcode_shlibpath_var_CXX=no
19558 runpath_var='LD_RUN_PATH'
19560 case $cc_basename in
19562 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19566 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571 sysv5* | sco3.2v5* | sco5v6*)
19572 # Note: We can NOT use -z defs as we might desire, because we do not
19573 # link with -lc, and that would cause any symbols used from libc to
19574 # always be unresolved, which means just about no library would
19575 # ever link correctly. If we're not using GNU ld we use -z text
19576 # though, which does catch some bad symbols but isn't as heavy-handed
19578 # For security reasons, it is highly recommended that you always
19579 # use absolute paths for naming shared libraries, and exclude the
19580 # DT_RUNPATH tag from executables and libraries. But doing so
19581 # requires that you compile everything twice, which is a pain.
19582 # So that behaviour is only enabled if SCOABSPATH is set to a
19583 # non-empty value in the environment. Most likely only useful for
19584 # creating official distributions of packages.
19585 # This is a hack until libtool officially supports absolute path
19586 # names for shared libraries.
19587 no_undefined_flag_CXX='${wl}-z,text'
19588 allow_undefined_flag_CXX='${wl}-z,nodefs'
19589 archive_cmds_need_lc_CXX=no
19590 hardcode_shlibpath_var_CXX=no
19591 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19592 hardcode_libdir_separator_CXX=':'
19593 link_all_deplibs_CXX=yes
19594 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19595 runpath_var='LD_RUN_PATH'
19597 case $cc_basename in
19599 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19600 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19603 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19604 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19609 case $cc_basename in
19611 # NonStop-UX NCC 3.20
19612 # FIXME: insert proper C++ library support
19616 # FIXME: insert proper C++ library support
19622 # FIXME: insert proper C++ library support
19626 # FIXME: insert proper C++ library support
19630 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19631 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19632 test "$ld_shlibs_CXX" = no && can_build_shared=no
19638 cat > conftest.$ac_ext <<EOF
19642 Foo (void) { a = 0; }
19648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19649 (eval $ac_compile) 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; then
19653 # Parse the compiler output and extract the necessary
19654 # objects, libraries and library flags.
19656 # Sentinel used to keep track of whether or not we are before
19657 # the conftest object file.
19658 pre_test_object_deps_done=no
19660 # The `*' in the case matches for architectures that use `case' in
19661 # $output_verbose_cmd can trigger glob expansion during the loop
19662 # eval without this substitution.
19663 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19665 for p in `eval $output_verbose_link_cmd`; do
19669 # Some compilers place space between "-{L,R}" and the path.
19670 # Remove the space.
19671 if test $p = "-L" \
19672 || test $p = "-R"; then
19679 if test "$pre_test_object_deps_done" = no; then
19682 # Internal compiler library paths should come after those
19683 # provided the user. The postdeps already come after the
19684 # user supplied libs so there is no need to process them.
19685 if test -z "$compiler_lib_search_path_CXX"; then
19686 compiler_lib_search_path_CXX="${prev}${p}"
19688 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19691 # The "-l" case would never come before the object being
19692 # linked, so don't bother handling this case.
19695 if test -z "$postdeps_CXX"; then
19696 postdeps_CXX="${prev}${p}"
19698 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19704 # This assumes that the test object file only shows up
19705 # once in the compiler output.
19706 if test "$p" = "conftest.$objext"; then
19707 pre_test_object_deps_done=yes
19711 if test "$pre_test_object_deps_done" = no; then
19712 if test -z "$predep_objects_CXX"; then
19713 predep_objects_CXX="$p"
19715 predep_objects_CXX="$predep_objects_CXX $p"
19718 if test -z "$postdep_objects_CXX"; then
19719 postdep_objects_CXX="$p"
19721 postdep_objects_CXX="$postdep_objects_CXX $p"
19726 *) ;; # Ignore the rest.
19734 echo "libtool.m4: error: problem compiling CXX test program"
19737 $rm -f confest.$objext
19739 # PORTME: override above test on systems where it is broken
19742 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19743 # hack all around it, let's just trust "g++" to DTRT.
19744 predep_objects_CXX=
19745 postdep_objects_CXX=
19750 case $cc_basename in
19752 # Adding this requires a known-good setup of shared libraries for
19753 # Sun compiler versions before 5.6, else PIC objects from an old
19754 # archive will be linked into the output, leading to subtle bugs.
19755 postdeps_CXX='-lCstd -lCrun'
19762 case " $postdeps_CXX " in
19763 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19766 lt_prog_compiler_wl_CXX=
19767 lt_prog_compiler_pic_CXX=
19768 lt_prog_compiler_static_CXX=
19770 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19771 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19773 # C++ specific cases for pic, static, wl, etc.
19774 if test "$GXX" = yes; then
19775 lt_prog_compiler_wl_CXX='-Wl,'
19776 lt_prog_compiler_static_CXX='-static'
19780 # All AIX code is PIC.
19781 if test "$host_cpu" = ia64; then
19782 # AIX 5 now supports IA64 processor
19783 lt_prog_compiler_static_CXX='-Bstatic'
19787 # FIXME: we need at least 68020 code to build shared libraries, but
19788 # adding the `-m68020' flag to GCC prevents building anything better,
19790 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19792 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19793 # PIC is the default for these OSes.
19795 mingw* | os2* | pw32*)
19796 # This hack is so that the source file can tell whether it is being
19797 # built for inclusion in a dll (and should export symbols for example).
19798 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19800 darwin* | rhapsody*)
19801 # PIC is the default on this platform
19802 # Common symbols not allowed in MH_DYLIB files
19803 lt_prog_compiler_pic_CXX='-fno-common'
19806 # DJGPP does not support shared libraries at all
19807 lt_prog_compiler_pic_CXX=
19810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19811 # Instead, we relocate shared libraries at runtime.
19814 if test -d /usr/nec; then
19815 lt_prog_compiler_pic_CXX=-Kconform_pic
19819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19820 # not for PA HP-UX.
19825 lt_prog_compiler_pic_CXX='-fPIC'
19830 lt_prog_compiler_pic_CXX='-fPIC'
19836 # All AIX code is PIC.
19837 if test "$host_cpu" = ia64; then
19838 # AIX 5 now supports IA64 processor
19839 lt_prog_compiler_static_CXX='-Bstatic'
19841 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19845 case $cc_basename in
19847 # Green Hills C++ Compiler
19848 # _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"
19853 # PIC is the default on this platform
19854 # Common symbols not allowed in MH_DYLIB files
19855 case $cc_basename in
19857 lt_prog_compiler_pic_CXX='-qnocommon'
19858 lt_prog_compiler_wl_CXX='-Wl,'
19863 case $cc_basename in
19865 lt_prog_compiler_pic_CXX='-KPIC'
19868 # Green Hills C++ Compiler
19869 lt_prog_compiler_pic_CXX='-pic'
19875 freebsd* | kfreebsd*-gnu | dragonfly*)
19876 # FreeBSD uses GNU C++
19878 hpux9* | hpux10* | hpux11*)
19879 case $cc_basename in
19881 lt_prog_compiler_wl_CXX='-Wl,'
19882 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19883 if test "$host_cpu" != ia64; then
19884 lt_prog_compiler_pic_CXX='+Z'
19888 lt_prog_compiler_wl_CXX='-Wl,'
19889 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19895 lt_prog_compiler_pic_CXX='+Z'
19904 # This is c89, which is MS Visual C++ (no shared libs)
19905 # Anyone wants to do a port?
19907 irix5* | irix6* | nonstopux*)
19908 case $cc_basename in
19910 lt_prog_compiler_wl_CXX='-Wl,'
19911 lt_prog_compiler_static_CXX='-non_shared'
19912 # CC pic flag -KPIC is the default.
19919 case $cc_basename in
19922 lt_prog_compiler_wl_CXX='--backend -Wl,'
19923 lt_prog_compiler_pic_CXX='-fPIC'
19927 lt_prog_compiler_wl_CXX='-Wl,'
19928 lt_prog_compiler_pic_CXX='-KPIC'
19929 lt_prog_compiler_static_CXX='-static'
19932 # Portland Group C++ compiler.
19933 lt_prog_compiler_wl_CXX='-Wl,'
19934 lt_prog_compiler_pic_CXX='-fpic'
19935 lt_prog_compiler_static_CXX='-Bstatic'
19939 # Make sure the PIC flag is empty. It appears that all Alpha
19940 # Linux and Compaq Tru64 Unix objects are PIC.
19941 lt_prog_compiler_pic_CXX=
19942 lt_prog_compiler_static_CXX='-non_shared'
19953 case $cc_basename in
19955 lt_prog_compiler_pic_CXX='-W c,exportall'
19963 osf3* | osf4* | osf5*)
19964 case $cc_basename in
19966 lt_prog_compiler_wl_CXX='--backend -Wl,'
19969 # Rational C++ 2.4.1
19970 lt_prog_compiler_pic_CXX='-pic'
19973 # Digital/Compaq C++
19974 lt_prog_compiler_wl_CXX='-Wl,'
19975 # Make sure the PIC flag is empty. It appears that all Alpha
19976 # Linux and Compaq Tru64 Unix objects are PIC.
19977 lt_prog_compiler_pic_CXX=
19978 lt_prog_compiler_static_CXX='-non_shared'
19987 case $cc_basename in
19989 # Sun C++ 4.2, 5.x and Centerline C++
19990 lt_prog_compiler_pic_CXX='-KPIC'
19991 lt_prog_compiler_static_CXX='-Bstatic'
19992 lt_prog_compiler_wl_CXX='-Qoption ld '
19995 # Green Hills C++ Compiler
19996 lt_prog_compiler_pic_CXX='-PIC'
20003 case $cc_basename in
20006 lt_prog_compiler_pic_CXX='-pic'
20007 lt_prog_compiler_static_CXX='-Bstatic'
20011 lt_prog_compiler_pic_CXX='-pic'
20018 case $cc_basename in
20020 # NonStop-UX NCC 3.20
20021 lt_prog_compiler_pic_CXX='-KPIC'
20027 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20028 case $cc_basename in
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_pic_CXX='-KPIC'
20032 lt_prog_compiler_static_CXX='-Bstatic'
20039 lt_prog_compiler_can_build_shared_CXX=no
20044 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20045 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20048 # Check to make sure the PIC flag actually works.
20050 if test -n "$lt_prog_compiler_pic_CXX"; then
20052 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20054 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 lt_prog_compiler_pic_works_CXX=no
20058 ac_outfile=conftest.$ac_objext
20059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20060 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20061 # Insert the option either (1) after the last *FLAGS variable, or
20062 # (2) before a word containing "conftest.", or (3) at the end.
20063 # Note that $ac_compile itself does not contain backslashes and begins
20064 # with a dollar sign (not a hyphen), so the echo should work correctly.
20065 # The option is referenced via a variable to avoid confusing sed.
20066 lt_compile=`echo "$ac_compile" | $SED \
20067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20069 -e 's:$: $lt_compiler_flag:'`
20070 (eval echo "\"\$as_me:20070: $lt_compile\"" >&5)
20071 (eval "$lt_compile" 2>conftest.err)
20073 cat conftest.err >&5
20074 echo "$as_me:20074: \$? = $ac_status" >&5
20075 if (exit $ac_status) && test -s "$ac_outfile"; then
20076 # The compiler can only warn and ignore the option if not recognized
20077 # So say no if there are warnings other than the usual output.
20078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20081 lt_prog_compiler_pic_works_CXX=yes
20087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20088 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20090 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20091 case $lt_prog_compiler_pic_CXX in
20093 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20096 lt_prog_compiler_pic_CXX=
20097 lt_prog_compiler_can_build_shared_CXX=no
20102 # For platforms which do not support PIC, -DPIC is meaningless:
20104 lt_prog_compiler_pic_CXX=
20107 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20112 # Check to make sure the static flag actually works.
20114 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20115 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20116 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20117 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 lt_prog_compiler_static_works_CXX=no
20121 save_LDFLAGS="$LDFLAGS"
20122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20123 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20125 # The linker can only warn and ignore the option if not recognized
20126 # So say no if there are warnings
20127 if test -s conftest.err; then
20128 # Append any errors to the config.log.
20129 cat conftest.err 1>&5
20130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20132 if diff conftest.exp conftest.er2 >/dev/null; then
20133 lt_prog_compiler_static_works_CXX=yes
20136 lt_prog_compiler_static_works_CXX=yes
20140 LDFLAGS="$save_LDFLAGS"
20143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20144 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20146 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20149 lt_prog_compiler_static_CXX=
20153 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20155 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 lt_cv_prog_compiler_c_o_CXX=no
20159 $rm -r conftest 2>/dev/null
20163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20165 lt_compiler_flag="-o out/conftest2.$ac_objext"
20166 # Insert the option either (1) after the last *FLAGS variable, or
20167 # (2) before a word containing "conftest.", or (3) at the end.
20168 # Note that $ac_compile itself does not contain backslashes and begins
20169 # with a dollar sign (not a hyphen), so the echo should work correctly.
20170 lt_compile=`echo "$ac_compile" | $SED \
20171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20173 -e 's:$: $lt_compiler_flag:'`
20174 (eval echo "\"\$as_me:20174: $lt_compile\"" >&5)
20175 (eval "$lt_compile" 2>out/conftest.err)
20177 cat out/conftest.err >&5
20178 echo "$as_me:20178: \$? = $ac_status" >&5
20179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20181 # The compiler can only warn and ignore the option if not recognized
20182 # So say no if there are warnings
20183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20186 lt_cv_prog_compiler_c_o_CXX=yes
20191 # SGI C++ compiler will create directory out/ii_files/ for
20192 # template instantiation
20193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20194 $rm out/* && rmdir out
20200 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20201 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20204 hard_links="nottested"
20205 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20206 # do not overwrite the value of need_locks provided by the user
20207 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20208 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20213 ln conftest.a conftest.b 2>&5 || hard_links=no
20214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20215 { echo "$as_me:$LINENO: result: $hard_links" >&5
20216 echo "${ECHO_T}$hard_links" >&6; }
20217 if test "$hard_links" = no; then
20218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20219 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20226 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20229 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20232 # If we're using GNU nm, then we don't want the "-C" option.
20233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20234 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20235 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'
20237 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'
20241 export_symbols_cmds_CXX="$ltdll_cmds"
20244 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'
20247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20251 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20252 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20253 test "$ld_shlibs_CXX" = no && can_build_shared=no
20256 # Do we need to explicitly link libc?
20258 case "x$archive_cmds_need_lc_CXX" in
20260 # Assume -lc should be added
20261 archive_cmds_need_lc_CXX=yes
20263 if test "$enable_shared" = yes && test "$GCC" = yes; then
20264 case $archive_cmds_CXX in
20266 # FIXME: we may have to deal with multi-command sequences.
20269 # Test whether the compiler implicitly links with -lc since on some
20270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20271 # to ld, don't add -lc before -lgcc.
20272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278 (eval $ac_compile) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } 2>conftest.err; then
20284 libobjs=conftest.$ac_objext
20286 wl=$lt_prog_compiler_wl_CXX
20287 pic_flag=$lt_prog_compiler_pic_CXX
20293 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20294 allow_undefined_flag_CXX=
20295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20296 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }
20301 archive_cmds_need_lc_CXX=no
20303 archive_cmds_need_lc_CXX=yes
20305 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20307 cat conftest.err 1>&5
20310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20311 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20320 library_names_spec=
20321 libname_spec='lib$name'
20325 postuninstall_cmds=
20329 shlibpath_overrides_runpath=unknown
20331 dynamic_linker="$host_os ld.so"
20332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20333 if test "$GCC" = yes; then
20334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20336 # if the path contains ";" then we assume it to be the separator
20337 # otherwise default to the standard path separator (i.e. ":") - it is
20338 # assumed that no part of a normal pathname contains ";" but that should
20339 # okay in the real world where ";" in dirpaths is itself problematic.
20340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20347 need_lib_prefix=unknown
20348 hardcode_into_libs=no
20350 # when you set need_version to no, make sure it does not cause -set_version
20351 # flags to be left without arguments
20352 need_version=unknown
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20358 shlibpath_var=LIBPATH
20360 # AIX 3 has no versioning support, so we append a major version to the name.
20361 soname_spec='${libname}${release}${shared_ext}$major'
20368 hardcode_into_libs=yes
20369 if test "$host_cpu" = ia64; then
20370 # AIX 5 supports IA64
20371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20372 shlibpath_var=LD_LIBRARY_PATH
20374 # With GCC up to 2.95.x, collect2 would create an import file
20375 # for dependence libraries. The import file would start with
20376 # the line `#! .'. This would cause the generated library to
20377 # depend on `.', always an invalid library. This was fixed in
20378 # development snapshots of GCC prior to 3.0.
20380 aix4 | aix4.[01] | aix4.[01].*)
20381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20386 can_build_shared=no
20390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20391 # soname into executable. Probably we can add versioning support to
20392 # collect2, so additional links can be useful in future.
20393 if test "$aix_use_runtimelinking" = yes; then
20394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20395 # instead of lib<name>.a to let people know that these are not
20396 # typical AIX shared libraries.
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399 # We preserve .a as extension for shared libraries through AIX4.2
20400 # and later when we are not doing run time linking.
20401 library_names_spec='${libname}${release}.a $libname.a'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20404 shlibpath_var=LIBPATH
20409 library_names_spec='$libname.ixlibrary $libname.a'
20410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20411 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'
20415 library_names_spec='${libname}${shared_ext}'
20416 dynamic_linker="$host_os ld.so"
20417 shlibpath_var=LIBRARY_PATH
20423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20424 soname_spec='${libname}${release}${shared_ext}$major'
20425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20429 # the default ld.so.conf also contains /usr/contrib/lib and
20430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20431 # libtool to hard-code these into programs
20434 cygwin* | mingw* | pw32*)
20435 version_type=windows
20440 case $GCC,$host_os in
20441 yes,cygwin* | yes,mingw* | yes,pw32*)
20442 library_names_spec='$libname.dll.a'
20443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20444 postinstall_cmds='base_file=`basename \${file}`~
20445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20446 dldir=$destdir/`dirname \$dlpath`~
20447 test -d \$dldir || mkdir -p \$dldir~
20448 $install_prog $dir/$dlname \$dldir/$dlname~
20449 chmod a+x \$dldir/$dlname'
20450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20451 dlpath=$dir/\$dldll~
20453 shlibpath_overrides_runpath=yes
20457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20462 # MinGW DLLs use traditional 'lib' prefix
20463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20466 # It is most probably a Windows format PATH printed by
20467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20468 # path with ; separators, and with drive letters. We can handle the
20469 # drive letters (cygwin fileutils understands them), so leave them,
20470 # especially as we might pass files found there to a mingw objdump,
20471 # which wouldn't understand a cygwinified path. Ahh.
20472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20478 # pw32 DLLs use 'pw' prefix rather than 'lib'
20479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20488 dynamic_linker='Win32 ld.exe'
20489 # FIXME: first we should search . and the directory the executable is in
20493 darwin* | rhapsody*)
20494 dynamic_linker="$host_os dyld"
20495 version_type=darwin
20498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20499 soname_spec='${libname}${release}${major}$shared_ext'
20500 shlibpath_overrides_runpath=yes
20501 shlibpath_var=DYLD_LIBRARY_PATH
20502 shrext_cmds='.dylib'
20503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20504 if test "$GCC" = yes; then
20505 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"`
20507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20517 soname_spec='${libname}${release}${shared_ext}$major'
20518 shlibpath_var=LD_LIBRARY_PATH
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 shlibpath_var=LD_LIBRARY_PATH
20532 shlibpath_overrides_runpath=no
20533 hardcode_into_libs=yes
20534 dynamic_linker='GNU ld.so'
20537 freebsd* | dragonfly*)
20538 # DragonFly does not have aout. When/if they implement a new
20539 # versioning mechanism, adjust this.
20540 if test -x /usr/bin/objformat; then
20541 objformat=`/usr/bin/objformat`
20544 freebsd[123]*) objformat=aout ;;
20545 *) objformat=elf ;;
20548 version_type=freebsd-$objformat
20549 case $version_type in
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20560 shlibpath_var=LD_LIBRARY_PATH
20563 shlibpath_overrides_runpath=yes
20565 freebsd3.[01]* | freebsdelf3.[01]*)
20566 shlibpath_overrides_runpath=yes
20567 hardcode_into_libs=yes
20569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20571 shlibpath_overrides_runpath=no
20572 hardcode_into_libs=yes
20574 freebsd*) # from 4.6 on
20575 shlibpath_overrides_runpath=yes
20576 hardcode_into_libs=yes
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 shlibpath_var=LD_LIBRARY_PATH
20588 hardcode_into_libs=yes
20591 hpux9* | hpux10* | hpux11*)
20592 # Give a soname corresponding to the major version so that dld.sl refuses to
20593 # link against other versions.
20600 hardcode_into_libs=yes
20601 dynamic_linker="$host_os dld.so"
20602 shlibpath_var=LD_LIBRARY_PATH
20603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 if test "X$HPUX_IA64_MODE" = X32; then
20607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20615 hardcode_into_libs=yes
20616 dynamic_linker="$host_os dld.sl"
20617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec='${libname}${release}${shared_ext}$major'
20621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20626 dynamic_linker="$host_os dld.sl"
20627 shlibpath_var=SHLIB_PATH
20628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20630 soname_spec='${libname}${release}${shared_ext}$major'
20633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20634 postinstall_cmds='chmod 555 $lib'
20641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20642 soname_spec='${libname}${release}${shared_ext}$major'
20643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20644 shlibpath_var=LD_LIBRARY_PATH
20645 shlibpath_overrides_runpath=no
20646 hardcode_into_libs=yes
20649 irix5* | irix6* | nonstopux*)
20651 nonstopux*) version_type=nonstopux ;;
20653 if test "$lt_cv_prog_gnu_ld" = yes; then
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20664 irix5* | nonstopux*)
20665 libsuff= shlibsuff=
20668 case $LD in # libtool.m4 will add one of these switches to LD
20669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20670 libsuff= shlibsuff= libmagic=32-bit;;
20671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20672 libsuff=32 shlibsuff=N32 libmagic=N32;;
20673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20675 *) libsuff= shlibsuff= libmagic=never-match;;
20679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20680 shlibpath_overrides_runpath=no
20681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20683 hardcode_into_libs=yes
20686 # No shared lib support for Linux oldld, aout, or coff.
20687 linux*oldld* | linux*aout* | linux*coff*)
20691 # This must be Linux ELF.
20696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20697 soname_spec='${libname}${release}${shared_ext}$major'
20698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20699 shlibpath_var=LD_LIBRARY_PATH
20700 shlibpath_overrides_runpath=no
20701 # This implies no fast_install, which is unacceptable.
20702 # Some rework will be needed to allow for fast_install
20703 # before this can be enabled.
20704 hardcode_into_libs=yes
20706 # Append ld.so.conf contents to the search path
20707 if test -f /etc/ld.so.conf; then
20708 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' ' '`
20709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20712 # We used to test for /lib/ld.so.1 and disable shared libraries on
20713 # powerpc, because MkLinux only supported shared libraries with the
20714 # GNU dynamic linker. Since this was broken with cross compilers,
20715 # most powerpc-linux boxes support dynamic linking these days and
20716 # people can always --disable-shared, the test was removed, and we
20717 # assume the GNU/Linux dynamic linker is in use.
20718 dynamic_linker='GNU/Linux ld.so'
20725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20726 soname_spec='${libname}${release}${shared_ext}$major'
20727 shlibpath_var=LD_LIBRARY_PATH
20728 shlibpath_overrides_runpath=no
20729 hardcode_into_libs=yes
20730 dynamic_linker='GNU ld.so'
20737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20740 dynamic_linker='NetBSD (a.out) ld.so'
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20743 soname_spec='${libname}${release}${shared_ext}$major'
20744 dynamic_linker='NetBSD ld.elf_so'
20746 shlibpath_var=LD_LIBRARY_PATH
20747 shlibpath_overrides_runpath=yes
20748 hardcode_into_libs=yes
20753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20754 shlibpath_var=LD_LIBRARY_PATH
20755 shlibpath_overrides_runpath=yes
20762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763 soname_spec='${libname}${release}${shared_ext}$major'
20764 shlibpath_var=LD_LIBRARY_PATH
20765 shlibpath_overrides_runpath=yes
20770 sys_lib_dlsearch_path_spec="/usr/lib"
20772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20775 *) need_version=no ;;
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20779 shlibpath_var=LD_LIBRARY_PATH
20780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20782 openbsd2.[89] | openbsd2.[89].*)
20783 shlibpath_overrides_runpath=no
20786 shlibpath_overrides_runpath=yes
20790 shlibpath_overrides_runpath=yes
20795 libname_spec='$name'
20798 library_names_spec='$libname${shared_ext} $libname.a'
20799 dynamic_linker='OS/2 ld.exe'
20800 shlibpath_var=LIBPATH
20803 osf3* | osf4* | osf5*)
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20819 soname_spec='${libname}${release}${shared_ext}$major'
20820 shlibpath_var=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath=yes
20822 hardcode_into_libs=yes
20823 # ldd complains unless libraries are executable
20824 postinstall_cmds='chmod +x $lib'
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20831 shlibpath_var=LD_LIBRARY_PATH
20832 shlibpath_overrides_runpath=yes
20833 if test "$with_gnu_ld" = yes; then
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 soname_spec='${libname}${release}${shared_ext}$major'
20843 shlibpath_var=LD_LIBRARY_PATH
20844 case $host_vendor in
20846 shlibpath_overrides_runpath=no
20848 export_dynamic_flag_spec='${wl}-Blargedynsym'
20849 runpath_var=LD_RUN_PATH
20857 shlibpath_overrides_runpath=no
20858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20864 if test -d /usr/nec ;then
20866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20867 soname_spec='$libname${shared_ext}.$major'
20868 shlibpath_var=LD_LIBRARY_PATH
20872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20873 version_type=freebsd-elf
20876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20877 soname_spec='${libname}${release}${shared_ext}$major'
20878 shlibpath_var=LD_LIBRARY_PATH
20879 hardcode_into_libs=yes
20880 if test "$with_gnu_ld" = yes; then
20881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20882 shlibpath_overrides_runpath=no
20884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20885 shlibpath_overrides_runpath=yes
20888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20892 sys_lib_dlsearch_path_spec='/usr/lib'
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 shlibpath_var=LD_LIBRARY_PATH
20906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20907 echo "${ECHO_T}$dynamic_linker" >&6; }
20908 test "$dynamic_linker" = no && can_build_shared=no
20910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20911 if test "$GCC" = yes; then
20912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20917 hardcode_action_CXX=
20918 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20919 test -n "$runpath_var_CXX" || \
20920 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20922 # We can hardcode non-existant directories.
20923 if test "$hardcode_direct_CXX" != no &&
20924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20925 # have to relink, otherwise we might link with an installed library
20926 # when we should be linking with a yet-to-be-installed one
20927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20928 test "$hardcode_minus_L_CXX" != no; then
20929 # Linking always hardcodes the temporary library directory.
20930 hardcode_action_CXX=relink
20932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20933 hardcode_action_CXX=immediate
20936 # We cannot hardcode anything, or else we can only hardcode existing
20938 hardcode_action_CXX=unsupported
20940 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20941 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20943 if test "$hardcode_action_CXX" = relink; then
20944 # Fast installation is not supported
20945 enable_fast_install=no
20946 elif test "$shlibpath_overrides_runpath" = yes ||
20947 test "$enable_shared" = no; then
20948 # Fast installation is not necessary
20949 enable_fast_install=needless
20953 # The else clause should only fire when bootstrapping the
20954 # libtool distribution, otherwise you forgot to ship ltmain.sh
20955 # with your package, and you will get complaints that there are
20956 # no rules to generate ltmain.sh.
20957 if test -f "$ltmain"; then
20958 # See if we are running on zsh, and set the options which allow our commands through
20959 # without removal of \ escapes.
20960 if test -n "${ZSH_VERSION+set}" ; then
20961 setopt NO_GLOB_SUBST
20963 # Now quote all the things that may contain metacharacters while being
20964 # careful not to overquote the AC_SUBSTed values. We take copies of the
20965 # variables and quote the copies for generation of the libtool script.
20966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20970 deplibs_check_method reload_flag reload_cmds need_locks \
20971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20972 lt_cv_sys_global_symbol_to_c_name_address \
20973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20974 old_postinstall_cmds old_postuninstall_cmds \
20978 lt_prog_compiler_wl_CXX \
20979 lt_prog_compiler_pic_CXX \
20980 lt_prog_compiler_static_CXX \
20981 lt_prog_compiler_no_builtin_flag_CXX \
20982 export_dynamic_flag_spec_CXX \
20983 thread_safe_flag_spec_CXX \
20984 whole_archive_flag_spec_CXX \
20985 enable_shared_with_static_runtimes_CXX \
20986 old_archive_cmds_CXX \
20987 old_archive_from_new_cmds_CXX \
20988 predep_objects_CXX \
20989 postdep_objects_CXX \
20992 compiler_lib_search_path_CXX \
20994 archive_expsym_cmds_CXX \
20995 postinstall_cmds_CXX \
20996 postuninstall_cmds_CXX \
20997 old_archive_from_expsyms_cmds_CXX \
20998 allow_undefined_flag_CXX \
20999 no_undefined_flag_CXX \
21000 export_symbols_cmds_CXX \
21001 hardcode_libdir_flag_spec_CXX \
21002 hardcode_libdir_flag_spec_ld_CXX \
21003 hardcode_libdir_separator_CXX \
21004 hardcode_automatic_CXX \
21006 module_expsym_cmds_CXX \
21007 lt_cv_prog_compiler_c_o_CXX \
21008 exclude_expsyms_CXX \
21009 include_expsyms_CXX; do
21012 old_archive_cmds_CXX | \
21013 old_archive_from_new_cmds_CXX | \
21014 archive_cmds_CXX | \
21015 archive_expsym_cmds_CXX | \
21016 module_cmds_CXX | \
21017 module_expsym_cmds_CXX | \
21018 old_archive_from_expsyms_cmds_CXX | \
21019 export_symbols_cmds_CXX | \
21020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21021 postinstall_cmds | postuninstall_cmds | \
21022 old_postinstall_cmds | old_postuninstall_cmds | \
21023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21024 # Double-quote double-evaled strings.
21025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21034 *'\$0 --fallback-echo"')
21035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21041 cat <<__EOF__ >> "$cfgfile"
21042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21046 # Shell to use when invoking shell scripts.
21049 # Whether or not to build shared libraries.
21050 build_libtool_libs=$enable_shared
21052 # Whether or not to build static libraries.
21053 build_old_libs=$enable_static
21055 # Whether or not to add -lc for building shared libraries.
21056 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21058 # Whether or not to disallow shared libs when runtime libs are static
21059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21061 # Whether or not to optimize for fast installation.
21062 fast_install=$enable_fast_install
21065 host_alias=$host_alias
21069 # The build system.
21070 build_alias=$build_alias
21074 # An echo program that does not interpret backslashes.
21079 AR_FLAGS=$lt_AR_FLAGS
21084 # LTCC compiler flags.
21085 LTCFLAGS=$lt_LTCFLAGS
21087 # A language-specific compiler.
21088 CC=$lt_compiler_CXX
21090 # Is the compiler the GNU C compiler?
21096 # The linker used to build libraries.
21099 # Whether we need hard or soft links.
21102 # A BSD-compatible nm program.
21105 # A symbol stripping program
21108 # Used to examine libraries when file_magic_cmd begins "file"
21109 MAGIC_CMD=$MAGIC_CMD
21111 # Used on cygwin: DLL creation program.
21114 # Used on cygwin: object dumper.
21117 # Used on cygwin: assembler.
21120 # The name of the directory that contains temporary libtool files.
21123 # How to create reloadable object files.
21124 reload_flag=$lt_reload_flag
21125 reload_cmds=$lt_reload_cmds
21127 # How to pass a linker flag through the compiler.
21128 wl=$lt_lt_prog_compiler_wl_CXX
21130 # Object file suffix (normally "o").
21131 objext="$ac_objext"
21133 # Old archive suffix (normally "a").
21136 # Shared library suffix (normally ".so").
21137 shrext_cmds='$shrext_cmds'
21139 # Executable file suffix (normally "").
21142 # Additional compiler flags for building library objects.
21143 pic_flag=$lt_lt_prog_compiler_pic_CXX
21146 # What is the maximum length of a command?
21147 max_cmd_len=$lt_cv_sys_max_cmd_len
21149 # Does compiler simultaneously support -c and -o options?
21150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21152 # Must we lock files when doing compilation?
21153 need_locks=$lt_need_locks
21155 # Do we need the lib prefix for modules?
21156 need_lib_prefix=$need_lib_prefix
21158 # Do we need a version for libraries?
21159 need_version=$need_version
21161 # Whether dlopen is supported.
21162 dlopen_support=$enable_dlopen
21164 # Whether dlopen of programs is supported.
21165 dlopen_self=$enable_dlopen_self
21167 # Whether dlopen of statically linked programs is supported.
21168 dlopen_self_static=$enable_dlopen_self_static
21170 # Compiler flag to prevent dynamic linking.
21171 link_static_flag=$lt_lt_prog_compiler_static_CXX
21173 # Compiler flag to turn off builtin functions.
21174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21176 # Compiler flag to allow reflexive dlopens.
21177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21179 # Compiler flag to generate shared objects directly from archives.
21180 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21182 # Compiler flag to generate thread-safe objects.
21183 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21185 # Library versioning type.
21186 version_type=$version_type
21188 # Format of library name prefix.
21189 libname_spec=$lt_libname_spec
21191 # List of archive names. First name is the real one, the rest are links.
21192 # The last name is the one that the linker finds with -lNAME.
21193 library_names_spec=$lt_library_names_spec
21195 # The coded name of the library, if different from the real name.
21196 soname_spec=$lt_soname_spec
21198 # Commands used to build and install an old-style archive.
21200 old_archive_cmds=$lt_old_archive_cmds_CXX
21201 old_postinstall_cmds=$lt_old_postinstall_cmds
21202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21204 # Create an old-style archive from a shared archive.
21205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21207 # Create a temporary old-style archive to link instead of a shared archive.
21208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21210 # Commands used to build and install a shared archive.
21211 archive_cmds=$lt_archive_cmds_CXX
21212 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21213 postinstall_cmds=$lt_postinstall_cmds
21214 postuninstall_cmds=$lt_postuninstall_cmds
21216 # Commands used to build a loadable module (assumed same as above if empty)
21217 module_cmds=$lt_module_cmds_CXX
21218 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21220 # Commands to strip libraries.
21221 old_striplib=$lt_old_striplib
21222 striplib=$lt_striplib
21224 # Dependencies to place before the objects being linked to create a
21226 predep_objects=$lt_predep_objects_CXX
21228 # Dependencies to place after the objects being linked to create a
21230 postdep_objects=$lt_postdep_objects_CXX
21232 # Dependencies to place before the objects being linked to create a
21234 predeps=$lt_predeps_CXX
21236 # Dependencies to place after the objects being linked to create a
21238 postdeps=$lt_postdeps_CXX
21240 # The library search path used internally by the compiler when linking
21241 # a shared library.
21242 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21244 # Method to check whether dependent libraries are shared objects.
21245 deplibs_check_method=$lt_deplibs_check_method
21247 # Command to use when deplibs_check_method == file_magic.
21248 file_magic_cmd=$lt_file_magic_cmd
21250 # Flag that allows shared libraries with undefined symbols to be built.
21251 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21253 # Flag that forces no undefined symbols.
21254 no_undefined_flag=$lt_no_undefined_flag_CXX
21256 # Commands used to finish a libtool library installation in a directory.
21257 finish_cmds=$lt_finish_cmds
21259 # Same as above, but a single script fragment to be evaled but not shown.
21260 finish_eval=$lt_finish_eval
21262 # Take the output of nm and produce a listing of raw symbols and C names.
21263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21265 # Transform the output of nm in a proper C declaration
21266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21268 # Transform the output of nm in a C name address pair
21269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21271 # This is the shared library runtime path variable.
21272 runpath_var=$runpath_var
21274 # This is the shared library path variable.
21275 shlibpath_var=$shlibpath_var
21277 # Is shlibpath searched before the hard-coded library search path?
21278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21280 # How to hardcode a shared library path into an executable.
21281 hardcode_action=$hardcode_action_CXX
21283 # Whether we should hardcode library paths into libraries.
21284 hardcode_into_libs=$hardcode_into_libs
21286 # Flag to hardcode \$libdir into a binary during linking.
21287 # This must work even if \$libdir does not exist.
21288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21290 # If ld is used when linking, flag to hardcode \$libdir into
21291 # a binary during linking. This must work even if \$libdir does
21293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21295 # Whether we need a single -rpath flag with a separated argument.
21296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21299 # resulting binary.
21300 hardcode_direct=$hardcode_direct_CXX
21302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21303 # resulting binary.
21304 hardcode_minus_L=$hardcode_minus_L_CXX
21306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21307 # the resulting binary.
21308 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21310 # Set to yes if building a shared library automatically hardcodes DIR into the library
21311 # and all subsequent libraries and executables linked against it.
21312 hardcode_automatic=$hardcode_automatic_CXX
21314 # Variables whose values should be saved in libtool wrapper scripts and
21315 # restored at relink time.
21316 variables_saved_for_relink="$variables_saved_for_relink"
21318 # Whether libtool must link a program against all its dependency libraries.
21319 link_all_deplibs=$link_all_deplibs_CXX
21321 # Compile-time system search path for libraries
21322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21324 # Run-time system search path for libraries
21325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21327 # Fix the shell variable \$srcfile for the compiler.
21328 fix_srcfile_path="$fix_srcfile_path_CXX"
21330 # Set to yes if exported symbols are required.
21331 always_export_symbols=$always_export_symbols_CXX
21333 # The commands to list exported symbols.
21334 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21336 # The commands to extract the exported symbol list from a shared archive.
21337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21339 # Symbols that should not be listed in the preloaded symbols.
21340 exclude_expsyms=$lt_exclude_expsyms_CXX
21342 # Symbols that must always be exported.
21343 include_expsyms=$lt_include_expsyms_CXX
21345 # ### END LIBTOOL TAG CONFIG: $tagname
21351 # If there is no Makefile yet, we rely on a make rule to execute
21352 # `config.status --recheck' to rerun these tests and create the
21353 # libtool script then.
21354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21355 if test -f "$ltmain_in"; then
21356 test -f Makefile && make "$ltmain"
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21371 with_gnu_ldcxx=$with_gnu_ld
21372 with_gnu_ld=$lt_save_with_gnu_ld
21373 lt_cv_path_LDCXX=$lt_cv_path_LD
21374 lt_cv_path_LD=$lt_save_path_LD
21375 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21376 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21384 if test -n "$F77" && test "X$F77" != "Xno"; then
21387 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21388 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21389 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21392 archive_cmds_need_lc_F77=no
21393 allow_undefined_flag_F77=
21394 always_export_symbols_F77=no
21395 archive_expsym_cmds_F77=
21396 export_dynamic_flag_spec_F77=
21397 hardcode_direct_F77=no
21398 hardcode_libdir_flag_spec_F77=
21399 hardcode_libdir_flag_spec_ld_F77=
21400 hardcode_libdir_separator_F77=
21401 hardcode_minus_L_F77=no
21402 hardcode_automatic_F77=no
21404 module_expsym_cmds_F77=
21405 link_all_deplibs_F77=unknown
21406 old_archive_cmds_F77=$old_archive_cmds
21407 no_undefined_flag_F77=
21408 whole_archive_flag_spec_F77=
21409 enable_shared_with_static_runtimes_F77=no
21411 # Source file extension for f77 test sources.
21414 # Object file extension for compiled f77 test sources.
21418 # Code to be used in simple compile tests
21419 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21421 # Code to be used in simple link tests
21422 lt_simple_link_test_code=" program t\n end\n"
21424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21426 # If no C compiler was specified, use CC.
21429 # If no C compiler flags were specified, use CFLAGS.
21430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21432 # Allow CC to be a program name with arguments.
21436 # save warnings/boilerplate of simple test code
21437 ac_outfile=conftest.$ac_objext
21438 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21440 _lt_compiler_boilerplate=`cat conftest.err`
21443 ac_outfile=conftest.$ac_objext
21444 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21446 _lt_linker_boilerplate=`cat conftest.err`
21450 # Allow CC to be a program name with arguments.
21455 for cc_temp in $compiler""; do
21457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21463 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21466 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21467 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21468 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21469 echo "${ECHO_T}$can_build_shared" >&6; }
21471 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21472 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21473 test "$can_build_shared" = "no" && enable_shared=no
21475 # On AIX, shared libraries and static libraries use the same namespace, and
21476 # are all built from PIC.
21479 test "$enable_shared" = yes && enable_static=no
21480 if test -n "$RANLIB"; then
21481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21482 postinstall_cmds='$RANLIB $lib'
21486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21487 test "$enable_shared" = yes && enable_static=no
21491 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21492 echo "${ECHO_T}$enable_shared" >&6; }
21494 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21495 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21496 # Make sure either enable_shared or enable_static is yes.
21497 test "$enable_shared" = yes || enable_static=yes
21498 { echo "$as_me:$LINENO: result: $enable_static" >&5
21499 echo "${ECHO_T}$enable_static" >&6; }
21504 lt_prog_compiler_wl_F77=
21505 lt_prog_compiler_pic_F77=
21506 lt_prog_compiler_static_F77=
21508 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21509 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21511 if test "$GCC" = yes; then
21512 lt_prog_compiler_wl_F77='-Wl,'
21513 lt_prog_compiler_static_F77='-static'
21517 # All AIX code is PIC.
21518 if test "$host_cpu" = ia64; then
21519 # AIX 5 now supports IA64 processor
21520 lt_prog_compiler_static_F77='-Bstatic'
21525 # FIXME: we need at least 68020 code to build shared libraries, but
21526 # adding the `-m68020' flag to GCC prevents building anything better,
21528 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21531 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21532 # PIC is the default for these OSes.
21535 mingw* | pw32* | os2*)
21536 # This hack is so that the source file can tell whether it is being
21537 # built for inclusion in a dll (and should export symbols for example).
21538 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21541 darwin* | rhapsody*)
21542 # PIC is the default on this platform
21543 # Common symbols not allowed in MH_DYLIB files
21544 lt_prog_compiler_pic_F77='-fno-common'
21548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21549 # Instead, we relocate shared libraries at runtime.
21553 # Just because we use GCC doesn't mean we suddenly get shared libraries
21554 # on systems that don't support them.
21555 lt_prog_compiler_can_build_shared_F77=no
21560 if test -d /usr/nec; then
21561 lt_prog_compiler_pic_F77=-Kconform_pic
21566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21567 # not for PA HP-UX.
21573 lt_prog_compiler_pic_F77='-fPIC'
21579 lt_prog_compiler_pic_F77='-fPIC'
21583 # PORTME Check for flag to pass linker flags through the system compiler.
21586 lt_prog_compiler_wl_F77='-Wl,'
21587 if test "$host_cpu" = ia64; then
21588 # AIX 5 now supports IA64 processor
21589 lt_prog_compiler_static_F77='-Bstatic'
21591 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21595 # PIC is the default on this platform
21596 # Common symbols not allowed in MH_DYLIB files
21597 case $cc_basename in
21599 lt_prog_compiler_pic_F77='-qnocommon'
21600 lt_prog_compiler_wl_F77='-Wl,'
21605 mingw* | pw32* | os2*)
21606 # This hack is so that the source file can tell whether it is being
21607 # built for inclusion in a dll (and should export symbols for example).
21608 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21611 hpux9* | hpux10* | hpux11*)
21612 lt_prog_compiler_wl_F77='-Wl,'
21613 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21614 # not for PA HP-UX.
21620 lt_prog_compiler_pic_F77='+Z'
21623 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21624 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21627 irix5* | irix6* | nonstopux*)
21628 lt_prog_compiler_wl_F77='-Wl,'
21629 # PIC (with -KPIC) is the default.
21630 lt_prog_compiler_static_F77='-non_shared'
21634 lt_prog_compiler_pic_F77='-KPIC'
21635 lt_prog_compiler_static_F77='-Bstatic'
21639 case $cc_basename in
21641 lt_prog_compiler_wl_F77='-Wl,'
21642 lt_prog_compiler_pic_F77='-KPIC'
21643 lt_prog_compiler_static_F77='-static'
21645 pgcc* | pgf77* | pgf90* | pgf95*)
21646 # Portland Group compilers (*not* the Pentium gcc compiler,
21647 # which looks to be a dead project)
21648 lt_prog_compiler_wl_F77='-Wl,'
21649 lt_prog_compiler_pic_F77='-fpic'
21650 lt_prog_compiler_static_F77='-Bstatic'
21653 lt_prog_compiler_wl_F77='-Wl,'
21654 # All Alpha code is PIC.
21655 lt_prog_compiler_static_F77='-non_shared'
21660 osf3* | osf4* | osf5*)
21661 lt_prog_compiler_wl_F77='-Wl,'
21662 # All OSF/1 code is PIC.
21663 lt_prog_compiler_static_F77='-non_shared'
21667 lt_prog_compiler_pic_F77='-KPIC'
21668 lt_prog_compiler_static_F77='-Bstatic'
21669 case $cc_basename in
21670 f77* | f90* | f95*)
21671 lt_prog_compiler_wl_F77='-Qoption ld ';;
21673 lt_prog_compiler_wl_F77='-Wl,';;
21678 lt_prog_compiler_wl_F77='-Qoption ld '
21679 lt_prog_compiler_pic_F77='-PIC'
21680 lt_prog_compiler_static_F77='-Bstatic'
21683 sysv4 | sysv4.2uw2* | sysv4.3*)
21684 lt_prog_compiler_wl_F77='-Wl,'
21685 lt_prog_compiler_pic_F77='-KPIC'
21686 lt_prog_compiler_static_F77='-Bstatic'
21690 if test -d /usr/nec ;then
21691 lt_prog_compiler_pic_F77='-Kconform_pic'
21692 lt_prog_compiler_static_F77='-Bstatic'
21696 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21697 lt_prog_compiler_wl_F77='-Wl,'
21698 lt_prog_compiler_pic_F77='-KPIC'
21699 lt_prog_compiler_static_F77='-Bstatic'
21703 lt_prog_compiler_wl_F77='-Wl,'
21704 lt_prog_compiler_can_build_shared_F77=no
21708 lt_prog_compiler_pic_F77='-pic'
21709 lt_prog_compiler_static_F77='-Bstatic'
21713 lt_prog_compiler_can_build_shared_F77=no
21718 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21719 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21722 # Check to make sure the PIC flag actually works.
21724 if test -n "$lt_prog_compiler_pic_F77"; then
21726 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21727 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21728 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 lt_prog_compiler_pic_works_F77=no
21732 ac_outfile=conftest.$ac_objext
21733 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21734 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21735 # Insert the option either (1) after the last *FLAGS variable, or
21736 # (2) before a word containing "conftest.", or (3) at the end.
21737 # Note that $ac_compile itself does not contain backslashes and begins
21738 # with a dollar sign (not a hyphen), so the echo should work correctly.
21739 # The option is referenced via a variable to avoid confusing sed.
21740 lt_compile=`echo "$ac_compile" | $SED \
21741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21743 -e 's:$: $lt_compiler_flag:'`
21744 (eval echo "\"\$as_me:21744: $lt_compile\"" >&5)
21745 (eval "$lt_compile" 2>conftest.err)
21747 cat conftest.err >&5
21748 echo "$as_me:21748: \$? = $ac_status" >&5
21749 if (exit $ac_status) && test -s "$ac_outfile"; then
21750 # The compiler can only warn and ignore the option if not recognized
21751 # So say no if there are warnings other than the usual output.
21752 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21755 lt_prog_compiler_pic_works_F77=yes
21761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21762 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21764 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21765 case $lt_prog_compiler_pic_F77 in
21767 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21770 lt_prog_compiler_pic_F77=
21771 lt_prog_compiler_can_build_shared_F77=no
21776 # For platforms which do not support PIC, -DPIC is meaningless:
21778 lt_prog_compiler_pic_F77=
21781 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21786 # Check to make sure the static flag actually works.
21788 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21789 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21790 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21791 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 lt_prog_compiler_static_works_F77=no
21795 save_LDFLAGS="$LDFLAGS"
21796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21797 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21799 # The linker can only warn and ignore the option if not recognized
21800 # So say no if there are warnings
21801 if test -s conftest.err; then
21802 # Append any errors to the config.log.
21803 cat conftest.err 1>&5
21804 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21806 if diff conftest.exp conftest.er2 >/dev/null; then
21807 lt_prog_compiler_static_works_F77=yes
21810 lt_prog_compiler_static_works_F77=yes
21814 LDFLAGS="$save_LDFLAGS"
21817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21818 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21820 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21823 lt_prog_compiler_static_F77=
21827 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21828 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21829 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 lt_cv_prog_compiler_c_o_F77=no
21833 $rm -r conftest 2>/dev/null
21837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21839 lt_compiler_flag="-o out/conftest2.$ac_objext"
21840 # Insert the option either (1) after the last *FLAGS variable, or
21841 # (2) before a word containing "conftest.", or (3) at the end.
21842 # Note that $ac_compile itself does not contain backslashes and begins
21843 # with a dollar sign (not a hyphen), so the echo should work correctly.
21844 lt_compile=`echo "$ac_compile" | $SED \
21845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21847 -e 's:$: $lt_compiler_flag:'`
21848 (eval echo "\"\$as_me:21848: $lt_compile\"" >&5)
21849 (eval "$lt_compile" 2>out/conftest.err)
21851 cat out/conftest.err >&5
21852 echo "$as_me:21852: \$? = $ac_status" >&5
21853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21855 # The compiler can only warn and ignore the option if not recognized
21856 # So say no if there are warnings
21857 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21860 lt_cv_prog_compiler_c_o_F77=yes
21865 # SGI C++ compiler will create directory out/ii_files/ for
21866 # template instantiation
21867 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21868 $rm out/* && rmdir out
21874 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21875 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21878 hard_links="nottested"
21879 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21880 # do not overwrite the value of need_locks provided by the user
21881 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21882 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21887 ln conftest.a conftest.b 2>&5 || hard_links=no
21888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21889 { echo "$as_me:$LINENO: result: $hard_links" >&5
21890 echo "${ECHO_T}$hard_links" >&6; }
21891 if test "$hard_links" = no; then
21892 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21893 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21900 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21901 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21904 allow_undefined_flag_F77=
21905 enable_shared_with_static_runtimes_F77=no
21907 archive_expsym_cmds_F77=
21908 old_archive_From_new_cmds_F77=
21909 old_archive_from_expsyms_cmds_F77=
21910 export_dynamic_flag_spec_F77=
21911 whole_archive_flag_spec_F77=
21912 thread_safe_flag_spec_F77=
21913 hardcode_libdir_flag_spec_F77=
21914 hardcode_libdir_flag_spec_ld_F77=
21915 hardcode_libdir_separator_F77=
21916 hardcode_direct_F77=no
21917 hardcode_minus_L_F77=no
21918 hardcode_shlibpath_var_F77=unsupported
21919 link_all_deplibs_F77=unknown
21920 hardcode_automatic_F77=no
21922 module_expsym_cmds_F77=
21923 always_export_symbols_F77=no
21924 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21925 # include_expsyms should be a list of space-separated symbols to be *always*
21926 # included in the symbol list
21927 include_expsyms_F77=
21928 # exclude_expsyms can be an extended regexp of symbols to exclude
21929 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21930 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21931 # as well as any symbol that contains `d'.
21932 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21933 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21934 # platforms (ab)use it in PIC code, but their linkers get confused if
21935 # the symbol is explicitly referenced. Since portable code cannot
21936 # rely on this symbol name, it's probably fine to never include it in
21937 # preloaded symbol tables.
21938 extract_expsyms_cmds=
21939 # Just being paranoid about ensuring that cc_basename is set.
21940 for cc_temp in $compiler""; do
21942 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21943 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21948 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21951 cygwin* | mingw* | pw32*)
21952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21953 # When not using gcc, we currently assume that we are using
21954 # Microsoft Visual C++.
21955 if test "$GCC" != yes; then
21960 # we just hope/assume this is gcc and not c89 (= MSVC++)
21969 if test "$with_gnu_ld" = yes; then
21970 # If archive_cmds runs LD, not CC, wlarc should be empty
21973 # Set some defaults for GNU ld with shared library support. These
21974 # are reset later if shared libraries are not supported. Putting them
21975 # here allows them to be overridden if necessary.
21976 runpath_var=LD_RUN_PATH
21977 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21978 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21979 # ancient GNU ld didn't support --whole-archive et. al.
21980 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21981 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21983 whole_archive_flag_spec_F77=
21985 supports_anon_versioning=no
21986 case `$LD -v 2>/dev/null` in
21987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21990 *\ 2.11.*) ;; # other 2.11 versions
21991 *) supports_anon_versioning=yes ;;
21994 # See if GNU ld supports shared libraries.
21996 aix3* | aix4* | aix5*)
21997 # On AIX/PPC, the GNU linker is very broken
21998 if test "$host_cpu" != ia64; then
22002 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22003 *** to be unable to reliably create shared libraries on AIX.
22004 *** Therefore, libtool is disabling shared libraries support. If you
22005 *** really care for shared libraries, you may want to modify your PATH
22006 *** so that a non-GNU linker is found, and then restart.
22013 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)'
22014 hardcode_libdir_flag_spec_F77='-L$libdir'
22015 hardcode_minus_L_F77=yes
22017 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22018 # that the semantics of dynamic libraries on AmigaOS, at least up
22019 # to version 4, is to share data among multiple programs linked
22020 # with the same dynamic library. Since this doesn't match the
22021 # behavior of shared libraries on other platforms, we can't use
22027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22028 allow_undefined_flag_F77=unsupported
22029 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22030 # support --undefined. This deserves some investigation. FIXME
22031 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22037 cygwin* | mingw* | pw32*)
22038 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22039 # as there is no search path for DLLs.
22040 hardcode_libdir_flag_spec_F77='-L$libdir'
22041 allow_undefined_flag_F77=unsupported
22042 always_export_symbols_F77=no
22043 enable_shared_with_static_runtimes_F77=yes
22044 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22046 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22048 # If the export-symbols file already is a .def file (1st line
22049 # is EXPORTS), use it as is; otherwise, prepend...
22050 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22051 cp $export_symbols $output_objdir/$soname.def;
22053 echo EXPORTS > $output_objdir/$soname.def;
22054 cat $export_symbols >> $output_objdir/$soname.def;
22056 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22063 hardcode_direct_F77=no
22064 hardcode_shlibpath_var_F77=no
22065 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22066 export_dynamic_flag_spec_F77='${wl}-E'
22067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22068 # Instead, shared libraries are loaded at an image base (0x10000000 by
22069 # default) and relocated if they conflict, which is a slow very memory
22070 # consuming and fragmenting process. To avoid this, we pick a random,
22071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22073 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'
22074 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'
22078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22080 case $cc_basename,$host_cpu in
22081 pgcc*) # Portland Group C compiler
22082 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'
22083 tmp_addflag=' $pic_flag'
22085 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22086 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'
22087 tmp_addflag=' $pic_flag -Mnomain' ;;
22088 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22089 tmp_addflag=' -i_dynamic' ;;
22090 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22091 tmp_addflag=' -i_dynamic -nofor_main' ;;
22092 ifc* | ifort*) # Intel Fortran compiler
22093 tmp_addflag=' -nofor_main' ;;
22095 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22097 if test $supports_anon_versioning = yes; then
22098 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22099 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22100 $echo "local: *; };" >> $output_objdir/$libname.ver~
22101 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22110 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22113 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22114 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22119 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22124 *** create shared libraries on Solaris systems. Therefore, libtool
22125 *** is disabling shared libraries support. We urge you to upgrade GNU
22126 *** binutils to release 2.9.1 or newer. Another option is to modify
22127 *** your PATH or compiler configuration so that the native linker is
22128 *** used, and then restart.
22131 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22132 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22133 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22140 case `$LD -v 2>&1` in
22141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22146 *** reliably create shared libraries on SCO systems. Therefore, libtool
22147 *** is disabling shared libraries support. We urge you to upgrade GNU
22148 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22149 *** your PATH or compiler configuration so that the native linker is
22150 *** used, and then restart.
22155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22156 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22157 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22158 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22167 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22169 hardcode_direct_F77=yes
22170 hardcode_shlibpath_var_F77=no
22174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22176 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22183 if test "$ld_shlibs_F77" = no; then
22185 hardcode_libdir_flag_spec_F77=
22186 export_dynamic_flag_spec_F77=
22187 whole_archive_flag_spec_F77=
22190 # PORTME fill in a description of your system's linker (not GNU ld)
22193 allow_undefined_flag_F77=unsupported
22194 always_export_symbols_F77=yes
22195 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'
22196 # Note: this linker hardcodes the directories in LIBPATH if there
22197 # are no directories specified by -L.
22198 hardcode_minus_L_F77=yes
22199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22200 # Neither direct hardcoding nor static linking is supported with a
22202 hardcode_direct_F77=unsupported
22207 if test "$host_cpu" = ia64; then
22208 # On IA64, the linker does run time linking by default, so we don't
22209 # have to do anything special.
22210 aix_use_runtimelinking=no
22211 exp_sym_flag='-Bexport'
22214 # If we're using GNU nm, then we don't want the "-C" option.
22215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22216 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22217 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'
22219 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'
22221 aix_use_runtimelinking=no
22223 # Test if we are trying to use run time linking or normal
22224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22225 # need to do runtime linking.
22226 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22227 for ld_flag in $LDFLAGS; do
22228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22229 aix_use_runtimelinking=yes
22236 exp_sym_flag='-bexport'
22237 no_entry_flag='-bnoentry'
22240 # When large executables or shared objects are built, AIX ld can
22241 # have problems creating the table of contents. If linking a library
22242 # or program results in "error TOC overflow" add -mminimal-toc to
22243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22246 archive_cmds_F77=''
22247 hardcode_direct_F77=yes
22248 hardcode_libdir_separator_F77=':'
22249 link_all_deplibs_F77=yes
22251 if test "$GCC" = yes; then
22252 case $host_os in aix4.[012]|aix4.[012].*)
22253 # We only want to do this on AIX 4.2 and lower, the check
22254 # below for broken collect2 doesn't work under 4.3+
22255 collect2name=`${CC} -print-prog-name=collect2`
22256 if test -f "$collect2name" && \
22257 strings "$collect2name" | grep resolve_lib_name >/dev/null
22259 # We have reworked collect2
22260 hardcode_direct_F77=yes
22262 # We have old collect2
22263 hardcode_direct_F77=unsupported
22264 # It fails to find uninstalled libraries when the uninstalled
22265 # path is not listed in the libpath. Setting hardcode_minus_L
22266 # to unsupported forces relinking
22267 hardcode_minus_L_F77=yes
22268 hardcode_libdir_flag_spec_F77='-L$libdir'
22269 hardcode_libdir_separator_F77=
22273 shared_flag='-shared'
22274 if test "$aix_use_runtimelinking" = yes; then
22275 shared_flag="$shared_flag "'${wl}-G'
22279 if test "$host_cpu" = ia64; then
22280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22281 # chokes on -Wl,-G. The following line is correct:
22284 if test "$aix_use_runtimelinking" = yes; then
22285 shared_flag='${wl}-G'
22287 shared_flag='${wl}-bM:SRE'
22292 # It seems that -bexpall does not export symbols beginning with
22293 # underscore (_), so it is better to generate a list of symbols to export.
22294 always_export_symbols_F77=yes
22295 if test "$aix_use_runtimelinking" = yes; then
22296 # Warning - without using the other runtime loading flags (-brtl),
22297 # -berok will link without error, but may produce a broken library.
22298 allow_undefined_flag_F77='-berok'
22299 # Determine the default libpath from the value encoded in an empty executable.
22300 cat >conftest.$ac_ext <<_ACEOF
22305 rm -f conftest.$ac_objext conftest$ac_exeext
22306 if { (ac_try="$ac_link"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_link") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1 >conftest.err
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } &&
22319 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22320 { (case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_try") 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; } &&
22329 { ac_try='test -s conftest$ac_exeext'
22330 { (case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_try") 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22342 # Check for a 64-bit object if we didn't find anything.
22343 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; }
22346 echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22352 rm -f core conftest.err conftest.$ac_objext \
22353 conftest$ac_exeext conftest.$ac_ext
22354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22356 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22357 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"
22359 if test "$host_cpu" = ia64; then
22360 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22361 allow_undefined_flag_F77="-z nodefs"
22362 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"
22364 # Determine the default libpath from the value encoded in an empty executable.
22365 cat >conftest.$ac_ext <<_ACEOF
22370 rm -f conftest.$ac_objext conftest$ac_exeext
22371 if { (ac_try="$ac_link"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_link") 2>conftest.er1
22379 grep -v '^ *+' conftest.er1 >conftest.err
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } &&
22384 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22385 { (case "(($ac_try" in
22386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387 *) ac_try_echo=$ac_try;;
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390 (eval "$ac_try") 2>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; } &&
22394 { ac_try='test -s conftest$ac_exeext'
22395 { (case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_try") 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22407 # Check for a 64-bit object if we didn't find anything.
22408 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; }
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22417 rm -f core conftest.err conftest.$ac_objext \
22418 conftest$ac_exeext conftest.$ac_ext
22419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22421 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22422 # Warning - without using the other run time loading flags,
22423 # -berok will link without error, but may produce a broken library.
22424 no_undefined_flag_F77=' ${wl}-bernotok'
22425 allow_undefined_flag_F77=' ${wl}-berok'
22426 # Exported symbols can be pulled into shared objects from archives
22427 whole_archive_flag_spec_F77='$convenience'
22428 archive_cmds_need_lc_F77=yes
22429 # This is similar to how AIX traditionally builds its shared libraries.
22430 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'
22436 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)'
22437 hardcode_libdir_flag_spec_F77='-L$libdir'
22438 hardcode_minus_L_F77=yes
22439 # see comment about different semantics on the GNU ld section
22444 export_dynamic_flag_spec_F77=-rdynamic
22447 cygwin* | mingw* | pw32*)
22448 # When not using gcc, we currently assume that we are using
22449 # Microsoft Visual C++.
22450 # hardcode_libdir_flag_spec is actually meaningless, as there is
22451 # no search path for DLLs.
22452 hardcode_libdir_flag_spec_F77=' '
22453 allow_undefined_flag_F77=unsupported
22454 # Tell ltmain to make .lib files, not .a files.
22456 # Tell ltmain to make .dll files, not .so files.
22458 # FIXME: Setting linknames here is a bad hack.
22459 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22460 # The linker will automatically build a .lib file if we build a DLL.
22461 old_archive_From_new_cmds_F77='true'
22462 # FIXME: Should let the user specify the lib program.
22463 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22464 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22465 enable_shared_with_static_runtimes_F77=yes
22468 darwin* | rhapsody*)
22470 rhapsody* | darwin1.[012])
22471 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22474 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22475 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22477 case ${MACOSX_DEPLOYMENT_TARGET} in
22479 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22482 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22488 archive_cmds_need_lc_F77=no
22489 hardcode_direct_F77=no
22490 hardcode_automatic_F77=yes
22491 hardcode_shlibpath_var_F77=unsupported
22492 whole_archive_flag_spec_F77=''
22493 link_all_deplibs_F77=yes
22494 if test "$GCC" = yes ; then
22495 output_verbose_link_cmd='echo'
22496 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22497 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22498 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22499 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}'
22500 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}'
22502 case $cc_basename in
22504 output_verbose_link_cmd='echo'
22505 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22506 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22508 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}'
22509 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}'
22519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520 hardcode_libdir_flag_spec_F77='-L$libdir'
22521 hardcode_shlibpath_var_F77=no
22528 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22529 # support. Future versions do this automatically, but an explicit c++rt0.o
22530 # does not break anything, and helps significantly (at the cost of a little
22533 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22534 hardcode_libdir_flag_spec_F77='-R$libdir'
22535 hardcode_direct_F77=yes
22536 hardcode_shlibpath_var_F77=no
22539 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22541 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22542 hardcode_direct_F77=yes
22543 hardcode_minus_L_F77=yes
22544 hardcode_shlibpath_var_F77=no
22547 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22548 freebsd* | kfreebsd*-gnu | dragonfly*)
22549 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22550 hardcode_libdir_flag_spec_F77='-R$libdir'
22551 hardcode_direct_F77=yes
22552 hardcode_shlibpath_var_F77=no
22556 if test "$GCC" = yes; then
22557 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'
22559 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'
22561 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22562 hardcode_libdir_separator_F77=:
22563 hardcode_direct_F77=yes
22565 # hardcode_minus_L: Not really in the search PATH,
22566 # but as the default location of the library.
22567 hardcode_minus_L_F77=yes
22568 export_dynamic_flag_spec_F77='${wl}-E'
22572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22573 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22575 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22577 if test "$with_gnu_ld" = no; then
22578 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22579 hardcode_libdir_separator_F77=:
22581 hardcode_direct_F77=yes
22582 export_dynamic_flag_spec_F77='${wl}-E'
22584 # hardcode_minus_L: Not really in the search PATH,
22585 # but as the default location of the library.
22586 hardcode_minus_L_F77=yes
22591 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22594 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22597 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22600 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22606 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22609 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22612 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22616 if test "$with_gnu_ld" = no; then
22617 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22618 hardcode_libdir_separator_F77=:
22622 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22623 hardcode_direct_F77=no
22624 hardcode_shlibpath_var_F77=no
22627 hardcode_direct_F77=yes
22628 export_dynamic_flag_spec_F77='${wl}-E'
22630 # hardcode_minus_L: Not really in the search PATH,
22631 # but as the default location of the library.
22632 hardcode_minus_L_F77=yes
22638 irix5* | irix6* | nonstopux*)
22639 if test "$GCC" = yes; then
22640 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'
22642 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'
22643 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22646 hardcode_libdir_separator_F77=:
22647 link_all_deplibs_F77=yes
22651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22652 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22654 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22656 hardcode_libdir_flag_spec_F77='-R$libdir'
22657 hardcode_direct_F77=yes
22658 hardcode_shlibpath_var_F77=no
22662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663 hardcode_direct_F77=yes
22664 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22665 hardcode_libdir_separator_F77=:
22666 hardcode_shlibpath_var_F77=no
22670 hardcode_direct_F77=yes
22671 hardcode_shlibpath_var_F77=no
22672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22674 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22675 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22676 export_dynamic_flag_spec_F77='${wl}-E'
22679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22680 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22681 hardcode_libdir_flag_spec_F77='-R$libdir'
22684 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22685 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22692 hardcode_libdir_flag_spec_F77='-L$libdir'
22693 hardcode_minus_L_F77=yes
22694 allow_undefined_flag_F77=unsupported
22695 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'
22696 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22700 if test "$GCC" = yes; then
22701 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22702 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'
22704 allow_undefined_flag_F77=' -expect_unresolved \*'
22705 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'
22707 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22708 hardcode_libdir_separator_F77=:
22711 osf4* | osf5*) # as osf3* with the addition of -msym flag
22712 if test "$GCC" = yes; then
22713 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22714 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'
22715 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22717 allow_undefined_flag_F77=' -expect_unresolved \*'
22718 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'
22719 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~
22720 $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'
22722 # Both c and cxx compiler support -rpath directly
22723 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22725 hardcode_libdir_separator_F77=:
22729 no_undefined_flag_F77=' -z text'
22730 if test "$GCC" = yes; then
22732 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22734 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22737 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22738 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22739 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22741 hardcode_libdir_flag_spec_F77='-R$libdir'
22742 hardcode_shlibpath_var_F77=no
22744 solaris2.[0-5] | solaris2.[0-5].*) ;;
22746 # The compiler driver will combine linker options so we
22747 # cannot just pass the convience library names through
22748 # without $wl, iff we do not link with $LD.
22749 # Luckily, gcc supports the same syntax we need for Sun Studio.
22750 # Supported since Solaris 2.6 (maybe 2.5.1?)
22753 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22755 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' ;;
22758 link_all_deplibs_F77=yes
22762 if test "x$host_vendor" = xsequent; then
22763 # Use $CC to link under sequent, because it throws in some extra .o
22764 # files that make .init and .fini sections work.
22765 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22767 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22769 hardcode_libdir_flag_spec_F77='-L$libdir'
22770 hardcode_direct_F77=yes
22771 hardcode_minus_L_F77=yes
22772 hardcode_shlibpath_var_F77=no
22776 case $host_vendor in
22778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22779 hardcode_direct_F77=yes # is this really true???
22782 ## LD is ld it makes a PLAMLIB
22783 ## CC just makes a GrossModule.
22784 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22785 reload_cmds_F77='$CC -r -o $output$reload_objs'
22786 hardcode_direct_F77=no
22789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22790 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22793 runpath_var='LD_RUN_PATH'
22794 hardcode_shlibpath_var_F77=no
22798 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22799 hardcode_shlibpath_var_F77=no
22800 export_dynamic_flag_spec_F77='-Bexport'
22804 if test -d /usr/nec; then
22805 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22806 hardcode_shlibpath_var_F77=no
22807 runpath_var=LD_RUN_PATH
22808 hardcode_runpath_var=yes
22813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22814 no_undefined_flag_F77='${wl}-z,text'
22815 archive_cmds_need_lc_F77=no
22816 hardcode_shlibpath_var_F77=no
22817 runpath_var='LD_RUN_PATH'
22819 if test "$GCC" = yes; then
22820 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22821 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22823 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22824 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22828 sysv5* | sco3.2v5* | sco5v6*)
22829 # Note: We can NOT use -z defs as we might desire, because we do not
22830 # link with -lc, and that would cause any symbols used from libc to
22831 # always be unresolved, which means just about no library would
22832 # ever link correctly. If we're not using GNU ld we use -z text
22833 # though, which does catch some bad symbols but isn't as heavy-handed
22835 no_undefined_flag_F77='${wl}-z,text'
22836 allow_undefined_flag_F77='${wl}-z,nodefs'
22837 archive_cmds_need_lc_F77=no
22838 hardcode_shlibpath_var_F77=no
22839 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22840 hardcode_libdir_separator_F77=':'
22841 link_all_deplibs_F77=yes
22842 export_dynamic_flag_spec_F77='${wl}-Bexport'
22843 runpath_var='LD_RUN_PATH'
22845 if test "$GCC" = yes; then
22846 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22847 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22849 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22850 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22856 hardcode_libdir_flag_spec_F77='-L$libdir'
22857 hardcode_shlibpath_var_F77=no
22866 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22867 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22868 test "$ld_shlibs_F77" = no && can_build_shared=no
22871 # Do we need to explicitly link libc?
22873 case "x$archive_cmds_need_lc_F77" in
22875 # Assume -lc should be added
22876 archive_cmds_need_lc_F77=yes
22878 if test "$enable_shared" = yes && test "$GCC" = yes; then
22879 case $archive_cmds_F77 in
22881 # FIXME: we may have to deal with multi-command sequences.
22884 # Test whether the compiler implicitly links with -lc since on some
22885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22886 # to ld, don't add -lc before -lgcc.
22887 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22888 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893 (eval $ac_compile) 2>&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } 2>conftest.err; then
22899 libobjs=conftest.$ac_objext
22901 wl=$lt_prog_compiler_wl_F77
22902 pic_flag=$lt_prog_compiler_pic_F77
22908 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22909 allow_undefined_flag_F77=
22910 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22911 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }
22916 archive_cmds_need_lc_F77=no
22918 archive_cmds_need_lc_F77=yes
22920 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22922 cat conftest.err 1>&5
22925 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22926 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22933 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22934 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22935 library_names_spec=
22936 libname_spec='lib$name'
22940 postuninstall_cmds=
22944 shlibpath_overrides_runpath=unknown
22946 dynamic_linker="$host_os ld.so"
22947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22948 if test "$GCC" = yes; then
22949 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22950 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22951 # if the path contains ";" then we assume it to be the separator
22952 # otherwise default to the standard path separator (i.e. ":") - it is
22953 # assumed that no part of a normal pathname contains ";" but that should
22954 # okay in the real world where ";" in dirpaths is itself problematic.
22955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22962 need_lib_prefix=unknown
22963 hardcode_into_libs=no
22965 # when you set need_version to no, make sure it does not cause -set_version
22966 # flags to be left without arguments
22967 need_version=unknown
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22973 shlibpath_var=LIBPATH
22975 # AIX 3 has no versioning support, so we append a major version to the name.
22976 soname_spec='${libname}${release}${shared_ext}$major'
22983 hardcode_into_libs=yes
22984 if test "$host_cpu" = ia64; then
22985 # AIX 5 supports IA64
22986 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22987 shlibpath_var=LD_LIBRARY_PATH
22989 # With GCC up to 2.95.x, collect2 would create an import file
22990 # for dependence libraries. The import file would start with
22991 # the line `#! .'. This would cause the generated library to
22992 # depend on `.', always an invalid library. This was fixed in
22993 # development snapshots of GCC prior to 3.0.
22995 aix4 | aix4.[01] | aix4.[01].*)
22996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22998 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23001 can_build_shared=no
23005 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23006 # soname into executable. Probably we can add versioning support to
23007 # collect2, so additional links can be useful in future.
23008 if test "$aix_use_runtimelinking" = yes; then
23009 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23010 # instead of lib<name>.a to let people know that these are not
23011 # typical AIX shared libraries.
23012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23014 # We preserve .a as extension for shared libraries through AIX4.2
23015 # and later when we are not doing run time linking.
23016 library_names_spec='${libname}${release}.a $libname.a'
23017 soname_spec='${libname}${release}${shared_ext}$major'
23019 shlibpath_var=LIBPATH
23024 library_names_spec='$libname.ixlibrary $libname.a'
23025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23026 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'
23030 library_names_spec='${libname}${shared_ext}'
23031 dynamic_linker="$host_os ld.so"
23032 shlibpath_var=LIBRARY_PATH
23038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23039 soname_spec='${libname}${release}${shared_ext}$major'
23040 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23043 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23044 # the default ld.so.conf also contains /usr/contrib/lib and
23045 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23046 # libtool to hard-code these into programs
23049 cygwin* | mingw* | pw32*)
23050 version_type=windows
23055 case $GCC,$host_os in
23056 yes,cygwin* | yes,mingw* | yes,pw32*)
23057 library_names_spec='$libname.dll.a'
23058 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23059 postinstall_cmds='base_file=`basename \${file}`~
23060 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23061 dldir=$destdir/`dirname \$dlpath`~
23062 test -d \$dldir || mkdir -p \$dldir~
23063 $install_prog $dir/$dlname \$dldir/$dlname~
23064 chmod a+x \$dldir/$dlname'
23065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23066 dlpath=$dir/\$dldll~
23068 shlibpath_overrides_runpath=yes
23072 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23073 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23074 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23077 # MinGW DLLs use traditional 'lib' prefix
23078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23080 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23081 # It is most probably a Windows format PATH printed by
23082 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23083 # path with ; separators, and with drive letters. We can handle the
23084 # drive letters (cygwin fileutils understands them), so leave them,
23085 # especially as we might pass files found there to a mingw objdump,
23086 # which wouldn't understand a cygwinified path. Ahh.
23087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23093 # pw32 DLLs use 'pw' prefix rather than 'lib'
23094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23103 dynamic_linker='Win32 ld.exe'
23104 # FIXME: first we should search . and the directory the executable is in
23108 darwin* | rhapsody*)
23109 dynamic_linker="$host_os dyld"
23110 version_type=darwin
23113 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23114 soname_spec='${libname}${release}${major}$shared_ext'
23115 shlibpath_overrides_runpath=yes
23116 shlibpath_var=DYLD_LIBRARY_PATH
23117 shrext_cmds='.dylib'
23118 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23119 if test "$GCC" = yes; then
23120 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"`
23122 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23124 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23132 soname_spec='${libname}${release}${shared_ext}$major'
23133 shlibpath_var=LD_LIBRARY_PATH
23144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23145 soname_spec='${libname}${release}${shared_ext}$major'
23146 shlibpath_var=LD_LIBRARY_PATH
23147 shlibpath_overrides_runpath=no
23148 hardcode_into_libs=yes
23149 dynamic_linker='GNU ld.so'
23152 freebsd* | dragonfly*)
23153 # DragonFly does not have aout. When/if they implement a new
23154 # versioning mechanism, adjust this.
23155 if test -x /usr/bin/objformat; then
23156 objformat=`/usr/bin/objformat`
23159 freebsd[123]*) objformat=aout ;;
23160 *) objformat=elf ;;
23163 version_type=freebsd-$objformat
23164 case $version_type in
23166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23175 shlibpath_var=LD_LIBRARY_PATH
23178 shlibpath_overrides_runpath=yes
23180 freebsd3.[01]* | freebsdelf3.[01]*)
23181 shlibpath_overrides_runpath=yes
23182 hardcode_into_libs=yes
23184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23186 shlibpath_overrides_runpath=no
23187 hardcode_into_libs=yes
23189 freebsd*) # from 4.6 on
23190 shlibpath_overrides_runpath=yes
23191 hardcode_into_libs=yes
23200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23201 soname_spec='${libname}${release}${shared_ext}$major'
23202 shlibpath_var=LD_LIBRARY_PATH
23203 hardcode_into_libs=yes
23206 hpux9* | hpux10* | hpux11*)
23207 # Give a soname corresponding to the major version so that dld.sl refuses to
23208 # link against other versions.
23215 hardcode_into_libs=yes
23216 dynamic_linker="$host_os dld.so"
23217 shlibpath_var=LD_LIBRARY_PATH
23218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 if test "X$HPUX_IA64_MODE" = X32; then
23222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23230 hardcode_into_libs=yes
23231 dynamic_linker="$host_os dld.sl"
23232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23235 soname_spec='${libname}${release}${shared_ext}$major'
23236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23241 dynamic_linker="$host_os dld.sl"
23242 shlibpath_var=SHLIB_PATH
23243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23245 soname_spec='${libname}${release}${shared_ext}$major'
23248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23249 postinstall_cmds='chmod 555 $lib'
23256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23257 soname_spec='${libname}${release}${shared_ext}$major'
23258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23259 shlibpath_var=LD_LIBRARY_PATH
23260 shlibpath_overrides_runpath=no
23261 hardcode_into_libs=yes
23264 irix5* | irix6* | nonstopux*)
23266 nonstopux*) version_type=nonstopux ;;
23268 if test "$lt_cv_prog_gnu_ld" = yes; then
23276 soname_spec='${libname}${release}${shared_ext}$major'
23277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23279 irix5* | nonstopux*)
23280 libsuff= shlibsuff=
23283 case $LD in # libtool.m4 will add one of these switches to LD
23284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23285 libsuff= shlibsuff= libmagic=32-bit;;
23286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23287 libsuff=32 shlibsuff=N32 libmagic=N32;;
23288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23290 *) libsuff= shlibsuff= libmagic=never-match;;
23294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23295 shlibpath_overrides_runpath=no
23296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23298 hardcode_into_libs=yes
23301 # No shared lib support for Linux oldld, aout, or coff.
23302 linux*oldld* | linux*aout* | linux*coff*)
23306 # This must be Linux ELF.
23311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23312 soname_spec='${libname}${release}${shared_ext}$major'
23313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23314 shlibpath_var=LD_LIBRARY_PATH
23315 shlibpath_overrides_runpath=no
23316 # This implies no fast_install, which is unacceptable.
23317 # Some rework will be needed to allow for fast_install
23318 # before this can be enabled.
23319 hardcode_into_libs=yes
23321 # Append ld.so.conf contents to the search path
23322 if test -f /etc/ld.so.conf; then
23323 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' ' '`
23324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23327 # We used to test for /lib/ld.so.1 and disable shared libraries on
23328 # powerpc, because MkLinux only supported shared libraries with the
23329 # GNU dynamic linker. Since this was broken with cross compilers,
23330 # most powerpc-linux boxes support dynamic linking these days and
23331 # people can always --disable-shared, the test was removed, and we
23332 # assume the GNU/Linux dynamic linker is in use.
23333 dynamic_linker='GNU/Linux ld.so'
23340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23341 soname_spec='${libname}${release}${shared_ext}$major'
23342 shlibpath_var=LD_LIBRARY_PATH
23343 shlibpath_overrides_runpath=no
23344 hardcode_into_libs=yes
23345 dynamic_linker='GNU ld.so'
23352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23355 dynamic_linker='NetBSD (a.out) ld.so'
23357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23358 soname_spec='${libname}${release}${shared_ext}$major'
23359 dynamic_linker='NetBSD ld.elf_so'
23361 shlibpath_var=LD_LIBRARY_PATH
23362 shlibpath_overrides_runpath=yes
23363 hardcode_into_libs=yes
23368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23369 shlibpath_var=LD_LIBRARY_PATH
23370 shlibpath_overrides_runpath=yes
23377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23378 soname_spec='${libname}${release}${shared_ext}$major'
23379 shlibpath_var=LD_LIBRARY_PATH
23380 shlibpath_overrides_runpath=yes
23385 sys_lib_dlsearch_path_spec="/usr/lib"
23387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23390 *) need_version=no ;;
23392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23394 shlibpath_var=LD_LIBRARY_PATH
23395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23397 openbsd2.[89] | openbsd2.[89].*)
23398 shlibpath_overrides_runpath=no
23401 shlibpath_overrides_runpath=yes
23405 shlibpath_overrides_runpath=yes
23410 libname_spec='$name'
23413 library_names_spec='$libname${shared_ext} $libname.a'
23414 dynamic_linker='OS/2 ld.exe'
23415 shlibpath_var=LIBPATH
23418 osf3* | osf4* | osf5*)
23422 soname_spec='${libname}${release}${shared_ext}$major'
23423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23424 shlibpath_var=LD_LIBRARY_PATH
23425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23434 soname_spec='${libname}${release}${shared_ext}$major'
23435 shlibpath_var=LD_LIBRARY_PATH
23436 shlibpath_overrides_runpath=yes
23437 hardcode_into_libs=yes
23438 # ldd complains unless libraries are executable
23439 postinstall_cmds='chmod +x $lib'
23444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23445 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23446 shlibpath_var=LD_LIBRARY_PATH
23447 shlibpath_overrides_runpath=yes
23448 if test "$with_gnu_ld" = yes; then
23456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23457 soname_spec='${libname}${release}${shared_ext}$major'
23458 shlibpath_var=LD_LIBRARY_PATH
23459 case $host_vendor in
23461 shlibpath_overrides_runpath=no
23463 export_dynamic_flag_spec='${wl}-Blargedynsym'
23464 runpath_var=LD_RUN_PATH
23472 shlibpath_overrides_runpath=no
23473 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23479 if test -d /usr/nec ;then
23481 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23482 soname_spec='$libname${shared_ext}.$major'
23483 shlibpath_var=LD_LIBRARY_PATH
23487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23488 version_type=freebsd-elf
23491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23492 soname_spec='${libname}${release}${shared_ext}$major'
23493 shlibpath_var=LD_LIBRARY_PATH
23494 hardcode_into_libs=yes
23495 if test "$with_gnu_ld" = yes; then
23496 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23497 shlibpath_overrides_runpath=no
23499 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23500 shlibpath_overrides_runpath=yes
23503 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23507 sys_lib_dlsearch_path_spec='/usr/lib'
23512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23513 soname_spec='${libname}${release}${shared_ext}$major'
23514 shlibpath_var=LD_LIBRARY_PATH
23521 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23522 echo "${ECHO_T}$dynamic_linker" >&6; }
23523 test "$dynamic_linker" = no && can_build_shared=no
23525 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23526 if test "$GCC" = yes; then
23527 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23530 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23531 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23532 hardcode_action_F77=
23533 if test -n "$hardcode_libdir_flag_spec_F77" || \
23534 test -n "$runpath_var_F77" || \
23535 test "X$hardcode_automatic_F77" = "Xyes" ; then
23537 # We can hardcode non-existant directories.
23538 if test "$hardcode_direct_F77" != no &&
23539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23540 # have to relink, otherwise we might link with an installed library
23541 # when we should be linking with a yet-to-be-installed one
23542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23543 test "$hardcode_minus_L_F77" != no; then
23544 # Linking always hardcodes the temporary library directory.
23545 hardcode_action_F77=relink
23547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23548 hardcode_action_F77=immediate
23551 # We cannot hardcode anything, or else we can only hardcode existing
23553 hardcode_action_F77=unsupported
23555 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23556 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23558 if test "$hardcode_action_F77" = relink; then
23559 # Fast installation is not supported
23560 enable_fast_install=no
23561 elif test "$shlibpath_overrides_runpath" = yes ||
23562 test "$enable_shared" = no; then
23563 # Fast installation is not necessary
23564 enable_fast_install=needless
23568 # The else clause should only fire when bootstrapping the
23569 # libtool distribution, otherwise you forgot to ship ltmain.sh
23570 # with your package, and you will get complaints that there are
23571 # no rules to generate ltmain.sh.
23572 if test -f "$ltmain"; then
23573 # See if we are running on zsh, and set the options which allow our commands through
23574 # without removal of \ escapes.
23575 if test -n "${ZSH_VERSION+set}" ; then
23576 setopt NO_GLOB_SUBST
23578 # Now quote all the things that may contain metacharacters while being
23579 # careful not to overquote the AC_SUBSTed values. We take copies of the
23580 # variables and quote the copies for generation of the libtool script.
23581 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23583 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23584 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23585 deplibs_check_method reload_flag reload_cmds need_locks \
23586 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23587 lt_cv_sys_global_symbol_to_c_name_address \
23588 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23589 old_postinstall_cmds old_postuninstall_cmds \
23593 lt_prog_compiler_wl_F77 \
23594 lt_prog_compiler_pic_F77 \
23595 lt_prog_compiler_static_F77 \
23596 lt_prog_compiler_no_builtin_flag_F77 \
23597 export_dynamic_flag_spec_F77 \
23598 thread_safe_flag_spec_F77 \
23599 whole_archive_flag_spec_F77 \
23600 enable_shared_with_static_runtimes_F77 \
23601 old_archive_cmds_F77 \
23602 old_archive_from_new_cmds_F77 \
23603 predep_objects_F77 \
23604 postdep_objects_F77 \
23607 compiler_lib_search_path_F77 \
23609 archive_expsym_cmds_F77 \
23610 postinstall_cmds_F77 \
23611 postuninstall_cmds_F77 \
23612 old_archive_from_expsyms_cmds_F77 \
23613 allow_undefined_flag_F77 \
23614 no_undefined_flag_F77 \
23615 export_symbols_cmds_F77 \
23616 hardcode_libdir_flag_spec_F77 \
23617 hardcode_libdir_flag_spec_ld_F77 \
23618 hardcode_libdir_separator_F77 \
23619 hardcode_automatic_F77 \
23621 module_expsym_cmds_F77 \
23622 lt_cv_prog_compiler_c_o_F77 \
23623 exclude_expsyms_F77 \
23624 include_expsyms_F77; do
23627 old_archive_cmds_F77 | \
23628 old_archive_from_new_cmds_F77 | \
23629 archive_cmds_F77 | \
23630 archive_expsym_cmds_F77 | \
23631 module_cmds_F77 | \
23632 module_expsym_cmds_F77 | \
23633 old_archive_from_expsyms_cmds_F77 | \
23634 export_symbols_cmds_F77 | \
23635 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23636 postinstall_cmds | postuninstall_cmds | \
23637 old_postinstall_cmds | old_postuninstall_cmds | \
23638 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23639 # Double-quote double-evaled strings.
23640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23649 *'\$0 --fallback-echo"')
23650 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23656 cat <<__EOF__ >> "$cfgfile"
23657 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23659 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23661 # Shell to use when invoking shell scripts.
23664 # Whether or not to build shared libraries.
23665 build_libtool_libs=$enable_shared
23667 # Whether or not to build static libraries.
23668 build_old_libs=$enable_static
23670 # Whether or not to add -lc for building shared libraries.
23671 build_libtool_need_lc=$archive_cmds_need_lc_F77
23673 # Whether or not to disallow shared libs when runtime libs are static
23674 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23676 # Whether or not to optimize for fast installation.
23677 fast_install=$enable_fast_install
23680 host_alias=$host_alias
23684 # The build system.
23685 build_alias=$build_alias
23689 # An echo program that does not interpret backslashes.
23694 AR_FLAGS=$lt_AR_FLAGS
23699 # LTCC compiler flags.
23700 LTCFLAGS=$lt_LTCFLAGS
23702 # A language-specific compiler.
23703 CC=$lt_compiler_F77
23705 # Is the compiler the GNU C compiler?
23711 # The linker used to build libraries.
23714 # Whether we need hard or soft links.
23717 # A BSD-compatible nm program.
23720 # A symbol stripping program
23723 # Used to examine libraries when file_magic_cmd begins "file"
23724 MAGIC_CMD=$MAGIC_CMD
23726 # Used on cygwin: DLL creation program.
23729 # Used on cygwin: object dumper.
23732 # Used on cygwin: assembler.
23735 # The name of the directory that contains temporary libtool files.
23738 # How to create reloadable object files.
23739 reload_flag=$lt_reload_flag
23740 reload_cmds=$lt_reload_cmds
23742 # How to pass a linker flag through the compiler.
23743 wl=$lt_lt_prog_compiler_wl_F77
23745 # Object file suffix (normally "o").
23746 objext="$ac_objext"
23748 # Old archive suffix (normally "a").
23751 # Shared library suffix (normally ".so").
23752 shrext_cmds='$shrext_cmds'
23754 # Executable file suffix (normally "").
23757 # Additional compiler flags for building library objects.
23758 pic_flag=$lt_lt_prog_compiler_pic_F77
23761 # What is the maximum length of a command?
23762 max_cmd_len=$lt_cv_sys_max_cmd_len
23764 # Does compiler simultaneously support -c and -o options?
23765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23767 # Must we lock files when doing compilation?
23768 need_locks=$lt_need_locks
23770 # Do we need the lib prefix for modules?
23771 need_lib_prefix=$need_lib_prefix
23773 # Do we need a version for libraries?
23774 need_version=$need_version
23776 # Whether dlopen is supported.
23777 dlopen_support=$enable_dlopen
23779 # Whether dlopen of programs is supported.
23780 dlopen_self=$enable_dlopen_self
23782 # Whether dlopen of statically linked programs is supported.
23783 dlopen_self_static=$enable_dlopen_self_static
23785 # Compiler flag to prevent dynamic linking.
23786 link_static_flag=$lt_lt_prog_compiler_static_F77
23788 # Compiler flag to turn off builtin functions.
23789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23791 # Compiler flag to allow reflexive dlopens.
23792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23794 # Compiler flag to generate shared objects directly from archives.
23795 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23797 # Compiler flag to generate thread-safe objects.
23798 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23800 # Library versioning type.
23801 version_type=$version_type
23803 # Format of library name prefix.
23804 libname_spec=$lt_libname_spec
23806 # List of archive names. First name is the real one, the rest are links.
23807 # The last name is the one that the linker finds with -lNAME.
23808 library_names_spec=$lt_library_names_spec
23810 # The coded name of the library, if different from the real name.
23811 soname_spec=$lt_soname_spec
23813 # Commands used to build and install an old-style archive.
23815 old_archive_cmds=$lt_old_archive_cmds_F77
23816 old_postinstall_cmds=$lt_old_postinstall_cmds
23817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23819 # Create an old-style archive from a shared archive.
23820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23822 # Create a temporary old-style archive to link instead of a shared archive.
23823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23825 # Commands used to build and install a shared archive.
23826 archive_cmds=$lt_archive_cmds_F77
23827 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23828 postinstall_cmds=$lt_postinstall_cmds
23829 postuninstall_cmds=$lt_postuninstall_cmds
23831 # Commands used to build a loadable module (assumed same as above if empty)
23832 module_cmds=$lt_module_cmds_F77
23833 module_expsym_cmds=$lt_module_expsym_cmds_F77
23835 # Commands to strip libraries.
23836 old_striplib=$lt_old_striplib
23837 striplib=$lt_striplib
23839 # Dependencies to place before the objects being linked to create a
23841 predep_objects=$lt_predep_objects_F77
23843 # Dependencies to place after the objects being linked to create a
23845 postdep_objects=$lt_postdep_objects_F77
23847 # Dependencies to place before the objects being linked to create a
23849 predeps=$lt_predeps_F77
23851 # Dependencies to place after the objects being linked to create a
23853 postdeps=$lt_postdeps_F77
23855 # The library search path used internally by the compiler when linking
23856 # a shared library.
23857 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23859 # Method to check whether dependent libraries are shared objects.
23860 deplibs_check_method=$lt_deplibs_check_method
23862 # Command to use when deplibs_check_method == file_magic.
23863 file_magic_cmd=$lt_file_magic_cmd
23865 # Flag that allows shared libraries with undefined symbols to be built.
23866 allow_undefined_flag=$lt_allow_undefined_flag_F77
23868 # Flag that forces no undefined symbols.
23869 no_undefined_flag=$lt_no_undefined_flag_F77
23871 # Commands used to finish a libtool library installation in a directory.
23872 finish_cmds=$lt_finish_cmds
23874 # Same as above, but a single script fragment to be evaled but not shown.
23875 finish_eval=$lt_finish_eval
23877 # Take the output of nm and produce a listing of raw symbols and C names.
23878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23880 # Transform the output of nm in a proper C declaration
23881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23883 # Transform the output of nm in a C name address pair
23884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23886 # This is the shared library runtime path variable.
23887 runpath_var=$runpath_var
23889 # This is the shared library path variable.
23890 shlibpath_var=$shlibpath_var
23892 # Is shlibpath searched before the hard-coded library search path?
23893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23895 # How to hardcode a shared library path into an executable.
23896 hardcode_action=$hardcode_action_F77
23898 # Whether we should hardcode library paths into libraries.
23899 hardcode_into_libs=$hardcode_into_libs
23901 # Flag to hardcode \$libdir into a binary during linking.
23902 # This must work even if \$libdir does not exist.
23903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23905 # If ld is used when linking, flag to hardcode \$libdir into
23906 # a binary during linking. This must work even if \$libdir does
23908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23910 # Whether we need a single -rpath flag with a separated argument.
23911 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23914 # resulting binary.
23915 hardcode_direct=$hardcode_direct_F77
23917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23918 # resulting binary.
23919 hardcode_minus_L=$hardcode_minus_L_F77
23921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23922 # the resulting binary.
23923 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23925 # Set to yes if building a shared library automatically hardcodes DIR into the library
23926 # and all subsequent libraries and executables linked against it.
23927 hardcode_automatic=$hardcode_automatic_F77
23929 # Variables whose values should be saved in libtool wrapper scripts and
23930 # restored at relink time.
23931 variables_saved_for_relink="$variables_saved_for_relink"
23933 # Whether libtool must link a program against all its dependency libraries.
23934 link_all_deplibs=$link_all_deplibs_F77
23936 # Compile-time system search path for libraries
23937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23939 # Run-time system search path for libraries
23940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23942 # Fix the shell variable \$srcfile for the compiler.
23943 fix_srcfile_path="$fix_srcfile_path_F77"
23945 # Set to yes if exported symbols are required.
23946 always_export_symbols=$always_export_symbols_F77
23948 # The commands to list exported symbols.
23949 export_symbols_cmds=$lt_export_symbols_cmds_F77
23951 # The commands to extract the exported symbol list from a shared archive.
23952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23954 # Symbols that should not be listed in the preloaded symbols.
23955 exclude_expsyms=$lt_exclude_expsyms_F77
23957 # Symbols that must always be exported.
23958 include_expsyms=$lt_include_expsyms_F77
23960 # ### END LIBTOOL TAG CONFIG: $tagname
23966 # If there is no Makefile yet, we rely on a make rule to execute
23967 # `config.status --recheck' to rerun these tests and create the
23968 # libtool script then.
23969 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23970 if test -f "$ltmain_in"; then
23971 test -f Makefile && make "$ltmain"
23977 ac_cpp='$CPP $CPPFLAGS'
23978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23990 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23992 ac_cpp='$CPP $CPPFLAGS'
23993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23998 # Source file extension for Java test sources.
24001 # Object file extension for compiled Java test sources.
24005 # Code to be used in simple compile tests
24006 lt_simple_compile_test_code="class foo {}\n"
24008 # Code to be used in simple link tests
24009 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24011 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24013 # If no C compiler was specified, use CC.
24016 # If no C compiler flags were specified, use CFLAGS.
24017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24019 # Allow CC to be a program name with arguments.
24023 # save warnings/boilerplate of simple test code
24024 ac_outfile=conftest.$ac_objext
24025 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24027 _lt_compiler_boilerplate=`cat conftest.err`
24030 ac_outfile=conftest.$ac_objext
24031 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24033 _lt_linker_boilerplate=`cat conftest.err`
24037 # Allow CC to be a program name with arguments.
24042 for cc_temp in $compiler""; do
24044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24053 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24054 archive_cmds_need_lc_GCJ=no
24056 old_archive_cmds_GCJ=$old_archive_cmds
24059 lt_prog_compiler_no_builtin_flag_GCJ=
24061 if test "$GCC" = yes; then
24062 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24065 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24066 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24067 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24070 lt_cv_prog_compiler_rtti_exceptions=no
24071 ac_outfile=conftest.$ac_objext
24072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24073 lt_compiler_flag="-fno-rtti -fno-exceptions"
24074 # Insert the option either (1) after the last *FLAGS variable, or
24075 # (2) before a word containing "conftest.", or (3) at the end.
24076 # Note that $ac_compile itself does not contain backslashes and begins
24077 # with a dollar sign (not a hyphen), so the echo should work correctly.
24078 # The option is referenced via a variable to avoid confusing sed.
24079 lt_compile=`echo "$ac_compile" | $SED \
24080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24082 -e 's:$: $lt_compiler_flag:'`
24083 (eval echo "\"\$as_me:24083: $lt_compile\"" >&5)
24084 (eval "$lt_compile" 2>conftest.err)
24086 cat conftest.err >&5
24087 echo "$as_me:24087: \$? = $ac_status" >&5
24088 if (exit $ac_status) && test -s "$ac_outfile"; then
24089 # The compiler can only warn and ignore the option if not recognized
24090 # So say no if there are warnings other than the usual output.
24091 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24094 lt_cv_prog_compiler_rtti_exceptions=yes
24100 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24101 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24103 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24104 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24111 lt_prog_compiler_wl_GCJ=
24112 lt_prog_compiler_pic_GCJ=
24113 lt_prog_compiler_static_GCJ=
24115 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24116 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24118 if test "$GCC" = yes; then
24119 lt_prog_compiler_wl_GCJ='-Wl,'
24120 lt_prog_compiler_static_GCJ='-static'
24124 # All AIX code is PIC.
24125 if test "$host_cpu" = ia64; then
24126 # AIX 5 now supports IA64 processor
24127 lt_prog_compiler_static_GCJ='-Bstatic'
24132 # FIXME: we need at least 68020 code to build shared libraries, but
24133 # adding the `-m68020' flag to GCC prevents building anything better,
24135 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24138 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24139 # PIC is the default for these OSes.
24142 mingw* | pw32* | os2*)
24143 # This hack is so that the source file can tell whether it is being
24144 # built for inclusion in a dll (and should export symbols for example).
24145 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24148 darwin* | rhapsody*)
24149 # PIC is the default on this platform
24150 # Common symbols not allowed in MH_DYLIB files
24151 lt_prog_compiler_pic_GCJ='-fno-common'
24155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24156 # Instead, we relocate shared libraries at runtime.
24160 # Just because we use GCC doesn't mean we suddenly get shared libraries
24161 # on systems that don't support them.
24162 lt_prog_compiler_can_build_shared_GCJ=no
24167 if test -d /usr/nec; then
24168 lt_prog_compiler_pic_GCJ=-Kconform_pic
24173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24174 # not for PA HP-UX.
24180 lt_prog_compiler_pic_GCJ='-fPIC'
24186 lt_prog_compiler_pic_GCJ='-fPIC'
24190 # PORTME Check for flag to pass linker flags through the system compiler.
24193 lt_prog_compiler_wl_GCJ='-Wl,'
24194 if test "$host_cpu" = ia64; then
24195 # AIX 5 now supports IA64 processor
24196 lt_prog_compiler_static_GCJ='-Bstatic'
24198 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24202 # PIC is the default on this platform
24203 # Common symbols not allowed in MH_DYLIB files
24204 case $cc_basename in
24206 lt_prog_compiler_pic_GCJ='-qnocommon'
24207 lt_prog_compiler_wl_GCJ='-Wl,'
24212 mingw* | pw32* | os2*)
24213 # This hack is so that the source file can tell whether it is being
24214 # built for inclusion in a dll (and should export symbols for example).
24215 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24218 hpux9* | hpux10* | hpux11*)
24219 lt_prog_compiler_wl_GCJ='-Wl,'
24220 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24221 # not for PA HP-UX.
24227 lt_prog_compiler_pic_GCJ='+Z'
24230 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24231 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24234 irix5* | irix6* | nonstopux*)
24235 lt_prog_compiler_wl_GCJ='-Wl,'
24236 # PIC (with -KPIC) is the default.
24237 lt_prog_compiler_static_GCJ='-non_shared'
24241 lt_prog_compiler_pic_GCJ='-KPIC'
24242 lt_prog_compiler_static_GCJ='-Bstatic'
24246 case $cc_basename in
24248 lt_prog_compiler_wl_GCJ='-Wl,'
24249 lt_prog_compiler_pic_GCJ='-KPIC'
24250 lt_prog_compiler_static_GCJ='-static'
24252 pgcc* | pgf77* | pgf90* | pgf95*)
24253 # Portland Group compilers (*not* the Pentium gcc compiler,
24254 # which looks to be a dead project)
24255 lt_prog_compiler_wl_GCJ='-Wl,'
24256 lt_prog_compiler_pic_GCJ='-fpic'
24257 lt_prog_compiler_static_GCJ='-Bstatic'
24260 lt_prog_compiler_wl_GCJ='-Wl,'
24261 # All Alpha code is PIC.
24262 lt_prog_compiler_static_GCJ='-non_shared'
24267 osf3* | osf4* | osf5*)
24268 lt_prog_compiler_wl_GCJ='-Wl,'
24269 # All OSF/1 code is PIC.
24270 lt_prog_compiler_static_GCJ='-non_shared'
24274 lt_prog_compiler_pic_GCJ='-KPIC'
24275 lt_prog_compiler_static_GCJ='-Bstatic'
24276 case $cc_basename in
24277 f77* | f90* | f95*)
24278 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24280 lt_prog_compiler_wl_GCJ='-Wl,';;
24285 lt_prog_compiler_wl_GCJ='-Qoption ld '
24286 lt_prog_compiler_pic_GCJ='-PIC'
24287 lt_prog_compiler_static_GCJ='-Bstatic'
24290 sysv4 | sysv4.2uw2* | sysv4.3*)
24291 lt_prog_compiler_wl_GCJ='-Wl,'
24292 lt_prog_compiler_pic_GCJ='-KPIC'
24293 lt_prog_compiler_static_GCJ='-Bstatic'
24297 if test -d /usr/nec ;then
24298 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24299 lt_prog_compiler_static_GCJ='-Bstatic'
24303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24304 lt_prog_compiler_wl_GCJ='-Wl,'
24305 lt_prog_compiler_pic_GCJ='-KPIC'
24306 lt_prog_compiler_static_GCJ='-Bstatic'
24310 lt_prog_compiler_wl_GCJ='-Wl,'
24311 lt_prog_compiler_can_build_shared_GCJ=no
24315 lt_prog_compiler_pic_GCJ='-pic'
24316 lt_prog_compiler_static_GCJ='-Bstatic'
24320 lt_prog_compiler_can_build_shared_GCJ=no
24325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24326 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24329 # Check to make sure the PIC flag actually works.
24331 if test -n "$lt_prog_compiler_pic_GCJ"; then
24333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24335 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24338 lt_prog_compiler_pic_works_GCJ=no
24339 ac_outfile=conftest.$ac_objext
24340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24341 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24342 # Insert the option either (1) after the last *FLAGS variable, or
24343 # (2) before a word containing "conftest.", or (3) at the end.
24344 # Note that $ac_compile itself does not contain backslashes and begins
24345 # with a dollar sign (not a hyphen), so the echo should work correctly.
24346 # The option is referenced via a variable to avoid confusing sed.
24347 lt_compile=`echo "$ac_compile" | $SED \
24348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24350 -e 's:$: $lt_compiler_flag:'`
24351 (eval echo "\"\$as_me:24351: $lt_compile\"" >&5)
24352 (eval "$lt_compile" 2>conftest.err)
24354 cat conftest.err >&5
24355 echo "$as_me:24355: \$? = $ac_status" >&5
24356 if (exit $ac_status) && test -s "$ac_outfile"; then
24357 # The compiler can only warn and ignore the option if not recognized
24358 # So say no if there are warnings other than the usual output.
24359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24362 lt_prog_compiler_pic_works_GCJ=yes
24368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24369 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24371 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24372 case $lt_prog_compiler_pic_GCJ in
24374 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24377 lt_prog_compiler_pic_GCJ=
24378 lt_prog_compiler_can_build_shared_GCJ=no
24383 # For platforms which do not support PIC, -DPIC is meaningless:
24385 lt_prog_compiler_pic_GCJ=
24388 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24393 # Check to make sure the static flag actually works.
24395 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24398 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24399 echo $ECHO_N "(cached) $ECHO_C" >&6
24401 lt_prog_compiler_static_works_GCJ=no
24402 save_LDFLAGS="$LDFLAGS"
24403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24404 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24406 # The linker can only warn and ignore the option if not recognized
24407 # So say no if there are warnings
24408 if test -s conftest.err; then
24409 # Append any errors to the config.log.
24410 cat conftest.err 1>&5
24411 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24413 if diff conftest.exp conftest.er2 >/dev/null; then
24414 lt_prog_compiler_static_works_GCJ=yes
24417 lt_prog_compiler_static_works_GCJ=yes
24421 LDFLAGS="$save_LDFLAGS"
24424 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24425 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24427 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24430 lt_prog_compiler_static_GCJ=
24434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24436 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24439 lt_cv_prog_compiler_c_o_GCJ=no
24440 $rm -r conftest 2>/dev/null
24444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24446 lt_compiler_flag="-o out/conftest2.$ac_objext"
24447 # Insert the option either (1) after the last *FLAGS variable, or
24448 # (2) before a word containing "conftest.", or (3) at the end.
24449 # Note that $ac_compile itself does not contain backslashes and begins
24450 # with a dollar sign (not a hyphen), so the echo should work correctly.
24451 lt_compile=`echo "$ac_compile" | $SED \
24452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24454 -e 's:$: $lt_compiler_flag:'`
24455 (eval echo "\"\$as_me:24455: $lt_compile\"" >&5)
24456 (eval "$lt_compile" 2>out/conftest.err)
24458 cat out/conftest.err >&5
24459 echo "$as_me:24459: \$? = $ac_status" >&5
24460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24462 # The compiler can only warn and ignore the option if not recognized
24463 # So say no if there are warnings
24464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24467 lt_cv_prog_compiler_c_o_GCJ=yes
24472 # SGI C++ compiler will create directory out/ii_files/ for
24473 # template instantiation
24474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24475 $rm out/* && rmdir out
24481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24485 hard_links="nottested"
24486 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24487 # do not overwrite the value of need_locks provided by the user
24488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24494 ln conftest.a conftest.b 2>&5 || hard_links=no
24495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24496 { echo "$as_me:$LINENO: result: $hard_links" >&5
24497 echo "${ECHO_T}$hard_links" >&6; }
24498 if test "$hard_links" = no; then
24499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24511 allow_undefined_flag_GCJ=
24512 enable_shared_with_static_runtimes_GCJ=no
24514 archive_expsym_cmds_GCJ=
24515 old_archive_From_new_cmds_GCJ=
24516 old_archive_from_expsyms_cmds_GCJ=
24517 export_dynamic_flag_spec_GCJ=
24518 whole_archive_flag_spec_GCJ=
24519 thread_safe_flag_spec_GCJ=
24520 hardcode_libdir_flag_spec_GCJ=
24521 hardcode_libdir_flag_spec_ld_GCJ=
24522 hardcode_libdir_separator_GCJ=
24523 hardcode_direct_GCJ=no
24524 hardcode_minus_L_GCJ=no
24525 hardcode_shlibpath_var_GCJ=unsupported
24526 link_all_deplibs_GCJ=unknown
24527 hardcode_automatic_GCJ=no
24529 module_expsym_cmds_GCJ=
24530 always_export_symbols_GCJ=no
24531 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24532 # include_expsyms should be a list of space-separated symbols to be *always*
24533 # included in the symbol list
24534 include_expsyms_GCJ=
24535 # exclude_expsyms can be an extended regexp of symbols to exclude
24536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24538 # as well as any symbol that contains `d'.
24539 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24541 # platforms (ab)use it in PIC code, but their linkers get confused if
24542 # the symbol is explicitly referenced. Since portable code cannot
24543 # rely on this symbol name, it's probably fine to never include it in
24544 # preloaded symbol tables.
24545 extract_expsyms_cmds=
24546 # Just being paranoid about ensuring that cc_basename is set.
24547 for cc_temp in $compiler""; do
24549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24555 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24558 cygwin* | mingw* | pw32*)
24559 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24560 # When not using gcc, we currently assume that we are using
24561 # Microsoft Visual C++.
24562 if test "$GCC" != yes; then
24567 # we just hope/assume this is gcc and not c89 (= MSVC++)
24576 if test "$with_gnu_ld" = yes; then
24577 # If archive_cmds runs LD, not CC, wlarc should be empty
24580 # Set some defaults for GNU ld with shared library support. These
24581 # are reset later if shared libraries are not supported. Putting them
24582 # here allows them to be overridden if necessary.
24583 runpath_var=LD_RUN_PATH
24584 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24585 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24586 # ancient GNU ld didn't support --whole-archive et. al.
24587 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24588 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24590 whole_archive_flag_spec_GCJ=
24592 supports_anon_versioning=no
24593 case `$LD -v 2>/dev/null` in
24594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24597 *\ 2.11.*) ;; # other 2.11 versions
24598 *) supports_anon_versioning=yes ;;
24601 # See if GNU ld supports shared libraries.
24603 aix3* | aix4* | aix5*)
24604 # On AIX/PPC, the GNU linker is very broken
24605 if test "$host_cpu" != ia64; then
24609 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24610 *** to be unable to reliably create shared libraries on AIX.
24611 *** Therefore, libtool is disabling shared libraries support. If you
24612 *** really care for shared libraries, you may want to modify your PATH
24613 *** so that a non-GNU linker is found, and then restart.
24620 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)'
24621 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24622 hardcode_minus_L_GCJ=yes
24624 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24625 # that the semantics of dynamic libraries on AmigaOS, at least up
24626 # to version 4, is to share data among multiple programs linked
24627 # with the same dynamic library. Since this doesn't match the
24628 # behavior of shared libraries on other platforms, we can't use
24634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24635 allow_undefined_flag_GCJ=unsupported
24636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24637 # support --undefined. This deserves some investigation. FIXME
24638 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24644 cygwin* | mingw* | pw32*)
24645 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24646 # as there is no search path for DLLs.
24647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24648 allow_undefined_flag_GCJ=unsupported
24649 always_export_symbols_GCJ=no
24650 enable_shared_with_static_runtimes_GCJ=yes
24651 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24653 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24654 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24655 # If the export-symbols file already is a .def file (1st line
24656 # is EXPORTS), use it as is; otherwise, prepend...
24657 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24658 cp $export_symbols $output_objdir/$soname.def;
24660 echo EXPORTS > $output_objdir/$soname.def;
24661 cat $export_symbols >> $output_objdir/$soname.def;
24663 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24670 hardcode_direct_GCJ=no
24671 hardcode_shlibpath_var_GCJ=no
24672 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24673 export_dynamic_flag_spec_GCJ='${wl}-E'
24674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24675 # Instead, shared libraries are loaded at an image base (0x10000000 by
24676 # default) and relocated if they conflict, which is a slow very memory
24677 # consuming and fragmenting process. To avoid this, we pick a random,
24678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24680 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'
24681 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'
24685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24687 case $cc_basename,$host_cpu in
24688 pgcc*) # Portland Group C compiler
24689 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'
24690 tmp_addflag=' $pic_flag'
24692 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24693 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'
24694 tmp_addflag=' $pic_flag -Mnomain' ;;
24695 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24696 tmp_addflag=' -i_dynamic' ;;
24697 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24698 tmp_addflag=' -i_dynamic -nofor_main' ;;
24699 ifc* | ifort*) # Intel Fortran compiler
24700 tmp_addflag=' -nofor_main' ;;
24702 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24704 if test $supports_anon_versioning = yes; then
24705 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24707 $echo "local: *; };" >> $output_objdir/$libname.ver~
24708 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24717 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24721 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24726 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24731 *** create shared libraries on Solaris systems. Therefore, libtool
24732 *** is disabling shared libraries support. We urge you to upgrade GNU
24733 *** binutils to release 2.9.1 or newer. Another option is to modify
24734 *** your PATH or compiler configuration so that the native linker is
24735 *** used, and then restart.
24738 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24739 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24740 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24747 case `$LD -v 2>&1` in
24748 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24752 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24753 *** reliably create shared libraries on SCO systems. Therefore, libtool
24754 *** is disabling shared libraries support. We urge you to upgrade GNU
24755 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24756 *** your PATH or compiler configuration so that the native linker is
24757 *** used, and then restart.
24762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24763 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24764 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24765 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24774 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24776 hardcode_direct_GCJ=yes
24777 hardcode_shlibpath_var_GCJ=no
24781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24782 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24783 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24790 if test "$ld_shlibs_GCJ" = no; then
24792 hardcode_libdir_flag_spec_GCJ=
24793 export_dynamic_flag_spec_GCJ=
24794 whole_archive_flag_spec_GCJ=
24797 # PORTME fill in a description of your system's linker (not GNU ld)
24800 allow_undefined_flag_GCJ=unsupported
24801 always_export_symbols_GCJ=yes
24802 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'
24803 # Note: this linker hardcodes the directories in LIBPATH if there
24804 # are no directories specified by -L.
24805 hardcode_minus_L_GCJ=yes
24806 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24807 # Neither direct hardcoding nor static linking is supported with a
24809 hardcode_direct_GCJ=unsupported
24814 if test "$host_cpu" = ia64; then
24815 # On IA64, the linker does run time linking by default, so we don't
24816 # have to do anything special.
24817 aix_use_runtimelinking=no
24818 exp_sym_flag='-Bexport'
24821 # If we're using GNU nm, then we don't want the "-C" option.
24822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24824 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'
24826 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'
24828 aix_use_runtimelinking=no
24830 # Test if we are trying to use run time linking or normal
24831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24832 # need to do runtime linking.
24833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24834 for ld_flag in $LDFLAGS; do
24835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24836 aix_use_runtimelinking=yes
24843 exp_sym_flag='-bexport'
24844 no_entry_flag='-bnoentry'
24847 # When large executables or shared objects are built, AIX ld can
24848 # have problems creating the table of contents. If linking a library
24849 # or program results in "error TOC overflow" add -mminimal-toc to
24850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24853 archive_cmds_GCJ=''
24854 hardcode_direct_GCJ=yes
24855 hardcode_libdir_separator_GCJ=':'
24856 link_all_deplibs_GCJ=yes
24858 if test "$GCC" = yes; then
24859 case $host_os in aix4.[012]|aix4.[012].*)
24860 # We only want to do this on AIX 4.2 and lower, the check
24861 # below for broken collect2 doesn't work under 4.3+
24862 collect2name=`${CC} -print-prog-name=collect2`
24863 if test -f "$collect2name" && \
24864 strings "$collect2name" | grep resolve_lib_name >/dev/null
24866 # We have reworked collect2
24867 hardcode_direct_GCJ=yes
24869 # We have old collect2
24870 hardcode_direct_GCJ=unsupported
24871 # It fails to find uninstalled libraries when the uninstalled
24872 # path is not listed in the libpath. Setting hardcode_minus_L
24873 # to unsupported forces relinking
24874 hardcode_minus_L_GCJ=yes
24875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24876 hardcode_libdir_separator_GCJ=
24880 shared_flag='-shared'
24881 if test "$aix_use_runtimelinking" = yes; then
24882 shared_flag="$shared_flag "'${wl}-G'
24886 if test "$host_cpu" = ia64; then
24887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24888 # chokes on -Wl,-G. The following line is correct:
24891 if test "$aix_use_runtimelinking" = yes; then
24892 shared_flag='${wl}-G'
24894 shared_flag='${wl}-bM:SRE'
24899 # It seems that -bexpall does not export symbols beginning with
24900 # underscore (_), so it is better to generate a list of symbols to export.
24901 always_export_symbols_GCJ=yes
24902 if test "$aix_use_runtimelinking" = yes; then
24903 # Warning - without using the other runtime loading flags (-brtl),
24904 # -berok will link without error, but may produce a broken library.
24905 allow_undefined_flag_GCJ='-berok'
24906 # Determine the default libpath from the value encoded in an empty executable.
24907 cat >conftest.$ac_ext <<_ACEOF
24910 cat confdefs.h >>conftest.$ac_ext
24911 cat >>conftest.$ac_ext <<_ACEOF
24912 /* end confdefs.h. */
24922 rm -f conftest.$ac_objext conftest$ac_exeext
24923 if { (ac_try="$ac_link"
24924 case "(($ac_try" in
24925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929 (eval "$ac_link") 2>conftest.er1
24931 grep -v '^ *+' conftest.er1 >conftest.err
24933 cat conftest.err >&5
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); } &&
24936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24937 { (case "(($ac_try" in
24938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939 *) ac_try_echo=$ac_try;;
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942 (eval "$ac_try") 2>&5
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; } &&
24946 { ac_try='test -s conftest$ac_exeext'
24947 { (case "(($ac_try" in
24948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24949 *) ac_try_echo=$ac_try;;
24951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24952 (eval "$ac_try") 2>&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
24957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24959 # Check for a 64-bit object if we didn't find anything.
24960 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; }
24963 echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24969 rm -f core conftest.err conftest.$ac_objext \
24970 conftest$ac_exeext conftest.$ac_ext
24971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24973 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24974 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"
24976 if test "$host_cpu" = ia64; then
24977 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24978 allow_undefined_flag_GCJ="-z nodefs"
24979 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"
24981 # Determine the default libpath from the value encoded in an empty executable.
24982 cat >conftest.$ac_ext <<_ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24997 rm -f conftest.$ac_objext conftest$ac_exeext
24998 if { (ac_try="$ac_link"
24999 case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_link") 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25012 { (case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_try") 2>&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try='test -s conftest$ac_exeext'
25022 { (case "(($ac_try" in
25023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_try") 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25034 # Check for a 64-bit object if we didn't find anything.
25035 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; }
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25044 rm -f core conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25048 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25049 # Warning - without using the other run time loading flags,
25050 # -berok will link without error, but may produce a broken library.
25051 no_undefined_flag_GCJ=' ${wl}-bernotok'
25052 allow_undefined_flag_GCJ=' ${wl}-berok'
25053 # Exported symbols can be pulled into shared objects from archives
25054 whole_archive_flag_spec_GCJ='$convenience'
25055 archive_cmds_need_lc_GCJ=yes
25056 # This is similar to how AIX traditionally builds its shared libraries.
25057 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'
25063 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)'
25064 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25065 hardcode_minus_L_GCJ=yes
25066 # see comment about different semantics on the GNU ld section
25071 export_dynamic_flag_spec_GCJ=-rdynamic
25074 cygwin* | mingw* | pw32*)
25075 # When not using gcc, we currently assume that we are using
25076 # Microsoft Visual C++.
25077 # hardcode_libdir_flag_spec is actually meaningless, as there is
25078 # no search path for DLLs.
25079 hardcode_libdir_flag_spec_GCJ=' '
25080 allow_undefined_flag_GCJ=unsupported
25081 # Tell ltmain to make .lib files, not .a files.
25083 # Tell ltmain to make .dll files, not .so files.
25085 # FIXME: Setting linknames here is a bad hack.
25086 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25087 # The linker will automatically build a .lib file if we build a DLL.
25088 old_archive_From_new_cmds_GCJ='true'
25089 # FIXME: Should let the user specify the lib program.
25090 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25091 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25092 enable_shared_with_static_runtimes_GCJ=yes
25095 darwin* | rhapsody*)
25097 rhapsody* | darwin1.[012])
25098 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25101 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25102 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25104 case ${MACOSX_DEPLOYMENT_TARGET} in
25106 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25109 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25115 archive_cmds_need_lc_GCJ=no
25116 hardcode_direct_GCJ=no
25117 hardcode_automatic_GCJ=yes
25118 hardcode_shlibpath_var_GCJ=unsupported
25119 whole_archive_flag_spec_GCJ=''
25120 link_all_deplibs_GCJ=yes
25121 if test "$GCC" = yes ; then
25122 output_verbose_link_cmd='echo'
25123 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25124 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25126 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}'
25127 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}'
25129 case $cc_basename in
25131 output_verbose_link_cmd='echo'
25132 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25133 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25135 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}'
25136 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}'
25146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25148 hardcode_shlibpath_var_GCJ=no
25155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25156 # support. Future versions do this automatically, but an explicit c++rt0.o
25157 # does not break anything, and helps significantly (at the cost of a little
25160 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25161 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25162 hardcode_direct_GCJ=yes
25163 hardcode_shlibpath_var_GCJ=no
25166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25168 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25169 hardcode_direct_GCJ=yes
25170 hardcode_minus_L_GCJ=yes
25171 hardcode_shlibpath_var_GCJ=no
25174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25175 freebsd* | kfreebsd*-gnu | dragonfly*)
25176 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25178 hardcode_direct_GCJ=yes
25179 hardcode_shlibpath_var_GCJ=no
25183 if test "$GCC" = yes; then
25184 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'
25186 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'
25188 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25189 hardcode_libdir_separator_GCJ=:
25190 hardcode_direct_GCJ=yes
25192 # hardcode_minus_L: Not really in the search PATH,
25193 # but as the default location of the library.
25194 hardcode_minus_L_GCJ=yes
25195 export_dynamic_flag_spec_GCJ='${wl}-E'
25199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25200 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25202 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25204 if test "$with_gnu_ld" = no; then
25205 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25206 hardcode_libdir_separator_GCJ=:
25208 hardcode_direct_GCJ=yes
25209 export_dynamic_flag_spec_GCJ='${wl}-E'
25211 # hardcode_minus_L: Not really in the search PATH,
25212 # but as the default location of the library.
25213 hardcode_minus_L_GCJ=yes
25218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25221 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25224 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25227 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25233 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25236 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25239 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25243 if test "$with_gnu_ld" = no; then
25244 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25245 hardcode_libdir_separator_GCJ=:
25249 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25250 hardcode_direct_GCJ=no
25251 hardcode_shlibpath_var_GCJ=no
25254 hardcode_direct_GCJ=yes
25255 export_dynamic_flag_spec_GCJ='${wl}-E'
25257 # hardcode_minus_L: Not really in the search PATH,
25258 # but as the default location of the library.
25259 hardcode_minus_L_GCJ=yes
25265 irix5* | irix6* | nonstopux*)
25266 if test "$GCC" = yes; then
25267 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'
25269 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'
25270 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25273 hardcode_libdir_separator_GCJ=:
25274 link_all_deplibs_GCJ=yes
25278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25279 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25281 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25283 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25284 hardcode_direct_GCJ=yes
25285 hardcode_shlibpath_var_GCJ=no
25289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25290 hardcode_direct_GCJ=yes
25291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25292 hardcode_libdir_separator_GCJ=:
25293 hardcode_shlibpath_var_GCJ=no
25297 hardcode_direct_GCJ=yes
25298 hardcode_shlibpath_var_GCJ=no
25299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25300 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25301 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25303 export_dynamic_flag_spec_GCJ='${wl}-E'
25306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25307 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25308 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25311 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25312 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25319 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25320 hardcode_minus_L_GCJ=yes
25321 allow_undefined_flag_GCJ=unsupported
25322 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'
25323 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25327 if test "$GCC" = yes; then
25328 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25329 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'
25331 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25332 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'
25334 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25335 hardcode_libdir_separator_GCJ=:
25338 osf4* | osf5*) # as osf3* with the addition of -msym flag
25339 if test "$GCC" = yes; then
25340 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25341 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'
25342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25344 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25345 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'
25346 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~
25347 $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'
25349 # Both c and cxx compiler support -rpath directly
25350 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25352 hardcode_libdir_separator_GCJ=:
25356 no_undefined_flag_GCJ=' -z text'
25357 if test "$GCC" = yes; then
25359 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25360 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25361 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25364 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25365 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25369 hardcode_shlibpath_var_GCJ=no
25371 solaris2.[0-5] | solaris2.[0-5].*) ;;
25373 # The compiler driver will combine linker options so we
25374 # cannot just pass the convience library names through
25375 # without $wl, iff we do not link with $LD.
25376 # Luckily, gcc supports the same syntax we need for Sun Studio.
25377 # Supported since Solaris 2.6 (maybe 2.5.1?)
25380 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25382 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' ;;
25385 link_all_deplibs_GCJ=yes
25389 if test "x$host_vendor" = xsequent; then
25390 # Use $CC to link under sequent, because it throws in some extra .o
25391 # files that make .init and .fini sections work.
25392 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25394 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25397 hardcode_direct_GCJ=yes
25398 hardcode_minus_L_GCJ=yes
25399 hardcode_shlibpath_var_GCJ=no
25403 case $host_vendor in
25405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406 hardcode_direct_GCJ=yes # is this really true???
25409 ## LD is ld it makes a PLAMLIB
25410 ## CC just makes a GrossModule.
25411 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25412 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25413 hardcode_direct_GCJ=no
25416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25417 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25420 runpath_var='LD_RUN_PATH'
25421 hardcode_shlibpath_var_GCJ=no
25425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25426 hardcode_shlibpath_var_GCJ=no
25427 export_dynamic_flag_spec_GCJ='-Bexport'
25431 if test -d /usr/nec; then
25432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25433 hardcode_shlibpath_var_GCJ=no
25434 runpath_var=LD_RUN_PATH
25435 hardcode_runpath_var=yes
25440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25441 no_undefined_flag_GCJ='${wl}-z,text'
25442 archive_cmds_need_lc_GCJ=no
25443 hardcode_shlibpath_var_GCJ=no
25444 runpath_var='LD_RUN_PATH'
25446 if test "$GCC" = yes; then
25447 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25448 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25450 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25451 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25455 sysv5* | sco3.2v5* | sco5v6*)
25456 # Note: We can NOT use -z defs as we might desire, because we do not
25457 # link with -lc, and that would cause any symbols used from libc to
25458 # always be unresolved, which means just about no library would
25459 # ever link correctly. If we're not using GNU ld we use -z text
25460 # though, which does catch some bad symbols but isn't as heavy-handed
25462 no_undefined_flag_GCJ='${wl}-z,text'
25463 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25464 archive_cmds_need_lc_GCJ=no
25465 hardcode_shlibpath_var_GCJ=no
25466 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25467 hardcode_libdir_separator_GCJ=':'
25468 link_all_deplibs_GCJ=yes
25469 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25470 runpath_var='LD_RUN_PATH'
25472 if test "$GCC" = yes; then
25473 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25474 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25476 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25477 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25484 hardcode_shlibpath_var_GCJ=no
25493 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25494 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25495 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25498 # Do we need to explicitly link libc?
25500 case "x$archive_cmds_need_lc_GCJ" in
25502 # Assume -lc should be added
25503 archive_cmds_need_lc_GCJ=yes
25505 if test "$enable_shared" = yes && test "$GCC" = yes; then
25506 case $archive_cmds_GCJ in
25508 # FIXME: we may have to deal with multi-command sequences.
25511 # Test whether the compiler implicitly links with -lc since on some
25512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25513 # to ld, don't add -lc before -lgcc.
25514 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520 (eval $ac_compile) 2>&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } 2>conftest.err; then
25526 libobjs=conftest.$ac_objext
25528 wl=$lt_prog_compiler_wl_GCJ
25529 pic_flag=$lt_prog_compiler_pic_GCJ
25535 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25536 allow_undefined_flag_GCJ=
25537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25538 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }
25543 archive_cmds_need_lc_GCJ=no
25545 archive_cmds_need_lc_GCJ=yes
25547 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25549 cat conftest.err 1>&5
25552 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25553 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25560 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25562 library_names_spec=
25563 libname_spec='lib$name'
25567 postuninstall_cmds=
25571 shlibpath_overrides_runpath=unknown
25573 dynamic_linker="$host_os ld.so"
25574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25575 if test "$GCC" = yes; then
25576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25578 # if the path contains ";" then we assume it to be the separator
25579 # otherwise default to the standard path separator (i.e. ":") - it is
25580 # assumed that no part of a normal pathname contains ";" but that should
25581 # okay in the real world where ";" in dirpaths is itself problematic.
25582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25589 need_lib_prefix=unknown
25590 hardcode_into_libs=no
25592 # when you set need_version to no, make sure it does not cause -set_version
25593 # flags to be left without arguments
25594 need_version=unknown
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25600 shlibpath_var=LIBPATH
25602 # AIX 3 has no versioning support, so we append a major version to the name.
25603 soname_spec='${libname}${release}${shared_ext}$major'
25610 hardcode_into_libs=yes
25611 if test "$host_cpu" = ia64; then
25612 # AIX 5 supports IA64
25613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25614 shlibpath_var=LD_LIBRARY_PATH
25616 # With GCC up to 2.95.x, collect2 would create an import file
25617 # for dependence libraries. The import file would start with
25618 # the line `#! .'. This would cause the generated library to
25619 # depend on `.', always an invalid library. This was fixed in
25620 # development snapshots of GCC prior to 3.0.
25622 aix4 | aix4.[01] | aix4.[01].*)
25623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25628 can_build_shared=no
25632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25633 # soname into executable. Probably we can add versioning support to
25634 # collect2, so additional links can be useful in future.
25635 if test "$aix_use_runtimelinking" = yes; then
25636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25637 # instead of lib<name>.a to let people know that these are not
25638 # typical AIX shared libraries.
25639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25641 # We preserve .a as extension for shared libraries through AIX4.2
25642 # and later when we are not doing run time linking.
25643 library_names_spec='${libname}${release}.a $libname.a'
25644 soname_spec='${libname}${release}${shared_ext}$major'
25646 shlibpath_var=LIBPATH
25651 library_names_spec='$libname.ixlibrary $libname.a'
25652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25653 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'
25657 library_names_spec='${libname}${shared_ext}'
25658 dynamic_linker="$host_os ld.so"
25659 shlibpath_var=LIBRARY_PATH
25665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25666 soname_spec='${libname}${release}${shared_ext}$major'
25667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25668 shlibpath_var=LD_LIBRARY_PATH
25669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25671 # the default ld.so.conf also contains /usr/contrib/lib and
25672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25673 # libtool to hard-code these into programs
25676 cygwin* | mingw* | pw32*)
25677 version_type=windows
25682 case $GCC,$host_os in
25683 yes,cygwin* | yes,mingw* | yes,pw32*)
25684 library_names_spec='$libname.dll.a'
25685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25686 postinstall_cmds='base_file=`basename \${file}`~
25687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25688 dldir=$destdir/`dirname \$dlpath`~
25689 test -d \$dldir || mkdir -p \$dldir~
25690 $install_prog $dir/$dlname \$dldir/$dlname~
25691 chmod a+x \$dldir/$dlname'
25692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25693 dlpath=$dir/\$dldll~
25695 shlibpath_overrides_runpath=yes
25699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25704 # MinGW DLLs use traditional 'lib' prefix
25705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25707 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25708 # It is most probably a Windows format PATH printed by
25709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25710 # path with ; separators, and with drive letters. We can handle the
25711 # drive letters (cygwin fileutils understands them), so leave them,
25712 # especially as we might pass files found there to a mingw objdump,
25713 # which wouldn't understand a cygwinified path. Ahh.
25714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25720 # pw32 DLLs use 'pw' prefix rather than 'lib'
25721 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25730 dynamic_linker='Win32 ld.exe'
25731 # FIXME: first we should search . and the directory the executable is in
25735 darwin* | rhapsody*)
25736 dynamic_linker="$host_os dyld"
25737 version_type=darwin
25740 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25741 soname_spec='${libname}${release}${major}$shared_ext'
25742 shlibpath_overrides_runpath=yes
25743 shlibpath_var=DYLD_LIBRARY_PATH
25744 shrext_cmds='.dylib'
25745 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25746 if test "$GCC" = yes; then
25747 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"`
25749 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25759 soname_spec='${libname}${release}${shared_ext}$major'
25760 shlibpath_var=LD_LIBRARY_PATH
25771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25772 soname_spec='${libname}${release}${shared_ext}$major'
25773 shlibpath_var=LD_LIBRARY_PATH
25774 shlibpath_overrides_runpath=no
25775 hardcode_into_libs=yes
25776 dynamic_linker='GNU ld.so'
25779 freebsd* | dragonfly*)
25780 # DragonFly does not have aout. When/if they implement a new
25781 # versioning mechanism, adjust this.
25782 if test -x /usr/bin/objformat; then
25783 objformat=`/usr/bin/objformat`
25786 freebsd[123]*) objformat=aout ;;
25787 *) objformat=elf ;;
25790 version_type=freebsd-$objformat
25791 case $version_type in
25793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25802 shlibpath_var=LD_LIBRARY_PATH
25805 shlibpath_overrides_runpath=yes
25807 freebsd3.[01]* | freebsdelf3.[01]*)
25808 shlibpath_overrides_runpath=yes
25809 hardcode_into_libs=yes
25811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25813 shlibpath_overrides_runpath=no
25814 hardcode_into_libs=yes
25816 freebsd*) # from 4.6 on
25817 shlibpath_overrides_runpath=yes
25818 hardcode_into_libs=yes
25827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25828 soname_spec='${libname}${release}${shared_ext}$major'
25829 shlibpath_var=LD_LIBRARY_PATH
25830 hardcode_into_libs=yes
25833 hpux9* | hpux10* | hpux11*)
25834 # Give a soname corresponding to the major version so that dld.sl refuses to
25835 # link against other versions.
25842 hardcode_into_libs=yes
25843 dynamic_linker="$host_os dld.so"
25844 shlibpath_var=LD_LIBRARY_PATH
25845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 if test "X$HPUX_IA64_MODE" = X32; then
25849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25857 hardcode_into_libs=yes
25858 dynamic_linker="$host_os dld.sl"
25859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25862 soname_spec='${libname}${release}${shared_ext}$major'
25863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25868 dynamic_linker="$host_os dld.sl"
25869 shlibpath_var=SHLIB_PATH
25870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25872 soname_spec='${libname}${release}${shared_ext}$major'
25875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25876 postinstall_cmds='chmod 555 $lib'
25883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25884 soname_spec='${libname}${release}${shared_ext}$major'
25885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25886 shlibpath_var=LD_LIBRARY_PATH
25887 shlibpath_overrides_runpath=no
25888 hardcode_into_libs=yes
25891 irix5* | irix6* | nonstopux*)
25893 nonstopux*) version_type=nonstopux ;;
25895 if test "$lt_cv_prog_gnu_ld" = yes; then
25903 soname_spec='${libname}${release}${shared_ext}$major'
25904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25906 irix5* | nonstopux*)
25907 libsuff= shlibsuff=
25910 case $LD in # libtool.m4 will add one of these switches to LD
25911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25912 libsuff= shlibsuff= libmagic=32-bit;;
25913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25914 libsuff=32 shlibsuff=N32 libmagic=N32;;
25915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25917 *) libsuff= shlibsuff= libmagic=never-match;;
25921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25922 shlibpath_overrides_runpath=no
25923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25925 hardcode_into_libs=yes
25928 # No shared lib support for Linux oldld, aout, or coff.
25929 linux*oldld* | linux*aout* | linux*coff*)
25933 # This must be Linux ELF.
25938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25939 soname_spec='${libname}${release}${shared_ext}$major'
25940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25941 shlibpath_var=LD_LIBRARY_PATH
25942 shlibpath_overrides_runpath=no
25943 # This implies no fast_install, which is unacceptable.
25944 # Some rework will be needed to allow for fast_install
25945 # before this can be enabled.
25946 hardcode_into_libs=yes
25948 # Append ld.so.conf contents to the search path
25949 if test -f /etc/ld.so.conf; then
25950 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' ' '`
25951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25954 # We used to test for /lib/ld.so.1 and disable shared libraries on
25955 # powerpc, because MkLinux only supported shared libraries with the
25956 # GNU dynamic linker. Since this was broken with cross compilers,
25957 # most powerpc-linux boxes support dynamic linking these days and
25958 # people can always --disable-shared, the test was removed, and we
25959 # assume the GNU/Linux dynamic linker is in use.
25960 dynamic_linker='GNU/Linux ld.so'
25967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25968 soname_spec='${libname}${release}${shared_ext}$major'
25969 shlibpath_var=LD_LIBRARY_PATH
25970 shlibpath_overrides_runpath=no
25971 hardcode_into_libs=yes
25972 dynamic_linker='GNU ld.so'
25979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25982 dynamic_linker='NetBSD (a.out) ld.so'
25984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25985 soname_spec='${libname}${release}${shared_ext}$major'
25986 dynamic_linker='NetBSD ld.elf_so'
25988 shlibpath_var=LD_LIBRARY_PATH
25989 shlibpath_overrides_runpath=yes
25990 hardcode_into_libs=yes
25995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25996 shlibpath_var=LD_LIBRARY_PATH
25997 shlibpath_overrides_runpath=yes
26004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26005 soname_spec='${libname}${release}${shared_ext}$major'
26006 shlibpath_var=LD_LIBRARY_PATH
26007 shlibpath_overrides_runpath=yes
26012 sys_lib_dlsearch_path_spec="/usr/lib"
26014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26017 *) need_version=no ;;
26019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26021 shlibpath_var=LD_LIBRARY_PATH
26022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26024 openbsd2.[89] | openbsd2.[89].*)
26025 shlibpath_overrides_runpath=no
26028 shlibpath_overrides_runpath=yes
26032 shlibpath_overrides_runpath=yes
26037 libname_spec='$name'
26040 library_names_spec='$libname${shared_ext} $libname.a'
26041 dynamic_linker='OS/2 ld.exe'
26042 shlibpath_var=LIBPATH
26045 osf3* | osf4* | osf5*)
26049 soname_spec='${libname}${release}${shared_ext}$major'
26050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26051 shlibpath_var=LD_LIBRARY_PATH
26052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26061 soname_spec='${libname}${release}${shared_ext}$major'
26062 shlibpath_var=LD_LIBRARY_PATH
26063 shlibpath_overrides_runpath=yes
26064 hardcode_into_libs=yes
26065 # ldd complains unless libraries are executable
26066 postinstall_cmds='chmod +x $lib'
26071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26073 shlibpath_var=LD_LIBRARY_PATH
26074 shlibpath_overrides_runpath=yes
26075 if test "$with_gnu_ld" = yes; then
26083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26084 soname_spec='${libname}${release}${shared_ext}$major'
26085 shlibpath_var=LD_LIBRARY_PATH
26086 case $host_vendor in
26088 shlibpath_overrides_runpath=no
26090 export_dynamic_flag_spec='${wl}-Blargedynsym'
26091 runpath_var=LD_RUN_PATH
26099 shlibpath_overrides_runpath=no
26100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26106 if test -d /usr/nec ;then
26108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26109 soname_spec='$libname${shared_ext}.$major'
26110 shlibpath_var=LD_LIBRARY_PATH
26114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26115 version_type=freebsd-elf
26118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26119 soname_spec='${libname}${release}${shared_ext}$major'
26120 shlibpath_var=LD_LIBRARY_PATH
26121 hardcode_into_libs=yes
26122 if test "$with_gnu_ld" = yes; then
26123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26124 shlibpath_overrides_runpath=no
26126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26127 shlibpath_overrides_runpath=yes
26130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26134 sys_lib_dlsearch_path_spec='/usr/lib'
26139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26140 soname_spec='${libname}${release}${shared_ext}$major'
26141 shlibpath_var=LD_LIBRARY_PATH
26148 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26149 echo "${ECHO_T}$dynamic_linker" >&6; }
26150 test "$dynamic_linker" = no && can_build_shared=no
26152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26153 if test "$GCC" = yes; then
26154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26157 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26158 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26159 hardcode_action_GCJ=
26160 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26161 test -n "$runpath_var_GCJ" || \
26162 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26164 # We can hardcode non-existant directories.
26165 if test "$hardcode_direct_GCJ" != no &&
26166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26167 # have to relink, otherwise we might link with an installed library
26168 # when we should be linking with a yet-to-be-installed one
26169 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26170 test "$hardcode_minus_L_GCJ" != no; then
26171 # Linking always hardcodes the temporary library directory.
26172 hardcode_action_GCJ=relink
26174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26175 hardcode_action_GCJ=immediate
26178 # We cannot hardcode anything, or else we can only hardcode existing
26180 hardcode_action_GCJ=unsupported
26182 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26183 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26185 if test "$hardcode_action_GCJ" = relink; then
26186 # Fast installation is not supported
26187 enable_fast_install=no
26188 elif test "$shlibpath_overrides_runpath" = yes ||
26189 test "$enable_shared" = no; then
26190 # Fast installation is not necessary
26191 enable_fast_install=needless
26195 # The else clause should only fire when bootstrapping the
26196 # libtool distribution, otherwise you forgot to ship ltmain.sh
26197 # with your package, and you will get complaints that there are
26198 # no rules to generate ltmain.sh.
26199 if test -f "$ltmain"; then
26200 # See if we are running on zsh, and set the options which allow our commands through
26201 # without removal of \ escapes.
26202 if test -n "${ZSH_VERSION+set}" ; then
26203 setopt NO_GLOB_SUBST
26205 # Now quote all the things that may contain metacharacters while being
26206 # careful not to overquote the AC_SUBSTed values. We take copies of the
26207 # variables and quote the copies for generation of the libtool script.
26208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26212 deplibs_check_method reload_flag reload_cmds need_locks \
26213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26214 lt_cv_sys_global_symbol_to_c_name_address \
26215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26216 old_postinstall_cmds old_postuninstall_cmds \
26220 lt_prog_compiler_wl_GCJ \
26221 lt_prog_compiler_pic_GCJ \
26222 lt_prog_compiler_static_GCJ \
26223 lt_prog_compiler_no_builtin_flag_GCJ \
26224 export_dynamic_flag_spec_GCJ \
26225 thread_safe_flag_spec_GCJ \
26226 whole_archive_flag_spec_GCJ \
26227 enable_shared_with_static_runtimes_GCJ \
26228 old_archive_cmds_GCJ \
26229 old_archive_from_new_cmds_GCJ \
26230 predep_objects_GCJ \
26231 postdep_objects_GCJ \
26234 compiler_lib_search_path_GCJ \
26236 archive_expsym_cmds_GCJ \
26237 postinstall_cmds_GCJ \
26238 postuninstall_cmds_GCJ \
26239 old_archive_from_expsyms_cmds_GCJ \
26240 allow_undefined_flag_GCJ \
26241 no_undefined_flag_GCJ \
26242 export_symbols_cmds_GCJ \
26243 hardcode_libdir_flag_spec_GCJ \
26244 hardcode_libdir_flag_spec_ld_GCJ \
26245 hardcode_libdir_separator_GCJ \
26246 hardcode_automatic_GCJ \
26248 module_expsym_cmds_GCJ \
26249 lt_cv_prog_compiler_c_o_GCJ \
26250 exclude_expsyms_GCJ \
26251 include_expsyms_GCJ; do
26254 old_archive_cmds_GCJ | \
26255 old_archive_from_new_cmds_GCJ | \
26256 archive_cmds_GCJ | \
26257 archive_expsym_cmds_GCJ | \
26258 module_cmds_GCJ | \
26259 module_expsym_cmds_GCJ | \
26260 old_archive_from_expsyms_cmds_GCJ | \
26261 export_symbols_cmds_GCJ | \
26262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26263 postinstall_cmds | postuninstall_cmds | \
26264 old_postinstall_cmds | old_postuninstall_cmds | \
26265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26266 # Double-quote double-evaled strings.
26267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26276 *'\$0 --fallback-echo"')
26277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26283 cat <<__EOF__ >> "$cfgfile"
26284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26288 # Shell to use when invoking shell scripts.
26291 # Whether or not to build shared libraries.
26292 build_libtool_libs=$enable_shared
26294 # Whether or not to build static libraries.
26295 build_old_libs=$enable_static
26297 # Whether or not to add -lc for building shared libraries.
26298 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26300 # Whether or not to disallow shared libs when runtime libs are static
26301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26303 # Whether or not to optimize for fast installation.
26304 fast_install=$enable_fast_install
26307 host_alias=$host_alias
26311 # The build system.
26312 build_alias=$build_alias
26316 # An echo program that does not interpret backslashes.
26321 AR_FLAGS=$lt_AR_FLAGS
26326 # LTCC compiler flags.
26327 LTCFLAGS=$lt_LTCFLAGS
26329 # A language-specific compiler.
26330 CC=$lt_compiler_GCJ
26332 # Is the compiler the GNU C compiler?
26338 # The linker used to build libraries.
26341 # Whether we need hard or soft links.
26344 # A BSD-compatible nm program.
26347 # A symbol stripping program
26350 # Used to examine libraries when file_magic_cmd begins "file"
26351 MAGIC_CMD=$MAGIC_CMD
26353 # Used on cygwin: DLL creation program.
26356 # Used on cygwin: object dumper.
26359 # Used on cygwin: assembler.
26362 # The name of the directory that contains temporary libtool files.
26365 # How to create reloadable object files.
26366 reload_flag=$lt_reload_flag
26367 reload_cmds=$lt_reload_cmds
26369 # How to pass a linker flag through the compiler.
26370 wl=$lt_lt_prog_compiler_wl_GCJ
26372 # Object file suffix (normally "o").
26373 objext="$ac_objext"
26375 # Old archive suffix (normally "a").
26378 # Shared library suffix (normally ".so").
26379 shrext_cmds='$shrext_cmds'
26381 # Executable file suffix (normally "").
26384 # Additional compiler flags for building library objects.
26385 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26388 # What is the maximum length of a command?
26389 max_cmd_len=$lt_cv_sys_max_cmd_len
26391 # Does compiler simultaneously support -c and -o options?
26392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26394 # Must we lock files when doing compilation?
26395 need_locks=$lt_need_locks
26397 # Do we need the lib prefix for modules?
26398 need_lib_prefix=$need_lib_prefix
26400 # Do we need a version for libraries?
26401 need_version=$need_version
26403 # Whether dlopen is supported.
26404 dlopen_support=$enable_dlopen
26406 # Whether dlopen of programs is supported.
26407 dlopen_self=$enable_dlopen_self
26409 # Whether dlopen of statically linked programs is supported.
26410 dlopen_self_static=$enable_dlopen_self_static
26412 # Compiler flag to prevent dynamic linking.
26413 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26415 # Compiler flag to turn off builtin functions.
26416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26418 # Compiler flag to allow reflexive dlopens.
26419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26421 # Compiler flag to generate shared objects directly from archives.
26422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26424 # Compiler flag to generate thread-safe objects.
26425 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26427 # Library versioning type.
26428 version_type=$version_type
26430 # Format of library name prefix.
26431 libname_spec=$lt_libname_spec
26433 # List of archive names. First name is the real one, the rest are links.
26434 # The last name is the one that the linker finds with -lNAME.
26435 library_names_spec=$lt_library_names_spec
26437 # The coded name of the library, if different from the real name.
26438 soname_spec=$lt_soname_spec
26440 # Commands used to build and install an old-style archive.
26442 old_archive_cmds=$lt_old_archive_cmds_GCJ
26443 old_postinstall_cmds=$lt_old_postinstall_cmds
26444 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26446 # Create an old-style archive from a shared archive.
26447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26449 # Create a temporary old-style archive to link instead of a shared archive.
26450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26452 # Commands used to build and install a shared archive.
26453 archive_cmds=$lt_archive_cmds_GCJ
26454 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26455 postinstall_cmds=$lt_postinstall_cmds
26456 postuninstall_cmds=$lt_postuninstall_cmds
26458 # Commands used to build a loadable module (assumed same as above if empty)
26459 module_cmds=$lt_module_cmds_GCJ
26460 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26462 # Commands to strip libraries.
26463 old_striplib=$lt_old_striplib
26464 striplib=$lt_striplib
26466 # Dependencies to place before the objects being linked to create a
26468 predep_objects=$lt_predep_objects_GCJ
26470 # Dependencies to place after the objects being linked to create a
26472 postdep_objects=$lt_postdep_objects_GCJ
26474 # Dependencies to place before the objects being linked to create a
26476 predeps=$lt_predeps_GCJ
26478 # Dependencies to place after the objects being linked to create a
26480 postdeps=$lt_postdeps_GCJ
26482 # The library search path used internally by the compiler when linking
26483 # a shared library.
26484 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26486 # Method to check whether dependent libraries are shared objects.
26487 deplibs_check_method=$lt_deplibs_check_method
26489 # Command to use when deplibs_check_method == file_magic.
26490 file_magic_cmd=$lt_file_magic_cmd
26492 # Flag that allows shared libraries with undefined symbols to be built.
26493 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26495 # Flag that forces no undefined symbols.
26496 no_undefined_flag=$lt_no_undefined_flag_GCJ
26498 # Commands used to finish a libtool library installation in a directory.
26499 finish_cmds=$lt_finish_cmds
26501 # Same as above, but a single script fragment to be evaled but not shown.
26502 finish_eval=$lt_finish_eval
26504 # Take the output of nm and produce a listing of raw symbols and C names.
26505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26507 # Transform the output of nm in a proper C declaration
26508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26510 # Transform the output of nm in a C name address pair
26511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26513 # This is the shared library runtime path variable.
26514 runpath_var=$runpath_var
26516 # This is the shared library path variable.
26517 shlibpath_var=$shlibpath_var
26519 # Is shlibpath searched before the hard-coded library search path?
26520 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26522 # How to hardcode a shared library path into an executable.
26523 hardcode_action=$hardcode_action_GCJ
26525 # Whether we should hardcode library paths into libraries.
26526 hardcode_into_libs=$hardcode_into_libs
26528 # Flag to hardcode \$libdir into a binary during linking.
26529 # This must work even if \$libdir does not exist.
26530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26532 # If ld is used when linking, flag to hardcode \$libdir into
26533 # a binary during linking. This must work even if \$libdir does
26535 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26537 # Whether we need a single -rpath flag with a separated argument.
26538 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26540 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26541 # resulting binary.
26542 hardcode_direct=$hardcode_direct_GCJ
26544 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26545 # resulting binary.
26546 hardcode_minus_L=$hardcode_minus_L_GCJ
26548 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26549 # the resulting binary.
26550 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26552 # Set to yes if building a shared library automatically hardcodes DIR into the library
26553 # and all subsequent libraries and executables linked against it.
26554 hardcode_automatic=$hardcode_automatic_GCJ
26556 # Variables whose values should be saved in libtool wrapper scripts and
26557 # restored at relink time.
26558 variables_saved_for_relink="$variables_saved_for_relink"
26560 # Whether libtool must link a program against all its dependency libraries.
26561 link_all_deplibs=$link_all_deplibs_GCJ
26563 # Compile-time system search path for libraries
26564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26566 # Run-time system search path for libraries
26567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26569 # Fix the shell variable \$srcfile for the compiler.
26570 fix_srcfile_path="$fix_srcfile_path_GCJ"
26572 # Set to yes if exported symbols are required.
26573 always_export_symbols=$always_export_symbols_GCJ
26575 # The commands to list exported symbols.
26576 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26578 # The commands to extract the exported symbol list from a shared archive.
26579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26581 # Symbols that should not be listed in the preloaded symbols.
26582 exclude_expsyms=$lt_exclude_expsyms_GCJ
26584 # Symbols that must always be exported.
26585 include_expsyms=$lt_include_expsyms_GCJ
26587 # ### END LIBTOOL TAG CONFIG: $tagname
26593 # If there is no Makefile yet, we rely on a make rule to execute
26594 # `config.status --recheck' to rerun these tests and create the
26595 # libtool script then.
26596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26597 if test -f "$ltmain_in"; then
26598 test -f Makefile && make "$ltmain"
26604 ac_cpp='$CPP $CPPFLAGS'
26605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26618 ac_cpp='$CPP $CPPFLAGS'
26619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26624 # Source file extension for RC test sources.
26627 # Object file extension for compiled RC test sources.
26631 # Code to be used in simple compile tests
26632 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26634 # Code to be used in simple link tests
26635 lt_simple_link_test_code="$lt_simple_compile_test_code"
26637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26639 # If no C compiler was specified, use CC.
26642 # If no C compiler flags were specified, use CFLAGS.
26643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26645 # Allow CC to be a program name with arguments.
26649 # save warnings/boilerplate of simple test code
26650 ac_outfile=conftest.$ac_objext
26651 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26653 _lt_compiler_boilerplate=`cat conftest.err`
26656 ac_outfile=conftest.$ac_objext
26657 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26659 _lt_linker_boilerplate=`cat conftest.err`
26663 # Allow CC to be a program name with arguments.
26668 for cc_temp in $compiler""; do
26670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26678 lt_cv_prog_compiler_c_o_RC=yes
26680 # The else clause should only fire when bootstrapping the
26681 # libtool distribution, otherwise you forgot to ship ltmain.sh
26682 # with your package, and you will get complaints that there are
26683 # no rules to generate ltmain.sh.
26684 if test -f "$ltmain"; then
26685 # See if we are running on zsh, and set the options which allow our commands through
26686 # without removal of \ escapes.
26687 if test -n "${ZSH_VERSION+set}" ; then
26688 setopt NO_GLOB_SUBST
26690 # Now quote all the things that may contain metacharacters while being
26691 # careful not to overquote the AC_SUBSTed values. We take copies of the
26692 # variables and quote the copies for generation of the libtool script.
26693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26697 deplibs_check_method reload_flag reload_cmds need_locks \
26698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26699 lt_cv_sys_global_symbol_to_c_name_address \
26700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26701 old_postinstall_cmds old_postuninstall_cmds \
26705 lt_prog_compiler_wl_RC \
26706 lt_prog_compiler_pic_RC \
26707 lt_prog_compiler_static_RC \
26708 lt_prog_compiler_no_builtin_flag_RC \
26709 export_dynamic_flag_spec_RC \
26710 thread_safe_flag_spec_RC \
26711 whole_archive_flag_spec_RC \
26712 enable_shared_with_static_runtimes_RC \
26713 old_archive_cmds_RC \
26714 old_archive_from_new_cmds_RC \
26715 predep_objects_RC \
26716 postdep_objects_RC \
26719 compiler_lib_search_path_RC \
26721 archive_expsym_cmds_RC \
26722 postinstall_cmds_RC \
26723 postuninstall_cmds_RC \
26724 old_archive_from_expsyms_cmds_RC \
26725 allow_undefined_flag_RC \
26726 no_undefined_flag_RC \
26727 export_symbols_cmds_RC \
26728 hardcode_libdir_flag_spec_RC \
26729 hardcode_libdir_flag_spec_ld_RC \
26730 hardcode_libdir_separator_RC \
26731 hardcode_automatic_RC \
26733 module_expsym_cmds_RC \
26734 lt_cv_prog_compiler_c_o_RC \
26735 exclude_expsyms_RC \
26736 include_expsyms_RC; do
26739 old_archive_cmds_RC | \
26740 old_archive_from_new_cmds_RC | \
26741 archive_cmds_RC | \
26742 archive_expsym_cmds_RC | \
26744 module_expsym_cmds_RC | \
26745 old_archive_from_expsyms_cmds_RC | \
26746 export_symbols_cmds_RC | \
26747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26748 postinstall_cmds | postuninstall_cmds | \
26749 old_postinstall_cmds | old_postuninstall_cmds | \
26750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26751 # Double-quote double-evaled strings.
26752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26761 *'\$0 --fallback-echo"')
26762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26768 cat <<__EOF__ >> "$cfgfile"
26769 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26773 # Shell to use when invoking shell scripts.
26776 # Whether or not to build shared libraries.
26777 build_libtool_libs=$enable_shared
26779 # Whether or not to build static libraries.
26780 build_old_libs=$enable_static
26782 # Whether or not to add -lc for building shared libraries.
26783 build_libtool_need_lc=$archive_cmds_need_lc_RC
26785 # Whether or not to disallow shared libs when runtime libs are static
26786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26788 # Whether or not to optimize for fast installation.
26789 fast_install=$enable_fast_install
26792 host_alias=$host_alias
26796 # The build system.
26797 build_alias=$build_alias
26801 # An echo program that does not interpret backslashes.
26806 AR_FLAGS=$lt_AR_FLAGS
26811 # LTCC compiler flags.
26812 LTCFLAGS=$lt_LTCFLAGS
26814 # A language-specific compiler.
26817 # Is the compiler the GNU C compiler?
26823 # The linker used to build libraries.
26826 # Whether we need hard or soft links.
26829 # A BSD-compatible nm program.
26832 # A symbol stripping program
26835 # Used to examine libraries when file_magic_cmd begins "file"
26836 MAGIC_CMD=$MAGIC_CMD
26838 # Used on cygwin: DLL creation program.
26841 # Used on cygwin: object dumper.
26844 # Used on cygwin: assembler.
26847 # The name of the directory that contains temporary libtool files.
26850 # How to create reloadable object files.
26851 reload_flag=$lt_reload_flag
26852 reload_cmds=$lt_reload_cmds
26854 # How to pass a linker flag through the compiler.
26855 wl=$lt_lt_prog_compiler_wl_RC
26857 # Object file suffix (normally "o").
26858 objext="$ac_objext"
26860 # Old archive suffix (normally "a").
26863 # Shared library suffix (normally ".so").
26864 shrext_cmds='$shrext_cmds'
26866 # Executable file suffix (normally "").
26869 # Additional compiler flags for building library objects.
26870 pic_flag=$lt_lt_prog_compiler_pic_RC
26873 # What is the maximum length of a command?
26874 max_cmd_len=$lt_cv_sys_max_cmd_len
26876 # Does compiler simultaneously support -c and -o options?
26877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26879 # Must we lock files when doing compilation?
26880 need_locks=$lt_need_locks
26882 # Do we need the lib prefix for modules?
26883 need_lib_prefix=$need_lib_prefix
26885 # Do we need a version for libraries?
26886 need_version=$need_version
26888 # Whether dlopen is supported.
26889 dlopen_support=$enable_dlopen
26891 # Whether dlopen of programs is supported.
26892 dlopen_self=$enable_dlopen_self
26894 # Whether dlopen of statically linked programs is supported.
26895 dlopen_self_static=$enable_dlopen_self_static
26897 # Compiler flag to prevent dynamic linking.
26898 link_static_flag=$lt_lt_prog_compiler_static_RC
26900 # Compiler flag to turn off builtin functions.
26901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26903 # Compiler flag to allow reflexive dlopens.
26904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26906 # Compiler flag to generate shared objects directly from archives.
26907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26909 # Compiler flag to generate thread-safe objects.
26910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26912 # Library versioning type.
26913 version_type=$version_type
26915 # Format of library name prefix.
26916 libname_spec=$lt_libname_spec
26918 # List of archive names. First name is the real one, the rest are links.
26919 # The last name is the one that the linker finds with -lNAME.
26920 library_names_spec=$lt_library_names_spec
26922 # The coded name of the library, if different from the real name.
26923 soname_spec=$lt_soname_spec
26925 # Commands used to build and install an old-style archive.
26927 old_archive_cmds=$lt_old_archive_cmds_RC
26928 old_postinstall_cmds=$lt_old_postinstall_cmds
26929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26931 # Create an old-style archive from a shared archive.
26932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26934 # Create a temporary old-style archive to link instead of a shared archive.
26935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26937 # Commands used to build and install a shared archive.
26938 archive_cmds=$lt_archive_cmds_RC
26939 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26940 postinstall_cmds=$lt_postinstall_cmds
26941 postuninstall_cmds=$lt_postuninstall_cmds
26943 # Commands used to build a loadable module (assumed same as above if empty)
26944 module_cmds=$lt_module_cmds_RC
26945 module_expsym_cmds=$lt_module_expsym_cmds_RC
26947 # Commands to strip libraries.
26948 old_striplib=$lt_old_striplib
26949 striplib=$lt_striplib
26951 # Dependencies to place before the objects being linked to create a
26953 predep_objects=$lt_predep_objects_RC
26955 # Dependencies to place after the objects being linked to create a
26957 postdep_objects=$lt_postdep_objects_RC
26959 # Dependencies to place before the objects being linked to create a
26961 predeps=$lt_predeps_RC
26963 # Dependencies to place after the objects being linked to create a
26965 postdeps=$lt_postdeps_RC
26967 # The library search path used internally by the compiler when linking
26968 # a shared library.
26969 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26971 # Method to check whether dependent libraries are shared objects.
26972 deplibs_check_method=$lt_deplibs_check_method
26974 # Command to use when deplibs_check_method == file_magic.
26975 file_magic_cmd=$lt_file_magic_cmd
26977 # Flag that allows shared libraries with undefined symbols to be built.
26978 allow_undefined_flag=$lt_allow_undefined_flag_RC
26980 # Flag that forces no undefined symbols.
26981 no_undefined_flag=$lt_no_undefined_flag_RC
26983 # Commands used to finish a libtool library installation in a directory.
26984 finish_cmds=$lt_finish_cmds
26986 # Same as above, but a single script fragment to be evaled but not shown.
26987 finish_eval=$lt_finish_eval
26989 # Take the output of nm and produce a listing of raw symbols and C names.
26990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26992 # Transform the output of nm in a proper C declaration
26993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26995 # Transform the output of nm in a C name address pair
26996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26998 # This is the shared library runtime path variable.
26999 runpath_var=$runpath_var
27001 # This is the shared library path variable.
27002 shlibpath_var=$shlibpath_var
27004 # Is shlibpath searched before the hard-coded library search path?
27005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27007 # How to hardcode a shared library path into an executable.
27008 hardcode_action=$hardcode_action_RC
27010 # Whether we should hardcode library paths into libraries.
27011 hardcode_into_libs=$hardcode_into_libs
27013 # Flag to hardcode \$libdir into a binary during linking.
27014 # This must work even if \$libdir does not exist.
27015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27017 # If ld is used when linking, flag to hardcode \$libdir into
27018 # a binary during linking. This must work even if \$libdir does
27020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27022 # Whether we need a single -rpath flag with a separated argument.
27023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27026 # resulting binary.
27027 hardcode_direct=$hardcode_direct_RC
27029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27030 # resulting binary.
27031 hardcode_minus_L=$hardcode_minus_L_RC
27033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27034 # the resulting binary.
27035 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27037 # Set to yes if building a shared library automatically hardcodes DIR into the library
27038 # and all subsequent libraries and executables linked against it.
27039 hardcode_automatic=$hardcode_automatic_RC
27041 # Variables whose values should be saved in libtool wrapper scripts and
27042 # restored at relink time.
27043 variables_saved_for_relink="$variables_saved_for_relink"
27045 # Whether libtool must link a program against all its dependency libraries.
27046 link_all_deplibs=$link_all_deplibs_RC
27048 # Compile-time system search path for libraries
27049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27051 # Run-time system search path for libraries
27052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27054 # Fix the shell variable \$srcfile for the compiler.
27055 fix_srcfile_path="$fix_srcfile_path_RC"
27057 # Set to yes if exported symbols are required.
27058 always_export_symbols=$always_export_symbols_RC
27060 # The commands to list exported symbols.
27061 export_symbols_cmds=$lt_export_symbols_cmds_RC
27063 # The commands to extract the exported symbol list from a shared archive.
27064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27066 # Symbols that should not be listed in the preloaded symbols.
27067 exclude_expsyms=$lt_exclude_expsyms_RC
27069 # Symbols that must always be exported.
27070 include_expsyms=$lt_include_expsyms_RC
27072 # ### END LIBTOOL TAG CONFIG: $tagname
27078 # If there is no Makefile yet, we rely on a make rule to execute
27079 # `config.status --recheck' to rerun these tests and create the
27080 # libtool script then.
27081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27082 if test -f "$ltmain_in"; then
27083 test -f Makefile && make "$ltmain"
27089 ac_cpp='$CPP $CPPFLAGS'
27090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27099 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27100 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27101 { (exit 1); exit 1; }; }
27105 # Append the new tag name to the list of available tags.
27106 if test -n "$tagname" ; then
27107 available_tags="$available_tags $tagname"
27113 # Now substitute the updated list of available tags.
27114 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27115 mv "${ofile}T" "$ofile"
27119 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27120 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27121 { (exit 1); exit 1; }; }
27127 # This can be used to rebuild libtool when needed
27128 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27130 # Always use our own libtool.
27131 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27133 # Prevent multiple expansion
27155 if test "$lt_cv_dlopen_self" = "yes" ; then
27157 cat >>confdefs.h <<\_ACEOF
27158 #define CAN_DLOPEN_SELF 1
27164 if test "$WITH_LLVMGCCDIR" = "default" ; then
27165 LLVMGCC="llvm-gcc${EXEEXT}"
27166 LLVMGXX="llvm-g++${EXEEXT}"
27167 LLVMGCCCOMMAND="$LLVMGCC"
27168 LLVMGXXCOMMAND="$LLVMGXX"
27169 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27171 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27173 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27174 set dummy $LLVMGCC; ac_word=$2
27175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27177 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27182 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27186 for as_dir in $PATH
27189 test -z "$as_dir" && as_dir=.
27190 for ac_exec_ext in '' $ac_executable_extensions; do
27191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27192 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27203 LLVMGCC=$ac_cv_path_LLVMGCC
27204 if test -n "$LLVMGCC"; then
27205 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27206 echo "${ECHO_T}$LLVMGCC" >&6; }
27208 { echo "$as_me:$LINENO: result: no" >&5
27209 echo "${ECHO_T}no" >&6; }
27213 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27214 set dummy $LLVMGXX; ac_word=$2
27215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27217 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27222 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27226 for as_dir in $PATH
27229 test -z "$as_dir" && as_dir=.
27230 for ac_exec_ext in '' $ac_executable_extensions; do
27231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27232 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27243 LLVMGXX=$ac_cv_path_LLVMGXX
27244 if test -n "$LLVMGXX"; then
27245 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27246 echo "${ECHO_T}$LLVMGXX" >&6; }
27248 { echo "$as_me:$LINENO: result: no" >&5
27249 echo "${ECHO_T}no" >&6; }
27254 if test -z "$LLVMGCC"; then
27255 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27256 LLVMGCCCOMMAND="$LLVMGCC"
27258 if test -z "$LLVMGXX"; then
27259 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27260 LLVMGXXCOMMAND="$LLVMGXX"
27267 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27269 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27274 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27275 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27288 if test "$GCC" != "yes" && test "$ICC" != "yes"
27290 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27291 echo "$as_me: error: gcc|icc required but not found" >&2;}
27292 { (exit 1); exit 1; }; }
27295 if test "$GXX" != "yes" && test "$IXX" != "yes"
27297 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27298 echo "$as_me: error: g++|icc required but not found" >&2;}
27299 { (exit 1); exit 1; }; }
27302 if test "$GCC" = "yes"
27304 cat >conftest.$ac_ext <<_ACEOF
27305 #if !defined(__GNUC__) || __GNUC__ < 3
27306 #error Unsupported GCC version
27310 rm -f conftest.$ac_objext
27311 if { (ac_try="$ac_compile"
27312 case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317 (eval "$ac_compile") 2>conftest.er1
27319 grep -v '^ *+' conftest.er1 >conftest.err
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
27324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27325 { (case "(($ac_try" in
27326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327 *) ac_try_echo=$ac_try;;
27329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330 (eval "$ac_try") 2>&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; } &&
27334 { ac_try='test -s conftest.$ac_objext'
27335 { (case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_try") 2>&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; }; then
27346 echo "$as_me: failed program was:" >&5
27347 sed 's/^/| /' conftest.$ac_ext >&5
27349 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27350 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27351 { (exit 1); exit 1; }; }
27354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27357 if test -z "$llvm_cv_gnu_make_command"
27359 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27360 echo "$as_me: error: GNU Make required but not found" >&2;}
27361 { (exit 1); exit 1; }; }
27364 { echo "$as_me:$LINENO: result: ok" >&5
27365 echo "${ECHO_T}ok" >&6; }
27369 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27370 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27371 if test "${ac_cv_lib_m_sin+set}" = set; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27374 ac_check_lib_save_LIBS=$LIBS
27376 cat >conftest.$ac_ext <<_ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h. */
27383 /* Override any GCC internal prototype to avoid an error.
27384 Use char because int might match the return type of a GCC
27385 builtin and then its argument prototype would still apply. */
27398 rm -f conftest.$ac_objext conftest$ac_exeext
27399 if { (ac_try="$ac_link"
27400 case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_link") 2>conftest.er1
27407 grep -v '^ *+' conftest.er1 >conftest.err
27409 cat conftest.err >&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); } &&
27412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_try") 2>&5
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest$ac_exeext'
27423 { (case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_try") 2>&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; }; then
27432 ac_cv_lib_m_sin=yes
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27440 rm -f core conftest.err conftest.$ac_objext \
27441 conftest$ac_exeext conftest.$ac_ext
27442 LIBS=$ac_check_lib_save_LIBS
27444 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27445 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27446 if test $ac_cv_lib_m_sin = yes; then
27447 cat >>confdefs.h <<_ACEOF
27448 #define HAVE_LIBM 1
27455 if test "$llvm_cv_os_type" = "MingW" ; then
27457 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27458 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27459 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27460 echo $ECHO_N "(cached) $ECHO_C" >&6
27462 ac_check_lib_save_LIBS=$LIBS
27463 LIBS="-limagehlp $LIBS"
27464 cat >conftest.$ac_ext <<_ACEOF
27467 cat confdefs.h >>conftest.$ac_ext
27468 cat >>conftest.$ac_ext <<_ACEOF
27469 /* end confdefs.h. */
27480 rm -f conftest.$ac_objext conftest$ac_exeext
27481 if { (ac_try="$ac_link"
27482 case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_link") 2>conftest.er1
27489 grep -v '^ *+' conftest.er1 >conftest.err
27491 cat conftest.err >&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); } &&
27494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27495 { (case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_try") 2>&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; } &&
27504 { ac_try='test -s conftest$ac_exeext'
27505 { (case "(($ac_try" in
27506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507 *) ac_try_echo=$ac_try;;
27509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510 (eval "$ac_try") 2>&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; }; then
27514 ac_cv_lib_imagehlp_main=yes
27516 echo "$as_me: failed program was:" >&5
27517 sed 's/^/| /' conftest.$ac_ext >&5
27519 ac_cv_lib_imagehlp_main=no
27522 rm -f core conftest.err conftest.$ac_objext \
27523 conftest$ac_exeext conftest.$ac_ext
27524 LIBS=$ac_check_lib_save_LIBS
27526 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27527 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27528 if test $ac_cv_lib_imagehlp_main = yes; then
27529 cat >>confdefs.h <<_ACEOF
27530 #define HAVE_LIBIMAGEHLP 1
27533 LIBS="-limagehlp $LIBS"
27538 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27539 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27540 if test "${ac_cv_lib_psapi_main+set}" = set; then
27541 echo $ECHO_N "(cached) $ECHO_C" >&6
27543 ac_check_lib_save_LIBS=$LIBS
27544 LIBS="-lpsapi $LIBS"
27545 cat >conftest.$ac_ext <<_ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27561 rm -f conftest.$ac_objext conftest$ac_exeext
27562 if { (ac_try="$ac_link"
27563 case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_link") 2>conftest.er1
27570 grep -v '^ *+' conftest.er1 >conftest.err
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
27595 ac_cv_lib_psapi_main=yes
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 ac_cv_lib_psapi_main=no
27603 rm -f core conftest.err conftest.$ac_objext \
27604 conftest$ac_exeext conftest.$ac_ext
27605 LIBS=$ac_check_lib_save_LIBS
27607 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27608 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27609 if test $ac_cv_lib_psapi_main = yes; then
27610 cat >>confdefs.h <<_ACEOF
27611 #define HAVE_LIBPSAPI 1
27614 LIBS="-lpsapi $LIBS"
27620 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27621 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27622 if test "${ac_cv_search_dlopen+set}" = set; then
27623 echo $ECHO_N "(cached) $ECHO_C" >&6
27625 ac_func_search_save_LIBS=$LIBS
27626 cat >conftest.$ac_ext <<_ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h. */
27633 /* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27648 for ac_lib in '' dl; do
27649 if test -z "$ac_lib"; then
27650 ac_res="none required"
27653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27655 rm -f conftest.$ac_objext conftest$ac_exeext
27656 if { (ac_try="$ac_link"
27657 case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_link") 2>conftest.er1
27664 grep -v '^ *+' conftest.er1 >conftest.err
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } &&
27669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27670 { (case "(($ac_try" in
27671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672 *) ac_try_echo=$ac_try;;
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_try") 2>&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; } &&
27679 { ac_try='test -s conftest$ac_exeext'
27680 { (case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27685 (eval "$ac_try") 2>&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; }; then
27689 ac_cv_search_dlopen=$ac_res
27691 echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27697 rm -f core conftest.err conftest.$ac_objext \
27699 if test "${ac_cv_search_dlopen+set}" = set; then
27703 if test "${ac_cv_search_dlopen+set}" = set; then
27706 ac_cv_search_dlopen=no
27708 rm conftest.$ac_ext
27709 LIBS=$ac_func_search_save_LIBS
27711 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27712 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27713 ac_res=$ac_cv_search_dlopen
27714 if test "$ac_res" != no; then
27715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27717 cat >>confdefs.h <<\_ACEOF
27718 #define HAVE_DLOPEN 1
27722 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27723 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27727 if test "$llvm_cv_enable_libffi" = "yes" ; then
27728 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27729 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27730 if test "${ac_cv_search_ffi_call+set}" = set; then
27731 echo $ECHO_N "(cached) $ECHO_C" >&6
27733 ac_func_search_save_LIBS=$LIBS
27734 cat >conftest.$ac_ext <<_ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h. */
27741 /* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27751 return ffi_call ();
27756 for ac_lib in '' ffi; do
27757 if test -z "$ac_lib"; then
27758 ac_res="none required"
27761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27763 rm -f conftest.$ac_objext conftest$ac_exeext
27764 if { (ac_try="$ac_link"
27765 case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_link") 2>conftest.er1
27772 grep -v '^ *+' conftest.er1 >conftest.err
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } &&
27777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27778 { (case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_try") 2>&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest$ac_exeext'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
27797 ac_cv_search_ffi_call=$ac_res
27799 echo "$as_me: failed program was:" >&5
27800 sed 's/^/| /' conftest.$ac_ext >&5
27805 rm -f core conftest.err conftest.$ac_objext \
27807 if test "${ac_cv_search_ffi_call+set}" = set; then
27811 if test "${ac_cv_search_ffi_call+set}" = set; then
27814 ac_cv_search_ffi_call=no
27816 rm conftest.$ac_ext
27817 LIBS=$ac_func_search_save_LIBS
27819 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27820 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27821 ac_res=$ac_cv_search_ffi_call
27822 if test "$ac_res" != no; then
27823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27825 cat >>confdefs.h <<\_ACEOF
27826 #define HAVE_FFI_CALL 1
27830 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27831 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27836 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27837 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27838 if test "${ac_cv_search_mallinfo+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. */
27859 return mallinfo ();
27864 for ac_lib in '' malloc; 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_mallinfo=$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_mallinfo+set}" = set; then
27919 if test "${ac_cv_search_mallinfo+set}" = set; then
27922 ac_cv_search_mallinfo=no
27924 rm conftest.$ac_ext
27925 LIBS=$ac_func_search_save_LIBS
27927 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27928 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27929 ac_res=$ac_cv_search_mallinfo
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_MALLINFO 1
27940 if test "$ENABLE_THREADS" -eq 1 ; then
27942 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27943 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27944 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27945 echo $ECHO_N "(cached) $ECHO_C" >&6
27947 ac_check_lib_save_LIBS=$LIBS
27948 LIBS="-lpthread $LIBS"
27949 cat >conftest.$ac_ext <<_ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h. */
27956 /* Override any GCC internal prototype to avoid an error.
27957 Use char because int might match the return type of a GCC
27958 builtin and then its argument prototype would still apply. */
27962 char pthread_mutex_init ();
27966 return pthread_mutex_init ();
27971 rm -f conftest.$ac_objext conftest$ac_exeext
27972 if { (ac_try="$ac_link"
27973 case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_link") 2>conftest.er1
27980 grep -v '^ *+' conftest.er1 >conftest.err
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_try") 2>&5
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; } &&
27995 { ac_try='test -s conftest$ac_exeext'
27996 { (case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_try") 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 ac_cv_lib_pthread_pthread_mutex_init=yes
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 ac_cv_lib_pthread_pthread_mutex_init=no
28013 rm -f core conftest.err conftest.$ac_objext \
28014 conftest$ac_exeext conftest.$ac_ext
28015 LIBS=$ac_check_lib_save_LIBS
28017 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28018 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28019 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28020 cat >>confdefs.h <<_ACEOF
28021 #define HAVE_LIBPTHREAD 1
28024 LIBS="-lpthread $LIBS"
28028 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28029 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28030 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28033 ac_func_search_save_LIBS=$LIBS
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28041 /* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28047 char pthread_mutex_lock ();
28051 return pthread_mutex_lock ();
28056 for ac_lib in '' pthread; do
28057 if test -z "$ac_lib"; then
28058 ac_res="none required"
28061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28063 rm -f conftest.$ac_objext conftest$ac_exeext
28064 if { (ac_try="$ac_link"
28065 case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_link") 2>conftest.er1
28072 grep -v '^ *+' conftest.er1 >conftest.err
28074 cat conftest.err >&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } &&
28077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28078 { (case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_try") 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest$ac_exeext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_try") 2>&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
28097 ac_cv_search_pthread_mutex_lock=$ac_res
28099 echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28105 rm -f core conftest.err conftest.$ac_objext \
28107 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28111 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28114 ac_cv_search_pthread_mutex_lock=no
28116 rm conftest.$ac_ext
28117 LIBS=$ac_func_search_save_LIBS
28119 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28120 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28121 ac_res=$ac_cv_search_pthread_mutex_lock
28122 if test "$ac_res" != no; then
28123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28125 cat >>confdefs.h <<\_ACEOF
28126 #define HAVE_PTHREAD_MUTEX_LOCK 1
28131 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28132 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28133 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
28136 ac_func_search_save_LIBS=$LIBS
28137 cat >conftest.$ac_ext <<_ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28144 /* Override any GCC internal prototype to avoid an error.
28145 Use char because int might match the return type of a GCC
28146 builtin and then its argument prototype would still apply. */
28150 char pthread_rwlock_init ();
28154 return pthread_rwlock_init ();
28159 for ac_lib in '' pthread; do
28160 if test -z "$ac_lib"; then
28161 ac_res="none required"
28164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28166 rm -f conftest.$ac_objext conftest$ac_exeext
28167 if { (ac_try="$ac_link"
28168 case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_link") 2>conftest.er1
28175 grep -v '^ *+' conftest.er1 >conftest.err
28177 cat conftest.err >&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); } &&
28180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28181 { (case "(($ac_try" in
28182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183 *) ac_try_echo=$ac_try;;
28185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186 (eval "$ac_try") 2>&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; } &&
28190 { ac_try='test -s conftest$ac_exeext'
28191 { (case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_try") 2>&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
28200 ac_cv_search_pthread_rwlock_init=$ac_res
28202 echo "$as_me: failed program was:" >&5
28203 sed 's/^/| /' conftest.$ac_ext >&5
28208 rm -f core conftest.err conftest.$ac_objext \
28210 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28214 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28217 ac_cv_search_pthread_rwlock_init=no
28219 rm conftest.$ac_ext
28220 LIBS=$ac_func_search_save_LIBS
28222 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28223 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28224 ac_res=$ac_cv_search_pthread_rwlock_init
28225 if test "$ac_res" != no; then
28226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28228 cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_PTHREAD_RWLOCK_INIT 1
28234 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28235 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28236 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28239 ac_func_search_save_LIBS=$LIBS
28240 cat >conftest.$ac_ext <<_ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28247 /* Override any GCC internal prototype to avoid an error.
28248 Use char because int might match the return type of a GCC
28249 builtin and then its argument prototype would still apply. */
28253 char pthread_getspecific ();
28257 return pthread_getspecific ();
28262 for ac_lib in '' pthread; do
28263 if test -z "$ac_lib"; then
28264 ac_res="none required"
28267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28269 rm -f conftest.$ac_objext conftest$ac_exeext
28270 if { (ac_try="$ac_link"
28271 case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_link") 2>conftest.er1
28278 grep -v '^ *+' conftest.er1 >conftest.err
28280 cat conftest.err >&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } &&
28283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28284 { (case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28289 (eval "$ac_try") 2>&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
28293 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28303 ac_cv_search_pthread_getspecific=$ac_res
28305 echo "$as_me: failed program was:" >&5
28306 sed 's/^/| /' conftest.$ac_ext >&5
28311 rm -f core conftest.err conftest.$ac_objext \
28313 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28317 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28320 ac_cv_search_pthread_getspecific=no
28322 rm conftest.$ac_ext
28323 LIBS=$ac_func_search_save_LIBS
28325 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28326 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28327 ac_res=$ac_cv_search_pthread_getspecific
28328 if test "$ac_res" != no; then
28329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28331 cat >>confdefs.h <<\_ACEOF
28332 #define HAVE_PTHREAD_GETSPECIFIC 1
28340 # Check whether --with-udis86 was given.
28341 if test "${with_udis86+set}" = set; then
28342 withval=$with_udis86;
28347 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28350 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28351 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28352 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28355 ac_check_lib_save_LIBS=$LIBS
28356 LIBS="-ludis86 $LIBS"
28357 cat >conftest.$ac_ext <<_ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h. */
28364 /* Override any GCC internal prototype to avoid an error.
28365 Use char because int might match the return type of a GCC
28366 builtin and then its argument prototype would still apply. */
28379 rm -f conftest.$ac_objext conftest$ac_exeext
28380 if { (ac_try="$ac_link"
28381 case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_link") 2>conftest.er1
28388 grep -v '^ *+' conftest.er1 >conftest.err
28390 cat conftest.err >&5
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); } &&
28393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28394 { (case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_try") 2>&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; } &&
28403 { ac_try='test -s conftest$ac_exeext'
28404 { (case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_try") 2>&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; }; then
28413 ac_cv_lib_udis86_ud_init=yes
28415 echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28418 ac_cv_lib_udis86_ud_init=no
28421 rm -f core conftest.err conftest.$ac_objext \
28422 conftest$ac_exeext conftest.$ac_ext
28423 LIBS=$ac_check_lib_save_LIBS
28425 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28426 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28427 if test $ac_cv_lib_udis86_ud_init = yes; then
28428 cat >>confdefs.h <<_ACEOF
28429 #define HAVE_LIBUDIS86 1
28432 LIBS="-ludis86 $LIBS"
28436 echo "Error! You need to have libudis86 around."
28448 cat >>confdefs.h <<_ACEOF
28449 #define USE_UDIS86 $USE_UDIS86
28454 # Check whether --with-oprofile was given.
28455 if test "${with_oprofile+set}" = set; then
28456 withval=$with_oprofile;
28460 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28461 *) llvm_cv_oppath="${withval}/lib/oprofile"
28462 CPPFLAGS="-I${withval}/include";;
28464 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28465 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28466 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28467 if test "${ac_cv_search_op_open_agent+set}" = set; then
28468 echo $ECHO_N "(cached) $ECHO_C" >&6
28470 ac_func_search_save_LIBS=$LIBS
28471 cat >conftest.$ac_ext <<_ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h. */
28478 /* Override any GCC internal prototype to avoid an error.
28479 Use char because int might match the return type of a GCC
28480 builtin and then its argument prototype would still apply. */
28484 char op_open_agent ();
28488 return op_open_agent ();
28493 for ac_lib in '' opagent; do
28494 if test -z "$ac_lib"; then
28495 ac_res="none required"
28498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28500 rm -f conftest.$ac_objext conftest$ac_exeext
28501 if { (ac_try="$ac_link"
28502 case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_link") 2>conftest.er1
28509 grep -v '^ *+' conftest.er1 >conftest.err
28511 cat conftest.err >&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } &&
28514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28515 { (case "(($ac_try" in
28516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517 *) ac_try_echo=$ac_try;;
28519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520 (eval "$ac_try") 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest$ac_exeext'
28525 { (case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530 (eval "$ac_try") 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 ac_cv_search_op_open_agent=$ac_res
28536 echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28542 rm -f core conftest.err conftest.$ac_objext \
28544 if test "${ac_cv_search_op_open_agent+set}" = set; then
28548 if test "${ac_cv_search_op_open_agent+set}" = set; then
28551 ac_cv_search_op_open_agent=no
28553 rm conftest.$ac_ext
28554 LIBS=$ac_func_search_save_LIBS
28556 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28557 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28558 ac_res=$ac_cv_search_op_open_agent
28559 if test "$ac_res" != no; then
28560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28564 echo "Error! You need to have libopagent around."
28569 if test "${ac_cv_header_opagent_h+set}" = set; then
28570 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28571 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28572 if test "${ac_cv_header_opagent_h+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28575 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28576 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28578 # Is the header compilable?
28579 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28580 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28581 cat >conftest.$ac_ext <<_ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h. */
28587 $ac_includes_default
28588 #include <opagent.h>
28590 rm -f conftest.$ac_objext
28591 if { (ac_try="$ac_compile"
28592 case "(($ac_try" in
28593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594 *) ac_try_echo=$ac_try;;
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597 (eval "$ac_compile") 2>conftest.er1
28599 grep -v '^ *+' conftest.er1 >conftest.err
28601 cat conftest.err >&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } &&
28604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28605 { (case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_try") 2>&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; } &&
28614 { ac_try='test -s conftest.$ac_objext'
28615 { (case "(($ac_try" in
28616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617 *) ac_try_echo=$ac_try;;
28619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28620 (eval "$ac_try") 2>&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; }; then
28624 ac_header_compiler=yes
28626 echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28629 ac_header_compiler=no
28632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28634 echo "${ECHO_T}$ac_header_compiler" >&6; }
28636 # Is the header present?
28637 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28638 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28639 cat >conftest.$ac_ext <<_ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h. */
28645 #include <opagent.h>
28647 if { (ac_try="$ac_cpp conftest.$ac_ext"
28648 case "(($ac_try" in
28649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650 *) ac_try_echo=$ac_try;;
28652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28655 grep -v '^ *+' conftest.er1 >conftest.err
28657 cat conftest.err >&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } >/dev/null; then
28660 if test -s conftest.err; then
28661 ac_cpp_err=$ac_c_preproc_warn_flag
28662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28669 if test -z "$ac_cpp_err"; then
28670 ac_header_preproc=yes
28672 echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28675 ac_header_preproc=no
28678 rm -f conftest.err conftest.$ac_ext
28679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28680 echo "${ECHO_T}$ac_header_preproc" >&6; }
28682 # So? What about this header?
28683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28685 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28686 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28687 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28688 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28689 ac_header_preproc=yes
28692 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28693 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28694 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28695 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28696 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28697 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28698 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28699 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28700 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28701 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28702 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28703 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28705 ## ----------------------------------- ##
28706 ## Report this to llvmbugs@cs.uiuc.edu ##
28707 ## ----------------------------------- ##
28709 ) | sed "s/^/$as_me: WARNING: /" >&2
28712 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28713 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28714 if test "${ac_cv_header_opagent_h+set}" = set; then
28715 echo $ECHO_N "(cached) $ECHO_C" >&6
28717 ac_cv_header_opagent_h=$ac_header_preproc
28719 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28720 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28723 if test $ac_cv_header_opagent_h = yes; then
28727 echo "Error! You need to have opagent.h around."
28736 llvm_cv_old_LIBS="$LIBS"
28737 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28738 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28739 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28740 if test "${ac_cv_search_op_open_agent+set}" = set; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
28743 ac_func_search_save_LIBS=$LIBS
28744 cat >conftest.$ac_ext <<_ACEOF
28747 cat confdefs.h >>conftest.$ac_ext
28748 cat >>conftest.$ac_ext <<_ACEOF
28749 /* end confdefs.h. */
28751 /* Override any GCC internal prototype to avoid an error.
28752 Use char because int might match the return type of a GCC
28753 builtin and then its argument prototype would still apply. */
28757 char op_open_agent ();
28761 return op_open_agent ();
28766 for ac_lib in '' opagent; do
28767 if test -z "$ac_lib"; then
28768 ac_res="none required"
28771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28773 rm -f conftest.$ac_objext conftest$ac_exeext
28774 if { (ac_try="$ac_link"
28775 case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_link") 2>conftest.er1
28782 grep -v '^ *+' conftest.er1 >conftest.err
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } &&
28787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28788 { (case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_try") 2>&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; } &&
28797 { ac_try='test -s conftest$ac_exeext'
28798 { (case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_try") 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 ac_cv_search_op_open_agent=$ac_res
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28815 rm -f core conftest.err conftest.$ac_objext \
28817 if test "${ac_cv_search_op_open_agent+set}" = set; then
28821 if test "${ac_cv_search_op_open_agent+set}" = set; then
28824 ac_cv_search_op_open_agent=no
28826 rm conftest.$ac_ext
28827 LIBS=$ac_func_search_save_LIBS
28829 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28830 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28831 ac_res=$ac_cv_search_op_open_agent
28832 if test "$ac_res" != no; then
28833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28837 LIBS="$llvm_cv_old_LIBS"
28842 if test "${ac_cv_header_opagent_h+set}" = set; then
28843 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28844 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28845 if test "${ac_cv_header_opagent_h+set}" = set; then
28846 echo $ECHO_N "(cached) $ECHO_C" >&6
28848 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28849 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28851 # Is the header compilable?
28852 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28853 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28854 cat >conftest.$ac_ext <<_ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h. */
28860 $ac_includes_default
28861 #include <opagent.h>
28863 rm -f conftest.$ac_objext
28864 if { (ac_try="$ac_compile"
28865 case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_compile") 2>conftest.er1
28872 grep -v '^ *+' conftest.er1 >conftest.err
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
28877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28878 { (case "(($ac_try" in
28879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880 *) ac_try_echo=$ac_try;;
28882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883 (eval "$ac_try") 2>&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
28888 { (case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893 (eval "$ac_try") 2>&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; }; then
28897 ac_header_compiler=yes
28899 echo "$as_me: failed program was:" >&5
28900 sed 's/^/| /' conftest.$ac_ext >&5
28902 ac_header_compiler=no
28905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28907 echo "${ECHO_T}$ac_header_compiler" >&6; }
28909 # Is the header present?
28910 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28911 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28918 #include <opagent.h>
28920 if { (ac_try="$ac_cpp conftest.$ac_ext"
28921 case "(($ac_try" in
28922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923 *) ac_try_echo=$ac_try;;
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28928 grep -v '^ *+' conftest.er1 >conftest.err
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } >/dev/null; then
28933 if test -s conftest.err; then
28934 ac_cpp_err=$ac_c_preproc_warn_flag
28935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28942 if test -z "$ac_cpp_err"; then
28943 ac_header_preproc=yes
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 ac_header_preproc=no
28951 rm -f conftest.err conftest.$ac_ext
28952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28953 echo "${ECHO_T}$ac_header_preproc" >&6; }
28955 # So? What about this header?
28956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28958 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28959 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28961 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28962 ac_header_preproc=yes
28965 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28966 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28968 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28970 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28972 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28974 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28976 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28978 ## ----------------------------------- ##
28979 ## Report this to llvmbugs@cs.uiuc.edu ##
28980 ## ----------------------------------- ##
28982 ) | sed "s/^/$as_me: WARNING: /" >&2
28985 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28986 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28987 if test "${ac_cv_header_opagent_h+set}" = set; then
28988 echo $ECHO_N "(cached) $ECHO_C" >&6
28990 ac_cv_header_opagent_h=$ac_header_preproc
28992 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28993 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28996 if test $ac_cv_header_opagent_h = yes; then
29000 LIBS="$llvm_cv_old_LIBS"
29011 cat >>confdefs.h <<_ACEOF
29012 #define USE_OPROFILE $USE_OPROFILE
29022 ac_header_dirent=no
29023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29024 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29025 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29026 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 cat >conftest.$ac_ext <<_ACEOF
29033 cat confdefs.h >>conftest.$ac_ext
29034 cat >>conftest.$ac_ext <<_ACEOF
29035 /* end confdefs.h. */
29036 #include <sys/types.h>
29048 rm -f conftest.$ac_objext
29049 if { (ac_try="$ac_compile"
29050 case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_compile") 2>conftest.er1
29057 grep -v '^ *+' conftest.er1 >conftest.err
29059 cat conftest.err >&5
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); } &&
29062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29063 { (case "(($ac_try" in
29064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065 *) ac_try_echo=$ac_try;;
29067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068 (eval "$ac_try") 2>&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; } &&
29072 { ac_try='test -s conftest.$ac_objext'
29073 { (case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_try") 2>&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 eval "$as_ac_Header=yes"
29084 echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.$ac_ext >&5
29087 eval "$as_ac_Header=no"
29090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29092 ac_res=`eval echo '${'$as_ac_Header'}'`
29093 { echo "$as_me:$LINENO: result: $ac_res" >&5
29094 echo "${ECHO_T}$ac_res" >&6; }
29095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29096 cat >>confdefs.h <<_ACEOF
29097 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29100 ac_header_dirent=$ac_hdr; break
29104 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29105 if test $ac_header_dirent = dirent.h; then
29106 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29107 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29108 if test "${ac_cv_search_opendir+set}" = set; then
29109 echo $ECHO_N "(cached) $ECHO_C" >&6
29111 ac_func_search_save_LIBS=$LIBS
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29119 /* Override any GCC internal prototype to avoid an error.
29120 Use char because int might match the return type of a GCC
29121 builtin and then its argument prototype would still apply. */
29134 for ac_lib in '' dir; do
29135 if test -z "$ac_lib"; then
29136 ac_res="none required"
29139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29141 rm -f conftest.$ac_objext conftest$ac_exeext
29142 if { (ac_try="$ac_link"
29143 case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_link") 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
29155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29156 { (case "(($ac_try" in
29157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29158 *) ac_try_echo=$ac_try;;
29160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29161 (eval "$ac_try") 2>&5
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; } &&
29165 { ac_try='test -s conftest$ac_exeext'
29166 { (case "(($ac_try" in
29167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168 *) ac_try_echo=$ac_try;;
29170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171 (eval "$ac_try") 2>&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); }; }; then
29175 ac_cv_search_opendir=$ac_res
29177 echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29183 rm -f core conftest.err conftest.$ac_objext \
29185 if test "${ac_cv_search_opendir+set}" = set; then
29189 if test "${ac_cv_search_opendir+set}" = set; then
29192 ac_cv_search_opendir=no
29194 rm conftest.$ac_ext
29195 LIBS=$ac_func_search_save_LIBS
29197 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29198 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29199 ac_res=$ac_cv_search_opendir
29200 if test "$ac_res" != no; then
29201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29206 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29207 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29208 if test "${ac_cv_search_opendir+set}" = set; then
29209 echo $ECHO_N "(cached) $ECHO_C" >&6
29211 ac_func_search_save_LIBS=$LIBS
29212 cat >conftest.$ac_ext <<_ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h. */
29219 /* Override any GCC internal prototype to avoid an error.
29220 Use char because int might match the return type of a GCC
29221 builtin and then its argument prototype would still apply. */
29234 for ac_lib in '' x; do
29235 if test -z "$ac_lib"; then
29236 ac_res="none required"
29239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242 if { (ac_try="$ac_link"
29243 case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_link") 2>conftest.er1
29250 grep -v '^ *+' conftest.er1 >conftest.err
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
29255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256 { (case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_try") 2>&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest$ac_exeext'
29266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_cv_search_opendir=$ac_res
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29283 rm -f core conftest.err conftest.$ac_objext \
29285 if test "${ac_cv_search_opendir+set}" = set; then
29289 if test "${ac_cv_search_opendir+set}" = set; then
29292 ac_cv_search_opendir=no
29294 rm conftest.$ac_ext
29295 LIBS=$ac_func_search_save_LIBS
29297 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29298 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29299 ac_res=$ac_cv_search_opendir
29300 if test "$ac_res" != no; then
29301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29307 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29308 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29309 if test "${ac_cv_header_mmap_anon+set}" = set; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29313 ac_cpp='$CPP $CPPFLAGS'
29314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29318 cat >conftest.$ac_ext <<_ACEOF
29321 cat confdefs.h >>conftest.$ac_ext
29322 cat >>conftest.$ac_ext <<_ACEOF
29323 /* end confdefs.h. */
29324 #include <sys/mman.h>
29325 #include <unistd.h>
29330 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29335 rm -f conftest.$ac_objext
29336 if { (ac_try="$ac_compile"
29337 case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_compile") 2>conftest.er1
29344 grep -v '^ *+' conftest.er1 >conftest.err
29346 cat conftest.err >&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } &&
29349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29350 { (case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_try") 2>&5
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest.$ac_objext'
29360 { (case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_try") 2>&5
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; }; then
29369 ac_cv_header_mmap_anon=yes
29371 echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29374 ac_cv_header_mmap_anon=no
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29379 ac_cpp='$CPP $CPPFLAGS'
29380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29386 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29387 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29388 if test "$ac_cv_header_mmap_anon" = yes; then
29390 cat >>confdefs.h <<\_ACEOF
29391 #define HAVE_MMAP_ANONYMOUS 1
29396 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29397 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29398 if test "${ac_cv_header_stat_broken+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 cat >conftest.$ac_ext <<_ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h. */
29407 #include <sys/types.h>
29408 #include <sys/stat.h>
29410 #if defined S_ISBLK && defined S_IFDIR
29411 # if S_ISBLK (S_IFDIR)
29416 #if defined S_ISBLK && defined S_IFCHR
29417 # if S_ISBLK (S_IFCHR)
29422 #if defined S_ISLNK && defined S_IFREG
29423 # if S_ISLNK (S_IFREG)
29428 #if defined S_ISSOCK && defined S_IFREG
29429 # if S_ISSOCK (S_IFREG)
29435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29436 $EGREP "You lose" >/dev/null 2>&1; then
29437 ac_cv_header_stat_broken=yes
29439 ac_cv_header_stat_broken=no
29444 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29445 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29446 if test $ac_cv_header_stat_broken = yes; then
29448 cat >>confdefs.h <<\_ACEOF
29449 #define STAT_MACROS_BROKEN 1
29454 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29455 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29456 if test "${ac_cv_header_stdc+set}" = set; then
29457 echo $ECHO_N "(cached) $ECHO_C" >&6
29459 cat >conftest.$ac_ext <<_ACEOF
29462 cat confdefs.h >>conftest.$ac_ext
29463 cat >>conftest.$ac_ext <<_ACEOF
29464 /* end confdefs.h. */
29465 #include <stdlib.h>
29466 #include <stdarg.h>
29467 #include <string.h>
29478 rm -f conftest.$ac_objext
29479 if { (ac_try="$ac_compile"
29480 case "(($ac_try" in
29481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482 *) ac_try_echo=$ac_try;;
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_compile") 2>conftest.er1
29487 grep -v '^ *+' conftest.er1 >conftest.err
29489 cat conftest.err >&5
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); } &&
29492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29493 { (case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_try") 2>&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; } &&
29502 { ac_try='test -s conftest.$ac_objext'
29503 { (case "(($ac_try" in
29504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505 *) ac_try_echo=$ac_try;;
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508 (eval "$ac_try") 2>&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; }; then
29512 ac_cv_header_stdc=yes
29514 echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29517 ac_cv_header_stdc=no
29520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29522 if test $ac_cv_header_stdc = yes; then
29523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29524 cat >conftest.$ac_ext <<_ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h. */
29530 #include <string.h>
29533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29534 $EGREP "memchr" >/dev/null 2>&1; then
29537 ac_cv_header_stdc=no
29543 if test $ac_cv_header_stdc = yes; then
29544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29545 cat >conftest.$ac_ext <<_ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h. */
29551 #include <stdlib.h>
29554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29555 $EGREP "free" >/dev/null 2>&1; then
29558 ac_cv_header_stdc=no
29564 if test $ac_cv_header_stdc = yes; then
29565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29566 if test "$cross_compiling" = yes; then
29569 cat >conftest.$ac_ext <<_ACEOF
29572 cat confdefs.h >>conftest.$ac_ext
29573 cat >>conftest.$ac_ext <<_ACEOF
29574 /* end confdefs.h. */
29576 #include <stdlib.h>
29577 #if ((' ' & 0x0FF) == 0x020)
29578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29581 # define ISLOWER(c) \
29582 (('a' <= (c) && (c) <= 'i') \
29583 || ('j' <= (c) && (c) <= 'r') \
29584 || ('s' <= (c) && (c) <= 'z'))
29585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29593 for (i = 0; i < 256; i++)
29594 if (XOR (islower (i), ISLOWER (i))
29595 || toupper (i) != TOUPPER (i))
29600 rm -f conftest$ac_exeext
29601 if { (ac_try="$ac_link"
29602 case "(($ac_try" in
29603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604 *) ac_try_echo=$ac_try;;
29606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29607 (eval "$ac_link") 2>&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29611 { (case "(($ac_try" in
29612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613 *) ac_try_echo=$ac_try;;
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616 (eval "$ac_try") 2>&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; }; then
29622 echo "$as_me: program exited with status $ac_status" >&5
29623 echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29626 ( exit $ac_status )
29627 ac_cv_header_stdc=no
29629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29635 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29636 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29637 if test $ac_cv_header_stdc = yes; then
29639 cat >>confdefs.h <<\_ACEOF
29640 #define STDC_HEADERS 1
29645 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29646 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29647 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 cat >conftest.$ac_ext <<_ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h. */
29656 #include <sys/types.h>
29657 #include <sys/wait.h>
29658 #ifndef WEXITSTATUS
29659 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29662 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29670 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29675 rm -f conftest.$ac_objext
29676 if { (ac_try="$ac_compile"
29677 case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_compile") 2>conftest.er1
29684 grep -v '^ *+' conftest.er1 >conftest.err
29686 cat conftest.err >&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
29689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29690 { (case "(($ac_try" in
29691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692 *) ac_try_echo=$ac_try;;
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695 (eval "$ac_try") 2>&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; } &&
29699 { ac_try='test -s conftest.$ac_objext'
29700 { (case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_try") 2>&5
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; }; then
29709 ac_cv_header_sys_wait_h=yes
29711 echo "$as_me: failed program was:" >&5
29712 sed 's/^/| /' conftest.$ac_ext >&5
29714 ac_cv_header_sys_wait_h=no
29717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29719 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29720 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29721 if test $ac_cv_header_sys_wait_h = yes; then
29723 cat >>confdefs.h <<\_ACEOF
29724 #define HAVE_SYS_WAIT_H 1
29729 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29731 if test "${ac_cv_header_time+set}" = set; then
29732 echo $ECHO_N "(cached) $ECHO_C" >&6
29734 cat >conftest.$ac_ext <<_ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29740 #include <sys/types.h>
29741 #include <sys/time.h>
29747 if ((struct tm *) 0)
29753 rm -f conftest.$ac_objext
29754 if { (ac_try="$ac_compile"
29755 case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_compile") 2>conftest.er1
29762 grep -v '^ *+' conftest.er1 >conftest.err
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); } &&
29767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768 { (case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_try") 2>&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; } &&
29777 { ac_try='test -s conftest.$ac_objext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_cv_header_time=yes
29789 echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29792 ac_cv_header_time=no
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29797 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29798 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29799 if test $ac_cv_header_time = yes; then
29801 cat >>confdefs.h <<\_ACEOF
29802 #define TIME_WITH_SYS_TIME 1
29814 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
29823 ac_res=`eval echo '${'$as_ac_Header'}'`
29824 { echo "$as_me:$LINENO: result: $ac_res" >&5
29825 echo "${ECHO_T}$ac_res" >&6; }
29827 # Is the header compilable?
29828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29830 cat >conftest.$ac_ext <<_ACEOF
29833 cat confdefs.h >>conftest.$ac_ext
29834 cat >>conftest.$ac_ext <<_ACEOF
29835 /* end confdefs.h. */
29836 $ac_includes_default
29837 #include <$ac_header>
29839 rm -f conftest.$ac_objext
29840 if { (ac_try="$ac_compile"
29841 case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_compile") 2>conftest.er1
29848 grep -v '^ *+' conftest.er1 >conftest.err
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } &&
29853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29854 { (case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_try") 2>&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; } &&
29863 { ac_try='test -s conftest.$ac_objext'
29864 { (case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_try") 2>&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; }; then
29873 ac_header_compiler=yes
29875 echo "$as_me: failed program was:" >&5
29876 sed 's/^/| /' conftest.$ac_ext >&5
29878 ac_header_compiler=no
29881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29883 echo "${ECHO_T}$ac_header_compiler" >&6; }
29885 # Is the header present?
29886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29888 cat >conftest.$ac_ext <<_ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29894 #include <$ac_header>
29896 if { (ac_try="$ac_cpp conftest.$ac_ext"
29897 case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29904 grep -v '^ *+' conftest.er1 >conftest.err
29906 cat conftest.err >&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } >/dev/null; then
29909 if test -s conftest.err; then
29910 ac_cpp_err=$ac_c_preproc_warn_flag
29911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29918 if test -z "$ac_cpp_err"; then
29919 ac_header_preproc=yes
29921 echo "$as_me: failed program was:" >&5
29922 sed 's/^/| /' conftest.$ac_ext >&5
29924 ac_header_preproc=no
29927 rm -f conftest.err conftest.$ac_ext
29928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29929 echo "${ECHO_T}$ac_header_preproc" >&6; }
29931 # So? What about this header?
29932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29938 ac_header_preproc=yes
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29954 ## ----------------------------------- ##
29955 ## Report this to llvmbugs@cs.uiuc.edu ##
29956 ## ----------------------------------- ##
29958 ) | sed "s/^/$as_me: WARNING: /" >&2
29961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29966 eval "$as_ac_Header=\$ac_header_preproc"
29968 ac_res=`eval echo '${'$as_ac_Header'}'`
29969 { echo "$as_me:$LINENO: result: $ac_res" >&5
29970 echo "${ECHO_T}$ac_res" >&6; }
29973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29974 cat >>confdefs.h <<_ACEOF
29975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29988 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29995 echo $ECHO_N "(cached) $ECHO_C" >&6
29997 ac_res=`eval echo '${'$as_ac_Header'}'`
29998 { echo "$as_me:$LINENO: result: $ac_res" >&5
29999 echo "${ECHO_T}$ac_res" >&6; }
30001 # Is the header compilable?
30002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30004 cat >conftest.$ac_ext <<_ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h. */
30010 $ac_includes_default
30011 #include <$ac_header>
30013 rm -f conftest.$ac_objext
30014 if { (ac_try="$ac_compile"
30015 case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_compile") 2>conftest.er1
30022 grep -v '^ *+' conftest.er1 >conftest.err
30024 cat conftest.err >&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); } &&
30027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30028 { (case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_try") 2>&5
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); }; } &&
30037 { ac_try='test -s conftest.$ac_objext'
30038 { (case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_try") 2>&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; }; then
30047 ac_header_compiler=yes
30049 echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30052 ac_header_compiler=no
30055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30057 echo "${ECHO_T}$ac_header_compiler" >&6; }
30059 # Is the header present?
30060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30062 cat >conftest.$ac_ext <<_ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h. */
30068 #include <$ac_header>
30070 if { (ac_try="$ac_cpp conftest.$ac_ext"
30071 case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30078 grep -v '^ *+' conftest.er1 >conftest.err
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } >/dev/null; then
30083 if test -s conftest.err; then
30084 ac_cpp_err=$ac_c_preproc_warn_flag
30085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30092 if test -z "$ac_cpp_err"; then
30093 ac_header_preproc=yes
30095 echo "$as_me: failed program was:" >&5
30096 sed 's/^/| /' conftest.$ac_ext >&5
30098 ac_header_preproc=no
30101 rm -f conftest.err conftest.$ac_ext
30102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30103 echo "${ECHO_T}$ac_header_preproc" >&6; }
30105 # So? What about this header?
30106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30112 ac_header_preproc=yes
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30128 ## ----------------------------------- ##
30129 ## Report this to llvmbugs@cs.uiuc.edu ##
30130 ## ----------------------------------- ##
30132 ) | sed "s/^/$as_me: WARNING: /" >&2
30135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30138 echo $ECHO_N "(cached) $ECHO_C" >&6
30140 eval "$as_ac_Header=\$ac_header_preproc"
30142 ac_res=`eval echo '${'$as_ac_Header'}'`
30143 { echo "$as_me:$LINENO: result: $ac_res" >&5
30144 echo "${ECHO_T}$ac_res" >&6; }
30147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30148 cat >>confdefs.h <<_ACEOF
30149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30158 for ac_header in utime.h windows.h
30160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30167 ac_res=`eval echo '${'$as_ac_Header'}'`
30168 { echo "$as_me:$LINENO: result: $ac_res" >&5
30169 echo "${ECHO_T}$ac_res" >&6; }
30171 # Is the header compilable?
30172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30174 cat >conftest.$ac_ext <<_ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h. */
30180 $ac_includes_default
30181 #include <$ac_header>
30183 rm -f conftest.$ac_objext
30184 if { (ac_try="$ac_compile"
30185 case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_compile") 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest.$ac_objext'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
30217 ac_header_compiler=yes
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30222 ac_header_compiler=no
30225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30227 echo "${ECHO_T}$ac_header_compiler" >&6; }
30229 # Is the header present?
30230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30232 cat >conftest.$ac_ext <<_ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 #include <$ac_header>
30240 if { (ac_try="$ac_cpp conftest.$ac_ext"
30241 case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30248 grep -v '^ *+' conftest.er1 >conftest.err
30250 cat conftest.err >&5
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); } >/dev/null; then
30253 if test -s conftest.err; then
30254 ac_cpp_err=$ac_c_preproc_warn_flag
30255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30262 if test -z "$ac_cpp_err"; then
30263 ac_header_preproc=yes
30265 echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30268 ac_header_preproc=no
30271 rm -f conftest.err conftest.$ac_ext
30272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6; }
30275 # So? What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282 ac_header_preproc=yes
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30298 ## ----------------------------------- ##
30299 ## Report this to llvmbugs@cs.uiuc.edu ##
30300 ## ----------------------------------- ##
30302 ) | sed "s/^/$as_me: WARNING: /" >&2
30305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30308 echo $ECHO_N "(cached) $ECHO_C" >&6
30310 eval "$as_ac_Header=\$ac_header_preproc"
30312 ac_res=`eval echo '${'$as_ac_Header'}'`
30313 { echo "$as_me:$LINENO: result: $ac_res" >&5
30314 echo "${ECHO_T}$ac_res" >&6; }
30317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30330 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30337 echo $ECHO_N "(cached) $ECHO_C" >&6
30339 ac_res=`eval echo '${'$as_ac_Header'}'`
30340 { echo "$as_me:$LINENO: result: $ac_res" >&5
30341 echo "${ECHO_T}$ac_res" >&6; }
30343 # Is the header compilable?
30344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30346 cat >conftest.$ac_ext <<_ACEOF
30349 cat confdefs.h >>conftest.$ac_ext
30350 cat >>conftest.$ac_ext <<_ACEOF
30351 /* end confdefs.h. */
30352 $ac_includes_default
30353 #include <$ac_header>
30355 rm -f conftest.$ac_objext
30356 if { (ac_try="$ac_compile"
30357 case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_compile") 2>conftest.er1
30364 grep -v '^ *+' conftest.er1 >conftest.err
30366 cat conftest.err >&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); } &&
30369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30370 { (case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_try") 2>&5
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest.$ac_objext'
30380 { (case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_try") 2>&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; }; then
30389 ac_header_compiler=yes
30391 echo "$as_me: failed program was:" >&5
30392 sed 's/^/| /' conftest.$ac_ext >&5
30394 ac_header_compiler=no
30397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30399 echo "${ECHO_T}$ac_header_compiler" >&6; }
30401 # Is the header present?
30402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30404 cat >conftest.$ac_ext <<_ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h. */
30410 #include <$ac_header>
30412 if { (ac_try="$ac_cpp conftest.$ac_ext"
30413 case "(($ac_try" in
30414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415 *) ac_try_echo=$ac_try;;
30417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30420 grep -v '^ *+' conftest.er1 >conftest.err
30422 cat conftest.err >&5
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); } >/dev/null; then
30425 if test -s conftest.err; then
30426 ac_cpp_err=$ac_c_preproc_warn_flag
30427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30434 if test -z "$ac_cpp_err"; then
30435 ac_header_preproc=yes
30437 echo "$as_me: failed program was:" >&5
30438 sed 's/^/| /' conftest.$ac_ext >&5
30440 ac_header_preproc=no
30443 rm -f conftest.err conftest.$ac_ext
30444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30445 echo "${ECHO_T}$ac_header_preproc" >&6; }
30447 # So? What about this header?
30448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30454 ac_header_preproc=yes
30457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30470 ## ----------------------------------- ##
30471 ## Report this to llvmbugs@cs.uiuc.edu ##
30472 ## ----------------------------------- ##
30474 ) | sed "s/^/$as_me: WARNING: /" >&2
30477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30482 eval "$as_ac_Header=\$ac_header_preproc"
30484 ac_res=`eval echo '${'$as_ac_Header'}'`
30485 { echo "$as_me:$LINENO: result: $ac_res" >&5
30486 echo "${ECHO_T}$ac_res" >&6; }
30489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30490 cat >>confdefs.h <<_ACEOF
30491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30502 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30509 echo $ECHO_N "(cached) $ECHO_C" >&6
30511 ac_res=`eval echo '${'$as_ac_Header'}'`
30512 { echo "$as_me:$LINENO: result: $ac_res" >&5
30513 echo "${ECHO_T}$ac_res" >&6; }
30515 # Is the header compilable?
30516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30518 cat >conftest.$ac_ext <<_ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h. */
30524 $ac_includes_default
30525 #include <$ac_header>
30527 rm -f conftest.$ac_objext
30528 if { (ac_try="$ac_compile"
30529 case "(($ac_try" in
30530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30531 *) ac_try_echo=$ac_try;;
30533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30534 (eval "$ac_compile") 2>conftest.er1
30536 grep -v '^ *+' conftest.er1 >conftest.err
30538 cat conftest.err >&5
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); } &&
30541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30542 { (case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_try") 2>&5
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); }; } &&
30551 { ac_try='test -s conftest.$ac_objext'
30552 { (case "(($ac_try" in
30553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554 *) ac_try_echo=$ac_try;;
30556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557 (eval "$ac_try") 2>&5
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; }; then
30561 ac_header_compiler=yes
30563 echo "$as_me: failed program was:" >&5
30564 sed 's/^/| /' conftest.$ac_ext >&5
30566 ac_header_compiler=no
30569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30571 echo "${ECHO_T}$ac_header_compiler" >&6; }
30573 # Is the header present?
30574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30576 cat >conftest.$ac_ext <<_ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h. */
30582 #include <$ac_header>
30584 if { (ac_try="$ac_cpp conftest.$ac_ext"
30585 case "(($ac_try" in
30586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587 *) ac_try_echo=$ac_try;;
30589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30592 grep -v '^ *+' conftest.er1 >conftest.err
30594 cat conftest.err >&5
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); } >/dev/null; then
30597 if test -s conftest.err; then
30598 ac_cpp_err=$ac_c_preproc_warn_flag
30599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30606 if test -z "$ac_cpp_err"; then
30607 ac_header_preproc=yes
30609 echo "$as_me: failed program was:" >&5
30610 sed 's/^/| /' conftest.$ac_ext >&5
30612 ac_header_preproc=no
30615 rm -f conftest.err conftest.$ac_ext
30616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30617 echo "${ECHO_T}$ac_header_preproc" >&6; }
30619 # So? What about this header?
30620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30626 ac_header_preproc=yes
30629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30642 ## ----------------------------------- ##
30643 ## Report this to llvmbugs@cs.uiuc.edu ##
30644 ## ----------------------------------- ##
30646 ) | sed "s/^/$as_me: WARNING: /" >&2
30649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 eval "$as_ac_Header=\$ac_header_preproc"
30656 ac_res=`eval echo '${'$as_ac_Header'}'`
30657 { echo "$as_me:$LINENO: result: $ac_res" >&5
30658 echo "${ECHO_T}$ac_res" >&6; }
30661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30662 cat >>confdefs.h <<_ACEOF
30663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30670 if test "$ENABLE_THREADS" -eq 1 ; then
30672 for ac_header in pthread.h
30674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30679 echo $ECHO_N "(cached) $ECHO_C" >&6
30681 ac_res=`eval echo '${'$as_ac_Header'}'`
30682 { echo "$as_me:$LINENO: result: $ac_res" >&5
30683 echo "${ECHO_T}$ac_res" >&6; }
30685 # Is the header compilable?
30686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30688 cat >conftest.$ac_ext <<_ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h. */
30694 $ac_includes_default
30695 #include <$ac_header>
30697 rm -f conftest.$ac_objext
30698 if { (ac_try="$ac_compile"
30699 case "(($ac_try" in
30700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704 (eval "$ac_compile") 2>conftest.er1
30706 grep -v '^ *+' conftest.er1 >conftest.err
30708 cat conftest.err >&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
30711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30712 { (case "(($ac_try" in
30713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714 *) ac_try_echo=$ac_try;;
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717 (eval "$ac_try") 2>&5
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; } &&
30721 { ac_try='test -s conftest.$ac_objext'
30722 { (case "(($ac_try" in
30723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727 (eval "$ac_try") 2>&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
30731 ac_header_compiler=yes
30733 echo "$as_me: failed program was:" >&5
30734 sed 's/^/| /' conftest.$ac_ext >&5
30736 ac_header_compiler=no
30739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30741 echo "${ECHO_T}$ac_header_compiler" >&6; }
30743 # Is the header present?
30744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30746 cat >conftest.$ac_ext <<_ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h. */
30752 #include <$ac_header>
30754 if { (ac_try="$ac_cpp conftest.$ac_ext"
30755 case "(($ac_try" in
30756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30757 *) ac_try_echo=$ac_try;;
30759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30762 grep -v '^ *+' conftest.er1 >conftest.err
30764 cat conftest.err >&5
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } >/dev/null; then
30767 if test -s conftest.err; then
30768 ac_cpp_err=$ac_c_preproc_warn_flag
30769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30776 if test -z "$ac_cpp_err"; then
30777 ac_header_preproc=yes
30779 echo "$as_me: failed program was:" >&5
30780 sed 's/^/| /' conftest.$ac_ext >&5
30782 ac_header_preproc=no
30785 rm -f conftest.err conftest.$ac_ext
30786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30787 echo "${ECHO_T}$ac_header_preproc" >&6; }
30789 # So? What about this header?
30790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30796 ac_header_preproc=yes
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30812 ## ----------------------------------- ##
30813 ## Report this to llvmbugs@cs.uiuc.edu ##
30814 ## ----------------------------------- ##
30816 ) | sed "s/^/$as_me: WARNING: /" >&2
30819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30822 echo $ECHO_N "(cached) $ECHO_C" >&6
30824 eval "$as_ac_Header=\$ac_header_preproc"
30826 ac_res=`eval echo '${'$as_ac_Header'}'`
30827 { echo "$as_me:$LINENO: result: $ac_res" >&5
30828 echo "${ECHO_T}$ac_res" >&6; }
30831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30832 cat >>confdefs.h <<_ACEOF
30833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30849 if test "$llvm_cv_enable_libffi" = "yes" ; then
30852 for ac_header in ffi.h ffi/ffi.h
30854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
30861 ac_res=`eval echo '${'$as_ac_Header'}'`
30862 { echo "$as_me:$LINENO: result: $ac_res" >&5
30863 echo "${ECHO_T}$ac_res" >&6; }
30865 # Is the header compilable?
30866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30868 cat >conftest.$ac_ext <<_ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h. */
30874 $ac_includes_default
30875 #include <$ac_header>
30877 rm -f conftest.$ac_objext
30878 if { (ac_try="$ac_compile"
30879 case "(($ac_try" in
30880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881 *) ac_try_echo=$ac_try;;
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884 (eval "$ac_compile") 2>conftest.er1
30886 grep -v '^ *+' conftest.er1 >conftest.err
30888 cat conftest.err >&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); } &&
30891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; } &&
30901 { ac_try='test -s conftest.$ac_objext'
30902 { (case "(($ac_try" in
30903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904 *) ac_try_echo=$ac_try;;
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907 (eval "$ac_try") 2>&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; }; then
30911 ac_header_compiler=yes
30913 echo "$as_me: failed program was:" >&5
30914 sed 's/^/| /' conftest.$ac_ext >&5
30916 ac_header_compiler=no
30919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30921 echo "${ECHO_T}$ac_header_compiler" >&6; }
30923 # Is the header present?
30924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30926 cat >conftest.$ac_ext <<_ACEOF
30929 cat confdefs.h >>conftest.$ac_ext
30930 cat >>conftest.$ac_ext <<_ACEOF
30931 /* end confdefs.h. */
30932 #include <$ac_header>
30934 if { (ac_try="$ac_cpp conftest.$ac_ext"
30935 case "(($ac_try" in
30936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937 *) ac_try_echo=$ac_try;;
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30942 grep -v '^ *+' conftest.er1 >conftest.err
30944 cat conftest.err >&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); } >/dev/null; then
30947 if test -s conftest.err; then
30948 ac_cpp_err=$ac_c_preproc_warn_flag
30949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30956 if test -z "$ac_cpp_err"; then
30957 ac_header_preproc=yes
30959 echo "$as_me: failed program was:" >&5
30960 sed 's/^/| /' conftest.$ac_ext >&5
30962 ac_header_preproc=no
30965 rm -f conftest.err conftest.$ac_ext
30966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30967 echo "${ECHO_T}$ac_header_preproc" >&6; }
30969 # So? What about this header?
30970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30976 ac_header_preproc=yes
30979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30992 ## ----------------------------------- ##
30993 ## Report this to llvmbugs@cs.uiuc.edu ##
30994 ## ----------------------------------- ##
30996 ) | sed "s/^/$as_me: WARNING: /" >&2
30999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31002 echo $ECHO_N "(cached) $ECHO_C" >&6
31004 eval "$as_ac_Header=\$ac_header_preproc"
31006 ac_res=`eval echo '${'$as_ac_Header'}'`
31007 { echo "$as_me:$LINENO: result: $ac_res" >&5
31008 echo "${ECHO_T}$ac_res" >&6; }
31011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31012 cat >>confdefs.h <<_ACEOF
31013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31024 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31025 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31026 if test "${ac_cv_huge_val_sanity+set}" = set; then
31027 echo $ECHO_N "(cached) $ECHO_C" >&6
31031 ac_cpp='$CXXCPP $CPPFLAGS'
31032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31037 if test "$cross_compiling" = yes; then
31038 ac_cv_huge_val_sanity=yes
31040 cat >conftest.$ac_ext <<_ACEOF
31043 cat confdefs.h >>conftest.$ac_ext
31044 cat >>conftest.$ac_ext <<_ACEOF
31045 /* end confdefs.h. */
31050 double x = HUGE_VAL; return x != x;
31055 rm -f conftest$ac_exeext
31056 if { (ac_try="$ac_link"
31057 case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_link") 2>&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31066 { (case "(($ac_try" in
31067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31068 *) ac_try_echo=$ac_try;;
31070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31071 (eval "$ac_try") 2>&5
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; }; then
31075 ac_cv_huge_val_sanity=yes
31077 echo "$as_me: program exited with status $ac_status" >&5
31078 echo "$as_me: failed program was:" >&5
31079 sed 's/^/| /' conftest.$ac_ext >&5
31081 ( exit $ac_status )
31082 ac_cv_huge_val_sanity=no
31084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31089 ac_cpp='$CPP $CPPFLAGS'
31090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31096 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31097 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31098 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31101 { echo "$as_me:$LINENO: checking for pid_t" >&5
31102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31103 if test "${ac_cv_type_pid_t+set}" = set; then
31104 echo $ECHO_N "(cached) $ECHO_C" >&6
31106 cat >conftest.$ac_ext <<_ACEOF
31109 cat confdefs.h >>conftest.$ac_ext
31110 cat >>conftest.$ac_ext <<_ACEOF
31111 /* end confdefs.h. */
31112 $ac_includes_default
31113 typedef pid_t ac__type_new_;
31117 if ((ac__type_new_ *) 0)
31119 if (sizeof (ac__type_new_))
31125 rm -f conftest.$ac_objext
31126 if { (ac_try="$ac_compile"
31127 case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_compile") 2>conftest.er1
31134 grep -v '^ *+' conftest.er1 >conftest.err
31136 cat conftest.err >&5
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); } &&
31139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31140 { (case "(($ac_try" in
31141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142 *) ac_try_echo=$ac_try;;
31144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145 (eval "$ac_try") 2>&5
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); }; } &&
31149 { ac_try='test -s conftest.$ac_objext'
31150 { (case "(($ac_try" in
31151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31152 *) ac_try_echo=$ac_try;;
31154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31155 (eval "$ac_try") 2>&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); }; }; then
31159 ac_cv_type_pid_t=yes
31161 echo "$as_me: failed program was:" >&5
31162 sed 's/^/| /' conftest.$ac_ext >&5
31164 ac_cv_type_pid_t=no
31167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31169 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31170 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31171 if test $ac_cv_type_pid_t = yes; then
31175 cat >>confdefs.h <<_ACEOF
31181 { echo "$as_me:$LINENO: checking for size_t" >&5
31182 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31183 if test "${ac_cv_type_size_t+set}" = set; then
31184 echo $ECHO_N "(cached) $ECHO_C" >&6
31186 cat >conftest.$ac_ext <<_ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31192 $ac_includes_default
31193 typedef size_t ac__type_new_;
31197 if ((ac__type_new_ *) 0)
31199 if (sizeof (ac__type_new_))
31205 rm -f conftest.$ac_objext
31206 if { (ac_try="$ac_compile"
31207 case "(($ac_try" in
31208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_compile") 2>conftest.er1
31214 grep -v '^ *+' conftest.er1 >conftest.err
31216 cat conftest.err >&5
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); } &&
31219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31220 { (case "(($ac_try" in
31221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31222 *) ac_try_echo=$ac_try;;
31224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31225 (eval "$ac_try") 2>&5
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; } &&
31229 { ac_try='test -s conftest.$ac_objext'
31230 { (case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_try") 2>&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; }; then
31239 ac_cv_type_size_t=yes
31241 echo "$as_me: failed program was:" >&5
31242 sed 's/^/| /' conftest.$ac_ext >&5
31244 ac_cv_type_size_t=no
31247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31250 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31251 if test $ac_cv_type_size_t = yes; then
31255 cat >>confdefs.h <<_ACEOF
31256 #define size_t unsigned int
31261 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31262 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31263 if test "${ac_cv_type_signal+set}" = set; then
31264 echo $ECHO_N "(cached) $ECHO_C" >&6
31266 cat >conftest.$ac_ext <<_ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h. */
31272 #include <sys/types.h>
31273 #include <signal.h>
31278 return *(signal (0, 0)) (0) == 1;
31283 rm -f conftest.$ac_objext
31284 if { (ac_try="$ac_compile"
31285 case "(($ac_try" in
31286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287 *) ac_try_echo=$ac_try;;
31289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290 (eval "$ac_compile") 2>conftest.er1
31292 grep -v '^ *+' conftest.er1 >conftest.err
31294 cat conftest.err >&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); } &&
31297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31298 { (case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_try") 2>&5
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; } &&
31307 { ac_try='test -s conftest.$ac_objext'
31308 { (case "(($ac_try" in
31309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310 *) ac_try_echo=$ac_try;;
31312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31313 (eval "$ac_try") 2>&5
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; }; then
31317 ac_cv_type_signal=int
31319 echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31322 ac_cv_type_signal=void
31325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31327 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31328 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31330 cat >>confdefs.h <<_ACEOF
31331 #define RETSIGTYPE $ac_cv_type_signal
31335 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31336 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31337 if test "${ac_cv_struct_tm+set}" = set; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31340 cat >conftest.$ac_ext <<_ACEOF
31343 cat confdefs.h >>conftest.$ac_ext
31344 cat >>conftest.$ac_ext <<_ACEOF
31345 /* end confdefs.h. */
31346 #include <sys/types.h>
31352 struct tm *tp; tp->tm_sec;
31357 rm -f conftest.$ac_objext
31358 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31366 grep -v '^ *+' conftest.er1 >conftest.err
31368 cat conftest.err >&5
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370 (exit $ac_status); } &&
31371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31372 { (case "(($ac_try" in
31373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31374 *) ac_try_echo=$ac_try;;
31376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31377 (eval "$ac_try") 2>&5
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); }; } &&
31381 { ac_try='test -s conftest.$ac_objext'
31382 { (case "(($ac_try" in
31383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384 *) ac_try_echo=$ac_try;;
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387 (eval "$ac_try") 2>&5
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); }; }; then
31391 ac_cv_struct_tm=time.h
31393 echo "$as_me: failed program was:" >&5
31394 sed 's/^/| /' conftest.$ac_ext >&5
31396 ac_cv_struct_tm=sys/time.h
31399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31401 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31402 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31403 if test $ac_cv_struct_tm = sys/time.h; then
31405 cat >>confdefs.h <<\_ACEOF
31406 #define TM_IN_SYS_TIME 1
31411 { echo "$as_me:$LINENO: checking for int64_t" >&5
31412 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31413 if test "${ac_cv_type_int64_t+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31416 cat >conftest.$ac_ext <<_ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h. */
31422 $ac_includes_default
31423 typedef int64_t ac__type_new_;
31427 if ((ac__type_new_ *) 0)
31429 if (sizeof (ac__type_new_))
31435 rm -f conftest.$ac_objext
31436 if { (ac_try="$ac_compile"
31437 case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_compile") 2>conftest.er1
31444 grep -v '^ *+' conftest.er1 >conftest.err
31446 cat conftest.err >&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } &&
31449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31450 { (case "(($ac_try" in
31451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31452 *) ac_try_echo=$ac_try;;
31454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31455 (eval "$ac_try") 2>&5
31457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); }; } &&
31459 { ac_try='test -s conftest.$ac_objext'
31460 { (case "(($ac_try" in
31461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462 *) ac_try_echo=$ac_try;;
31464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31465 (eval "$ac_try") 2>&5
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); }; }; then
31469 ac_cv_type_int64_t=yes
31471 echo "$as_me: failed program was:" >&5
31472 sed 's/^/| /' conftest.$ac_ext >&5
31474 ac_cv_type_int64_t=no
31477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31479 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31480 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31481 if test $ac_cv_type_int64_t = yes; then
31483 cat >>confdefs.h <<_ACEOF
31484 #define HAVE_INT64_T 1
31489 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31490 echo "$as_me: error: Type int64_t required but not found" >&2;}
31491 { (exit 1); exit 1; }; }
31494 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31495 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31496 if test "${ac_cv_type_uint64_t+set}" = set; then
31497 echo $ECHO_N "(cached) $ECHO_C" >&6
31499 cat >conftest.$ac_ext <<_ACEOF
31502 cat confdefs.h >>conftest.$ac_ext
31503 cat >>conftest.$ac_ext <<_ACEOF
31504 /* end confdefs.h. */
31505 $ac_includes_default
31506 typedef uint64_t ac__type_new_;
31510 if ((ac__type_new_ *) 0)
31512 if (sizeof (ac__type_new_))
31518 rm -f conftest.$ac_objext
31519 if { (ac_try="$ac_compile"
31520 case "(($ac_try" in
31521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522 *) ac_try_echo=$ac_try;;
31524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525 (eval "$ac_compile") 2>conftest.er1
31527 grep -v '^ *+' conftest.er1 >conftest.err
31529 cat conftest.err >&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } &&
31532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31533 { (case "(($ac_try" in
31534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535 *) ac_try_echo=$ac_try;;
31537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538 (eval "$ac_try") 2>&5
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; } &&
31542 { ac_try='test -s conftest.$ac_objext'
31543 { (case "(($ac_try" in
31544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31545 *) ac_try_echo=$ac_try;;
31547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31548 (eval "$ac_try") 2>&5
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; }; then
31552 ac_cv_type_uint64_t=yes
31554 echo "$as_me: failed program was:" >&5
31555 sed 's/^/| /' conftest.$ac_ext >&5
31557 ac_cv_type_uint64_t=no
31560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31562 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31563 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31564 if test $ac_cv_type_uint64_t = yes; then
31566 cat >>confdefs.h <<_ACEOF
31567 #define HAVE_UINT64_T 1
31572 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31573 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31574 if test "${ac_cv_type_u_int64_t+set}" = set; then
31575 echo $ECHO_N "(cached) $ECHO_C" >&6
31577 cat >conftest.$ac_ext <<_ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31583 $ac_includes_default
31584 typedef u_int64_t ac__type_new_;
31588 if ((ac__type_new_ *) 0)
31590 if (sizeof (ac__type_new_))
31596 rm -f conftest.$ac_objext
31597 if { (ac_try="$ac_compile"
31598 case "(($ac_try" in
31599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600 *) ac_try_echo=$ac_try;;
31602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603 (eval "$ac_compile") 2>conftest.er1
31605 grep -v '^ *+' conftest.er1 >conftest.err
31607 cat conftest.err >&5
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); } &&
31610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31611 { (case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_try") 2>&5
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; } &&
31620 { ac_try='test -s conftest.$ac_objext'
31621 { (case "(($ac_try" in
31622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31623 *) ac_try_echo=$ac_try;;
31625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31626 (eval "$ac_try") 2>&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; }; then
31630 ac_cv_type_u_int64_t=yes
31632 echo "$as_me: failed program was:" >&5
31633 sed 's/^/| /' conftest.$ac_ext >&5
31635 ac_cv_type_u_int64_t=no
31638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31640 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31641 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31642 if test $ac_cv_type_u_int64_t = yes; then
31644 cat >>confdefs.h <<_ACEOF
31645 #define HAVE_U_INT64_T 1
31650 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31651 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31652 { (exit 1); exit 1; }; }
31666 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 cat >conftest.$ac_ext <<_ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h. */
31680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31682 #define $ac_func innocuous_$ac_func
31684 /* System header to define __stub macros and hopefully few prototypes,
31685 which can conflict with char $ac_func (); below.
31686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31687 <limits.h> exists even on freestanding compilers. */
31690 # include <limits.h>
31692 # include <assert.h>
31697 /* Override any GCC internal prototype to avoid an error.
31698 Use char because int might match the return type of a GCC
31699 builtin and then its argument prototype would still apply. */
31704 /* The GNU C library defines this for functions which it implements
31705 to always fail with ENOSYS. Some functions are actually named
31706 something starting with __ and the normal name is an alias. */
31707 #if defined __stub_$ac_func || defined __stub___$ac_func
31714 return $ac_func ();
31719 rm -f conftest.$ac_objext conftest$ac_exeext
31720 if { (ac_try="$ac_link"
31721 case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_link") 2>conftest.er1
31728 grep -v '^ *+' conftest.er1 >conftest.err
31730 cat conftest.err >&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); } &&
31733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31734 { (case "(($ac_try" in
31735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736 *) ac_try_echo=$ac_try;;
31738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739 (eval "$ac_try") 2>&5
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; } &&
31743 { ac_try='test -s conftest$ac_exeext'
31744 { (case "(($ac_try" in
31745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746 *) ac_try_echo=$ac_try;;
31748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749 (eval "$ac_try") 2>&5
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; }; then
31753 eval "$as_ac_var=yes"
31755 echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31758 eval "$as_ac_var=no"
31761 rm -f core conftest.err conftest.$ac_objext \
31762 conftest$ac_exeext conftest.$ac_ext
31764 ac_res=`eval echo '${'$as_ac_var'}'`
31765 { echo "$as_me:$LINENO: result: $ac_res" >&5
31766 echo "${ECHO_T}$ac_res" >&6; }
31767 if test `eval echo '${'$as_ac_var'}'` = yes; then
31768 cat >>confdefs.h <<_ACEOF
31769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31779 for ac_func in powf fmodf strtof round
31781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31787 cat >conftest.$ac_ext <<_ACEOF
31790 cat confdefs.h >>conftest.$ac_ext
31791 cat >>conftest.$ac_ext <<_ACEOF
31792 /* end confdefs.h. */
31793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31795 #define $ac_func innocuous_$ac_func
31797 /* System header to define __stub macros and hopefully few prototypes,
31798 which can conflict with char $ac_func (); below.
31799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31800 <limits.h> exists even on freestanding compilers. */
31803 # include <limits.h>
31805 # include <assert.h>
31810 /* Override any GCC internal prototype to avoid an error.
31811 Use char because int might match the return type of a GCC
31812 builtin and then its argument prototype would still apply. */
31817 /* The GNU C library defines this for functions which it implements
31818 to always fail with ENOSYS. Some functions are actually named
31819 something starting with __ and the normal name is an alias. */
31820 #if defined __stub_$ac_func || defined __stub___$ac_func
31827 return $ac_func ();
31832 rm -f conftest.$ac_objext conftest$ac_exeext
31833 if { (ac_try="$ac_link"
31834 case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_link") 2>conftest.er1
31841 grep -v '^ *+' conftest.er1 >conftest.err
31843 cat conftest.err >&5
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); } &&
31846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31847 { (case "(($ac_try" in
31848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31849 *) ac_try_echo=$ac_try;;
31851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31852 (eval "$ac_try") 2>&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; } &&
31856 { ac_try='test -s conftest$ac_exeext'
31857 { (case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_try") 2>&5
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; }; then
31866 eval "$as_ac_var=yes"
31868 echo "$as_me: failed program was:" >&5
31869 sed 's/^/| /' conftest.$ac_ext >&5
31871 eval "$as_ac_var=no"
31874 rm -f core conftest.err conftest.$ac_objext \
31875 conftest$ac_exeext conftest.$ac_ext
31877 ac_res=`eval echo '${'$as_ac_var'}'`
31878 { echo "$as_me:$LINENO: result: $ac_res" >&5
31879 echo "${ECHO_T}$ac_res" >&6; }
31880 if test `eval echo '${'$as_ac_var'}'` = yes; then
31881 cat >>confdefs.h <<_ACEOF
31882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31893 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31901 cat >conftest.$ac_ext <<_ACEOF
31904 cat confdefs.h >>conftest.$ac_ext
31905 cat >>conftest.$ac_ext <<_ACEOF
31906 /* end confdefs.h. */
31907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31909 #define $ac_func innocuous_$ac_func
31911 /* System header to define __stub macros and hopefully few prototypes,
31912 which can conflict with char $ac_func (); below.
31913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31914 <limits.h> exists even on freestanding compilers. */
31917 # include <limits.h>
31919 # include <assert.h>
31924 /* Override any GCC internal prototype to avoid an error.
31925 Use char because int might match the return type of a GCC
31926 builtin and then its argument prototype would still apply. */
31931 /* The GNU C library defines this for functions which it implements
31932 to always fail with ENOSYS. Some functions are actually named
31933 something starting with __ and the normal name is an alias. */
31934 #if defined __stub_$ac_func || defined __stub___$ac_func
31941 return $ac_func ();
31946 rm -f conftest.$ac_objext conftest$ac_exeext
31947 if { (ac_try="$ac_link"
31948 case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_link") 2>conftest.er1
31955 grep -v '^ *+' conftest.er1 >conftest.err
31957 cat conftest.err >&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); } &&
31960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31961 { (case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_try") 2>&5
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); }; } &&
31970 { ac_try='test -s conftest$ac_exeext'
31971 { (case "(($ac_try" in
31972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31973 *) ac_try_echo=$ac_try;;
31975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31976 (eval "$ac_try") 2>&5
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); }; }; then
31980 eval "$as_ac_var=yes"
31982 echo "$as_me: failed program was:" >&5
31983 sed 's/^/| /' conftest.$ac_ext >&5
31985 eval "$as_ac_var=no"
31988 rm -f core conftest.err conftest.$ac_objext \
31989 conftest$ac_exeext conftest.$ac_ext
31991 ac_res=`eval echo '${'$as_ac_var'}'`
31992 { echo "$as_me:$LINENO: result: $ac_res" >&5
31993 echo "${ECHO_T}$ac_res" >&6; }
31994 if test `eval echo '${'$as_ac_var'}'` = yes; then
31995 cat >>confdefs.h <<_ACEOF
31996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32005 for ac_func in isatty mkdtemp mkstemp
32007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
32013 cat >conftest.$ac_ext <<_ACEOF
32016 cat confdefs.h >>conftest.$ac_ext
32017 cat >>conftest.$ac_ext <<_ACEOF
32018 /* end confdefs.h. */
32019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32021 #define $ac_func innocuous_$ac_func
32023 /* System header to define __stub macros and hopefully few prototypes,
32024 which can conflict with char $ac_func (); below.
32025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32026 <limits.h> exists even on freestanding compilers. */
32029 # include <limits.h>
32031 # include <assert.h>
32036 /* Override any GCC internal prototype to avoid an error.
32037 Use char because int might match the return type of a GCC
32038 builtin and then its argument prototype would still apply. */
32043 /* The GNU C library defines this for functions which it implements
32044 to always fail with ENOSYS. Some functions are actually named
32045 something starting with __ and the normal name is an alias. */
32046 #if defined __stub_$ac_func || defined __stub___$ac_func
32053 return $ac_func ();
32058 rm -f conftest.$ac_objext conftest$ac_exeext
32059 if { (ac_try="$ac_link"
32060 case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_link") 2>conftest.er1
32067 grep -v '^ *+' conftest.er1 >conftest.err
32069 cat conftest.err >&5
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); } &&
32072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32073 { (case "(($ac_try" in
32074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32075 *) ac_try_echo=$ac_try;;
32077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32078 (eval "$ac_try") 2>&5
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); }; } &&
32082 { ac_try='test -s conftest$ac_exeext'
32083 { (case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_try") 2>&5
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); }; }; then
32092 eval "$as_ac_var=yes"
32094 echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32097 eval "$as_ac_var=no"
32100 rm -f core conftest.err conftest.$ac_objext \
32101 conftest$ac_exeext conftest.$ac_ext
32103 ac_res=`eval echo '${'$as_ac_var'}'`
32104 { echo "$as_me:$LINENO: result: $ac_res" >&5
32105 echo "${ECHO_T}$ac_res" >&6; }
32106 if test `eval echo '${'$as_ac_var'}'` = yes; then
32107 cat >>confdefs.h <<_ACEOF
32108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32119 for ac_func in mktemp realpath sbrk setrlimit strdup
32121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32127 cat >conftest.$ac_ext <<_ACEOF
32130 cat confdefs.h >>conftest.$ac_ext
32131 cat >>conftest.$ac_ext <<_ACEOF
32132 /* end confdefs.h. */
32133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32135 #define $ac_func innocuous_$ac_func
32137 /* System header to define __stub macros and hopefully few prototypes,
32138 which can conflict with char $ac_func (); below.
32139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32140 <limits.h> exists even on freestanding compilers. */
32143 # include <limits.h>
32145 # include <assert.h>
32150 /* Override any GCC internal prototype to avoid an error.
32151 Use char because int might match the return type of a GCC
32152 builtin and then its argument prototype would still apply. */
32157 /* The GNU C library defines this for functions which it implements
32158 to always fail with ENOSYS. Some functions are actually named
32159 something starting with __ and the normal name is an alias. */
32160 #if defined __stub_$ac_func || defined __stub___$ac_func
32167 return $ac_func ();
32172 rm -f conftest.$ac_objext conftest$ac_exeext
32173 if { (ac_try="$ac_link"
32174 case "(($ac_try" in
32175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176 *) ac_try_echo=$ac_try;;
32178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179 (eval "$ac_link") 2>conftest.er1
32181 grep -v '^ *+' conftest.er1 >conftest.err
32183 cat conftest.err >&5
32184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185 (exit $ac_status); } &&
32186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32187 { (case "(($ac_try" in
32188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32189 *) ac_try_echo=$ac_try;;
32191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32192 (eval "$ac_try") 2>&5
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); }; } &&
32196 { ac_try='test -s conftest$ac_exeext'
32197 { (case "(($ac_try" in
32198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199 *) ac_try_echo=$ac_try;;
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202 (eval "$ac_try") 2>&5
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); }; }; then
32206 eval "$as_ac_var=yes"
32208 echo "$as_me: failed program was:" >&5
32209 sed 's/^/| /' conftest.$ac_ext >&5
32211 eval "$as_ac_var=no"
32214 rm -f core conftest.err conftest.$ac_objext \
32215 conftest$ac_exeext conftest.$ac_ext
32217 ac_res=`eval echo '${'$as_ac_var'}'`
32218 { echo "$as_me:$LINENO: result: $ac_res" >&5
32219 echo "${ECHO_T}$ac_res" >&6; }
32220 if test `eval echo '${'$as_ac_var'}'` = yes; then
32221 cat >>confdefs.h <<_ACEOF
32222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32231 for ac_func in strerror strerror_r strerror_s
32233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32237 echo $ECHO_N "(cached) $ECHO_C" >&6
32239 cat >conftest.$ac_ext <<_ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h. */
32245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32247 #define $ac_func innocuous_$ac_func
32249 /* System header to define __stub macros and hopefully few prototypes,
32250 which can conflict with char $ac_func (); below.
32251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32252 <limits.h> exists even on freestanding compilers. */
32255 # include <limits.h>
32257 # include <assert.h>
32262 /* Override any GCC internal prototype to avoid an error.
32263 Use char because int might match the return type of a GCC
32264 builtin and then its argument prototype would still apply. */
32269 /* The GNU C library defines this for functions which it implements
32270 to always fail with ENOSYS. Some functions are actually named
32271 something starting with __ and the normal name is an alias. */
32272 #if defined __stub_$ac_func || defined __stub___$ac_func
32279 return $ac_func ();
32284 rm -f conftest.$ac_objext conftest$ac_exeext
32285 if { (ac_try="$ac_link"
32286 case "(($ac_try" in
32287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_link") 2>conftest.er1
32293 grep -v '^ *+' conftest.er1 >conftest.err
32295 cat conftest.err >&5
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); } &&
32298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32299 { (case "(($ac_try" in
32300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32301 *) ac_try_echo=$ac_try;;
32303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304 (eval "$ac_try") 2>&5
32306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307 (exit $ac_status); }; } &&
32308 { ac_try='test -s conftest$ac_exeext'
32309 { (case "(($ac_try" in
32310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311 *) ac_try_echo=$ac_try;;
32313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32314 (eval "$ac_try") 2>&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
32318 eval "$as_ac_var=yes"
32320 echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32323 eval "$as_ac_var=no"
32326 rm -f core conftest.err conftest.$ac_objext \
32327 conftest$ac_exeext conftest.$ac_ext
32329 ac_res=`eval echo '${'$as_ac_var'}'`
32330 { echo "$as_me:$LINENO: result: $ac_res" >&5
32331 echo "${ECHO_T}$ac_res" >&6; }
32332 if test `eval echo '${'$as_ac_var'}'` = yes; then
32333 cat >>confdefs.h <<_ACEOF
32334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32344 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32350 echo $ECHO_N "(cached) $ECHO_C" >&6
32352 cat >conftest.$ac_ext <<_ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32360 #define $ac_func innocuous_$ac_func
32362 /* System header to define __stub macros and hopefully few prototypes,
32363 which can conflict with char $ac_func (); below.
32364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32365 <limits.h> exists even on freestanding compilers. */
32368 # include <limits.h>
32370 # include <assert.h>
32375 /* Override any GCC internal prototype to avoid an error.
32376 Use char because int might match the return type of a GCC
32377 builtin and then its argument prototype would still apply. */
32382 /* The GNU C library defines this for functions which it implements
32383 to always fail with ENOSYS. Some functions are actually named
32384 something starting with __ and the normal name is an alias. */
32385 #if defined __stub_$ac_func || defined __stub___$ac_func
32392 return $ac_func ();
32397 rm -f conftest.$ac_objext conftest$ac_exeext
32398 if { (ac_try="$ac_link"
32399 case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_link") 2>conftest.er1
32406 grep -v '^ *+' conftest.er1 >conftest.err
32408 cat conftest.err >&5
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
32411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; } &&
32421 { ac_try='test -s conftest$ac_exeext'
32422 { (case "(($ac_try" in
32423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424 *) ac_try_echo=$ac_try;;
32426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427 (eval "$ac_try") 2>&5
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
32431 eval "$as_ac_var=yes"
32433 echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32436 eval "$as_ac_var=no"
32439 rm -f core conftest.err conftest.$ac_objext \
32440 conftest$ac_exeext conftest.$ac_ext
32442 ac_res=`eval echo '${'$as_ac_var'}'`
32443 { echo "$as_me:$LINENO: result: $ac_res" >&5
32444 echo "${ECHO_T}$ac_res" >&6; }
32445 if test `eval echo '${'$as_ac_var'}'` = yes; then
32446 cat >>confdefs.h <<_ACEOF
32447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32457 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32465 cat >conftest.$ac_ext <<_ACEOF
32468 cat confdefs.h >>conftest.$ac_ext
32469 cat >>conftest.$ac_ext <<_ACEOF
32470 /* end confdefs.h. */
32471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32473 #define $ac_func innocuous_$ac_func
32475 /* System header to define __stub macros and hopefully few prototypes,
32476 which can conflict with char $ac_func (); below.
32477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32478 <limits.h> exists even on freestanding compilers. */
32481 # include <limits.h>
32483 # include <assert.h>
32488 /* Override any GCC internal prototype to avoid an error.
32489 Use char because int might match the return type of a GCC
32490 builtin and then its argument prototype would still apply. */
32495 /* The GNU C library defines this for functions which it implements
32496 to always fail with ENOSYS. Some functions are actually named
32497 something starting with __ and the normal name is an alias. */
32498 #if defined __stub_$ac_func || defined __stub___$ac_func
32505 return $ac_func ();
32510 rm -f conftest.$ac_objext conftest$ac_exeext
32511 if { (ac_try="$ac_link"
32512 case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_link") 2>conftest.er1
32519 grep -v '^ *+' conftest.er1 >conftest.err
32521 cat conftest.err >&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); } &&
32524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32525 { (case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530 (eval "$ac_try") 2>&5
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; } &&
32534 { ac_try='test -s conftest$ac_exeext'
32535 { (case "(($ac_try" in
32536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32537 *) ac_try_echo=$ac_try;;
32539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32540 (eval "$ac_try") 2>&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; }; then
32544 eval "$as_ac_var=yes"
32546 echo "$as_me: failed program was:" >&5
32547 sed 's/^/| /' conftest.$ac_ext >&5
32549 eval "$as_ac_var=no"
32552 rm -f core conftest.err conftest.$ac_objext \
32553 conftest$ac_exeext conftest.$ac_ext
32555 ac_res=`eval echo '${'$as_ac_var'}'`
32556 { echo "$as_me:$LINENO: result: $ac_res" >&5
32557 echo "${ECHO_T}$ac_res" >&6; }
32558 if test `eval echo '${'$as_ac_var'}'` = yes; then
32559 cat >>confdefs.h <<_ACEOF
32560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32566 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32567 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32568 if test "${llvm_cv_c_printf_a+set}" = set; then
32569 echo $ECHO_N "(cached) $ECHO_C" >&6
32572 ac_cpp='$CPP $CPPFLAGS'
32573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32577 if test "$cross_compiling" = yes; then
32578 llvmac_cv_c_printf_a=no
32580 cat >conftest.$ac_ext <<_ACEOF
32584 cat confdefs.h >>conftest.$ac_ext
32585 cat >>conftest.$ac_ext <<_ACEOF
32586 /* end confdefs.h. */
32589 #include <stdlib.h>
32595 volatile double A, B;
32599 sprintf(Buffer, "%a", A);
32603 if (A != 0x1.999999999999ap-4)
32610 rm -f conftest$ac_exeext
32611 if { (ac_try="$ac_link"
32612 case "(($ac_try" in
32613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614 *) ac_try_echo=$ac_try;;
32616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617 (eval "$ac_link") 2>&5
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32621 { (case "(($ac_try" in
32622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623 *) ac_try_echo=$ac_try;;
32625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32626 (eval "$ac_try") 2>&5
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); }; }; then
32630 llvm_cv_c_printf_a=yes
32632 echo "$as_me: program exited with status $ac_status" >&5
32633 echo "$as_me: failed program was:" >&5
32634 sed 's/^/| /' conftest.$ac_ext >&5
32636 ( exit $ac_status )
32637 llvmac_cv_c_printf_a=no
32639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32644 ac_cpp='$CPP $CPPFLAGS'
32645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32650 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32651 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32652 if test "$llvm_cv_c_printf_a" = "yes"; then
32654 cat >>confdefs.h <<\_ACEOF
32655 #define HAVE_PRINTF_A 1
32660 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32661 # for constant arguments. Useless!
32662 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32663 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32664 if test "${ac_cv_working_alloca_h+set}" = set; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32667 cat >conftest.$ac_ext <<_ACEOF
32670 cat confdefs.h >>conftest.$ac_ext
32671 cat >>conftest.$ac_ext <<_ACEOF
32672 /* end confdefs.h. */
32673 #include <alloca.h>
32677 char *p = (char *) alloca (2 * sizeof (int));
32683 rm -f conftest.$ac_objext conftest$ac_exeext
32684 if { (ac_try="$ac_link"
32685 case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_link") 2>conftest.er1
32692 grep -v '^ *+' conftest.er1 >conftest.err
32694 cat conftest.err >&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } &&
32697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32698 { (case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_try") 2>&5
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; } &&
32707 { ac_try='test -s conftest$ac_exeext'
32708 { (case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_try") 2>&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; }; then
32717 ac_cv_working_alloca_h=yes
32719 echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32722 ac_cv_working_alloca_h=no
32725 rm -f core conftest.err conftest.$ac_objext \
32726 conftest$ac_exeext conftest.$ac_ext
32728 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32729 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32730 if test $ac_cv_working_alloca_h = yes; then
32732 cat >>confdefs.h <<\_ACEOF
32733 #define HAVE_ALLOCA_H 1
32738 { echo "$as_me:$LINENO: checking for alloca" >&5
32739 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32740 if test "${ac_cv_func_alloca_works+set}" = set; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32743 cat >conftest.$ac_ext <<_ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32750 # define alloca __builtin_alloca
32753 # include <malloc.h>
32754 # define alloca _alloca
32757 # include <alloca.h>
32762 # ifndef alloca /* predefined by HP cc +Olibcalls */
32773 char *p = (char *) alloca (1);
32779 rm -f conftest.$ac_objext conftest$ac_exeext
32780 if { (ac_try="$ac_link"
32781 case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_link") 2>conftest.er1
32788 grep -v '^ *+' conftest.er1 >conftest.err
32790 cat conftest.err >&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
32793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32794 { (case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_try") 2>&5
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; } &&
32803 { ac_try='test -s conftest$ac_exeext'
32804 { (case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_try") 2>&5
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; }; then
32813 ac_cv_func_alloca_works=yes
32815 echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32818 ac_cv_func_alloca_works=no
32821 rm -f core conftest.err conftest.$ac_objext \
32822 conftest$ac_exeext conftest.$ac_ext
32824 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32825 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32827 if test $ac_cv_func_alloca_works = yes; then
32829 cat >>confdefs.h <<\_ACEOF
32830 #define HAVE_ALLOCA 1
32834 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32835 # that cause trouble. Some versions do not even contain alloca or
32836 # contain a buggy version. If you still want to use their alloca,
32837 # use ar to extract alloca.o from them instead of compiling alloca.c.
32839 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32841 cat >>confdefs.h <<\_ACEOF
32846 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32847 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32848 if test "${ac_cv_os_cray+set}" = set; then
32849 echo $ECHO_N "(cached) $ECHO_C" >&6
32851 cat >conftest.$ac_ext <<_ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h. */
32857 #if defined CRAY && ! defined CRAY2
32864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32865 $EGREP "webecray" >/dev/null 2>&1; then
32873 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32874 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32875 if test $ac_cv_os_cray = yes; then
32876 for ac_func in _getb67 GETB67 getb67; do
32877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32881 echo $ECHO_N "(cached) $ECHO_C" >&6
32883 cat >conftest.$ac_ext <<_ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h. */
32889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32891 #define $ac_func innocuous_$ac_func
32893 /* System header to define __stub macros and hopefully few prototypes,
32894 which can conflict with char $ac_func (); below.
32895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32896 <limits.h> exists even on freestanding compilers. */
32899 # include <limits.h>
32901 # include <assert.h>
32906 /* Override any GCC internal prototype to avoid an error.
32907 Use char because int might match the return type of a GCC
32908 builtin and then its argument prototype would still apply. */
32913 /* The GNU C library defines this for functions which it implements
32914 to always fail with ENOSYS. Some functions are actually named
32915 something starting with __ and the normal name is an alias. */
32916 #if defined __stub_$ac_func || defined __stub___$ac_func
32923 return $ac_func ();
32928 rm -f conftest.$ac_objext conftest$ac_exeext
32929 if { (ac_try="$ac_link"
32930 case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_link") 2>conftest.er1
32937 grep -v '^ *+' conftest.er1 >conftest.err
32939 cat conftest.err >&5
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } &&
32942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32943 { (case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_try") 2>&5
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; } &&
32952 { ac_try='test -s conftest$ac_exeext'
32953 { (case "(($ac_try" in
32954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32955 *) ac_try_echo=$ac_try;;
32957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32958 (eval "$ac_try") 2>&5
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); }; }; then
32962 eval "$as_ac_var=yes"
32964 echo "$as_me: failed program was:" >&5
32965 sed 's/^/| /' conftest.$ac_ext >&5
32967 eval "$as_ac_var=no"
32970 rm -f core conftest.err conftest.$ac_objext \
32971 conftest$ac_exeext conftest.$ac_ext
32973 ac_res=`eval echo '${'$as_ac_var'}'`
32974 { echo "$as_me:$LINENO: result: $ac_res" >&5
32975 echo "${ECHO_T}$ac_res" >&6; }
32976 if test `eval echo '${'$as_ac_var'}'` = yes; then
32978 cat >>confdefs.h <<_ACEOF
32979 #define CRAY_STACKSEG_END $ac_func
32988 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32989 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32990 if test "${ac_cv_c_stack_direction+set}" = set; then
32991 echo $ECHO_N "(cached) $ECHO_C" >&6
32993 if test "$cross_compiling" = yes; then
32994 ac_cv_c_stack_direction=0
32996 cat >conftest.$ac_ext <<_ACEOF
32999 cat confdefs.h >>conftest.$ac_ext
33000 cat >>conftest.$ac_ext <<_ACEOF
33001 /* end confdefs.h. */
33002 $ac_includes_default
33004 find_stack_direction ()
33006 static char *addr = 0;
33011 return find_stack_direction ();
33014 return (&dummy > addr) ? 1 : -1;
33020 return find_stack_direction () < 0;
33023 rm -f conftest$ac_exeext
33024 if { (ac_try="$ac_link"
33025 case "(($ac_try" in
33026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027 *) ac_try_echo=$ac_try;;
33029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030 (eval "$ac_link") 2>&5
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33034 { (case "(($ac_try" in
33035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33036 *) ac_try_echo=$ac_try;;
33038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33039 (eval "$ac_try") 2>&5
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); }; }; then
33043 ac_cv_c_stack_direction=1
33045 echo "$as_me: program exited with status $ac_status" >&5
33046 echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33049 ( exit $ac_status )
33050 ac_cv_c_stack_direction=-1
33052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33057 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33058 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33060 cat >>confdefs.h <<_ACEOF
33061 #define STACK_DIRECTION $ac_cv_c_stack_direction
33068 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33069 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33070 if test "${ac_cv_func_rand48+set}" = set; then
33071 echo $ECHO_N "(cached) $ECHO_C" >&6
33074 ac_cpp='$CXXCPP $CPPFLAGS'
33075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33079 cat >conftest.$ac_ext <<_ACEOF
33082 cat confdefs.h >>conftest.$ac_ext
33083 cat >>conftest.$ac_ext <<_ACEOF
33084 /* end confdefs.h. */
33085 #include <stdlib.h>
33089 srand48(0);lrand48();drand48();
33094 rm -f conftest.$ac_objext
33095 if { (ac_try="$ac_compile"
33096 case "(($ac_try" in
33097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_compile") 2>conftest.er1
33103 grep -v '^ *+' conftest.er1 >conftest.err
33105 cat conftest.err >&5
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); } &&
33108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33109 { (case "(($ac_try" in
33110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33111 *) ac_try_echo=$ac_try;;
33113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33114 (eval "$ac_try") 2>&5
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; } &&
33118 { ac_try='test -s conftest.$ac_objext'
33119 { (case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_try") 2>&5
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); }; }; then
33128 ac_cv_func_rand48=yes
33130 echo "$as_me: failed program was:" >&5
33131 sed 's/^/| /' conftest.$ac_ext >&5
33133 ac_cv_func_rand48=no
33136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33138 ac_cpp='$CPP $CPPFLAGS'
33139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33144 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33145 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33147 if test "$ac_cv_func_rand48" = "yes" ; then
33149 cat >>confdefs.h <<\_ACEOF
33150 #define HAVE_RAND48 1
33156 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33157 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33158 if test "${ac_cv_cxx_namespaces+set}" = set; then
33159 echo $ECHO_N "(cached) $ECHO_C" >&6
33162 ac_cpp='$CXXCPP $CPPFLAGS'
33163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33167 cat >conftest.$ac_ext <<_ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h. */
33173 namespace Outer { namespace Inner { int i = 0; }}
33177 using namespace Outer::Inner; return i;
33182 rm -f conftest.$ac_objext
33183 if { (ac_try="$ac_compile"
33184 case "(($ac_try" in
33185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_compile") 2>conftest.er1
33191 grep -v '^ *+' conftest.er1 >conftest.err
33193 cat conftest.err >&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); } &&
33196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33197 { (case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_try") 2>&5
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; } &&
33206 { ac_try='test -s conftest.$ac_objext'
33207 { (case "(($ac_try" in
33208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209 *) ac_try_echo=$ac_try;;
33211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212 (eval "$ac_try") 2>&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; }; then
33216 ac_cv_cxx_namespaces=yes
33218 echo "$as_me: failed program was:" >&5
33219 sed 's/^/| /' conftest.$ac_ext >&5
33221 ac_cv_cxx_namespaces=no
33224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33226 ac_cpp='$CPP $CPPFLAGS'
33227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33233 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33234 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33235 if test "$ac_cv_cxx_namespaces" = yes; then
33237 cat >>confdefs.h <<\_ACEOF
33238 #define HAVE_NAMESPACES
33243 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33244 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33245 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33246 echo $ECHO_N "(cached) $ECHO_C" >&6
33250 ac_cpp='$CXXCPP $CPPFLAGS'
33251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33255 cat >conftest.$ac_ext <<_ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h. */
33261 #include <iterator>
33262 #ifdef HAVE_NAMESPACES
33263 using namespace std;
33268 iterator<int,int,int> t; return 0;
33273 rm -f conftest.$ac_objext
33274 if { (ac_try="$ac_compile"
33275 case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_compile") 2>conftest.er1
33282 grep -v '^ *+' conftest.er1 >conftest.err
33284 cat conftest.err >&5
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); } &&
33287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33288 { (case "(($ac_try" in
33289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290 *) ac_try_echo=$ac_try;;
33292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293 (eval "$ac_try") 2>&5
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; } &&
33297 { ac_try='test -s conftest.$ac_objext'
33298 { (case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_try") 2>&5
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; }; then
33307 ac_cv_cxx_have_std_iterator=yes
33309 echo "$as_me: failed program was:" >&5
33310 sed 's/^/| /' conftest.$ac_ext >&5
33312 ac_cv_cxx_have_std_iterator=no
33315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33317 ac_cpp='$CPP $CPPFLAGS'
33318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33324 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33325 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33326 if test "$ac_cv_cxx_have_std_iterator" = yes
33329 cat >>confdefs.h <<\_ACEOF
33330 #define HAVE_STD_ITERATOR 1
33335 cat >>confdefs.h <<\_ACEOF
33336 #define HAVE_STD_ITERATOR 0
33341 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33342 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33343 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33344 echo $ECHO_N "(cached) $ECHO_C" >&6
33348 ac_cpp='$CXXCPP $CPPFLAGS'
33349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33353 cat >conftest.$ac_ext <<_ACEOF
33356 cat confdefs.h >>conftest.$ac_ext
33357 cat >>conftest.$ac_ext <<_ACEOF
33358 /* end confdefs.h. */
33359 #include <iterator>
33360 #ifdef HAVE_NAMESPACES
33361 using namespace std;
33366 bidirectional_iterator<int,int> t; return 0;
33371 rm -f conftest.$ac_objext
33372 if { (ac_try="$ac_compile"
33373 case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_compile") 2>conftest.er1
33380 grep -v '^ *+' conftest.er1 >conftest.err
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } &&
33385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33386 { (case "(($ac_try" in
33387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33388 *) ac_try_echo=$ac_try;;
33390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33391 (eval "$ac_try") 2>&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); }; } &&
33395 { ac_try='test -s conftest.$ac_objext'
33396 { (case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_try") 2>&5
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; }; then
33405 ac_cv_cxx_have_bi_iterator=yes
33407 echo "$as_me: failed program was:" >&5
33408 sed 's/^/| /' conftest.$ac_ext >&5
33410 ac_cv_cxx_have_bi_iterator=no
33413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33415 ac_cpp='$CPP $CPPFLAGS'
33416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33422 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33423 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33424 if test "$ac_cv_cxx_have_bi_iterator" = yes
33427 cat >>confdefs.h <<\_ACEOF
33428 #define HAVE_BI_ITERATOR 1
33433 cat >>confdefs.h <<\_ACEOF
33434 #define HAVE_BI_ITERATOR 0
33439 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33440 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33441 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33446 ac_cpp='$CXXCPP $CPPFLAGS'
33447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33451 cat >conftest.$ac_ext <<_ACEOF
33454 cat confdefs.h >>conftest.$ac_ext
33455 cat >>conftest.$ac_ext <<_ACEOF
33456 /* end confdefs.h. */
33457 #include <iterator>
33458 #ifdef HAVE_NAMESPACES
33459 using namespace std;
33464 forward_iterator<int,int> t; return 0;
33469 rm -f conftest.$ac_objext
33470 if { (ac_try="$ac_compile"
33471 case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_compile") 2>conftest.er1
33478 grep -v '^ *+' conftest.er1 >conftest.err
33480 cat conftest.err >&5
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } &&
33483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33484 { (case "(($ac_try" in
33485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33486 *) ac_try_echo=$ac_try;;
33488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33489 (eval "$ac_try") 2>&5
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; } &&
33493 { ac_try='test -s conftest.$ac_objext'
33494 { (case "(($ac_try" in
33495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33496 *) ac_try_echo=$ac_try;;
33498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33499 (eval "$ac_try") 2>&5
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); }; }; then
33503 ac_cv_cxx_have_fwd_iterator=yes
33505 echo "$as_me: failed program was:" >&5
33506 sed 's/^/| /' conftest.$ac_ext >&5
33508 ac_cv_cxx_have_fwd_iterator=no
33511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33513 ac_cpp='$CPP $CPPFLAGS'
33514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33520 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33521 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33522 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33525 cat >>confdefs.h <<\_ACEOF
33526 #define HAVE_FWD_ITERATOR 1
33531 cat >>confdefs.h <<\_ACEOF
33532 #define HAVE_FWD_ITERATOR 0
33538 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33539 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33540 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33541 echo $ECHO_N "(cached) $ECHO_C" >&6
33544 ac_cpp='$CXXCPP $CPPFLAGS'
33545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33549 cat >conftest.$ac_ext <<_ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h. */
33564 rm -f conftest.$ac_objext
33565 if { (ac_try="$ac_compile"
33566 case "(($ac_try" in
33567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568 *) ac_try_echo=$ac_try;;
33570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571 (eval "$ac_compile") 2>conftest.er1
33573 grep -v '^ *+' conftest.er1 >conftest.err
33575 cat conftest.err >&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); } &&
33578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33579 { (case "(($ac_try" in
33580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 *) ac_try_echo=$ac_try;;
33583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 (eval "$ac_try") 2>&5
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; } &&
33588 { ac_try='test -s conftest.$ac_objext'
33589 { (case "(($ac_try" in
33590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591 *) ac_try_echo=$ac_try;;
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_try") 2>&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; }; then
33598 ac_cv_func_isnan_in_math_h=yes
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33603 ac_cv_func_isnan_in_math_h=no
33606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33608 ac_cpp='$CPP $CPPFLAGS'
33609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33614 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33615 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33618 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33620 cat >>confdefs.h <<\_ACEOF
33621 #define HAVE_ISNAN_IN_MATH_H 1
33626 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33627 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33628 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33632 ac_cpp='$CXXCPP $CPPFLAGS'
33633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33637 cat >conftest.$ac_ext <<_ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h. */
33652 rm -f conftest.$ac_objext
33653 if { (ac_try="$ac_compile"
33654 case "(($ac_try" in
33655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656 *) ac_try_echo=$ac_try;;
33658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659 (eval "$ac_compile") 2>conftest.er1
33661 grep -v '^ *+' conftest.er1 >conftest.err
33663 cat conftest.err >&5
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); } &&
33666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33667 { (case "(($ac_try" in
33668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33669 *) ac_try_echo=$ac_try;;
33671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33672 (eval "$ac_try") 2>&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); }; } &&
33676 { ac_try='test -s conftest.$ac_objext'
33677 { (case "(($ac_try" in
33678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679 *) ac_try_echo=$ac_try;;
33681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682 (eval "$ac_try") 2>&5
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); }; }; then
33686 ac_cv_func_isnan_in_cmath=yes
33688 echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33691 ac_cv_func_isnan_in_cmath=no
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 ac_cpp='$CPP $CPPFLAGS'
33697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33702 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33703 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33705 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33707 cat >>confdefs.h <<\_ACEOF
33708 #define HAVE_ISNAN_IN_CMATH 1
33713 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33714 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33715 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33716 echo $ECHO_N "(cached) $ECHO_C" >&6
33719 ac_cpp='$CXXCPP $CPPFLAGS'
33720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33724 cat >conftest.$ac_ext <<_ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33734 float f; std::isnan(f);
33739 rm -f conftest.$ac_objext
33740 if { (ac_try="$ac_compile"
33741 case "(($ac_try" in
33742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743 *) ac_try_echo=$ac_try;;
33745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746 (eval "$ac_compile") 2>conftest.er1
33748 grep -v '^ *+' conftest.er1 >conftest.err
33750 cat conftest.err >&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); } &&
33753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33754 { (case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759 (eval "$ac_try") 2>&5
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; } &&
33763 { ac_try='test -s conftest.$ac_objext'
33764 { (case "(($ac_try" in
33765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33766 *) ac_try_echo=$ac_try;;
33768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33769 (eval "$ac_try") 2>&5
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); }; }; then
33773 ac_cv_func_std_isnan_in_cmath=yes
33775 echo "$as_me: failed program was:" >&5
33776 sed 's/^/| /' conftest.$ac_ext >&5
33778 ac_cv_func_std_isnan_in_cmath=no
33781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33783 ac_cpp='$CPP $CPPFLAGS'
33784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33789 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33790 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33792 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33794 cat >>confdefs.h <<\_ACEOF
33795 #define HAVE_STD_ISNAN_IN_CMATH 1
33801 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33802 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33803 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33804 echo $ECHO_N "(cached) $ECHO_C" >&6
33807 ac_cpp='$CXXCPP $CPPFLAGS'
33808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33812 cat >conftest.$ac_ext <<_ACEOF
33815 cat confdefs.h >>conftest.$ac_ext
33816 cat >>conftest.$ac_ext <<_ACEOF
33817 /* end confdefs.h. */
33827 rm -f conftest.$ac_objext
33828 if { (ac_try="$ac_compile"
33829 case "(($ac_try" in
33830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_compile") 2>conftest.er1
33836 grep -v '^ *+' conftest.er1 >conftest.err
33838 cat conftest.err >&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } &&
33841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33842 { (case "(($ac_try" in
33843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33844 *) ac_try_echo=$ac_try;;
33846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33847 (eval "$ac_try") 2>&5
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); }; } &&
33851 { ac_try='test -s conftest.$ac_objext'
33852 { (case "(($ac_try" in
33853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33854 *) ac_try_echo=$ac_try;;
33856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33857 (eval "$ac_try") 2>&5
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); }; }; then
33861 ac_cv_func_isinf_in_math_h=yes
33863 echo "$as_me: failed program was:" >&5
33864 sed 's/^/| /' conftest.$ac_ext >&5
33866 ac_cv_func_isinf_in_math_h=no
33869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 ac_cpp='$CPP $CPPFLAGS'
33872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33877 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33878 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33880 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33882 cat >>confdefs.h <<\_ACEOF
33883 #define HAVE_ISINF_IN_MATH_H 1
33888 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33889 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33890 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33891 echo $ECHO_N "(cached) $ECHO_C" >&6
33894 ac_cpp='$CXXCPP $CPPFLAGS'
33895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33899 cat >conftest.$ac_ext <<_ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h. */
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_compile") 2>conftest.er1
33923 grep -v '^ *+' conftest.er1 >conftest.err
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } &&
33928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33929 { (case "(($ac_try" in
33930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33931 *) ac_try_echo=$ac_try;;
33933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33934 (eval "$ac_try") 2>&5
33936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937 (exit $ac_status); }; } &&
33938 { ac_try='test -s conftest.$ac_objext'
33939 { (case "(($ac_try" in
33940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33941 *) ac_try_echo=$ac_try;;
33943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33944 (eval "$ac_try") 2>&5
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); }; }; then
33948 ac_cv_func_isinf_in_cmath=yes
33950 echo "$as_me: failed program was:" >&5
33951 sed 's/^/| /' conftest.$ac_ext >&5
33953 ac_cv_func_isinf_in_cmath=no
33956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33958 ac_cpp='$CPP $CPPFLAGS'
33959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33964 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33965 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33967 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33969 cat >>confdefs.h <<\_ACEOF
33970 #define HAVE_ISINF_IN_CMATH 1
33975 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33976 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33977 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33978 echo $ECHO_N "(cached) $ECHO_C" >&6
33981 ac_cpp='$CXXCPP $CPPFLAGS'
33982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33986 cat >conftest.$ac_ext <<_ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h. */
33996 float f; std::isinf(f)}
34001 rm -f conftest.$ac_objext
34002 if { (ac_try="$ac_compile"
34003 case "(($ac_try" in
34004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008 (eval "$ac_compile") 2>conftest.er1
34010 grep -v '^ *+' conftest.er1 >conftest.err
34012 cat conftest.err >&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } &&
34015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34016 { (case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_try") 2>&5
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; } &&
34025 { ac_try='test -s conftest.$ac_objext'
34026 { (case "(($ac_try" in
34027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028 *) ac_try_echo=$ac_try;;
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031 (eval "$ac_try") 2>&5
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); }; }; then
34035 ac_cv_func_std_isinf_in_cmath=yes
34037 echo "$as_me: failed program was:" >&5
34038 sed 's/^/| /' conftest.$ac_ext >&5
34040 ac_cv_func_std_isinf_in_cmath=no
34043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34045 ac_cpp='$CPP $CPPFLAGS'
34046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34051 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34052 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34054 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34056 cat >>confdefs.h <<\_ACEOF
34057 #define HAVE_STD_ISINF_IN_CMATH 1
34062 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34063 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34064 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34065 echo $ECHO_N "(cached) $ECHO_C" >&6
34068 ac_cpp='$CXXCPP $CPPFLAGS'
34069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34073 cat >conftest.$ac_ext <<_ACEOF
34076 cat confdefs.h >>conftest.$ac_ext
34077 cat >>conftest.$ac_ext <<_ACEOF
34078 /* end confdefs.h. */
34079 #include <ieeefp.h>
34083 float f; finite(f);
34088 rm -f conftest.$ac_objext
34089 if { (ac_try="$ac_compile"
34090 case "(($ac_try" in
34091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092 *) ac_try_echo=$ac_try;;
34094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095 (eval "$ac_compile") 2>conftest.er1
34097 grep -v '^ *+' conftest.er1 >conftest.err
34099 cat conftest.err >&5
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } &&
34102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34103 { (case "(($ac_try" in
34104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34105 *) ac_try_echo=$ac_try;;
34107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34108 (eval "$ac_try") 2>&5
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); }; } &&
34112 { ac_try='test -s conftest.$ac_objext'
34113 { (case "(($ac_try" in
34114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34115 *) ac_try_echo=$ac_try;;
34117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34118 (eval "$ac_try") 2>&5
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); }; }; then
34122 ac_cv_func_finite_in_ieeefp_h=yes
34124 echo "$as_me: failed program was:" >&5
34125 sed 's/^/| /' conftest.$ac_ext >&5
34127 ac_cv_func_finite_in_ieeefp_h=no
34130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34132 ac_cpp='$CPP $CPPFLAGS'
34133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34138 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34139 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34141 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34143 cat >>confdefs.h <<\_ACEOF
34144 #define HAVE_FINITE_IN_IEEEFP_H 1
34151 if test "$llvm_cv_platform_type" = "Unix" ; then
34154 for ac_header in stdlib.h unistd.h
34156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34161 echo $ECHO_N "(cached) $ECHO_C" >&6
34163 ac_res=`eval echo '${'$as_ac_Header'}'`
34164 { echo "$as_me:$LINENO: result: $ac_res" >&5
34165 echo "${ECHO_T}$ac_res" >&6; }
34167 # Is the header compilable?
34168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34170 cat >conftest.$ac_ext <<_ACEOF
34173 cat confdefs.h >>conftest.$ac_ext
34174 cat >>conftest.$ac_ext <<_ACEOF
34175 /* end confdefs.h. */
34176 $ac_includes_default
34177 #include <$ac_header>
34179 rm -f conftest.$ac_objext
34180 if { (ac_try="$ac_compile"
34181 case "(($ac_try" in
34182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34186 (eval "$ac_compile") 2>conftest.er1
34188 grep -v '^ *+' conftest.er1 >conftest.err
34190 cat conftest.err >&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } &&
34193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34194 { (case "(($ac_try" in
34195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34196 *) ac_try_echo=$ac_try;;
34198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34199 (eval "$ac_try") 2>&5
34201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 (exit $ac_status); }; } &&
34203 { ac_try='test -s conftest.$ac_objext'
34204 { (case "(($ac_try" in
34205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34206 *) ac_try_echo=$ac_try;;
34208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34209 (eval "$ac_try") 2>&5
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); }; }; then
34213 ac_header_compiler=yes
34215 echo "$as_me: failed program was:" >&5
34216 sed 's/^/| /' conftest.$ac_ext >&5
34218 ac_header_compiler=no
34221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34223 echo "${ECHO_T}$ac_header_compiler" >&6; }
34225 # Is the header present?
34226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34228 cat >conftest.$ac_ext <<_ACEOF
34231 cat confdefs.h >>conftest.$ac_ext
34232 cat >>conftest.$ac_ext <<_ACEOF
34233 /* end confdefs.h. */
34234 #include <$ac_header>
34236 if { (ac_try="$ac_cpp conftest.$ac_ext"
34237 case "(($ac_try" in
34238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34239 *) ac_try_echo=$ac_try;;
34241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34244 grep -v '^ *+' conftest.er1 >conftest.err
34246 cat conftest.err >&5
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); } >/dev/null; then
34249 if test -s conftest.err; then
34250 ac_cpp_err=$ac_c_preproc_warn_flag
34251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34258 if test -z "$ac_cpp_err"; then
34259 ac_header_preproc=yes
34261 echo "$as_me: failed program was:" >&5
34262 sed 's/^/| /' conftest.$ac_ext >&5
34264 ac_header_preproc=no
34267 rm -f conftest.err conftest.$ac_ext
34268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34269 echo "${ECHO_T}$ac_header_preproc" >&6; }
34271 # So? What about this header?
34272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34278 ac_header_preproc=yes
34281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34294 ## ----------------------------------- ##
34295 ## Report this to llvmbugs@cs.uiuc.edu ##
34296 ## ----------------------------------- ##
34298 ) | sed "s/^/$as_me: WARNING: /" >&2
34301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34306 eval "$as_ac_Header=\$ac_header_preproc"
34308 ac_res=`eval echo '${'$as_ac_Header'}'`
34309 { echo "$as_me:$LINENO: result: $ac_res" >&5
34310 echo "${ECHO_T}$ac_res" >&6; }
34313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34314 cat >>confdefs.h <<_ACEOF
34315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34323 for ac_func in getpagesize
34325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34329 echo $ECHO_N "(cached) $ECHO_C" >&6
34331 cat >conftest.$ac_ext <<_ACEOF
34334 cat confdefs.h >>conftest.$ac_ext
34335 cat >>conftest.$ac_ext <<_ACEOF
34336 /* end confdefs.h. */
34337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34339 #define $ac_func innocuous_$ac_func
34341 /* System header to define __stub macros and hopefully few prototypes,
34342 which can conflict with char $ac_func (); below.
34343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34344 <limits.h> exists even on freestanding compilers. */
34347 # include <limits.h>
34349 # include <assert.h>
34354 /* Override any GCC internal prototype to avoid an error.
34355 Use char because int might match the return type of a GCC
34356 builtin and then its argument prototype would still apply. */
34361 /* The GNU C library defines this for functions which it implements
34362 to always fail with ENOSYS. Some functions are actually named
34363 something starting with __ and the normal name is an alias. */
34364 #if defined __stub_$ac_func || defined __stub___$ac_func
34371 return $ac_func ();
34376 rm -f conftest.$ac_objext conftest$ac_exeext
34377 if { (ac_try="$ac_link"
34378 case "(($ac_try" in
34379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383 (eval "$ac_link") 2>conftest.er1
34385 grep -v '^ *+' conftest.er1 >conftest.err
34387 cat conftest.err >&5
34388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); } &&
34390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34391 { (case "(($ac_try" in
34392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34393 *) ac_try_echo=$ac_try;;
34395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34396 (eval "$ac_try") 2>&5
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); }; } &&
34400 { ac_try='test -s conftest$ac_exeext'
34401 { (case "(($ac_try" in
34402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34403 *) ac_try_echo=$ac_try;;
34405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34406 (eval "$ac_try") 2>&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); }; }; then
34410 eval "$as_ac_var=yes"
34412 echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34415 eval "$as_ac_var=no"
34418 rm -f core conftest.err conftest.$ac_objext \
34419 conftest$ac_exeext conftest.$ac_ext
34421 ac_res=`eval echo '${'$as_ac_var'}'`
34422 { echo "$as_me:$LINENO: result: $ac_res" >&5
34423 echo "${ECHO_T}$ac_res" >&6; }
34424 if test `eval echo '${'$as_ac_var'}'` = yes; then
34425 cat >>confdefs.h <<_ACEOF
34426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34432 { echo "$as_me:$LINENO: checking for working mmap" >&5
34433 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34434 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34435 echo $ECHO_N "(cached) $ECHO_C" >&6
34437 if test "$cross_compiling" = yes; then
34438 ac_cv_func_mmap_fixed_mapped=no
34440 cat >conftest.$ac_ext <<_ACEOF
34443 cat confdefs.h >>conftest.$ac_ext
34444 cat >>conftest.$ac_ext <<_ACEOF
34445 /* end confdefs.h. */
34446 $ac_includes_default
34447 /* malloc might have been renamed as rpl_malloc. */
34450 /* Thanks to Mike Haertel and Jim Avera for this test.
34451 Here is a matrix of mmap possibilities:
34452 mmap private not fixed
34453 mmap private fixed at somewhere currently unmapped
34454 mmap private fixed at somewhere already mapped
34455 mmap shared not fixed
34456 mmap shared fixed at somewhere currently unmapped
34457 mmap shared fixed at somewhere already mapped
34458 For private mappings, we should verify that changes cannot be read()
34459 back from the file, nor mmap's back from the file at a different
34460 address. (There have been systems where private was not correctly
34461 implemented like the infamous i386 svr4.0, and systems where the
34462 VM page cache was not coherent with the file system buffer cache
34463 like early versions of FreeBSD and possibly contemporary NetBSD.)
34464 For shared mappings, we should conversely verify that changes get
34465 propagated back to all the places they're supposed to be.
34467 Grep wants private fixed already mapped.
34468 The main things grep needs to know about mmap are:
34469 * does it exist and is it safe to write into the mmap'd area
34470 * how to use it (BSD variants) */
34473 #include <sys/mman.h>
34475 #if !STDC_HEADERS && !HAVE_STDLIB_H
34479 /* This mess was copied from the GNU getpagesize.h. */
34480 #if !HAVE_GETPAGESIZE
34481 /* Assume that all systems that can run configure have sys/param.h. */
34482 # if !HAVE_SYS_PARAM_H
34483 # define HAVE_SYS_PARAM_H 1
34486 # ifdef _SC_PAGESIZE
34487 # define getpagesize() sysconf(_SC_PAGESIZE)
34488 # else /* no _SC_PAGESIZE */
34489 # if HAVE_SYS_PARAM_H
34490 # include <sys/param.h>
34491 # ifdef EXEC_PAGESIZE
34492 # define getpagesize() EXEC_PAGESIZE
34493 # else /* no EXEC_PAGESIZE */
34495 # define getpagesize() NBPG * CLSIZE
34498 # endif /* no CLSIZE */
34499 # else /* no NBPG */
34501 # define getpagesize() NBPC
34502 # else /* no NBPC */
34504 # define getpagesize() PAGESIZE
34505 # endif /* PAGESIZE */
34506 # endif /* no NBPC */
34507 # endif /* no NBPG */
34508 # endif /* no EXEC_PAGESIZE */
34509 # else /* no HAVE_SYS_PARAM_H */
34510 # define getpagesize() 8192 /* punt totally */
34511 # endif /* no HAVE_SYS_PARAM_H */
34512 # endif /* no _SC_PAGESIZE */
34514 #endif /* no HAVE_GETPAGESIZE */
34519 char *data, *data2, *data3;
34523 pagesize = getpagesize ();
34525 /* First, make a file with some known garbage in it. */
34526 data = (char *) malloc (pagesize);
34529 for (i = 0; i < pagesize; ++i)
34530 *(data + i) = rand ();
34532 fd = creat ("conftest.mmap", 0600);
34535 if (write (fd, data, pagesize) != pagesize)
34539 /* Next, try to mmap the file at a fixed address which already has
34540 something else allocated at it. If we can, also make sure that
34541 we see the same garbage. */
34542 fd = open ("conftest.mmap", O_RDWR);
34545 data2 = (char *) malloc (2 * pagesize);
34548 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34549 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34550 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34552 for (i = 0; i < pagesize; ++i)
34553 if (*(data + i) != *(data2 + i))
34556 /* Finally, make sure that changes to the mapped area do not
34557 percolate back to the file as seen by read(). (This is a bug on
34558 some variants of i386 svr4.0.) */
34559 for (i = 0; i < pagesize; ++i)
34560 *(data2 + i) = *(data2 + i) + 1;
34561 data3 = (char *) malloc (pagesize);
34564 if (read (fd, data3, pagesize) != pagesize)
34566 for (i = 0; i < pagesize; ++i)
34567 if (*(data + i) != *(data3 + i))
34573 rm -f conftest$ac_exeext
34574 if { (ac_try="$ac_link"
34575 case "(($ac_try" in
34576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34577 *) ac_try_echo=$ac_try;;
34579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34580 (eval "$ac_link") 2>&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34584 { (case "(($ac_try" in
34585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34586 *) ac_try_echo=$ac_try;;
34588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34589 (eval "$ac_try") 2>&5
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); }; }; then
34593 ac_cv_func_mmap_fixed_mapped=yes
34595 echo "$as_me: program exited with status $ac_status" >&5
34596 echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34599 ( exit $ac_status )
34600 ac_cv_func_mmap_fixed_mapped=no
34602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34607 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34608 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34609 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34611 cat >>confdefs.h <<\_ACEOF
34612 #define HAVE_MMAP 1
34616 rm -f conftest.mmap
34618 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34619 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34620 if test "${ac_cv_func_mmap_file+set}" = set; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34624 ac_cpp='$CPP $CPPFLAGS'
34625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34629 if test "$cross_compiling" = yes; then
34630 ac_cv_func_mmap_file=no
34632 cat >conftest.$ac_ext <<_ACEOF
34636 cat confdefs.h >>conftest.$ac_ext
34637 cat >>conftest.$ac_ext <<_ACEOF
34638 /* end confdefs.h. */
34640 #include <sys/types.h>
34641 #include <sys/mman.h>
34649 fd = creat ("foo",0777);
34650 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34652 return (fd != (int) MAP_FAILED);
34657 rm -f conftest$ac_exeext
34658 if { (ac_try="$ac_link"
34659 case "(($ac_try" in
34660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34661 *) ac_try_echo=$ac_try;;
34663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34664 (eval "$ac_link") 2>&5
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34668 { (case "(($ac_try" in
34669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34670 *) ac_try_echo=$ac_try;;
34672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34673 (eval "$ac_try") 2>&5
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; }; then
34677 ac_cv_func_mmap_file=yes
34679 echo "$as_me: program exited with status $ac_status" >&5
34680 echo "$as_me: failed program was:" >&5
34681 sed 's/^/| /' conftest.$ac_ext >&5
34683 ( exit $ac_status )
34684 ac_cv_func_mmap_file=no
34686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34691 ac_cpp='$CPP $CPPFLAGS'
34692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34698 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34699 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34700 if test "$ac_cv_func_mmap_file" = yes; then
34702 cat >>confdefs.h <<\_ACEOF
34703 #define HAVE_MMAP_FILE
34710 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34711 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34712 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34713 echo $ECHO_N "(cached) $ECHO_C" >&6
34715 if test "$llvm_cv_os_type" = "Interix" ; then
34716 ac_cv_need_dev_zero_for_mmap=yes
34718 ac_cv_need_dev_zero_for_mmap=no
34722 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34723 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34724 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34726 cat >>confdefs.h <<\_ACEOF
34727 #define NEED_DEV_ZERO_FOR_MMAP 1
34732 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34734 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34735 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34737 if test "$ac_cv_func_mmap_file" = "no"
34739 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34740 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34744 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34745 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34746 cat >conftest.$ac_ext <<_ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h. */
34753 volatile unsigned long val = 1;
34754 __sync_synchronize();
34755 __sync_val_compare_and_swap(&val, 1, 0);
34756 __sync_add_and_fetch(&val, 1);
34757 __sync_sub_and_fetch(&val, 1);
34762 rm -f conftest.$ac_objext conftest$ac_exeext
34763 if { (ac_try="$ac_link"
34764 case "(($ac_try" in
34765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766 *) ac_try_echo=$ac_try;;
34768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769 (eval "$ac_link") 2>conftest.er1
34771 grep -v '^ *+' conftest.er1 >conftest.err
34773 cat conftest.err >&5
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); } &&
34776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34777 { (case "(($ac_try" in
34778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34779 *) ac_try_echo=$ac_try;;
34781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34782 (eval "$ac_try") 2>&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; } &&
34786 { ac_try='test -s conftest$ac_exeext'
34787 { (case "(($ac_try" in
34788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789 *) ac_try_echo=$ac_try;;
34791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34792 (eval "$ac_try") 2>&5
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); }; }; then
34796 { echo "$as_me:$LINENO: result: yes" >&5
34797 echo "${ECHO_T}yes" >&6; }
34799 cat >>confdefs.h <<\_ACEOF
34800 #define LLVM_MULTITHREADED 1
34804 echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34807 { echo "$as_me:$LINENO: result: no" >&5
34808 echo "${ECHO_T}no" >&6; }
34810 cat >>confdefs.h <<\_ACEOF
34811 #define LLVM_MULTITHREADED 0
34814 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34815 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34818 rm -f core conftest.err conftest.$ac_objext \
34819 conftest$ac_exeext conftest.$ac_ext
34824 for ac_func in __dso_handle
34826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34830 echo $ECHO_N "(cached) $ECHO_C" >&6
34832 cat >conftest.$ac_ext <<_ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h. */
34838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34840 #define $ac_func innocuous_$ac_func
34842 /* System header to define __stub macros and hopefully few prototypes,
34843 which can conflict with char $ac_func (); below.
34844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34845 <limits.h> exists even on freestanding compilers. */
34848 # include <limits.h>
34850 # include <assert.h>
34855 /* Override any GCC internal prototype to avoid an error.
34856 Use char because int might match the return type of a GCC
34857 builtin and then its argument prototype would still apply. */
34862 /* The GNU C library defines this for functions which it implements
34863 to always fail with ENOSYS. Some functions are actually named
34864 something starting with __ and the normal name is an alias. */
34865 #if defined __stub_$ac_func || defined __stub___$ac_func
34872 return $ac_func ();
34877 rm -f conftest.$ac_objext conftest$ac_exeext
34878 if { (ac_try="$ac_link"
34879 case "(($ac_try" in
34880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34881 *) ac_try_echo=$ac_try;;
34883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34884 (eval "$ac_link") 2>conftest.er1
34886 grep -v '^ *+' conftest.er1 >conftest.err
34888 cat conftest.err >&5
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); } &&
34891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34892 { (case "(($ac_try" in
34893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34894 *) ac_try_echo=$ac_try;;
34896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34897 (eval "$ac_try") 2>&5
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); }; } &&
34901 { ac_try='test -s conftest$ac_exeext'
34902 { (case "(($ac_try" in
34903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34904 *) ac_try_echo=$ac_try;;
34906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34907 (eval "$ac_try") 2>&5
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 (exit $ac_status); }; }; then
34911 eval "$as_ac_var=yes"
34913 echo "$as_me: failed program was:" >&5
34914 sed 's/^/| /' conftest.$ac_ext >&5
34916 eval "$as_ac_var=no"
34919 rm -f core conftest.err conftest.$ac_objext \
34920 conftest$ac_exeext conftest.$ac_ext
34922 ac_res=`eval echo '${'$as_ac_var'}'`
34923 { echo "$as_me:$LINENO: result: $ac_res" >&5
34924 echo "${ECHO_T}$ac_res" >&6; }
34925 if test `eval echo '${'$as_ac_var'}'` = yes; then
34926 cat >>confdefs.h <<_ACEOF
34927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34934 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34935 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34936 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34937 echo $ECHO_N "(cached) $ECHO_C" >&6
34939 llvm_cv_llvmgcc_sanity="no"
34940 if test -x "$LLVMGCC" ; then
34941 cp /dev/null conftest.c
34942 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34943 grep 'target datalayout =' > /dev/null 2>&1
34944 if test $? -eq 0 ; then
34945 llvm_cv_llvmgcc_sanity="yes"
34950 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34951 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34953 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34954 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34955 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34956 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34957 LLVMCC1=$llvmcc1path
34959 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34960 LLVMCC1PLUS=$llvmcc1pluspath
34962 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34963 LLVMGCCDIR=$llvmgccdir
34965 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34966 LLVMGCCLIBEXEC=$llvmgcclibexec
34968 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34969 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34970 LLVMGCC_VERSION=$llvmgccversion
34972 LLVMGCC_MAJVERS=$llvmgccmajvers
34974 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34975 LLVMGCC_LANGS=$llvmgcclangs
34977 { echo "$as_me:$LINENO: result: ok" >&5
34978 echo "${ECHO_T}ok" >&6; }
34981 SHLIBEXT=$libltdl_cv_shlibext
34984 # Translate the various configuration directories and other basic
34985 # information into substitutions that will end up in Makefile.config.in
34986 # that these configured values can be used by the makefiles
34987 if test "${prefix}" = "NONE" ; then
34988 prefix="/usr/local"
34990 eval LLVM_PREFIX="${prefix}";
34991 eval LLVM_BINDIR="${prefix}/bin";
34992 eval LLVM_LIBDIR="${prefix}/lib";
34993 eval LLVM_DATADIR="${prefix}/share/llvm";
34994 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34995 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34996 eval LLVM_INCLUDEDIR="${prefix}/include";
34997 eval LLVM_INFODIR="${prefix}/info";
34998 eval LLVM_MANDIR="${prefix}/man";
34999 LLVM_CONFIGTIME=`date`
35011 # Place the various directores into the config.h file as #defines so that we
35012 # can know about the installation paths within LLVM.
35014 cat >>confdefs.h <<_ACEOF
35015 #define LLVM_PREFIX "$LLVM_PREFIX"
35019 cat >>confdefs.h <<_ACEOF
35020 #define LLVM_BINDIR "$LLVM_BINDIR"
35024 cat >>confdefs.h <<_ACEOF
35025 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35029 cat >>confdefs.h <<_ACEOF
35030 #define LLVM_DATADIR "$LLVM_DATADIR"
35034 cat >>confdefs.h <<_ACEOF
35035 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35039 cat >>confdefs.h <<_ACEOF
35040 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35044 cat >>confdefs.h <<_ACEOF
35045 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35049 cat >>confdefs.h <<_ACEOF
35050 #define LLVM_INFODIR "$LLVM_INFODIR"
35054 cat >>confdefs.h <<_ACEOF
35055 #define LLVM_MANDIR "$LLVM_MANDIR"
35059 cat >>confdefs.h <<_ACEOF
35060 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35064 cat >>confdefs.h <<_ACEOF
35065 #define LLVM_HOSTTRIPLE "$host"
35069 # Determine which bindings to build.
35070 if test "$BINDINGS_TO_BUILD" = auto ; then
35071 BINDINGS_TO_BUILD=""
35072 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35073 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35076 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35079 # This isn't really configurey, but it avoids having to repeat the list in
35084 # Do any work necessary to ensure that bindings have what they need.
35085 binding_prereqs_failed=0
35086 for a_binding in $BINDINGS_TO_BUILD ; do
35087 case "$a_binding" in
35089 if test "x$OCAMLC" = x ; then
35090 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35091 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35092 binding_prereqs_failed=1
35094 if test "x$OCAMLDEP" = x ; then
35095 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35096 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35097 binding_prereqs_failed=1
35099 if test "x$OCAMLOPT" = x ; then
35100 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35101 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35103 if test "x$with_ocaml_libdir" != xauto ; then
35104 OCAML_LIBDIR=$with_ocaml_libdir
35107 ocaml_stdlib="`"$OCAMLC" -where`"
35108 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35110 # ocaml stdlib is beneath our prefix; use stdlib
35111 OCAML_LIBDIR=$ocaml_stdlib
35114 # ocaml stdlib is outside our prefix; use libdir/ocaml
35115 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35122 if test "$binding_prereqs_failed" = 1 ; then
35123 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35124 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35125 { (exit 1); exit 1; }; }
35128 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35129 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35130 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35131 echo $ECHO_N "(cached) $ECHO_C" >&6
35134 ac_cpp='$CXXCPP $CPPFLAGS'
35135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35139 oldcxxflags="$CXXFLAGS"
35140 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35141 cat >conftest.$ac_ext <<_ACEOF
35144 cat confdefs.h >>conftest.$ac_ext
35145 cat >>conftest.$ac_ext <<_ACEOF
35146 /* end confdefs.h. */
35156 rm -f conftest.$ac_objext
35157 if { (ac_try="$ac_compile"
35158 case "(($ac_try" in
35159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35160 *) ac_try_echo=$ac_try;;
35162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35163 (eval "$ac_compile") 2>conftest.er1
35165 grep -v '^ *+' conftest.er1 >conftest.err
35167 cat conftest.err >&5
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169 (exit $ac_status); } &&
35170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35171 { (case "(($ac_try" in
35172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35173 *) ac_try_echo=$ac_try;;
35175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35176 (eval "$ac_try") 2>&5
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; } &&
35180 { ac_try='test -s conftest.$ac_objext'
35181 { (case "(($ac_try" in
35182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35183 *) ac_try_echo=$ac_try;;
35185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35186 (eval "$ac_try") 2>&5
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); }; }; then
35190 llvm_cv_cxx_visibility_inlines_hidden=yes
35192 echo "$as_me: failed program was:" >&5
35193 sed 's/^/| /' conftest.$ac_ext >&5
35195 llvm_cv_cxx_visibility_inlines_hidden=no
35198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35199 CXXFLAGS="$oldcxxflags"
35201 ac_cpp='$CPP $CPPFLAGS'
35202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35208 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35209 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35210 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35211 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35214 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35219 if test "$llvm_cv_link_use_r" = "yes" ; then
35226 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35227 RDYNAMIC="-Wl,-export-dynamic"
35234 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35236 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35238 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35240 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35242 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35244 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35247 ac_config_files="$ac_config_files Makefile.config"
35250 ac_config_files="$ac_config_files llvm.spec"
35253 ac_config_files="$ac_config_files docs/doxygen.cfg"
35256 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35259 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35262 ac_config_commands="$ac_config_commands setup"
35264 ac_config_commands="$ac_config_commands Makefile"
35267 ac_config_commands="$ac_config_commands Makefile.common"
35270 ac_config_commands="$ac_config_commands examples/Makefile"
35273 ac_config_commands="$ac_config_commands lib/Makefile"
35276 ac_config_commands="$ac_config_commands runtime/Makefile"
35279 ac_config_commands="$ac_config_commands test/Makefile"
35282 ac_config_commands="$ac_config_commands test/Makefile.tests"
35285 ac_config_commands="$ac_config_commands unittests/Makefile"
35288 ac_config_commands="$ac_config_commands tools/Makefile"
35291 ac_config_commands="$ac_config_commands utils/Makefile"
35294 ac_config_commands="$ac_config_commands projects/Makefile"
35297 ac_config_commands="$ac_config_commands bindings/Makefile"
35300 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35304 cat >confcache <<\_ACEOF
35305 # This file is a shell script that caches the results of configure
35306 # tests run on this system so they can be shared between configure
35307 # scripts and configure runs, see configure's option --config-cache.
35308 # It is not useful on other systems. If it contains results you don't
35309 # want to keep, you may remove or edit it.
35311 # config.status only pays attention to the cache file if you give it
35312 # the --recheck option to rerun configure.
35314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35316 # following values.
35320 # The following way of writing the cache mishandles newlines in values,
35321 # but we know of no workaround that is simple, portable, and efficient.
35322 # So, we kill variables containing newlines.
35323 # Ultrix sh set writes to stderr and can't be redirected directly,
35324 # and sets the high bit in the cache file unless we assign to the vars.
35326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35327 eval ac_val=\$$ac_var
35331 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35332 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35335 _ | IFS | as_nl) ;; #(
35336 *) $as_unset $ac_var ;;
35342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35343 *${as_nl}ac_space=\ *)
35344 # `set' does not quote correctly, so add quotes (double-quote
35345 # substitution turns \\\\ into \\, and sed turns \\ into \).
35348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35351 # `set' quotes correctly as required by POSIX, so do not add quotes.
35352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35366 if test -w "$cache_file"; then
35367 test "x$cache_file" != "x/dev/null" &&
35368 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35369 echo "$as_me: updating cache $cache_file" >&6;}
35370 cat confcache >$cache_file
35372 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35373 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35379 # Let make expand exec_prefix.
35380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35382 DEFS=-DHAVE_CONFIG_H
35386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35387 # 1. Remove the extension, and $U if already installed.
35388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35389 ac_i=`echo "$ac_i" | sed "$ac_script"`
35390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35391 # will be set to the directory where LIBOBJS objects are built.
35392 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35393 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35395 LIBOBJS=$ac_libobjs
35397 LTLIBOBJS=$ac_ltlibobjs
35400 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35401 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35402 Usually this means the macro was only invoked conditionally." >&5
35403 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35404 Usually this means the macro was only invoked conditionally." >&2;}
35405 { (exit 1); exit 1; }; }
35407 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35408 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35409 Usually this means the macro was only invoked conditionally." >&5
35410 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35411 Usually this means the macro was only invoked conditionally." >&2;}
35412 { (exit 1); exit 1; }; }
35415 : ${CONFIG_STATUS=./config.status}
35416 ac_clean_files_save=$ac_clean_files
35417 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35418 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35419 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35420 cat >$CONFIG_STATUS <<_ACEOF
35422 # Generated by $as_me.
35423 # Run this file to recreate the current configuration.
35424 # Compiler output produced by configure, useful for debugging
35425 # configure, is in config.log if it exists.
35428 ac_cs_recheck=false
35430 SHELL=\${CONFIG_SHELL-$SHELL}
35433 cat >>$CONFIG_STATUS <<\_ACEOF
35434 ## --------------------- ##
35435 ## M4sh Initialization. ##
35436 ## --------------------- ##
35438 # Be Bourne compatible
35439 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35442 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35443 # is contrary to our usage. Disable this feature.
35444 alias -g '${1+"$@"}'='"$@"'
35445 setopt NO_GLOB_SUBST
35447 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35449 BIN_SH=xpg4; export BIN_SH # for Tru64
35450 DUALCASE=1; export DUALCASE # for MKS sh
35454 # Avoid depending upon Character Ranges.
35455 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35456 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35457 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35458 as_cr_digits='0123456789'
35459 as_cr_alnum=$as_cr_Letters$as_cr_digits
35461 # The user is always right.
35462 if test "${PATH_SEPARATOR+set}" != set; then
35463 echo "#! /bin/sh" >conf$$.sh
35464 echo "exit 0" >>conf$$.sh
35466 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35474 # Support unset when possible.
35475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35483 # We need space, tab and new line, in precisely that order. Quoting is
35484 # there to prevent editors from complaining about space-tab.
35485 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35486 # splitting by setting IFS to empty value.)
35491 # Find who we are. Look in the path if we contain no directory separator.
35493 *[\\/]* ) as_myself=$0 ;;
35494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35495 for as_dir in $PATH
35498 test -z "$as_dir" && as_dir=.
35499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35505 # We did not find ourselves, most probably we were run as `sh COMMAND'
35506 # in which case we are not to be found in the path.
35507 if test "x$as_myself" = x; then
35510 if test ! -f "$as_myself"; then
35511 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35512 { (exit 1); exit 1; }
35515 # Work around bugs in pre-3.0 UWIN ksh.
35516 for as_var in ENV MAIL MAILPATH
35517 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35525 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35526 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35527 LC_TELEPHONE LC_TIME
35529 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35530 eval $as_var=C; export $as_var
35532 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35536 # Required to use basename.
35537 if expr a : '\(a\)' >/dev/null 2>&1 &&
35538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35545 as_basename=basename
35551 # Name of the executable.
35552 as_me=`$as_basename -- "$0" ||
35553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35554 X"$0" : 'X\(//\)$' \| \
35555 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35557 sed '/^.*\/\([^/][^/]*\)\/*$/{
35576 as_lineno_1=$LINENO
35577 as_lineno_2=$LINENO
35578 test "x$as_lineno_1" != "x$as_lineno_2" &&
35579 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35581 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35582 # uniformly replaced by the line number. The first 'sed' inserts a
35583 # line-number line after each line using $LINENO; the second 'sed'
35584 # does the real work. The second script uses 'N' to pair each
35585 # line-number line with the line containing $LINENO, and appends
35586 # trailing '-' during substitution so that $LINENO is not a special
35587 # case at line end.
35588 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35589 # scripts with optimization help from Paolo Bonzini. Blame Lee
35590 # E. McMahon (1931-1989) for sed's syntax. :-)
35602 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35605 ' >$as_me.lineno &&
35606 chmod +x "$as_me.lineno" ||
35607 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35608 { (exit 1); exit 1; }; }
35610 # Don't try to exec as it changes $[0], causing all sort of problems
35611 # (the dirname of $[0] is not the place where we might find the
35612 # original and so on. Autoconf is especially sensitive to this).
35613 . "./$as_me.lineno"
35614 # Exit status is that of the last command.
35619 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35625 ECHO_C= ECHO_N= ECHO_T=
35626 case `echo -n x` in
35628 case `echo 'x\c'` in
35629 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35636 if expr a : '\(a\)' >/dev/null 2>&1 &&
35637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35643 rm -f conf$$ conf$$.exe conf$$.file
35644 if test -d conf$$.dir; then
35645 rm -f conf$$.dir/conf$$.file
35651 if ln -s conf$$.file conf$$ 2>/dev/null; then
35653 # ... but there are two gotchas:
35654 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35655 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35656 # In both cases, we have to default to `cp -p'.
35657 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35659 elif ln conf$$.file conf$$ 2>/dev/null; then
35664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35665 rmdir conf$$.dir 2>/dev/null
35667 if mkdir -p . 2>/dev/null; then
35670 test -d ./-p && rmdir ./-p
35674 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35675 # systems may use methods other than mode bits to determine executability.
35676 cat >conf$$.file <<_ASEOF
35680 chmod +x conf$$.file
35681 if test -x conf$$.file >/dev/null 2>&1; then
35682 as_executable_p="test -x"
35688 # Sed expression to map a string onto a valid CPP name.
35689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35691 # Sed expression to map a string onto a valid variable name.
35692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35697 # Save the log message, to keep $[0] and so on meaningful, and to
35698 # report actual input values of CONFIG_FILES etc. instead of their
35699 # values after options handling.
35701 This file was extended by llvm $as_me 2.6svn, which was
35702 generated by GNU Autoconf 2.60. Invocation command line was
35704 CONFIG_FILES = $CONFIG_FILES
35705 CONFIG_HEADERS = $CONFIG_HEADERS
35706 CONFIG_LINKS = $CONFIG_LINKS
35707 CONFIG_COMMANDS = $CONFIG_COMMANDS
35710 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35715 cat >>$CONFIG_STATUS <<_ACEOF
35716 # Files that config.status was made for.
35717 config_files="$ac_config_files"
35718 config_headers="$ac_config_headers"
35719 config_commands="$ac_config_commands"
35723 cat >>$CONFIG_STATUS <<\_ACEOF
35725 \`$as_me' instantiates files from templates according to the
35726 current configuration.
35728 Usage: $0 [OPTIONS] [FILE]...
35730 -h, --help print this help, then exit
35731 -V, --version print version number, then exit
35732 -q, --quiet do not print progress messages
35733 -d, --debug don't remove temporary files
35734 --recheck update $as_me by reconfiguring in the same conditions
35735 --file=FILE[:TEMPLATE]
35736 instantiate the configuration file FILE
35737 --header=FILE[:TEMPLATE]
35738 instantiate the configuration header FILE
35740 Configuration files:
35743 Configuration headers:
35746 Configuration commands:
35749 Report bugs to <bug-autoconf@gnu.org>."
35752 cat >>$CONFIG_STATUS <<_ACEOF
35754 llvm config.status 2.6svn
35755 configured by $0, generated by GNU Autoconf 2.60,
35756 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35758 Copyright (C) 2006 Free Software Foundation, Inc.
35759 This config.status script is free software; the Free Software Foundation
35760 gives unlimited permission to copy, distribute and modify it."
35767 cat >>$CONFIG_STATUS <<\_ACEOF
35768 # If no file are specified by the user, then we need to provide default
35769 # value. By we need to know if files were specified by the user.
35775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35776 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35787 # Handling of the options.
35788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35791 echo "$ac_cs_version"; exit ;;
35792 --debug | --debu | --deb | --de | --d | -d )
35794 --file | --fil | --fi | --f )
35796 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35797 ac_need_defaults=false;;
35798 --header | --heade | --head | --hea )
35800 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35801 ac_need_defaults=false;;
35803 # Conflict between --help and --header
35804 { echo "$as_me: error: ambiguous option: $1
35805 Try \`$0 --help' for more information." >&2
35806 { (exit 1); exit 1; }; };;
35807 --help | --hel | -h )
35808 echo "$ac_cs_usage"; exit ;;
35809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35810 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35813 # This is an error.
35814 -*) { echo "$as_me: error: unrecognized option: $1
35815 Try \`$0 --help' for more information." >&2
35816 { (exit 1); exit 1; }; } ;;
35818 *) ac_config_targets="$ac_config_targets $1"
35819 ac_need_defaults=false ;;
35825 ac_configure_extra_args=
35827 if $ac_cs_silent; then
35829 ac_configure_extra_args="$ac_configure_extra_args --silent"
35833 cat >>$CONFIG_STATUS <<_ACEOF
35834 if \$ac_cs_recheck; then
35835 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35836 CONFIG_SHELL=$SHELL
35837 export CONFIG_SHELL
35838 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35842 cat >>$CONFIG_STATUS <<\_ACEOF
35846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35847 ## Running $as_me. ##
35853 cat >>$CONFIG_STATUS <<_ACEOF
35857 llvm_src="${srcdir}"
35861 cat >>$CONFIG_STATUS <<\_ACEOF
35863 # Handling of arguments.
35864 for ac_config_target in $ac_config_targets
35866 case $ac_config_target in
35867 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35868 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35869 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35870 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35871 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35872 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35873 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35874 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35875 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35876 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35877 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35878 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35879 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35880 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35881 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35882 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35883 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35884 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35885 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35886 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35887 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35888 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35889 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35890 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35891 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35893 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35894 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35895 { (exit 1); exit 1; }; };;
35900 # If the user did not use the arguments to specify the items to instantiate,
35901 # then the envvar interface is used. Set only those that are not.
35902 # We use the long form for the default assignment because of an extremely
35903 # bizarre bug on SunOS 4.1.3.
35904 if $ac_need_defaults; then
35905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35910 # Have a temporary directory for convenience. Make it in the build tree
35911 # simply because there is no reason against having it here, and in addition,
35912 # creating and moving files from /tmp can sometimes cause problems.
35913 # Hook for its removal unless debugging.
35914 # Note that there is a small window in which the directory will not be cleaned:
35915 # after its creation but before its name has been assigned to `$tmp'.
35919 trap 'exit_status=$?
35920 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35922 trap '{ (exit 1); exit 1; }' 1 2 13 15
35924 # Create a (secure) tmp directory for tmp files.
35927 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35928 test -n "$tmp" && test -d "$tmp"
35931 tmp=./conf$$-$RANDOM
35932 (umask 077 && mkdir "$tmp")
35935 echo "$me: cannot create a temporary directory in ." >&2
35936 { (exit 1); exit 1; }
35940 # Set up the sed scripts for CONFIG_FILES section.
35943 # No need to generate the scripts if there are no CONFIG_FILES.
35944 # This happens for instance when ./config.status config.h
35945 if test -n "$CONFIG_FILES"; then
35952 for ac_last_try in false false false false false :; do
35953 cat >conf$$subs.sed <<_ACEOF
35954 SHELL!$SHELL$ac_delim
35955 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35956 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35957 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35958 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35959 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35960 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35961 exec_prefix!$exec_prefix$ac_delim
35962 prefix!$prefix$ac_delim
35963 program_transform_name!$program_transform_name$ac_delim
35964 bindir!$bindir$ac_delim
35965 sbindir!$sbindir$ac_delim
35966 libexecdir!$libexecdir$ac_delim
35967 datarootdir!$datarootdir$ac_delim
35968 datadir!$datadir$ac_delim
35969 sysconfdir!$sysconfdir$ac_delim
35970 sharedstatedir!$sharedstatedir$ac_delim
35971 localstatedir!$localstatedir$ac_delim
35972 includedir!$includedir$ac_delim
35973 oldincludedir!$oldincludedir$ac_delim
35974 docdir!$docdir$ac_delim
35975 infodir!$infodir$ac_delim
35976 htmldir!$htmldir$ac_delim
35977 dvidir!$dvidir$ac_delim
35978 pdfdir!$pdfdir$ac_delim
35979 psdir!$psdir$ac_delim
35980 libdir!$libdir$ac_delim
35981 localedir!$localedir$ac_delim
35982 mandir!$mandir$ac_delim
35983 DEFS!$DEFS$ac_delim
35984 ECHO_C!$ECHO_C$ac_delim
35985 ECHO_N!$ECHO_N$ac_delim
35986 ECHO_T!$ECHO_T$ac_delim
35987 LIBS!$LIBS$ac_delim
35988 build_alias!$build_alias$ac_delim
35989 host_alias!$host_alias$ac_delim
35990 target_alias!$target_alias$ac_delim
35991 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35992 subdirs!$subdirs$ac_delim
35993 build!$build$ac_delim
35994 build_cpu!$build_cpu$ac_delim
35995 build_vendor!$build_vendor$ac_delim
35996 build_os!$build_os$ac_delim
35997 host!$host$ac_delim
35998 host_cpu!$host_cpu$ac_delim
35999 host_vendor!$host_vendor$ac_delim
36000 host_os!$host_os$ac_delim
36001 target!$target$ac_delim
36002 target_cpu!$target_cpu$ac_delim
36003 target_vendor!$target_vendor$ac_delim
36004 target_os!$target_os$ac_delim
36006 LINKALL!$LINKALL$ac_delim
36007 NOLINKALL!$NOLINKALL$ac_delim
36008 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36009 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36010 ARCH!$ARCH$ac_delim
36011 ENDIAN!$ENDIAN$ac_delim
36013 CFLAGS!$CFLAGS$ac_delim
36014 LDFLAGS!$LDFLAGS$ac_delim
36015 CPPFLAGS!$CPPFLAGS$ac_delim
36016 ac_ct_CC!$ac_ct_CC$ac_delim
36017 EXEEXT!$EXEEXT$ac_delim
36018 OBJEXT!$OBJEXT$ac_delim
36020 GREP!$GREP$ac_delim
36021 EGREP!$EGREP$ac_delim
36022 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36023 BUILD_CC!$BUILD_CC$ac_delim
36024 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36025 BUILD_CXX!$BUILD_CXX$ac_delim
36026 CVSBUILD!$CVSBUILD$ac_delim
36027 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36028 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36029 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36030 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36031 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36032 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36034 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36035 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36036 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36037 ENABLE_PIC!$ENABLE_PIC$ac_delim
36038 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36039 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36040 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36041 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36042 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36043 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36044 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36045 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36046 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36048 CXXFLAGS!$CXXFLAGS$ac_delim
36049 ac_ct_CXX!$ac_ct_CXX$ac_delim
36053 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36055 elif $ac_last_try; then
36056 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36057 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36058 { (exit 1); exit 1; }; }
36060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36064 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36065 if test -n "$ac_eof"; then
36066 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36067 ac_eof=`expr $ac_eof + 1`
36070 cat >>$CONFIG_STATUS <<_ACEOF
36071 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36075 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36076 s/^/s,@/; s/!/@,|#_!!_#|/
36079 s/'"$ac_delim"'$/,g/; t
36081 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36082 ' >>$CONFIG_STATUS <conf$$subs.sed
36083 rm -f conf$$subs.sed
36084 cat >>$CONFIG_STATUS <<_ACEOF
36090 for ac_last_try in false false false false false :; do
36091 cat >conf$$subs.sed <<_ACEOF
36092 ifGNUmake!$ifGNUmake$ac_delim
36093 LN_S!$LN_S$ac_delim
36096 DATE!$DATE$ac_delim
36097 FIND!$FIND$ac_delim
36098 MKDIR!$MKDIR$ac_delim
36100 RANLIB!$RANLIB$ac_delim
36104 BINPWD!$BINPWD$ac_delim
36105 GRAPHVIZ!$GRAPHVIZ$ac_delim
36108 NEATO!$NEATO$ac_delim
36109 TWOPI!$TWOPI$ac_delim
36110 CIRCO!$CIRCO$ac_delim
36112 DOTTY!$DOTTY$ac_delim
36113 PERL!$PERL$ac_delim
36114 HAVE_PERL!$HAVE_PERL$ac_delim
36115 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36116 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36117 INSTALL_DATA!$INSTALL_DATA$ac_delim
36118 BZIP2!$BZIP2$ac_delim
36119 DOXYGEN!$DOXYGEN$ac_delim
36120 GROFF!$GROFF$ac_delim
36121 GZIP!$GZIP$ac_delim
36122 POD2HTML!$POD2HTML$ac_delim
36123 POD2MAN!$POD2MAN$ac_delim
36124 RUNTEST!$RUNTEST$ac_delim
36125 TCLSH!$TCLSH$ac_delim
36127 OCAMLC!$OCAMLC$ac_delim
36128 OCAMLOPT!$OCAMLOPT$ac_delim
36129 OCAMLDEP!$OCAMLDEP$ac_delim
36130 OCAMLDOC!$OCAMLDOC$ac_delim
36132 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36133 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36134 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36135 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36136 LIBADD_DL!$LIBADD_DL$ac_delim
36137 ECHO!$ECHO$ac_delim
36139 STRIP!$STRIP$ac_delim
36140 CXXCPP!$CXXCPP$ac_delim
36142 FFLAGS!$FFLAGS$ac_delim
36143 ac_ct_F77!$ac_ct_F77$ac_delim
36144 LIBTOOL!$LIBTOOL$ac_delim
36145 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36146 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36147 LLVMGCC!$LLVMGCC$ac_delim
36148 LLVMGXX!$LLVMGXX$ac_delim
36149 USE_UDIS86!$USE_UDIS86$ac_delim
36150 USE_OPROFILE!$USE_OPROFILE$ac_delim
36151 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36152 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36153 ALLOCA!$ALLOCA$ac_delim
36154 MMAP_FILE!$MMAP_FILE$ac_delim
36155 LLVMCC1!$LLVMCC1$ac_delim
36156 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36157 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36158 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36159 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36160 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36161 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36162 SHLIBEXT!$SHLIBEXT$ac_delim
36163 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36164 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36165 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36166 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36167 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36168 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36169 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36170 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36171 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36172 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36173 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36174 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36175 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36176 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36177 RPATH!$RPATH$ac_delim
36178 RDYNAMIC!$RDYNAMIC$ac_delim
36179 LIBOBJS!$LIBOBJS$ac_delim
36180 LTLIBOBJS!$LTLIBOBJS$ac_delim
36183 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
36185 elif $ac_last_try; then
36186 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36187 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36188 { (exit 1); exit 1; }; }
36190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36194 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36195 if test -n "$ac_eof"; then
36196 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36197 ac_eof=`expr $ac_eof + 1`
36200 cat >>$CONFIG_STATUS <<_ACEOF
36201 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36205 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36206 s/^/s,@/; s/!/@,|#_!!_#|/
36209 s/'"$ac_delim"'$/,g/; t
36211 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36212 ' >>$CONFIG_STATUS <conf$$subs.sed
36213 rm -f conf$$subs.sed
36214 cat >>$CONFIG_STATUS <<_ACEOF
36221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36223 # trailing colons and then remove the whole line if VPATH becomes empty
36224 # (actually we leave an empty line to preserve line numbers).
36225 if test "x$srcdir" = x.; then
36226 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36227 s/:*\$(srcdir):*/:/
36228 s/:*\${srcdir}:*/:/
36230 s/^\([^=]*=[ ]*\):*/\1/
36236 cat >>$CONFIG_STATUS <<\_ACEOF
36237 fi # test -n "$CONFIG_FILES"
36240 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36243 :[FHLC]) ac_mode=$ac_tag; continue;;
36245 case $ac_mode$ac_tag in
36247 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36248 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36249 { (exit 1); exit 1; }; };;
36250 :[FH]-) ac_tag=-:-;;
36251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36268 -) ac_f="$tmp/stdin";;
36269 *) # Look for the file first in the build tree, then in the source tree
36270 # (if the path is not absolute). The absolute path cannot be DOS-style,
36271 # because $ac_f cannot contain `:'.
36275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36277 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36278 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36279 { (exit 1); exit 1; }; };;
36281 ac_file_inputs="$ac_file_inputs $ac_f"
36284 # Let's still pretend it is `configure' which instantiates (i.e., don't
36285 # use $as_me), people would be surprised to read:
36286 # /* config.h. Generated by config.status. */
36287 configure_input="Generated from "`IFS=:
36288 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36289 if test x"$ac_file" != x-; then
36290 configure_input="$ac_file. $configure_input"
36291 { echo "$as_me:$LINENO: creating $ac_file" >&5
36292 echo "$as_me: creating $ac_file" >&6;}
36296 *:-:* | *:-) cat >"$tmp/stdin";;
36301 ac_dir=`$as_dirname -- "$ac_file" ||
36302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36303 X"$ac_file" : 'X\(//\)[^/]' \| \
36304 X"$ac_file" : 'X\(//\)$' \| \
36305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36311 /^X\(\/\/\)[^/].*/{
36326 -*) as_dir=./$as_dir;;
36328 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36332 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36333 *) as_qdir=$as_dir;;
36335 as_dirs="'$as_qdir' $as_dirs"
36336 as_dir=`$as_dirname -- "$as_dir" ||
36337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36338 X"$as_dir" : 'X\(//\)[^/]' \| \
36339 X"$as_dir" : 'X\(//\)$' \| \
36340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36346 /^X\(\/\/\)[^/].*/{
36359 test -d "$as_dir" && break
36361 test -z "$as_dirs" || eval "mkdir $as_dirs"
36362 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36363 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36364 { (exit 1); exit 1; }; }; }
36368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36370 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36371 # A ".." for each directory in $ac_dir_suffix.
36372 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36373 case $ac_top_builddir_sub in
36374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36378 ac_abs_top_builddir=$ac_pwd
36379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36380 # for backward compatibility:
36381 ac_top_builddir=$ac_top_build_prefix
36384 .) # We are building in place.
36386 ac_top_srcdir=$ac_top_builddir_sub
36387 ac_abs_top_srcdir=$ac_pwd ;;
36388 [\\/]* | ?:[\\/]* ) # Absolute name.
36389 ac_srcdir=$srcdir$ac_dir_suffix;
36390 ac_top_srcdir=$srcdir
36391 ac_abs_top_srcdir=$srcdir ;;
36392 *) # Relative name.
36393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36394 ac_top_srcdir=$ac_top_build_prefix$srcdir
36395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36407 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36408 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36412 cat >>$CONFIG_STATUS <<\_ACEOF
36413 # If the template does not know about datarootdir, expand it.
36414 # FIXME: This hack should be removed a few years after 2.60.
36415 ac_datarootdir_hack=; ac_datarootdir_seen=
36417 case `sed -n '/datarootdir/ {
36426 ' $ac_file_inputs` in
36427 *datarootdir*) ac_datarootdir_seen=yes;;
36428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36429 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36430 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36432 cat >>$CONFIG_STATUS <<_ACEOF
36433 ac_datarootdir_hack='
36434 s&@datadir@&$datadir&g
36435 s&@docdir@&$docdir&g
36436 s&@infodir@&$infodir&g
36437 s&@localedir@&$localedir&g
36438 s&@mandir@&$mandir&g
36439 s&\\\${datarootdir}&$datarootdir&g' ;;
36443 # Neutralize VPATH when `$srcdir' = `.'.
36444 # Shell code in configure.ac might set extrasub.
36445 # FIXME: do we really want to maintain this feature?
36446 cat >>$CONFIG_STATUS <<_ACEOF
36450 cat >>$CONFIG_STATUS <<\_ACEOF
36452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36453 s&@configure_input@&$configure_input&;t t
36454 s&@top_builddir@&$ac_top_builddir_sub&;t t
36455 s&@srcdir@&$ac_srcdir&;t t
36456 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36457 s&@top_srcdir@&$ac_top_srcdir&;t t
36458 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36459 s&@builddir@&$ac_builddir&;t t
36460 s&@abs_builddir@&$ac_abs_builddir&;t t
36461 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36462 s&@INSTALL@&$ac_INSTALL&;t t
36463 $ac_datarootdir_hack
36464 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36466 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36467 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36468 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36469 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36470 which seems to be undefined. Please make sure it is defined." >&5
36471 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36472 which seems to be undefined. Please make sure it is defined." >&2;}
36476 -) cat "$tmp/out"; rm -f "$tmp/out";;
36477 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36486 # Transform confdefs.h into a sed script `conftest.defines', that
36487 # substitutes the proper values into config.h.in to produce config.h.
36488 rm -f conftest.defines conftest.tail
36489 # First, append a space to every undef/define line, to ease matching.
36490 echo 's/$/ /' >conftest.defines
36491 # Then, protect against being on the right side of a sed subst, or in
36492 # an unquoted here document, in config.status. If some macros were
36493 # called several times there might be several #defines for the same
36494 # symbol, which is useless. But do not sort them, since the last
36495 # AC_DEFINE must be honored.
36496 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36497 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36498 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36499 # PARAMS is the parameter list in the macro definition--in most cases, it's
36500 # just an empty string.
36501 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36502 ac_dB='\\)[ (].*,\\1define\\2'
36510 s/^[ ]*#[ ]*define[ ][ ]*//
36515 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36516 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36517 ' >>conftest.defines
36519 # Remove the space that was appended to ease matching.
36520 # Then replace #undef with comments. This is necessary, for
36521 # example, in the case of _POSIX_SOURCE, which is predefined and required
36522 # on some systems where configure will not decide to define it.
36523 # (The regexp can be short, since the line contains either #define or #undef.)
36525 s,^[ #]*u.*,/* & */,' >>conftest.defines
36527 # Break up conftest.defines:
36528 ac_max_sed_lines=50
36530 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36531 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36532 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36534 ac_in='$ac_file_inputs'
36535 ac_out='"$tmp/out1"'
36536 ac_nxt='"$tmp/out2"'
36540 # Write a here document:
36541 cat >>$CONFIG_STATUS <<_ACEOF
36542 # First, check the format of the line:
36543 cat >"\$tmp/defines.sed" <<\\CEOF
36544 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36545 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36549 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36551 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36552 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36553 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36554 grep . conftest.tail >/dev/null || break
36555 rm -f conftest.defines
36556 mv conftest.tail conftest.defines
36558 rm -f conftest.defines conftest.tail
36560 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36561 cat >>$CONFIG_STATUS <<\_ACEOF
36562 if test x"$ac_file" != x-; then
36563 echo "/* $configure_input */" >"$tmp/config.h"
36564 cat "$ac_result" >>"$tmp/config.h"
36565 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36566 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36567 echo "$as_me: $ac_file is unchanged" >&6;}
36570 mv "$tmp/config.h" $ac_file
36573 echo "/* $configure_input */"
36579 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36580 echo "$as_me: executing $ac_file commands" >&6;}
36585 case $ac_file$ac_mode in
36586 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36588 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36590 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36592 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36594 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36596 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36598 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36600 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36602 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36604 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36606 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36608 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36610 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36617 { (exit 0); exit 0; }
36619 chmod +x $CONFIG_STATUS
36620 ac_clean_files=$ac_clean_files_save
36623 # configure is writing to config.log, and then calls config.status.
36624 # config.status does its own redirection, appending to config.log.
36625 # Unfortunately, on DOS this fails, as config.log is still kept open
36626 # by configure, so config.status won't be able to write to it; its
36627 # output is simply discarded. So we exec the FD to /dev/null,
36628 # effectively closing config.log, so it can be properly (re)opened and
36629 # appended to by config.status. When coming back to configure, we
36630 # need to make the FD available again.
36631 if test "$no_create" != yes; then
36633 ac_config_status_args=
36634 test "$silent" = yes &&
36635 ac_config_status_args="$ac_config_status_args --quiet"
36637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36640 # would make configure fail if this is the last instruction.
36641 $ac_cs_success || { (exit 1); exit 1; }
36645 # CONFIG_SUBDIRS section.
36647 if test "$no_recursion" != yes; then
36649 # Remove --cache-file and --srcdir arguments so they do not pile up.
36650 ac_sub_configure_args=
36652 eval "set x $ac_configure_args"
36656 if test -n "$ac_prev"; then
36661 -cache-file | --cache-file | --cache-fil | --cache-fi \
36662 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36663 ac_prev=cache_file ;;
36664 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36665 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36668 --config-cache | -C)
36670 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36672 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36674 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36676 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36680 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36682 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36686 # Always prepend --prefix to ensure using the same prefix
36687 # in subdir configurations.
36688 ac_arg="--prefix=$prefix"
36690 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36692 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36695 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36697 # Do not complain, so a configure script can configure whichever
36698 # parts of a large source tree are present.
36699 test -d "$srcdir/$ac_dir" || continue
36701 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36702 echo "$as_me:$LINENO: $ac_msg" >&5
36706 -*) as_dir=./$as_dir;;
36708 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36712 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36713 *) as_qdir=$as_dir;;
36715 as_dirs="'$as_qdir' $as_dirs"
36716 as_dir=`$as_dirname -- "$as_dir" ||
36717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36718 X"$as_dir" : 'X\(//\)[^/]' \| \
36719 X"$as_dir" : 'X\(//\)$' \| \
36720 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36726 /^X\(\/\/\)[^/].*/{
36739 test -d "$as_dir" && break
36741 test -z "$as_dirs" || eval "mkdir $as_dirs"
36742 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36743 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36744 { (exit 1); exit 1; }; }; }
36748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36750 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36751 # A ".." for each directory in $ac_dir_suffix.
36752 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36753 case $ac_top_builddir_sub in
36754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36758 ac_abs_top_builddir=$ac_pwd
36759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36760 # for backward compatibility:
36761 ac_top_builddir=$ac_top_build_prefix
36764 .) # We are building in place.
36766 ac_top_srcdir=$ac_top_builddir_sub
36767 ac_abs_top_srcdir=$ac_pwd ;;
36768 [\\/]* | ?:[\\/]* ) # Absolute name.
36769 ac_srcdir=$srcdir$ac_dir_suffix;
36770 ac_top_srcdir=$srcdir
36771 ac_abs_top_srcdir=$srcdir ;;
36772 *) # Relative name.
36773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36774 ac_top_srcdir=$ac_top_build_prefix$srcdir
36775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36782 # Check for guested configure; otherwise get Cygnus style configure.
36783 if test -f "$ac_srcdir/configure.gnu"; then
36784 ac_sub_configure=$ac_srcdir/configure.gnu
36785 elif test -f "$ac_srcdir/configure"; then
36786 ac_sub_configure=$ac_srcdir/configure
36787 elif test -f "$ac_srcdir/configure.in"; then
36788 # This should be Cygnus configure.
36789 ac_sub_configure=$ac_aux_dir/configure
36791 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36792 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36796 # The recursion is here.
36797 if test -n "$ac_sub_configure"; then
36798 # Make the cache file name correct relative to the subdirectory.
36799 case $cache_file in
36800 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36801 *) # Relative name.
36802 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36805 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36806 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36807 # The eval makes quoting arguments work.
36808 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36809 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36810 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36811 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36812 { (exit 1); exit 1; }; }