2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
837 ENABLE_EXPENSIVE_CHECKS
847 LLVM_ENUM_ASM_PRINTERS
848 LLVM_ENUM_ASM_PARSERS
853 ENABLE_LLVMC_DYNAMIC_PLUGINS
900 CONVENIENCE_LTDL_TRUE
901 CONVENIENCE_LTDL_FALSE
942 ENABLE_VISIBILITY_INLINES_HIDDEN
948 ac_precious_vars='build_alias
962 ac_subdirs_all='projects/sample
964 projects/llvm-stacker
971 projects/llvm-poolalloc
973 projects/llvm-kernel'
975 # Initialize some variables set by options.
977 ac_init_version=false
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
987 program_transform_name=s,x,x,
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012 infodir='${datarootdir}/info'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082 eval enable_$ac_feature=no ;;
1084 -docdir | --docdir | --docdi | --doc | --do)
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1094 -enable-* | --enable-*)
1095 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1101 eval enable_$ac_feature=\$ac_optarg ;;
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 htmldir=$ac_optarg ;;
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1146 -libdir | --libdir | --libdi | --libd)
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1237 -psdir | --psdir | --psdi | --psd | --ps)
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 sbindir=$ac_optarg ;;
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 sharedstatedir=$ac_optarg ;;
1263 -site | --site | --sit)
1265 -site=* | --site=* | --sit=*)
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1292 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_package=`echo $ac_package| sed 's/-/_/g'`
1298 eval with_$ac_package=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1304 { echo "$as_me: error: invalid package name: $ac_package" >&2
1305 { (exit 1); exit 1; }; }
1306 ac_package=`echo $ac_package | sed 's/-/_/g'`
1307 eval with_$ac_package=no ;;
1310 # Obsolete; use --with-x.
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) { echo "$as_me: error: unrecognized option: $ac_option
1328 Try \`$0 --help' for more information." >&2
1329 { (exit 1); exit 1; }; }
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337 { (exit 1); exit 1; }; }
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 { echo "$as_me: error: missing argument to $ac_option" >&2
1355 { (exit 1); exit 1; }; }
1358 # Be sure to have absolute directory names.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1364 eval ac_val=\$$ac_var
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370 { (exit 1); exit 1; }; }
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1378 target=$target_alias
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385 If a cross compiler is detected then cross compile mode will be used." >&2
1386 elif test "x$build_alias" != "x$host_alias"; then
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394 test "$silent" = yes && exec 6>/dev/null
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 { echo "$as_me: error: Working directory cannot be determined" >&2
1401 { (exit 1); exit 1; }; }
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 { echo "$as_me: error: pwd does not report name of working directory" >&2
1404 { (exit 1); exit 1; }; }
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$0" ||
1412 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$0" : 'X\(//\)[^/]' \| \
1414 X"$0" : 'X\(//\)$' \| \
1415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1444 { (exit 1); exit 1; }; }
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1449 { (exit 1); exit 1; }; }
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 # Report the --help message.
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1475 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1482 Defaults for the options are specified in brackets.
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1506 For better control, use the options below.
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 --target=TARGET configure for building compilers for TARGET [HOST]
1539 if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-optimized Compile with optimizations enabled (default is NO)
1549 --enable-profiling Compile with profiling enabled (default is NO)
1550 --enable-assertions Compile with assertion checks enabled (default is
1552 --enable-expensive-checks
1553 Compile with expensive debug checks enabled (default
1555 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 --enable-jit Enable Just In Time Compiling (default is YES)
1558 --enable-doxygen Build doxygen documentation (default is NO)
1559 --enable-threads Use threads if available (default is YES)
1560 --enable-pic Build LLVM with Position Independent Code (default
1562 --enable-targets Build specific host targets:
1563 all,host-only,{target-name} (default=all)
1564 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1566 --enable-bindings Build specific language bindings:
1567 all,auto,none,{binding-name} (default=auto)
1568 --enable-libffi Check for the presence of libffi (default is YES)
1569 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1571 --enable-llvmc-dynamic-plugins
1572 Enable dynamic LLVMC plugins (default is YES)
1573 --enable-ltdl-install install libltdl
1574 --enable-shared[=PKGS] build shared libraries
1576 --enable-static[=PKGS] build static libraries
1578 --enable-fast-install[=PKGS]
1579 optimize for fast installation
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1588 --with-llvmgcc Specify location of llvm-gcc driver (default
1590 --with-llvmgxx Specify location of llvm-g++ driver (default
1592 --with-extra-options Specify additional options to compile LLVM with
1593 --with-ocaml-libdir Specify install location for ocaml bindings (default
1595 --with-binutils-include Specify path to binutils/include/ containing
1596 plugin-api.h file for gold plugin.
1597 --with-tclinclude directory where tcl headers are
1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599 --with-pic try to use only PIC/non-PIC objects [default=use
1601 --with-tags[=TAGS] include additional configurations [automatic]
1602 --with-udis86=<path> Use udis86 external x86 disassembler library
1603 --with-oprofile=<prefix>
1604 Tell OProfile >= 0.9.4 how to symbolize JIT output
1606 Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
1616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1623 Report bugs to <llvmbugs@cs.uiuc.edu>.
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" || continue
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1651 .) # We are building in place.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1684 llvm configure 2.7svn
1685 generated by GNU Autoconf 2.60
1687 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1688 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1692 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1700 It was created by llvm $as_me 2.7svn, which was
1701 generated by GNU Autoconf 2.60. Invocation command line was
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_must_keep_next=false
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790 -* ) ac_must_keep_next=true ;;
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1817 # The following way of writing the cache mishandles newlines in values,
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 echo "$ac_var='\''$ac_val'\''"
1864 if test -n "$ac_subst_files"; then
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1871 for ac_var in $ac_subst_files
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 echo "$ac_var='\''$ac_val'\''"
1882 if test -s confdefs.h; then
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1973 # Check that the precious variables saved in the cache have kept the same
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2063 for ac_dir in autoconf "$srcdir"/autoconf; do
2064 if test -f "$ac_dir/install-sh"; then
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 elif test -f "$ac_dir/install.sh"; then
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 elif test -f "$ac_dir/shtool"; then
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 if test -z "$ac_aux_dir"; then
2079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081 { (exit 1); exit 1; }; }
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 if test ${srcdir} != "." ; then
2095 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
2102 for i in `ls ${srcdir}/projects`
2104 if test -d ${srcdir}/projects/${i} ; then
2107 sample) subdirs="$subdirs projects/sample"
2109 privbracket) subdirs="$subdirs projects/privbracket"
2111 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2113 # llvm-test is the old name of the test-suite, kept here for backwards
2115 llvm-test) subdirs="$subdirs projects/llvm-test"
2117 test-suite) subdirs="$subdirs projects/test-suite"
2119 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2121 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2123 llvm-java) subdirs="$subdirs projects/llvm-java"
2125 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2127 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2129 poolalloc) subdirs="$subdirs projects/poolalloc"
2131 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 ac_build_alias=$build_alias
2154 test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2175 ac_save_IFS=$IFS; IFS='-'
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2212 ac_save_IFS=$IFS; IFS='-'
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225 { echo "$as_me:$LINENO: checking target system type" >&5
2226 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227 if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241 echo "${ECHO_T}$ac_cv_target" >&6; }
2242 case $ac_cv_target in
2244 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245 echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2248 target=$ac_cv_target
2249 ac_save_IFS=$IFS; IFS='-'
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2259 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262 # The aliases save the names the user supplied, while $host etc.
2263 # will get canonicalized.
2264 test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2267 program_prefix=${target_alias}-
2269 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271 if test "${llvm_cv_os_type+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="AIX"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="IRIX"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Cygwin"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,-all_load"
2292 llvm_cv_no_link_all_option="-Wl,-noall_load"
2293 llvm_cv_os_type="Darwin"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="FreeBSD"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="OpenBSD"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="NetBSD"
2309 llvm_cv_platform_type="Unix" ;;
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="DragonFly"
2314 llvm_cv_platform_type="Unix" ;;
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="HP-UX"
2319 llvm_cv_platform_type="Unix" ;;
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="Interix"
2324 llvm_cv_platform_type="Unix" ;;
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="Linux"
2329 llvm_cv_platform_type="Unix" ;;
2331 llvm_cv_link_all_option="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2333 llvm_cv_os_type="SunOS"
2334 llvm_cv_platform_type="Unix" ;;
2336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338 llvm_cv_os_type="Win32"
2339 llvm_cv_platform_type="Win32" ;;
2341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343 llvm_cv_os_type="MingW"
2344 llvm_cv_platform_type="Win32" ;;
2346 llvm_cv_link_all_option="-Wl,--whole-archive"
2347 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2348 llvm_cv_os_type="Freestanding"
2349 llvm_cv_platform_type="Unix" ;;
2351 llvm_cv_link_all_option="-Wl,--whole-archive"
2352 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2353 llvm_cv_os_type="Freestanding"
2354 llvm_cv_platform_type="Unix" ;;
2356 llvm_cv_link_all_option=""
2357 llvm_cv_no_link_all_option=""
2358 llvm_cv_os_type="Unknown"
2359 llvm_cv_platform_type="Unknown" ;;
2362 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2363 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2365 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2366 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2367 if test "${llvm_cv_target_os_type+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 llvm_cv_target_os_type="AIX" ;;
2374 llvm_cv_target_os_type="IRIX" ;;
2376 llvm_cv_target_os_type="Cygwin" ;;
2378 llvm_cv_target_os_type="Darwin" ;;
2380 llvm_cv_target_os_type="FreeBSD" ;;
2382 llvm_cv_target_os_type="OpenBSD" ;;
2384 llvm_cv_target_os_type="NetBSD" ;;
2386 llvm_cv_target_os_type="DragonFly" ;;
2388 llvm_cv_target_os_type="HP-UX" ;;
2390 llvm_cv_target_os_type="Interix" ;;
2392 llvm_cv_target_os_type="Linux" ;;
2394 llvm_cv_target_os_type="SunOS" ;;
2396 llvm_cv_target_os_type="Win32" ;;
2398 llvm_cv_target_os_type="MingW" ;;
2400 llvm_cv_target_os_type="Freestanding" ;;
2402 llvm_cv_target_os_type="Unknown" ;;
2405 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2406 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2408 if test "$llvm_cv_os_type" = "Unknown" ; then
2409 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2410 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2411 { (exit 1); exit 1; }; }
2416 HOST_OS=$llvm_cv_os_type
2418 TARGET_OS=$llvm_cv_target_os_type
2421 LINKALL=$llvm_cv_link_all_option
2423 NOLINKALL=$llvm_cv_no_link_all_option
2426 case $llvm_cv_platform_type in
2429 cat >>confdefs.h <<\_ACEOF
2430 #define LLVM_ON_UNIX 1
2440 cat >>confdefs.h <<\_ACEOF
2441 #define LLVM_ON_WIN32 1
2451 { echo "$as_me:$LINENO: checking target architecture" >&5
2452 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2453 if test "${llvm_cv_target_arch+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 i?86-*) llvm_cv_target_arch="x86" ;;
2458 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2459 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2460 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2461 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2462 arm*-*) llvm_cv_target_arch="ARM" ;;
2463 mips-*) llvm_cv_target_arch="Mips" ;;
2464 pic16-*) llvm_cv_target_arch="PIC16" ;;
2465 xcore-*) llvm_cv_target_arch="XCore" ;;
2466 msp430-*) llvm_cv_target_arch="MSP430" ;;
2467 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2468 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2469 *) llvm_cv_target_arch="Unknown" ;;
2472 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2473 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2475 if test "$llvm_cv_target_arch" = "Unknown" ; then
2476 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2477 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2480 # Determine the LLVM native architecture for the target
2481 case "$llvm_cv_target_arch" in
2482 x86) LLVM_NATIVE_ARCH="X86" ;;
2483 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2484 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2487 ARCH=$llvm_cv_target_arch
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 if test -n "$CC"; then
2525 { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2528 { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2534 if test -z "$ac_cv_prog_CC"; then
2536 # Extract the first word of "gcc", so it can be a program name with args.
2537 set dummy gcc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$ac_ct_CC"; then
2544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_ac_ct_CC="gcc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564 if test -n "$ac_ct_CC"; then
2565 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2566 echo "${ECHO_T}$ac_ct_CC" >&6; }
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2572 if test "x$ac_ct_CC" = x; then
2575 case $cross_compiling:$ac_tool_warned in
2577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2578 whose name does not start with the host triplet. If you think this
2579 configuration is useful to you, please write to autoconf@gnu.org." >&5
2580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2581 whose name does not start with the host triplet. If you think this
2582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2583 ac_tool_warned=yes ;;
2591 if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2594 set dummy ${ac_tool_prefix}cc; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="${ac_tool_prefix}cc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2632 if test -z "$CC"; then
2633 # Extract the first word of "cc", so it can be a program name with args.
2634 set dummy cc; 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.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2652 ac_prog_rejected=yes
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test $ac_prog_rejected = yes; then
2664 # We found a bogon in the path, so make sure we never use it.
2665 set dummy $ac_cv_prog_CC
2667 if test $# != 0; then
2668 # We chose a different compiler from the bogus one.
2669 # However, it has the same basename, so the bogon will be chosen
2670 # first if we set CC to just the basename; use the full file name.
2672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2678 if test -n "$CC"; then
2679 { echo "$as_me:$LINENO: result: $CC" >&5
2680 echo "${ECHO_T}$CC" >&6; }
2682 { echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6; }
2688 if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
2690 for ac_prog in cl.exe
2692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test -n "$CC"; then
2721 { echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6; }
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$CC" && break
2732 if test -z "$CC"; then
2734 for ac_prog in cl.exe
2736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy $ac_prog; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_ac_ct_CC="$ac_prog"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766 echo "${ECHO_T}$ac_ct_CC" >&6; }
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2773 test -n "$ac_ct_CC" && break
2776 if test "x$ac_ct_CC" = x; then
2779 case $cross_compiling:$ac_tool_warned in
2781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2782 whose name does not start with the host triplet. If you think this
2783 configuration is useful to you, please write to autoconf@gnu.org." >&5
2784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2785 whose name does not start with the host triplet. If you think this
2786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2787 ac_tool_warned=yes ;;
2796 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: no acceptable C compiler found in \$PATH
2799 See \`config.log' for more details." >&2;}
2800 { (exit 1); exit 1; }; }
2802 # Provide some information about the compiler.
2803 echo "$as_me:$LINENO: checking for C compiler version" >&5
2804 ac_compiler=`set X $ac_compile; echo $2`
2805 { (ac_try="$ac_compiler --version >&5"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compiler --version >&5") 2>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }
2815 { (ac_try="$ac_compiler -v >&5"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compiler -v >&5") 2>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825 { (ac_try="$ac_compiler -V >&5"
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compiler -V >&5") 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2836 cat >conftest.$ac_ext <<_ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2851 ac_clean_files_save=$ac_clean_files
2852 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2853 # Try to create an executable without -o first, disregard a.out.
2854 # It will help us diagnose broken compilers, and finding out an intuition
2856 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2857 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2858 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2860 # List of possible output files, starting from the most likely.
2861 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2862 # only as a last resort. b.out is created by i960 compilers.
2863 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2865 # The IRIX 6 linker writes into existing files which may not be
2866 # executable, retaining their permissions. Remove them first so a
2867 # subsequent execution test works.
2869 for ac_file in $ac_files
2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2873 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2878 if { (ac_try="$ac_link_default"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link_default") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2891 # so that the user can short-circuit this test for compilers unknown to
2893 for ac_file in $ac_files
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2900 # We found the default executable, but exeext='' is most
2904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 # We set ac_cv_exeext here because the later test for it is not
2909 # safe: cross compilers may not add the suffix if given an `-o'
2910 # argument, so we may need to know it at that point already.
2911 # Even if this section looks crufty: it has the advantage of
2918 test "$ac_cv_exeext" = no && ac_cv_exeext=
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C compiler cannot create executables
2927 See \`config.log' for more details." >&2;}
2928 { (exit 77); exit 77; }; }
2931 ac_exeext=$ac_cv_exeext
2932 { echo "$as_me:$LINENO: result: $ac_file" >&5
2933 echo "${ECHO_T}$ac_file" >&6; }
2935 # Check that the compiler produces executables we can run. If not, either
2936 # the compiler is broken, or we cross compile.
2937 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2938 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2939 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2940 # If not cross compiling, check that we can run a simple program.
2941 if test "$cross_compiling" != yes; then
2942 if { ac_try='./$ac_file'
2943 { (case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_try") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2954 if test "$cross_compiling" = maybe; then
2957 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2958 If you meant to cross compile, use \`--host'.
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot run C compiled programs.
2961 If you meant to cross compile, use \`--host'.
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2967 { echo "$as_me:$LINENO: result: yes" >&5
2968 echo "${ECHO_T}yes" >&6; }
2970 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2971 ac_clean_files=$ac_clean_files_save
2972 # Check that the compiler produces executables we can run. If not, either
2973 # the compiler is broken, or we cross compile.
2974 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2975 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2976 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2977 echo "${ECHO_T}$cross_compiling" >&6; }
2979 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2980 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2981 if { (ac_try="$ac_link"
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_link") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2993 # work properly (i.e., refer to `conftest.exe'), while it won't with
2995 for ac_file in conftest.exe conftest conftest.*; do
2996 test -f "$ac_file" || continue
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3008 See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3012 rm -f conftest$ac_cv_exeext
3013 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3014 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3016 rm -f conftest.$ac_ext
3017 EXEEXT=$ac_cv_exeext
3019 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3021 if test "${ac_cv_objext+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.o conftest.obj
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>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 for ac_file in conftest.o conftest.obj conftest.*; do
3051 test -f "$ac_file" || continue;
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3054 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3063 See \`config.log' for more details." >&5
3064 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3069 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3071 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3072 echo "${ECHO_T}$ac_cv_objext" >&6; }
3073 OBJEXT=$ac_cv_objext
3075 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3076 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3077 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113 { (case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_try") 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3144 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3145 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3146 GCC=`test $ac_compiler_gnu = yes && echo yes`
3147 ac_test_CFLAGS=${CFLAGS+set}
3148 ac_save_CFLAGS=$CFLAGS
3149 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3151 if test "${ac_cv_prog_cc_g+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_save_c_werror_flag=$ac_c_werror_flag
3155 ac_c_werror_flag=yes
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 ac_c_werror_flag=$ac_save_c_werror_flag
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_try") 2>&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3335 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3336 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3337 if test "$ac_test_CFLAGS" = set; then
3338 CFLAGS=$ac_save_CFLAGS
3339 elif test $ac_cv_prog_cc_g = yes; then
3340 if test "$GCC" = yes; then
3346 if test "$GCC" = yes; then
3352 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3353 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_cc_c89+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_cv_prog_cc_c89=no
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370 struct buf { int x; };
3371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372 static char *e (p, i)
3378 static char *f (char * (*g) (char **, int), char **p, ...)
3383 s = g (p, va_arg (v,int));
3388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
3391 as 'x'. The following induces an error, until -std is added to get
3392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
3394 that's true only with -std. */
3395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402 int test (int i, double x);
3403 struct s1 {int (*f) (int a);};
3404 struct s2 {int (*f) (double a);};
3405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3435 { (case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_try") 2>&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_try") 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 ac_cv_prog_cc_c89=$ac_arg
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3462 rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
3465 rm -f conftest.$ac_ext
3470 case "x$ac_cv_prog_cc_c89" in
3472 { echo "$as_me:$LINENO: result: none needed" >&5
3473 echo "${ECHO_T}none needed" >&6; } ;;
3475 { echo "$as_me:$LINENO: result: unsupported" >&5
3476 echo "${ECHO_T}unsupported" >&6; } ;;
3478 CC="$CC $ac_cv_prog_cc_c89"
3479 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3480 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3498 # On Suns, sometimes $CPP names a directory.
3499 if test -n "$CPP" && test -d "$CPP"; then
3502 if test -z "$CPP"; then
3503 if test "${ac_cv_prog_CPP+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 # Double quotes because CPP needs to be expanded
3507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3510 for ac_c_preproc_warn_flag in '' yes
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3525 # include <limits.h>
3527 # include <assert.h>
3531 if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3553 if test -z "$ac_cpp_err"; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 # Broken: fails on valid input.
3563 rm -f conftest.err conftest.$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3575 if { (ac_try="$ac_cpp conftest.$ac_ext"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } >/dev/null; then
3588 if test -s conftest.err; then
3589 ac_cpp_err=$ac_c_preproc_warn_flag
3590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597 if test -z "$ac_cpp_err"; then
3598 # Broken: success on invalid input.
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Passes both tests.
3609 rm -f conftest.err conftest.$ac_ext
3612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3613 rm -f conftest.err conftest.$ac_ext
3614 if $ac_preproc_ok; then
3626 { echo "$as_me:$LINENO: result: $CPP" >&5
3627 echo "${ECHO_T}$CPP" >&6; }
3629 for ac_c_preproc_warn_flag in '' yes
3631 # Use a header file that comes with gcc, so configuring glibc
3632 # with a fresh cross-compiler works.
3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634 # <limits.h> exists even on freestanding compilers.
3635 # On the NeXT, cc -E runs the code through the compiler's parser,
3636 # not just through cpp. "Syntax error" is here to catch this case.
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3644 # include <limits.h>
3646 # include <assert.h>
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev/null; then
3663 if test -s conftest.err; then
3664 ac_cpp_err=$ac_c_preproc_warn_flag
3665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3672 if test -z "$ac_cpp_err"; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3694 if { (ac_try="$ac_cpp conftest.$ac_ext"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } >/dev/null; then
3707 if test -s conftest.err; then
3708 ac_cpp_err=$ac_c_preproc_warn_flag
3709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716 if test -z "$ac_cpp_err"; then
3717 # Broken: success on invalid input.
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 # Passes both tests.
3728 rm -f conftest.err conftest.$ac_ext
3731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732 rm -f conftest.err conftest.$ac_ext
3733 if $ac_preproc_ok; then
3736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&5
3738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3739 See \`config.log' for more details." >&2;}
3740 { (exit 1); exit 1; }; }
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3751 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_GREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 # Extract the first word of "grep ggrep" to use in msg output
3756 if test -z "$GREP"; then
3757 set dummy grep ggrep; ac_prog_name=$2
3758 if test "${ac_cv_path_GREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in grep ggrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3772 # Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3779 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 ac_count=`expr $ac_count + 1`
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801 $ac_path_GREP_found && break 3
3811 GREP="$ac_cv_path_GREP"
3812 if test -z "$GREP"; then
3813 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815 { (exit 1); exit 1; }; }
3819 ac_cv_path_GREP=$GREP
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3826 GREP="$ac_cv_path_GREP"
3829 { echo "$as_me:$LINENO: checking for egrep" >&5
3830 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3831 if test "${ac_cv_path_EGREP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835 then ac_cv_path_EGREP="$GREP -E"
3837 # Extract the first word of "egrep" to use in msg output
3838 if test -z "$EGREP"; then
3839 set dummy egrep; ac_prog_name=$2
3840 if test "${ac_cv_path_EGREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_path_EGREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in egrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3854 # Check for GNU ac_path_EGREP and select it if it is found.
3855 # Check for GNU $ac_path_EGREP
3856 case `"$ac_path_EGREP" --version 2>&1` in
3858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3861 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 echo 'EGREP' >> "conftest.nl"
3868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 ac_count=`expr $ac_count + 1`
3871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_EGREP="$ac_path_EGREP"
3874 ac_path_EGREP_max=$ac_count
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883 $ac_path_EGREP_found && break 3
3893 EGREP="$ac_cv_path_EGREP"
3894 if test -z "$EGREP"; then
3895 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897 { (exit 1); exit 1; }; }
3901 ac_cv_path_EGREP=$EGREP
3907 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3908 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3909 EGREP="$ac_cv_path_EGREP"
3912 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3914 if test "${ac_cv_header_stdc+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3936 rm -f conftest.$ac_objext
3937 if { (ac_try="$ac_compile"
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_compile") 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3951 { (case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_try") 2>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
3960 { ac_try='test -s conftest.$ac_objext'
3961 { (case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_try") 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_header_stdc=yes
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_cv_header_stdc=no
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 if test $ac_cv_header_stdc = yes; then
3981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "memchr" >/dev/null 2>&1; then
3995 ac_cv_header_stdc=no
4001 if test $ac_cv_header_stdc = yes; then
4002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "free" >/dev/null 2>&1; then
4016 ac_cv_header_stdc=no
4022 if test $ac_cv_header_stdc = yes; then
4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024 if test "$cross_compiling" = yes; then
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4035 #if ((' ' & 0x0FF) == 0x020)
4036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4039 # define ISLOWER(c) \
4040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
4043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
4053 || toupper (i) != TOUPPER (i))
4058 rm -f conftest$ac_exeext
4059 if { (ac_try="$ac_link"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 echo "$as_me: program exited with status $ac_status" >&5
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_cv_header_stdc=no
4087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4095 if test $ac_cv_header_stdc = yes; then
4097 cat >>confdefs.h <<\_ACEOF
4098 #define STDC_HEADERS 1
4103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4113 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114 inttypes.h stdint.h unistd.h
4116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 cat >conftest.$ac_ext <<_ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4128 $ac_includes_default
4130 #include <$ac_header>
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 eval "$as_ac_Header=yes"
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 eval "$as_ac_Header=no"
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_res=`eval echo '${'$as_ac_Header'}'`
4177 { echo "$as_me:$LINENO: result: $ac_res" >&5
4178 echo "${ECHO_T}$ac_res" >&6; }
4179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 cat >>confdefs.h <<_ACEOF
4181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4189 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4190 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4191 if test "${ac_cv_c_bigendian+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 # See if sys/param.h defines the BYTE_ORDER macro.
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 #include <sys/types.h>
4202 #include <sys/param.h>
4207 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4215 rm -f conftest.$ac_objext
4216 if { (ac_try="$ac_compile"
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compile") 2>conftest.er1
4224 grep -v '^ *+' conftest.er1 >conftest.err
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 # It does; now see whether it defined to BIG_ENDIAN or not.
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 #include <sys/param.h>
4262 #if BYTE_ORDER != BIG_ENDIAN
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compile") 2>conftest.er1
4279 grep -v '^ *+' conftest.er1 >conftest.err
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_c_bigendian=yes
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_c_bigendian=no
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 # It does not; compile a test program.
4318 if test "$cross_compiling" = yes; then
4319 # try to guess the endianness by grepping values into an object file
4320 ac_cv_c_bigendian=unknown
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4328 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4329 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4330 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4331 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4332 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4336 _ascii (); _ebcdic ();
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4376 ac_cv_c_bigendian=yes
4378 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4379 if test "$ac_cv_c_bigendian" = unknown; then
4380 ac_cv_c_bigendian=no
4382 # finding both strings is unlikely to happen, but who knows?
4383 ac_cv_c_bigendian=unknown
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 $ac_includes_default
4406 /* Are we little or big endian? From Harbison&Steele. */
4410 char c[sizeof (long int)];
4413 return u.c[sizeof (long int) - 1] == 1;
4419 rm -f conftest$ac_exeext
4420 if { (ac_try="$ac_link"
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_link") 2>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4430 { (case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_try") 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_c_bigendian=no
4441 echo "$as_me: program exited with status $ac_status" >&5
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_cv_c_bigendian=yes
4448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4457 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4458 case $ac_cv_c_bigendian in
4466 { { echo "$as_me:$LINENO: error: unknown endianness
4467 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4468 echo "$as_me: error: unknown endianness
4469 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4470 { (exit 1); exit 1; }; } ;;
4474 if test "$cross_compiling" = yes; then
4475 LLVM_CROSS_COMPILING=1
4478 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4479 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4480 if test "${ac_cv_build_exeext+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4484 ac_cv_build_exeext=.exe
4486 ac_build_prefix=${build_alias}-
4488 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4489 set dummy ${ac_build_prefix}gcc; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if test -n "$BUILD_CC"; then
4496 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 BUILD_CC=$ac_cv_prog_BUILD_CC
4516 if test -n "$BUILD_CC"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4518 echo "${ECHO_T}$BUILD_CC" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4525 if test -z "$BUILD_CC"; then
4526 # Extract the first word of "gcc", so it can be a program name with args.
4527 set dummy gcc; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 if test -n "$BUILD_CC"; then
4534 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_BUILD_CC="gcc"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 BUILD_CC=$ac_cv_prog_BUILD_CC
4554 if test -n "$BUILD_CC"; then
4555 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4556 echo "${ECHO_T}$BUILD_CC" >&6; }
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 if test -z "$BUILD_CC"; then
4564 # Extract the first word of "cc", so it can be a program name with args.
4565 set dummy cc; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 if test -n "$BUILD_CC"; then
4572 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4583 ac_prog_rejected=yes
4586 ac_cv_prog_BUILD_CC="cc"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 if test $ac_prog_rejected = yes; then
4595 # We found a bogon in the path, so make sure we never use it.
4596 set dummy $ac_cv_prog_BUILD_CC
4598 if test $# != 0; then
4599 # We chose a different compiler from the bogus one.
4600 # However, it has the same basename, so the bogon will be chosen
4601 # first if we set BUILD_CC to just the basename; use the full file name.
4603 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4608 BUILD_CC=$ac_cv_prog_BUILD_CC
4609 if test -n "$BUILD_CC"; then
4610 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4611 echo "${ECHO_T}$BUILD_CC" >&6; }
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4620 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4621 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4622 { (exit 1); exit 1; }; }
4623 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4625 echo 'int main () { return 0; }' > conftest.$ac_ext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4628 (eval $ac_build_link) 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; then
4632 for file in conftest.*; do
4634 *.c | *.o | *.obj | *.dSYM) ;;
4635 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4639 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4640 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4641 { (exit 1); exit 1; }; }
4644 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4649 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4650 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4651 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4652 ac_build_exeext=$BUILD_EXEEXT
4654 ac_build_prefix=${build_alias}-
4655 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4656 set dummy ${ac_build_prefix}g++; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$BUILD_CXX"; then
4663 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4683 if test -n "$BUILD_CXX"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4685 echo "${ECHO_T}$BUILD_CXX" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4692 if test -z "$BUILD_CXX"; then
4693 # Extract the first word of "g++", so it can be a program name with args.
4694 set dummy g++; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test -n "$BUILD_CXX"; then
4701 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_BUILD_CXX="g++"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4721 if test -n "$BUILD_CXX"; then
4722 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4723 echo "${ECHO_T}$BUILD_CXX" >&6; }
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 if test -z "$BUILD_CXX"; then
4731 # Extract the first word of "c++", so it can be a program name with args.
4732 set dummy c++; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 if test -n "$BUILD_CXX"; then
4739 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4750 ac_prog_rejected=yes
4753 ac_cv_prog_BUILD_CXX="c++"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_BUILD_CXX
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set BUILD_CXX to just the basename; use the full file name.
4770 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4775 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4776 if test -n "$BUILD_CXX"; then
4777 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4778 echo "${ECHO_T}$BUILD_CXX" >&6; }
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4788 LLVM_CROSS_COMPILING=0
4792 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4803 # Check whether --enable-optimized was given.
4804 if test "${enable_optimized+set}" = set; then
4805 enableval=$enable_optimized;
4810 if test ${enableval} = "no" ; then
4814 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4818 # Check whether --enable-profiling was given.
4819 if test "${enable_profiling+set}" = set; then
4820 enableval=$enable_profiling;
4825 if test ${enableval} = "no" ; then
4829 ENABLE_PROFILING=ENABLE_PROFILING=1
4833 # Check whether --enable-assertions was given.
4834 if test "${enable_assertions+set}" = set; then
4835 enableval=$enable_assertions;
4840 if test ${enableval} = "yes" ; then
4844 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4848 # Check whether --enable-expensive-checks was given.
4849 if test "${enable_expensive_checks+set}" = set; then
4850 enableval=$enable_expensive_checks;
4855 if test ${enableval} = "yes" ; then
4856 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4858 EXPENSIVE_CHECKS=yes
4861 ENABLE_EXPENSIVE_CHECKS=
4867 # Check whether --enable-debug-runtime was given.
4868 if test "${enable_debug_runtime+set}" = set; then
4869 enableval=$enable_debug_runtime;
4874 if test ${enableval} = "no" ; then
4878 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4882 # Check whether --enable-jit was given.
4883 if test "${enable_jit+set}" = set; then
4884 enableval=$enable_jit;
4889 if test ${enableval} = "no"
4894 case "$llvm_cv_target_arch" in
4895 x86) TARGET_HAS_JIT=1
4897 Sparc) TARGET_HAS_JIT=0
4899 PowerPC) TARGET_HAS_JIT=1
4901 x86_64) TARGET_HAS_JIT=1
4903 Alpha) TARGET_HAS_JIT=1
4905 ARM) TARGET_HAS_JIT=0
4907 Mips) TARGET_HAS_JIT=0
4909 PIC16) TARGET_HAS_JIT=0
4911 XCore) TARGET_HAS_JIT=0
4913 MSP430) TARGET_HAS_JIT=0
4915 SystemZ) TARGET_HAS_JIT=0
4917 Blackfin) TARGET_HAS_JIT=0
4924 # Check whether --enable-doxygen was given.
4925 if test "${enable_doxygen+set}" = set; then
4926 enableval=$enable_doxygen;
4931 case "$enableval" in
4932 yes) ENABLE_DOXYGEN=1
4934 no) ENABLE_DOXYGEN=0
4936 default) ENABLE_DOXYGEN=0
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4943 # Check whether --enable-threads was given.
4944 if test "${enable_threads+set}" = set; then
4945 enableval=$enable_threads;
4950 case "$enableval" in
4951 yes) ENABLE_THREADS=1
4953 no) ENABLE_THREADS=0
4955 default) ENABLE_THREADS=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4962 cat >>confdefs.h <<_ACEOF
4963 #define ENABLE_THREADS $ENABLE_THREADS
4967 # Check whether --enable-pic was given.
4968 if test "${enable_pic+set}" = set; then
4969 enableval=$enable_pic;
4974 case "$enableval" in
4979 default) ENABLE_PIC=1
4981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4982 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4983 { (exit 1); exit 1; }; } ;;
4986 cat >>confdefs.h <<_ACEOF
4987 #define ENABLE_PIC $ENABLE_PIC
4992 # Check whether --enable-targets was given.
4993 if test "${enable_targets+set}" = set; then
4994 enableval=$enable_targets;
4999 case "$enableval" in
5000 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5002 case "$llvm_cv_target_arch" in
5003 x86) TARGETS_TO_BUILD="X86" ;;
5004 x86_64) TARGETS_TO_BUILD="X86" ;;
5005 Sparc) TARGETS_TO_BUILD="Sparc" ;;
5006 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
5007 Alpha) TARGETS_TO_BUILD="Alpha" ;;
5008 ARM) TARGETS_TO_BUILD="ARM" ;;
5009 Mips) TARGETS_TO_BUILD="Mips" ;;
5010 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
5011 PIC16) TARGETS_TO_BUILD="PIC16" ;;
5012 XCore) TARGETS_TO_BUILD="XCore" ;;
5013 MSP430) TARGETS_TO_BUILD="MSP430" ;;
5014 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
5015 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
5016 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5017 echo "$as_me: error: Can not set target to build" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5021 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5023 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5024 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5025 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5026 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5027 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5028 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5029 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5030 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5031 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5032 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5033 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5034 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5035 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5036 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5037 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5038 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5039 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5040 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5046 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5049 # Determine whether we are building LLVM support for the native architecture.
5050 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5051 for a_target in $TARGETS_TO_BUILD; do
5052 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5053 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5055 cat >>confdefs.h <<_ACEOF
5056 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5062 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5063 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5064 LLVM_ENUM_TARGETS=""
5065 LLVM_ENUM_ASM_PRINTERS=""
5066 LLVM_ENUM_ASM_PARSERS=""
5067 for target_to_build in $TARGETS_TO_BUILD; do
5068 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5069 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5070 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5072 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5073 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5080 # Check whether --enable-cbe-printf-a was given.
5081 if test "${enable_cbe_printf_a+set}" = set; then
5082 enableval=$enable_cbe_printf_a;
5087 case "$enableval" in
5088 yes) ENABLE_CBE_PRINTF_A=1
5090 no) ENABLE_CBE_PRINTF_A=0
5092 default) ENABLE_CBE_PRINTF_A=1
5094 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5095 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5099 cat >>confdefs.h <<_ACEOF
5100 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5105 # Check whether --with-llvmgccdir was given.
5106 if test "${with_llvmgccdir+set}" = set; then
5107 withval=$with_llvmgccdir;
5113 default) WITH_LLVMGCCDIR=default ;;
5114 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5115 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5116 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5121 # Check whether --with-llvmgcc was given.
5122 if test "${with_llvmgcc+set}" = set; then
5123 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5129 # Check whether --with-llvmgxx was given.
5130 if test "${with_llvmgxx+set}" = set; then
5131 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5136 if test -n "$LLVMGCC"; then
5137 LLVMGCCCOMMAND="$LLVMGCC"
5140 if test -n "$LLVMGXX"; then
5141 LLVMGXXCOMMAND="$LLVMGXX"
5144 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5145 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5146 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5147 { (exit 1); exit 1; }; };
5150 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5151 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5152 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5153 { (exit 1); exit 1; }; };
5157 # Check whether --with-extra-options was given.
5158 if test "${with_extra_options+set}" = set; then
5159 withval=$with_extra_options;
5165 default) EXTRA_OPTIONS= ;;
5166 *) EXTRA_OPTIONS=$withval ;;
5168 EXTRA_OPTIONS=$EXTRA_OPTIONS
5171 # Check whether --enable-bindings was given.
5172 if test "${enable_bindings+set}" = set; then
5173 enableval=$enable_bindings;
5178 BINDINGS_TO_BUILD=""
5179 case "$enableval" in
5180 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5181 all ) BINDINGS_TO_BUILD="ocaml" ;;
5182 none | no) BINDINGS_TO_BUILD="" ;;
5183 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5184 case "$a_binding" in
5185 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5186 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5187 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5195 # Check whether --with-ocaml-libdir was given.
5196 if test "${with_ocaml_libdir+set}" = set; then
5197 withval=$with_ocaml_libdir;
5203 auto) with_ocaml_libdir="$withval" ;;
5204 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5205 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5206 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5211 # Check whether --with-binutils-include was given.
5212 if test "${with_binutils_include+set}" = set; then
5213 withval=$with_binutils_include;
5219 default) WITH_BINUTILS_INCDIR=default ;;
5220 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5221 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5222 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5225 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5226 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5228 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5229 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5230 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5231 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5232 { (exit 1); exit 1; }; };
5236 # Check whether --enable-libffi was given.
5237 if test "${enable_libffi+set}" = set; then
5238 enableval=$enable_libffi;
5243 case "$enableval" in
5244 yes) llvm_cv_enable_libffi="yes" ;;
5245 no) llvm_cv_enable_libffi="no" ;;
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 if test "$llvm_cv_os_type" = "Win32" ; then
5257 # Check whether --enable-llvmc-dynamic was given.
5258 if test "${enable_llvmc_dynamic+set}" = set; then
5259 enableval=$enable_llvmc_dynamic;
5261 enableval=$llvmc_dynamic
5264 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5265 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5268 ENABLE_LLVMC_DYNAMIC=
5272 # Check whether --enable-llvmc-dynamic-plugins was given.
5273 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5274 enableval=$enable_llvmc_dynamic_plugins;
5279 if test ${enableval} = "yes" ; then
5280 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5283 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5289 ac_cpp='$CPP $CPPFLAGS'
5290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5294 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5295 # On Suns, sometimes $CPP names a directory.
5296 if test -n "$CPP" && test -d "$CPP"; then
5299 if test -z "$CPP"; then
5300 if test "${ac_cv_prog_CPP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 # Double quotes because CPP needs to be expanded
5304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5307 for ac_c_preproc_warn_flag in '' yes
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5322 # include <limits.h>
5324 # include <assert.h>
5328 if { (ac_try="$ac_cpp conftest.$ac_ext"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev/null; then
5341 if test -s conftest.err; then
5342 ac_cpp_err=$ac_c_preproc_warn_flag
5343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5350 if test -z "$ac_cpp_err"; then
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 # Broken: fails on valid input.
5360 rm -f conftest.err conftest.$ac_ext
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <ac_nonexistent.h>
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5394 if test -z "$ac_cpp_err"; then
5395 # Broken: success on invalid input.
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 # Passes both tests.
5406 rm -f conftest.err conftest.$ac_ext
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then
5423 { echo "$as_me:$LINENO: result: $CPP" >&5
5424 echo "${ECHO_T}$CPP" >&6; }
5426 for ac_c_preproc_warn_flag in '' yes
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5441 # include <limits.h>
5443 # include <assert.h>
5447 if { (ac_try="$ac_cpp conftest.$ac_ext"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } >/dev/null; then
5460 if test -s conftest.err; then
5461 ac_cpp_err=$ac_c_preproc_warn_flag
5462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5469 if test -z "$ac_cpp_err"; then
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 # Broken: fails on valid input.
5479 rm -f conftest.err conftest.$ac_ext
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <ac_nonexistent.h>
5491 if { (ac_try="$ac_cpp conftest.$ac_ext"
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5499 grep -v '^ *+' conftest.er1 >conftest.err
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } >/dev/null; then
5504 if test -s conftest.err; then
5505 ac_cpp_err=$ac_c_preproc_warn_flag
5506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5513 if test -z "$ac_cpp_err"; then
5514 # Broken: success on invalid input.
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 # Passes both tests.
5525 rm -f conftest.err conftest.$ac_ext
5528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529 rm -f conftest.err conftest.$ac_ext
5530 if $ac_preproc_ok; then
5533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5534 See \`config.log' for more details." >&5
5535 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5536 See \`config.log' for more details." >&2;}
5537 { (exit 1); exit 1; }; }
5541 ac_cpp='$CPP $CPPFLAGS'
5542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551 if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5558 if test "${ac_cv_prog_CC+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 if test -n "$CC"; then
5562 ac_cv_prog_CC="$CC" # Let the user override the test.
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 if test -n "$CC"; then
5583 { echo "$as_me:$LINENO: result: $CC" >&5
5584 echo "${ECHO_T}$CC" >&6; }
5586 { echo "$as_me:$LINENO: result: no" >&5
5587 echo "${ECHO_T}no" >&6; }
5591 test -n "$CC" && break
5594 if test -z "$CC"; then
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 if test -n "$ac_ct_CC"; then
5606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_ac_ct_CC="$ac_prog"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5626 if test -n "$ac_ct_CC"; then
5627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5628 echo "${ECHO_T}$ac_ct_CC" >&6; }
5630 { echo "$as_me:$LINENO: result: no" >&5
5631 echo "${ECHO_T}no" >&6; }
5635 test -n "$ac_ct_CC" && break
5638 if test "x$ac_ct_CC" = x; then
5641 case $cross_compiling:$ac_tool_warned in
5643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5644 whose name does not start with the host triplet. If you think this
5645 configuration is useful to you, please write to autoconf@gnu.org." >&5
5646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5647 whose name does not start with the host triplet. If you think this
5648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5649 ac_tool_warned=yes ;;
5656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5657 See \`config.log' for more details." >&5
5658 echo "$as_me: error: no acceptable C compiler found in \$PATH
5659 See \`config.log' for more details." >&2;}
5660 { (exit 1); exit 1; }; }
5662 # Provide some information about the compiler.
5663 echo "$as_me:$LINENO: checking for C compiler version" >&5
5664 ac_compiler=`set X $ac_compile; echo $2`
5665 { (ac_try="$ac_compiler --version >&5"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compiler --version >&5") 2>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }
5675 { (ac_try="$ac_compiler -v >&5"
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compiler -v >&5") 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }
5685 { (ac_try="$ac_compiler -V >&5"
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compiler -V >&5") 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }
5696 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 cat >conftest.$ac_ext <<_ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5734 { (case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_try") 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_try") 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5765 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5767 GCC=`test $ac_compiler_gnu = yes && echo yes`
5768 ac_test_CFLAGS=${CFLAGS+set}
5769 ac_save_CFLAGS=$CFLAGS
5770 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5772 if test "${ac_cv_prog_cc_g+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 ac_save_c_werror_flag=$ac_c_werror_flag
5776 ac_c_werror_flag=yes
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_try") 2>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_c_werror_flag=$ac_save_c_werror_flag
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 ac_c_werror_flag=$ac_save_c_werror_flag
5956 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5957 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5958 if test "$ac_test_CFLAGS" = set; then
5959 CFLAGS=$ac_save_CFLAGS
5960 elif test $ac_cv_prog_cc_g = yes; then
5961 if test "$GCC" = yes; then
5967 if test "$GCC" = yes; then
5973 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5974 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5975 if test "${ac_cv_prog_cc_c89+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 ac_cv_prog_cc_c89=no
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5988 #include <sys/types.h>
5989 #include <sys/stat.h>
5990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5991 struct buf { int x; };
5992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5993 static char *e (p, i)
5999 static char *f (char * (*g) (char **, int), char **p, ...)
6004 s = g (p, va_arg (v,int));
6009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6010 function prototypes and stuff, but not '\xHH' hex character constants.
6011 These don't provoke an error unfortunately, instead are silently treated
6012 as 'x'. The following induces an error, until -std is added to get
6013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6014 array size at least. It's necessary to write '\x00'==0 to get something
6015 that's true only with -std. */
6016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6019 inside strings and character constants. */
6021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6023 int test (int i, double x);
6024 struct s1 {int (*f) (int a);};
6025 struct s2 {int (*f) (double a);};
6026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6040 CC="$ac_save_CC $ac_arg"
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6056 { (case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_try") 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; } &&
6065 { ac_try='test -s conftest.$ac_objext'
6066 { (case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_prog_cc_c89=$ac_arg
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6083 rm -f core conftest.err conftest.$ac_objext
6084 test "x$ac_cv_prog_cc_c89" != "xno" && break
6086 rm -f conftest.$ac_ext
6091 case "x$ac_cv_prog_cc_c89" in
6093 { echo "$as_me:$LINENO: result: none needed" >&5
6094 echo "${ECHO_T}none needed" >&6; } ;;
6096 { echo "$as_me:$LINENO: result: unsupported" >&5
6097 echo "${ECHO_T}unsupported" >&6; } ;;
6099 CC="$CC $ac_cv_prog_cc_c89"
6100 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6101 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6112 ac_cpp='$CXXCPP $CPPFLAGS'
6113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6116 if test -z "$CXX"; then
6117 if test -n "$CCC"; then
6120 if test -n "$ac_tool_prefix"; then
6123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127 if test "${ac_cv_prog_CXX+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 if test -n "$CXX"; then
6131 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 if test -n "$CXX"; then
6152 { echo "$as_me:$LINENO: result: $CXX" >&5
6153 echo "${ECHO_T}$CXX" >&6; }
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6160 test -n "$CXX" && break
6163 if test -z "$CXX"; then
6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 if test -n "$ac_ct_CXX"; then
6175 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_CXX="$ac_prog"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6195 if test -n "$ac_ct_CXX"; then
6196 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6197 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6199 { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6204 test -n "$ac_ct_CXX" && break
6207 if test "x$ac_ct_CXX" = x; then
6210 case $cross_compiling:$ac_tool_warned in
6212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6213 whose name does not start with the host triplet. If you think this
6214 configuration is useful to you, please write to autoconf@gnu.org." >&5
6215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet. If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6218 ac_tool_warned=yes ;;
6226 # Provide some information about the compiler.
6227 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6228 ac_compiler=`set X $ac_compile; echo $2`
6229 { (ac_try="$ac_compiler --version >&5"
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_compiler --version >&5") 2>&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }
6239 { (ac_try="$ac_compiler -v >&5"
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compiler -v >&5") 2>&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }
6249 { (ac_try="$ac_compiler -V >&5"
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compiler -V >&5") 2>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }
6260 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6261 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6292 grep -v '^ *+' conftest.er1 >conftest.err
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6298 { (case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_try") 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6329 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6330 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6331 GXX=`test $ac_compiler_gnu = yes && echo yes`
6332 ac_test_CXXFLAGS=${CXXFLAGS+set}
6333 ac_save_CXXFLAGS=$CXXFLAGS
6334 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6335 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_cxx_g+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6340 ac_cxx_werror_flag=yes
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6358 rm -f conftest.$ac_objext
6359 if { (ac_try="$ac_compile"
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6373 { (case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_try") 2>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_try") 2>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_prog_cxx_g=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428 { (case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_try") 2>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6484 { (case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_try") 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_try") 2>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_cv_prog_cxx_g=yes
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6520 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6521 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6522 if test "$ac_test_CXXFLAGS" = set; then
6523 CXXFLAGS=$ac_save_CXXFLAGS
6524 elif test $ac_cv_prog_cxx_g = yes; then
6525 if test "$GXX" = yes; then
6531 if test "$GXX" = yes; then
6538 ac_cpp='$CPP $CPPFLAGS'
6539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6545 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6546 if test "${lt_cv_path_NM+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 if test -n "$NM"; then
6550 # Let the user override the test.
6553 lt_nm_to_check="${ac_tool_prefix}nm"
6554 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6555 lt_nm_to_check="$lt_nm_to_check nm"
6557 for lt_tmp_nm in $lt_nm_to_check; do
6558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6559 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6561 test -z "$ac_dir" && ac_dir=.
6562 tmp_nm="$ac_dir/$lt_tmp_nm"
6563 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6564 # Check to see if the nm accepts a BSD-compat flag.
6565 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6566 # nm: unknown option "B" ignored
6567 # Tru64's nm complains that /dev/null is an invalid object file
6568 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6569 */dev/null* | *'Invalid file or object type'*)
6570 lt_cv_path_NM="$tmp_nm -B"
6574 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6576 lt_cv_path_NM="$tmp_nm -p"
6580 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6581 continue # so that we can try to find one that supports BSD flags
6590 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6593 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6594 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6599 { echo "$as_me:$LINENO: checking for GNU make" >&5
6600 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6601 if test "${llvm_cv_gnu_make_command+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 llvm_cv_gnu_make_command=''
6605 for a in "$MAKE" make gmake gnumake ; do
6606 if test -z "$a" ; then continue ; fi ;
6607 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6609 llvm_cv_gnu_make_command=$a ;
6614 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6615 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6616 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6620 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6621 echo "${ECHO_T}\"Not found\"" >&6; };
6625 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6626 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6628 if test "$LN_S" = "ln -s"; then
6629 { echo "$as_me:$LINENO: result: yes" >&5
6630 echo "${ECHO_T}yes" >&6; }
6632 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6633 echo "${ECHO_T}no, using $LN_S" >&6; }
6636 # Extract the first word of "cmp", so it can be a program name with args.
6637 set dummy cmp; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_CMP+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6668 if test -n "$CMP"; then
6669 { echo "$as_me:$LINENO: result: $CMP" >&5
6670 echo "${ECHO_T}$CMP" >&6; }
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6677 # Extract the first word of "cp", so it can be a program name with args.
6678 set dummy cp; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_CP+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6709 if test -n "$CP"; then
6710 { echo "$as_me:$LINENO: result: $CP" >&5
6711 echo "${ECHO_T}$CP" >&6; }
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6718 # Extract the first word of "date", so it can be a program name with args.
6719 set dummy date; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_path_DATE+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6749 DATE=$ac_cv_path_DATE
6750 if test -n "$DATE"; then
6751 { echo "$as_me:$LINENO: result: $DATE" >&5
6752 echo "${ECHO_T}$DATE" >&6; }
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6759 # Extract the first word of "find", so it can be a program name with args.
6760 set dummy find; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_FIND+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6790 FIND=$ac_cv_path_FIND
6791 if test -n "$FIND"; then
6792 { echo "$as_me:$LINENO: result: $FIND" >&5
6793 echo "${ECHO_T}$FIND" >&6; }
6795 { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6800 # Extract the first word of "grep", so it can be a program name with args.
6801 set dummy grep; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_path_GREP+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6831 GREP=$ac_cv_path_GREP
6832 if test -n "$GREP"; then
6833 { echo "$as_me:$LINENO: result: $GREP" >&5
6834 echo "${ECHO_T}$GREP" >&6; }
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6841 # Extract the first word of "mkdir", so it can be a program name with args.
6842 set dummy mkdir; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_MKDIR+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6872 MKDIR=$ac_cv_path_MKDIR
6873 if test -n "$MKDIR"; then
6874 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6875 echo "${ECHO_T}$MKDIR" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 # Extract the first word of "mv", so it can be a program name with args.
6883 set dummy mv; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_MV+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6914 if test -n "$MV"; then
6915 { echo "$as_me:$LINENO: result: $MV" >&5
6916 echo "${ECHO_T}$MV" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_prog_RANLIB+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 if test -n "$RANLIB"; then
6932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 RANLIB=$ac_cv_prog_RANLIB
6952 if test -n "$RANLIB"; then
6953 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6954 echo "${ECHO_T}$RANLIB" >&6; }
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6962 if test -z "$ac_cv_prog_RANLIB"; then
6963 ac_ct_RANLIB=$RANLIB
6964 # Extract the first word of "ranlib", so it can be a program name with args.
6965 set dummy ranlib; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 if test -n "$ac_ct_RANLIB"; then
6972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_RANLIB="ranlib"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6992 if test -n "$ac_ct_RANLIB"; then
6993 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6994 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7000 if test "x$ac_ct_RANLIB" = x; then
7003 case $cross_compiling:$ac_tool_warned in
7005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7006 whose name does not start with the host triplet. If you think this
7007 configuration is useful to you, please write to autoconf@gnu.org." >&5
7008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7009 whose name does not start with the host triplet. If you think this
7010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7011 ac_tool_warned=yes ;;
7013 RANLIB=$ac_ct_RANLIB
7016 RANLIB="$ac_cv_prog_RANLIB"
7019 # Extract the first word of "rm", so it can be a program name with args.
7020 set dummy rm; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_path_RM+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7051 if test -n "$RM"; then
7052 { echo "$as_me:$LINENO: result: $RM" >&5
7053 echo "${ECHO_T}$RM" >&6; }
7055 { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7060 # Extract the first word of "sed", so it can be a program name with args.
7061 set dummy sed; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_path_SED+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7092 if test -n "$SED"; then
7093 { echo "$as_me:$LINENO: result: $SED" >&5
7094 echo "${ECHO_T}$SED" >&6; }
7096 { echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6; }
7101 # Extract the first word of "tar", so it can be a program name with args.
7102 set dummy tar; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_TAR+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7133 if test -n "$TAR"; then
7134 { echo "$as_me:$LINENO: result: $TAR" >&5
7135 echo "${ECHO_T}$TAR" >&6; }
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7142 # Extract the first word of "pwd", so it can be a program name with args.
7143 set dummy pwd; ac_word=$2
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146 if test "${ac_cv_path_BINPWD+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7173 BINPWD=$ac_cv_path_BINPWD
7174 if test -n "$BINPWD"; then
7175 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7176 echo "${ECHO_T}$BINPWD" >&6; }
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7184 # Extract the first word of "Graphviz", so it can be a program name with args.
7185 set dummy Graphviz; ac_word=$2
7186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7215 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7216 if test -n "$GRAPHVIZ"; then
7217 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7218 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7220 { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7225 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_GRAPHVIZ 1
7231 if test "$llvm_cv_os_type" = "MingW" ; then
7232 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7235 cat >>confdefs.h <<_ACEOF
7236 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7240 # Extract the first word of "dot", so it can be a program name with args.
7241 set dummy dot; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_DOT+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7272 if test -n "$DOT"; then
7273 { echo "$as_me:$LINENO: result: $DOT" >&5
7274 echo "${ECHO_T}$DOT" >&6; }
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7281 if test "$DOT" != "echo dot" ; then
7283 cat >>confdefs.h <<\_ACEOF
7287 if test "$llvm_cv_os_type" = "MingW" ; then
7288 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7291 cat >>confdefs.h <<_ACEOF
7292 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7296 # Extract the first word of "fdp", so it can be a program name with args.
7297 set dummy fdp; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_FDP+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7328 if test -n "$FDP"; then
7329 { echo "$as_me:$LINENO: result: $FDP" >&5
7330 echo "${ECHO_T}$FDP" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 if test "$FDP" != "echo fdp" ; then
7339 cat >>confdefs.h <<\_ACEOF
7343 if test "$llvm_cv_os_type" = "MingW" ; then
7344 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7347 cat >>confdefs.h <<_ACEOF
7348 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7352 # Extract the first word of "neato", so it can be a program name with args.
7353 set dummy neato; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_NEATO+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7383 NEATO=$ac_cv_path_NEATO
7384 if test -n "$NEATO"; then
7385 { echo "$as_me:$LINENO: result: $NEATO" >&5
7386 echo "${ECHO_T}$NEATO" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 if test "$NEATO" != "echo neato" ; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define HAVE_NEATO 1
7399 if test "$llvm_cv_os_type" = "MingW" ; then
7400 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7403 cat >>confdefs.h <<_ACEOF
7404 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7408 # Extract the first word of "twopi", so it can be a program name with args.
7409 set dummy twopi; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_TWOPI+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7439 TWOPI=$ac_cv_path_TWOPI
7440 if test -n "$TWOPI"; then
7441 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7442 echo "${ECHO_T}$TWOPI" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7449 if test "$TWOPI" != "echo twopi" ; then
7451 cat >>confdefs.h <<\_ACEOF
7452 #define HAVE_TWOPI 1
7455 if test "$llvm_cv_os_type" = "MingW" ; then
7456 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459 cat >>confdefs.h <<_ACEOF
7460 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7464 # Extract the first word of "circo", so it can be a program name with args.
7465 set dummy circo; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_CIRCO+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7495 CIRCO=$ac_cv_path_CIRCO
7496 if test -n "$CIRCO"; then
7497 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7498 echo "${ECHO_T}$CIRCO" >&6; }
7500 { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7505 if test "$CIRCO" != "echo circo" ; then
7507 cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_CIRCO 1
7511 if test "$llvm_cv_os_type" = "MingW" ; then
7512 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7515 cat >>confdefs.h <<_ACEOF
7516 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7520 for ac_prog in gv gsview32
7522 # Extract the first word of "$ac_prog", so it can be a program name with args.
7523 set dummy $ac_prog; 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_GV+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 ac_cv_path_GV="$GV" # 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_GV="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 if test -n "$GV"; then
7554 { echo "$as_me:$LINENO: result: $GV" >&5
7555 echo "${ECHO_T}$GV" >&6; }
7557 { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7562 test -n "$GV" && break
7564 test -n "$GV" || GV="echo gv"
7566 if test "$GV" != "echo gv" ; then
7568 cat >>confdefs.h <<\_ACEOF
7572 if test "$llvm_cv_os_type" = "MingW" ; then
7573 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576 cat >>confdefs.h <<_ACEOF
7577 #define LLVM_PATH_GV "$GV${EXEEXT}"
7581 # Extract the first word of "dotty", so it can be a program name with args.
7582 set dummy dotty; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_DOTTY+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7612 DOTTY=$ac_cv_path_DOTTY
7613 if test -n "$DOTTY"; then
7614 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7615 echo "${ECHO_T}$DOTTY" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 if test "$DOTTY" != "echo dotty" ; then
7624 cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_DOTTY 1
7628 if test "$llvm_cv_os_type" = "MingW" ; then
7629 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7632 cat >>confdefs.h <<_ACEOF
7633 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7639 # Extract the first word of "perl", so it can be a program name with args.
7640 set dummy perl; ac_word=$2
7641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643 if test "${ac_cv_path_PERL+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7670 PERL=$ac_cv_path_PERL
7671 if test -n "$PERL"; then
7672 { echo "$as_me:$LINENO: result: $PERL" >&5
7673 echo "${ECHO_T}$PERL" >&6; }
7675 { echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6; }
7680 if test "$PERL" != "none"; then
7681 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7682 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7683 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7684 { echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6; }
7688 { echo "$as_me:$LINENO: result: not found" >&5
7689 echo "${ECHO_T}not found" >&6; }
7694 if test x"$PERL" = xnone; then
7697 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7698 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7699 { (exit 1); exit 1; }; }
7705 # Find a good install program. We prefer a C program (faster),
7706 # so one script is as good as another. But avoid the broken or
7707 # incompatible versions:
7708 # SysV /etc/install, /usr/sbin/install
7709 # SunOS /usr/etc/install
7710 # IRIX /sbin/install
7712 # AmigaOS /C/install, which installs bootblocks on floppy discs
7713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7716 # OS/2's system install, which has a completely different semantic
7717 # ./install, which can be erroneously created by make from ./install.sh.
7718 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7720 if test -z "$INSTALL"; then
7721 if test "${ac_cv_path_install+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 # Account for people who put trailing slashes in PATH elements.
7731 ./ | .// | /cC/* | \
7732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7736 # OSF1 and SCO ODT 3.0 have their own names for install.
7737 # Don't use installbsd from OSF since it installs stuff as root
7739 for ac_prog in ginstall scoinst install; do
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7742 if test $ac_prog = install &&
7743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7744 # AIX install. It has an incompatible calling convention.
7746 elif test $ac_prog = install &&
7747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7748 # program-specific install script used by HP pwplus--don't use.
7751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7764 if test "${ac_cv_path_install+set}" = set; then
7765 INSTALL=$ac_cv_path_install
7767 # As a last resort, use the slow shell script. Don't cache a
7768 # value for INSTALL within a source directory, because that will
7769 # break other packages using the cache if that directory is
7770 # removed, or if the value is a relative name.
7771 INSTALL=$ac_install_sh
7774 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7775 echo "${ECHO_T}$INSTALL" >&6; }
7777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7778 # It thinks the first close brace ends the variable substitution.
7779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7786 # Extract the first word of "bzip2", so it can be a program name with args.
7787 set dummy bzip2; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_BZIP2+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 BZIP2=$ac_cv_path_BZIP2
7817 if test -n "$BZIP2"; then
7818 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7819 echo "${ECHO_T}$BZIP2" >&6; }
7821 { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7826 # Extract the first word of "doxygen", so it can be a program name with args.
7827 set dummy doxygen; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 DOXYGEN=$ac_cv_path_DOXYGEN
7857 if test -n "$DOXYGEN"; then
7858 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7859 echo "${ECHO_T}$DOXYGEN" >&6; }
7861 { echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6; }
7866 # Extract the first word of "groff", so it can be a program name with args.
7867 set dummy groff; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_path_GROFF+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 GROFF=$ac_cv_path_GROFF
7897 if test -n "$GROFF"; then
7898 { echo "$as_me:$LINENO: result: $GROFF" >&5
7899 echo "${ECHO_T}$GROFF" >&6; }
7901 { echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6; }
7906 # Extract the first word of "gzip", so it can be a program name with args.
7907 set dummy gzip; ac_word=$2
7908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7910 if test "${ac_cv_path_GZIP+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 GZIP=$ac_cv_path_GZIP
7937 if test -n "$GZIP"; then
7938 { echo "$as_me:$LINENO: result: $GZIP" >&5
7939 echo "${ECHO_T}$GZIP" >&6; }
7941 { echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6; }
7946 # Extract the first word of "pod2html", so it can be a program name with args.
7947 set dummy pod2html; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_POD2HTML+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 POD2HTML=$ac_cv_path_POD2HTML
7977 if test -n "$POD2HTML"; then
7978 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7979 echo "${ECHO_T}$POD2HTML" >&6; }
7981 { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7986 # Extract the first word of "pod2man", so it can be a program name with args.
7987 set dummy pod2man; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_path_POD2MAN+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 POD2MAN=$ac_cv_path_POD2MAN
8017 if test -n "$POD2MAN"; then
8018 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8019 echo "${ECHO_T}$POD2MAN" >&6; }
8021 { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8026 # Extract the first word of "runtest", so it can be a program name with args.
8027 set dummy runtest; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_RUNTEST+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 RUNTEST=$ac_cv_path_RUNTEST
8057 if test -n "$RUNTEST"; then
8058 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8059 echo "${ECHO_T}$RUNTEST" >&6; }
8061 { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8068 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8069 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8071 # Check whether --with-tclinclude was given.
8072 if test "${with_tclinclude+set}" = set; then
8073 withval=$with_tclinclude; with_tclinclude=${withval}
8078 if test "${ac_cv_path_tclsh+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 if test x"${with_tclinclude}" != x ; then
8083 if test -f ${with_tclinclude}/tclsh ; then
8084 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8085 elif test -f ${with_tclinclude}/src/tclsh ; then
8086 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8088 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8089 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8090 { (exit 1); exit 1; }; }
8094 if test x"${ac_cv_path_tclsh}" = x ; then
8095 { echo "$as_me:$LINENO: result: none" >&5
8096 echo "${ECHO_T}none" >&6; }
8097 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
8099 # Extract the first word of "$ac_prog", so it can be a program name with args.
8100 set dummy $ac_prog; ac_word=$2
8101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103 if test "${ac_cv_path_TCLSH+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 TCLSH=$ac_cv_path_TCLSH
8130 if test -n "$TCLSH"; then
8131 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8132 echo "${ECHO_T}$TCLSH" >&6; }
8134 { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8139 test -n "$TCLSH" && break
8142 if test x"${TCLSH}" = x ; then
8143 ac_cv_path_tclsh='';
8145 ac_cv_path_tclsh="${TCLSH}";
8148 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8149 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8150 TCLSH="${ac_cv_path_tclsh}"
8156 # Extract the first word of "zip", so it can be a program name with args.
8157 set dummy zip; ac_word=$2
8158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8160 if test "${ac_cv_path_ZIP+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 if test -n "$ZIP"; then
8188 { echo "$as_me:$LINENO: result: $ZIP" >&5
8189 echo "${ECHO_T}$ZIP" >&6; }
8191 { echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6; }
8196 for ac_prog in ocamlc
8198 # Extract the first word of "$ac_prog", so it can be a program name with args.
8199 set dummy $ac_prog; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_path_OCAMLC+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 OCAMLC=$ac_cv_path_OCAMLC
8229 if test -n "$OCAMLC"; then
8230 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8231 echo "${ECHO_T}$OCAMLC" >&6; }
8233 { echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6; }
8238 test -n "$OCAMLC" && break
8241 for ac_prog in ocamlopt
8243 # Extract the first word of "$ac_prog", so it can be a program name with args.
8244 set dummy $ac_prog; ac_word=$2
8245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8247 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 OCAMLOPT=$ac_cv_path_OCAMLOPT
8274 if test -n "$OCAMLOPT"; then
8275 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8276 echo "${ECHO_T}$OCAMLOPT" >&6; }
8278 { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8283 test -n "$OCAMLOPT" && break
8286 for ac_prog in ocamldep
8288 # Extract the first word of "$ac_prog", so it can be a program name with args.
8289 set dummy $ac_prog; ac_word=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 OCAMLDEP=$ac_cv_path_OCAMLDEP
8319 if test -n "$OCAMLDEP"; then
8320 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8321 echo "${ECHO_T}$OCAMLDEP" >&6; }
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8328 test -n "$OCAMLDEP" && break
8331 for ac_prog in ocamldoc
8333 # Extract the first word of "$ac_prog", so it can be a program name with args.
8334 set dummy $ac_prog; ac_word=$2
8335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8337 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 OCAMLDOC=$ac_cv_path_OCAMLDOC
8364 if test -n "$OCAMLDOC"; then
8365 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8366 echo "${ECHO_T}$OCAMLDOC" >&6; }
8368 { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8373 test -n "$OCAMLDOC" && break
8376 for ac_prog in gas as
8378 # Extract the first word of "$ac_prog", so it can be a program name with args.
8379 set dummy $ac_prog; ac_word=$2
8380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8382 if test "${ac_cv_path_GAS+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 if test -n "$GAS"; then
8410 { echo "$as_me:$LINENO: result: $GAS" >&5
8411 echo "${ECHO_T}$GAS" >&6; }
8413 { echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6; }
8418 test -n "$GAS" && break
8422 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8423 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8424 if test "${llvm_cv_link_use_r+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 ac_cpp='$CPP $CPPFLAGS'
8429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8434 CFLAGS="$CFLAGS -Wl,-R."
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8445 int main() { return 0; }
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_link") 2>conftest.er1
8459 grep -v '^ *+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 llvm_cv_link_use_r=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 llvm_cv_link_use_r=no
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8496 ac_cpp='$CPP $CPPFLAGS'
8497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8504 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8505 if test "$llvm_cv_link_use_r" = yes ; then
8507 cat >>confdefs.h <<\_ACEOF
8508 #define HAVE_LINK_R 1
8514 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8515 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8516 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 ac_cpp='$CPP $CPPFLAGS'
8521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8526 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8537 int main() { return 0; }
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (ac_try="$ac_link"
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_link") 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_try") 2>&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 llvm_cv_link_use_export_dynamic=yes
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 llvm_cv_link_use_export_dynamic=no
8584 rm -f core conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8588 ac_cpp='$CPP $CPPFLAGS'
8589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8595 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8596 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8597 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_LINK_EXPORT_DYNAMIC 1
8608 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8609 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8610 if test "${ac_cv_c_const+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8623 /* FIXME: Include the comments suggested by Paul. */
8625 /* Ultrix mips cc rejects this. */
8626 typedef int charset[2];
8628 /* SunOS 4.1.1 cc rejects this. */
8629 char const *const *ccp;
8631 /* NEC SVR4.0.2 mips cc rejects this. */
8632 struct point {int x, y;};
8633 static struct point const zero = {0,0};
8634 /* AIX XL C 1.02.0.0 rejects this.
8635 It does not let you subtract one const X* pointer from another in
8636 an arm of an if-expression whose if-part is not a constant
8638 const char *g = "string";
8639 ccp = &g + (g ? g-g : 0);
8640 /* HPUX 7.0 cc rejects these. */
8643 ccp = (char const *const *) p;
8644 { /* SCO 3.2v4 cc rejects this. */
8646 char const *s = 0 ? (char *) 0 : (char const *) 0;
8651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8653 const int *foo = &x[0];
8656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8657 typedef const int *iptr;
8661 { /* AIX XL C 1.02.0.0 rejects this saying
8662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8663 struct s { int j; const int *ap[3]; };
8664 struct s *b; b->j = 5;
8666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8670 return !x[0] && !zero.x;
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_try") 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8722 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8723 if test $ac_cv_c_const = no; then
8725 cat >>confdefs.h <<\_ACEOF
8737 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8738 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8739 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8740 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 #include <sys/types.h>
8762 rm -f conftest.$ac_objext
8763 if { (ac_try="$ac_compile"
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_compile") 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest.$ac_objext'
8787 { (case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_try") 2>&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 eval "$as_ac_Header=yes"
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 eval "$as_ac_Header=no"
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 ac_res=`eval echo '${'$as_ac_Header'}'`
8807 { echo "$as_me:$LINENO: result: $ac_res" >&5
8808 echo "${ECHO_T}$ac_res" >&6; }
8809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8810 cat >>confdefs.h <<_ACEOF
8811 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8814 ac_header_dirent=$ac_hdr; break
8818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8819 if test $ac_header_dirent = dirent.h; then
8820 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8821 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8822 if test "${ac_cv_search_opendir+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_func_search_save_LIBS=$LIBS
8826 cat >conftest.$ac_ext <<_ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8833 /* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8848 for ac_lib in '' dir; do
8849 if test -z "$ac_lib"; then
8850 ac_res="none required"
8853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8855 rm -f conftest.$ac_objext conftest$ac_exeext
8856 if { (ac_try="$ac_link"
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_link") 2>conftest.er1
8864 grep -v '^ *+' conftest.er1 >conftest.err
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; } &&
8879 { ac_try='test -s conftest$ac_exeext'
8880 { (case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_try") 2>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_search_opendir=$ac_res
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8897 rm -f core conftest.err conftest.$ac_objext \
8899 if test "${ac_cv_search_opendir+set}" = set; then
8903 if test "${ac_cv_search_opendir+set}" = set; then
8906 ac_cv_search_opendir=no
8909 LIBS=$ac_func_search_save_LIBS
8911 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8912 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8913 ac_res=$ac_cv_search_opendir
8914 if test "$ac_res" != no; then
8915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8920 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8921 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8922 if test "${ac_cv_search_opendir+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 ac_func_search_save_LIBS=$LIBS
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8948 for ac_lib in '' x; do
8949 if test -z "$ac_lib"; then
8950 ac_res="none required"
8953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_search_opendir=$ac_res
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8997 rm -f core conftest.err conftest.$ac_objext \
8999 if test "${ac_cv_search_opendir+set}" = set; then
9003 if test "${ac_cv_search_opendir+set}" = set; then
9006 ac_cv_search_opendir=no
9009 LIBS=$ac_func_search_save_LIBS
9011 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9012 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9013 ac_res=$ac_cv_search_opendir
9014 if test "$ac_res" != no; then
9015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9022 for ac_header in dlfcn.h
9024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 ac_res=`eval echo '${'$as_ac_Header'}'`
9032 { echo "$as_me:$LINENO: result: $ac_res" >&5
9033 echo "${ECHO_T}$ac_res" >&6; }
9035 # Is the header compilable?
9036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9038 cat >conftest.$ac_ext <<_ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 $ac_includes_default
9045 #include <$ac_header>
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_compile") 2>conftest.er1
9056 grep -v '^ *+' conftest.er1 >conftest.err
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062 { (case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_try") 2>&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_try") 2>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_header_compiler=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_header_compiler=no
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091 echo "${ECHO_T}$ac_header_compiler" >&6; }
9093 # Is the header present?
9094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include <$ac_header>
9104 if { (ac_try="$ac_cpp conftest.$ac_ext"
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9112 grep -v '^ *+' conftest.er1 >conftest.err
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } >/dev/null; then
9117 if test -s conftest.err; then
9118 ac_cpp_err=$ac_c_preproc_warn_flag
9119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9126 if test -z "$ac_cpp_err"; then
9127 ac_header_preproc=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_header_preproc=no
9135 rm -f conftest.err conftest.$ac_ext
9136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137 echo "${ECHO_T}$ac_header_preproc" >&6; }
9139 # So? What about this header?
9140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9146 ac_header_preproc=yes
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9162 ## ----------------------------------- ##
9163 ## Report this to llvmbugs@cs.uiuc.edu ##
9164 ## ----------------------------------- ##
9166 ) | sed "s/^/$as_me: WARNING: /" >&2
9169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 eval "$as_ac_Header=\$ac_header_preproc"
9176 ac_res=`eval echo '${'$as_ac_Header'}'`
9177 { echo "$as_me:$LINENO: result: $ac_res" >&5
9178 echo "${ECHO_T}$ac_res" >&6; }
9181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182 cat >>confdefs.h <<_ACEOF
9183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9190 # Check whether --enable-ltdl-install was given.
9191 if test "${enable_ltdl_install+set}" = set; then
9192 enableval=$enable_ltdl_install;
9198 if test x"${enable_ltdl_install-no}" != xno; then
9200 INSTALL_LTDL_FALSE='#'
9202 INSTALL_LTDL_TRUE='#'
9208 if test x"${enable_ltdl_convenience-no}" != xno; then
9209 CONVENIENCE_LTDL_TRUE=
9210 CONVENIENCE_LTDL_FALSE='#'
9212 CONVENIENCE_LTDL_TRUE='#'
9213 CONVENIENCE_LTDL_FALSE=
9217 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9220 libname_spec='lib$name'
9228 shlibpath_overrides_runpath=unknown
9230 dynamic_linker="$host_os ld.so"
9231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9232 if test "$GCC" = yes; then
9233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9235 # if the path contains ";" then we assume it to be the separator
9236 # otherwise default to the standard path separator (i.e. ":") - it is
9237 # assumed that no part of a normal pathname contains ";" but that should
9238 # okay in the real world where ";" in dirpaths is itself problematic.
9239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9246 need_lib_prefix=unknown
9247 hardcode_into_libs=no
9249 # when you set need_version to no, make sure it does not cause -set_version
9250 # flags to be left without arguments
9251 need_version=unknown
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257 shlibpath_var=LIBPATH
9259 # AIX 3 has no versioning support, so we append a major version to the name.
9260 soname_spec='${libname}${release}${shared_ext}$major'
9267 hardcode_into_libs=yes
9268 if test "$host_cpu" = ia64; then
9269 # AIX 5 supports IA64
9270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271 shlibpath_var=LD_LIBRARY_PATH
9273 # With GCC up to 2.95.x, collect2 would create an import file
9274 # for dependence libraries. The import file would start with
9275 # the line `#! .'. This would cause the generated library to
9276 # depend on `.', always an invalid library. This was fixed in
9277 # development snapshots of GCC prior to 3.0.
9279 aix4 | aix4.[01] | aix4.[01].*)
9280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290 # soname into executable. Probably we can add versioning support to
9291 # collect2, so additional links can be useful in future.
9292 if test "$aix_use_runtimelinking" = yes; then
9293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294 # instead of lib<name>.a to let people know that these are not
9295 # typical AIX shared libraries.
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298 # We preserve .a as extension for shared libraries through AIX4.2
9299 # and later when we are not doing run time linking.
9300 library_names_spec='${libname}${release}.a $libname.a'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9303 shlibpath_var=LIBPATH
9308 library_names_spec='$libname.ixlibrary $libname.a'
9309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310 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'
9314 library_names_spec='${libname}${shared_ext}'
9315 dynamic_linker="$host_os ld.so"
9316 shlibpath_var=LIBRARY_PATH
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9328 # the default ld.so.conf also contains /usr/contrib/lib and
9329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9330 # libtool to hard-code these into programs
9333 cygwin* | mingw* | pw32*)
9334 version_type=windows
9339 case $GCC,$host_os in
9340 yes,cygwin* | yes,mingw* | yes,pw32*)
9341 library_names_spec='$libname.dll.a'
9342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9343 postinstall_cmds='base_file=`basename \${file}`~
9344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9345 dldir=$destdir/`dirname \$dlpath`~
9346 test -d \$dldir || mkdir -p \$dldir~
9347 $install_prog $dir/$dlname \$dldir/$dlname~
9348 chmod a+x \$dldir/$dlname'
9349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9350 dlpath=$dir/\$dldll~
9352 shlibpath_overrides_runpath=yes
9356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9361 # MinGW DLLs use traditional 'lib' prefix
9362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9365 # It is most probably a Windows format PATH printed by
9366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9367 # path with ; separators, and with drive letters. We can handle the
9368 # drive letters (cygwin fileutils understands them), so leave them,
9369 # especially as we might pass files found there to a mingw objdump,
9370 # which wouldn't understand a cygwinified path. Ahh.
9371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9377 # pw32 DLLs use 'pw' prefix rather than 'lib'
9378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9387 dynamic_linker='Win32 ld.exe'
9388 # FIXME: first we should search . and the directory the executable is in
9392 darwin* | rhapsody*)
9393 dynamic_linker="$host_os dyld"
9397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9398 soname_spec='${libname}${release}${major}$shared_ext'
9399 shlibpath_overrides_runpath=yes
9400 shlibpath_var=DYLD_LIBRARY_PATH
9401 shrext_cmds='.dylib'
9402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9403 if test "$GCC" = yes; then
9404 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"`
9406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=no
9432 hardcode_into_libs=yes
9433 dynamic_linker='GNU ld.so'
9436 freebsd* | dragonfly*)
9437 # DragonFly does not have aout. When/if they implement a new
9438 # versioning mechanism, adjust this.
9439 if test -x /usr/bin/objformat; then
9440 objformat=`/usr/bin/objformat`
9443 freebsd[123]*) objformat=aout ;;
9447 version_type=freebsd-$objformat
9448 case $version_type in
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9459 shlibpath_var=LD_LIBRARY_PATH
9462 shlibpath_overrides_runpath=yes
9464 freebsd3.[01]* | freebsdelf3.[01]*)
9465 shlibpath_overrides_runpath=yes
9466 hardcode_into_libs=yes
9468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470 shlibpath_overrides_runpath=no
9471 hardcode_into_libs=yes
9473 freebsd*) # from 4.6 on
9474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 hardcode_into_libs=yes
9490 hpux9* | hpux10* | hpux11*)
9491 # Give a soname corresponding to the major version so that dld.sl refuses to
9492 # link against other versions.
9499 hardcode_into_libs=yes
9500 dynamic_linker="$host_os dld.so"
9501 shlibpath_var=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 if test "X$HPUX_IA64_MODE" = X32; then
9506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9514 hardcode_into_libs=yes
9515 dynamic_linker="$host_os dld.sl"
9516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9525 dynamic_linker="$host_os dld.sl"
9526 shlibpath_var=SHLIB_PATH
9527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533 postinstall_cmds='chmod 555 $lib'
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=no
9545 hardcode_into_libs=yes
9548 irix5* | irix6* | nonstopux*)
9550 nonstopux*) version_type=nonstopux ;;
9552 if test "$lt_cv_prog_gnu_ld" = yes; then
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9563 irix5* | nonstopux*)
9567 case $LD in # libtool.m4 will add one of these switches to LD
9568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569 libsuff= shlibsuff= libmagic=32-bit;;
9570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571 libsuff=32 shlibsuff=N32 libmagic=N32;;
9572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574 *) libsuff= shlibsuff= libmagic=never-match;;
9578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579 shlibpath_overrides_runpath=no
9580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582 hardcode_into_libs=yes
9585 # No shared lib support for Linux oldld, aout, or coff.
9586 linux*oldld* | linux*aout* | linux*coff*)
9590 # This must be Linux ELF.
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 shlibpath_overrides_runpath=no
9600 # This implies no fast_install, which is unacceptable.
9601 # Some rework will be needed to allow for fast_install
9602 # before this can be enabled.
9603 hardcode_into_libs=yes
9605 # Append ld.so.conf contents to the search path
9606 if test -f /etc/ld.so.conf; then
9607 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' ' '`
9608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9611 # We used to test for /lib/ld.so.1 and disable shared libraries on
9612 # powerpc, because MkLinux only supported shared libraries with the
9613 # GNU dynamic linker. Since this was broken with cross compilers,
9614 # most powerpc-linux boxes support dynamic linking these days and
9615 # people can always --disable-shared, the test was removed, and we
9616 # assume the GNU/Linux dynamic linker is in use.
9617 dynamic_linker='GNU/Linux ld.so'
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=no
9628 hardcode_into_libs=yes
9629 dynamic_linker='GNU ld.so'
9636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 dynamic_linker='NetBSD (a.out) ld.so'
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 dynamic_linker='NetBSD ld.elf_so'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 hardcode_into_libs=yes
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes
9669 sys_lib_dlsearch_path_spec="/usr/lib"
9671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674 *) need_version=no ;;
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9681 openbsd2.[89] | openbsd2.[89].*)
9682 shlibpath_overrides_runpath=no
9685 shlibpath_overrides_runpath=yes
9689 shlibpath_overrides_runpath=yes
9694 libname_spec='$name'
9697 library_names_spec='$libname${shared_ext} $libname.a'
9698 dynamic_linker='OS/2 ld.exe'
9699 shlibpath_var=LIBPATH
9702 osf3* | osf4* | osf5*)
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=yes
9721 hardcode_into_libs=yes
9722 # ldd complains unless libraries are executable
9723 postinstall_cmds='chmod +x $lib'
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=yes
9732 if test "$with_gnu_ld" = yes; then
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 case $host_vendor in
9745 shlibpath_overrides_runpath=no
9747 export_dynamic_flag_spec='${wl}-Blargedynsym'
9748 runpath_var=LD_RUN_PATH
9756 shlibpath_overrides_runpath=no
9757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9763 if test -d /usr/nec ;then
9765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9766 soname_spec='$libname${shared_ext}.$major'
9767 shlibpath_var=LD_LIBRARY_PATH
9771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9772 version_type=freebsd-elf
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 hardcode_into_libs=yes
9779 if test "$with_gnu_ld" = yes; then
9780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9781 shlibpath_overrides_runpath=no
9783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9784 shlibpath_overrides_runpath=yes
9787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9791 sys_lib_dlsearch_path_spec='/usr/lib'
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 shlibpath_var=LD_LIBRARY_PATH
9805 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9806 echo "${ECHO_T}$dynamic_linker" >&6; }
9807 test "$dynamic_linker" = no && can_build_shared=no
9809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9810 if test "$GCC" = yes; then
9811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9815 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9816 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9817 if test "${libltdl_cv_shlibext+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 eval libltdl_cv_shlibext=$shrext_cmds
9825 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9826 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9827 if test -n "$libltdl_cv_shlibext"; then
9829 cat >>confdefs.h <<_ACEOF
9830 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9836 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9837 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9838 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 libltdl_cv_shlibpath_var="$shlibpath_var"
9843 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9844 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9845 if test -n "$libltdl_cv_shlibpath_var"; then
9847 cat >>confdefs.h <<_ACEOF
9848 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9854 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9855 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9856 if test "${libltdl_cv_sys_search_path+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9861 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9862 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9863 if test -n "$libltdl_cv_sys_search_path"; then
9865 for dir in $libltdl_cv_sys_search_path; do
9866 if test -z "$sys_search_path"; then
9867 sys_search_path="$dir"
9869 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9873 cat >>confdefs.h <<_ACEOF
9874 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9879 { echo "$as_me:$LINENO: checking for objdir" >&5
9880 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9881 if test "${libltdl_cv_objdir+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 libltdl_cv_objdir="$objdir"
9885 if test -n "$objdir"; then
9888 rm -f .libs 2>/dev/null
9889 mkdir .libs 2>/dev/null
9890 if test -d .libs; then
9891 libltdl_cv_objdir=.libs
9893 # MS-DOS does not allow filenames that begin with a dot.
9894 libltdl_cv_objdir=_libs
9896 rmdir .libs 2>/dev/null
9900 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9901 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9903 cat >>confdefs.h <<_ACEOF
9904 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9912 # Check for command to grab the raw symbol name followed by C symbol from nm.
9913 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9914 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9915 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 # These are sane defaults that work on at least a few old systems.
9920 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9922 # Character class describing NM global symbol codes.
9923 symcode='[BCDEGRST]'
9925 # Regexp to match symbols that can be accessed directly from C.
9926 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9928 # Transform an extracted symbol line into a proper C declaration
9929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9931 # Transform an extracted symbol line into symbol name and symbol address
9932 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'"
9934 # Define system-specific variables.
9939 cygwin* | mingw* | pw32*)
9940 symcode='[ABCDGISTW]'
9942 hpux*) # Its linker distinguishes data from code symbols
9943 if test "$host_cpu" = ia64; then
9944 symcode='[ABCDEGRST]'
9946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9947 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'"
9950 if test "$host_cpu" = ia64; then
9951 symcode='[ABCDGIRSTW]'
9952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9953 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'"
9957 symcode='[BCDEGRST]'
9960 symcode='[BCDEGQRST]'
9971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9979 # Handle CRLF in mingw tool chain
9983 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9987 # If we're using GNU nm, then use its standard symbol codes.
9988 case `$NM -V 2>&1` in
9989 *GNU* | *'with BFD'*)
9990 symcode='[ABCDGIRSTW]' ;;
9993 # Try without a prefix undercore, then with it.
9994 for ac_symprfx in "" "_"; do
9996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9997 symxfrm="\\1 $ac_symprfx\\2 \\2"
9999 # Write the raw and C identifiers.
10000 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10002 # Check to see that the pipe works correctly.
10006 cat > conftest.$ac_ext <<EOF
10011 void nm_test_func(){}
10015 int main(){nm_test_var='a';nm_test_func();return(0);}
10018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10019 (eval $ac_compile) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; then
10023 # Now try to grab the symbols.
10025 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10026 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && test -s "$nlist"; then
10030 # Try sorting and uniquifying the output.
10031 if sort "$nlist" | uniq > "$nlist"T; then
10032 mv -f "$nlist"T "$nlist"
10037 # Make sure that we snagged all the symbols we need.
10038 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10039 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10040 cat <<EOF > conftest.$ac_ext
10046 # Now generate the symbol file.
10047 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10049 cat <<EOF >> conftest.$ac_ext
10050 #if defined (__STDC__) && __STDC__
10051 # define lt_ptr_t void *
10053 # define lt_ptr_t char *
10057 /* The mapping between symbol names and symbols. */
10062 lt_preloaded_symbols[] =
10065 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10066 cat <<\EOF >> conftest.$ac_ext
10074 # Now try linking the two files.
10075 mv conftest.$ac_objext conftstm.$ac_objext
10076 lt_save_LIBS="$LIBS"
10077 lt_save_CFLAGS="$CFLAGS"
10078 LIBS="conftstm.$ac_objext"
10079 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10087 LIBS="$lt_save_LIBS"
10088 CFLAGS="$lt_save_CFLAGS"
10090 echo "cannot find nm_test_func in $nlist" >&5
10093 echo "cannot find nm_test_var in $nlist" >&5
10096 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10099 echo "$progname: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10102 rm -f conftest* conftst*
10104 # Do not use the global_symbol_pipe unless it works.
10105 if test "$pipe_works" = yes; then
10108 lt_cv_sys_global_symbol_pipe=
10114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10115 lt_cv_sys_global_symbol_to_cdecl=
10117 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10118 { echo "$as_me:$LINENO: result: failed" >&5
10119 echo "${ECHO_T}failed" >&6; }
10121 { echo "$as_me:$LINENO: result: ok" >&5
10122 echo "${ECHO_T}ok" >&6; }
10126 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10127 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10128 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10132 libltdl_cv_preloaded_symbols=yes
10134 libltdl_cv_preloaded_symbols=no
10138 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10139 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10140 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_PRELOADED_SYMBOLS 1
10151 ac_cpp='$CPP $CPPFLAGS'
10152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10157 { echo "$as_me:$LINENO: checking for shl_load" >&5
10158 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10159 if test "${ac_cv_func_shl_load+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 cat >conftest.$ac_ext <<_ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10170 #define shl_load innocuous_shl_load
10172 /* System header to define __stub macros and hopefully few prototypes,
10173 which can conflict with char shl_load (); below.
10174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10175 <limits.h> exists even on freestanding compilers. */
10178 # include <limits.h>
10180 # include <assert.h>
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined __stub_shl_load || defined __stub___shl_load
10202 return shl_load ();
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
10216 grep -v '^ *+' conftest.er1 >conftest.err
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10222 { (case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_try") 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_cv_func_shl_load=yes
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_func_shl_load=no
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10252 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10253 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10254 if test $ac_cv_func_shl_load = yes; then
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_SHL_LOAD 1
10261 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10262 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10263 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 ac_check_lib_save_LIBS=$LIBS
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10275 /* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10285 return shl_load ();
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_link") 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10305 { (case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310 (eval "$ac_try") 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest$ac_exeext'
10315 { (case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_try") 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_lib_dld_shl_load=yes
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_lib_dld_shl_load=no
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10336 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10337 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10338 if test $ac_cv_lib_dld_shl_load = yes; then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_SHL_LOAD 1
10344 LIBADD_DL="$LIBADD_DL -ldld"
10346 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10347 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 ac_check_lib_save_LIBS=$LIBS
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_link") 2>conftest.er1
10384 grep -v '^ *+' conftest.er1 >conftest.err
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest$ac_exeext'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_dl_dlopen=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_lib_dl_dlopen=no
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10423 if test $ac_cv_lib_dl_dlopen = yes; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_LIBDL 1
10429 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10438 # include <dlfcn.h>
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest$ac_exeext'
10474 { (case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_try") 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10484 cat >>confdefs.h <<\_ACEOF
10485 #define HAVE_LIBDL 1
10487 libltdl_cv_func_dlopen="yes"
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10493 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10494 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-lsvld $LIBS"
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_lib_svld_dlopen=yes
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 ac_cv_lib_svld_dlopen=no
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10567 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10569 if test $ac_cv_lib_svld_dlopen = yes; then
10571 cat >>confdefs.h <<\_ACEOF
10572 #define HAVE_LIBDL 1
10575 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10577 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10578 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 ac_check_lib_save_LIBS=$LIBS
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10601 return dld_link ();
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_try") 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_lib_dld_dld_link=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_lib_dld_dld_link=no
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10652 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10653 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10654 if test $ac_cv_lib_dld_dld_link = yes; then
10656 cat >>confdefs.h <<\_ACEOF
10660 LIBADD_DL="$LIBADD_DL -ldld"
10662 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10663 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10664 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10675 #define _dyld_func_lookup innocuous__dyld_func_lookup
10677 /* System header to define __stub macros and hopefully few prototypes,
10678 which can conflict with char _dyld_func_lookup (); below.
10679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10680 <limits.h> exists even on freestanding compilers. */
10683 # include <limits.h>
10685 # include <assert.h>
10688 #undef _dyld_func_lookup
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10696 char _dyld_func_lookup ();
10697 /* The GNU C library defines this for functions which it implements
10698 to always fail with ENOSYS. Some functions are actually named
10699 something starting with __ and the normal name is an alias. */
10700 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10707 return _dyld_func_lookup ();
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_func__dyld_func_lookup=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_func__dyld_func_lookup=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10757 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10758 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10759 if test $ac_cv_func__dyld_func_lookup = yes; then
10761 cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_DYLD 1
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10788 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10790 lt_save_LIBS="$LIBS"
10791 LIBS="$LIBS $LIBADD_DL"
10793 for ac_func in dlerror
10795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 cat >conftest.$ac_ext <<_ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10809 #define $ac_func innocuous_$ac_func
10811 /* System header to define __stub macros and hopefully few prototypes,
10812 which can conflict with char $ac_func (); below.
10813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10814 <limits.h> exists even on freestanding compilers. */
10817 # include <limits.h>
10819 # include <assert.h>
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10831 /* The GNU C library defines this for functions which it implements
10832 to always fail with ENOSYS. Some functions are actually named
10833 something starting with __ and the normal name is an alias. */
10834 #if defined __stub_$ac_func || defined __stub___$ac_func
10841 return $ac_func ();
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (ac_try="$ac_link"
10848 case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_link") 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10861 { (case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_try") 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest$ac_exeext'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 eval "$as_ac_var=yes"
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 eval "$as_ac_var=no"
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10891 ac_res=`eval echo '${'$as_ac_var'}'`
10892 { echo "$as_me:$LINENO: result: $ac_res" >&5
10893 echo "${ECHO_T}$ac_res" >&6; }
10894 if test `eval echo '${'$as_ac_var'}'` = yes; then
10895 cat >>confdefs.h <<_ACEOF
10896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10902 LIBS="$lt_save_LIBS"
10905 ac_cpp='$CPP $CPPFLAGS'
10906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10912 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10913 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10914 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 ac_cv_sys_symbol_underscore=no
10918 cat > conftest.$ac_ext <<EOF
10919 void nm_test_func(){}
10920 int main(){nm_test_func;return 0;}
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; then
10927 # Now try to grab the symbols.
10928 ac_nlist=conftest.nm
10929 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10930 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && test -s "$ac_nlist"; then
10934 # See whether the symbols have a leading underscore.
10935 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10936 ac_cv_sys_symbol_underscore=yes
10938 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10941 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10945 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10948 echo "configure: failed program was:" >&5
10954 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10955 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10958 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10959 if test x"$libltdl_cv_func_dlopen" = xyes ||
10960 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10961 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10962 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10963 if test "${libltdl_cv_need_uscore+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 libltdl_cv_need_uscore=unknown
10968 LIBS="$LIBS $LIBADD_DL"
10969 if test "$cross_compiling" = yes; then :
10970 libltdl_cv_need_uscore=cross
10972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10973 lt_status=$lt_dlunknown
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10975 "configure"
10976 #include "confdefs.h"
10985 # define LT_DLGLOBAL RTLD_GLOBAL
10988 # define LT_DLGLOBAL DL_GLOBAL
10990 # define LT_DLGLOBAL 0
10994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10995 find out it does not work in some platform. */
10996 #ifndef LT_DLLAZY_OR_NOW
10998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11001 # define LT_DLLAZY_OR_NOW DL_LAZY
11004 # define LT_DLLAZY_OR_NOW RTLD_NOW
11007 # define LT_DLLAZY_OR_NOW DL_NOW
11009 # define LT_DLLAZY_OR_NOW 0
11017 extern "C" void exit (int);
11020 void fnord() { int i=42;}
11023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11024 int status = $lt_dlunknown;
11028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030 /* dlclose (self); */
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11043 (./conftest; exit; ) >&5 2>/dev/null
11045 case x$lt_status in
11046 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11047 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11048 x$lt_dlunknown|x*) ;;
11051 # compilation failed
11060 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11061 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11065 if test x"$libltdl_cv_need_uscore" = xyes; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define NEED_USCORE 1
11074 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11075 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11076 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 # PORTME does your system automatically load deplibs for dlopen?
11080 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11081 # For now, we just catch OSes we know something about -- in the
11082 # future, we'll try test this programmatically.
11083 libltdl_cv_sys_dlopen_deplibs=unknown
11085 aix3*|aix4.1.*|aix4.2.*)
11086 # Unknown whether this is true for these versions of AIX, but
11087 # we want this `case' here to explicitly catch those versions.
11088 libltdl_cv_sys_dlopen_deplibs=unknown
11091 libltdl_cv_sys_dlopen_deplibs=yes
11094 # Assuming the user has installed a libdl from somewhere, this is true
11095 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11096 libltdl_cv_sys_dlopen_deplibs=yes
11098 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11099 # GNU and its variants, using gnu ld.so (Glibc)
11100 libltdl_cv_sys_dlopen_deplibs=yes
11103 libltdl_cv_sys_dlopen_deplibs=yes
11106 libltdl_cv_sys_dlopen_deplibs=yes
11108 irix[12345]*|irix6.[01]*)
11109 # Catch all versions of IRIX before 6.2, and indicate that we don't
11110 # know how it worked for any of those versions.
11111 libltdl_cv_sys_dlopen_deplibs=unknown
11114 # The case above catches anything before 6.2, and it's known that
11115 # at 6.2 and later dlopen does load deplibs.
11116 libltdl_cv_sys_dlopen_deplibs=yes
11119 libltdl_cv_sys_dlopen_deplibs=yes
11122 libltdl_cv_sys_dlopen_deplibs=yes
11125 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11126 # it did *not* use an RPATH in a shared library to find objects the
11127 # library depends on, so we explictly say `no'.
11128 libltdl_cv_sys_dlopen_deplibs=no
11130 osf5.0|osf5.0a|osf5.1)
11131 # dlopen *does* load deplibs and with the right loader patch applied
11132 # it even uses RPATH in a shared library to search for shared objects
11133 # that the library depends on, but there's no easy way to know if that
11134 # patch is installed. Since this is the case, all we can really
11135 # say is unknown -- it depends on the patch being installed. If
11136 # it is, this changes to `yes'. Without it, it would be `no'.
11137 libltdl_cv_sys_dlopen_deplibs=unknown
11140 # the two cases above should catch all versions of osf <= 5.1. Read
11141 # the comments above for what we know about them.
11142 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11143 # is used to find them so we can finally say `yes'.
11144 libltdl_cv_sys_dlopen_deplibs=yes
11147 libltdl_cv_sys_dlopen_deplibs=yes
11149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11150 libltdl_cv_sys_dlopen_deplibs=yes
11155 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11156 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11157 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11159 cat >>confdefs.h <<\_ACEOF
11160 #define LTDL_DLOPEN_DEPLIBS 1
11166 for ac_header in argz.h
11168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11179 # Is the header compilable?
11180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11182 cat >conftest.$ac_ext <<_ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 $ac_includes_default
11189 #include <$ac_header>
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11200 grep -v '^ *+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_header_compiler=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_compiler=no
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11235 echo "${ECHO_T}$ac_header_compiler" >&6; }
11237 # Is the header present?
11238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include <$ac_header>
11248 if { (ac_try="$ac_cpp conftest.$ac_ext"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } >/dev/null; then
11261 if test -s conftest.err; then
11262 ac_cpp_err=$ac_c_preproc_warn_flag
11263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11270 if test -z "$ac_cpp_err"; then
11271 ac_header_preproc=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_header_preproc=no
11279 rm -f conftest.err conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281 echo "${ECHO_T}$ac_header_preproc" >&6; }
11283 # So? What about this header?
11284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11290 ac_header_preproc=yes
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11306 ## ----------------------------------- ##
11307 ## Report this to llvmbugs@cs.uiuc.edu ##
11308 ## ----------------------------------- ##
11310 ) | sed "s/^/$as_me: WARNING: /" >&2
11313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 eval "$as_ac_Header=\$ac_header_preproc"
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11335 { echo "$as_me:$LINENO: checking for error_t" >&5
11336 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11337 if test "${ac_cv_type_error_t+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 cat >conftest.$ac_ext <<_ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11350 typedef error_t ac__type_new_;
11354 if ((ac__type_new_ *) 0)
11356 if (sizeof (ac__type_new_))
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_type_error_t=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_cv_type_error_t=no
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11407 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11408 if test $ac_cv_type_error_t = yes; then
11410 cat >>confdefs.h <<_ACEOF
11411 #define HAVE_ERROR_T 1
11417 cat >>confdefs.h <<\_ACEOF
11418 #define error_t int
11429 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11445 #define $ac_func innocuous_$ac_func
11447 /* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below.
11449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 <limits.h> exists even on freestanding compilers. */
11453 # include <limits.h>
11455 # include <assert.h>
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11467 /* The GNU C library defines this for functions which it implements
11468 to always fail with ENOSYS. Some functions are actually named
11469 something starting with __ and the normal name is an alias. */
11470 #if defined __stub_$ac_func || defined __stub___$ac_func
11477 return $ac_func ();
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 eval "$as_ac_var=yes"
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 eval "$as_ac_var=no"
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11527 ac_res=`eval echo '${'$as_ac_var'}'`
11528 { echo "$as_me:$LINENO: result: $ac_res" >&5
11529 echo "${ECHO_T}$ac_res" >&6; }
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11579 # Is the header compilable?
11580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 $ac_includes_default
11589 #include <$ac_header>
11591 rm -f conftest.$ac_objext
11592 if { (ac_try="$ac_compile"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_compile") 2>conftest.er1
11600 grep -v '^ *+' conftest.er1 >conftest.err
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_try") 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_header_compiler=yes
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_header_compiler=no
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635 echo "${ECHO_T}$ac_header_compiler" >&6; }
11637 # Is the header present?
11638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11640 cat >conftest.$ac_ext <<_ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 #include <$ac_header>
11648 if { (ac_try="$ac_cpp conftest.$ac_ext"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } >/dev/null; then
11661 if test -s conftest.err; then
11662 ac_cpp_err=$ac_c_preproc_warn_flag
11663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670 if test -z "$ac_cpp_err"; then
11671 ac_header_preproc=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706 ## ----------------------------------- ##
11707 ## Report this to llvmbugs@cs.uiuc.edu ##
11708 ## ----------------------------------- ##
11710 ) | sed "s/^/$as_me: WARNING: /" >&2
11713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 eval "$as_ac_Header=\$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11738 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 ac_res=`eval echo '${'$as_ac_Header'}'`
11748 { echo "$as_me:$LINENO: result: $ac_res" >&5
11749 echo "${ECHO_T}$ac_res" >&6; }
11751 # Is the header compilable?
11752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 #include <$ac_header>
11763 rm -f conftest.$ac_objext
11764 if { (ac_try="$ac_compile"
11765 case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_compile") 2>conftest.er1
11772 grep -v '^ *+' conftest.er1 >conftest.err
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778 { (case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_try") 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_header_compiler=yes
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_header_compiler=no
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11807 echo "${ECHO_T}$ac_header_compiler" >&6; }
11809 # Is the header present?
11810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 #include <$ac_header>
11820 if { (ac_try="$ac_cpp conftest.$ac_ext"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } >/dev/null; then
11833 if test -s conftest.err; then
11834 ac_cpp_err=$ac_c_preproc_warn_flag
11835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842 if test -z "$ac_cpp_err"; then
11843 ac_header_preproc=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_header_preproc=no
11851 rm -f conftest.err conftest.$ac_ext
11852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853 echo "${ECHO_T}$ac_header_preproc" >&6; }
11855 # So? What about this header?
11856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862 ac_header_preproc=yes
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11878 ## ----------------------------------- ##
11879 ## Report this to llvmbugs@cs.uiuc.edu ##
11880 ## ----------------------------------- ##
11882 ) | sed "s/^/$as_me: WARNING: /" >&2
11885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 eval "$as_ac_Header=\$ac_header_preproc"
11892 ac_res=`eval echo '${'$as_ac_Header'}'`
11893 { echo "$as_me:$LINENO: result: $ac_res" >&5
11894 echo "${ECHO_T}$ac_res" >&6; }
11897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11898 cat >>confdefs.h <<_ACEOF
11899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11908 for ac_header in string.h strings.h
11910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 ac_res=`eval echo '${'$as_ac_Header'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11921 # Is the header compilable?
11922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11931 #include <$ac_header>
11933 rm -f conftest.$ac_objext
11934 if { (ac_try="$ac_compile"
11935 case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_compile") 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11967 ac_header_compiler=yes
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_header_compiler=no
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11977 echo "${ECHO_T}$ac_header_compiler" >&6; }
11979 # Is the header present?
11980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 #include <$ac_header>
11990 if { (ac_try="$ac_cpp conftest.$ac_ext"
11991 case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11998 grep -v '^ *+' conftest.er1 >conftest.err
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } >/dev/null; then
12003 if test -s conftest.err; then
12004 ac_cpp_err=$ac_c_preproc_warn_flag
12005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12012 if test -z "$ac_cpp_err"; then
12013 ac_header_preproc=yes
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 ac_header_preproc=no
12021 rm -f conftest.err conftest.$ac_ext
12022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12023 echo "${ECHO_T}$ac_header_preproc" >&6; }
12025 # So? What about this header?
12026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12032 ac_header_preproc=yes
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12048 ## ----------------------------------- ##
12049 ## Report this to llvmbugs@cs.uiuc.edu ##
12050 ## ----------------------------------- ##
12052 ) | sed "s/^/$as_me: WARNING: /" >&2
12055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 eval "$as_ac_Header=\$ac_header_preproc"
12062 ac_res=`eval echo '${'$as_ac_Header'}'`
12063 { echo "$as_me:$LINENO: result: $ac_res" >&5
12064 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12079 for ac_func in strchr index
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095 #define $ac_func innocuous_$ac_func
12097 /* System header to define __stub macros and hopefully few prototypes,
12098 which can conflict with char $ac_func (); below.
12099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 <limits.h> exists even on freestanding compilers. */
12103 # include <limits.h>
12105 # include <assert.h>
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12117 /* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
12120 #if defined __stub_$ac_func || defined __stub___$ac_func
12127 return $ac_func ();
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12141 grep -v '^ *+' conftest.er1 >conftest.err
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 eval "$as_ac_var=no"
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12177 ac_res=`eval echo '${'$as_ac_var'}'`
12178 { echo "$as_me:$LINENO: result: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12180 if test `eval echo '${'$as_ac_var'}'` = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12190 for ac_func in strrchr rindex
12192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12206 #define $ac_func innocuous_$ac_func
12208 /* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char $ac_func (); below.
12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211 <limits.h> exists even on freestanding compilers. */
12214 # include <limits.h>
12216 # include <assert.h>
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined __stub_$ac_func || defined __stub___$ac_func
12238 return $ac_func ();
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 eval "$as_ac_var=yes"
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 eval "$as_ac_var=no"
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12288 ac_res=`eval echo '${'$as_ac_var'}'`
12289 { echo "$as_me:$LINENO: result: $ac_res" >&5
12290 echo "${ECHO_T}$ac_res" >&6; }
12291 if test `eval echo '${'$as_ac_var'}'` = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12301 for ac_func in memcpy bcopy
12303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 cat >conftest.$ac_ext <<_ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12317 #define $ac_func innocuous_$ac_func
12319 /* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func (); below.
12321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322 <limits.h> exists even on freestanding compilers. */
12325 # include <limits.h>
12327 # include <assert.h>
12332 /* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12339 /* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
12342 #if defined __stub_$ac_func || defined __stub___$ac_func
12349 return $ac_func ();
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 eval "$as_ac_var=yes"
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 eval "$as_ac_var=no"
12396 rm -f core conftest.err conftest.$ac_objext \
12397 conftest$ac_exeext conftest.$ac_ext
12399 ac_res=`eval echo '${'$as_ac_var'}'`
12400 { echo "$as_me:$LINENO: result: $ac_res" >&5
12401 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_var'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12412 for ac_func in memmove strcmp
12414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12428 #define $ac_func innocuous_$ac_func
12430 /* System header to define __stub macros and hopefully few prototypes,
12431 which can conflict with char $ac_func (); below.
12432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433 <limits.h> exists even on freestanding compilers. */
12436 # include <limits.h>
12438 # include <assert.h>
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12450 /* The GNU C library defines this for functions which it implements
12451 to always fail with ENOSYS. Some functions are actually named
12452 something starting with __ and the normal name is an alias. */
12453 #if defined __stub_$ac_func || defined __stub___$ac_func
12460 return $ac_func ();
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (ac_try="$ac_link"
12467 case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_link") 2>conftest.er1
12474 grep -v '^ *+' conftest.er1 >conftest.err
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
12479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480 { (case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_try") 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 eval "$as_ac_var=yes"
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 eval "$as_ac_var=no"
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12510 ac_res=`eval echo '${'$as_ac_var'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512 echo "${ECHO_T}$ac_res" >&6; }
12513 if test `eval echo '${'$as_ac_var'}'` = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12524 for ac_func in closedir opendir readdir
12526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540 #define $ac_func innocuous_$ac_func
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12548 # include <limits.h>
12550 # include <assert.h>
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12562 /* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
12565 #if defined __stub_$ac_func || defined __stub___$ac_func
12572 return $ac_func ();
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_link") 2>conftest.er1
12586 grep -v '^ *+' conftest.er1 >conftest.err
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12592 { (case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_try") 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 eval "$as_ac_var=yes"
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 eval "$as_ac_var=no"
12619 rm -f core conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext conftest.$ac_ext
12622 ac_res=`eval echo '${'$as_ac_var'}'`
12623 { echo "$as_me:$LINENO: result: $ac_res" >&5
12624 echo "${ECHO_T}$ac_res" >&6; }
12625 if test `eval echo '${'$as_ac_var'}'` = yes; then
12626 cat >>confdefs.h <<_ACEOF
12627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12634 # Check whether --enable-shared was given.
12635 if test "${enable_shared+set}" = set; then
12636 enableval=$enable_shared; p=${PACKAGE-default}
12638 yes) enable_shared=yes ;;
12639 no) enable_shared=no ;;
12642 # Look at the argument we got. We use all the common list separators.
12643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12644 for pkg in $enableval; do
12646 if test "X$pkg" = "X$p"; then
12658 # Check whether --enable-static was given.
12659 if test "${enable_static+set}" = set; then
12660 enableval=$enable_static; p=${PACKAGE-default}
12662 yes) enable_static=yes ;;
12663 no) enable_static=no ;;
12666 # Look at the argument we got. We use all the common list separators.
12667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12668 for pkg in $enableval; do
12670 if test "X$pkg" = "X$p"; then
12682 # Check whether --enable-fast-install was given.
12683 if test "${enable_fast_install+set}" = set; then
12684 enableval=$enable_fast_install; p=${PACKAGE-default}
12686 yes) enable_fast_install=yes ;;
12687 no) enable_fast_install=no ;;
12689 enable_fast_install=no
12690 # Look at the argument we got. We use all the common list separators.
12691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12692 for pkg in $enableval; do
12694 if test "X$pkg" = "X$p"; then
12695 enable_fast_install=yes
12702 enable_fast_install=yes
12706 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12707 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12708 if test "${lt_cv_path_SED+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 # Loop through the user's path and test for sed and gsed.
12712 # Then use that list of sed's as ones to test for truncation.
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12717 test -z "$as_dir" && as_dir=.
12718 for lt_ac_prog in sed gsed; do
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12721 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12728 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12729 # along with /bin/sed that truncates output.
12730 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12731 test ! -f $lt_ac_sed && continue
12732 cat /dev/null > conftest.in
12734 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12735 # Check for GNU sed and select it if it is found.
12736 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12737 lt_cv_path_SED=$lt_ac_sed
12741 cat conftest.in conftest.in >conftest.tmp
12742 mv conftest.tmp conftest.in
12743 cp conftest.in conftest.nl
12745 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12746 cmp -s conftest.out conftest.nl || break
12747 # 10000 chars as input seems more than enough
12748 test $lt_ac_count -gt 10 && break
12749 lt_ac_count=`expr $lt_ac_count + 1`
12750 if test $lt_ac_count -gt $lt_ac_max; then
12751 lt_ac_max=$lt_ac_count
12752 lt_cv_path_SED=$lt_ac_sed
12759 SED=$lt_cv_path_SED
12760 { echo "$as_me:$LINENO: result: $SED" >&5
12761 echo "${ECHO_T}$SED" >&6; }
12764 # Check whether --with-gnu-ld was given.
12765 if test "${with_gnu_ld+set}" = set; then
12766 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12772 if test "$GCC" = yes; then
12773 # Check if gcc -print-prog-name=ld gives a path.
12774 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12775 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12778 # gcc leaves a trailing carriage return which upsets mingw
12779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12784 # Accept absolute paths.
12786 re_direlt='/[^/][^/]*/\.\./'
12787 # Canonicalize the pathname of ld
12788 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12790 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12792 test -z "$LD" && LD="$ac_prog"
12795 # If it fails, then pretend we aren't using GCC.
12799 # If it is relative, then search for the first ld in PATH.
12800 with_gnu_ld=unknown
12803 elif test "$with_gnu_ld" = yes; then
12804 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12807 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12810 if test "${lt_cv_path_LD+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 if test -z "$LD"; then
12814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12815 for ac_dir in $PATH; do
12817 test -z "$ac_dir" && ac_dir=.
12818 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12819 lt_cv_path_LD="$ac_dir/$ac_prog"
12820 # Check to see if the program is GNU ld. I'd rather use --version,
12821 # but apparently some variants of GNU ld only accept -v.
12822 # Break only if it was the GNU/non-GNU ld that we prefer.
12823 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12824 *GNU* | *'with BFD'*)
12825 test "$with_gnu_ld" != no && break
12828 test "$with_gnu_ld" != yes && break
12835 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12839 LD="$lt_cv_path_LD"
12840 if test -n "$LD"; then
12841 { echo "$as_me:$LINENO: result: $LD" >&5
12842 echo "${ECHO_T}$LD" >&6; }
12844 { echo "$as_me:$LINENO: result: no" >&5
12845 echo "${ECHO_T}no" >&6; }
12847 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12848 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12849 { (exit 1); exit 1; }; }
12850 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12851 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12852 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12856 case `$LD -v 2>&1 </dev/null` in
12857 *GNU* | *'with BFD'*)
12858 lt_cv_prog_gnu_ld=yes
12861 lt_cv_prog_gnu_ld=no
12865 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12866 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12867 with_gnu_ld=$lt_cv_prog_gnu_ld
12870 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12871 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12872 if test "${lt_cv_ld_reload_flag+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 lt_cv_ld_reload_flag='-r'
12877 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12878 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12879 reload_flag=$lt_cv_ld_reload_flag
12880 case $reload_flag in
12882 *) reload_flag=" $reload_flag" ;;
12884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12887 if test "$GCC" = yes; then
12888 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12895 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12896 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12897 if test "${lt_cv_deplibs_check_method+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 lt_cv_file_magic_cmd='$MAGIC_CMD'
12901 lt_cv_file_magic_test_file=
12902 lt_cv_deplibs_check_method='unknown'
12903 # Need to set the preceding variable on all platforms that support
12904 # interlibrary dependencies.
12905 # 'none' -- dependencies not supported.
12906 # `unknown' -- same as none, but documents that we really don't know.
12907 # 'pass_all' -- all dependencies passed with no checks.
12908 # 'test_compile' -- check by making test program.
12909 # 'file_magic [[regex]]' -- check by looking for files in library path
12910 # which responds to the $file_magic_cmd with a given extended regex.
12911 # If you have `file' or equivalent on your system and you're not sure
12912 # whether `pass_all' will *always* work, you probably want this one.
12916 lt_cv_deplibs_check_method=pass_all
12920 lt_cv_deplibs_check_method=pass_all
12924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12925 lt_cv_file_magic_cmd='/usr/bin/file -L'
12926 lt_cv_file_magic_test_file=/shlib/libc.so
12930 # func_win32_libid is a shell function defined in ltmain.sh
12931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12932 lt_cv_file_magic_cmd='func_win32_libid'
12936 # Base MSYS/MinGW do not provide the 'file' command needed by
12937 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12938 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12939 lt_cv_file_magic_cmd='$OBJDUMP -f'
12942 darwin* | rhapsody*)
12943 lt_cv_deplibs_check_method=pass_all
12946 freebsd* | kfreebsd*-gnu | dragonfly*)
12947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12950 # Not sure whether the presence of OpenBSD here was a mistake.
12951 # Let's accept both of them until this is cleared up.
12952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12953 lt_cv_file_magic_cmd=/usr/bin/file
12954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12958 lt_cv_deplibs_check_method=pass_all
12963 lt_cv_deplibs_check_method=pass_all
12966 hpux10.20* | hpux11*)
12967 lt_cv_file_magic_cmd=/usr/bin/file
12970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12971 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12974 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]'
12975 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12979 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12985 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12989 irix5* | irix6* | nonstopux*)
12991 *-32|*"-32 ") libmagic=32-bit;;
12992 *-n32|*"-n32 ") libmagic=N32;;
12993 *-64|*"-64 ") libmagic=64-bit;;
12994 *) libmagic=never-match;;
12996 lt_cv_deplibs_check_method=pass_all
12999 # This must be Linux ELF.
13001 lt_cv_deplibs_check_method=pass_all
13005 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13014 lt_cv_file_magic_cmd=/usr/bin/file
13015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13019 lt_cv_deplibs_check_method=unknown
13023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13030 osf3* | osf4* | osf5*)
13031 lt_cv_deplibs_check_method=pass_all
13035 lt_cv_deplibs_check_method=pass_all
13039 case $host_vendor in
13041 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]'
13042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13045 lt_cv_deplibs_check_method=pass_all
13048 lt_cv_file_magic_cmd='/bin/file'
13049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13052 lt_cv_file_magic_cmd='/bin/file'
13053 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13054 lt_cv_file_magic_test_file=/lib/libc.so
13057 lt_cv_deplibs_check_method=pass_all
13060 lt_cv_deplibs_check_method=pass_all
13065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13066 lt_cv_deplibs_check_method=pass_all
13071 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13072 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13073 file_magic_cmd=$lt_cv_file_magic_cmd
13074 deplibs_check_method=$lt_cv_deplibs_check_method
13075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13079 # If no C compiler was specified, use CC.
13082 # If no C compiler flags were specified, use CFLAGS.
13083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13085 # Allow CC to be a program name with arguments.
13088 # Check whether --enable-libtool-lock was given.
13089 if test "${enable_libtool_lock+set}" = set; then
13090 enableval=$enable_libtool_lock;
13093 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13095 # Some flags need to be propagated to the compiler or linker for good
13099 # Find out which ABI we are using.
13100 echo 'int i;' > conftest.$ac_ext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; then
13106 case `/usr/bin/file conftest.$ac_objext` in
13108 HPUX_IA64_MODE="32"
13111 HPUX_IA64_MODE="64"
13118 # Find out which ABI we are using.
13119 echo '#line 13119 "configure"' > conftest.$ac_ext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121 (eval $ac_compile) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; then
13125 if test "$lt_cv_prog_gnu_ld" = yes; then
13126 case `/usr/bin/file conftest.$ac_objext` in
13128 LD="${LD-ld} -melf32bsmip"
13131 LD="${LD-ld} -melf32bmipn32"
13134 LD="${LD-ld} -melf64bmip"
13138 case `/usr/bin/file conftest.$ac_objext` in
13154 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13155 # Find out which ABI we are using.
13156 echo 'int i;' > conftest.$ac_ext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; then
13162 case `/usr/bin/file conftest.o` in
13166 LD="${LD-ld} -m elf_i386"
13168 ppc64-*linux*|powerpc64-*linux*)
13169 LD="${LD-ld} -m elf32ppclinux"
13172 LD="${LD-ld} -m elf_s390"
13175 LD="${LD-ld} -m elf32_sparc"
13182 LD="${LD-ld} -m elf_x86_64"
13184 ppc*-*linux*|powerpc*-*linux*)
13185 LD="${LD-ld} -m elf64ppc"
13188 LD="${LD-ld} -m elf64_s390"
13191 LD="${LD-ld} -m elf64_sparc"
13201 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13202 SAVE_CFLAGS="$CFLAGS"
13203 CFLAGS="$CFLAGS -belf"
13204 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13205 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13206 if test "${lt_cv_cc_needs_belf+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 ac_cpp='$CPP $CPPFLAGS'
13211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_link") 2>conftest.er1
13239 grep -v '^ *+' conftest.er1 >conftest.err
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 lt_cv_cc_needs_belf=yes
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 lt_cv_cc_needs_belf=no
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13275 ac_cpp='$CPP $CPPFLAGS'
13276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13281 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13282 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13285 CFLAGS="$SAVE_CFLAGS"
13289 # Find out which ABI we are using.
13290 echo 'int i;' > conftest.$ac_ext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292 (eval $ac_compile) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; then
13296 case `/usr/bin/file conftest.o` in
13298 case $lt_cv_prog_gnu_ld in
13299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13300 *) LD="${LD-ld} -64" ;;
13311 need_locks="$enable_libtool_lock"
13316 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13317 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13318 (test "X$CXX" != "Xg++"))) ; then
13320 ac_cpp='$CXXCPP $CPPFLAGS'
13321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13324 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13325 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13326 if test -z "$CXXCPP"; then
13327 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 # Double quotes because CXXCPP needs to be expanded
13331 for CXXCPP in "$CXX -E" "/lib/cpp"
13333 ac_preproc_ok=false
13334 for ac_cxx_preproc_warn_flag in '' yes
13336 # Use a header file that comes with gcc, so configuring glibc
13337 # with a fresh cross-compiler works.
13338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13339 # <limits.h> exists even on freestanding compilers.
13340 # On the NeXT, cc -E runs the code through the compiler's parser,
13341 # not just through cpp. "Syntax error" is here to catch this case.
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13349 # include <limits.h>
13351 # include <assert.h>
13355 if { (ac_try="$ac_cpp conftest.$ac_ext"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13363 grep -v '^ *+' conftest.er1 >conftest.err
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } >/dev/null; then
13368 if test -s conftest.err; then
13369 ac_cpp_err=$ac_cxx_preproc_warn_flag
13370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13377 if test -z "$ac_cpp_err"; then
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 # Broken: fails on valid input.
13387 rm -f conftest.err conftest.$ac_ext
13389 # OK, works on sane cases. Now check whether nonexistent headers
13390 # can be detected and how.
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <ac_nonexistent.h>
13399 if { (ac_try="$ac_cpp conftest.$ac_ext"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } >/dev/null; then
13412 if test -s conftest.err; then
13413 ac_cpp_err=$ac_cxx_preproc_warn_flag
13414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13421 if test -z "$ac_cpp_err"; then
13422 # Broken: success on invalid input.
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 # Passes both tests.
13433 rm -f conftest.err conftest.$ac_ext
13436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13437 rm -f conftest.err conftest.$ac_ext
13438 if $ac_preproc_ok; then
13443 ac_cv_prog_CXXCPP=$CXXCPP
13446 CXXCPP=$ac_cv_prog_CXXCPP
13448 ac_cv_prog_CXXCPP=$CXXCPP
13450 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13451 echo "${ECHO_T}$CXXCPP" >&6; }
13452 ac_preproc_ok=false
13453 for ac_cxx_preproc_warn_flag in '' yes
13455 # Use a header file that comes with gcc, so configuring glibc
13456 # with a fresh cross-compiler works.
13457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13458 # <limits.h> exists even on freestanding compilers.
13459 # On the NeXT, cc -E runs the code through the compiler's parser,
13460 # not just through cpp. "Syntax error" is here to catch this case.
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 # include <limits.h>
13470 # include <assert.h>
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13482 grep -v '^ *+' conftest.er1 >conftest.err
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null; then
13487 if test -s conftest.err; then
13488 ac_cpp_err=$ac_cxx_preproc_warn_flag
13489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13496 if test -z "$ac_cpp_err"; then
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 # Broken: fails on valid input.
13506 rm -f conftest.err conftest.$ac_ext
13508 # OK, works on sane cases. Now check whether nonexistent headers
13509 # can be detected and how.
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <ac_nonexistent.h>
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13526 grep -v '^ *+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null; then
13531 if test -s conftest.err; then
13532 ac_cpp_err=$ac_cxx_preproc_warn_flag
13533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13540 if test -z "$ac_cpp_err"; then
13541 # Broken: success on invalid input.
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 # Passes both tests.
13552 rm -f conftest.err conftest.$ac_ext
13555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13556 rm -f conftest.err conftest.$ac_ext
13557 if $ac_preproc_ok; then
13560 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13561 See \`config.log' for more details." >&5
13562 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13563 See \`config.log' for more details." >&2;}
13564 { (exit 1); exit 1; }; }
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13577 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13578 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13580 if test -n "$ac_tool_prefix"; then
13581 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
13583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13587 if test "${ac_cv_prog_F77+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 if test -n "$F77"; then
13591 ac_cv_prog_F77="$F77" # Let the user override the test.
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13600 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 F77=$ac_cv_prog_F77
13611 if test -n "$F77"; then
13612 { echo "$as_me:$LINENO: result: $F77" >&5
13613 echo "${ECHO_T}$F77" >&6; }
13615 { echo "$as_me:$LINENO: result: no" >&5
13616 echo "${ECHO_T}no" >&6; }
13620 test -n "$F77" && break
13623 if test -z "$F77"; then
13625 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
13627 # Extract the first word of "$ac_prog", so it can be a program name with args.
13628 set dummy $ac_prog; ac_word=$2
13629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13631 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 if test -n "$ac_ct_F77"; then
13635 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13644 ac_cv_prog_ac_ct_F77="$ac_prog"
13645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13654 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13655 if test -n "$ac_ct_F77"; then
13656 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13657 echo "${ECHO_T}$ac_ct_F77" >&6; }
13659 { echo "$as_me:$LINENO: result: no" >&5
13660 echo "${ECHO_T}no" >&6; }
13664 test -n "$ac_ct_F77" && break
13667 if test "x$ac_ct_F77" = x; then
13670 case $cross_compiling:$ac_tool_warned in
13672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13673 whose name does not start with the host triplet. If you think this
13674 configuration is useful to you, please write to autoconf@gnu.org." >&5
13675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13676 whose name does not start with the host triplet. If you think this
13677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13678 ac_tool_warned=yes ;;
13685 # Provide some information about the compiler.
13686 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13687 ac_compiler=`set X $ac_compile; echo $2`
13688 { (ac_try="$ac_compiler --version >&5"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compiler --version >&5") 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }
13698 { (ac_try="$ac_compiler -v >&5"
13699 case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_compiler -v >&5") 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }
13708 { (ac_try="$ac_compiler -V >&5"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_compiler -V >&5") 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }
13720 # If we don't use `.F' as extension, the preprocessor is not run on the
13721 # input file. (Note that this only needs to work for GNU compilers.)
13722 ac_save_ext=$ac_ext
13724 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13725 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13726 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 cat >conftest.$ac_ext <<_ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_compiler_gnu=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13783 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13784 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13785 ac_ext=$ac_save_ext
13786 ac_test_FFLAGS=${FFLAGS+set}
13787 ac_save_FFLAGS=$FFLAGS
13789 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13790 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13791 if test "${ac_cv_prog_f77_g+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 cat >conftest.$ac_ext <<_ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_compile") 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest.$ac_objext'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_prog_f77_g=yes
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_prog_f77_g=no
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13846 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13847 if test "$ac_test_FFLAGS" = set; then
13848 FFLAGS=$ac_save_FFLAGS
13849 elif test $ac_cv_prog_f77_g = yes; then
13850 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13856 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13863 G77=`test $ac_compiler_gnu = yes && echo yes`
13865 ac_cpp='$CPP $CPPFLAGS'
13866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13872 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13874 # find the maximum length of command line arguments
13875 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13876 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13877 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 # On DJGPP, this test can blow up pretty badly due to problems in libc
13886 # (any single argument exceeding 2000 bytes causes a buffer overrun
13887 # during glob expansion). Even if it were fixed, the result of this
13888 # check would be larger than it should be.
13889 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13893 # Under GNU Hurd, this test is not required because there is
13894 # no limit to the length of command line arguments.
13895 # Libtool will interpret -1 as no limit whatsoever
13896 lt_cv_sys_max_cmd_len=-1;
13900 # On Win9x/ME, this test blows up -- it succeeds, but takes
13901 # about 5 minutes as the teststring grows exponentially.
13902 # Worse, since 9x/ME are not pre-emptively multitasking,
13903 # you end up with a "frozen" computer, even though with patience
13904 # the test eventually succeeds (with a max line length of 256k).
13905 # Instead, let's just punt: use the minimum linelength reported by
13906 # all of the supported platforms: 8192 (on NT/2K/XP).
13907 lt_cv_sys_max_cmd_len=8192;
13911 # On AmigaOS with pdksh, this test takes hours, literally.
13912 # So we just punt and use a minimum line length of 8192.
13913 lt_cv_sys_max_cmd_len=8192;
13916 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13917 # This has been around since 386BSD, at least. Likely further.
13918 if test -x /sbin/sysctl; then
13919 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13920 elif test -x /usr/sbin/sysctl; then
13921 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13923 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13925 # And add a safety zone
13926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13931 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13932 lt_cv_sys_max_cmd_len=196608
13936 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13937 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13938 # nice to cause kernel panics so lets avoid the loop below.
13939 # First set a reasonable default.
13940 lt_cv_sys_max_cmd_len=16384
13942 if test -x /sbin/sysconfig; then
13943 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13944 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13949 lt_cv_sys_max_cmd_len=102400
13951 sysv5* | sco5v6* | sysv4.2uw2*)
13952 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13953 if test -n "$kargmax"; then
13954 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13956 lt_cv_sys_max_cmd_len=32768
13960 # If test is not a shell built-in, we'll probably end up computing a
13961 # maximum length that is only half of the actual maximum length, but
13963 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13964 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13965 = "XX$teststring") >/dev/null 2>&1 &&
13966 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13967 lt_cv_sys_max_cmd_len=$new_result &&
13968 test $i != 17 # 1/2 MB should be enough
13971 teststring=$teststring$teststring
13974 # Add a significant safety factor because C++ compilers can tack on massive
13975 # amounts of additional arguments before passing them to the linker.
13976 # It appears as though 1/2 is a usable value.
13977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13983 if test -n $lt_cv_sys_max_cmd_len ; then
13984 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13985 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13987 { echo "$as_me:$LINENO: result: none" >&5
13988 echo "${ECHO_T}none" >&6; }
13994 # Check for command to grab the raw symbol name followed by C symbol from nm.
13995 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13996 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13997 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 # These are sane defaults that work on at least a few old systems.
14002 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14004 # Character class describing NM global symbol codes.
14005 symcode='[BCDEGRST]'
14007 # Regexp to match symbols that can be accessed directly from C.
14008 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14010 # Transform an extracted symbol line into a proper C declaration
14011 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14013 # Transform an extracted symbol line into symbol name and symbol address
14014 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'"
14016 # Define system-specific variables.
14021 cygwin* | mingw* | pw32*)
14022 symcode='[ABCDGISTW]'
14024 hpux*) # Its linker distinguishes data from code symbols
14025 if test "$host_cpu" = ia64; then
14026 symcode='[ABCDEGRST]'
14028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14029 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'"
14032 if test "$host_cpu" = ia64; then
14033 symcode='[ABCDGIRSTW]'
14034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14035 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'"
14038 irix* | nonstopux*)
14039 symcode='[BCDEGRST]'
14042 symcode='[BCDEGQRST]'
14053 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14061 # Handle CRLF in mingw tool chain
14065 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14069 # If we're using GNU nm, then use its standard symbol codes.
14070 case `$NM -V 2>&1` in
14071 *GNU* | *'with BFD'*)
14072 symcode='[ABCDGIRSTW]' ;;
14075 # Try without a prefix undercore, then with it.
14076 for ac_symprfx in "" "_"; do
14078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14079 symxfrm="\\1 $ac_symprfx\\2 \\2"
14081 # Write the raw and C identifiers.
14082 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14084 # Check to see that the pipe works correctly.
14088 cat > conftest.$ac_ext <<EOF
14093 void nm_test_func(){}
14097 int main(){nm_test_var='a';nm_test_func();return(0);}
14100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14101 (eval $ac_compile) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; then
14105 # Now try to grab the symbols.
14107 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14108 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && test -s "$nlist"; then
14112 # Try sorting and uniquifying the output.
14113 if sort "$nlist" | uniq > "$nlist"T; then
14114 mv -f "$nlist"T "$nlist"
14119 # Make sure that we snagged all the symbols we need.
14120 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14121 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14122 cat <<EOF > conftest.$ac_ext
14128 # Now generate the symbol file.
14129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14131 cat <<EOF >> conftest.$ac_ext
14132 #if defined (__STDC__) && __STDC__
14133 # define lt_ptr_t void *
14135 # define lt_ptr_t char *
14139 /* The mapping between symbol names and symbols. */
14144 lt_preloaded_symbols[] =
14147 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14148 cat <<\EOF >> conftest.$ac_ext
14156 # Now try linking the two files.
14157 mv conftest.$ac_objext conftstm.$ac_objext
14158 lt_save_LIBS="$LIBS"
14159 lt_save_CFLAGS="$CFLAGS"
14160 LIBS="conftstm.$ac_objext"
14161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14169 LIBS="$lt_save_LIBS"
14170 CFLAGS="$lt_save_CFLAGS"
14172 echo "cannot find nm_test_func in $nlist" >&5
14175 echo "cannot find nm_test_var in $nlist" >&5
14178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14181 echo "$progname: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14184 rm -f conftest* conftst*
14186 # Do not use the global_symbol_pipe unless it works.
14187 if test "$pipe_works" = yes; then
14190 lt_cv_sys_global_symbol_pipe=
14196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14197 lt_cv_sys_global_symbol_to_cdecl=
14199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14200 { echo "$as_me:$LINENO: result: failed" >&5
14201 echo "${ECHO_T}failed" >&6; }
14203 { echo "$as_me:$LINENO: result: ok" >&5
14204 echo "${ECHO_T}ok" >&6; }
14207 { echo "$as_me:$LINENO: checking for objdir" >&5
14208 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14209 if test "${lt_cv_objdir+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 rm -f .libs 2>/dev/null
14213 mkdir .libs 2>/dev/null
14214 if test -d .libs; then
14217 # MS-DOS does not allow filenames that begin with a dot.
14220 rmdir .libs 2>/dev/null
14222 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14223 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14224 objdir=$lt_cv_objdir
14232 # AIX sometimes has problems with the GCC collect2 program. For some
14233 # reason, if we set the COLLECT_NAMES environment variable, the problems
14234 # vanish in a puff of smoke.
14235 if test "X${COLLECT_NAMES+set}" != Xset; then
14237 export COLLECT_NAMES
14242 # Sed substitution that helps us do robust quoting. It backslashifies
14243 # metacharacters that are still active within double-quoted strings.
14244 Xsed='sed -e 1s/^X//'
14245 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14247 # Same as above, but do not quote variable references.
14248 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14250 # Sed substitution to delay expansion of an escaped shell variable in a
14251 # double_quote_subst'ed string.
14252 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14254 # Sed substitution to avoid accidental globbing in evaled expressions
14255 no_glob_subst='s/\*/\\\*/g'
14260 # Global variables:
14261 default_ofile=mklib
14262 can_build_shared=yes
14264 # All known linkers require a `.a' archive for static linking (except MSVC,
14265 # which needs '.lib').
14267 ltmain="$ac_aux_dir/ltmain.sh"
14268 ofile="$default_ofile"
14269 with_gnu_ld="$lt_cv_prog_gnu_ld"
14271 if test -n "$ac_tool_prefix"; then
14272 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14273 set dummy ${ac_tool_prefix}ar; ac_word=$2
14274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14276 if test "${ac_cv_prog_AR+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 if test -n "$AR"; then
14280 ac_cv_prog_AR="$AR" # Let the user override the test.
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14289 ac_cv_prog_AR="${ac_tool_prefix}ar"
14290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 if test -n "$AR"; then
14301 { echo "$as_me:$LINENO: result: $AR" >&5
14302 echo "${ECHO_T}$AR" >&6; }
14304 { echo "$as_me:$LINENO: result: no" >&5
14305 echo "${ECHO_T}no" >&6; }
14310 if test -z "$ac_cv_prog_AR"; then
14312 # Extract the first word of "ar", so it can be a program name with args.
14313 set dummy ar; ac_word=$2
14314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 if test -n "$ac_ct_AR"; then
14320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323 for as_dir in $PATH
14326 test -z "$as_dir" && as_dir=.
14327 for ac_exec_ext in '' $ac_executable_extensions; do
14328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14329 ac_cv_prog_ac_ct_AR="ar"
14330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14340 if test -n "$ac_ct_AR"; then
14341 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14342 echo "${ECHO_T}$ac_ct_AR" >&6; }
14344 { echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6; }
14348 if test "x$ac_ct_AR" = x; then
14351 case $cross_compiling:$ac_tool_warned in
14353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14354 whose name does not start with the host triplet. If you think this
14355 configuration is useful to you, please write to autoconf@gnu.org." >&5
14356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14357 whose name does not start with the host triplet. If you think this
14358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14359 ac_tool_warned=yes ;;
14364 AR="$ac_cv_prog_AR"
14367 if test -n "$ac_tool_prefix"; then
14368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14372 if test "${ac_cv_prog_RANLIB+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 if test -n "$RANLIB"; then
14376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14382 test -z "$as_dir" && as_dir=.
14383 for ac_exec_ext in '' $ac_executable_extensions; do
14384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14395 RANLIB=$ac_cv_prog_RANLIB
14396 if test -n "$RANLIB"; then
14397 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14398 echo "${ECHO_T}$RANLIB" >&6; }
14400 { echo "$as_me:$LINENO: result: no" >&5
14401 echo "${ECHO_T}no" >&6; }
14406 if test -z "$ac_cv_prog_RANLIB"; then
14407 ac_ct_RANLIB=$RANLIB
14408 # Extract the first word of "ranlib", so it can be a program name with args.
14409 set dummy ranlib; ac_word=$2
14410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 if test -n "$ac_ct_RANLIB"; then
14416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14425 ac_cv_prog_ac_ct_RANLIB="ranlib"
14426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14436 if test -n "$ac_ct_RANLIB"; then
14437 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14438 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14440 { echo "$as_me:$LINENO: result: no" >&5
14441 echo "${ECHO_T}no" >&6; }
14444 if test "x$ac_ct_RANLIB" = x; then
14447 case $cross_compiling:$ac_tool_warned in
14449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14450 whose name does not start with the host triplet. If you think this
14451 configuration is useful to you, please write to autoconf@gnu.org." >&5
14452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14453 whose name does not start with the host triplet. If you think this
14454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14455 ac_tool_warned=yes ;;
14457 RANLIB=$ac_ct_RANLIB
14460 RANLIB="$ac_cv_prog_RANLIB"
14463 if test -n "$ac_tool_prefix"; then
14464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14465 set dummy ${ac_tool_prefix}strip; ac_word=$2
14466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14468 if test "${ac_cv_prog_STRIP+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 if test -n "$STRIP"; then
14472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14491 STRIP=$ac_cv_prog_STRIP
14492 if test -n "$STRIP"; then
14493 { echo "$as_me:$LINENO: result: $STRIP" >&5
14494 echo "${ECHO_T}$STRIP" >&6; }
14496 { echo "$as_me:$LINENO: result: no" >&5
14497 echo "${ECHO_T}no" >&6; }
14502 if test -z "$ac_cv_prog_STRIP"; then
14504 # Extract the first word of "strip", so it can be a program name with args.
14505 set dummy strip; ac_word=$2
14506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 if test -n "$ac_ct_STRIP"; then
14512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515 for as_dir in $PATH
14518 test -z "$as_dir" && as_dir=.
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14521 ac_cv_prog_ac_ct_STRIP="strip"
14522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14532 if test -n "$ac_ct_STRIP"; then
14533 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14534 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14536 { echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6; }
14540 if test "x$ac_ct_STRIP" = x; then
14543 case $cross_compiling:$ac_tool_warned in
14545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14546 whose name does not start with the host triplet. If you think this
14547 configuration is useful to you, please write to autoconf@gnu.org." >&5
14548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14549 whose name does not start with the host triplet. If you think this
14550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14551 ac_tool_warned=yes ;;
14556 STRIP="$ac_cv_prog_STRIP"
14561 old_CFLAGS="$CFLAGS"
14563 # Set sane defaults for various variables
14564 test -z "$AR" && AR=ar
14565 test -z "$AR_FLAGS" && AR_FLAGS=cru
14566 test -z "$AS" && AS=as
14567 test -z "$CC" && CC=cc
14568 test -z "$LTCC" && LTCC=$CC
14569 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14570 test -z "$DLLTOOL" && DLLTOOL=dlltool
14571 test -z "$LD" && LD=ld
14572 test -z "$LN_S" && LN_S="ln -s"
14573 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14574 test -z "$NM" && NM=nm
14575 test -z "$SED" && SED=sed
14576 test -z "$OBJDUMP" && OBJDUMP=objdump
14577 test -z "$RANLIB" && RANLIB=:
14578 test -z "$STRIP" && STRIP=:
14579 test -z "$ac_objext" && ac_objext=o
14581 # Determine commands to create old-style static archives.
14582 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14583 old_postinstall_cmds='chmod 644 $oldlib'
14584 old_postuninstall_cmds=
14586 if test -n "$RANLIB"; then
14589 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14592 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14595 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14598 for cc_temp in $compiler""; do
14600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14609 # Only perform the check for file, if the check method requires it
14610 case $deplibs_check_method in
14612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14613 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14614 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14615 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14623 lt_save_MAGIC_CMD="$MAGIC_CMD"
14624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14626 for ac_dir in $ac_dummy; do
14628 test -z "$ac_dir" && ac_dir=.
14629 if test -f $ac_dir/${ac_tool_prefix}file; then
14630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14631 if test -n "$file_magic_test_file"; then
14632 case $deplibs_check_method in
14634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14637 $EGREP "$file_magic_regex" > /dev/null; then
14642 *** Warning: the command libtool uses to detect shared libraries,
14643 *** $file_magic_cmd, produces output that libtool cannot recognize.
14644 *** The result is that libtool may fail to recognize shared libraries
14645 *** as such. This will affect the creation of libtool libraries that
14646 *** depend on shared libraries, but programs linked with such libtool
14647 *** libraries will work regardless of this problem. Nevertheless, you
14648 *** may want to report the problem to your system manager and/or to
14649 *** bug-libtool@gnu.org
14659 MAGIC_CMD="$lt_save_MAGIC_CMD"
14664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665 if test -n "$MAGIC_CMD"; then
14666 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14667 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14669 { echo "$as_me:$LINENO: result: no" >&5
14670 echo "${ECHO_T}no" >&6; }
14673 if test -z "$lt_cv_path_MAGIC_CMD"; then
14674 if test -n "$ac_tool_prefix"; then
14675 { echo "$as_me:$LINENO: checking for file" >&5
14676 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14677 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14685 lt_save_MAGIC_CMD="$MAGIC_CMD"
14686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14688 for ac_dir in $ac_dummy; do
14690 test -z "$ac_dir" && ac_dir=.
14691 if test -f $ac_dir/file; then
14692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14693 if test -n "$file_magic_test_file"; then
14694 case $deplibs_check_method in
14696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14699 $EGREP "$file_magic_regex" > /dev/null; then
14704 *** Warning: the command libtool uses to detect shared libraries,
14705 *** $file_magic_cmd, produces output that libtool cannot recognize.
14706 *** The result is that libtool may fail to recognize shared libraries
14707 *** as such. This will affect the creation of libtool libraries that
14708 *** depend on shared libraries, but programs linked with such libtool
14709 *** libraries will work regardless of this problem. Nevertheless, you
14710 *** may want to report the problem to your system manager and/or to
14711 *** bug-libtool@gnu.org
14721 MAGIC_CMD="$lt_save_MAGIC_CMD"
14726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727 if test -n "$MAGIC_CMD"; then
14728 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14729 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14731 { echo "$as_me:$LINENO: result: no" >&5
14732 echo "${ECHO_T}no" >&6; }
14745 enable_win32_dll=no
14747 # Check whether --enable-libtool-lock was given.
14748 if test "${enable_libtool_lock+set}" = set; then
14749 enableval=$enable_libtool_lock;
14752 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14755 # Check whether --with-pic was given.
14756 if test "${with_pic+set}" = set; then
14757 withval=$with_pic; pic_mode="$withval"
14762 test -z "$pic_mode" && pic_mode=default
14764 # Use C for the default configuration in the libtool script
14768 ac_cpp='$CPP $CPPFLAGS'
14769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14774 # Source file extension for C test sources.
14777 # Object file extension for compiled C test sources.
14781 # Code to be used in simple compile tests
14782 lt_simple_compile_test_code="int some_variable = 0;\n"
14784 # Code to be used in simple link tests
14785 lt_simple_link_test_code='int main(){return(0);}\n'
14788 # If no C compiler was specified, use CC.
14791 # If no C compiler flags were specified, use CFLAGS.
14792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14794 # Allow CC to be a program name with arguments.
14798 # save warnings/boilerplate of simple test code
14799 ac_outfile=conftest.$ac_objext
14800 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14801 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14802 _lt_compiler_boilerplate=`cat conftest.err`
14805 ac_outfile=conftest.$ac_objext
14806 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14807 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14808 _lt_linker_boilerplate=`cat conftest.err`
14813 lt_prog_compiler_no_builtin_flag=
14815 if test "$GCC" = yes; then
14816 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14819 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14820 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14821 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 lt_cv_prog_compiler_rtti_exceptions=no
14825 ac_outfile=conftest.$ac_objext
14826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14827 lt_compiler_flag="-fno-rtti -fno-exceptions"
14828 # Insert the option either (1) after the last *FLAGS variable, or
14829 # (2) before a word containing "conftest.", or (3) at the end.
14830 # Note that $ac_compile itself does not contain backslashes and begins
14831 # with a dollar sign (not a hyphen), so the echo should work correctly.
14832 # The option is referenced via a variable to avoid confusing sed.
14833 lt_compile=`echo "$ac_compile" | $SED \
14834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14836 -e 's:$: $lt_compiler_flag:'`
14837 (eval echo "\"\$as_me:14837: $lt_compile\"" >&5)
14838 (eval "$lt_compile" 2>conftest.err)
14840 cat conftest.err >&5
14841 echo "$as_me:14841: \$? = $ac_status" >&5
14842 if (exit $ac_status) && test -s "$ac_outfile"; then
14843 # The compiler can only warn and ignore the option if not recognized
14844 # So say no if there are warnings other than the usual output.
14845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14848 lt_cv_prog_compiler_rtti_exceptions=yes
14854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14855 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14857 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14858 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14865 lt_prog_compiler_wl=
14866 lt_prog_compiler_pic=
14867 lt_prog_compiler_static=
14869 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14870 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14872 if test "$GCC" = yes; then
14873 lt_prog_compiler_wl='-Wl,'
14874 lt_prog_compiler_static='-static'
14878 # All AIX code is PIC.
14879 if test "$host_cpu" = ia64; then
14880 # AIX 5 now supports IA64 processor
14881 lt_prog_compiler_static='-Bstatic'
14886 # FIXME: we need at least 68020 code to build shared libraries, but
14887 # adding the `-m68020' flag to GCC prevents building anything better,
14889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14892 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14893 # PIC is the default for these OSes.
14896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic='-DDLL_EXPORT'
14902 darwin* | rhapsody*)
14903 # PIC is the default on this platform
14904 # Common symbols not allowed in MH_DYLIB files
14905 lt_prog_compiler_pic='-fno-common'
14909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910 # Instead, we relocate shared libraries at runtime.
14914 # Just because we use GCC doesn't mean we suddenly get shared libraries
14915 # on systems that don't support them.
14916 lt_prog_compiler_can_build_shared=no
14921 if test -d /usr/nec; then
14922 lt_prog_compiler_pic=-Kconform_pic
14927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14928 # not for PA HP-UX.
14934 lt_prog_compiler_pic='-fPIC'
14940 lt_prog_compiler_pic='-fPIC'
14944 # PORTME Check for flag to pass linker flags through the system compiler.
14947 lt_prog_compiler_wl='-Wl,'
14948 if test "$host_cpu" = ia64; then
14949 # AIX 5 now supports IA64 processor
14950 lt_prog_compiler_static='-Bstatic'
14952 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14956 # PIC is the default on this platform
14957 # Common symbols not allowed in MH_DYLIB files
14958 case $cc_basename in
14960 lt_prog_compiler_pic='-qnocommon'
14961 lt_prog_compiler_wl='-Wl,'
14966 mingw* | pw32* | os2*)
14967 # This hack is so that the source file can tell whether it is being
14968 # built for inclusion in a dll (and should export symbols for example).
14969 lt_prog_compiler_pic='-DDLL_EXPORT'
14972 hpux9* | hpux10* | hpux11*)
14973 lt_prog_compiler_wl='-Wl,'
14974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14975 # not for PA HP-UX.
14981 lt_prog_compiler_pic='+Z'
14984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14985 lt_prog_compiler_static='${wl}-a ${wl}archive'
14988 irix5* | irix6* | nonstopux*)
14989 lt_prog_compiler_wl='-Wl,'
14990 # PIC (with -KPIC) is the default.
14991 lt_prog_compiler_static='-non_shared'
14995 lt_prog_compiler_pic='-KPIC'
14996 lt_prog_compiler_static='-Bstatic'
15000 case $cc_basename in
15002 lt_prog_compiler_wl='-Wl,'
15003 lt_prog_compiler_pic='-KPIC'
15004 lt_prog_compiler_static='-static'
15006 pgcc* | pgf77* | pgf90* | pgf95*)
15007 # Portland Group compilers (*not* the Pentium gcc compiler,
15008 # which looks to be a dead project)
15009 lt_prog_compiler_wl='-Wl,'
15010 lt_prog_compiler_pic='-fpic'
15011 lt_prog_compiler_static='-Bstatic'
15014 lt_prog_compiler_wl='-Wl,'
15015 # All Alpha code is PIC.
15016 lt_prog_compiler_static='-non_shared'
15021 osf3* | osf4* | osf5*)
15022 lt_prog_compiler_wl='-Wl,'
15023 # All OSF/1 code is PIC.
15024 lt_prog_compiler_static='-non_shared'
15028 lt_prog_compiler_pic='-KPIC'
15029 lt_prog_compiler_static='-Bstatic'
15030 case $cc_basename in
15031 f77* | f90* | f95*)
15032 lt_prog_compiler_wl='-Qoption ld ';;
15034 lt_prog_compiler_wl='-Wl,';;
15039 lt_prog_compiler_wl='-Qoption ld '
15040 lt_prog_compiler_pic='-PIC'
15041 lt_prog_compiler_static='-Bstatic'
15044 sysv4 | sysv4.2uw2* | sysv4.3*)
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-KPIC'
15047 lt_prog_compiler_static='-Bstatic'
15051 if test -d /usr/nec ;then
15052 lt_prog_compiler_pic='-Kconform_pic'
15053 lt_prog_compiler_static='-Bstatic'
15057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15064 lt_prog_compiler_wl='-Wl,'
15065 lt_prog_compiler_can_build_shared=no
15069 lt_prog_compiler_pic='-pic'
15070 lt_prog_compiler_static='-Bstatic'
15074 lt_prog_compiler_can_build_shared=no
15079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15083 # Check to make sure the PIC flag actually works.
15085 if test -n "$lt_prog_compiler_pic"; then
15087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15089 if test "${lt_prog_compiler_pic_works+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 lt_prog_compiler_pic_works=no
15093 ac_outfile=conftest.$ac_objext
15094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15096 # Insert the option either (1) after the last *FLAGS variable, or
15097 # (2) before a word containing "conftest.", or (3) at the end.
15098 # Note that $ac_compile itself does not contain backslashes and begins
15099 # with a dollar sign (not a hyphen), so the echo should work correctly.
15100 # The option is referenced via a variable to avoid confusing sed.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:15105: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>conftest.err)
15108 cat conftest.err >&5
15109 echo "$as_me:15109: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s "$ac_outfile"; then
15111 # The compiler can only warn and ignore the option if not recognized
15112 # So say no if there are warnings other than the usual output.
15113 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116 lt_prog_compiler_pic_works=yes
15122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15123 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15125 if test x"$lt_prog_compiler_pic_works" = xyes; then
15126 case $lt_prog_compiler_pic in
15128 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15131 lt_prog_compiler_pic=
15132 lt_prog_compiler_can_build_shared=no
15137 # For platforms which do not support PIC, -DPIC is meaningless:
15139 lt_prog_compiler_pic=
15142 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15147 # Check to make sure the static flag actually works.
15149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15152 if test "${lt_prog_compiler_static_works+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 lt_prog_compiler_static_works=no
15156 save_LDFLAGS="$LDFLAGS"
15157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15158 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15160 # The linker can only warn and ignore the option if not recognized
15161 # So say no if there are warnings
15162 if test -s conftest.err; then
15163 # Append any errors to the config.log.
15164 cat conftest.err 1>&5
15165 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15167 if diff conftest.exp conftest.er2 >/dev/null; then
15168 lt_prog_compiler_static_works=yes
15171 lt_prog_compiler_static_works=yes
15175 LDFLAGS="$save_LDFLAGS"
15178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15179 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15181 if test x"$lt_prog_compiler_static_works" = xyes; then
15184 lt_prog_compiler_static=
15188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15190 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 lt_cv_prog_compiler_c_o=no
15194 $rm -r conftest 2>/dev/null
15198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15200 lt_compiler_flag="-o out/conftest2.$ac_objext"
15201 # Insert the option either (1) after the last *FLAGS variable, or
15202 # (2) before a word containing "conftest.", or (3) at the end.
15203 # Note that $ac_compile itself does not contain backslashes and begins
15204 # with a dollar sign (not a hyphen), so the echo should work correctly.
15205 lt_compile=`echo "$ac_compile" | $SED \
15206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208 -e 's:$: $lt_compiler_flag:'`
15209 (eval echo "\"\$as_me:15209: $lt_compile\"" >&5)
15210 (eval "$lt_compile" 2>out/conftest.err)
15212 cat out/conftest.err >&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15216 # The compiler can only warn and ignore the option if not recognized
15217 # So say no if there are warnings
15218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15221 lt_cv_prog_compiler_c_o=yes
15226 # SGI C++ compiler will create directory out/ii_files/ for
15227 # template instantiation
15228 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15229 $rm out/* && rmdir out
15235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15239 hard_links="nottested"
15240 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15241 # do not overwrite the value of need_locks provided by the user
15242 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15248 ln conftest.a conftest.b 2>&5 || hard_links=no
15249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15250 { echo "$as_me:$LINENO: result: $hard_links" >&5
15251 echo "${ECHO_T}$hard_links" >&6; }
15252 if test "$hard_links" = no; then
15253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15265 allow_undefined_flag=
15266 enable_shared_with_static_runtimes=no
15268 archive_expsym_cmds=
15269 old_archive_From_new_cmds=
15270 old_archive_from_expsyms_cmds=
15271 export_dynamic_flag_spec=
15272 whole_archive_flag_spec=
15273 thread_safe_flag_spec=
15274 hardcode_libdir_flag_spec=
15275 hardcode_libdir_flag_spec_ld=
15276 hardcode_libdir_separator=
15278 hardcode_minus_L=no
15279 hardcode_shlibpath_var=unsupported
15280 link_all_deplibs=unknown
15281 hardcode_automatic=no
15283 module_expsym_cmds=
15284 always_export_symbols=no
15285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15286 # include_expsyms should be a list of space-separated symbols to be *always*
15287 # included in the symbol list
15289 # exclude_expsyms can be an extended regexp of symbols to exclude
15290 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15291 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15292 # as well as any symbol that contains `d'.
15293 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15294 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15295 # platforms (ab)use it in PIC code, but their linkers get confused if
15296 # the symbol is explicitly referenced. Since portable code cannot
15297 # rely on this symbol name, it's probably fine to never include it in
15298 # preloaded symbol tables.
15299 extract_expsyms_cmds=
15300 # Just being paranoid about ensuring that cc_basename is set.
15301 for cc_temp in $compiler""; do
15303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15312 cygwin* | mingw* | pw32*)
15313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15314 # When not using gcc, we currently assume that we are using
15315 # Microsoft Visual C++.
15316 if test "$GCC" != yes; then
15321 # we just hope/assume this is gcc and not c89 (= MSVC++)
15330 if test "$with_gnu_ld" = yes; then
15331 # If archive_cmds runs LD, not CC, wlarc should be empty
15334 # Set some defaults for GNU ld with shared library support. These
15335 # are reset later if shared libraries are not supported. Putting them
15336 # here allows them to be overridden if necessary.
15337 runpath_var=LD_RUN_PATH
15338 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15339 export_dynamic_flag_spec='${wl}--export-dynamic'
15340 # ancient GNU ld didn't support --whole-archive et. al.
15341 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15342 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15344 whole_archive_flag_spec=
15346 supports_anon_versioning=no
15347 case `$LD -v 2>/dev/null` in
15348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15351 *\ 2.11.*) ;; # other 2.11 versions
15352 *) supports_anon_versioning=yes ;;
15355 # See if GNU ld supports shared libraries.
15357 aix3* | aix4* | aix5*)
15358 # On AIX/PPC, the GNU linker is very broken
15359 if test "$host_cpu" != ia64; then
15363 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15364 *** to be unable to reliably create shared libraries on AIX.
15365 *** Therefore, libtool is disabling shared libraries support. If you
15366 *** really care for shared libraries, you may want to modify your PATH
15367 *** so that a non-GNU linker is found, and then restart.
15374 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)'
15375 hardcode_libdir_flag_spec='-L$libdir'
15376 hardcode_minus_L=yes
15378 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15379 # that the semantics of dynamic libraries on AmigaOS, at least up
15380 # to version 4, is to share data among multiple programs linked
15381 # with the same dynamic library. Since this doesn't match the
15382 # behavior of shared libraries on other platforms, we can't use
15388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15389 allow_undefined_flag=unsupported
15390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15391 # support --undefined. This deserves some investigation. FIXME
15392 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15398 cygwin* | mingw* | pw32*)
15399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15400 # as there is no search path for DLLs.
15401 hardcode_libdir_flag_spec='-L$libdir'
15402 allow_undefined_flag=unsupported
15403 always_export_symbols=no
15404 enable_shared_with_static_runtimes=yes
15405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15409 # If the export-symbols file already is a .def file (1st line
15410 # is EXPORTS), use it as is; otherwise, prepend...
15411 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15412 cp $export_symbols $output_objdir/$soname.def;
15414 echo EXPORTS > $output_objdir/$soname.def;
15415 cat $export_symbols >> $output_objdir/$soname.def;
15417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15425 hardcode_shlibpath_var=no
15426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15427 export_dynamic_flag_spec='${wl}-E'
15428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15429 # Instead, shared libraries are loaded at an image base (0x10000000 by
15430 # default) and relocated if they conflict, which is a slow very memory
15431 # consuming and fragmenting process. To avoid this, we pick a random,
15432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15435 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'
15439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15441 case $cc_basename,$host_cpu in
15442 pgcc*) # Portland Group C compiler
15443 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'
15444 tmp_addflag=' $pic_flag'
15446 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15447 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15448 tmp_addflag=' $pic_flag -Mnomain' ;;
15449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15450 tmp_addflag=' -i_dynamic' ;;
15451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15452 tmp_addflag=' -i_dynamic -nofor_main' ;;
15453 ifc* | ifort*) # Intel Fortran compiler
15454 tmp_addflag=' -nofor_main' ;;
15456 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15458 if test $supports_anon_versioning = yes; then
15459 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15461 $echo "local: *; };" >> $output_objdir/$libname.ver~
15462 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15471 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15480 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15485 *** create shared libraries on Solaris systems. Therefore, libtool
15486 *** is disabling shared libraries support. We urge you to upgrade GNU
15487 *** binutils to release 2.9.1 or newer. Another option is to modify
15488 *** your PATH or compiler configuration so that the native linker is
15489 *** used, and then restart.
15492 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15501 case `$LD -v 2>&1` in
15502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15506 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15507 *** reliably create shared libraries on SCO systems. Therefore, libtool
15508 *** is disabling shared libraries support. We urge you to upgrade GNU
15509 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15510 *** your PATH or compiler configuration so that the native linker is
15511 *** used, and then restart.
15516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15517 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15544 if test "$ld_shlibs" = no; then
15546 hardcode_libdir_flag_spec=
15547 export_dynamic_flag_spec=
15548 whole_archive_flag_spec=
15551 # PORTME fill in a description of your system's linker (not GNU ld)
15554 allow_undefined_flag=unsupported
15555 always_export_symbols=yes
15556 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'
15557 # Note: this linker hardcodes the directories in LIBPATH if there
15558 # are no directories specified by -L.
15559 hardcode_minus_L=yes
15560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15561 # Neither direct hardcoding nor static linking is supported with a
15563 hardcode_direct=unsupported
15568 if test "$host_cpu" = ia64; then
15569 # On IA64, the linker does run time linking by default, so we don't
15570 # have to do anything special.
15571 aix_use_runtimelinking=no
15572 exp_sym_flag='-Bexport'
15575 # If we're using GNU nm, then we don't want the "-C" option.
15576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15578 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'
15580 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'
15582 aix_use_runtimelinking=no
15584 # Test if we are trying to use run time linking or normal
15585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15586 # need to do runtime linking.
15587 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15588 for ld_flag in $LDFLAGS; do
15589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15590 aix_use_runtimelinking=yes
15597 exp_sym_flag='-bexport'
15598 no_entry_flag='-bnoentry'
15601 # When large executables or shared objects are built, AIX ld can
15602 # have problems creating the table of contents. If linking a library
15603 # or program results in "error TOC overflow" add -mminimal-toc to
15604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15608 hardcode_direct=yes
15609 hardcode_libdir_separator=':'
15610 link_all_deplibs=yes
15612 if test "$GCC" = yes; then
15613 case $host_os in aix4.[012]|aix4.[012].*)
15614 # We only want to do this on AIX 4.2 and lower, the check
15615 # below for broken collect2 doesn't work under 4.3+
15616 collect2name=`${CC} -print-prog-name=collect2`
15617 if test -f "$collect2name" && \
15618 strings "$collect2name" | grep resolve_lib_name >/dev/null
15620 # We have reworked collect2
15621 hardcode_direct=yes
15623 # We have old collect2
15624 hardcode_direct=unsupported
15625 # It fails to find uninstalled libraries when the uninstalled
15626 # path is not listed in the libpath. Setting hardcode_minus_L
15627 # to unsupported forces relinking
15628 hardcode_minus_L=yes
15629 hardcode_libdir_flag_spec='-L$libdir'
15630 hardcode_libdir_separator=
15634 shared_flag='-shared'
15635 if test "$aix_use_runtimelinking" = yes; then
15636 shared_flag="$shared_flag "'${wl}-G'
15640 if test "$host_cpu" = ia64; then
15641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15642 # chokes on -Wl,-G. The following line is correct:
15645 if test "$aix_use_runtimelinking" = yes; then
15646 shared_flag='${wl}-G'
15648 shared_flag='${wl}-bM:SRE'
15653 # It seems that -bexpall does not export symbols beginning with
15654 # underscore (_), so it is better to generate a list of symbols to export.
15655 always_export_symbols=yes
15656 if test "$aix_use_runtimelinking" = yes; then
15657 # Warning - without using the other runtime loading flags (-brtl),
15658 # -berok will link without error, but may produce a broken library.
15659 allow_undefined_flag='-berok'
15660 # Determine the default libpath from the value encoded in an empty executable.
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_link") 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
15690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15713 # Check for a 64-bit object if we didn't find anything.
15714 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; }
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15723 rm -f core conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15728 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"
15730 if test "$host_cpu" = ia64; then
15731 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15732 allow_undefined_flag="-z nodefs"
15733 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"
15735 # Determine the default libpath from the value encoded in an empty executable.
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (ac_try="$ac_link"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_link") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15766 { (case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_try") 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest$ac_exeext'
15776 { (case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_try") 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15788 # Check for a 64-bit object if we didn't find anything.
15789 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; }
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15798 rm -f core conftest.err conftest.$ac_objext \
15799 conftest$ac_exeext conftest.$ac_ext
15800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15803 # Warning - without using the other run time loading flags,
15804 # -berok will link without error, but may produce a broken library.
15805 no_undefined_flag=' ${wl}-bernotok'
15806 allow_undefined_flag=' ${wl}-berok'
15807 # Exported symbols can be pulled into shared objects from archives
15808 whole_archive_flag_spec='$convenience'
15809 archive_cmds_need_lc=yes
15810 # This is similar to how AIX traditionally builds its shared libraries.
15811 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'
15817 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)'
15818 hardcode_libdir_flag_spec='-L$libdir'
15819 hardcode_minus_L=yes
15820 # see comment about different semantics on the GNU ld section
15825 export_dynamic_flag_spec=-rdynamic
15828 cygwin* | mingw* | pw32*)
15829 # When not using gcc, we currently assume that we are using
15830 # Microsoft Visual C++.
15831 # hardcode_libdir_flag_spec is actually meaningless, as there is
15832 # no search path for DLLs.
15833 hardcode_libdir_flag_spec=' '
15834 allow_undefined_flag=unsupported
15835 # Tell ltmain to make .lib files, not .a files.
15837 # Tell ltmain to make .dll files, not .so files.
15839 # FIXME: Setting linknames here is a bad hack.
15840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15841 # The linker will automatically build a .lib file if we build a DLL.
15842 old_archive_From_new_cmds='true'
15843 # FIXME: Should let the user specify the lib program.
15844 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15845 fix_srcfile_path='`cygpath -w "$srcfile"`'
15846 enable_shared_with_static_runtimes=yes
15849 darwin* | rhapsody*)
15851 rhapsody* | darwin1.[012])
15852 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15855 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15856 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15858 case ${MACOSX_DEPLOYMENT_TARGET} in
15860 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15863 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15869 archive_cmds_need_lc=no
15871 hardcode_automatic=yes
15872 hardcode_shlibpath_var=unsupported
15873 whole_archive_flag_spec=''
15874 link_all_deplibs=yes
15875 if test "$GCC" = yes ; then
15876 output_verbose_link_cmd='echo'
15877 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15878 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15879 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15880 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}'
15881 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}'
15883 case $cc_basename in
15885 output_verbose_link_cmd='echo'
15886 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15887 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15888 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15889 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}'
15890 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}'
15900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901 hardcode_libdir_flag_spec='-L$libdir'
15902 hardcode_shlibpath_var=no
15909 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15910 # support. Future versions do this automatically, but an explicit c++rt0.o
15911 # does not break anything, and helps significantly (at the cost of a little
15914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15915 hardcode_libdir_flag_spec='-R$libdir'
15916 hardcode_direct=yes
15917 hardcode_shlibpath_var=no
15920 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_direct=yes
15924 hardcode_minus_L=yes
15925 hardcode_shlibpath_var=no
15928 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15929 freebsd* | kfreebsd*-gnu | dragonfly*)
15930 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_direct=yes
15933 hardcode_shlibpath_var=no
15937 if test "$GCC" = yes; then
15938 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'
15940 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'
15942 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15943 hardcode_libdir_separator=:
15944 hardcode_direct=yes
15946 # hardcode_minus_L: Not really in the search PATH,
15947 # but as the default location of the library.
15948 hardcode_minus_L=yes
15949 export_dynamic_flag_spec='${wl}-E'
15953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15954 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15956 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15958 if test "$with_gnu_ld" = no; then
15959 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15960 hardcode_libdir_separator=:
15962 hardcode_direct=yes
15963 export_dynamic_flag_spec='${wl}-E'
15965 # hardcode_minus_L: Not really in the search PATH,
15966 # but as the default location of the library.
15967 hardcode_minus_L=yes
15972 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15975 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15978 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15981 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15987 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15990 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15993 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15997 if test "$with_gnu_ld" = no; then
15998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15999 hardcode_libdir_separator=:
16003 hardcode_libdir_flag_spec_ld='+b $libdir'
16005 hardcode_shlibpath_var=no
16008 hardcode_direct=yes
16009 export_dynamic_flag_spec='${wl}-E'
16011 # hardcode_minus_L: Not really in the search PATH,
16012 # but as the default location of the library.
16013 hardcode_minus_L=yes
16019 irix5* | irix6* | nonstopux*)
16020 if test "$GCC" = yes; then
16021 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'
16023 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'
16024 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027 hardcode_libdir_separator=:
16028 link_all_deplibs=yes
16032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16035 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16037 hardcode_libdir_flag_spec='-R$libdir'
16038 hardcode_direct=yes
16039 hardcode_shlibpath_var=no
16043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_direct=yes
16045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16046 hardcode_libdir_separator=:
16047 hardcode_shlibpath_var=no
16051 hardcode_direct=yes
16052 hardcode_shlibpath_var=no
16053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16057 export_dynamic_flag_spec='${wl}-E'
16060 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 hardcode_libdir_flag_spec='-R$libdir'
16065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16073 hardcode_libdir_flag_spec='-L$libdir'
16074 hardcode_minus_L=yes
16075 allow_undefined_flag=unsupported
16076 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'
16077 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16081 if test "$GCC" = yes; then
16082 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16083 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'
16085 allow_undefined_flag=' -expect_unresolved \*'
16086 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'
16088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16089 hardcode_libdir_separator=:
16092 osf4* | osf5*) # as osf3* with the addition of -msym flag
16093 if test "$GCC" = yes; then
16094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16095 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'
16096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16098 allow_undefined_flag=' -expect_unresolved \*'
16099 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'
16100 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16101 $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'
16103 # Both c and cxx compiler support -rpath directly
16104 hardcode_libdir_flag_spec='-rpath $libdir'
16106 hardcode_libdir_separator=:
16110 no_undefined_flag=' -z text'
16111 if test "$GCC" = yes; then
16113 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16114 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16115 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16118 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16120 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16122 hardcode_libdir_flag_spec='-R$libdir'
16123 hardcode_shlibpath_var=no
16125 solaris2.[0-5] | solaris2.[0-5].*) ;;
16127 # The compiler driver will combine linker options so we
16128 # cannot just pass the convience library names through
16129 # without $wl, iff we do not link with $LD.
16130 # Luckily, gcc supports the same syntax we need for Sun Studio.
16131 # Supported since Solaris 2.6 (maybe 2.5.1?)
16134 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16136 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' ;;
16139 link_all_deplibs=yes
16143 if test "x$host_vendor" = xsequent; then
16144 # Use $CC to link under sequent, because it throws in some extra .o
16145 # files that make .init and .fini sections work.
16146 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16148 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16150 hardcode_libdir_flag_spec='-L$libdir'
16151 hardcode_direct=yes
16152 hardcode_minus_L=yes
16153 hardcode_shlibpath_var=no
16157 case $host_vendor in
16159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_direct=yes # is this really true???
16163 ## LD is ld it makes a PLAMLIB
16164 ## CC just makes a GrossModule.
16165 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166 reload_cmds='$CC -r -o $output$reload_objs'
16170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16174 runpath_var='LD_RUN_PATH'
16175 hardcode_shlibpath_var=no
16179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_shlibpath_var=no
16181 export_dynamic_flag_spec='-Bexport'
16185 if test -d /usr/nec; then
16186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_shlibpath_var=no
16188 runpath_var=LD_RUN_PATH
16189 hardcode_runpath_var=yes
16194 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16195 no_undefined_flag='${wl}-z,text'
16196 archive_cmds_need_lc=no
16197 hardcode_shlibpath_var=no
16198 runpath_var='LD_RUN_PATH'
16200 if test "$GCC" = yes; then
16201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16209 sysv5* | sco3.2v5* | sco5v6*)
16210 # Note: We can NOT use -z defs as we might desire, because we do not
16211 # link with -lc, and that would cause any symbols used from libc to
16212 # always be unresolved, which means just about no library would
16213 # ever link correctly. If we're not using GNU ld we use -z text
16214 # though, which does catch some bad symbols but isn't as heavy-handed
16216 no_undefined_flag='${wl}-z,text'
16217 allow_undefined_flag='${wl}-z,nodefs'
16218 archive_cmds_need_lc=no
16219 hardcode_shlibpath_var=no
16220 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16221 hardcode_libdir_separator=':'
16222 link_all_deplibs=yes
16223 export_dynamic_flag_spec='${wl}-Bexport'
16224 runpath_var='LD_RUN_PATH'
16226 if test "$GCC" = yes; then
16227 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16230 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_libdir_flag_spec='-L$libdir'
16238 hardcode_shlibpath_var=no
16247 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16248 echo "${ECHO_T}$ld_shlibs" >&6; }
16249 test "$ld_shlibs" = no && can_build_shared=no
16252 # Do we need to explicitly link libc?
16254 case "x$archive_cmds_need_lc" in
16256 # Assume -lc should be added
16257 archive_cmds_need_lc=yes
16259 if test "$enable_shared" = yes && test "$GCC" = yes; then
16260 case $archive_cmds in
16262 # FIXME: we may have to deal with multi-command sequences.
16265 # Test whether the compiler implicitly links with -lc since on some
16266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16267 # to ld, don't add -lc before -lgcc.
16268 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16269 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } 2>conftest.err; then
16280 libobjs=conftest.$ac_objext
16282 wl=$lt_prog_compiler_wl
16283 pic_flag=$lt_prog_compiler_pic
16289 lt_save_allow_undefined_flag=$allow_undefined_flag
16290 allow_undefined_flag=
16291 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16292 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }
16297 archive_cmds_need_lc=no
16299 archive_cmds_need_lc=yes
16301 allow_undefined_flag=$lt_save_allow_undefined_flag
16303 cat conftest.err 1>&5
16306 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16307 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16314 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16315 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16316 library_names_spec=
16317 libname_spec='lib$name'
16321 postuninstall_cmds=
16325 shlibpath_overrides_runpath=unknown
16327 dynamic_linker="$host_os ld.so"
16328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16329 if test "$GCC" = yes; then
16330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16331 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16332 # if the path contains ";" then we assume it to be the separator
16333 # otherwise default to the standard path separator (i.e. ":") - it is
16334 # assumed that no part of a normal pathname contains ";" but that should
16335 # okay in the real world where ";" in dirpaths is itself problematic.
16336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16343 need_lib_prefix=unknown
16344 hardcode_into_libs=no
16346 # when you set need_version to no, make sure it does not cause -set_version
16347 # flags to be left without arguments
16348 need_version=unknown
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16354 shlibpath_var=LIBPATH
16356 # AIX 3 has no versioning support, so we append a major version to the name.
16357 soname_spec='${libname}${release}${shared_ext}$major'
16364 hardcode_into_libs=yes
16365 if test "$host_cpu" = ia64; then
16366 # AIX 5 supports IA64
16367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16368 shlibpath_var=LD_LIBRARY_PATH
16370 # With GCC up to 2.95.x, collect2 would create an import file
16371 # for dependence libraries. The import file would start with
16372 # the line `#! .'. This would cause the generated library to
16373 # depend on `.', always an invalid library. This was fixed in
16374 # development snapshots of GCC prior to 3.0.
16376 aix4 | aix4.[01] | aix4.[01].*)
16377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16379 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16382 can_build_shared=no
16386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16387 # soname into executable. Probably we can add versioning support to
16388 # collect2, so additional links can be useful in future.
16389 if test "$aix_use_runtimelinking" = yes; then
16390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16391 # instead of lib<name>.a to let people know that these are not
16392 # typical AIX shared libraries.
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 # We preserve .a as extension for shared libraries through AIX4.2
16396 # and later when we are not doing run time linking.
16397 library_names_spec='${libname}${release}.a $libname.a'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LIBPATH
16405 library_names_spec='$libname.ixlibrary $libname.a'
16406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16407 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'
16411 library_names_spec='${libname}${shared_ext}'
16412 dynamic_linker="$host_os ld.so"
16413 shlibpath_var=LIBRARY_PATH
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16425 # the default ld.so.conf also contains /usr/contrib/lib and
16426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16427 # libtool to hard-code these into programs
16430 cygwin* | mingw* | pw32*)
16431 version_type=windows
16436 case $GCC,$host_os in
16437 yes,cygwin* | yes,mingw* | yes,pw32*)
16438 library_names_spec='$libname.dll.a'
16439 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16440 postinstall_cmds='base_file=`basename \${file}`~
16441 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16442 dldir=$destdir/`dirname \$dlpath`~
16443 test -d \$dldir || mkdir -p \$dldir~
16444 $install_prog $dir/$dlname \$dldir/$dlname~
16445 chmod a+x \$dldir/$dlname'
16446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16447 dlpath=$dir/\$dldll~
16449 shlibpath_overrides_runpath=yes
16453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16454 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16458 # MinGW DLLs use traditional 'lib' prefix
16459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16462 # It is most probably a Windows format PATH printed by
16463 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16464 # path with ; separators, and with drive letters. We can handle the
16465 # drive letters (cygwin fileutils understands them), so leave them,
16466 # especially as we might pass files found there to a mingw objdump,
16467 # which wouldn't understand a cygwinified path. Ahh.
16468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16474 # pw32 DLLs use 'pw' prefix rather than 'lib'
16475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16484 dynamic_linker='Win32 ld.exe'
16485 # FIXME: first we should search . and the directory the executable is in
16489 darwin* | rhapsody*)
16490 dynamic_linker="$host_os dyld"
16491 version_type=darwin
16494 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16495 soname_spec='${libname}${release}${major}$shared_ext'
16496 shlibpath_overrides_runpath=yes
16497 shlibpath_var=DYLD_LIBRARY_PATH
16498 shrext_cmds='.dylib'
16499 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16500 if test "$GCC" = yes; then
16501 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"`
16503 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 shlibpath_overrides_runpath=no
16529 hardcode_into_libs=yes
16530 dynamic_linker='GNU ld.so'
16533 freebsd* | dragonfly*)
16534 # DragonFly does not have aout. When/if they implement a new
16535 # versioning mechanism, adjust this.
16536 if test -x /usr/bin/objformat; then
16537 objformat=`/usr/bin/objformat`
16540 freebsd[123]*) objformat=aout ;;
16541 *) objformat=elf ;;
16544 version_type=freebsd-$objformat
16545 case $version_type in
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16556 shlibpath_var=LD_LIBRARY_PATH
16559 shlibpath_overrides_runpath=yes
16561 freebsd3.[01]* | freebsdelf3.[01]*)
16562 shlibpath_overrides_runpath=yes
16563 hardcode_into_libs=yes
16565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16570 freebsd*) # from 4.6 on
16571 shlibpath_overrides_runpath=yes
16572 hardcode_into_libs=yes
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 hardcode_into_libs=yes
16587 hpux9* | hpux10* | hpux11*)
16588 # Give a soname corresponding to the major version so that dld.sl refuses to
16589 # link against other versions.
16596 hardcode_into_libs=yes
16597 dynamic_linker="$host_os dld.so"
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 if test "X$HPUX_IA64_MODE" = X32; then
16603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16611 hardcode_into_libs=yes
16612 dynamic_linker="$host_os dld.sl"
16613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622 dynamic_linker="$host_os dld.sl"
16623 shlibpath_var=SHLIB_PATH
16624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626 soname_spec='${libname}${release}${shared_ext}$major'
16629 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16630 postinstall_cmds='chmod 555 $lib'
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=no
16642 hardcode_into_libs=yes
16645 irix5* | irix6* | nonstopux*)
16647 nonstopux*) version_type=nonstopux ;;
16649 if test "$lt_cv_prog_gnu_ld" = yes; then
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16660 irix5* | nonstopux*)
16661 libsuff= shlibsuff=
16664 case $LD in # libtool.m4 will add one of these switches to LD
16665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16666 libsuff= shlibsuff= libmagic=32-bit;;
16667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16668 libsuff=32 shlibsuff=N32 libmagic=N32;;
16669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16670 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16671 *) libsuff= shlibsuff= libmagic=never-match;;
16675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16676 shlibpath_overrides_runpath=no
16677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16679 hardcode_into_libs=yes
16682 # No shared lib support for Linux oldld, aout, or coff.
16683 linux*oldld* | linux*aout* | linux*coff*)
16687 # This must be Linux ELF.
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=no
16697 # This implies no fast_install, which is unacceptable.
16698 # Some rework will be needed to allow for fast_install
16699 # before this can be enabled.
16700 hardcode_into_libs=yes
16702 # Append ld.so.conf contents to the search path
16703 if test -f /etc/ld.so.conf; then
16704 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' ' '`
16705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16708 # We used to test for /lib/ld.so.1 and disable shared libraries on
16709 # powerpc, because MkLinux only supported shared libraries with the
16710 # GNU dynamic linker. Since this was broken with cross compilers,
16711 # most powerpc-linux boxes support dynamic linking these days and
16712 # people can always --disable-shared, the test was removed, and we
16713 # assume the GNU/Linux dynamic linker is in use.
16714 dynamic_linker='GNU/Linux ld.so'
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16722 soname_spec='${libname}${release}${shared_ext}$major'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 shlibpath_overrides_runpath=no
16725 hardcode_into_libs=yes
16726 dynamic_linker='GNU ld.so'
16733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736 dynamic_linker='NetBSD (a.out) ld.so'
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 dynamic_linker='NetBSD ld.elf_so'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 shlibpath_overrides_runpath=yes
16744 hardcode_into_libs=yes
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=yes
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 shlibpath_overrides_runpath=yes
16766 sys_lib_dlsearch_path_spec="/usr/lib"
16768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16771 *) need_version=no ;;
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16778 openbsd2.[89] | openbsd2.[89].*)
16779 shlibpath_overrides_runpath=no
16782 shlibpath_overrides_runpath=yes
16786 shlibpath_overrides_runpath=yes
16791 libname_spec='$name'
16794 library_names_spec='$libname${shared_ext} $libname.a'
16795 dynamic_linker='OS/2 ld.exe'
16796 shlibpath_var=LIBPATH
16799 osf3* | osf4* | osf5*)
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16819 # ldd complains unless libraries are executable
16820 postinstall_cmds='chmod +x $lib'
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16829 if test "$with_gnu_ld" = yes; then
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 case $host_vendor in
16842 shlibpath_overrides_runpath=no
16844 export_dynamic_flag_spec='${wl}-Blargedynsym'
16845 runpath_var=LD_RUN_PATH
16853 shlibpath_overrides_runpath=no
16854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16860 if test -d /usr/nec ;then
16862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863 soname_spec='$libname${shared_ext}.$major'
16864 shlibpath_var=LD_LIBRARY_PATH
16868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16869 version_type=freebsd-elf
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16873 soname_spec='${libname}${release}${shared_ext}$major'
16874 shlibpath_var=LD_LIBRARY_PATH
16875 hardcode_into_libs=yes
16876 if test "$with_gnu_ld" = yes; then
16877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16878 shlibpath_overrides_runpath=no
16880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16881 shlibpath_overrides_runpath=yes
16884 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16888 sys_lib_dlsearch_path_spec='/usr/lib'
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16902 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16903 echo "${ECHO_T}$dynamic_linker" >&6; }
16904 test "$dynamic_linker" = no && can_build_shared=no
16906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16907 if test "$GCC" = yes; then
16908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16911 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16912 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16914 if test -n "$hardcode_libdir_flag_spec" || \
16915 test -n "$runpath_var" || \
16916 test "X$hardcode_automatic" = "Xyes" ; then
16918 # We can hardcode non-existant directories.
16919 if test "$hardcode_direct" != no &&
16920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16921 # have to relink, otherwise we might link with an installed library
16922 # when we should be linking with a yet-to-be-installed one
16923 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16924 test "$hardcode_minus_L" != no; then
16925 # Linking always hardcodes the temporary library directory.
16926 hardcode_action=relink
16928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16929 hardcode_action=immediate
16932 # We cannot hardcode anything, or else we can only hardcode existing
16934 hardcode_action=unsupported
16936 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16937 echo "${ECHO_T}$hardcode_action" >&6; }
16939 if test "$hardcode_action" = relink; then
16940 # Fast installation is not supported
16941 enable_fast_install=no
16942 elif test "$shlibpath_overrides_runpath" = yes ||
16943 test "$enable_shared" = no; then
16944 # Fast installation is not necessary
16945 enable_fast_install=needless
16950 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16951 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16952 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16955 { echo "$as_me:$LINENO: result: yes" >&5
16956 echo "${ECHO_T}yes" >&6; }
16958 # FIXME - insert some real tests, host_os isn't really good enough
16961 if test -n "$STRIP" ; then
16962 striplib="$STRIP -x"
16963 { echo "$as_me:$LINENO: result: yes" >&5
16964 echo "${ECHO_T}yes" >&6; }
16966 { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16971 { echo "$as_me:$LINENO: result: no" >&5
16972 echo "${ECHO_T}no" >&6; }
16977 if test "x$enable_dlopen" != xyes; then
16978 enable_dlopen=unknown
16979 enable_dlopen_self=unknown
16980 enable_dlopen_self_static=unknown
16987 lt_cv_dlopen="load_add_on"
16989 lt_cv_dlopen_self=yes
16993 lt_cv_dlopen="LoadLibrary"
16998 lt_cv_dlopen="dlopen"
17003 # if libdl is installed we need to link against it
17004 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 ac_check_lib_save_LIBS=$LIBS
17011 cat >conftest.$ac_ext <<_ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (ac_try="$ac_link"
17035 case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
17042 grep -v '^ *+' conftest.er1 >conftest.err
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_lib_dl_dlopen=yes
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17072 ac_cv_lib_dl_dlopen=no
17075 rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17077 LIBS=$ac_check_lib_save_LIBS
17079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17080 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17081 if test $ac_cv_lib_dl_dlopen = yes; then
17082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17085 lt_cv_dlopen="dyld"
17087 lt_cv_dlopen_self=yes
17094 { echo "$as_me:$LINENO: checking for shl_load" >&5
17095 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17096 if test "${ac_cv_func_shl_load+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17107 #define shl_load innocuous_shl_load
17109 /* System header to define __stub macros and hopefully few prototypes,
17110 which can conflict with char shl_load (); below.
17111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17112 <limits.h> exists even on freestanding compilers. */
17115 # include <limits.h>
17117 # include <assert.h>
17122 /* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply. */
17129 /* The GNU C library defines this for functions which it implements
17130 to always fail with ENOSYS. Some functions are actually named
17131 something starting with __ and the normal name is an alias. */
17132 #if defined __stub_shl_load || defined __stub___shl_load
17139 return shl_load ();
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (ac_try="$ac_link"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_link") 2>conftest.er1
17153 grep -v '^ *+' conftest.er1 >conftest.err
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_func_shl_load=yes
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_func_shl_load=no
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17189 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17190 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17191 if test $ac_cv_func_shl_load = yes; then
17192 lt_cv_dlopen="shl_load"
17194 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17195 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17196 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 ac_check_lib_save_LIBS=$LIBS
17201 cat >conftest.$ac_ext <<_ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17218 return shl_load ();
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>conftest.er1
17232 grep -v '^ *+' conftest.er1 >conftest.err
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17238 { (case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_try") 2>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest$ac_exeext'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_lib_dld_shl_load=yes
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ac_cv_lib_dld_shl_load=no
17265 rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267 LIBS=$ac_check_lib_save_LIBS
17269 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17270 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17271 if test $ac_cv_lib_dld_shl_load = yes; then
17272 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17274 { echo "$as_me:$LINENO: checking for dlopen" >&5
17275 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17276 if test "${ac_cv_func_dlopen+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17287 #define dlopen innocuous_dlopen
17289 /* System header to define __stub macros and hopefully few prototypes,
17290 which can conflict with char dlopen (); below.
17291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292 <limits.h> exists even on freestanding compilers. */
17295 # include <limits.h>
17297 # include <assert.h>
17302 /* Override any GCC internal prototype to avoid an error.
17303 Use char because int might match the return type of a GCC
17304 builtin and then its argument prototype would still apply. */
17309 /* The GNU C library defines this for functions which it implements
17310 to always fail with ENOSYS. Some functions are actually named
17311 something starting with __ and the normal name is an alias. */
17312 #if defined __stub_dlopen || defined __stub___dlopen
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (ac_try="$ac_link"
17326 case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_link") 2>conftest.er1
17333 grep -v '^ *+' conftest.er1 >conftest.err
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339 { (case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_try") 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest$ac_exeext'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ac_cv_func_dlopen=yes
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_func_dlopen=no
17366 rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17369 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17370 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17371 if test $ac_cv_func_dlopen = yes; then
17372 lt_cv_dlopen="dlopen"
17374 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17375 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17376 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 ac_check_lib_save_LIBS=$LIBS
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_lib_dl_dlopen=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_cv_lib_dl_dlopen=no
17445 rm -f core conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447 LIBS=$ac_check_lib_save_LIBS
17449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17451 if test $ac_cv_lib_dl_dlopen = yes; then
17452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17454 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17455 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17456 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 ac_check_lib_save_LIBS=$LIBS
17460 LIBS="-lsvld $LIBS"
17461 cat >conftest.$ac_ext <<_ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17468 /* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (ac_try="$ac_link"
17485 case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
17492 grep -v '^ *+' conftest.er1 >conftest.err
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_lib_svld_dlopen=yes
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_cv_lib_svld_dlopen=no
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 LIBS=$ac_check_lib_save_LIBS
17529 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17530 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17531 if test $ac_cv_lib_svld_dlopen = yes; then
17532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17534 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17535 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17536 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 ac_check_lib_save_LIBS=$LIBS
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17558 return dld_link ();
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
17572 grep -v '^ *+' conftest.er1 >conftest.err
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_lib_dld_dld_link=yes
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 ac_cv_lib_dld_dld_link=no
17605 rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 LIBS=$ac_check_lib_save_LIBS
17609 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17610 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17611 if test $ac_cv_lib_dld_dld_link = yes; then
17612 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17633 if test "x$lt_cv_dlopen" != xno; then
17639 case $lt_cv_dlopen in
17641 save_CPPFLAGS="$CPPFLAGS"
17642 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17644 save_LDFLAGS="$LDFLAGS"
17645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17648 LIBS="$lt_cv_dlopen_libs $LIBS"
17650 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17651 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17652 if test "${lt_cv_dlopen_self+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 if test "$cross_compiling" = yes; then :
17656 lt_cv_dlopen_self=cross
17658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17659 lt_status=$lt_dlunknown
17660 cat > conftest.$ac_ext <<EOF
17661 #line 17661 "configure"
17662 #include "confdefs.h"
17671 # define LT_DLGLOBAL RTLD_GLOBAL
17674 # define LT_DLGLOBAL DL_GLOBAL
17676 # define LT_DLGLOBAL 0
17680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17681 find out it does not work in some platform. */
17682 #ifndef LT_DLLAZY_OR_NOW
17684 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17687 # define LT_DLLAZY_OR_NOW DL_LAZY
17690 # define LT_DLLAZY_OR_NOW RTLD_NOW
17693 # define LT_DLLAZY_OR_NOW DL_NOW
17695 # define LT_DLLAZY_OR_NOW 0
17703 extern "C" void exit (int);
17706 void fnord() { int i=42;}
17709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17710 int status = $lt_dlunknown;
17714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17715 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17716 /* dlclose (self); */
17724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725 (eval $ac_link) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17729 (./conftest; exit; ) >&5 2>/dev/null
17731 case x$lt_status in
17732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17737 # compilation failed
17738 lt_cv_dlopen_self=no
17745 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17746 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17748 if test "x$lt_cv_dlopen_self" = xyes; then
17749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17750 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17751 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17752 if test "${lt_cv_dlopen_self_static+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 if test "$cross_compiling" = yes; then :
17756 lt_cv_dlopen_self_static=cross
17758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17759 lt_status=$lt_dlunknown
17760 cat > conftest.$ac_ext <<EOF
17761 #line 17761 "configure"
17762 #include "confdefs.h"
17771 # define LT_DLGLOBAL RTLD_GLOBAL
17774 # define LT_DLGLOBAL DL_GLOBAL
17776 # define LT_DLGLOBAL 0
17780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17781 find out it does not work in some platform. */
17782 #ifndef LT_DLLAZY_OR_NOW
17784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17787 # define LT_DLLAZY_OR_NOW DL_LAZY
17790 # define LT_DLLAZY_OR_NOW RTLD_NOW
17793 # define LT_DLLAZY_OR_NOW DL_NOW
17795 # define LT_DLLAZY_OR_NOW 0
17803 extern "C" void exit (int);
17806 void fnord() { int i=42;}
17809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17810 int status = $lt_dlunknown;
17814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17816 /* dlclose (self); */
17824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17829 (./conftest; exit; ) >&5 2>/dev/null
17831 case x$lt_status in
17832 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17833 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17834 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17837 # compilation failed
17838 lt_cv_dlopen_self_static=no
17845 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17846 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17849 CPPFLAGS="$save_CPPFLAGS"
17850 LDFLAGS="$save_LDFLAGS"
17855 case $lt_cv_dlopen_self in
17856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17857 *) enable_dlopen_self=unknown ;;
17860 case $lt_cv_dlopen_self_static in
17861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17862 *) enable_dlopen_self_static=unknown ;;
17867 # Report which library types will actually be built
17868 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17869 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17870 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17871 echo "${ECHO_T}$can_build_shared" >&6; }
17873 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17874 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17875 test "$can_build_shared" = "no" && enable_shared=no
17877 # On AIX, shared libraries and static libraries use the same namespace, and
17878 # are all built from PIC.
17881 test "$enable_shared" = yes && enable_static=no
17882 if test -n "$RANLIB"; then
17883 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17884 postinstall_cmds='$RANLIB $lib'
17889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17890 test "$enable_shared" = yes && enable_static=no
17894 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17895 echo "${ECHO_T}$enable_shared" >&6; }
17897 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17898 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17899 # Make sure either enable_shared or enable_static is yes.
17900 test "$enable_shared" = yes || enable_static=yes
17901 { echo "$as_me:$LINENO: result: $enable_static" >&5
17902 echo "${ECHO_T}$enable_static" >&6; }
17904 # The else clause should only fire when bootstrapping the
17905 # libtool distribution, otherwise you forgot to ship ltmain.sh
17906 # with your package, and you will get complaints that there are
17907 # no rules to generate ltmain.sh.
17908 if test -f "$ltmain"; then
17909 # See if we are running on zsh, and set the options which allow our commands through
17910 # without removal of \ escapes.
17911 if test -n "${ZSH_VERSION+set}" ; then
17912 setopt NO_GLOB_SUBST
17914 # Now quote all the things that may contain metacharacters while being
17915 # careful not to overquote the AC_SUBSTed values. We take copies of the
17916 # variables and quote the copies for generation of the libtool script.
17917 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17919 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17920 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17921 deplibs_check_method reload_flag reload_cmds need_locks \
17922 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17923 lt_cv_sys_global_symbol_to_c_name_address \
17924 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17925 old_postinstall_cmds old_postuninstall_cmds \
17929 lt_prog_compiler_wl \
17930 lt_prog_compiler_pic \
17931 lt_prog_compiler_static \
17932 lt_prog_compiler_no_builtin_flag \
17933 export_dynamic_flag_spec \
17934 thread_safe_flag_spec \
17935 whole_archive_flag_spec \
17936 enable_shared_with_static_runtimes \
17938 old_archive_from_new_cmds \
17943 compiler_lib_search_path \
17945 archive_expsym_cmds \
17947 postuninstall_cmds \
17948 old_archive_from_expsyms_cmds \
17949 allow_undefined_flag \
17950 no_undefined_flag \
17951 export_symbols_cmds \
17952 hardcode_libdir_flag_spec \
17953 hardcode_libdir_flag_spec_ld \
17954 hardcode_libdir_separator \
17955 hardcode_automatic \
17957 module_expsym_cmds \
17958 lt_cv_prog_compiler_c_o \
17960 include_expsyms; do
17963 old_archive_cmds | \
17964 old_archive_from_new_cmds | \
17966 archive_expsym_cmds | \
17968 module_expsym_cmds | \
17969 old_archive_from_expsyms_cmds | \
17970 export_symbols_cmds | \
17971 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17972 postinstall_cmds | postuninstall_cmds | \
17973 old_postinstall_cmds | old_postuninstall_cmds | \
17974 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17975 # Double-quote double-evaled strings.
17976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17985 *'\$0 --fallback-echo"')
17986 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17990 cfgfile="${ofile}T"
17991 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17993 { echo "$as_me:$LINENO: creating $ofile" >&5
17994 echo "$as_me: creating $ofile" >&6;}
17996 cat <<__EOF__ >> "$cfgfile"
17999 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18000 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18001 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18003 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18004 # Free Software Foundation, Inc.
18006 # This file is part of GNU Libtool:
18007 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18009 # This program is free software; you can redistribute it and/or modify
18010 # it under the terms of the GNU General Public License as published by
18011 # the Free Software Foundation; either version 2 of the License, or
18012 # (at your option) any later version.
18014 # This program is distributed in the hope that it will be useful, but
18015 # WITHOUT ANY WARRANTY; without even the implied warranty of
18016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18017 # General Public License for more details.
18019 # You should have received a copy of the GNU General Public License
18020 # along with this program; if not, write to the Free Software
18021 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18023 # As a special exception to the GNU General Public License, if you
18024 # distribute this file as part of a program that contains a
18025 # configuration script generated by Autoconf, you may include it under
18026 # the same distribution terms that you use for the rest of that program.
18028 # A sed program that does not truncate output.
18031 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18032 Xsed="$SED -e 1s/^X//"
18034 # The HP-UX ksh and POSIX shell print the target directory to stdout
18035 # if CDPATH is set.
18036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18038 # The names of the tagged configurations supported by this script.
18041 # ### BEGIN LIBTOOL CONFIG
18043 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18045 # Shell to use when invoking shell scripts.
18048 # Whether or not to build shared libraries.
18049 build_libtool_libs=$enable_shared
18051 # Whether or not to build static libraries.
18052 build_old_libs=$enable_static
18054 # Whether or not to add -lc for building shared libraries.
18055 build_libtool_need_lc=$archive_cmds_need_lc
18057 # Whether or not to disallow shared libs when runtime libs are static
18058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18060 # Whether or not to optimize for fast installation.
18061 fast_install=$enable_fast_install
18064 host_alias=$host_alias
18068 # The build system.
18069 build_alias=$build_alias
18073 # An echo program that does not interpret backslashes.
18078 AR_FLAGS=$lt_AR_FLAGS
18083 # LTCC compiler flags.
18084 LTCFLAGS=$lt_LTCFLAGS
18086 # A language-specific compiler.
18089 # Is the compiler the GNU C compiler?
18095 # The linker used to build libraries.
18098 # Whether we need hard or soft links.
18101 # A BSD-compatible nm program.
18104 # A symbol stripping program
18107 # Used to examine libraries when file_magic_cmd begins "file"
18108 MAGIC_CMD=$MAGIC_CMD
18110 # Used on cygwin: DLL creation program.
18113 # Used on cygwin: object dumper.
18116 # Used on cygwin: assembler.
18119 # The name of the directory that contains temporary libtool files.
18122 # How to create reloadable object files.
18123 reload_flag=$lt_reload_flag
18124 reload_cmds=$lt_reload_cmds
18126 # How to pass a linker flag through the compiler.
18127 wl=$lt_lt_prog_compiler_wl
18129 # Object file suffix (normally "o").
18130 objext="$ac_objext"
18132 # Old archive suffix (normally "a").
18135 # Shared library suffix (normally ".so").
18136 shrext_cmds='$shrext_cmds'
18138 # Executable file suffix (normally "").
18141 # Additional compiler flags for building library objects.
18142 pic_flag=$lt_lt_prog_compiler_pic
18145 # What is the maximum length of a command?
18146 max_cmd_len=$lt_cv_sys_max_cmd_len
18148 # Does compiler simultaneously support -c and -o options?
18149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18151 # Must we lock files when doing compilation?
18152 need_locks=$lt_need_locks
18154 # Do we need the lib prefix for modules?
18155 need_lib_prefix=$need_lib_prefix
18157 # Do we need a version for libraries?
18158 need_version=$need_version
18160 # Whether dlopen is supported.
18161 dlopen_support=$enable_dlopen
18163 # Whether dlopen of programs is supported.
18164 dlopen_self=$enable_dlopen_self
18166 # Whether dlopen of statically linked programs is supported.
18167 dlopen_self_static=$enable_dlopen_self_static
18169 # Compiler flag to prevent dynamic linking.
18170 link_static_flag=$lt_lt_prog_compiler_static
18172 # Compiler flag to turn off builtin functions.
18173 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18175 # Compiler flag to allow reflexive dlopens.
18176 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18178 # Compiler flag to generate shared objects directly from archives.
18179 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18181 # Compiler flag to generate thread-safe objects.
18182 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18184 # Library versioning type.
18185 version_type=$version_type
18187 # Format of library name prefix.
18188 libname_spec=$lt_libname_spec
18190 # List of archive names. First name is the real one, the rest are links.
18191 # The last name is the one that the linker finds with -lNAME.
18192 library_names_spec=$lt_library_names_spec
18194 # The coded name of the library, if different from the real name.
18195 soname_spec=$lt_soname_spec
18197 # Commands used to build and install an old-style archive.
18199 old_archive_cmds=$lt_old_archive_cmds
18200 old_postinstall_cmds=$lt_old_postinstall_cmds
18201 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18203 # Create an old-style archive from a shared archive.
18204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18206 # Create a temporary old-style archive to link instead of a shared archive.
18207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18209 # Commands used to build and install a shared archive.
18210 archive_cmds=$lt_archive_cmds
18211 archive_expsym_cmds=$lt_archive_expsym_cmds
18212 postinstall_cmds=$lt_postinstall_cmds
18213 postuninstall_cmds=$lt_postuninstall_cmds
18215 # Commands used to build a loadable module (assumed same as above if empty)
18216 module_cmds=$lt_module_cmds
18217 module_expsym_cmds=$lt_module_expsym_cmds
18219 # Commands to strip libraries.
18220 old_striplib=$lt_old_striplib
18221 striplib=$lt_striplib
18223 # Dependencies to place before the objects being linked to create a
18225 predep_objects=$lt_predep_objects
18227 # Dependencies to place after the objects being linked to create a
18229 postdep_objects=$lt_postdep_objects
18231 # Dependencies to place before the objects being linked to create a
18233 predeps=$lt_predeps
18235 # Dependencies to place after the objects being linked to create a
18237 postdeps=$lt_postdeps
18239 # The library search path used internally by the compiler when linking
18240 # a shared library.
18241 compiler_lib_search_path=$lt_compiler_lib_search_path
18243 # Method to check whether dependent libraries are shared objects.
18244 deplibs_check_method=$lt_deplibs_check_method
18246 # Command to use when deplibs_check_method == file_magic.
18247 file_magic_cmd=$lt_file_magic_cmd
18249 # Flag that allows shared libraries with undefined symbols to be built.
18250 allow_undefined_flag=$lt_allow_undefined_flag
18252 # Flag that forces no undefined symbols.
18253 no_undefined_flag=$lt_no_undefined_flag
18255 # Commands used to finish a libtool library installation in a directory.
18256 finish_cmds=$lt_finish_cmds
18258 # Same as above, but a single script fragment to be evaled but not shown.
18259 finish_eval=$lt_finish_eval
18261 # Take the output of nm and produce a listing of raw symbols and C names.
18262 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18264 # Transform the output of nm in a proper C declaration
18265 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18267 # Transform the output of nm in a C name address pair
18268 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18270 # This is the shared library runtime path variable.
18271 runpath_var=$runpath_var
18273 # This is the shared library path variable.
18274 shlibpath_var=$shlibpath_var
18276 # Is shlibpath searched before the hard-coded library search path?
18277 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18279 # How to hardcode a shared library path into an executable.
18280 hardcode_action=$hardcode_action
18282 # Whether we should hardcode library paths into libraries.
18283 hardcode_into_libs=$hardcode_into_libs
18285 # Flag to hardcode \$libdir into a binary during linking.
18286 # This must work even if \$libdir does not exist.
18287 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18289 # If ld is used when linking, flag to hardcode \$libdir into
18290 # a binary during linking. This must work even if \$libdir does
18292 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18294 # Whether we need a single -rpath flag with a separated argument.
18295 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18297 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18298 # resulting binary.
18299 hardcode_direct=$hardcode_direct
18301 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18302 # resulting binary.
18303 hardcode_minus_L=$hardcode_minus_L
18305 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18306 # the resulting binary.
18307 hardcode_shlibpath_var=$hardcode_shlibpath_var
18309 # Set to yes if building a shared library automatically hardcodes DIR into the library
18310 # and all subsequent libraries and executables linked against it.
18311 hardcode_automatic=$hardcode_automatic
18313 # Variables whose values should be saved in libtool wrapper scripts and
18314 # restored at relink time.
18315 variables_saved_for_relink="$variables_saved_for_relink"
18317 # Whether libtool must link a program against all its dependency libraries.
18318 link_all_deplibs=$link_all_deplibs
18320 # Compile-time system search path for libraries
18321 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18323 # Run-time system search path for libraries
18324 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18326 # Fix the shell variable \$srcfile for the compiler.
18327 fix_srcfile_path="$fix_srcfile_path"
18329 # Set to yes if exported symbols are required.
18330 always_export_symbols=$always_export_symbols
18332 # The commands to list exported symbols.
18333 export_symbols_cmds=$lt_export_symbols_cmds
18335 # The commands to extract the exported symbol list from a shared archive.
18336 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18338 # Symbols that should not be listed in the preloaded symbols.
18339 exclude_expsyms=$lt_exclude_expsyms
18341 # Symbols that must always be exported.
18342 include_expsyms=$lt_include_expsyms
18344 # ### END LIBTOOL CONFIG
18351 cat <<\EOF >> "$cfgfile"
18353 # AIX sometimes has problems with the GCC collect2 program. For some
18354 # reason, if we set the COLLECT_NAMES environment variable, the problems
18355 # vanish in a puff of smoke.
18356 if test "X${COLLECT_NAMES+set}" != Xset; then
18358 export COLLECT_NAMES
18364 # We use sed instead of cat because bash on DJGPP gets confused if
18365 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18366 # text mode, it properly converts lines to CR/LF. This bash problem
18367 # is reportedly fixed, but why not run on old versions too?
18368 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18370 mv -f "$cfgfile" "$ofile" || \
18371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18375 # If there is no Makefile yet, we rely on a make rule to execute
18376 # `config.status --recheck' to rerun these tests and create the
18377 # libtool script then.
18378 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18379 if test -f "$ltmain_in"; then
18380 test -f Makefile && make "$ltmain"
18386 ac_cpp='$CPP $CPPFLAGS'
18387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394 # Check whether --with-tags was given.
18395 if test "${with_tags+set}" = set; then
18396 withval=$with_tags; tagnames="$withval"
18400 if test -f "$ltmain" && test -n "$tagnames"; then
18401 if test ! -f "${ofile}"; then
18402 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18403 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18406 if test -z "$LTCC"; then
18407 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18408 if test -z "$LTCC"; then
18409 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18410 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18412 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18413 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18416 if test -z "$LTCFLAGS"; then
18417 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18420 # Extract list of available tagged configurations in $ofile.
18421 # Note that this assumes the entire list is on one line.
18422 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18425 for tagname in $tagnames; do
18427 # Check whether tagname contains only valid characters
18428 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18430 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18431 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18432 { (exit 1); exit 1; }; }
18436 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18438 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18439 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18440 { (exit 1); exit 1; }; }
18443 # Update the list of available tags.
18444 if test -n "$tagname"; then
18445 echo appending configuration tag \"$tagname\" to $ofile
18449 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18450 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18451 (test "X$CXX" != "Xg++"))) ; then
18453 ac_cpp='$CXXCPP $CPPFLAGS'
18454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18461 archive_cmds_need_lc_CXX=no
18462 allow_undefined_flag_CXX=
18463 always_export_symbols_CXX=no
18464 archive_expsym_cmds_CXX=
18465 export_dynamic_flag_spec_CXX=
18466 hardcode_direct_CXX=no
18467 hardcode_libdir_flag_spec_CXX=
18468 hardcode_libdir_flag_spec_ld_CXX=
18469 hardcode_libdir_separator_CXX=
18470 hardcode_minus_L_CXX=no
18471 hardcode_shlibpath_var_CXX=unsupported
18472 hardcode_automatic_CXX=no
18474 module_expsym_cmds_CXX=
18475 link_all_deplibs_CXX=unknown
18476 old_archive_cmds_CXX=$old_archive_cmds
18477 no_undefined_flag_CXX=
18478 whole_archive_flag_spec_CXX=
18479 enable_shared_with_static_runtimes_CXX=no
18481 # Dependencies to place before and after the object being linked:
18482 predep_objects_CXX=
18483 postdep_objects_CXX=
18486 compiler_lib_search_path_CXX=
18488 # Source file extension for C++ test sources.
18491 # Object file extension for compiled C++ test sources.
18495 # Code to be used in simple compile tests
18496 lt_simple_compile_test_code="int some_variable = 0;\n"
18498 # Code to be used in simple link tests
18499 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18503 # If no C compiler was specified, use CC.
18506 # If no C compiler flags were specified, use CFLAGS.
18507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18509 # Allow CC to be a program name with arguments.
18513 # save warnings/boilerplate of simple test code
18514 ac_outfile=conftest.$ac_objext
18515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18517 _lt_compiler_boilerplate=`cat conftest.err`
18520 ac_outfile=conftest.$ac_objext
18521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18523 _lt_linker_boilerplate=`cat conftest.err`
18527 # Allow CC to be a program name with arguments.
18532 lt_save_with_gnu_ld=$with_gnu_ld
18533 lt_save_path_LD=$lt_cv_path_LD
18534 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18535 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18537 $as_unset lt_cv_prog_gnu_ld
18539 if test -n "${lt_cv_path_LDCXX+set}"; then
18540 lt_cv_path_LD=$lt_cv_path_LDCXX
18542 $as_unset lt_cv_path_LD
18544 test -z "${LDCXX+set}" || LD=$LDCXX
18548 for cc_temp in $compiler""; do
18550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18559 # We don't want -fno-exception wen compiling C++ code, so set the
18560 # no_builtin_flag separately
18561 if test "$GXX" = yes; then
18562 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18564 lt_prog_compiler_no_builtin_flag_CXX=
18567 if test "$GXX" = yes; then
18568 # Set up default GNU C++ configuration
18571 # Check whether --with-gnu-ld was given.
18572 if test "${with_gnu_ld+set}" = set; then
18573 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18579 if test "$GCC" = yes; then
18580 # Check if gcc -print-prog-name=ld gives a path.
18581 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18582 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18585 # gcc leaves a trailing carriage return which upsets mingw
18586 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18588 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18591 # Accept absolute paths.
18593 re_direlt='/[^/][^/]*/\.\./'
18594 # Canonicalize the pathname of ld
18595 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18596 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18597 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18599 test -z "$LD" && LD="$ac_prog"
18602 # If it fails, then pretend we aren't using GCC.
18606 # If it is relative, then search for the first ld in PATH.
18607 with_gnu_ld=unknown
18610 elif test "$with_gnu_ld" = yes; then
18611 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18612 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18614 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18615 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18617 if test "${lt_cv_path_LD+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 if test -z "$LD"; then
18621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18622 for ac_dir in $PATH; do
18624 test -z "$ac_dir" && ac_dir=.
18625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18626 lt_cv_path_LD="$ac_dir/$ac_prog"
18627 # Check to see if the program is GNU ld. I'd rather use --version,
18628 # but apparently some variants of GNU ld only accept -v.
18629 # Break only if it was the GNU/non-GNU ld that we prefer.
18630 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18631 *GNU* | *'with BFD'*)
18632 test "$with_gnu_ld" != no && break
18635 test "$with_gnu_ld" != yes && break
18642 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18646 LD="$lt_cv_path_LD"
18647 if test -n "$LD"; then
18648 { echo "$as_me:$LINENO: result: $LD" >&5
18649 echo "${ECHO_T}$LD" >&6; }
18651 { echo "$as_me:$LINENO: result: no" >&5
18652 echo "${ECHO_T}no" >&6; }
18654 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18655 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18656 { (exit 1); exit 1; }; }
18657 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18658 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18659 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18663 case `$LD -v 2>&1 </dev/null` in
18664 *GNU* | *'with BFD'*)
18665 lt_cv_prog_gnu_ld=yes
18668 lt_cv_prog_gnu_ld=no
18672 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18673 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18674 with_gnu_ld=$lt_cv_prog_gnu_ld
18678 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18679 # archiving commands below assume that GNU ld is being used.
18680 if test "$with_gnu_ld" = yes; then
18681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18682 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'
18684 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18687 # If archive_cmds runs LD, not CC, wlarc should be empty
18688 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18689 # investigate it a little bit more. (MM)
18692 # ancient GNU ld didn't support --whole-archive et. al.
18693 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18694 grep 'no-whole-archive' > /dev/null; then
18695 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18697 whole_archive_flag_spec_CXX=
18703 # A generic and very simple default shared library creation
18704 # command for GNU C++ for the case where it uses the native
18705 # linker, instead of GNU ld. If possible, this setting should
18706 # overridden to take advantage of the native linker features on
18707 # the platform it is being used on.
18708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18711 # Commands to make compiler produce verbose output that lists
18712 # what "hidden" libraries, object files and flags are used when
18713 # linking a shared library.
18714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18722 # PORTME: fill in a description of your system's C++ link characteristics
18723 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18724 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18728 # FIXME: insert proper C++ library support
18732 if test "$host_cpu" = ia64; then
18733 # On IA64, the linker does run time linking by default, so we don't
18734 # have to do anything special.
18735 aix_use_runtimelinking=no
18736 exp_sym_flag='-Bexport'
18739 aix_use_runtimelinking=no
18741 # Test if we are trying to use run time linking or normal
18742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18743 # need to do runtime linking.
18744 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18745 for ld_flag in $LDFLAGS; do
18748 aix_use_runtimelinking=yes
18756 exp_sym_flag='-bexport'
18757 no_entry_flag='-bnoentry'
18760 # When large executables or shared objects are built, AIX ld can
18761 # have problems creating the table of contents. If linking a library
18762 # or program results in "error TOC overflow" add -mminimal-toc to
18763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18766 archive_cmds_CXX=''
18767 hardcode_direct_CXX=yes
18768 hardcode_libdir_separator_CXX=':'
18769 link_all_deplibs_CXX=yes
18771 if test "$GXX" = yes; then
18772 case $host_os in aix4.[012]|aix4.[012].*)
18773 # We only want to do this on AIX 4.2 and lower, the check
18774 # below for broken collect2 doesn't work under 4.3+
18775 collect2name=`${CC} -print-prog-name=collect2`
18776 if test -f "$collect2name" && \
18777 strings "$collect2name" | grep resolve_lib_name >/dev/null
18779 # We have reworked collect2
18780 hardcode_direct_CXX=yes
18782 # We have old collect2
18783 hardcode_direct_CXX=unsupported
18784 # It fails to find uninstalled libraries when the uninstalled
18785 # path is not listed in the libpath. Setting hardcode_minus_L
18786 # to unsupported forces relinking
18787 hardcode_minus_L_CXX=yes
18788 hardcode_libdir_flag_spec_CXX='-L$libdir'
18789 hardcode_libdir_separator_CXX=
18793 shared_flag='-shared'
18794 if test "$aix_use_runtimelinking" = yes; then
18795 shared_flag="$shared_flag "'${wl}-G'
18799 if test "$host_cpu" = ia64; then
18800 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18801 # chokes on -Wl,-G. The following line is correct:
18804 if test "$aix_use_runtimelinking" = yes; then
18805 shared_flag='${wl}-G'
18807 shared_flag='${wl}-bM:SRE'
18812 # It seems that -bexpall does not export symbols beginning with
18813 # underscore (_), so it is better to generate a list of symbols to export.
18814 always_export_symbols_CXX=yes
18815 if test "$aix_use_runtimelinking" = yes; then
18816 # Warning - without using the other runtime loading flags (-brtl),
18817 # -berok will link without error, but may produce a broken library.
18818 allow_undefined_flag_CXX='-berok'
18819 # Determine the default libpath from the value encoded in an empty executable.
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18835 rm -f conftest.$ac_objext conftest$ac_exeext
18836 if { (ac_try="$ac_link"
18837 case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_link") 2>conftest.er1
18844 grep -v '^ *+' conftest.er1 >conftest.err
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18850 { (case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_try") 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest$ac_exeext'
18860 { (case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_try") 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18872 # Check for a 64-bit object if we didn't find anything.
18873 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; }
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18882 rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18886 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18888 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"
18890 if test "$host_cpu" = ia64; then
18891 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18892 allow_undefined_flag_CXX="-z nodefs"
18893 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"
18895 # Determine the default libpath from the value encoded in an empty executable.
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18948 # Check for a 64-bit object if we didn't find anything.
18949 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; }
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18958 rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18963 # Warning - without using the other run time loading flags,
18964 # -berok will link without error, but may produce a broken library.
18965 no_undefined_flag_CXX=' ${wl}-bernotok'
18966 allow_undefined_flag_CXX=' ${wl}-berok'
18967 # Exported symbols can be pulled into shared objects from archives
18968 whole_archive_flag_spec_CXX='$convenience'
18969 archive_cmds_need_lc_CXX=yes
18970 # This is similar to how AIX traditionally builds its shared libraries.
18971 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'
18977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18978 allow_undefined_flag_CXX=unsupported
18979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18980 # support --undefined. This deserves some investigation. FIXME
18981 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988 case $cc_basename in
18990 # FIXME: insert proper C++ library support
18996 cygwin* | mingw* | pw32*)
18997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18998 # as there is no search path for DLLs.
18999 hardcode_libdir_flag_spec_CXX='-L$libdir'
19000 allow_undefined_flag_CXX=unsupported
19001 always_export_symbols_CXX=no
19002 enable_shared_with_static_runtimes_CXX=yes
19004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19005 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'
19006 # If the export-symbols file already is a .def file (1st line
19007 # is EXPORTS), use it as is; otherwise, prepend...
19008 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19009 cp $export_symbols $output_objdir/$soname.def;
19011 echo EXPORTS > $output_objdir/$soname.def;
19012 cat $export_symbols >> $output_objdir/$soname.def;
19014 $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'
19019 darwin* | rhapsody*)
19021 rhapsody* | darwin1.[012])
19022 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19026 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19028 case ${MACOSX_DEPLOYMENT_TARGET} in
19030 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19033 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19039 archive_cmds_need_lc_CXX=no
19040 hardcode_direct_CXX=no
19041 hardcode_automatic_CXX=yes
19042 hardcode_shlibpath_var_CXX=unsupported
19043 whole_archive_flag_spec_CXX=''
19044 link_all_deplibs_CXX=yes
19046 if test "$GXX" = yes ; then
19047 lt_int_apple_cc_single_mod=no
19048 output_verbose_link_cmd='echo'
19049 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19050 lt_int_apple_cc_single_mod=yes
19052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19053 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19055 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'
19057 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19060 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}'
19062 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}'
19064 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}'
19066 case $cc_basename in
19068 output_verbose_link_cmd='echo'
19069 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'
19070 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19072 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}'
19073 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}'
19083 case $cc_basename in
19085 # FIXME: insert proper C++ library support
19089 # Green Hills C++ Compiler
19090 # FIXME: insert proper C++ library support
19094 # FIXME: insert proper C++ library support
19100 # C++ shared libraries reported to be fairly broken before switch to ELF
19104 archive_cmds_need_lc_CXX=no
19106 freebsd* | kfreebsd*-gnu | dragonfly*)
19107 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19114 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19116 export_dynamic_flag_spec_CXX='${wl}-E'
19117 hardcode_direct_CXX=yes
19118 hardcode_minus_L_CXX=yes # Not in the search PATH,
19119 # but as the default
19120 # location of the library.
19122 case $cc_basename in
19124 # FIXME: insert proper C++ library support
19128 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'
19129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19133 # There doesn't appear to be a way to prevent this compiler from
19134 # explicitly linking system object files so we need to strip them
19135 # from the output so that they don't get included in the library
19137 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'
19140 if test "$GXX" = yes; then
19141 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'
19143 # FIXME: insert proper C++ library support
19150 if test $with_gnu_ld = no; then
19151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19152 hardcode_libdir_separator_CXX=:
19156 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19159 export_dynamic_flag_spec_CXX='${wl}-E'
19165 hardcode_direct_CXX=no
19166 hardcode_shlibpath_var_CXX=no
19169 hardcode_direct_CXX=yes
19170 hardcode_minus_L_CXX=yes # Not in the search PATH,
19171 # but as the default
19172 # location of the library.
19176 case $cc_basename in
19178 # FIXME: insert proper C++ library support
19184 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19193 # Commands to make compiler produce verbose output that lists
19194 # what "hidden" libraries, object files and flags are used when
19195 # linking a shared library.
19197 # There doesn't appear to be a way to prevent this compiler from
19198 # explicitly linking system object files so we need to strip them
19199 # from the output so that they don't get included in the library
19201 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'
19204 if test "$GXX" = yes; then
19205 if test $with_gnu_ld = no; then
19208 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19211 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19214 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'
19219 # FIXME: insert proper C++ library support
19226 hardcode_direct_CXX=no
19227 hardcode_shlibpath_var_CXX=no
19228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19229 export_dynamic_flag_spec_CXX='${wl}-E'
19230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19231 # Instead, shared libraries are loaded at an image base (0x10000000 by
19232 # default) and relocated if they conflict, which is a slow very memory
19233 # consuming and fragmenting process. To avoid this, we pick a random,
19234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19236 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'
19237 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'
19240 case $cc_basename in
19243 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'
19245 # Archives containing C++ object files must be created using
19246 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19247 # necessary to make sure instantiated templates are included
19249 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19252 if test "$GXX" = yes; then
19253 if test "$with_gnu_ld" = no; then
19254 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'
19256 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'
19259 link_all_deplibs_CXX=yes
19262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19266 case $cc_basename in
19268 # Kuck and Associates, Inc. (KAI) C++ Compiler
19270 # KCC will only create a shared library if the output file
19271 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19272 # to its proper name (with version) after linking.
19273 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'
19274 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'
19275 # Commands to make compiler produce verbose output that lists
19276 # what "hidden" libraries, object files and flags are used when
19277 # linking a shared library.
19279 # There doesn't appear to be a way to prevent this compiler from
19280 # explicitly linking system object files so we need to strip them
19281 # from the output so that they don't get included in the library
19283 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'
19285 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19288 # Archives containing C++ object files must be created using
19289 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19290 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19295 # version 8.0 and above of icpc choke on multiply defined symbols
19296 # if we add $predep_objects and $postdep_objects, however 7.1 and
19297 # earlier do not add the objects themselves.
19298 case `$CC -V 2>&1` in
19300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19301 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'
19303 *) # Version 8.0 or newer
19306 ia64*) tmp_idyn=' -i_dynamic';;
19308 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 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'
19312 archive_cmds_need_lc_CXX=no
19313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19318 # Portland Group C++ compiler
19319 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19320 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'
19322 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324 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'
19328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 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'
19331 runpath_var=LD_RUN_PATH
19332 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19333 hardcode_libdir_separator_CXX=:
19335 # Commands to make compiler produce verbose output that lists
19336 # what "hidden" libraries, object files and flags are used when
19337 # linking a shared library.
19339 # There doesn't appear to be a way to prevent this compiler from
19340 # explicitly linking system object files so we need to strip them
19341 # from the output so that they don't get included in the library
19343 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'
19348 # FIXME: insert proper C++ library support
19352 # FIXME: insert proper C++ library support
19356 case $cc_basename in
19358 # FIXME: insert proper C++ library support
19362 # FIXME: insert proper C++ library support
19368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19369 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19371 hardcode_libdir_flag_spec_CXX='-R$libdir'
19372 hardcode_direct_CXX=yes
19373 hardcode_shlibpath_var_CXX=no
19375 # Workaround some broken pre-1.5 toolchains
19376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19379 # C++ shared libraries are fairly broken
19383 hardcode_direct_CXX=yes
19384 hardcode_shlibpath_var_CXX=no
19385 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19388 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19389 export_dynamic_flag_spec_CXX='${wl}-E'
19390 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19392 output_verbose_link_cmd='echo'
19395 case $cc_basename in
19397 # Kuck and Associates, Inc. (KAI) C++ Compiler
19399 # KCC will only create a shared library if the output file
19400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19401 # to its proper name (with version) after linking.
19402 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'
19404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19405 hardcode_libdir_separator_CXX=:
19407 # Archives containing C++ object files must be created using
19408 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19409 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19413 # Rational C++ 2.4.1
19414 # FIXME: insert proper C++ library support
19418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19419 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'
19421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19422 hardcode_libdir_separator_CXX=:
19424 # Commands to make compiler produce verbose output that lists
19425 # what "hidden" libraries, object files and flags are used when
19426 # linking a shared library.
19428 # There doesn't appear to be a way to prevent this compiler from
19429 # explicitly linking system object files so we need to strip them
19430 # from the output so that they don't get included in the library
19432 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'
19435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19437 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'
19439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19440 hardcode_libdir_separator_CXX=:
19442 # Commands to make compiler produce verbose output that lists
19443 # what "hidden" libraries, object files and flags are used when
19444 # linking a shared library.
19445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19448 # FIXME: insert proper C++ library support
19455 case $cc_basename in
19457 # Kuck and Associates, Inc. (KAI) C++ Compiler
19459 # KCC will only create a shared library if the output file
19460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19461 # to its proper name (with version) after linking.
19462 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'
19464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19465 hardcode_libdir_separator_CXX=:
19467 # Archives containing C++ object files must be created using
19468 # the KAI C++ compiler.
19469 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19472 # Rational C++ 2.4.1
19473 # FIXME: insert proper C++ library support
19477 allow_undefined_flag_CXX=' -expect_unresolved \*'
19478 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'
19479 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19480 echo "-hidden">> $lib.exp~
19481 $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~
19484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19485 hardcode_libdir_separator_CXX=:
19487 # Commands to make compiler produce verbose output that lists
19488 # what "hidden" libraries, object files and flags are used when
19489 # linking a shared library.
19491 # There doesn't appear to be a way to prevent this compiler from
19492 # explicitly linking system object files so we need to strip them
19493 # from the output so that they don't get included in the library
19495 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'
19498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19500 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'
19502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19503 hardcode_libdir_separator_CXX=:
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19511 # FIXME: insert proper C++ library support
19518 # FIXME: insert proper C++ library support
19522 case $cc_basename in
19525 # FIXME: insert proper C++ library support
19530 # FIXME: insert proper C++ library support
19534 # FIXME: insert proper C++ library support
19540 case $cc_basename in
19542 # Sun C++ 4.2, 5.x and Centerline C++
19543 archive_cmds_need_lc_CXX=yes
19544 no_undefined_flag_CXX=' -zdefs'
19545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19546 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19547 $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'
19549 hardcode_libdir_flag_spec_CXX='-R$libdir'
19550 hardcode_shlibpath_var_CXX=no
19552 solaris2.[0-5] | solaris2.[0-5].*) ;;
19554 # The C++ compiler is used as linker so we must use $wl
19555 # flag to pass the commands to the underlying system
19556 # linker. We must also pass each convience library through
19557 # to the system linker between allextract/defaultextract.
19558 # The C++ compiler will combine linker options so we
19559 # cannot just pass the convience library names through
19561 # Supported since Solaris 2.6 (maybe 2.5.1?)
19562 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'
19565 link_all_deplibs_CXX=yes
19567 output_verbose_link_cmd='echo'
19569 # Archives containing C++ object files must be created using
19570 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19571 # necessary to make sure instantiated templates are included
19573 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19576 # Green Hills C++ Compiler
19577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19579 # The C++ compiler must be used to create the archive.
19580 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19583 # GNU C++ compiler with Solaris linker
19584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19585 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19586 if $CC --version | grep -v '^2\.7' > /dev/null; then
19587 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19588 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19589 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19591 # Commands to make compiler produce verbose output that lists
19592 # what "hidden" libraries, object files and flags are used when
19593 # linking a shared library.
19594 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19596 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19598 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19599 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19600 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19602 # Commands to make compiler produce verbose output that lists
19603 # what "hidden" libraries, object files and flags are used when
19604 # linking a shared library.
19605 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19608 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19614 no_undefined_flag_CXX='${wl}-z,text'
19615 archive_cmds_need_lc_CXX=no
19616 hardcode_shlibpath_var_CXX=no
19617 runpath_var='LD_RUN_PATH'
19619 case $cc_basename in
19621 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19625 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19630 sysv5* | sco3.2v5* | sco5v6*)
19631 # Note: We can NOT use -z defs as we might desire, because we do not
19632 # link with -lc, and that would cause any symbols used from libc to
19633 # always be unresolved, which means just about no library would
19634 # ever link correctly. If we're not using GNU ld we use -z text
19635 # though, which does catch some bad symbols but isn't as heavy-handed
19637 # For security reasons, it is highly recommended that you always
19638 # use absolute paths for naming shared libraries, and exclude the
19639 # DT_RUNPATH tag from executables and libraries. But doing so
19640 # requires that you compile everything twice, which is a pain.
19641 # So that behaviour is only enabled if SCOABSPATH is set to a
19642 # non-empty value in the environment. Most likely only useful for
19643 # creating official distributions of packages.
19644 # This is a hack until libtool officially supports absolute path
19645 # names for shared libraries.
19646 no_undefined_flag_CXX='${wl}-z,text'
19647 allow_undefined_flag_CXX='${wl}-z,nodefs'
19648 archive_cmds_need_lc_CXX=no
19649 hardcode_shlibpath_var_CXX=no
19650 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19651 hardcode_libdir_separator_CXX=':'
19652 link_all_deplibs_CXX=yes
19653 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19654 runpath_var='LD_RUN_PATH'
19656 case $cc_basename in
19658 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19662 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19668 case $cc_basename in
19670 # NonStop-UX NCC 3.20
19671 # FIXME: insert proper C++ library support
19675 # FIXME: insert proper C++ library support
19681 # FIXME: insert proper C++ library support
19685 # FIXME: insert proper C++ library support
19689 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19690 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19691 test "$ld_shlibs_CXX" = no && can_build_shared=no
19697 cat > conftest.$ac_ext <<EOF
19701 Foo (void) { a = 0; }
19707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708 (eval $ac_compile) 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; then
19712 # Parse the compiler output and extract the necessary
19713 # objects, libraries and library flags.
19715 # Sentinel used to keep track of whether or not we are before
19716 # the conftest object file.
19717 pre_test_object_deps_done=no
19719 # The `*' in the case matches for architectures that use `case' in
19720 # $output_verbose_cmd can trigger glob expansion during the loop
19721 # eval without this substitution.
19722 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19724 for p in `eval $output_verbose_link_cmd`; do
19728 # Some compilers place space between "-{L,R}" and the path.
19729 # Remove the space.
19730 if test $p = "-L" \
19731 || test $p = "-R"; then
19738 if test "$pre_test_object_deps_done" = no; then
19741 # Internal compiler library paths should come after those
19742 # provided the user. The postdeps already come after the
19743 # user supplied libs so there is no need to process them.
19744 if test -z "$compiler_lib_search_path_CXX"; then
19745 compiler_lib_search_path_CXX="${prev}${p}"
19747 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19750 # The "-l" case would never come before the object being
19751 # linked, so don't bother handling this case.
19754 if test -z "$postdeps_CXX"; then
19755 postdeps_CXX="${prev}${p}"
19757 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19763 # This assumes that the test object file only shows up
19764 # once in the compiler output.
19765 if test "$p" = "conftest.$objext"; then
19766 pre_test_object_deps_done=yes
19770 if test "$pre_test_object_deps_done" = no; then
19771 if test -z "$predep_objects_CXX"; then
19772 predep_objects_CXX="$p"
19774 predep_objects_CXX="$predep_objects_CXX $p"
19777 if test -z "$postdep_objects_CXX"; then
19778 postdep_objects_CXX="$p"
19780 postdep_objects_CXX="$postdep_objects_CXX $p"
19785 *) ;; # Ignore the rest.
19793 echo "libtool.m4: error: problem compiling CXX test program"
19796 $rm -f confest.$objext
19798 # PORTME: override above test on systems where it is broken
19801 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19802 # hack all around it, let's just trust "g++" to DTRT.
19803 predep_objects_CXX=
19804 postdep_objects_CXX=
19809 case $cc_basename in
19811 # Adding this requires a known-good setup of shared libraries for
19812 # Sun compiler versions before 5.6, else PIC objects from an old
19813 # archive will be linked into the output, leading to subtle bugs.
19814 postdeps_CXX='-lCstd -lCrun'
19821 case " $postdeps_CXX " in
19822 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19825 lt_prog_compiler_wl_CXX=
19826 lt_prog_compiler_pic_CXX=
19827 lt_prog_compiler_static_CXX=
19829 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19830 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19832 # C++ specific cases for pic, static, wl, etc.
19833 if test "$GXX" = yes; then
19834 lt_prog_compiler_wl_CXX='-Wl,'
19835 lt_prog_compiler_static_CXX='-static'
19839 # All AIX code is PIC.
19840 if test "$host_cpu" = ia64; then
19841 # AIX 5 now supports IA64 processor
19842 lt_prog_compiler_static_CXX='-Bstatic'
19846 # FIXME: we need at least 68020 code to build shared libraries, but
19847 # adding the `-m68020' flag to GCC prevents building anything better,
19849 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19851 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19852 # PIC is the default for these OSes.
19854 mingw* | os2* | pw32*)
19855 # This hack is so that the source file can tell whether it is being
19856 # built for inclusion in a dll (and should export symbols for example).
19857 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19859 darwin* | rhapsody*)
19860 # PIC is the default on this platform
19861 # Common symbols not allowed in MH_DYLIB files
19862 lt_prog_compiler_pic_CXX='-fno-common'
19865 # DJGPP does not support shared libraries at all
19866 lt_prog_compiler_pic_CXX=
19869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19870 # Instead, we relocate shared libraries at runtime.
19873 if test -d /usr/nec; then
19874 lt_prog_compiler_pic_CXX=-Kconform_pic
19878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19879 # not for PA HP-UX.
19884 lt_prog_compiler_pic_CXX='-fPIC'
19889 lt_prog_compiler_pic_CXX='-fPIC'
19895 # All AIX code is PIC.
19896 if test "$host_cpu" = ia64; then
19897 # AIX 5 now supports IA64 processor
19898 lt_prog_compiler_static_CXX='-Bstatic'
19900 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19904 case $cc_basename in
19906 # Green Hills C++ Compiler
19907 # _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"
19912 # PIC is the default on this platform
19913 # Common symbols not allowed in MH_DYLIB files
19914 case $cc_basename in
19916 lt_prog_compiler_pic_CXX='-qnocommon'
19917 lt_prog_compiler_wl_CXX='-Wl,'
19922 case $cc_basename in
19924 lt_prog_compiler_pic_CXX='-KPIC'
19927 # Green Hills C++ Compiler
19928 lt_prog_compiler_pic_CXX='-pic'
19934 freebsd* | kfreebsd*-gnu | dragonfly*)
19935 # FreeBSD uses GNU C++
19937 hpux9* | hpux10* | hpux11*)
19938 case $cc_basename in
19940 lt_prog_compiler_wl_CXX='-Wl,'
19941 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19942 if test "$host_cpu" != ia64; then
19943 lt_prog_compiler_pic_CXX='+Z'
19947 lt_prog_compiler_wl_CXX='-Wl,'
19948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19954 lt_prog_compiler_pic_CXX='+Z'
19963 # This is c89, which is MS Visual C++ (no shared libs)
19964 # Anyone wants to do a port?
19966 irix5* | irix6* | nonstopux*)
19967 case $cc_basename in
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_static_CXX='-non_shared'
19971 # CC pic flag -KPIC is the default.
19978 case $cc_basename in
19981 lt_prog_compiler_wl_CXX='--backend -Wl,'
19982 lt_prog_compiler_pic_CXX='-fPIC'
19986 lt_prog_compiler_wl_CXX='-Wl,'
19987 lt_prog_compiler_pic_CXX='-KPIC'
19988 lt_prog_compiler_static_CXX='-static'
19991 # Portland Group C++ compiler.
19992 lt_prog_compiler_wl_CXX='-Wl,'
19993 lt_prog_compiler_pic_CXX='-fpic'
19994 lt_prog_compiler_static_CXX='-Bstatic'
19998 # Make sure the PIC flag is empty. It appears that all Alpha
19999 # Linux and Compaq Tru64 Unix objects are PIC.
20000 lt_prog_compiler_pic_CXX=
20001 lt_prog_compiler_static_CXX='-non_shared'
20012 case $cc_basename in
20014 lt_prog_compiler_pic_CXX='-W c,exportall'
20022 osf3* | osf4* | osf5*)
20023 case $cc_basename in
20025 lt_prog_compiler_wl_CXX='--backend -Wl,'
20028 # Rational C++ 2.4.1
20029 lt_prog_compiler_pic_CXX='-pic'
20032 # Digital/Compaq C++
20033 lt_prog_compiler_wl_CXX='-Wl,'
20034 # Make sure the PIC flag is empty. It appears that all Alpha
20035 # Linux and Compaq Tru64 Unix objects are PIC.
20036 lt_prog_compiler_pic_CXX=
20037 lt_prog_compiler_static_CXX='-non_shared'
20046 case $cc_basename in
20048 # Sun C++ 4.2, 5.x and Centerline C++
20049 lt_prog_compiler_pic_CXX='-KPIC'
20050 lt_prog_compiler_static_CXX='-Bstatic'
20051 lt_prog_compiler_wl_CXX='-Qoption ld '
20054 # Green Hills C++ Compiler
20055 lt_prog_compiler_pic_CXX='-PIC'
20062 case $cc_basename in
20065 lt_prog_compiler_pic_CXX='-pic'
20066 lt_prog_compiler_static_CXX='-Bstatic'
20070 lt_prog_compiler_pic_CXX='-pic'
20077 case $cc_basename in
20079 # NonStop-UX NCC 3.20
20080 lt_prog_compiler_pic_CXX='-KPIC'
20086 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20087 case $cc_basename in
20089 lt_prog_compiler_wl_CXX='-Wl,'
20090 lt_prog_compiler_pic_CXX='-KPIC'
20091 lt_prog_compiler_static_CXX='-Bstatic'
20098 lt_prog_compiler_can_build_shared_CXX=no
20103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20104 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20107 # Check to make sure the PIC flag actually works.
20109 if test -n "$lt_prog_compiler_pic_CXX"; then
20111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20113 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 lt_prog_compiler_pic_works_CXX=no
20117 ac_outfile=conftest.$ac_objext
20118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20119 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20120 # Insert the option either (1) after the last *FLAGS variable, or
20121 # (2) before a word containing "conftest.", or (3) at the end.
20122 # Note that $ac_compile itself does not contain backslashes and begins
20123 # with a dollar sign (not a hyphen), so the echo should work correctly.
20124 # The option is referenced via a variable to avoid confusing sed.
20125 lt_compile=`echo "$ac_compile" | $SED \
20126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20128 -e 's:$: $lt_compiler_flag:'`
20129 (eval echo "\"\$as_me:20129: $lt_compile\"" >&5)
20130 (eval "$lt_compile" 2>conftest.err)
20132 cat conftest.err >&5
20133 echo "$as_me:20133: \$? = $ac_status" >&5
20134 if (exit $ac_status) && test -s "$ac_outfile"; then
20135 # The compiler can only warn and ignore the option if not recognized
20136 # So say no if there are warnings other than the usual output.
20137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20140 lt_prog_compiler_pic_works_CXX=yes
20146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20147 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20149 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20150 case $lt_prog_compiler_pic_CXX in
20152 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20155 lt_prog_compiler_pic_CXX=
20156 lt_prog_compiler_can_build_shared_CXX=no
20161 # For platforms which do not support PIC, -DPIC is meaningless:
20163 lt_prog_compiler_pic_CXX=
20166 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20171 # Check to make sure the static flag actually works.
20173 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20176 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 lt_prog_compiler_static_works_CXX=no
20180 save_LDFLAGS="$LDFLAGS"
20181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20184 # The linker can only warn and ignore the option if not recognized
20185 # So say no if there are warnings
20186 if test -s conftest.err; then
20187 # Append any errors to the config.log.
20188 cat conftest.err 1>&5
20189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20191 if diff conftest.exp conftest.er2 >/dev/null; then
20192 lt_prog_compiler_static_works_CXX=yes
20195 lt_prog_compiler_static_works_CXX=yes
20199 LDFLAGS="$save_LDFLAGS"
20202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20203 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20205 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20208 lt_prog_compiler_static_CXX=
20212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20214 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 lt_cv_prog_compiler_c_o_CXX=no
20218 $rm -r conftest 2>/dev/null
20222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20224 lt_compiler_flag="-o out/conftest2.$ac_objext"
20225 # Insert the option either (1) after the last *FLAGS variable, or
20226 # (2) before a word containing "conftest.", or (3) at the end.
20227 # Note that $ac_compile itself does not contain backslashes and begins
20228 # with a dollar sign (not a hyphen), so the echo should work correctly.
20229 lt_compile=`echo "$ac_compile" | $SED \
20230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20232 -e 's:$: $lt_compiler_flag:'`
20233 (eval echo "\"\$as_me:20233: $lt_compile\"" >&5)
20234 (eval "$lt_compile" 2>out/conftest.err)
20236 cat out/conftest.err >&5
20237 echo "$as_me:20237: \$? = $ac_status" >&5
20238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20240 # The compiler can only warn and ignore the option if not recognized
20241 # So say no if there are warnings
20242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20245 lt_cv_prog_compiler_c_o_CXX=yes
20250 # SGI C++ compiler will create directory out/ii_files/ for
20251 # template instantiation
20252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20253 $rm out/* && rmdir out
20259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20263 hard_links="nottested"
20264 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20265 # do not overwrite the value of need_locks provided by the user
20266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20272 ln conftest.a conftest.b 2>&5 || hard_links=no
20273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20274 { echo "$as_me:$LINENO: result: $hard_links" >&5
20275 echo "${ECHO_T}$hard_links" >&6; }
20276 if test "$hard_links" = no; then
20277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20288 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20291 # If we're using GNU nm, then we don't want the "-C" option.
20292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20293 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20294 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'
20296 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'
20300 export_symbols_cmds_CXX="$ltdll_cmds"
20303 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'
20306 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20310 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20311 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20312 test "$ld_shlibs_CXX" = no && can_build_shared=no
20315 # Do we need to explicitly link libc?
20317 case "x$archive_cmds_need_lc_CXX" in
20319 # Assume -lc should be added
20320 archive_cmds_need_lc_CXX=yes
20322 if test "$enable_shared" = yes && test "$GCC" = yes; then
20323 case $archive_cmds_CXX in
20325 # FIXME: we may have to deal with multi-command sequences.
20328 # Test whether the compiler implicitly links with -lc since on some
20329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20330 # to ld, don't add -lc before -lgcc.
20331 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337 (eval $ac_compile) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } 2>conftest.err; then
20343 libobjs=conftest.$ac_objext
20345 wl=$lt_prog_compiler_wl_CXX
20346 pic_flag=$lt_prog_compiler_pic_CXX
20352 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20353 allow_undefined_flag_CXX=
20354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20355 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }
20360 archive_cmds_need_lc_CXX=no
20362 archive_cmds_need_lc_CXX=yes
20364 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20366 cat conftest.err 1>&5
20369 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20370 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20377 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20379 library_names_spec=
20380 libname_spec='lib$name'
20384 postuninstall_cmds=
20388 shlibpath_overrides_runpath=unknown
20390 dynamic_linker="$host_os ld.so"
20391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20392 if test "$GCC" = yes; then
20393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20395 # if the path contains ";" then we assume it to be the separator
20396 # otherwise default to the standard path separator (i.e. ":") - it is
20397 # assumed that no part of a normal pathname contains ";" but that should
20398 # okay in the real world where ";" in dirpaths is itself problematic.
20399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20406 need_lib_prefix=unknown
20407 hardcode_into_libs=no
20409 # when you set need_version to no, make sure it does not cause -set_version
20410 # flags to be left without arguments
20411 need_version=unknown
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20417 shlibpath_var=LIBPATH
20419 # AIX 3 has no versioning support, so we append a major version to the name.
20420 soname_spec='${libname}${release}${shared_ext}$major'
20427 hardcode_into_libs=yes
20428 if test "$host_cpu" = ia64; then
20429 # AIX 5 supports IA64
20430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20431 shlibpath_var=LD_LIBRARY_PATH
20433 # With GCC up to 2.95.x, collect2 would create an import file
20434 # for dependence libraries. The import file would start with
20435 # the line `#! .'. This would cause the generated library to
20436 # depend on `.', always an invalid library. This was fixed in
20437 # development snapshots of GCC prior to 3.0.
20439 aix4 | aix4.[01] | aix4.[01].*)
20440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20445 can_build_shared=no
20449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20450 # soname into executable. Probably we can add versioning support to
20451 # collect2, so additional links can be useful in future.
20452 if test "$aix_use_runtimelinking" = yes; then
20453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20454 # instead of lib<name>.a to let people know that these are not
20455 # typical AIX shared libraries.
20456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458 # We preserve .a as extension for shared libraries through AIX4.2
20459 # and later when we are not doing run time linking.
20460 library_names_spec='${libname}${release}.a $libname.a'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LIBPATH
20468 library_names_spec='$libname.ixlibrary $libname.a'
20469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20470 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'
20474 library_names_spec='${libname}${shared_ext}'
20475 dynamic_linker="$host_os ld.so"
20476 shlibpath_var=LIBRARY_PATH
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20488 # the default ld.so.conf also contains /usr/contrib/lib and
20489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20490 # libtool to hard-code these into programs
20493 cygwin* | mingw* | pw32*)
20494 version_type=windows
20499 case $GCC,$host_os in
20500 yes,cygwin* | yes,mingw* | yes,pw32*)
20501 library_names_spec='$libname.dll.a'
20502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20503 postinstall_cmds='base_file=`basename \${file}`~
20504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20505 dldir=$destdir/`dirname \$dlpath`~
20506 test -d \$dldir || mkdir -p \$dldir~
20507 $install_prog $dir/$dlname \$dldir/$dlname~
20508 chmod a+x \$dldir/$dlname'
20509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20510 dlpath=$dir/\$dldll~
20512 shlibpath_overrides_runpath=yes
20516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20521 # MinGW DLLs use traditional 'lib' prefix
20522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20525 # It is most probably a Windows format PATH printed by
20526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20527 # path with ; separators, and with drive letters. We can handle the
20528 # drive letters (cygwin fileutils understands them), so leave them,
20529 # especially as we might pass files found there to a mingw objdump,
20530 # which wouldn't understand a cygwinified path. Ahh.
20531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20537 # pw32 DLLs use 'pw' prefix rather than 'lib'
20538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20547 dynamic_linker='Win32 ld.exe'
20548 # FIXME: first we should search . and the directory the executable is in
20552 darwin* | rhapsody*)
20553 dynamic_linker="$host_os dyld"
20554 version_type=darwin
20557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20558 soname_spec='${libname}${release}${major}$shared_ext'
20559 shlibpath_overrides_runpath=yes
20560 shlibpath_var=DYLD_LIBRARY_PATH
20561 shrext_cmds='.dylib'
20562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20563 if test "$GCC" = yes; then
20564 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"`
20566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20576 soname_spec='${libname}${release}${shared_ext}$major'
20577 shlibpath_var=LD_LIBRARY_PATH
20588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20589 soname_spec='${libname}${release}${shared_ext}$major'
20590 shlibpath_var=LD_LIBRARY_PATH
20591 shlibpath_overrides_runpath=no
20592 hardcode_into_libs=yes
20593 dynamic_linker='GNU ld.so'
20596 freebsd* | dragonfly*)
20597 # DragonFly does not have aout. When/if they implement a new
20598 # versioning mechanism, adjust this.
20599 if test -x /usr/bin/objformat; then
20600 objformat=`/usr/bin/objformat`
20603 freebsd[123]*) objformat=aout ;;
20604 *) objformat=elf ;;
20607 version_type=freebsd-$objformat
20608 case $version_type in
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20619 shlibpath_var=LD_LIBRARY_PATH
20622 shlibpath_overrides_runpath=yes
20624 freebsd3.[01]* | freebsdelf3.[01]*)
20625 shlibpath_overrides_runpath=yes
20626 hardcode_into_libs=yes
20628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20630 shlibpath_overrides_runpath=no
20631 hardcode_into_libs=yes
20633 freebsd*) # from 4.6 on
20634 shlibpath_overrides_runpath=yes
20635 hardcode_into_libs=yes
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 hardcode_into_libs=yes
20650 hpux9* | hpux10* | hpux11*)
20651 # Give a soname corresponding to the major version so that dld.sl refuses to
20652 # link against other versions.
20659 hardcode_into_libs=yes
20660 dynamic_linker="$host_os dld.so"
20661 shlibpath_var=LD_LIBRARY_PATH
20662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20664 soname_spec='${libname}${release}${shared_ext}$major'
20665 if test "X$HPUX_IA64_MODE" = X32; then
20666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20674 hardcode_into_libs=yes
20675 dynamic_linker="$host_os dld.sl"
20676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20679 soname_spec='${libname}${release}${shared_ext}$major'
20680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20685 dynamic_linker="$host_os dld.sl"
20686 shlibpath_var=SHLIB_PATH
20687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689 soname_spec='${libname}${release}${shared_ext}$major'
20692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20693 postinstall_cmds='chmod 555 $lib'
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 shlibpath_overrides_runpath=no
20705 hardcode_into_libs=yes
20708 irix5* | irix6* | nonstopux*)
20710 nonstopux*) version_type=nonstopux ;;
20712 if test "$lt_cv_prog_gnu_ld" = yes; then
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20723 irix5* | nonstopux*)
20724 libsuff= shlibsuff=
20727 case $LD in # libtool.m4 will add one of these switches to LD
20728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20729 libsuff= shlibsuff= libmagic=32-bit;;
20730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20731 libsuff=32 shlibsuff=N32 libmagic=N32;;
20732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20734 *) libsuff= shlibsuff= libmagic=never-match;;
20738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20739 shlibpath_overrides_runpath=no
20740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20742 hardcode_into_libs=yes
20745 # No shared lib support for Linux oldld, aout, or coff.
20746 linux*oldld* | linux*aout* | linux*coff*)
20750 # This must be Linux ELF.
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 shlibpath_overrides_runpath=no
20760 # This implies no fast_install, which is unacceptable.
20761 # Some rework will be needed to allow for fast_install
20762 # before this can be enabled.
20763 hardcode_into_libs=yes
20765 # Append ld.so.conf contents to the search path
20766 if test -f /etc/ld.so.conf; then
20767 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' ' '`
20768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20771 # We used to test for /lib/ld.so.1 and disable shared libraries on
20772 # powerpc, because MkLinux only supported shared libraries with the
20773 # GNU dynamic linker. Since this was broken with cross compilers,
20774 # most powerpc-linux boxes support dynamic linking these days and
20775 # people can always --disable-shared, the test was removed, and we
20776 # assume the GNU/Linux dynamic linker is in use.
20777 dynamic_linker='GNU/Linux ld.so'
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 shlibpath_var=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath=no
20788 hardcode_into_libs=yes
20789 dynamic_linker='GNU ld.so'
20796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20799 dynamic_linker='NetBSD (a.out) ld.so'
20801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 dynamic_linker='NetBSD ld.elf_so'
20805 shlibpath_var=LD_LIBRARY_PATH
20806 shlibpath_overrides_runpath=yes
20807 hardcode_into_libs=yes
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 shlibpath_overrides_runpath=yes
20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822 soname_spec='${libname}${release}${shared_ext}$major'
20823 shlibpath_var=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath=yes
20829 sys_lib_dlsearch_path_spec="/usr/lib"
20831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20834 *) need_version=no ;;
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20841 openbsd2.[89] | openbsd2.[89].*)
20842 shlibpath_overrides_runpath=no
20845 shlibpath_overrides_runpath=yes
20849 shlibpath_overrides_runpath=yes
20854 libname_spec='$name'
20857 library_names_spec='$libname${shared_ext} $libname.a'
20858 dynamic_linker='OS/2 ld.exe'
20859 shlibpath_var=LIBPATH
20862 osf3* | osf4* | osf5*)
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 shlibpath_var=LD_LIBRARY_PATH
20869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 soname_spec='${libname}${release}${shared_ext}$major'
20879 shlibpath_var=LD_LIBRARY_PATH
20880 shlibpath_overrides_runpath=yes
20881 hardcode_into_libs=yes
20882 # ldd complains unless libraries are executable
20883 postinstall_cmds='chmod +x $lib'
20888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 shlibpath_overrides_runpath=yes
20892 if test "$with_gnu_ld" = yes; then
20900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20901 soname_spec='${libname}${release}${shared_ext}$major'
20902 shlibpath_var=LD_LIBRARY_PATH
20903 case $host_vendor in
20905 shlibpath_overrides_runpath=no
20907 export_dynamic_flag_spec='${wl}-Blargedynsym'
20908 runpath_var=LD_RUN_PATH
20916 shlibpath_overrides_runpath=no
20917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20923 if test -d /usr/nec ;then
20925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20926 soname_spec='$libname${shared_ext}.$major'
20927 shlibpath_var=LD_LIBRARY_PATH
20931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20932 version_type=freebsd-elf
20935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20936 soname_spec='${libname}${release}${shared_ext}$major'
20937 shlibpath_var=LD_LIBRARY_PATH
20938 hardcode_into_libs=yes
20939 if test "$with_gnu_ld" = yes; then
20940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20941 shlibpath_overrides_runpath=no
20943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20944 shlibpath_overrides_runpath=yes
20947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20951 sys_lib_dlsearch_path_spec='/usr/lib'
20956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20957 soname_spec='${libname}${release}${shared_ext}$major'
20958 shlibpath_var=LD_LIBRARY_PATH
20965 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20966 echo "${ECHO_T}$dynamic_linker" >&6; }
20967 test "$dynamic_linker" = no && can_build_shared=no
20969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20970 if test "$GCC" = yes; then
20971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20974 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20976 hardcode_action_CXX=
20977 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20978 test -n "$runpath_var_CXX" || \
20979 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20981 # We can hardcode non-existant directories.
20982 if test "$hardcode_direct_CXX" != no &&
20983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20984 # have to relink, otherwise we might link with an installed library
20985 # when we should be linking with a yet-to-be-installed one
20986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20987 test "$hardcode_minus_L_CXX" != no; then
20988 # Linking always hardcodes the temporary library directory.
20989 hardcode_action_CXX=relink
20991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20992 hardcode_action_CXX=immediate
20995 # We cannot hardcode anything, or else we can only hardcode existing
20997 hardcode_action_CXX=unsupported
20999 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21000 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21002 if test "$hardcode_action_CXX" = relink; then
21003 # Fast installation is not supported
21004 enable_fast_install=no
21005 elif test "$shlibpath_overrides_runpath" = yes ||
21006 test "$enable_shared" = no; then
21007 # Fast installation is not necessary
21008 enable_fast_install=needless
21012 # The else clause should only fire when bootstrapping the
21013 # libtool distribution, otherwise you forgot to ship ltmain.sh
21014 # with your package, and you will get complaints that there are
21015 # no rules to generate ltmain.sh.
21016 if test -f "$ltmain"; then
21017 # See if we are running on zsh, and set the options which allow our commands through
21018 # without removal of \ escapes.
21019 if test -n "${ZSH_VERSION+set}" ; then
21020 setopt NO_GLOB_SUBST
21022 # Now quote all the things that may contain metacharacters while being
21023 # careful not to overquote the AC_SUBSTed values. We take copies of the
21024 # variables and quote the copies for generation of the libtool script.
21025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21029 deplibs_check_method reload_flag reload_cmds need_locks \
21030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21031 lt_cv_sys_global_symbol_to_c_name_address \
21032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21033 old_postinstall_cmds old_postuninstall_cmds \
21037 lt_prog_compiler_wl_CXX \
21038 lt_prog_compiler_pic_CXX \
21039 lt_prog_compiler_static_CXX \
21040 lt_prog_compiler_no_builtin_flag_CXX \
21041 export_dynamic_flag_spec_CXX \
21042 thread_safe_flag_spec_CXX \
21043 whole_archive_flag_spec_CXX \
21044 enable_shared_with_static_runtimes_CXX \
21045 old_archive_cmds_CXX \
21046 old_archive_from_new_cmds_CXX \
21047 predep_objects_CXX \
21048 postdep_objects_CXX \
21051 compiler_lib_search_path_CXX \
21053 archive_expsym_cmds_CXX \
21054 postinstall_cmds_CXX \
21055 postuninstall_cmds_CXX \
21056 old_archive_from_expsyms_cmds_CXX \
21057 allow_undefined_flag_CXX \
21058 no_undefined_flag_CXX \
21059 export_symbols_cmds_CXX \
21060 hardcode_libdir_flag_spec_CXX \
21061 hardcode_libdir_flag_spec_ld_CXX \
21062 hardcode_libdir_separator_CXX \
21063 hardcode_automatic_CXX \
21065 module_expsym_cmds_CXX \
21066 lt_cv_prog_compiler_c_o_CXX \
21067 exclude_expsyms_CXX \
21068 include_expsyms_CXX; do
21071 old_archive_cmds_CXX | \
21072 old_archive_from_new_cmds_CXX | \
21073 archive_cmds_CXX | \
21074 archive_expsym_cmds_CXX | \
21075 module_cmds_CXX | \
21076 module_expsym_cmds_CXX | \
21077 old_archive_from_expsyms_cmds_CXX | \
21078 export_symbols_cmds_CXX | \
21079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21080 postinstall_cmds | postuninstall_cmds | \
21081 old_postinstall_cmds | old_postuninstall_cmds | \
21082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21083 # Double-quote double-evaled strings.
21084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21093 *'\$0 --fallback-echo"')
21094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21100 cat <<__EOF__ >> "$cfgfile"
21101 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21103 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21105 # Shell to use when invoking shell scripts.
21108 # Whether or not to build shared libraries.
21109 build_libtool_libs=$enable_shared
21111 # Whether or not to build static libraries.
21112 build_old_libs=$enable_static
21114 # Whether or not to add -lc for building shared libraries.
21115 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21117 # Whether or not to disallow shared libs when runtime libs are static
21118 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21120 # Whether or not to optimize for fast installation.
21121 fast_install=$enable_fast_install
21124 host_alias=$host_alias
21128 # The build system.
21129 build_alias=$build_alias
21133 # An echo program that does not interpret backslashes.
21138 AR_FLAGS=$lt_AR_FLAGS
21143 # LTCC compiler flags.
21144 LTCFLAGS=$lt_LTCFLAGS
21146 # A language-specific compiler.
21147 CC=$lt_compiler_CXX
21149 # Is the compiler the GNU C compiler?
21155 # The linker used to build libraries.
21158 # Whether we need hard or soft links.
21161 # A BSD-compatible nm program.
21164 # A symbol stripping program
21167 # Used to examine libraries when file_magic_cmd begins "file"
21168 MAGIC_CMD=$MAGIC_CMD
21170 # Used on cygwin: DLL creation program.
21173 # Used on cygwin: object dumper.
21176 # Used on cygwin: assembler.
21179 # The name of the directory that contains temporary libtool files.
21182 # How to create reloadable object files.
21183 reload_flag=$lt_reload_flag
21184 reload_cmds=$lt_reload_cmds
21186 # How to pass a linker flag through the compiler.
21187 wl=$lt_lt_prog_compiler_wl_CXX
21189 # Object file suffix (normally "o").
21190 objext="$ac_objext"
21192 # Old archive suffix (normally "a").
21195 # Shared library suffix (normally ".so").
21196 shrext_cmds='$shrext_cmds'
21198 # Executable file suffix (normally "").
21201 # Additional compiler flags for building library objects.
21202 pic_flag=$lt_lt_prog_compiler_pic_CXX
21205 # What is the maximum length of a command?
21206 max_cmd_len=$lt_cv_sys_max_cmd_len
21208 # Does compiler simultaneously support -c and -o options?
21209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21211 # Must we lock files when doing compilation?
21212 need_locks=$lt_need_locks
21214 # Do we need the lib prefix for modules?
21215 need_lib_prefix=$need_lib_prefix
21217 # Do we need a version for libraries?
21218 need_version=$need_version
21220 # Whether dlopen is supported.
21221 dlopen_support=$enable_dlopen
21223 # Whether dlopen of programs is supported.
21224 dlopen_self=$enable_dlopen_self
21226 # Whether dlopen of statically linked programs is supported.
21227 dlopen_self_static=$enable_dlopen_self_static
21229 # Compiler flag to prevent dynamic linking.
21230 link_static_flag=$lt_lt_prog_compiler_static_CXX
21232 # Compiler flag to turn off builtin functions.
21233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21235 # Compiler flag to allow reflexive dlopens.
21236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21238 # Compiler flag to generate shared objects directly from archives.
21239 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21241 # Compiler flag to generate thread-safe objects.
21242 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21244 # Library versioning type.
21245 version_type=$version_type
21247 # Format of library name prefix.
21248 libname_spec=$lt_libname_spec
21250 # List of archive names. First name is the real one, the rest are links.
21251 # The last name is the one that the linker finds with -lNAME.
21252 library_names_spec=$lt_library_names_spec
21254 # The coded name of the library, if different from the real name.
21255 soname_spec=$lt_soname_spec
21257 # Commands used to build and install an old-style archive.
21259 old_archive_cmds=$lt_old_archive_cmds_CXX
21260 old_postinstall_cmds=$lt_old_postinstall_cmds
21261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21263 # Create an old-style archive from a shared archive.
21264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21266 # Create a temporary old-style archive to link instead of a shared archive.
21267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21269 # Commands used to build and install a shared archive.
21270 archive_cmds=$lt_archive_cmds_CXX
21271 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21272 postinstall_cmds=$lt_postinstall_cmds
21273 postuninstall_cmds=$lt_postuninstall_cmds
21275 # Commands used to build a loadable module (assumed same as above if empty)
21276 module_cmds=$lt_module_cmds_CXX
21277 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21279 # Commands to strip libraries.
21280 old_striplib=$lt_old_striplib
21281 striplib=$lt_striplib
21283 # Dependencies to place before the objects being linked to create a
21285 predep_objects=$lt_predep_objects_CXX
21287 # Dependencies to place after the objects being linked to create a
21289 postdep_objects=$lt_postdep_objects_CXX
21291 # Dependencies to place before the objects being linked to create a
21293 predeps=$lt_predeps_CXX
21295 # Dependencies to place after the objects being linked to create a
21297 postdeps=$lt_postdeps_CXX
21299 # The library search path used internally by the compiler when linking
21300 # a shared library.
21301 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21303 # Method to check whether dependent libraries are shared objects.
21304 deplibs_check_method=$lt_deplibs_check_method
21306 # Command to use when deplibs_check_method == file_magic.
21307 file_magic_cmd=$lt_file_magic_cmd
21309 # Flag that allows shared libraries with undefined symbols to be built.
21310 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21312 # Flag that forces no undefined symbols.
21313 no_undefined_flag=$lt_no_undefined_flag_CXX
21315 # Commands used to finish a libtool library installation in a directory.
21316 finish_cmds=$lt_finish_cmds
21318 # Same as above, but a single script fragment to be evaled but not shown.
21319 finish_eval=$lt_finish_eval
21321 # Take the output of nm and produce a listing of raw symbols and C names.
21322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21324 # Transform the output of nm in a proper C declaration
21325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21327 # Transform the output of nm in a C name address pair
21328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21330 # This is the shared library runtime path variable.
21331 runpath_var=$runpath_var
21333 # This is the shared library path variable.
21334 shlibpath_var=$shlibpath_var
21336 # Is shlibpath searched before the hard-coded library search path?
21337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21339 # How to hardcode a shared library path into an executable.
21340 hardcode_action=$hardcode_action_CXX
21342 # Whether we should hardcode library paths into libraries.
21343 hardcode_into_libs=$hardcode_into_libs
21345 # Flag to hardcode \$libdir into a binary during linking.
21346 # This must work even if \$libdir does not exist.
21347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21349 # If ld is used when linking, flag to hardcode \$libdir into
21350 # a binary during linking. This must work even if \$libdir does
21352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21354 # Whether we need a single -rpath flag with a separated argument.
21355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21358 # resulting binary.
21359 hardcode_direct=$hardcode_direct_CXX
21361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21362 # resulting binary.
21363 hardcode_minus_L=$hardcode_minus_L_CXX
21365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21366 # the resulting binary.
21367 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21369 # Set to yes if building a shared library automatically hardcodes DIR into the library
21370 # and all subsequent libraries and executables linked against it.
21371 hardcode_automatic=$hardcode_automatic_CXX
21373 # Variables whose values should be saved in libtool wrapper scripts and
21374 # restored at relink time.
21375 variables_saved_for_relink="$variables_saved_for_relink"
21377 # Whether libtool must link a program against all its dependency libraries.
21378 link_all_deplibs=$link_all_deplibs_CXX
21380 # Compile-time system search path for libraries
21381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21383 # Run-time system search path for libraries
21384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21386 # Fix the shell variable \$srcfile for the compiler.
21387 fix_srcfile_path="$fix_srcfile_path_CXX"
21389 # Set to yes if exported symbols are required.
21390 always_export_symbols=$always_export_symbols_CXX
21392 # The commands to list exported symbols.
21393 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21395 # The commands to extract the exported symbol list from a shared archive.
21396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21398 # Symbols that should not be listed in the preloaded symbols.
21399 exclude_expsyms=$lt_exclude_expsyms_CXX
21401 # Symbols that must always be exported.
21402 include_expsyms=$lt_include_expsyms_CXX
21404 # ### END LIBTOOL TAG CONFIG: $tagname
21410 # If there is no Makefile yet, we rely on a make rule to execute
21411 # `config.status --recheck' to rerun these tests and create the
21412 # libtool script then.
21413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21414 if test -f "$ltmain_in"; then
21415 test -f Makefile && make "$ltmain"
21421 ac_cpp='$CPP $CPPFLAGS'
21422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21430 with_gnu_ldcxx=$with_gnu_ld
21431 with_gnu_ld=$lt_save_with_gnu_ld
21432 lt_cv_path_LDCXX=$lt_cv_path_LD
21433 lt_cv_path_LD=$lt_save_path_LD
21434 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21435 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21443 if test -n "$F77" && test "X$F77" != "Xno"; then
21446 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21447 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21451 archive_cmds_need_lc_F77=no
21452 allow_undefined_flag_F77=
21453 always_export_symbols_F77=no
21454 archive_expsym_cmds_F77=
21455 export_dynamic_flag_spec_F77=
21456 hardcode_direct_F77=no
21457 hardcode_libdir_flag_spec_F77=
21458 hardcode_libdir_flag_spec_ld_F77=
21459 hardcode_libdir_separator_F77=
21460 hardcode_minus_L_F77=no
21461 hardcode_automatic_F77=no
21463 module_expsym_cmds_F77=
21464 link_all_deplibs_F77=unknown
21465 old_archive_cmds_F77=$old_archive_cmds
21466 no_undefined_flag_F77=
21467 whole_archive_flag_spec_F77=
21468 enable_shared_with_static_runtimes_F77=no
21470 # Source file extension for f77 test sources.
21473 # Object file extension for compiled f77 test sources.
21477 # Code to be used in simple compile tests
21478 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21480 # Code to be used in simple link tests
21481 lt_simple_link_test_code=" program t\n end\n"
21483 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21485 # If no C compiler was specified, use CC.
21488 # If no C compiler flags were specified, use CFLAGS.
21489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21491 # Allow CC to be a program name with arguments.
21495 # save warnings/boilerplate of simple test code
21496 ac_outfile=conftest.$ac_objext
21497 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21499 _lt_compiler_boilerplate=`cat conftest.err`
21502 ac_outfile=conftest.$ac_objext
21503 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21505 _lt_linker_boilerplate=`cat conftest.err`
21509 # Allow CC to be a program name with arguments.
21514 for cc_temp in $compiler""; do
21516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21522 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21525 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21527 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21528 echo "${ECHO_T}$can_build_shared" >&6; }
21530 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21532 test "$can_build_shared" = "no" && enable_shared=no
21534 # On AIX, shared libraries and static libraries use the same namespace, and
21535 # are all built from PIC.
21538 test "$enable_shared" = yes && enable_static=no
21539 if test -n "$RANLIB"; then
21540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21541 postinstall_cmds='$RANLIB $lib'
21545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21546 test "$enable_shared" = yes && enable_static=no
21550 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21551 echo "${ECHO_T}$enable_shared" >&6; }
21553 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21555 # Make sure either enable_shared or enable_static is yes.
21556 test "$enable_shared" = yes || enable_static=yes
21557 { echo "$as_me:$LINENO: result: $enable_static" >&5
21558 echo "${ECHO_T}$enable_static" >&6; }
21563 lt_prog_compiler_wl_F77=
21564 lt_prog_compiler_pic_F77=
21565 lt_prog_compiler_static_F77=
21567 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21568 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21570 if test "$GCC" = yes; then
21571 lt_prog_compiler_wl_F77='-Wl,'
21572 lt_prog_compiler_static_F77='-static'
21576 # All AIX code is PIC.
21577 if test "$host_cpu" = ia64; then
21578 # AIX 5 now supports IA64 processor
21579 lt_prog_compiler_static_F77='-Bstatic'
21584 # FIXME: we need at least 68020 code to build shared libraries, but
21585 # adding the `-m68020' flag to GCC prevents building anything better,
21587 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21590 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21591 # PIC is the default for these OSes.
21594 mingw* | pw32* | os2*)
21595 # This hack is so that the source file can tell whether it is being
21596 # built for inclusion in a dll (and should export symbols for example).
21597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21600 darwin* | rhapsody*)
21601 # PIC is the default on this platform
21602 # Common symbols not allowed in MH_DYLIB files
21603 lt_prog_compiler_pic_F77='-fno-common'
21607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21608 # Instead, we relocate shared libraries at runtime.
21612 # Just because we use GCC doesn't mean we suddenly get shared libraries
21613 # on systems that don't support them.
21614 lt_prog_compiler_can_build_shared_F77=no
21619 if test -d /usr/nec; then
21620 lt_prog_compiler_pic_F77=-Kconform_pic
21625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21626 # not for PA HP-UX.
21632 lt_prog_compiler_pic_F77='-fPIC'
21638 lt_prog_compiler_pic_F77='-fPIC'
21642 # PORTME Check for flag to pass linker flags through the system compiler.
21645 lt_prog_compiler_wl_F77='-Wl,'
21646 if test "$host_cpu" = ia64; then
21647 # AIX 5 now supports IA64 processor
21648 lt_prog_compiler_static_F77='-Bstatic'
21650 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21654 # PIC is the default on this platform
21655 # Common symbols not allowed in MH_DYLIB files
21656 case $cc_basename in
21658 lt_prog_compiler_pic_F77='-qnocommon'
21659 lt_prog_compiler_wl_F77='-Wl,'
21664 mingw* | pw32* | os2*)
21665 # This hack is so that the source file can tell whether it is being
21666 # built for inclusion in a dll (and should export symbols for example).
21667 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21670 hpux9* | hpux10* | hpux11*)
21671 lt_prog_compiler_wl_F77='-Wl,'
21672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21673 # not for PA HP-UX.
21679 lt_prog_compiler_pic_F77='+Z'
21682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21683 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21686 irix5* | irix6* | nonstopux*)
21687 lt_prog_compiler_wl_F77='-Wl,'
21688 # PIC (with -KPIC) is the default.
21689 lt_prog_compiler_static_F77='-non_shared'
21693 lt_prog_compiler_pic_F77='-KPIC'
21694 lt_prog_compiler_static_F77='-Bstatic'
21698 case $cc_basename in
21700 lt_prog_compiler_wl_F77='-Wl,'
21701 lt_prog_compiler_pic_F77='-KPIC'
21702 lt_prog_compiler_static_F77='-static'
21704 pgcc* | pgf77* | pgf90* | pgf95*)
21705 # Portland Group compilers (*not* the Pentium gcc compiler,
21706 # which looks to be a dead project)
21707 lt_prog_compiler_wl_F77='-Wl,'
21708 lt_prog_compiler_pic_F77='-fpic'
21709 lt_prog_compiler_static_F77='-Bstatic'
21712 lt_prog_compiler_wl_F77='-Wl,'
21713 # All Alpha code is PIC.
21714 lt_prog_compiler_static_F77='-non_shared'
21719 osf3* | osf4* | osf5*)
21720 lt_prog_compiler_wl_F77='-Wl,'
21721 # All OSF/1 code is PIC.
21722 lt_prog_compiler_static_F77='-non_shared'
21726 lt_prog_compiler_pic_F77='-KPIC'
21727 lt_prog_compiler_static_F77='-Bstatic'
21728 case $cc_basename in
21729 f77* | f90* | f95*)
21730 lt_prog_compiler_wl_F77='-Qoption ld ';;
21732 lt_prog_compiler_wl_F77='-Wl,';;
21737 lt_prog_compiler_wl_F77='-Qoption ld '
21738 lt_prog_compiler_pic_F77='-PIC'
21739 lt_prog_compiler_static_F77='-Bstatic'
21742 sysv4 | sysv4.2uw2* | sysv4.3*)
21743 lt_prog_compiler_wl_F77='-Wl,'
21744 lt_prog_compiler_pic_F77='-KPIC'
21745 lt_prog_compiler_static_F77='-Bstatic'
21749 if test -d /usr/nec ;then
21750 lt_prog_compiler_pic_F77='-Kconform_pic'
21751 lt_prog_compiler_static_F77='-Bstatic'
21755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21756 lt_prog_compiler_wl_F77='-Wl,'
21757 lt_prog_compiler_pic_F77='-KPIC'
21758 lt_prog_compiler_static_F77='-Bstatic'
21762 lt_prog_compiler_wl_F77='-Wl,'
21763 lt_prog_compiler_can_build_shared_F77=no
21767 lt_prog_compiler_pic_F77='-pic'
21768 lt_prog_compiler_static_F77='-Bstatic'
21772 lt_prog_compiler_can_build_shared_F77=no
21777 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21778 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21781 # Check to make sure the PIC flag actually works.
21783 if test -n "$lt_prog_compiler_pic_F77"; then
21785 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21786 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21787 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 lt_prog_compiler_pic_works_F77=no
21791 ac_outfile=conftest.$ac_objext
21792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21793 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21794 # Insert the option either (1) after the last *FLAGS variable, or
21795 # (2) before a word containing "conftest.", or (3) at the end.
21796 # Note that $ac_compile itself does not contain backslashes and begins
21797 # with a dollar sign (not a hyphen), so the echo should work correctly.
21798 # The option is referenced via a variable to avoid confusing sed.
21799 lt_compile=`echo "$ac_compile" | $SED \
21800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21802 -e 's:$: $lt_compiler_flag:'`
21803 (eval echo "\"\$as_me:21803: $lt_compile\"" >&5)
21804 (eval "$lt_compile" 2>conftest.err)
21806 cat conftest.err >&5
21807 echo "$as_me:21807: \$? = $ac_status" >&5
21808 if (exit $ac_status) && test -s "$ac_outfile"; then
21809 # The compiler can only warn and ignore the option if not recognized
21810 # So say no if there are warnings other than the usual output.
21811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21814 lt_prog_compiler_pic_works_F77=yes
21820 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21821 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21823 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21824 case $lt_prog_compiler_pic_F77 in
21826 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21829 lt_prog_compiler_pic_F77=
21830 lt_prog_compiler_can_build_shared_F77=no
21835 # For platforms which do not support PIC, -DPIC is meaningless:
21837 lt_prog_compiler_pic_F77=
21840 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21845 # Check to make sure the static flag actually works.
21847 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21848 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21849 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21850 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 lt_prog_compiler_static_works_F77=no
21854 save_LDFLAGS="$LDFLAGS"
21855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21856 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21858 # The linker can only warn and ignore the option if not recognized
21859 # So say no if there are warnings
21860 if test -s conftest.err; then
21861 # Append any errors to the config.log.
21862 cat conftest.err 1>&5
21863 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21865 if diff conftest.exp conftest.er2 >/dev/null; then
21866 lt_prog_compiler_static_works_F77=yes
21869 lt_prog_compiler_static_works_F77=yes
21873 LDFLAGS="$save_LDFLAGS"
21876 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21877 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21879 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21882 lt_prog_compiler_static_F77=
21886 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21887 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21888 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 lt_cv_prog_compiler_c_o_F77=no
21892 $rm -r conftest 2>/dev/null
21896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21898 lt_compiler_flag="-o out/conftest2.$ac_objext"
21899 # Insert the option either (1) after the last *FLAGS variable, or
21900 # (2) before a word containing "conftest.", or (3) at the end.
21901 # Note that $ac_compile itself does not contain backslashes and begins
21902 # with a dollar sign (not a hyphen), so the echo should work correctly.
21903 lt_compile=`echo "$ac_compile" | $SED \
21904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21906 -e 's:$: $lt_compiler_flag:'`
21907 (eval echo "\"\$as_me:21907: $lt_compile\"" >&5)
21908 (eval "$lt_compile" 2>out/conftest.err)
21910 cat out/conftest.err >&5
21911 echo "$as_me:21911: \$? = $ac_status" >&5
21912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21914 # The compiler can only warn and ignore the option if not recognized
21915 # So say no if there are warnings
21916 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21919 lt_cv_prog_compiler_c_o_F77=yes
21924 # SGI C++ compiler will create directory out/ii_files/ for
21925 # template instantiation
21926 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21927 $rm out/* && rmdir out
21933 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21934 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21937 hard_links="nottested"
21938 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21939 # do not overwrite the value of need_locks provided by the user
21940 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21941 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21946 ln conftest.a conftest.b 2>&5 || hard_links=no
21947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21948 { echo "$as_me:$LINENO: result: $hard_links" >&5
21949 echo "${ECHO_T}$hard_links" >&6; }
21950 if test "$hard_links" = no; then
21951 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21952 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21959 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21960 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21963 allow_undefined_flag_F77=
21964 enable_shared_with_static_runtimes_F77=no
21966 archive_expsym_cmds_F77=
21967 old_archive_From_new_cmds_F77=
21968 old_archive_from_expsyms_cmds_F77=
21969 export_dynamic_flag_spec_F77=
21970 whole_archive_flag_spec_F77=
21971 thread_safe_flag_spec_F77=
21972 hardcode_libdir_flag_spec_F77=
21973 hardcode_libdir_flag_spec_ld_F77=
21974 hardcode_libdir_separator_F77=
21975 hardcode_direct_F77=no
21976 hardcode_minus_L_F77=no
21977 hardcode_shlibpath_var_F77=unsupported
21978 link_all_deplibs_F77=unknown
21979 hardcode_automatic_F77=no
21981 module_expsym_cmds_F77=
21982 always_export_symbols_F77=no
21983 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21984 # include_expsyms should be a list of space-separated symbols to be *always*
21985 # included in the symbol list
21986 include_expsyms_F77=
21987 # exclude_expsyms can be an extended regexp of symbols to exclude
21988 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21989 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21990 # as well as any symbol that contains `d'.
21991 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21992 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21993 # platforms (ab)use it in PIC code, but their linkers get confused if
21994 # the symbol is explicitly referenced. Since portable code cannot
21995 # rely on this symbol name, it's probably fine to never include it in
21996 # preloaded symbol tables.
21997 extract_expsyms_cmds=
21998 # Just being paranoid about ensuring that cc_basename is set.
21999 for cc_temp in $compiler""; do
22001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22007 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22010 cygwin* | mingw* | pw32*)
22011 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22012 # When not using gcc, we currently assume that we are using
22013 # Microsoft Visual C++.
22014 if test "$GCC" != yes; then
22019 # we just hope/assume this is gcc and not c89 (= MSVC++)
22028 if test "$with_gnu_ld" = yes; then
22029 # If archive_cmds runs LD, not CC, wlarc should be empty
22032 # Set some defaults for GNU ld with shared library support. These
22033 # are reset later if shared libraries are not supported. Putting them
22034 # here allows them to be overridden if necessary.
22035 runpath_var=LD_RUN_PATH
22036 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22037 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22038 # ancient GNU ld didn't support --whole-archive et. al.
22039 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22040 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22042 whole_archive_flag_spec_F77=
22044 supports_anon_versioning=no
22045 case `$LD -v 2>/dev/null` in
22046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22049 *\ 2.11.*) ;; # other 2.11 versions
22050 *) supports_anon_versioning=yes ;;
22053 # See if GNU ld supports shared libraries.
22055 aix3* | aix4* | aix5*)
22056 # On AIX/PPC, the GNU linker is very broken
22057 if test "$host_cpu" != ia64; then
22061 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22062 *** to be unable to reliably create shared libraries on AIX.
22063 *** Therefore, libtool is disabling shared libraries support. If you
22064 *** really care for shared libraries, you may want to modify your PATH
22065 *** so that a non-GNU linker is found, and then restart.
22072 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)'
22073 hardcode_libdir_flag_spec_F77='-L$libdir'
22074 hardcode_minus_L_F77=yes
22076 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22077 # that the semantics of dynamic libraries on AmigaOS, at least up
22078 # to version 4, is to share data among multiple programs linked
22079 # with the same dynamic library. Since this doesn't match the
22080 # behavior of shared libraries on other platforms, we can't use
22086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22087 allow_undefined_flag_F77=unsupported
22088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22089 # support --undefined. This deserves some investigation. FIXME
22090 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22096 cygwin* | mingw* | pw32*)
22097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22098 # as there is no search path for DLLs.
22099 hardcode_libdir_flag_spec_F77='-L$libdir'
22100 allow_undefined_flag_F77=unsupported
22101 always_export_symbols_F77=no
22102 enable_shared_with_static_runtimes_F77=yes
22103 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22107 # If the export-symbols file already is a .def file (1st line
22108 # is EXPORTS), use it as is; otherwise, prepend...
22109 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22110 cp $export_symbols $output_objdir/$soname.def;
22112 echo EXPORTS > $output_objdir/$soname.def;
22113 cat $export_symbols >> $output_objdir/$soname.def;
22115 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22122 hardcode_direct_F77=no
22123 hardcode_shlibpath_var_F77=no
22124 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22125 export_dynamic_flag_spec_F77='${wl}-E'
22126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22127 # Instead, shared libraries are loaded at an image base (0x10000000 by
22128 # default) and relocated if they conflict, which is a slow very memory
22129 # consuming and fragmenting process. To avoid this, we pick a random,
22130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22132 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'
22133 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'
22137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22139 case $cc_basename,$host_cpu in
22140 pgcc*) # Portland Group C compiler
22141 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'
22142 tmp_addflag=' $pic_flag'
22144 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22145 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22146 tmp_addflag=' $pic_flag -Mnomain' ;;
22147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22148 tmp_addflag=' -i_dynamic' ;;
22149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22150 tmp_addflag=' -i_dynamic -nofor_main' ;;
22151 ifc* | ifort*) # Intel Fortran compiler
22152 tmp_addflag=' -nofor_main' ;;
22154 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22156 if test $supports_anon_versioning = yes; then
22157 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22159 $echo "local: *; };" >> $output_objdir/$libname.ver~
22160 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22169 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22172 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22173 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22178 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22183 *** create shared libraries on Solaris systems. Therefore, libtool
22184 *** is disabling shared libraries support. We urge you to upgrade GNU
22185 *** binutils to release 2.9.1 or newer. Another option is to modify
22186 *** your PATH or compiler configuration so that the native linker is
22187 *** used, and then restart.
22190 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22191 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22199 case `$LD -v 2>&1` in
22200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22205 *** reliably create shared libraries on SCO systems. Therefore, libtool
22206 *** is disabling shared libraries support. We urge you to upgrade GNU
22207 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22208 *** your PATH or compiler configuration so that the native linker is
22209 *** used, and then restart.
22214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22215 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22216 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22217 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22226 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22228 hardcode_direct_F77=yes
22229 hardcode_shlibpath_var_F77=no
22233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22234 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22235 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22242 if test "$ld_shlibs_F77" = no; then
22244 hardcode_libdir_flag_spec_F77=
22245 export_dynamic_flag_spec_F77=
22246 whole_archive_flag_spec_F77=
22249 # PORTME fill in a description of your system's linker (not GNU ld)
22252 allow_undefined_flag_F77=unsupported
22253 always_export_symbols_F77=yes
22254 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'
22255 # Note: this linker hardcodes the directories in LIBPATH if there
22256 # are no directories specified by -L.
22257 hardcode_minus_L_F77=yes
22258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22259 # Neither direct hardcoding nor static linking is supported with a
22261 hardcode_direct_F77=unsupported
22266 if test "$host_cpu" = ia64; then
22267 # On IA64, the linker does run time linking by default, so we don't
22268 # have to do anything special.
22269 aix_use_runtimelinking=no
22270 exp_sym_flag='-Bexport'
22273 # If we're using GNU nm, then we don't want the "-C" option.
22274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22276 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'
22278 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'
22280 aix_use_runtimelinking=no
22282 # Test if we are trying to use run time linking or normal
22283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22284 # need to do runtime linking.
22285 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22286 for ld_flag in $LDFLAGS; do
22287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22288 aix_use_runtimelinking=yes
22295 exp_sym_flag='-bexport'
22296 no_entry_flag='-bnoentry'
22299 # When large executables or shared objects are built, AIX ld can
22300 # have problems creating the table of contents. If linking a library
22301 # or program results in "error TOC overflow" add -mminimal-toc to
22302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22305 archive_cmds_F77=''
22306 hardcode_direct_F77=yes
22307 hardcode_libdir_separator_F77=':'
22308 link_all_deplibs_F77=yes
22310 if test "$GCC" = yes; then
22311 case $host_os in aix4.[012]|aix4.[012].*)
22312 # We only want to do this on AIX 4.2 and lower, the check
22313 # below for broken collect2 doesn't work under 4.3+
22314 collect2name=`${CC} -print-prog-name=collect2`
22315 if test -f "$collect2name" && \
22316 strings "$collect2name" | grep resolve_lib_name >/dev/null
22318 # We have reworked collect2
22319 hardcode_direct_F77=yes
22321 # We have old collect2
22322 hardcode_direct_F77=unsupported
22323 # It fails to find uninstalled libraries when the uninstalled
22324 # path is not listed in the libpath. Setting hardcode_minus_L
22325 # to unsupported forces relinking
22326 hardcode_minus_L_F77=yes
22327 hardcode_libdir_flag_spec_F77='-L$libdir'
22328 hardcode_libdir_separator_F77=
22332 shared_flag='-shared'
22333 if test "$aix_use_runtimelinking" = yes; then
22334 shared_flag="$shared_flag "'${wl}-G'
22338 if test "$host_cpu" = ia64; then
22339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22340 # chokes on -Wl,-G. The following line is correct:
22343 if test "$aix_use_runtimelinking" = yes; then
22344 shared_flag='${wl}-G'
22346 shared_flag='${wl}-bM:SRE'
22351 # It seems that -bexpall does not export symbols beginning with
22352 # underscore (_), so it is better to generate a list of symbols to export.
22353 always_export_symbols_F77=yes
22354 if test "$aix_use_runtimelinking" = yes; then
22355 # Warning - without using the other runtime loading flags (-brtl),
22356 # -berok will link without error, but may produce a broken library.
22357 allow_undefined_flag_F77='-berok'
22358 # Determine the default libpath from the value encoded in an empty executable.
22359 cat >conftest.$ac_ext <<_ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
22373 grep -v '^ *+' conftest.er1 >conftest.err
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
22378 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22379 { (case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest$ac_exeext'
22389 { (case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_try") 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22401 # Check for a 64-bit object if we didn't find anything.
22402 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; }
22405 echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22411 rm -f core conftest.err conftest.$ac_objext \
22412 conftest$ac_exeext conftest.$ac_ext
22413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22415 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22416 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"
22418 if test "$host_cpu" = ia64; then
22419 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22420 allow_undefined_flag_F77="-z nodefs"
22421 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"
22423 # Determine the default libpath from the value encoded in an empty executable.
22424 cat >conftest.$ac_ext <<_ACEOF
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (ac_try="$ac_link"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_link") 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; } &&
22453 { ac_try='test -s conftest$ac_exeext'
22454 { (case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_try") 2>&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22466 # Check for a 64-bit object if we didn't find anything.
22467 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; }
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22476 rm -f core conftest.err conftest.$ac_objext \
22477 conftest$ac_exeext conftest.$ac_ext
22478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22480 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22481 # Warning - without using the other run time loading flags,
22482 # -berok will link without error, but may produce a broken library.
22483 no_undefined_flag_F77=' ${wl}-bernotok'
22484 allow_undefined_flag_F77=' ${wl}-berok'
22485 # Exported symbols can be pulled into shared objects from archives
22486 whole_archive_flag_spec_F77='$convenience'
22487 archive_cmds_need_lc_F77=yes
22488 # This is similar to how AIX traditionally builds its shared libraries.
22489 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'
22495 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)'
22496 hardcode_libdir_flag_spec_F77='-L$libdir'
22497 hardcode_minus_L_F77=yes
22498 # see comment about different semantics on the GNU ld section
22503 export_dynamic_flag_spec_F77=-rdynamic
22506 cygwin* | mingw* | pw32*)
22507 # When not using gcc, we currently assume that we are using
22508 # Microsoft Visual C++.
22509 # hardcode_libdir_flag_spec is actually meaningless, as there is
22510 # no search path for DLLs.
22511 hardcode_libdir_flag_spec_F77=' '
22512 allow_undefined_flag_F77=unsupported
22513 # Tell ltmain to make .lib files, not .a files.
22515 # Tell ltmain to make .dll files, not .so files.
22517 # FIXME: Setting linknames here is a bad hack.
22518 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22519 # The linker will automatically build a .lib file if we build a DLL.
22520 old_archive_From_new_cmds_F77='true'
22521 # FIXME: Should let the user specify the lib program.
22522 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22523 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22524 enable_shared_with_static_runtimes_F77=yes
22527 darwin* | rhapsody*)
22529 rhapsody* | darwin1.[012])
22530 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22533 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22534 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22536 case ${MACOSX_DEPLOYMENT_TARGET} in
22538 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22541 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22547 archive_cmds_need_lc_F77=no
22548 hardcode_direct_F77=no
22549 hardcode_automatic_F77=yes
22550 hardcode_shlibpath_var_F77=unsupported
22551 whole_archive_flag_spec_F77=''
22552 link_all_deplibs_F77=yes
22553 if test "$GCC" = yes ; then
22554 output_verbose_link_cmd='echo'
22555 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22556 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22558 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}'
22559 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}'
22561 case $cc_basename in
22563 output_verbose_link_cmd='echo'
22564 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22565 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22567 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}'
22568 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}'
22578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22579 hardcode_libdir_flag_spec_F77='-L$libdir'
22580 hardcode_shlibpath_var_F77=no
22587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22588 # support. Future versions do this automatically, but an explicit c++rt0.o
22589 # does not break anything, and helps significantly (at the cost of a little
22592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22593 hardcode_libdir_flag_spec_F77='-R$libdir'
22594 hardcode_direct_F77=yes
22595 hardcode_shlibpath_var_F77=no
22598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22601 hardcode_direct_F77=yes
22602 hardcode_minus_L_F77=yes
22603 hardcode_shlibpath_var_F77=no
22606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22607 freebsd* | kfreebsd*-gnu | dragonfly*)
22608 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22609 hardcode_libdir_flag_spec_F77='-R$libdir'
22610 hardcode_direct_F77=yes
22611 hardcode_shlibpath_var_F77=no
22615 if test "$GCC" = yes; then
22616 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'
22618 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'
22620 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22621 hardcode_libdir_separator_F77=:
22622 hardcode_direct_F77=yes
22624 # hardcode_minus_L: Not really in the search PATH,
22625 # but as the default location of the library.
22626 hardcode_minus_L_F77=yes
22627 export_dynamic_flag_spec_F77='${wl}-E'
22631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22634 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22636 if test "$with_gnu_ld" = no; then
22637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22638 hardcode_libdir_separator_F77=:
22640 hardcode_direct_F77=yes
22641 export_dynamic_flag_spec_F77='${wl}-E'
22643 # hardcode_minus_L: Not really in the search PATH,
22644 # but as the default location of the library.
22645 hardcode_minus_L_F77=yes
22650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22653 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22656 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22665 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22668 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22671 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22675 if test "$with_gnu_ld" = no; then
22676 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22677 hardcode_libdir_separator_F77=:
22681 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22682 hardcode_direct_F77=no
22683 hardcode_shlibpath_var_F77=no
22686 hardcode_direct_F77=yes
22687 export_dynamic_flag_spec_F77='${wl}-E'
22689 # hardcode_minus_L: Not really in the search PATH,
22690 # but as the default location of the library.
22691 hardcode_minus_L_F77=yes
22697 irix5* | irix6* | nonstopux*)
22698 if test "$GCC" = yes; then
22699 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'
22701 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'
22702 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22705 hardcode_libdir_separator_F77=:
22706 link_all_deplibs_F77=yes
22710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22711 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22713 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22715 hardcode_libdir_flag_spec_F77='-R$libdir'
22716 hardcode_direct_F77=yes
22717 hardcode_shlibpath_var_F77=no
22721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22722 hardcode_direct_F77=yes
22723 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22724 hardcode_libdir_separator_F77=:
22725 hardcode_shlibpath_var_F77=no
22729 hardcode_direct_F77=yes
22730 hardcode_shlibpath_var_F77=no
22731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22732 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22733 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22734 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22735 export_dynamic_flag_spec_F77='${wl}-E'
22738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22739 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22740 hardcode_libdir_flag_spec_F77='-R$libdir'
22743 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22744 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22751 hardcode_libdir_flag_spec_F77='-L$libdir'
22752 hardcode_minus_L_F77=yes
22753 allow_undefined_flag_F77=unsupported
22754 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'
22755 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22759 if test "$GCC" = yes; then
22760 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22761 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'
22763 allow_undefined_flag_F77=' -expect_unresolved \*'
22764 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'
22766 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22767 hardcode_libdir_separator_F77=:
22770 osf4* | osf5*) # as osf3* with the addition of -msym flag
22771 if test "$GCC" = yes; then
22772 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22773 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'
22774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22776 allow_undefined_flag_F77=' -expect_unresolved \*'
22777 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'
22778 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~
22779 $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'
22781 # Both c and cxx compiler support -rpath directly
22782 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22784 hardcode_libdir_separator_F77=:
22788 no_undefined_flag_F77=' -z text'
22789 if test "$GCC" = yes; then
22791 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22793 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22796 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22797 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22800 hardcode_libdir_flag_spec_F77='-R$libdir'
22801 hardcode_shlibpath_var_F77=no
22803 solaris2.[0-5] | solaris2.[0-5].*) ;;
22805 # The compiler driver will combine linker options so we
22806 # cannot just pass the convience library names through
22807 # without $wl, iff we do not link with $LD.
22808 # Luckily, gcc supports the same syntax we need for Sun Studio.
22809 # Supported since Solaris 2.6 (maybe 2.5.1?)
22812 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22814 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' ;;
22817 link_all_deplibs_F77=yes
22821 if test "x$host_vendor" = xsequent; then
22822 # Use $CC to link under sequent, because it throws in some extra .o
22823 # files that make .init and .fini sections work.
22824 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22826 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22828 hardcode_libdir_flag_spec_F77='-L$libdir'
22829 hardcode_direct_F77=yes
22830 hardcode_minus_L_F77=yes
22831 hardcode_shlibpath_var_F77=no
22835 case $host_vendor in
22837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22838 hardcode_direct_F77=yes # is this really true???
22841 ## LD is ld it makes a PLAMLIB
22842 ## CC just makes a GrossModule.
22843 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22844 reload_cmds_F77='$CC -r -o $output$reload_objs'
22845 hardcode_direct_F77=no
22848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22849 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22852 runpath_var='LD_RUN_PATH'
22853 hardcode_shlibpath_var_F77=no
22857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22858 hardcode_shlibpath_var_F77=no
22859 export_dynamic_flag_spec_F77='-Bexport'
22863 if test -d /usr/nec; then
22864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22865 hardcode_shlibpath_var_F77=no
22866 runpath_var=LD_RUN_PATH
22867 hardcode_runpath_var=yes
22872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22873 no_undefined_flag_F77='${wl}-z,text'
22874 archive_cmds_need_lc_F77=no
22875 hardcode_shlibpath_var_F77=no
22876 runpath_var='LD_RUN_PATH'
22878 if test "$GCC" = yes; then
22879 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22880 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22882 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22883 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22887 sysv5* | sco3.2v5* | sco5v6*)
22888 # Note: We can NOT use -z defs as we might desire, because we do not
22889 # link with -lc, and that would cause any symbols used from libc to
22890 # always be unresolved, which means just about no library would
22891 # ever link correctly. If we're not using GNU ld we use -z text
22892 # though, which does catch some bad symbols but isn't as heavy-handed
22894 no_undefined_flag_F77='${wl}-z,text'
22895 allow_undefined_flag_F77='${wl}-z,nodefs'
22896 archive_cmds_need_lc_F77=no
22897 hardcode_shlibpath_var_F77=no
22898 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22899 hardcode_libdir_separator_F77=':'
22900 link_all_deplibs_F77=yes
22901 export_dynamic_flag_spec_F77='${wl}-Bexport'
22902 runpath_var='LD_RUN_PATH'
22904 if test "$GCC" = yes; then
22905 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22906 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22908 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22909 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22915 hardcode_libdir_flag_spec_F77='-L$libdir'
22916 hardcode_shlibpath_var_F77=no
22925 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22926 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22927 test "$ld_shlibs_F77" = no && can_build_shared=no
22930 # Do we need to explicitly link libc?
22932 case "x$archive_cmds_need_lc_F77" in
22934 # Assume -lc should be added
22935 archive_cmds_need_lc_F77=yes
22937 if test "$enable_shared" = yes && test "$GCC" = yes; then
22938 case $archive_cmds_F77 in
22940 # FIXME: we may have to deal with multi-command sequences.
22943 # Test whether the compiler implicitly links with -lc since on some
22944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22945 # to ld, don't add -lc before -lgcc.
22946 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22947 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22952 (eval $ac_compile) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } 2>conftest.err; then
22958 libobjs=conftest.$ac_objext
22960 wl=$lt_prog_compiler_wl_F77
22961 pic_flag=$lt_prog_compiler_pic_F77
22967 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22968 allow_undefined_flag_F77=
22969 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22970 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }
22975 archive_cmds_need_lc_F77=no
22977 archive_cmds_need_lc_F77=yes
22979 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22981 cat conftest.err 1>&5
22984 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22985 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22992 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22993 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22994 library_names_spec=
22995 libname_spec='lib$name'
22999 postuninstall_cmds=
23003 shlibpath_overrides_runpath=unknown
23005 dynamic_linker="$host_os ld.so"
23006 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23007 if test "$GCC" = yes; then
23008 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23009 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23010 # if the path contains ";" then we assume it to be the separator
23011 # otherwise default to the standard path separator (i.e. ":") - it is
23012 # assumed that no part of a normal pathname contains ";" but that should
23013 # okay in the real world where ";" in dirpaths is itself problematic.
23014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23021 need_lib_prefix=unknown
23022 hardcode_into_libs=no
23024 # when you set need_version to no, make sure it does not cause -set_version
23025 # flags to be left without arguments
23026 need_version=unknown
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23032 shlibpath_var=LIBPATH
23034 # AIX 3 has no versioning support, so we append a major version to the name.
23035 soname_spec='${libname}${release}${shared_ext}$major'
23042 hardcode_into_libs=yes
23043 if test "$host_cpu" = ia64; then
23044 # AIX 5 supports IA64
23045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23046 shlibpath_var=LD_LIBRARY_PATH
23048 # With GCC up to 2.95.x, collect2 would create an import file
23049 # for dependence libraries. The import file would start with
23050 # the line `#! .'. This would cause the generated library to
23051 # depend on `.', always an invalid library. This was fixed in
23052 # development snapshots of GCC prior to 3.0.
23054 aix4 | aix4.[01] | aix4.[01].*)
23055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23057 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23060 can_build_shared=no
23064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23065 # soname into executable. Probably we can add versioning support to
23066 # collect2, so additional links can be useful in future.
23067 if test "$aix_use_runtimelinking" = yes; then
23068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23069 # instead of lib<name>.a to let people know that these are not
23070 # typical AIX shared libraries.
23071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23073 # We preserve .a as extension for shared libraries through AIX4.2
23074 # and later when we are not doing run time linking.
23075 library_names_spec='${libname}${release}.a $libname.a'
23076 soname_spec='${libname}${release}${shared_ext}$major'
23078 shlibpath_var=LIBPATH
23083 library_names_spec='$libname.ixlibrary $libname.a'
23084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23085 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'
23089 library_names_spec='${libname}${shared_ext}'
23090 dynamic_linker="$host_os ld.so"
23091 shlibpath_var=LIBRARY_PATH
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23100 shlibpath_var=LD_LIBRARY_PATH
23101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23103 # the default ld.so.conf also contains /usr/contrib/lib and
23104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23105 # libtool to hard-code these into programs
23108 cygwin* | mingw* | pw32*)
23109 version_type=windows
23114 case $GCC,$host_os in
23115 yes,cygwin* | yes,mingw* | yes,pw32*)
23116 library_names_spec='$libname.dll.a'
23117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23118 postinstall_cmds='base_file=`basename \${file}`~
23119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23120 dldir=$destdir/`dirname \$dlpath`~
23121 test -d \$dldir || mkdir -p \$dldir~
23122 $install_prog $dir/$dlname \$dldir/$dlname~
23123 chmod a+x \$dldir/$dlname'
23124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23125 dlpath=$dir/\$dldll~
23127 shlibpath_overrides_runpath=yes
23131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23136 # MinGW DLLs use traditional 'lib' prefix
23137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23138 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23139 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23140 # It is most probably a Windows format PATH printed by
23141 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23142 # path with ; separators, and with drive letters. We can handle the
23143 # drive letters (cygwin fileutils understands them), so leave them,
23144 # especially as we might pass files found there to a mingw objdump,
23145 # which wouldn't understand a cygwinified path. Ahh.
23146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23152 # pw32 DLLs use 'pw' prefix rather than 'lib'
23153 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23162 dynamic_linker='Win32 ld.exe'
23163 # FIXME: first we should search . and the directory the executable is in
23167 darwin* | rhapsody*)
23168 dynamic_linker="$host_os dyld"
23169 version_type=darwin
23172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23173 soname_spec='${libname}${release}${major}$shared_ext'
23174 shlibpath_overrides_runpath=yes
23175 shlibpath_var=DYLD_LIBRARY_PATH
23176 shrext_cmds='.dylib'
23177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23178 if test "$GCC" = yes; then
23179 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"`
23181 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23191 soname_spec='${libname}${release}${shared_ext}$major'
23192 shlibpath_var=LD_LIBRARY_PATH
23203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23204 soname_spec='${libname}${release}${shared_ext}$major'
23205 shlibpath_var=LD_LIBRARY_PATH
23206 shlibpath_overrides_runpath=no
23207 hardcode_into_libs=yes
23208 dynamic_linker='GNU ld.so'
23211 freebsd* | dragonfly*)
23212 # DragonFly does not have aout. When/if they implement a new
23213 # versioning mechanism, adjust this.
23214 if test -x /usr/bin/objformat; then
23215 objformat=`/usr/bin/objformat`
23218 freebsd[123]*) objformat=aout ;;
23219 *) objformat=elf ;;
23222 version_type=freebsd-$objformat
23223 case $version_type in
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23234 shlibpath_var=LD_LIBRARY_PATH
23237 shlibpath_overrides_runpath=yes
23239 freebsd3.[01]* | freebsdelf3.[01]*)
23240 shlibpath_overrides_runpath=yes
23241 hardcode_into_libs=yes
23243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23245 shlibpath_overrides_runpath=no
23246 hardcode_into_libs=yes
23248 freebsd*) # from 4.6 on
23249 shlibpath_overrides_runpath=yes
23250 hardcode_into_libs=yes
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 shlibpath_var=LD_LIBRARY_PATH
23262 hardcode_into_libs=yes
23265 hpux9* | hpux10* | hpux11*)
23266 # Give a soname corresponding to the major version so that dld.sl refuses to
23267 # link against other versions.
23274 hardcode_into_libs=yes
23275 dynamic_linker="$host_os dld.so"
23276 shlibpath_var=LD_LIBRARY_PATH
23277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23279 soname_spec='${libname}${release}${shared_ext}$major'
23280 if test "X$HPUX_IA64_MODE" = X32; then
23281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23289 hardcode_into_libs=yes
23290 dynamic_linker="$host_os dld.sl"
23291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23294 soname_spec='${libname}${release}${shared_ext}$major'
23295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23300 dynamic_linker="$host_os dld.sl"
23301 shlibpath_var=SHLIB_PATH
23302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23304 soname_spec='${libname}${release}${shared_ext}$major'
23307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23308 postinstall_cmds='chmod 555 $lib'
23315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23316 soname_spec='${libname}${release}${shared_ext}$major'
23317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23318 shlibpath_var=LD_LIBRARY_PATH
23319 shlibpath_overrides_runpath=no
23320 hardcode_into_libs=yes
23323 irix5* | irix6* | nonstopux*)
23325 nonstopux*) version_type=nonstopux ;;
23327 if test "$lt_cv_prog_gnu_ld" = yes; then
23335 soname_spec='${libname}${release}${shared_ext}$major'
23336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23338 irix5* | nonstopux*)
23339 libsuff= shlibsuff=
23342 case $LD in # libtool.m4 will add one of these switches to LD
23343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23344 libsuff= shlibsuff= libmagic=32-bit;;
23345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23346 libsuff=32 shlibsuff=N32 libmagic=N32;;
23347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23349 *) libsuff= shlibsuff= libmagic=never-match;;
23353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23354 shlibpath_overrides_runpath=no
23355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23357 hardcode_into_libs=yes
23360 # No shared lib support for Linux oldld, aout, or coff.
23361 linux*oldld* | linux*aout* | linux*coff*)
23365 # This must be Linux ELF.
23370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23373 shlibpath_var=LD_LIBRARY_PATH
23374 shlibpath_overrides_runpath=no
23375 # This implies no fast_install, which is unacceptable.
23376 # Some rework will be needed to allow for fast_install
23377 # before this can be enabled.
23378 hardcode_into_libs=yes
23380 # Append ld.so.conf contents to the search path
23381 if test -f /etc/ld.so.conf; then
23382 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' ' '`
23383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23386 # We used to test for /lib/ld.so.1 and disable shared libraries on
23387 # powerpc, because MkLinux only supported shared libraries with the
23388 # GNU dynamic linker. Since this was broken with cross compilers,
23389 # most powerpc-linux boxes support dynamic linking these days and
23390 # people can always --disable-shared, the test was removed, and we
23391 # assume the GNU/Linux dynamic linker is in use.
23392 dynamic_linker='GNU/Linux ld.so'
23399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23400 soname_spec='${libname}${release}${shared_ext}$major'
23401 shlibpath_var=LD_LIBRARY_PATH
23402 shlibpath_overrides_runpath=no
23403 hardcode_into_libs=yes
23404 dynamic_linker='GNU ld.so'
23411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23414 dynamic_linker='NetBSD (a.out) ld.so'
23416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23417 soname_spec='${libname}${release}${shared_ext}$major'
23418 dynamic_linker='NetBSD ld.elf_so'
23420 shlibpath_var=LD_LIBRARY_PATH
23421 shlibpath_overrides_runpath=yes
23422 hardcode_into_libs=yes
23427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23428 shlibpath_var=LD_LIBRARY_PATH
23429 shlibpath_overrides_runpath=yes
23436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23437 soname_spec='${libname}${release}${shared_ext}$major'
23438 shlibpath_var=LD_LIBRARY_PATH
23439 shlibpath_overrides_runpath=yes
23444 sys_lib_dlsearch_path_spec="/usr/lib"
23446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23449 *) need_version=no ;;
23451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23453 shlibpath_var=LD_LIBRARY_PATH
23454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23456 openbsd2.[89] | openbsd2.[89].*)
23457 shlibpath_overrides_runpath=no
23460 shlibpath_overrides_runpath=yes
23464 shlibpath_overrides_runpath=yes
23469 libname_spec='$name'
23472 library_names_spec='$libname${shared_ext} $libname.a'
23473 dynamic_linker='OS/2 ld.exe'
23474 shlibpath_var=LIBPATH
23477 osf3* | osf4* | osf5*)
23481 soname_spec='${libname}${release}${shared_ext}$major'
23482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23483 shlibpath_var=LD_LIBRARY_PATH
23484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23493 soname_spec='${libname}${release}${shared_ext}$major'
23494 shlibpath_var=LD_LIBRARY_PATH
23495 shlibpath_overrides_runpath=yes
23496 hardcode_into_libs=yes
23497 # ldd complains unless libraries are executable
23498 postinstall_cmds='chmod +x $lib'
23503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23505 shlibpath_var=LD_LIBRARY_PATH
23506 shlibpath_overrides_runpath=yes
23507 if test "$with_gnu_ld" = yes; then
23515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23516 soname_spec='${libname}${release}${shared_ext}$major'
23517 shlibpath_var=LD_LIBRARY_PATH
23518 case $host_vendor in
23520 shlibpath_overrides_runpath=no
23522 export_dynamic_flag_spec='${wl}-Blargedynsym'
23523 runpath_var=LD_RUN_PATH
23531 shlibpath_overrides_runpath=no
23532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23538 if test -d /usr/nec ;then
23540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23541 soname_spec='$libname${shared_ext}.$major'
23542 shlibpath_var=LD_LIBRARY_PATH
23546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23547 version_type=freebsd-elf
23550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23551 soname_spec='${libname}${release}${shared_ext}$major'
23552 shlibpath_var=LD_LIBRARY_PATH
23553 hardcode_into_libs=yes
23554 if test "$with_gnu_ld" = yes; then
23555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23556 shlibpath_overrides_runpath=no
23558 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23559 shlibpath_overrides_runpath=yes
23562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23566 sys_lib_dlsearch_path_spec='/usr/lib'
23571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23572 soname_spec='${libname}${release}${shared_ext}$major'
23573 shlibpath_var=LD_LIBRARY_PATH
23580 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23581 echo "${ECHO_T}$dynamic_linker" >&6; }
23582 test "$dynamic_linker" = no && can_build_shared=no
23584 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23585 if test "$GCC" = yes; then
23586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23589 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23590 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23591 hardcode_action_F77=
23592 if test -n "$hardcode_libdir_flag_spec_F77" || \
23593 test -n "$runpath_var_F77" || \
23594 test "X$hardcode_automatic_F77" = "Xyes" ; then
23596 # We can hardcode non-existant directories.
23597 if test "$hardcode_direct_F77" != no &&
23598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23599 # have to relink, otherwise we might link with an installed library
23600 # when we should be linking with a yet-to-be-installed one
23601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23602 test "$hardcode_minus_L_F77" != no; then
23603 # Linking always hardcodes the temporary library directory.
23604 hardcode_action_F77=relink
23606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23607 hardcode_action_F77=immediate
23610 # We cannot hardcode anything, or else we can only hardcode existing
23612 hardcode_action_F77=unsupported
23614 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23615 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23617 if test "$hardcode_action_F77" = relink; then
23618 # Fast installation is not supported
23619 enable_fast_install=no
23620 elif test "$shlibpath_overrides_runpath" = yes ||
23621 test "$enable_shared" = no; then
23622 # Fast installation is not necessary
23623 enable_fast_install=needless
23627 # The else clause should only fire when bootstrapping the
23628 # libtool distribution, otherwise you forgot to ship ltmain.sh
23629 # with your package, and you will get complaints that there are
23630 # no rules to generate ltmain.sh.
23631 if test -f "$ltmain"; then
23632 # See if we are running on zsh, and set the options which allow our commands through
23633 # without removal of \ escapes.
23634 if test -n "${ZSH_VERSION+set}" ; then
23635 setopt NO_GLOB_SUBST
23637 # Now quote all the things that may contain metacharacters while being
23638 # careful not to overquote the AC_SUBSTed values. We take copies of the
23639 # variables and quote the copies for generation of the libtool script.
23640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23644 deplibs_check_method reload_flag reload_cmds need_locks \
23645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23646 lt_cv_sys_global_symbol_to_c_name_address \
23647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23648 old_postinstall_cmds old_postuninstall_cmds \
23652 lt_prog_compiler_wl_F77 \
23653 lt_prog_compiler_pic_F77 \
23654 lt_prog_compiler_static_F77 \
23655 lt_prog_compiler_no_builtin_flag_F77 \
23656 export_dynamic_flag_spec_F77 \
23657 thread_safe_flag_spec_F77 \
23658 whole_archive_flag_spec_F77 \
23659 enable_shared_with_static_runtimes_F77 \
23660 old_archive_cmds_F77 \
23661 old_archive_from_new_cmds_F77 \
23662 predep_objects_F77 \
23663 postdep_objects_F77 \
23666 compiler_lib_search_path_F77 \
23668 archive_expsym_cmds_F77 \
23669 postinstall_cmds_F77 \
23670 postuninstall_cmds_F77 \
23671 old_archive_from_expsyms_cmds_F77 \
23672 allow_undefined_flag_F77 \
23673 no_undefined_flag_F77 \
23674 export_symbols_cmds_F77 \
23675 hardcode_libdir_flag_spec_F77 \
23676 hardcode_libdir_flag_spec_ld_F77 \
23677 hardcode_libdir_separator_F77 \
23678 hardcode_automatic_F77 \
23680 module_expsym_cmds_F77 \
23681 lt_cv_prog_compiler_c_o_F77 \
23682 exclude_expsyms_F77 \
23683 include_expsyms_F77; do
23686 old_archive_cmds_F77 | \
23687 old_archive_from_new_cmds_F77 | \
23688 archive_cmds_F77 | \
23689 archive_expsym_cmds_F77 | \
23690 module_cmds_F77 | \
23691 module_expsym_cmds_F77 | \
23692 old_archive_from_expsyms_cmds_F77 | \
23693 export_symbols_cmds_F77 | \
23694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23695 postinstall_cmds | postuninstall_cmds | \
23696 old_postinstall_cmds | old_postuninstall_cmds | \
23697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23698 # Double-quote double-evaled strings.
23699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23708 *'\$0 --fallback-echo"')
23709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23715 cat <<__EOF__ >> "$cfgfile"
23716 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23718 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23720 # Shell to use when invoking shell scripts.
23723 # Whether or not to build shared libraries.
23724 build_libtool_libs=$enable_shared
23726 # Whether or not to build static libraries.
23727 build_old_libs=$enable_static
23729 # Whether or not to add -lc for building shared libraries.
23730 build_libtool_need_lc=$archive_cmds_need_lc_F77
23732 # Whether or not to disallow shared libs when runtime libs are static
23733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23735 # Whether or not to optimize for fast installation.
23736 fast_install=$enable_fast_install
23739 host_alias=$host_alias
23743 # The build system.
23744 build_alias=$build_alias
23748 # An echo program that does not interpret backslashes.
23753 AR_FLAGS=$lt_AR_FLAGS
23758 # LTCC compiler flags.
23759 LTCFLAGS=$lt_LTCFLAGS
23761 # A language-specific compiler.
23762 CC=$lt_compiler_F77
23764 # Is the compiler the GNU C compiler?
23770 # The linker used to build libraries.
23773 # Whether we need hard or soft links.
23776 # A BSD-compatible nm program.
23779 # A symbol stripping program
23782 # Used to examine libraries when file_magic_cmd begins "file"
23783 MAGIC_CMD=$MAGIC_CMD
23785 # Used on cygwin: DLL creation program.
23788 # Used on cygwin: object dumper.
23791 # Used on cygwin: assembler.
23794 # The name of the directory that contains temporary libtool files.
23797 # How to create reloadable object files.
23798 reload_flag=$lt_reload_flag
23799 reload_cmds=$lt_reload_cmds
23801 # How to pass a linker flag through the compiler.
23802 wl=$lt_lt_prog_compiler_wl_F77
23804 # Object file suffix (normally "o").
23805 objext="$ac_objext"
23807 # Old archive suffix (normally "a").
23810 # Shared library suffix (normally ".so").
23811 shrext_cmds='$shrext_cmds'
23813 # Executable file suffix (normally "").
23816 # Additional compiler flags for building library objects.
23817 pic_flag=$lt_lt_prog_compiler_pic_F77
23820 # What is the maximum length of a command?
23821 max_cmd_len=$lt_cv_sys_max_cmd_len
23823 # Does compiler simultaneously support -c and -o options?
23824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23826 # Must we lock files when doing compilation?
23827 need_locks=$lt_need_locks
23829 # Do we need the lib prefix for modules?
23830 need_lib_prefix=$need_lib_prefix
23832 # Do we need a version for libraries?
23833 need_version=$need_version
23835 # Whether dlopen is supported.
23836 dlopen_support=$enable_dlopen
23838 # Whether dlopen of programs is supported.
23839 dlopen_self=$enable_dlopen_self
23841 # Whether dlopen of statically linked programs is supported.
23842 dlopen_self_static=$enable_dlopen_self_static
23844 # Compiler flag to prevent dynamic linking.
23845 link_static_flag=$lt_lt_prog_compiler_static_F77
23847 # Compiler flag to turn off builtin functions.
23848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23850 # Compiler flag to allow reflexive dlopens.
23851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23853 # Compiler flag to generate shared objects directly from archives.
23854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23856 # Compiler flag to generate thread-safe objects.
23857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23859 # Library versioning type.
23860 version_type=$version_type
23862 # Format of library name prefix.
23863 libname_spec=$lt_libname_spec
23865 # List of archive names. First name is the real one, the rest are links.
23866 # The last name is the one that the linker finds with -lNAME.
23867 library_names_spec=$lt_library_names_spec
23869 # The coded name of the library, if different from the real name.
23870 soname_spec=$lt_soname_spec
23872 # Commands used to build and install an old-style archive.
23874 old_archive_cmds=$lt_old_archive_cmds_F77
23875 old_postinstall_cmds=$lt_old_postinstall_cmds
23876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23878 # Create an old-style archive from a shared archive.
23879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23881 # Create a temporary old-style archive to link instead of a shared archive.
23882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23884 # Commands used to build and install a shared archive.
23885 archive_cmds=$lt_archive_cmds_F77
23886 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23887 postinstall_cmds=$lt_postinstall_cmds
23888 postuninstall_cmds=$lt_postuninstall_cmds
23890 # Commands used to build a loadable module (assumed same as above if empty)
23891 module_cmds=$lt_module_cmds_F77
23892 module_expsym_cmds=$lt_module_expsym_cmds_F77
23894 # Commands to strip libraries.
23895 old_striplib=$lt_old_striplib
23896 striplib=$lt_striplib
23898 # Dependencies to place before the objects being linked to create a
23900 predep_objects=$lt_predep_objects_F77
23902 # Dependencies to place after the objects being linked to create a
23904 postdep_objects=$lt_postdep_objects_F77
23906 # Dependencies to place before the objects being linked to create a
23908 predeps=$lt_predeps_F77
23910 # Dependencies to place after the objects being linked to create a
23912 postdeps=$lt_postdeps_F77
23914 # The library search path used internally by the compiler when linking
23915 # a shared library.
23916 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23918 # Method to check whether dependent libraries are shared objects.
23919 deplibs_check_method=$lt_deplibs_check_method
23921 # Command to use when deplibs_check_method == file_magic.
23922 file_magic_cmd=$lt_file_magic_cmd
23924 # Flag that allows shared libraries with undefined symbols to be built.
23925 allow_undefined_flag=$lt_allow_undefined_flag_F77
23927 # Flag that forces no undefined symbols.
23928 no_undefined_flag=$lt_no_undefined_flag_F77
23930 # Commands used to finish a libtool library installation in a directory.
23931 finish_cmds=$lt_finish_cmds
23933 # Same as above, but a single script fragment to be evaled but not shown.
23934 finish_eval=$lt_finish_eval
23936 # Take the output of nm and produce a listing of raw symbols and C names.
23937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23939 # Transform the output of nm in a proper C declaration
23940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23942 # Transform the output of nm in a C name address pair
23943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23945 # This is the shared library runtime path variable.
23946 runpath_var=$runpath_var
23948 # This is the shared library path variable.
23949 shlibpath_var=$shlibpath_var
23951 # Is shlibpath searched before the hard-coded library search path?
23952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23954 # How to hardcode a shared library path into an executable.
23955 hardcode_action=$hardcode_action_F77
23957 # Whether we should hardcode library paths into libraries.
23958 hardcode_into_libs=$hardcode_into_libs
23960 # Flag to hardcode \$libdir into a binary during linking.
23961 # This must work even if \$libdir does not exist.
23962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23964 # If ld is used when linking, flag to hardcode \$libdir into
23965 # a binary during linking. This must work even if \$libdir does
23967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23969 # Whether we need a single -rpath flag with a separated argument.
23970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23973 # resulting binary.
23974 hardcode_direct=$hardcode_direct_F77
23976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23977 # resulting binary.
23978 hardcode_minus_L=$hardcode_minus_L_F77
23980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23981 # the resulting binary.
23982 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23984 # Set to yes if building a shared library automatically hardcodes DIR into the library
23985 # and all subsequent libraries and executables linked against it.
23986 hardcode_automatic=$hardcode_automatic_F77
23988 # Variables whose values should be saved in libtool wrapper scripts and
23989 # restored at relink time.
23990 variables_saved_for_relink="$variables_saved_for_relink"
23992 # Whether libtool must link a program against all its dependency libraries.
23993 link_all_deplibs=$link_all_deplibs_F77
23995 # Compile-time system search path for libraries
23996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23998 # Run-time system search path for libraries
23999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24001 # Fix the shell variable \$srcfile for the compiler.
24002 fix_srcfile_path="$fix_srcfile_path_F77"
24004 # Set to yes if exported symbols are required.
24005 always_export_symbols=$always_export_symbols_F77
24007 # The commands to list exported symbols.
24008 export_symbols_cmds=$lt_export_symbols_cmds_F77
24010 # The commands to extract the exported symbol list from a shared archive.
24011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24013 # Symbols that should not be listed in the preloaded symbols.
24014 exclude_expsyms=$lt_exclude_expsyms_F77
24016 # Symbols that must always be exported.
24017 include_expsyms=$lt_include_expsyms_F77
24019 # ### END LIBTOOL TAG CONFIG: $tagname
24025 # If there is no Makefile yet, we rely on a make rule to execute
24026 # `config.status --recheck' to rerun these tests and create the
24027 # libtool script then.
24028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24029 if test -f "$ltmain_in"; then
24030 test -f Makefile && make "$ltmain"
24036 ac_cpp='$CPP $CPPFLAGS'
24037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24049 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24051 ac_cpp='$CPP $CPPFLAGS'
24052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24057 # Source file extension for Java test sources.
24060 # Object file extension for compiled Java test sources.
24064 # Code to be used in simple compile tests
24065 lt_simple_compile_test_code="class foo {}\n"
24067 # Code to be used in simple link tests
24068 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24070 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24072 # If no C compiler was specified, use CC.
24075 # If no C compiler flags were specified, use CFLAGS.
24076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24078 # Allow CC to be a program name with arguments.
24082 # save warnings/boilerplate of simple test code
24083 ac_outfile=conftest.$ac_objext
24084 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24086 _lt_compiler_boilerplate=`cat conftest.err`
24089 ac_outfile=conftest.$ac_objext
24090 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24092 _lt_linker_boilerplate=`cat conftest.err`
24096 # Allow CC to be a program name with arguments.
24101 for cc_temp in $compiler""; do
24103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24109 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24112 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24113 archive_cmds_need_lc_GCJ=no
24115 old_archive_cmds_GCJ=$old_archive_cmds
24118 lt_prog_compiler_no_builtin_flag_GCJ=
24120 if test "$GCC" = yes; then
24121 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24124 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24125 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24126 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24129 lt_cv_prog_compiler_rtti_exceptions=no
24130 ac_outfile=conftest.$ac_objext
24131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24132 lt_compiler_flag="-fno-rtti -fno-exceptions"
24133 # Insert the option either (1) after the last *FLAGS variable, or
24134 # (2) before a word containing "conftest.", or (3) at the end.
24135 # Note that $ac_compile itself does not contain backslashes and begins
24136 # with a dollar sign (not a hyphen), so the echo should work correctly.
24137 # The option is referenced via a variable to avoid confusing sed.
24138 lt_compile=`echo "$ac_compile" | $SED \
24139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24141 -e 's:$: $lt_compiler_flag:'`
24142 (eval echo "\"\$as_me:24142: $lt_compile\"" >&5)
24143 (eval "$lt_compile" 2>conftest.err)
24145 cat conftest.err >&5
24146 echo "$as_me:24146: \$? = $ac_status" >&5
24147 if (exit $ac_status) && test -s "$ac_outfile"; then
24148 # The compiler can only warn and ignore the option if not recognized
24149 # So say no if there are warnings other than the usual output.
24150 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24153 lt_cv_prog_compiler_rtti_exceptions=yes
24159 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24160 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24162 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24163 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24170 lt_prog_compiler_wl_GCJ=
24171 lt_prog_compiler_pic_GCJ=
24172 lt_prog_compiler_static_GCJ=
24174 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24177 if test "$GCC" = yes; then
24178 lt_prog_compiler_wl_GCJ='-Wl,'
24179 lt_prog_compiler_static_GCJ='-static'
24183 # All AIX code is PIC.
24184 if test "$host_cpu" = ia64; then
24185 # AIX 5 now supports IA64 processor
24186 lt_prog_compiler_static_GCJ='-Bstatic'
24191 # FIXME: we need at least 68020 code to build shared libraries, but
24192 # adding the `-m68020' flag to GCC prevents building anything better,
24194 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24197 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24198 # PIC is the default for these OSes.
24201 mingw* | pw32* | os2*)
24202 # This hack is so that the source file can tell whether it is being
24203 # built for inclusion in a dll (and should export symbols for example).
24204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24207 darwin* | rhapsody*)
24208 # PIC is the default on this platform
24209 # Common symbols not allowed in MH_DYLIB files
24210 lt_prog_compiler_pic_GCJ='-fno-common'
24214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24215 # Instead, we relocate shared libraries at runtime.
24219 # Just because we use GCC doesn't mean we suddenly get shared libraries
24220 # on systems that don't support them.
24221 lt_prog_compiler_can_build_shared_GCJ=no
24226 if test -d /usr/nec; then
24227 lt_prog_compiler_pic_GCJ=-Kconform_pic
24232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24233 # not for PA HP-UX.
24239 lt_prog_compiler_pic_GCJ='-fPIC'
24245 lt_prog_compiler_pic_GCJ='-fPIC'
24249 # PORTME Check for flag to pass linker flags through the system compiler.
24252 lt_prog_compiler_wl_GCJ='-Wl,'
24253 if test "$host_cpu" = ia64; then
24254 # AIX 5 now supports IA64 processor
24255 lt_prog_compiler_static_GCJ='-Bstatic'
24257 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24261 # PIC is the default on this platform
24262 # Common symbols not allowed in MH_DYLIB files
24263 case $cc_basename in
24265 lt_prog_compiler_pic_GCJ='-qnocommon'
24266 lt_prog_compiler_wl_GCJ='-Wl,'
24271 mingw* | pw32* | os2*)
24272 # This hack is so that the source file can tell whether it is being
24273 # built for inclusion in a dll (and should export symbols for example).
24274 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24277 hpux9* | hpux10* | hpux11*)
24278 lt_prog_compiler_wl_GCJ='-Wl,'
24279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24280 # not for PA HP-UX.
24286 lt_prog_compiler_pic_GCJ='+Z'
24289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24290 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24293 irix5* | irix6* | nonstopux*)
24294 lt_prog_compiler_wl_GCJ='-Wl,'
24295 # PIC (with -KPIC) is the default.
24296 lt_prog_compiler_static_GCJ='-non_shared'
24300 lt_prog_compiler_pic_GCJ='-KPIC'
24301 lt_prog_compiler_static_GCJ='-Bstatic'
24305 case $cc_basename in
24307 lt_prog_compiler_wl_GCJ='-Wl,'
24308 lt_prog_compiler_pic_GCJ='-KPIC'
24309 lt_prog_compiler_static_GCJ='-static'
24311 pgcc* | pgf77* | pgf90* | pgf95*)
24312 # Portland Group compilers (*not* the Pentium gcc compiler,
24313 # which looks to be a dead project)
24314 lt_prog_compiler_wl_GCJ='-Wl,'
24315 lt_prog_compiler_pic_GCJ='-fpic'
24316 lt_prog_compiler_static_GCJ='-Bstatic'
24319 lt_prog_compiler_wl_GCJ='-Wl,'
24320 # All Alpha code is PIC.
24321 lt_prog_compiler_static_GCJ='-non_shared'
24326 osf3* | osf4* | osf5*)
24327 lt_prog_compiler_wl_GCJ='-Wl,'
24328 # All OSF/1 code is PIC.
24329 lt_prog_compiler_static_GCJ='-non_shared'
24333 lt_prog_compiler_pic_GCJ='-KPIC'
24334 lt_prog_compiler_static_GCJ='-Bstatic'
24335 case $cc_basename in
24336 f77* | f90* | f95*)
24337 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24339 lt_prog_compiler_wl_GCJ='-Wl,';;
24344 lt_prog_compiler_wl_GCJ='-Qoption ld '
24345 lt_prog_compiler_pic_GCJ='-PIC'
24346 lt_prog_compiler_static_GCJ='-Bstatic'
24349 sysv4 | sysv4.2uw2* | sysv4.3*)
24350 lt_prog_compiler_wl_GCJ='-Wl,'
24351 lt_prog_compiler_pic_GCJ='-KPIC'
24352 lt_prog_compiler_static_GCJ='-Bstatic'
24356 if test -d /usr/nec ;then
24357 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24358 lt_prog_compiler_static_GCJ='-Bstatic'
24362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24363 lt_prog_compiler_wl_GCJ='-Wl,'
24364 lt_prog_compiler_pic_GCJ='-KPIC'
24365 lt_prog_compiler_static_GCJ='-Bstatic'
24369 lt_prog_compiler_wl_GCJ='-Wl,'
24370 lt_prog_compiler_can_build_shared_GCJ=no
24374 lt_prog_compiler_pic_GCJ='-pic'
24375 lt_prog_compiler_static_GCJ='-Bstatic'
24379 lt_prog_compiler_can_build_shared_GCJ=no
24384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24385 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24388 # Check to make sure the PIC flag actually works.
24390 if test -n "$lt_prog_compiler_pic_GCJ"; then
24392 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24393 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24394 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24395 echo $ECHO_N "(cached) $ECHO_C" >&6
24397 lt_prog_compiler_pic_works_GCJ=no
24398 ac_outfile=conftest.$ac_objext
24399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24400 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24401 # Insert the option either (1) after the last *FLAGS variable, or
24402 # (2) before a word containing "conftest.", or (3) at the end.
24403 # Note that $ac_compile itself does not contain backslashes and begins
24404 # with a dollar sign (not a hyphen), so the echo should work correctly.
24405 # The option is referenced via a variable to avoid confusing sed.
24406 lt_compile=`echo "$ac_compile" | $SED \
24407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24409 -e 's:$: $lt_compiler_flag:'`
24410 (eval echo "\"\$as_me:24410: $lt_compile\"" >&5)
24411 (eval "$lt_compile" 2>conftest.err)
24413 cat conftest.err >&5
24414 echo "$as_me:24414: \$? = $ac_status" >&5
24415 if (exit $ac_status) && test -s "$ac_outfile"; then
24416 # The compiler can only warn and ignore the option if not recognized
24417 # So say no if there are warnings other than the usual output.
24418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24421 lt_prog_compiler_pic_works_GCJ=yes
24427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24428 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24430 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24431 case $lt_prog_compiler_pic_GCJ in
24433 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24436 lt_prog_compiler_pic_GCJ=
24437 lt_prog_compiler_can_build_shared_GCJ=no
24442 # For platforms which do not support PIC, -DPIC is meaningless:
24444 lt_prog_compiler_pic_GCJ=
24447 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24452 # Check to make sure the static flag actually works.
24454 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24455 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24456 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24457 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6
24460 lt_prog_compiler_static_works_GCJ=no
24461 save_LDFLAGS="$LDFLAGS"
24462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24463 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24465 # The linker can only warn and ignore the option if not recognized
24466 # So say no if there are warnings
24467 if test -s conftest.err; then
24468 # Append any errors to the config.log.
24469 cat conftest.err 1>&5
24470 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24472 if diff conftest.exp conftest.er2 >/dev/null; then
24473 lt_prog_compiler_static_works_GCJ=yes
24476 lt_prog_compiler_static_works_GCJ=yes
24480 LDFLAGS="$save_LDFLAGS"
24483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24484 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24486 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24489 lt_prog_compiler_static_GCJ=
24493 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24494 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24495 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24498 lt_cv_prog_compiler_c_o_GCJ=no
24499 $rm -r conftest 2>/dev/null
24503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24505 lt_compiler_flag="-o out/conftest2.$ac_objext"
24506 # Insert the option either (1) after the last *FLAGS variable, or
24507 # (2) before a word containing "conftest.", or (3) at the end.
24508 # Note that $ac_compile itself does not contain backslashes and begins
24509 # with a dollar sign (not a hyphen), so the echo should work correctly.
24510 lt_compile=`echo "$ac_compile" | $SED \
24511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24513 -e 's:$: $lt_compiler_flag:'`
24514 (eval echo "\"\$as_me:24514: $lt_compile\"" >&5)
24515 (eval "$lt_compile" 2>out/conftest.err)
24517 cat out/conftest.err >&5
24518 echo "$as_me:24518: \$? = $ac_status" >&5
24519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24521 # The compiler can only warn and ignore the option if not recognized
24522 # So say no if there are warnings
24523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24526 lt_cv_prog_compiler_c_o_GCJ=yes
24531 # SGI C++ compiler will create directory out/ii_files/ for
24532 # template instantiation
24533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24534 $rm out/* && rmdir out
24540 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24541 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24544 hard_links="nottested"
24545 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24546 # do not overwrite the value of need_locks provided by the user
24547 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24548 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24553 ln conftest.a conftest.b 2>&5 || hard_links=no
24554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24555 { echo "$as_me:$LINENO: result: $hard_links" >&5
24556 echo "${ECHO_T}$hard_links" >&6; }
24557 if test "$hard_links" = no; then
24558 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24559 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24566 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24567 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24570 allow_undefined_flag_GCJ=
24571 enable_shared_with_static_runtimes_GCJ=no
24573 archive_expsym_cmds_GCJ=
24574 old_archive_From_new_cmds_GCJ=
24575 old_archive_from_expsyms_cmds_GCJ=
24576 export_dynamic_flag_spec_GCJ=
24577 whole_archive_flag_spec_GCJ=
24578 thread_safe_flag_spec_GCJ=
24579 hardcode_libdir_flag_spec_GCJ=
24580 hardcode_libdir_flag_spec_ld_GCJ=
24581 hardcode_libdir_separator_GCJ=
24582 hardcode_direct_GCJ=no
24583 hardcode_minus_L_GCJ=no
24584 hardcode_shlibpath_var_GCJ=unsupported
24585 link_all_deplibs_GCJ=unknown
24586 hardcode_automatic_GCJ=no
24588 module_expsym_cmds_GCJ=
24589 always_export_symbols_GCJ=no
24590 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24591 # include_expsyms should be a list of space-separated symbols to be *always*
24592 # included in the symbol list
24593 include_expsyms_GCJ=
24594 # exclude_expsyms can be an extended regexp of symbols to exclude
24595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24597 # as well as any symbol that contains `d'.
24598 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24600 # platforms (ab)use it in PIC code, but their linkers get confused if
24601 # the symbol is explicitly referenced. Since portable code cannot
24602 # rely on this symbol name, it's probably fine to never include it in
24603 # preloaded symbol tables.
24604 extract_expsyms_cmds=
24605 # Just being paranoid about ensuring that cc_basename is set.
24606 for cc_temp in $compiler""; do
24608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24614 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24617 cygwin* | mingw* | pw32*)
24618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24619 # When not using gcc, we currently assume that we are using
24620 # Microsoft Visual C++.
24621 if test "$GCC" != yes; then
24626 # we just hope/assume this is gcc and not c89 (= MSVC++)
24635 if test "$with_gnu_ld" = yes; then
24636 # If archive_cmds runs LD, not CC, wlarc should be empty
24639 # Set some defaults for GNU ld with shared library support. These
24640 # are reset later if shared libraries are not supported. Putting them
24641 # here allows them to be overridden if necessary.
24642 runpath_var=LD_RUN_PATH
24643 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24644 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24645 # ancient GNU ld didn't support --whole-archive et. al.
24646 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24647 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24649 whole_archive_flag_spec_GCJ=
24651 supports_anon_versioning=no
24652 case `$LD -v 2>/dev/null` in
24653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24656 *\ 2.11.*) ;; # other 2.11 versions
24657 *) supports_anon_versioning=yes ;;
24660 # See if GNU ld supports shared libraries.
24662 aix3* | aix4* | aix5*)
24663 # On AIX/PPC, the GNU linker is very broken
24664 if test "$host_cpu" != ia64; then
24668 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24669 *** to be unable to reliably create shared libraries on AIX.
24670 *** Therefore, libtool is disabling shared libraries support. If you
24671 *** really care for shared libraries, you may want to modify your PATH
24672 *** so that a non-GNU linker is found, and then restart.
24679 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)'
24680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24681 hardcode_minus_L_GCJ=yes
24683 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24684 # that the semantics of dynamic libraries on AmigaOS, at least up
24685 # to version 4, is to share data among multiple programs linked
24686 # with the same dynamic library. Since this doesn't match the
24687 # behavior of shared libraries on other platforms, we can't use
24693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24694 allow_undefined_flag_GCJ=unsupported
24695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24696 # support --undefined. This deserves some investigation. FIXME
24697 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24703 cygwin* | mingw* | pw32*)
24704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24705 # as there is no search path for DLLs.
24706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24707 allow_undefined_flag_GCJ=unsupported
24708 always_export_symbols_GCJ=no
24709 enable_shared_with_static_runtimes_GCJ=yes
24710 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24712 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24714 # If the export-symbols file already is a .def file (1st line
24715 # is EXPORTS), use it as is; otherwise, prepend...
24716 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24717 cp $export_symbols $output_objdir/$soname.def;
24719 echo EXPORTS > $output_objdir/$soname.def;
24720 cat $export_symbols >> $output_objdir/$soname.def;
24722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24729 hardcode_direct_GCJ=no
24730 hardcode_shlibpath_var_GCJ=no
24731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24732 export_dynamic_flag_spec_GCJ='${wl}-E'
24733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24734 # Instead, shared libraries are loaded at an image base (0x10000000 by
24735 # default) and relocated if they conflict, which is a slow very memory
24736 # consuming and fragmenting process. To avoid this, we pick a random,
24737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24739 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'
24740 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'
24744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24746 case $cc_basename,$host_cpu in
24747 pgcc*) # Portland Group C compiler
24748 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'
24749 tmp_addflag=' $pic_flag'
24751 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24752 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24753 tmp_addflag=' $pic_flag -Mnomain' ;;
24754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24755 tmp_addflag=' -i_dynamic' ;;
24756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24757 tmp_addflag=' -i_dynamic -nofor_main' ;;
24758 ifc* | ifort*) # Intel Fortran compiler
24759 tmp_addflag=' -nofor_main' ;;
24761 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24763 if test $supports_anon_versioning = yes; then
24764 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24766 $echo "local: *; };" >> $output_objdir/$libname.ver~
24767 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24776 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24779 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24780 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24785 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24790 *** create shared libraries on Solaris systems. Therefore, libtool
24791 *** is disabling shared libraries support. We urge you to upgrade GNU
24792 *** binutils to release 2.9.1 or newer. Another option is to modify
24793 *** your PATH or compiler configuration so that the native linker is
24794 *** used, and then restart.
24797 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24806 case `$LD -v 2>&1` in
24807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24812 *** reliably create shared libraries on SCO systems. Therefore, libtool
24813 *** is disabling shared libraries support. We urge you to upgrade GNU
24814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24815 *** your PATH or compiler configuration so that the native linker is
24816 *** used, and then restart.
24821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24823 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24824 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24849 if test "$ld_shlibs_GCJ" = no; then
24851 hardcode_libdir_flag_spec_GCJ=
24852 export_dynamic_flag_spec_GCJ=
24853 whole_archive_flag_spec_GCJ=
24856 # PORTME fill in a description of your system's linker (not GNU ld)
24859 allow_undefined_flag_GCJ=unsupported
24860 always_export_symbols_GCJ=yes
24861 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'
24862 # Note: this linker hardcodes the directories in LIBPATH if there
24863 # are no directories specified by -L.
24864 hardcode_minus_L_GCJ=yes
24865 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24866 # Neither direct hardcoding nor static linking is supported with a
24868 hardcode_direct_GCJ=unsupported
24873 if test "$host_cpu" = ia64; then
24874 # On IA64, the linker does run time linking by default, so we don't
24875 # have to do anything special.
24876 aix_use_runtimelinking=no
24877 exp_sym_flag='-Bexport'
24880 # If we're using GNU nm, then we don't want the "-C" option.
24881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24883 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'
24885 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'
24887 aix_use_runtimelinking=no
24889 # Test if we are trying to use run time linking or normal
24890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24891 # need to do runtime linking.
24892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24893 for ld_flag in $LDFLAGS; do
24894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24895 aix_use_runtimelinking=yes
24902 exp_sym_flag='-bexport'
24903 no_entry_flag='-bnoentry'
24906 # When large executables or shared objects are built, AIX ld can
24907 # have problems creating the table of contents. If linking a library
24908 # or program results in "error TOC overflow" add -mminimal-toc to
24909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24912 archive_cmds_GCJ=''
24913 hardcode_direct_GCJ=yes
24914 hardcode_libdir_separator_GCJ=':'
24915 link_all_deplibs_GCJ=yes
24917 if test "$GCC" = yes; then
24918 case $host_os in aix4.[012]|aix4.[012].*)
24919 # We only want to do this on AIX 4.2 and lower, the check
24920 # below for broken collect2 doesn't work under 4.3+
24921 collect2name=`${CC} -print-prog-name=collect2`
24922 if test -f "$collect2name" && \
24923 strings "$collect2name" | grep resolve_lib_name >/dev/null
24925 # We have reworked collect2
24926 hardcode_direct_GCJ=yes
24928 # We have old collect2
24929 hardcode_direct_GCJ=unsupported
24930 # It fails to find uninstalled libraries when the uninstalled
24931 # path is not listed in the libpath. Setting hardcode_minus_L
24932 # to unsupported forces relinking
24933 hardcode_minus_L_GCJ=yes
24934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24935 hardcode_libdir_separator_GCJ=
24939 shared_flag='-shared'
24940 if test "$aix_use_runtimelinking" = yes; then
24941 shared_flag="$shared_flag "'${wl}-G'
24945 if test "$host_cpu" = ia64; then
24946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24947 # chokes on -Wl,-G. The following line is correct:
24950 if test "$aix_use_runtimelinking" = yes; then
24951 shared_flag='${wl}-G'
24953 shared_flag='${wl}-bM:SRE'
24958 # It seems that -bexpall does not export symbols beginning with
24959 # underscore (_), so it is better to generate a list of symbols to export.
24960 always_export_symbols_GCJ=yes
24961 if test "$aix_use_runtimelinking" = yes; then
24962 # Warning - without using the other runtime loading flags (-brtl),
24963 # -berok will link without error, but may produce a broken library.
24964 allow_undefined_flag_GCJ='-berok'
24965 # Determine the default libpath from the value encoded in an empty executable.
24966 cat >conftest.$ac_ext <<_ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24981 rm -f conftest.$ac_objext conftest$ac_exeext
24982 if { (ac_try="$ac_link"
24983 case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988 (eval "$ac_link") 2>conftest.er1
24990 grep -v '^ *+' conftest.er1 >conftest.err
24992 cat conftest.err >&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } &&
24995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24996 { (case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001 (eval "$ac_try") 2>&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest$ac_exeext'
25006 { (case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_try") 2>&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
25016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25018 # Check for a 64-bit object if we didn't find anything.
25019 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; }
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25028 rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
25030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25032 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25033 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"
25035 if test "$host_cpu" = ia64; then
25036 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25037 allow_undefined_flag_GCJ="-z nodefs"
25038 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"
25040 # Determine the default libpath from the value encoded in an empty executable.
25041 cat >conftest.$ac_ext <<_ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h. */
25056 rm -f conftest.$ac_objext conftest$ac_exeext
25057 if { (ac_try="$ac_link"
25058 case "(($ac_try" in
25059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060 *) ac_try_echo=$ac_try;;
25062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063 (eval "$ac_link") 2>conftest.er1
25065 grep -v '^ *+' conftest.er1 >conftest.err
25067 cat conftest.err >&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } &&
25070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25071 { (case "(($ac_try" in
25072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073 *) ac_try_echo=$ac_try;;
25075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076 (eval "$ac_try") 2>&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest$ac_exeext'
25081 { (case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_try") 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; }; then
25091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25093 # Check for a 64-bit object if we didn't find anything.
25094 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; }
25097 echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25103 rm -f core conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
25105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25107 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25108 # Warning - without using the other run time loading flags,
25109 # -berok will link without error, but may produce a broken library.
25110 no_undefined_flag_GCJ=' ${wl}-bernotok'
25111 allow_undefined_flag_GCJ=' ${wl}-berok'
25112 # Exported symbols can be pulled into shared objects from archives
25113 whole_archive_flag_spec_GCJ='$convenience'
25114 archive_cmds_need_lc_GCJ=yes
25115 # This is similar to how AIX traditionally builds its shared libraries.
25116 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'
25122 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)'
25123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25124 hardcode_minus_L_GCJ=yes
25125 # see comment about different semantics on the GNU ld section
25130 export_dynamic_flag_spec_GCJ=-rdynamic
25133 cygwin* | mingw* | pw32*)
25134 # When not using gcc, we currently assume that we are using
25135 # Microsoft Visual C++.
25136 # hardcode_libdir_flag_spec is actually meaningless, as there is
25137 # no search path for DLLs.
25138 hardcode_libdir_flag_spec_GCJ=' '
25139 allow_undefined_flag_GCJ=unsupported
25140 # Tell ltmain to make .lib files, not .a files.
25142 # Tell ltmain to make .dll files, not .so files.
25144 # FIXME: Setting linknames here is a bad hack.
25145 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25146 # The linker will automatically build a .lib file if we build a DLL.
25147 old_archive_From_new_cmds_GCJ='true'
25148 # FIXME: Should let the user specify the lib program.
25149 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25150 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25151 enable_shared_with_static_runtimes_GCJ=yes
25154 darwin* | rhapsody*)
25156 rhapsody* | darwin1.[012])
25157 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25160 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25161 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25163 case ${MACOSX_DEPLOYMENT_TARGET} in
25165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25168 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25174 archive_cmds_need_lc_GCJ=no
25175 hardcode_direct_GCJ=no
25176 hardcode_automatic_GCJ=yes
25177 hardcode_shlibpath_var_GCJ=unsupported
25178 whole_archive_flag_spec_GCJ=''
25179 link_all_deplibs_GCJ=yes
25180 if test "$GCC" = yes ; then
25181 output_verbose_link_cmd='echo'
25182 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25185 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}'
25186 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}'
25188 case $cc_basename in
25190 output_verbose_link_cmd='echo'
25191 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25192 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25194 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}'
25195 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}'
25205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25207 hardcode_shlibpath_var_GCJ=no
25214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25215 # support. Future versions do this automatically, but an explicit c++rt0.o
25216 # does not break anything, and helps significantly (at the cost of a little
25219 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25220 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25221 hardcode_direct_GCJ=yes
25222 hardcode_shlibpath_var_GCJ=no
25225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25227 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25228 hardcode_direct_GCJ=yes
25229 hardcode_minus_L_GCJ=yes
25230 hardcode_shlibpath_var_GCJ=no
25233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25234 freebsd* | kfreebsd*-gnu | dragonfly*)
25235 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237 hardcode_direct_GCJ=yes
25238 hardcode_shlibpath_var_GCJ=no
25242 if test "$GCC" = yes; then
25243 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'
25245 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'
25247 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25248 hardcode_libdir_separator_GCJ=:
25249 hardcode_direct_GCJ=yes
25251 # hardcode_minus_L: Not really in the search PATH,
25252 # but as the default location of the library.
25253 hardcode_minus_L_GCJ=yes
25254 export_dynamic_flag_spec_GCJ='${wl}-E'
25258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25259 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25261 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25263 if test "$with_gnu_ld" = no; then
25264 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25265 hardcode_libdir_separator_GCJ=:
25267 hardcode_direct_GCJ=yes
25268 export_dynamic_flag_spec_GCJ='${wl}-E'
25270 # hardcode_minus_L: Not really in the search PATH,
25271 # but as the default location of the library.
25272 hardcode_minus_L_GCJ=yes
25277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25280 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25283 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25286 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25292 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25295 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25298 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25302 if test "$with_gnu_ld" = no; then
25303 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25304 hardcode_libdir_separator_GCJ=:
25308 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25309 hardcode_direct_GCJ=no
25310 hardcode_shlibpath_var_GCJ=no
25313 hardcode_direct_GCJ=yes
25314 export_dynamic_flag_spec_GCJ='${wl}-E'
25316 # hardcode_minus_L: Not really in the search PATH,
25317 # but as the default location of the library.
25318 hardcode_minus_L_GCJ=yes
25324 irix5* | irix6* | nonstopux*)
25325 if test "$GCC" = yes; then
25326 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'
25328 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'
25329 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25332 hardcode_libdir_separator_GCJ=:
25333 link_all_deplibs_GCJ=yes
25337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25340 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25342 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25343 hardcode_direct_GCJ=yes
25344 hardcode_shlibpath_var_GCJ=no
25348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25349 hardcode_direct_GCJ=yes
25350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25351 hardcode_libdir_separator_GCJ=:
25352 hardcode_shlibpath_var_GCJ=no
25356 hardcode_direct_GCJ=yes
25357 hardcode_shlibpath_var_GCJ=no
25358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25359 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25360 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25362 export_dynamic_flag_spec_GCJ='${wl}-E'
25365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25366 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25367 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25370 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25379 hardcode_minus_L_GCJ=yes
25380 allow_undefined_flag_GCJ=unsupported
25381 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'
25382 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25386 if test "$GCC" = yes; then
25387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25388 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'
25390 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25391 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'
25393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25394 hardcode_libdir_separator_GCJ=:
25397 osf4* | osf5*) # as osf3* with the addition of -msym flag
25398 if test "$GCC" = yes; then
25399 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25400 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'
25401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25403 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25404 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'
25405 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~
25406 $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'
25408 # Both c and cxx compiler support -rpath directly
25409 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25411 hardcode_libdir_separator_GCJ=:
25415 no_undefined_flag_GCJ=' -z text'
25416 if test "$GCC" = yes; then
25418 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25420 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25423 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25425 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25427 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25428 hardcode_shlibpath_var_GCJ=no
25430 solaris2.[0-5] | solaris2.[0-5].*) ;;
25432 # The compiler driver will combine linker options so we
25433 # cannot just pass the convience library names through
25434 # without $wl, iff we do not link with $LD.
25435 # Luckily, gcc supports the same syntax we need for Sun Studio.
25436 # Supported since Solaris 2.6 (maybe 2.5.1?)
25439 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25441 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' ;;
25444 link_all_deplibs_GCJ=yes
25448 if test "x$host_vendor" = xsequent; then
25449 # Use $CC to link under sequent, because it throws in some extra .o
25450 # files that make .init and .fini sections work.
25451 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25453 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25456 hardcode_direct_GCJ=yes
25457 hardcode_minus_L_GCJ=yes
25458 hardcode_shlibpath_var_GCJ=no
25462 case $host_vendor in
25464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25465 hardcode_direct_GCJ=yes # is this really true???
25468 ## LD is ld it makes a PLAMLIB
25469 ## CC just makes a GrossModule.
25470 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25471 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25472 hardcode_direct_GCJ=no
25475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25476 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25479 runpath_var='LD_RUN_PATH'
25480 hardcode_shlibpath_var_GCJ=no
25484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25485 hardcode_shlibpath_var_GCJ=no
25486 export_dynamic_flag_spec_GCJ='-Bexport'
25490 if test -d /usr/nec; then
25491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25492 hardcode_shlibpath_var_GCJ=no
25493 runpath_var=LD_RUN_PATH
25494 hardcode_runpath_var=yes
25499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25500 no_undefined_flag_GCJ='${wl}-z,text'
25501 archive_cmds_need_lc_GCJ=no
25502 hardcode_shlibpath_var_GCJ=no
25503 runpath_var='LD_RUN_PATH'
25505 if test "$GCC" = yes; then
25506 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25507 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25509 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25510 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25514 sysv5* | sco3.2v5* | sco5v6*)
25515 # Note: We can NOT use -z defs as we might desire, because we do not
25516 # link with -lc, and that would cause any symbols used from libc to
25517 # always be unresolved, which means just about no library would
25518 # ever link correctly. If we're not using GNU ld we use -z text
25519 # though, which does catch some bad symbols but isn't as heavy-handed
25521 no_undefined_flag_GCJ='${wl}-z,text'
25522 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25523 archive_cmds_need_lc_GCJ=no
25524 hardcode_shlibpath_var_GCJ=no
25525 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25526 hardcode_libdir_separator_GCJ=':'
25527 link_all_deplibs_GCJ=yes
25528 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25529 runpath_var='LD_RUN_PATH'
25531 if test "$GCC" = yes; then
25532 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25533 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25535 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25536 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25543 hardcode_shlibpath_var_GCJ=no
25552 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25553 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25554 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25557 # Do we need to explicitly link libc?
25559 case "x$archive_cmds_need_lc_GCJ" in
25561 # Assume -lc should be added
25562 archive_cmds_need_lc_GCJ=yes
25564 if test "$enable_shared" = yes && test "$GCC" = yes; then
25565 case $archive_cmds_GCJ in
25567 # FIXME: we may have to deal with multi-command sequences.
25570 # Test whether the compiler implicitly links with -lc since on some
25571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25572 # to ld, don't add -lc before -lgcc.
25573 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25574 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25579 (eval $ac_compile) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } 2>conftest.err; then
25585 libobjs=conftest.$ac_objext
25587 wl=$lt_prog_compiler_wl_GCJ
25588 pic_flag=$lt_prog_compiler_pic_GCJ
25594 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25595 allow_undefined_flag_GCJ=
25596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25597 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }
25602 archive_cmds_need_lc_GCJ=no
25604 archive_cmds_need_lc_GCJ=yes
25606 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25608 cat conftest.err 1>&5
25611 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25612 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25619 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25621 library_names_spec=
25622 libname_spec='lib$name'
25626 postuninstall_cmds=
25630 shlibpath_overrides_runpath=unknown
25632 dynamic_linker="$host_os ld.so"
25633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25634 if test "$GCC" = yes; then
25635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25637 # if the path contains ";" then we assume it to be the separator
25638 # otherwise default to the standard path separator (i.e. ":") - it is
25639 # assumed that no part of a normal pathname contains ";" but that should
25640 # okay in the real world where ";" in dirpaths is itself problematic.
25641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25648 need_lib_prefix=unknown
25649 hardcode_into_libs=no
25651 # when you set need_version to no, make sure it does not cause -set_version
25652 # flags to be left without arguments
25653 need_version=unknown
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25659 shlibpath_var=LIBPATH
25661 # AIX 3 has no versioning support, so we append a major version to the name.
25662 soname_spec='${libname}${release}${shared_ext}$major'
25669 hardcode_into_libs=yes
25670 if test "$host_cpu" = ia64; then
25671 # AIX 5 supports IA64
25672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25673 shlibpath_var=LD_LIBRARY_PATH
25675 # With GCC up to 2.95.x, collect2 would create an import file
25676 # for dependence libraries. The import file would start with
25677 # the line `#! .'. This would cause the generated library to
25678 # depend on `.', always an invalid library. This was fixed in
25679 # development snapshots of GCC prior to 3.0.
25681 aix4 | aix4.[01] | aix4.[01].*)
25682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25687 can_build_shared=no
25691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25692 # soname into executable. Probably we can add versioning support to
25693 # collect2, so additional links can be useful in future.
25694 if test "$aix_use_runtimelinking" = yes; then
25695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25696 # instead of lib<name>.a to let people know that these are not
25697 # typical AIX shared libraries.
25698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25700 # We preserve .a as extension for shared libraries through AIX4.2
25701 # and later when we are not doing run time linking.
25702 library_names_spec='${libname}${release}.a $libname.a'
25703 soname_spec='${libname}${release}${shared_ext}$major'
25705 shlibpath_var=LIBPATH
25710 library_names_spec='$libname.ixlibrary $libname.a'
25711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25712 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'
25716 library_names_spec='${libname}${shared_ext}'
25717 dynamic_linker="$host_os ld.so"
25718 shlibpath_var=LIBRARY_PATH
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25727 shlibpath_var=LD_LIBRARY_PATH
25728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25730 # the default ld.so.conf also contains /usr/contrib/lib and
25731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25732 # libtool to hard-code these into programs
25735 cygwin* | mingw* | pw32*)
25736 version_type=windows
25741 case $GCC,$host_os in
25742 yes,cygwin* | yes,mingw* | yes,pw32*)
25743 library_names_spec='$libname.dll.a'
25744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25745 postinstall_cmds='base_file=`basename \${file}`~
25746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25747 dldir=$destdir/`dirname \$dlpath`~
25748 test -d \$dldir || mkdir -p \$dldir~
25749 $install_prog $dir/$dlname \$dldir/$dlname~
25750 chmod a+x \$dldir/$dlname'
25751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25752 dlpath=$dir/\$dldll~
25754 shlibpath_overrides_runpath=yes
25758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25763 # MinGW DLLs use traditional 'lib' prefix
25764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25767 # It is most probably a Windows format PATH printed by
25768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25769 # path with ; separators, and with drive letters. We can handle the
25770 # drive letters (cygwin fileutils understands them), so leave them,
25771 # especially as we might pass files found there to a mingw objdump,
25772 # which wouldn't understand a cygwinified path. Ahh.
25773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25779 # pw32 DLLs use 'pw' prefix rather than 'lib'
25780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25789 dynamic_linker='Win32 ld.exe'
25790 # FIXME: first we should search . and the directory the executable is in
25794 darwin* | rhapsody*)
25795 dynamic_linker="$host_os dyld"
25796 version_type=darwin
25799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25800 soname_spec='${libname}${release}${major}$shared_ext'
25801 shlibpath_overrides_runpath=yes
25802 shlibpath_var=DYLD_LIBRARY_PATH
25803 shrext_cmds='.dylib'
25804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25805 if test "$GCC" = yes; then
25806 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"`
25808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25818 soname_spec='${libname}${release}${shared_ext}$major'
25819 shlibpath_var=LD_LIBRARY_PATH
25830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25831 soname_spec='${libname}${release}${shared_ext}$major'
25832 shlibpath_var=LD_LIBRARY_PATH
25833 shlibpath_overrides_runpath=no
25834 hardcode_into_libs=yes
25835 dynamic_linker='GNU ld.so'
25838 freebsd* | dragonfly*)
25839 # DragonFly does not have aout. When/if they implement a new
25840 # versioning mechanism, adjust this.
25841 if test -x /usr/bin/objformat; then
25842 objformat=`/usr/bin/objformat`
25845 freebsd[123]*) objformat=aout ;;
25846 *) objformat=elf ;;
25849 version_type=freebsd-$objformat
25850 case $version_type in
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25861 shlibpath_var=LD_LIBRARY_PATH
25864 shlibpath_overrides_runpath=yes
25866 freebsd3.[01]* | freebsdelf3.[01]*)
25867 shlibpath_overrides_runpath=yes
25868 hardcode_into_libs=yes
25870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25872 shlibpath_overrides_runpath=no
25873 hardcode_into_libs=yes
25875 freebsd*) # from 4.6 on
25876 shlibpath_overrides_runpath=yes
25877 hardcode_into_libs=yes
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25887 soname_spec='${libname}${release}${shared_ext}$major'
25888 shlibpath_var=LD_LIBRARY_PATH
25889 hardcode_into_libs=yes
25892 hpux9* | hpux10* | hpux11*)
25893 # Give a soname corresponding to the major version so that dld.sl refuses to
25894 # link against other versions.
25901 hardcode_into_libs=yes
25902 dynamic_linker="$host_os dld.so"
25903 shlibpath_var=LD_LIBRARY_PATH
25904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25906 soname_spec='${libname}${release}${shared_ext}$major'
25907 if test "X$HPUX_IA64_MODE" = X32; then
25908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25916 hardcode_into_libs=yes
25917 dynamic_linker="$host_os dld.sl"
25918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25921 soname_spec='${libname}${release}${shared_ext}$major'
25922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25927 dynamic_linker="$host_os dld.sl"
25928 shlibpath_var=SHLIB_PATH
25929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25931 soname_spec='${libname}${release}${shared_ext}$major'
25934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25935 postinstall_cmds='chmod 555 $lib'
25942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25943 soname_spec='${libname}${release}${shared_ext}$major'
25944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25945 shlibpath_var=LD_LIBRARY_PATH
25946 shlibpath_overrides_runpath=no
25947 hardcode_into_libs=yes
25950 irix5* | irix6* | nonstopux*)
25952 nonstopux*) version_type=nonstopux ;;
25954 if test "$lt_cv_prog_gnu_ld" = yes; then
25962 soname_spec='${libname}${release}${shared_ext}$major'
25963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25965 irix5* | nonstopux*)
25966 libsuff= shlibsuff=
25969 case $LD in # libtool.m4 will add one of these switches to LD
25970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25971 libsuff= shlibsuff= libmagic=32-bit;;
25972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25973 libsuff=32 shlibsuff=N32 libmagic=N32;;
25974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25976 *) libsuff= shlibsuff= libmagic=never-match;;
25980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25981 shlibpath_overrides_runpath=no
25982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25984 hardcode_into_libs=yes
25987 # No shared lib support for Linux oldld, aout, or coff.
25988 linux*oldld* | linux*aout* | linux*coff*)
25992 # This must be Linux ELF.
25997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26000 shlibpath_var=LD_LIBRARY_PATH
26001 shlibpath_overrides_runpath=no
26002 # This implies no fast_install, which is unacceptable.
26003 # Some rework will be needed to allow for fast_install
26004 # before this can be enabled.
26005 hardcode_into_libs=yes
26007 # Append ld.so.conf contents to the search path
26008 if test -f /etc/ld.so.conf; then
26009 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' ' '`
26010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26013 # We used to test for /lib/ld.so.1 and disable shared libraries on
26014 # powerpc, because MkLinux only supported shared libraries with the
26015 # GNU dynamic linker. Since this was broken with cross compilers,
26016 # most powerpc-linux boxes support dynamic linking these days and
26017 # people can always --disable-shared, the test was removed, and we
26018 # assume the GNU/Linux dynamic linker is in use.
26019 dynamic_linker='GNU/Linux ld.so'
26026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26027 soname_spec='${libname}${release}${shared_ext}$major'
26028 shlibpath_var=LD_LIBRARY_PATH
26029 shlibpath_overrides_runpath=no
26030 hardcode_into_libs=yes
26031 dynamic_linker='GNU ld.so'
26038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26041 dynamic_linker='NetBSD (a.out) ld.so'
26043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26044 soname_spec='${libname}${release}${shared_ext}$major'
26045 dynamic_linker='NetBSD ld.elf_so'
26047 shlibpath_var=LD_LIBRARY_PATH
26048 shlibpath_overrides_runpath=yes
26049 hardcode_into_libs=yes
26054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26055 shlibpath_var=LD_LIBRARY_PATH
26056 shlibpath_overrides_runpath=yes
26063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26064 soname_spec='${libname}${release}${shared_ext}$major'
26065 shlibpath_var=LD_LIBRARY_PATH
26066 shlibpath_overrides_runpath=yes
26071 sys_lib_dlsearch_path_spec="/usr/lib"
26073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26076 *) need_version=no ;;
26078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26083 openbsd2.[89] | openbsd2.[89].*)
26084 shlibpath_overrides_runpath=no
26087 shlibpath_overrides_runpath=yes
26091 shlibpath_overrides_runpath=yes
26096 libname_spec='$name'
26099 library_names_spec='$libname${shared_ext} $libname.a'
26100 dynamic_linker='OS/2 ld.exe'
26101 shlibpath_var=LIBPATH
26104 osf3* | osf4* | osf5*)
26108 soname_spec='${libname}${release}${shared_ext}$major'
26109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26110 shlibpath_var=LD_LIBRARY_PATH
26111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26120 soname_spec='${libname}${release}${shared_ext}$major'
26121 shlibpath_var=LD_LIBRARY_PATH
26122 shlibpath_overrides_runpath=yes
26123 hardcode_into_libs=yes
26124 # ldd complains unless libraries are executable
26125 postinstall_cmds='chmod +x $lib'
26130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26132 shlibpath_var=LD_LIBRARY_PATH
26133 shlibpath_overrides_runpath=yes
26134 if test "$with_gnu_ld" = yes; then
26142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26143 soname_spec='${libname}${release}${shared_ext}$major'
26144 shlibpath_var=LD_LIBRARY_PATH
26145 case $host_vendor in
26147 shlibpath_overrides_runpath=no
26149 export_dynamic_flag_spec='${wl}-Blargedynsym'
26150 runpath_var=LD_RUN_PATH
26158 shlibpath_overrides_runpath=no
26159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26165 if test -d /usr/nec ;then
26167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26168 soname_spec='$libname${shared_ext}.$major'
26169 shlibpath_var=LD_LIBRARY_PATH
26173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26174 version_type=freebsd-elf
26177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26178 soname_spec='${libname}${release}${shared_ext}$major'
26179 shlibpath_var=LD_LIBRARY_PATH
26180 hardcode_into_libs=yes
26181 if test "$with_gnu_ld" = yes; then
26182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26183 shlibpath_overrides_runpath=no
26185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26186 shlibpath_overrides_runpath=yes
26189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26193 sys_lib_dlsearch_path_spec='/usr/lib'
26198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26199 soname_spec='${libname}${release}${shared_ext}$major'
26200 shlibpath_var=LD_LIBRARY_PATH
26207 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26208 echo "${ECHO_T}$dynamic_linker" >&6; }
26209 test "$dynamic_linker" = no && can_build_shared=no
26211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26212 if test "$GCC" = yes; then
26213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26216 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26217 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26218 hardcode_action_GCJ=
26219 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26220 test -n "$runpath_var_GCJ" || \
26221 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26223 # We can hardcode non-existant directories.
26224 if test "$hardcode_direct_GCJ" != no &&
26225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26226 # have to relink, otherwise we might link with an installed library
26227 # when we should be linking with a yet-to-be-installed one
26228 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26229 test "$hardcode_minus_L_GCJ" != no; then
26230 # Linking always hardcodes the temporary library directory.
26231 hardcode_action_GCJ=relink
26233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26234 hardcode_action_GCJ=immediate
26237 # We cannot hardcode anything, or else we can only hardcode existing
26239 hardcode_action_GCJ=unsupported
26241 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26242 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26244 if test "$hardcode_action_GCJ" = relink; then
26245 # Fast installation is not supported
26246 enable_fast_install=no
26247 elif test "$shlibpath_overrides_runpath" = yes ||
26248 test "$enable_shared" = no; then
26249 # Fast installation is not necessary
26250 enable_fast_install=needless
26254 # The else clause should only fire when bootstrapping the
26255 # libtool distribution, otherwise you forgot to ship ltmain.sh
26256 # with your package, and you will get complaints that there are
26257 # no rules to generate ltmain.sh.
26258 if test -f "$ltmain"; then
26259 # See if we are running on zsh, and set the options which allow our commands through
26260 # without removal of \ escapes.
26261 if test -n "${ZSH_VERSION+set}" ; then
26262 setopt NO_GLOB_SUBST
26264 # Now quote all the things that may contain metacharacters while being
26265 # careful not to overquote the AC_SUBSTed values. We take copies of the
26266 # variables and quote the copies for generation of the libtool script.
26267 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26269 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26270 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26271 deplibs_check_method reload_flag reload_cmds need_locks \
26272 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26273 lt_cv_sys_global_symbol_to_c_name_address \
26274 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26275 old_postinstall_cmds old_postuninstall_cmds \
26279 lt_prog_compiler_wl_GCJ \
26280 lt_prog_compiler_pic_GCJ \
26281 lt_prog_compiler_static_GCJ \
26282 lt_prog_compiler_no_builtin_flag_GCJ \
26283 export_dynamic_flag_spec_GCJ \
26284 thread_safe_flag_spec_GCJ \
26285 whole_archive_flag_spec_GCJ \
26286 enable_shared_with_static_runtimes_GCJ \
26287 old_archive_cmds_GCJ \
26288 old_archive_from_new_cmds_GCJ \
26289 predep_objects_GCJ \
26290 postdep_objects_GCJ \
26293 compiler_lib_search_path_GCJ \
26295 archive_expsym_cmds_GCJ \
26296 postinstall_cmds_GCJ \
26297 postuninstall_cmds_GCJ \
26298 old_archive_from_expsyms_cmds_GCJ \
26299 allow_undefined_flag_GCJ \
26300 no_undefined_flag_GCJ \
26301 export_symbols_cmds_GCJ \
26302 hardcode_libdir_flag_spec_GCJ \
26303 hardcode_libdir_flag_spec_ld_GCJ \
26304 hardcode_libdir_separator_GCJ \
26305 hardcode_automatic_GCJ \
26307 module_expsym_cmds_GCJ \
26308 lt_cv_prog_compiler_c_o_GCJ \
26309 exclude_expsyms_GCJ \
26310 include_expsyms_GCJ; do
26313 old_archive_cmds_GCJ | \
26314 old_archive_from_new_cmds_GCJ | \
26315 archive_cmds_GCJ | \
26316 archive_expsym_cmds_GCJ | \
26317 module_cmds_GCJ | \
26318 module_expsym_cmds_GCJ | \
26319 old_archive_from_expsyms_cmds_GCJ | \
26320 export_symbols_cmds_GCJ | \
26321 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26322 postinstall_cmds | postuninstall_cmds | \
26323 old_postinstall_cmds | old_postuninstall_cmds | \
26324 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26325 # Double-quote double-evaled strings.
26326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26335 *'\$0 --fallback-echo"')
26336 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26342 cat <<__EOF__ >> "$cfgfile"
26343 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26347 # Shell to use when invoking shell scripts.
26350 # Whether or not to build shared libraries.
26351 build_libtool_libs=$enable_shared
26353 # Whether or not to build static libraries.
26354 build_old_libs=$enable_static
26356 # Whether or not to add -lc for building shared libraries.
26357 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26359 # Whether or not to disallow shared libs when runtime libs are static
26360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26362 # Whether or not to optimize for fast installation.
26363 fast_install=$enable_fast_install
26366 host_alias=$host_alias
26370 # The build system.
26371 build_alias=$build_alias
26375 # An echo program that does not interpret backslashes.
26380 AR_FLAGS=$lt_AR_FLAGS
26385 # LTCC compiler flags.
26386 LTCFLAGS=$lt_LTCFLAGS
26388 # A language-specific compiler.
26389 CC=$lt_compiler_GCJ
26391 # Is the compiler the GNU C compiler?
26397 # The linker used to build libraries.
26400 # Whether we need hard or soft links.
26403 # A BSD-compatible nm program.
26406 # A symbol stripping program
26409 # Used to examine libraries when file_magic_cmd begins "file"
26410 MAGIC_CMD=$MAGIC_CMD
26412 # Used on cygwin: DLL creation program.
26415 # Used on cygwin: object dumper.
26418 # Used on cygwin: assembler.
26421 # The name of the directory that contains temporary libtool files.
26424 # How to create reloadable object files.
26425 reload_flag=$lt_reload_flag
26426 reload_cmds=$lt_reload_cmds
26428 # How to pass a linker flag through the compiler.
26429 wl=$lt_lt_prog_compiler_wl_GCJ
26431 # Object file suffix (normally "o").
26432 objext="$ac_objext"
26434 # Old archive suffix (normally "a").
26437 # Shared library suffix (normally ".so").
26438 shrext_cmds='$shrext_cmds'
26440 # Executable file suffix (normally "").
26443 # Additional compiler flags for building library objects.
26444 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26447 # What is the maximum length of a command?
26448 max_cmd_len=$lt_cv_sys_max_cmd_len
26450 # Does compiler simultaneously support -c and -o options?
26451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26453 # Must we lock files when doing compilation?
26454 need_locks=$lt_need_locks
26456 # Do we need the lib prefix for modules?
26457 need_lib_prefix=$need_lib_prefix
26459 # Do we need a version for libraries?
26460 need_version=$need_version
26462 # Whether dlopen is supported.
26463 dlopen_support=$enable_dlopen
26465 # Whether dlopen of programs is supported.
26466 dlopen_self=$enable_dlopen_self
26468 # Whether dlopen of statically linked programs is supported.
26469 dlopen_self_static=$enable_dlopen_self_static
26471 # Compiler flag to prevent dynamic linking.
26472 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26474 # Compiler flag to turn off builtin functions.
26475 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26477 # Compiler flag to allow reflexive dlopens.
26478 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26480 # Compiler flag to generate shared objects directly from archives.
26481 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26483 # Compiler flag to generate thread-safe objects.
26484 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26486 # Library versioning type.
26487 version_type=$version_type
26489 # Format of library name prefix.
26490 libname_spec=$lt_libname_spec
26492 # List of archive names. First name is the real one, the rest are links.
26493 # The last name is the one that the linker finds with -lNAME.
26494 library_names_spec=$lt_library_names_spec
26496 # The coded name of the library, if different from the real name.
26497 soname_spec=$lt_soname_spec
26499 # Commands used to build and install an old-style archive.
26501 old_archive_cmds=$lt_old_archive_cmds_GCJ
26502 old_postinstall_cmds=$lt_old_postinstall_cmds
26503 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26505 # Create an old-style archive from a shared archive.
26506 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26508 # Create a temporary old-style archive to link instead of a shared archive.
26509 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26511 # Commands used to build and install a shared archive.
26512 archive_cmds=$lt_archive_cmds_GCJ
26513 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26514 postinstall_cmds=$lt_postinstall_cmds
26515 postuninstall_cmds=$lt_postuninstall_cmds
26517 # Commands used to build a loadable module (assumed same as above if empty)
26518 module_cmds=$lt_module_cmds_GCJ
26519 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26521 # Commands to strip libraries.
26522 old_striplib=$lt_old_striplib
26523 striplib=$lt_striplib
26525 # Dependencies to place before the objects being linked to create a
26527 predep_objects=$lt_predep_objects_GCJ
26529 # Dependencies to place after the objects being linked to create a
26531 postdep_objects=$lt_postdep_objects_GCJ
26533 # Dependencies to place before the objects being linked to create a
26535 predeps=$lt_predeps_GCJ
26537 # Dependencies to place after the objects being linked to create a
26539 postdeps=$lt_postdeps_GCJ
26541 # The library search path used internally by the compiler when linking
26542 # a shared library.
26543 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26545 # Method to check whether dependent libraries are shared objects.
26546 deplibs_check_method=$lt_deplibs_check_method
26548 # Command to use when deplibs_check_method == file_magic.
26549 file_magic_cmd=$lt_file_magic_cmd
26551 # Flag that allows shared libraries with undefined symbols to be built.
26552 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26554 # Flag that forces no undefined symbols.
26555 no_undefined_flag=$lt_no_undefined_flag_GCJ
26557 # Commands used to finish a libtool library installation in a directory.
26558 finish_cmds=$lt_finish_cmds
26560 # Same as above, but a single script fragment to be evaled but not shown.
26561 finish_eval=$lt_finish_eval
26563 # Take the output of nm and produce a listing of raw symbols and C names.
26564 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26566 # Transform the output of nm in a proper C declaration
26567 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26569 # Transform the output of nm in a C name address pair
26570 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26572 # This is the shared library runtime path variable.
26573 runpath_var=$runpath_var
26575 # This is the shared library path variable.
26576 shlibpath_var=$shlibpath_var
26578 # Is shlibpath searched before the hard-coded library search path?
26579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26581 # How to hardcode a shared library path into an executable.
26582 hardcode_action=$hardcode_action_GCJ
26584 # Whether we should hardcode library paths into libraries.
26585 hardcode_into_libs=$hardcode_into_libs
26587 # Flag to hardcode \$libdir into a binary during linking.
26588 # This must work even if \$libdir does not exist.
26589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26591 # If ld is used when linking, flag to hardcode \$libdir into
26592 # a binary during linking. This must work even if \$libdir does
26594 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26596 # Whether we need a single -rpath flag with a separated argument.
26597 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26599 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26600 # resulting binary.
26601 hardcode_direct=$hardcode_direct_GCJ
26603 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26604 # resulting binary.
26605 hardcode_minus_L=$hardcode_minus_L_GCJ
26607 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26608 # the resulting binary.
26609 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26611 # Set to yes if building a shared library automatically hardcodes DIR into the library
26612 # and all subsequent libraries and executables linked against it.
26613 hardcode_automatic=$hardcode_automatic_GCJ
26615 # Variables whose values should be saved in libtool wrapper scripts and
26616 # restored at relink time.
26617 variables_saved_for_relink="$variables_saved_for_relink"
26619 # Whether libtool must link a program against all its dependency libraries.
26620 link_all_deplibs=$link_all_deplibs_GCJ
26622 # Compile-time system search path for libraries
26623 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26625 # Run-time system search path for libraries
26626 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26628 # Fix the shell variable \$srcfile for the compiler.
26629 fix_srcfile_path="$fix_srcfile_path_GCJ"
26631 # Set to yes if exported symbols are required.
26632 always_export_symbols=$always_export_symbols_GCJ
26634 # The commands to list exported symbols.
26635 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26637 # The commands to extract the exported symbol list from a shared archive.
26638 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26640 # Symbols that should not be listed in the preloaded symbols.
26641 exclude_expsyms=$lt_exclude_expsyms_GCJ
26643 # Symbols that must always be exported.
26644 include_expsyms=$lt_include_expsyms_GCJ
26646 # ### END LIBTOOL TAG CONFIG: $tagname
26652 # If there is no Makefile yet, we rely on a make rule to execute
26653 # `config.status --recheck' to rerun these tests and create the
26654 # libtool script then.
26655 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26656 if test -f "$ltmain_in"; then
26657 test -f Makefile && make "$ltmain"
26663 ac_cpp='$CPP $CPPFLAGS'
26664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26677 ac_cpp='$CPP $CPPFLAGS'
26678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26683 # Source file extension for RC test sources.
26686 # Object file extension for compiled RC test sources.
26690 # Code to be used in simple compile tests
26691 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26693 # Code to be used in simple link tests
26694 lt_simple_link_test_code="$lt_simple_compile_test_code"
26696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26698 # If no C compiler was specified, use CC.
26701 # If no C compiler flags were specified, use CFLAGS.
26702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26704 # Allow CC to be a program name with arguments.
26708 # save warnings/boilerplate of simple test code
26709 ac_outfile=conftest.$ac_objext
26710 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26712 _lt_compiler_boilerplate=`cat conftest.err`
26715 ac_outfile=conftest.$ac_objext
26716 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26718 _lt_linker_boilerplate=`cat conftest.err`
26722 # Allow CC to be a program name with arguments.
26727 for cc_temp in $compiler""; do
26729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26737 lt_cv_prog_compiler_c_o_RC=yes
26739 # The else clause should only fire when bootstrapping the
26740 # libtool distribution, otherwise you forgot to ship ltmain.sh
26741 # with your package, and you will get complaints that there are
26742 # no rules to generate ltmain.sh.
26743 if test -f "$ltmain"; then
26744 # See if we are running on zsh, and set the options which allow our commands through
26745 # without removal of \ escapes.
26746 if test -n "${ZSH_VERSION+set}" ; then
26747 setopt NO_GLOB_SUBST
26749 # Now quote all the things that may contain metacharacters while being
26750 # careful not to overquote the AC_SUBSTed values. We take copies of the
26751 # variables and quote the copies for generation of the libtool script.
26752 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26756 deplibs_check_method reload_flag reload_cmds need_locks \
26757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26758 lt_cv_sys_global_symbol_to_c_name_address \
26759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26760 old_postinstall_cmds old_postuninstall_cmds \
26764 lt_prog_compiler_wl_RC \
26765 lt_prog_compiler_pic_RC \
26766 lt_prog_compiler_static_RC \
26767 lt_prog_compiler_no_builtin_flag_RC \
26768 export_dynamic_flag_spec_RC \
26769 thread_safe_flag_spec_RC \
26770 whole_archive_flag_spec_RC \
26771 enable_shared_with_static_runtimes_RC \
26772 old_archive_cmds_RC \
26773 old_archive_from_new_cmds_RC \
26774 predep_objects_RC \
26775 postdep_objects_RC \
26778 compiler_lib_search_path_RC \
26780 archive_expsym_cmds_RC \
26781 postinstall_cmds_RC \
26782 postuninstall_cmds_RC \
26783 old_archive_from_expsyms_cmds_RC \
26784 allow_undefined_flag_RC \
26785 no_undefined_flag_RC \
26786 export_symbols_cmds_RC \
26787 hardcode_libdir_flag_spec_RC \
26788 hardcode_libdir_flag_spec_ld_RC \
26789 hardcode_libdir_separator_RC \
26790 hardcode_automatic_RC \
26792 module_expsym_cmds_RC \
26793 lt_cv_prog_compiler_c_o_RC \
26794 exclude_expsyms_RC \
26795 include_expsyms_RC; do
26798 old_archive_cmds_RC | \
26799 old_archive_from_new_cmds_RC | \
26800 archive_cmds_RC | \
26801 archive_expsym_cmds_RC | \
26803 module_expsym_cmds_RC | \
26804 old_archive_from_expsyms_cmds_RC | \
26805 export_symbols_cmds_RC | \
26806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26807 postinstall_cmds | postuninstall_cmds | \
26808 old_postinstall_cmds | old_postuninstall_cmds | \
26809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26810 # Double-quote double-evaled strings.
26811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26820 *'\$0 --fallback-echo"')
26821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26827 cat <<__EOF__ >> "$cfgfile"
26828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26832 # Shell to use when invoking shell scripts.
26835 # Whether or not to build shared libraries.
26836 build_libtool_libs=$enable_shared
26838 # Whether or not to build static libraries.
26839 build_old_libs=$enable_static
26841 # Whether or not to add -lc for building shared libraries.
26842 build_libtool_need_lc=$archive_cmds_need_lc_RC
26844 # Whether or not to disallow shared libs when runtime libs are static
26845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26847 # Whether or not to optimize for fast installation.
26848 fast_install=$enable_fast_install
26851 host_alias=$host_alias
26855 # The build system.
26856 build_alias=$build_alias
26860 # An echo program that does not interpret backslashes.
26865 AR_FLAGS=$lt_AR_FLAGS
26870 # LTCC compiler flags.
26871 LTCFLAGS=$lt_LTCFLAGS
26873 # A language-specific compiler.
26876 # Is the compiler the GNU C compiler?
26882 # The linker used to build libraries.
26885 # Whether we need hard or soft links.
26888 # A BSD-compatible nm program.
26891 # A symbol stripping program
26894 # Used to examine libraries when file_magic_cmd begins "file"
26895 MAGIC_CMD=$MAGIC_CMD
26897 # Used on cygwin: DLL creation program.
26900 # Used on cygwin: object dumper.
26903 # Used on cygwin: assembler.
26906 # The name of the directory that contains temporary libtool files.
26909 # How to create reloadable object files.
26910 reload_flag=$lt_reload_flag
26911 reload_cmds=$lt_reload_cmds
26913 # How to pass a linker flag through the compiler.
26914 wl=$lt_lt_prog_compiler_wl_RC
26916 # Object file suffix (normally "o").
26917 objext="$ac_objext"
26919 # Old archive suffix (normally "a").
26922 # Shared library suffix (normally ".so").
26923 shrext_cmds='$shrext_cmds'
26925 # Executable file suffix (normally "").
26928 # Additional compiler flags for building library objects.
26929 pic_flag=$lt_lt_prog_compiler_pic_RC
26932 # What is the maximum length of a command?
26933 max_cmd_len=$lt_cv_sys_max_cmd_len
26935 # Does compiler simultaneously support -c and -o options?
26936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26938 # Must we lock files when doing compilation?
26939 need_locks=$lt_need_locks
26941 # Do we need the lib prefix for modules?
26942 need_lib_prefix=$need_lib_prefix
26944 # Do we need a version for libraries?
26945 need_version=$need_version
26947 # Whether dlopen is supported.
26948 dlopen_support=$enable_dlopen
26950 # Whether dlopen of programs is supported.
26951 dlopen_self=$enable_dlopen_self
26953 # Whether dlopen of statically linked programs is supported.
26954 dlopen_self_static=$enable_dlopen_self_static
26956 # Compiler flag to prevent dynamic linking.
26957 link_static_flag=$lt_lt_prog_compiler_static_RC
26959 # Compiler flag to turn off builtin functions.
26960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26962 # Compiler flag to allow reflexive dlopens.
26963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26965 # Compiler flag to generate shared objects directly from archives.
26966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26968 # Compiler flag to generate thread-safe objects.
26969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26971 # Library versioning type.
26972 version_type=$version_type
26974 # Format of library name prefix.
26975 libname_spec=$lt_libname_spec
26977 # List of archive names. First name is the real one, the rest are links.
26978 # The last name is the one that the linker finds with -lNAME.
26979 library_names_spec=$lt_library_names_spec
26981 # The coded name of the library, if different from the real name.
26982 soname_spec=$lt_soname_spec
26984 # Commands used to build and install an old-style archive.
26986 old_archive_cmds=$lt_old_archive_cmds_RC
26987 old_postinstall_cmds=$lt_old_postinstall_cmds
26988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26990 # Create an old-style archive from a shared archive.
26991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26993 # Create a temporary old-style archive to link instead of a shared archive.
26994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26996 # Commands used to build and install a shared archive.
26997 archive_cmds=$lt_archive_cmds_RC
26998 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26999 postinstall_cmds=$lt_postinstall_cmds
27000 postuninstall_cmds=$lt_postuninstall_cmds
27002 # Commands used to build a loadable module (assumed same as above if empty)
27003 module_cmds=$lt_module_cmds_RC
27004 module_expsym_cmds=$lt_module_expsym_cmds_RC
27006 # Commands to strip libraries.
27007 old_striplib=$lt_old_striplib
27008 striplib=$lt_striplib
27010 # Dependencies to place before the objects being linked to create a
27012 predep_objects=$lt_predep_objects_RC
27014 # Dependencies to place after the objects being linked to create a
27016 postdep_objects=$lt_postdep_objects_RC
27018 # Dependencies to place before the objects being linked to create a
27020 predeps=$lt_predeps_RC
27022 # Dependencies to place after the objects being linked to create a
27024 postdeps=$lt_postdeps_RC
27026 # The library search path used internally by the compiler when linking
27027 # a shared library.
27028 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27030 # Method to check whether dependent libraries are shared objects.
27031 deplibs_check_method=$lt_deplibs_check_method
27033 # Command to use when deplibs_check_method == file_magic.
27034 file_magic_cmd=$lt_file_magic_cmd
27036 # Flag that allows shared libraries with undefined symbols to be built.
27037 allow_undefined_flag=$lt_allow_undefined_flag_RC
27039 # Flag that forces no undefined symbols.
27040 no_undefined_flag=$lt_no_undefined_flag_RC
27042 # Commands used to finish a libtool library installation in a directory.
27043 finish_cmds=$lt_finish_cmds
27045 # Same as above, but a single script fragment to be evaled but not shown.
27046 finish_eval=$lt_finish_eval
27048 # Take the output of nm and produce a listing of raw symbols and C names.
27049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27051 # Transform the output of nm in a proper C declaration
27052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27054 # Transform the output of nm in a C name address pair
27055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27057 # This is the shared library runtime path variable.
27058 runpath_var=$runpath_var
27060 # This is the shared library path variable.
27061 shlibpath_var=$shlibpath_var
27063 # Is shlibpath searched before the hard-coded library search path?
27064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27066 # How to hardcode a shared library path into an executable.
27067 hardcode_action=$hardcode_action_RC
27069 # Whether we should hardcode library paths into libraries.
27070 hardcode_into_libs=$hardcode_into_libs
27072 # Flag to hardcode \$libdir into a binary during linking.
27073 # This must work even if \$libdir does not exist.
27074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27076 # If ld is used when linking, flag to hardcode \$libdir into
27077 # a binary during linking. This must work even if \$libdir does
27079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27081 # Whether we need a single -rpath flag with a separated argument.
27082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27085 # resulting binary.
27086 hardcode_direct=$hardcode_direct_RC
27088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27089 # resulting binary.
27090 hardcode_minus_L=$hardcode_minus_L_RC
27092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27093 # the resulting binary.
27094 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27096 # Set to yes if building a shared library automatically hardcodes DIR into the library
27097 # and all subsequent libraries and executables linked against it.
27098 hardcode_automatic=$hardcode_automatic_RC
27100 # Variables whose values should be saved in libtool wrapper scripts and
27101 # restored at relink time.
27102 variables_saved_for_relink="$variables_saved_for_relink"
27104 # Whether libtool must link a program against all its dependency libraries.
27105 link_all_deplibs=$link_all_deplibs_RC
27107 # Compile-time system search path for libraries
27108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27110 # Run-time system search path for libraries
27111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27113 # Fix the shell variable \$srcfile for the compiler.
27114 fix_srcfile_path="$fix_srcfile_path_RC"
27116 # Set to yes if exported symbols are required.
27117 always_export_symbols=$always_export_symbols_RC
27119 # The commands to list exported symbols.
27120 export_symbols_cmds=$lt_export_symbols_cmds_RC
27122 # The commands to extract the exported symbol list from a shared archive.
27123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27125 # Symbols that should not be listed in the preloaded symbols.
27126 exclude_expsyms=$lt_exclude_expsyms_RC
27128 # Symbols that must always be exported.
27129 include_expsyms=$lt_include_expsyms_RC
27131 # ### END LIBTOOL TAG CONFIG: $tagname
27137 # If there is no Makefile yet, we rely on a make rule to execute
27138 # `config.status --recheck' to rerun these tests and create the
27139 # libtool script then.
27140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27141 if test -f "$ltmain_in"; then
27142 test -f Makefile && make "$ltmain"
27148 ac_cpp='$CPP $CPPFLAGS'
27149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27158 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27159 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27160 { (exit 1); exit 1; }; }
27164 # Append the new tag name to the list of available tags.
27165 if test -n "$tagname" ; then
27166 available_tags="$available_tags $tagname"
27172 # Now substitute the updated list of available tags.
27173 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27174 mv "${ofile}T" "$ofile"
27178 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27179 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27180 { (exit 1); exit 1; }; }
27186 # This can be used to rebuild libtool when needed
27187 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27189 # Always use our own libtool.
27190 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27192 # Prevent multiple expansion
27214 if test "$lt_cv_dlopen_self" = "yes" ; then
27216 cat >>confdefs.h <<\_ACEOF
27217 #define CAN_DLOPEN_SELF 1
27223 if test "$WITH_LLVMGCCDIR" = "default" ; then
27224 LLVMGCC="llvm-gcc${EXEEXT}"
27225 LLVMGXX="llvm-g++${EXEEXT}"
27226 LLVMGCCCOMMAND="$LLVMGCC"
27227 LLVMGXXCOMMAND="$LLVMGXX"
27228 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27230 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27232 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27233 set dummy $LLVMGCC; ac_word=$2
27234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27236 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27241 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245 for as_dir in $PATH
27248 test -z "$as_dir" && as_dir=.
27249 for ac_exec_ext in '' $ac_executable_extensions; do
27250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27251 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27262 LLVMGCC=$ac_cv_path_LLVMGCC
27263 if test -n "$LLVMGCC"; then
27264 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27265 echo "${ECHO_T}$LLVMGCC" >&6; }
27267 { echo "$as_me:$LINENO: result: no" >&5
27268 echo "${ECHO_T}no" >&6; }
27272 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27273 set dummy $LLVMGXX; ac_word=$2
27274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27276 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27281 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27285 for as_dir in $PATH
27288 test -z "$as_dir" && as_dir=.
27289 for ac_exec_ext in '' $ac_executable_extensions; do
27290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27291 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27302 LLVMGXX=$ac_cv_path_LLVMGXX
27303 if test -n "$LLVMGXX"; then
27304 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27305 echo "${ECHO_T}$LLVMGXX" >&6; }
27307 { echo "$as_me:$LINENO: result: no" >&5
27308 echo "${ECHO_T}no" >&6; }
27313 if test -z "$LLVMGCC"; then
27314 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27315 LLVMGCCCOMMAND="$LLVMGCC"
27317 if test -z "$LLVMGXX"; then
27318 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27319 LLVMGXXCOMMAND="$LLVMGXX"
27326 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27328 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27333 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27334 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27347 if test "$GCC" != "yes" && test "$ICC" != "yes"
27349 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27350 echo "$as_me: error: gcc|icc required but not found" >&2;}
27351 { (exit 1); exit 1; }; }
27354 if test "$GXX" != "yes" && test "$IXX" != "yes"
27356 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27357 echo "$as_me: error: g++|icc required but not found" >&2;}
27358 { (exit 1); exit 1; }; }
27361 if test "$GCC" = "yes"
27363 cat >conftest.$ac_ext <<_ACEOF
27364 #if !defined(__GNUC__) || __GNUC__ < 3
27365 #error Unsupported GCC version
27369 rm -f conftest.$ac_objext
27370 if { (ac_try="$ac_compile"
27371 case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_compile") 2>conftest.er1
27378 grep -v '^ *+' conftest.er1 >conftest.err
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } &&
27383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27384 { (case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_try") 2>&5
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; } &&
27393 { ac_try='test -s conftest.$ac_objext'
27394 { (case "(($ac_try" in
27395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396 *) ac_try_echo=$ac_try;;
27398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27399 (eval "$ac_try") 2>&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27405 echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27408 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27409 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27410 { (exit 1); exit 1; }; }
27413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 if test -z "$llvm_cv_gnu_make_command"
27418 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27419 echo "$as_me: error: GNU Make required but not found" >&2;}
27420 { (exit 1); exit 1; }; }
27423 { echo "$as_me:$LINENO: result: ok" >&5
27424 echo "${ECHO_T}ok" >&6; }
27428 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27429 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27430 if test "${ac_cv_lib_m_sin+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27433 ac_check_lib_save_LIBS=$LIBS
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27442 /* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
27466 grep -v '^ *+' conftest.er1 >conftest.err
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
27491 ac_cv_lib_m_sin=yes
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27499 rm -f core conftest.err conftest.$ac_objext \
27500 conftest$ac_exeext conftest.$ac_ext
27501 LIBS=$ac_check_lib_save_LIBS
27503 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27504 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27505 if test $ac_cv_lib_m_sin = yes; then
27506 cat >>confdefs.h <<_ACEOF
27507 #define HAVE_LIBM 1
27514 if test "$llvm_cv_os_type" = "MingW" ; then
27516 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27517 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27518 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27519 echo $ECHO_N "(cached) $ECHO_C" >&6
27521 ac_check_lib_save_LIBS=$LIBS
27522 LIBS="-limagehlp $LIBS"
27523 cat >conftest.$ac_ext <<_ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27539 rm -f conftest.$ac_objext conftest$ac_exeext
27540 if { (ac_try="$ac_link"
27541 case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_link") 2>conftest.er1
27548 grep -v '^ *+' conftest.er1 >conftest.err
27550 cat conftest.err >&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } &&
27553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27554 { (case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_try") 2>&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; } &&
27563 { ac_try='test -s conftest$ac_exeext'
27564 { (case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_try") 2>&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 ac_cv_lib_imagehlp_main=yes
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 ac_cv_lib_imagehlp_main=no
27581 rm -f core conftest.err conftest.$ac_objext \
27582 conftest$ac_exeext conftest.$ac_ext
27583 LIBS=$ac_check_lib_save_LIBS
27585 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27586 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27587 if test $ac_cv_lib_imagehlp_main = yes; then
27588 cat >>confdefs.h <<_ACEOF
27589 #define HAVE_LIBIMAGEHLP 1
27592 LIBS="-limagehlp $LIBS"
27597 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27598 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27599 if test "${ac_cv_lib_psapi_main+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27602 ac_check_lib_save_LIBS=$LIBS
27603 LIBS="-lpsapi $LIBS"
27604 cat >conftest.$ac_ext <<_ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27620 rm -f conftest.$ac_objext conftest$ac_exeext
27621 if { (ac_try="$ac_link"
27622 case "(($ac_try" in
27623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624 *) ac_try_echo=$ac_try;;
27626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27627 (eval "$ac_link") 2>conftest.er1
27629 grep -v '^ *+' conftest.er1 >conftest.err
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } &&
27634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27635 { (case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_try") 2>&5
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; } &&
27644 { ac_try='test -s conftest$ac_exeext'
27645 { (case "(($ac_try" in
27646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27647 *) ac_try_echo=$ac_try;;
27649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27650 (eval "$ac_try") 2>&5
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); }; }; then
27654 ac_cv_lib_psapi_main=yes
27656 echo "$as_me: failed program was:" >&5
27657 sed 's/^/| /' conftest.$ac_ext >&5
27659 ac_cv_lib_psapi_main=no
27662 rm -f core conftest.err conftest.$ac_objext \
27663 conftest$ac_exeext conftest.$ac_ext
27664 LIBS=$ac_check_lib_save_LIBS
27666 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27667 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27668 if test $ac_cv_lib_psapi_main = yes; then
27669 cat >>confdefs.h <<_ACEOF
27670 #define HAVE_LIBPSAPI 1
27673 LIBS="-lpsapi $LIBS"
27679 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27680 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27681 if test "${ac_cv_search_dlopen+set}" = set; then
27682 echo $ECHO_N "(cached) $ECHO_C" >&6
27684 ac_func_search_save_LIBS=$LIBS
27685 cat >conftest.$ac_ext <<_ACEOF
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h. */
27692 /* Override any GCC internal prototype to avoid an error.
27693 Use char because int might match the return type of a GCC
27694 builtin and then its argument prototype would still apply. */
27707 for ac_lib in '' dl; do
27708 if test -z "$ac_lib"; then
27709 ac_res="none required"
27712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27714 rm -f conftest.$ac_objext conftest$ac_exeext
27715 if { (ac_try="$ac_link"
27716 case "(($ac_try" in
27717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718 *) ac_try_echo=$ac_try;;
27720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27721 (eval "$ac_link") 2>conftest.er1
27723 grep -v '^ *+' conftest.er1 >conftest.err
27725 cat conftest.err >&5
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); } &&
27728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27729 { (case "(($ac_try" in
27730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731 *) ac_try_echo=$ac_try;;
27733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734 (eval "$ac_try") 2>&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; } &&
27738 { ac_try='test -s conftest$ac_exeext'
27739 { (case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_try") 2>&5
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
27748 ac_cv_search_dlopen=$ac_res
27750 echo "$as_me: failed program was:" >&5
27751 sed 's/^/| /' conftest.$ac_ext >&5
27756 rm -f core conftest.err conftest.$ac_objext \
27758 if test "${ac_cv_search_dlopen+set}" = set; then
27762 if test "${ac_cv_search_dlopen+set}" = set; then
27765 ac_cv_search_dlopen=no
27767 rm conftest.$ac_ext
27768 LIBS=$ac_func_search_save_LIBS
27770 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27771 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27772 ac_res=$ac_cv_search_dlopen
27773 if test "$ac_res" != no; then
27774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27776 cat >>confdefs.h <<\_ACEOF
27777 #define HAVE_DLOPEN 1
27781 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27782 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27786 if test "$llvm_cv_enable_libffi" = "yes" ; then
27787 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27788 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27789 if test "${ac_cv_search_ffi_call+set}" = set; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27792 ac_func_search_save_LIBS=$LIBS
27793 cat >conftest.$ac_ext <<_ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h. */
27800 /* Override any GCC internal prototype to avoid an error.
27801 Use char because int might match the return type of a GCC
27802 builtin and then its argument prototype would still apply. */
27810 return ffi_call ();
27815 for ac_lib in '' ffi; do
27816 if test -z "$ac_lib"; then
27817 ac_res="none required"
27820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27822 rm -f conftest.$ac_objext conftest$ac_exeext
27823 if { (ac_try="$ac_link"
27824 case "(($ac_try" in
27825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826 *) ac_try_echo=$ac_try;;
27828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829 (eval "$ac_link") 2>conftest.er1
27831 grep -v '^ *+' conftest.er1 >conftest.err
27833 cat conftest.err >&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); } &&
27836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27837 { (case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_try") 2>&5
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); }; } &&
27846 { ac_try='test -s conftest$ac_exeext'
27847 { (case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852 (eval "$ac_try") 2>&5
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; }; then
27856 ac_cv_search_ffi_call=$ac_res
27858 echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27864 rm -f core conftest.err conftest.$ac_objext \
27866 if test "${ac_cv_search_ffi_call+set}" = set; then
27870 if test "${ac_cv_search_ffi_call+set}" = set; then
27873 ac_cv_search_ffi_call=no
27875 rm conftest.$ac_ext
27876 LIBS=$ac_func_search_save_LIBS
27878 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27879 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27880 ac_res=$ac_cv_search_ffi_call
27881 if test "$ac_res" != no; then
27882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27884 cat >>confdefs.h <<\_ACEOF
27885 #define HAVE_FFI_CALL 1
27889 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27890 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27895 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27896 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27897 if test "${ac_cv_search_mallinfo+set}" = set; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27900 ac_func_search_save_LIBS=$LIBS
27901 cat >conftest.$ac_ext <<_ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h. */
27908 /* Override any GCC internal prototype to avoid an error.
27909 Use char because int might match the return type of a GCC
27910 builtin and then its argument prototype would still apply. */
27918 return mallinfo ();
27923 for ac_lib in '' malloc; do
27924 if test -z "$ac_lib"; then
27925 ac_res="none required"
27928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27930 rm -f conftest.$ac_objext conftest$ac_exeext
27931 if { (ac_try="$ac_link"
27932 case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937 (eval "$ac_link") 2>conftest.er1
27939 grep -v '^ *+' conftest.er1 >conftest.err
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
27944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27945 { (case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_try") 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; } &&
27954 { ac_try='test -s conftest$ac_exeext'
27955 { (case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_try") 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27964 ac_cv_search_mallinfo=$ac_res
27966 echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27972 rm -f core conftest.err conftest.$ac_objext \
27974 if test "${ac_cv_search_mallinfo+set}" = set; then
27978 if test "${ac_cv_search_mallinfo+set}" = set; then
27981 ac_cv_search_mallinfo=no
27983 rm conftest.$ac_ext
27984 LIBS=$ac_func_search_save_LIBS
27986 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27987 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27988 ac_res=$ac_cv_search_mallinfo
27989 if test "$ac_res" != no; then
27990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27992 cat >>confdefs.h <<\_ACEOF
27993 #define HAVE_MALLINFO 1
27999 if test "$ENABLE_THREADS" -eq 1 ; then
28001 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28002 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28003 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28006 ac_check_lib_save_LIBS=$LIBS
28007 LIBS="-lpthread $LIBS"
28008 cat >conftest.$ac_ext <<_ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h. */
28015 /* Override any GCC internal prototype to avoid an error.
28016 Use char because int might match the return type of a GCC
28017 builtin and then its argument prototype would still apply. */
28021 char pthread_mutex_init ();
28025 return pthread_mutex_init ();
28030 rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (ac_try="$ac_link"
28032 case "(($ac_try" in
28033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034 *) ac_try_echo=$ac_try;;
28036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28037 (eval "$ac_link") 2>conftest.er1
28039 grep -v '^ *+' conftest.er1 >conftest.err
28041 cat conftest.err >&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); } &&
28044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28045 { (case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_try") 2>&5
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; } &&
28054 { ac_try='test -s conftest$ac_exeext'
28055 { (case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_try") 2>&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 ac_cv_lib_pthread_pthread_mutex_init=yes
28066 echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28069 ac_cv_lib_pthread_pthread_mutex_init=no
28072 rm -f core conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28074 LIBS=$ac_check_lib_save_LIBS
28076 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28077 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28078 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28079 cat >>confdefs.h <<_ACEOF
28080 #define HAVE_LIBPTHREAD 1
28083 LIBS="-lpthread $LIBS"
28087 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28088 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28089 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 ac_func_search_save_LIBS=$LIBS
28093 cat >conftest.$ac_ext <<_ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h. */
28100 /* Override any GCC internal prototype to avoid an error.
28101 Use char because int might match the return type of a GCC
28102 builtin and then its argument prototype would still apply. */
28106 char pthread_mutex_lock ();
28110 return pthread_mutex_lock ();
28115 for ac_lib in '' pthread; do
28116 if test -z "$ac_lib"; then
28117 ac_res="none required"
28120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28122 rm -f conftest.$ac_objext conftest$ac_exeext
28123 if { (ac_try="$ac_link"
28124 case "(($ac_try" in
28125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126 *) ac_try_echo=$ac_try;;
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129 (eval "$ac_link") 2>conftest.er1
28131 grep -v '^ *+' conftest.er1 >conftest.err
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28137 { (case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_try") 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest$ac_exeext'
28147 { (case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152 (eval "$ac_try") 2>&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_cv_search_pthread_mutex_lock=$ac_res
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28164 rm -f core conftest.err conftest.$ac_objext \
28166 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28170 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28173 ac_cv_search_pthread_mutex_lock=no
28175 rm conftest.$ac_ext
28176 LIBS=$ac_func_search_save_LIBS
28178 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28179 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28180 ac_res=$ac_cv_search_pthread_mutex_lock
28181 if test "$ac_res" != no; then
28182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28184 cat >>confdefs.h <<\_ACEOF
28185 #define HAVE_PTHREAD_MUTEX_LOCK 1
28190 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28191 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28192 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28193 echo $ECHO_N "(cached) $ECHO_C" >&6
28195 ac_func_search_save_LIBS=$LIBS
28196 cat >conftest.$ac_ext <<_ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28203 /* Override any GCC internal prototype to avoid an error.
28204 Use char because int might match the return type of a GCC
28205 builtin and then its argument prototype would still apply. */
28209 char pthread_rwlock_init ();
28213 return pthread_rwlock_init ();
28218 for ac_lib in '' pthread; do
28219 if test -z "$ac_lib"; then
28220 ac_res="none required"
28223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (ac_try="$ac_link"
28227 case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_link") 2>conftest.er1
28234 grep -v '^ *+' conftest.er1 >conftest.err
28236 cat conftest.err >&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } &&
28239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240 { (case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_try") 2>&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; } &&
28249 { ac_try='test -s conftest$ac_exeext'
28250 { (case "(($ac_try" in
28251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252 *) ac_try_echo=$ac_try;;
28254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255 (eval "$ac_try") 2>&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 ac_cv_search_pthread_rwlock_init=$ac_res
28261 echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28267 rm -f core conftest.err conftest.$ac_objext \
28269 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28273 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28276 ac_cv_search_pthread_rwlock_init=no
28278 rm conftest.$ac_ext
28279 LIBS=$ac_func_search_save_LIBS
28281 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28282 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28283 ac_res=$ac_cv_search_pthread_rwlock_init
28284 if test "$ac_res" != no; then
28285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28287 cat >>confdefs.h <<\_ACEOF
28288 #define HAVE_PTHREAD_RWLOCK_INIT 1
28293 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28294 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28295 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28298 ac_func_search_save_LIBS=$LIBS
28299 cat >conftest.$ac_ext <<_ACEOF
28302 cat confdefs.h >>conftest.$ac_ext
28303 cat >>conftest.$ac_ext <<_ACEOF
28304 /* end confdefs.h. */
28306 /* Override any GCC internal prototype to avoid an error.
28307 Use char because int might match the return type of a GCC
28308 builtin and then its argument prototype would still apply. */
28312 char pthread_getspecific ();
28316 return pthread_getspecific ();
28321 for ac_lib in '' pthread; do
28322 if test -z "$ac_lib"; then
28323 ac_res="none required"
28326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28328 rm -f conftest.$ac_objext conftest$ac_exeext
28329 if { (ac_try="$ac_link"
28330 case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335 (eval "$ac_link") 2>conftest.er1
28337 grep -v '^ *+' conftest.er1 >conftest.err
28339 cat conftest.err >&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } &&
28342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28343 { (case "(($ac_try" in
28344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28345 *) ac_try_echo=$ac_try;;
28347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28348 (eval "$ac_try") 2>&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; } &&
28352 { ac_try='test -s conftest$ac_exeext'
28353 { (case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_try") 2>&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
28362 ac_cv_search_pthread_getspecific=$ac_res
28364 echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28370 rm -f core conftest.err conftest.$ac_objext \
28372 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28376 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28379 ac_cv_search_pthread_getspecific=no
28381 rm conftest.$ac_ext
28382 LIBS=$ac_func_search_save_LIBS
28384 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28385 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28386 ac_res=$ac_cv_search_pthread_getspecific
28387 if test "$ac_res" != no; then
28388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28390 cat >>confdefs.h <<\_ACEOF
28391 #define HAVE_PTHREAD_GETSPECIFIC 1
28399 # Check whether --with-udis86 was given.
28400 if test "${with_udis86+set}" = set; then
28401 withval=$with_udis86;
28406 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28409 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28410 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28411 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28414 ac_check_lib_save_LIBS=$LIBS
28415 LIBS="-ludis86 $LIBS"
28416 cat >conftest.$ac_ext <<_ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28423 /* Override any GCC internal prototype to avoid an error.
28424 Use char because int might match the return type of a GCC
28425 builtin and then its argument prototype would still apply. */
28438 rm -f conftest.$ac_objext conftest$ac_exeext
28439 if { (ac_try="$ac_link"
28440 case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_link") 2>conftest.er1
28447 grep -v '^ *+' conftest.er1 >conftest.err
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28453 { (case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_try") 2>&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; } &&
28462 { ac_try='test -s conftest$ac_exeext'
28463 { (case "(($ac_try" in
28464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_try") 2>&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_cv_lib_udis86_ud_init=yes
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 ac_cv_lib_udis86_ud_init=no
28480 rm -f core conftest.err conftest.$ac_objext \
28481 conftest$ac_exeext conftest.$ac_ext
28482 LIBS=$ac_check_lib_save_LIBS
28484 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28485 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28486 if test $ac_cv_lib_udis86_ud_init = yes; then
28487 cat >>confdefs.h <<_ACEOF
28488 #define HAVE_LIBUDIS86 1
28491 LIBS="-ludis86 $LIBS"
28495 echo "Error! You need to have libudis86 around."
28507 cat >>confdefs.h <<_ACEOF
28508 #define USE_UDIS86 $USE_UDIS86
28513 # Check whether --with-oprofile was given.
28514 if test "${with_oprofile+set}" = set; then
28515 withval=$with_oprofile;
28519 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28520 *) llvm_cv_oppath="${withval}/lib/oprofile"
28521 CPPFLAGS="-I${withval}/include";;
28523 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28524 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28525 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28526 if test "${ac_cv_search_op_open_agent+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28529 ac_func_search_save_LIBS=$LIBS
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28537 /* Override any GCC internal prototype to avoid an error.
28538 Use char because int might match the return type of a GCC
28539 builtin and then its argument prototype would still apply. */
28543 char op_open_agent ();
28547 return op_open_agent ();
28552 for ac_lib in '' opagent; do
28553 if test -z "$ac_lib"; then
28554 ac_res="none required"
28557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28559 rm -f conftest.$ac_objext conftest$ac_exeext
28560 if { (ac_try="$ac_link"
28561 case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_link") 2>conftest.er1
28568 grep -v '^ *+' conftest.er1 >conftest.err
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
28573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28574 { (case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_try") 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest$ac_exeext'
28584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28593 ac_cv_search_op_open_agent=$ac_res
28595 echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28601 rm -f core conftest.err conftest.$ac_objext \
28603 if test "${ac_cv_search_op_open_agent+set}" = set; then
28607 if test "${ac_cv_search_op_open_agent+set}" = set; then
28610 ac_cv_search_op_open_agent=no
28612 rm conftest.$ac_ext
28613 LIBS=$ac_func_search_save_LIBS
28615 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28616 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28617 ac_res=$ac_cv_search_op_open_agent
28618 if test "$ac_res" != no; then
28619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28623 echo "Error! You need to have libopagent around."
28628 if test "${ac_cv_header_opagent_h+set}" = set; then
28629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28631 if test "${ac_cv_header_opagent_h+set}" = set; then
28632 echo $ECHO_N "(cached) $ECHO_C" >&6
28634 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28635 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28637 # Is the header compilable?
28638 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28639 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28640 cat >conftest.$ac_ext <<_ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h. */
28646 $ac_includes_default
28647 #include <opagent.h>
28649 rm -f conftest.$ac_objext
28650 if { (ac_try="$ac_compile"
28651 case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_compile") 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28664 { (case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_try") 2>&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
28674 { (case "(($ac_try" in
28675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676 *) ac_try_echo=$ac_try;;
28678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679 (eval "$ac_try") 2>&5
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; }; then
28683 ac_header_compiler=yes
28685 echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28688 ac_header_compiler=no
28691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28693 echo "${ECHO_T}$ac_header_compiler" >&6; }
28695 # Is the header present?
28696 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28697 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28698 cat >conftest.$ac_ext <<_ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28704 #include <opagent.h>
28706 if { (ac_try="$ac_cpp conftest.$ac_ext"
28707 case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28714 grep -v '^ *+' conftest.er1 >conftest.err
28716 cat conftest.err >&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } >/dev/null; then
28719 if test -s conftest.err; then
28720 ac_cpp_err=$ac_c_preproc_warn_flag
28721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28728 if test -z "$ac_cpp_err"; then
28729 ac_header_preproc=yes
28731 echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28734 ac_header_preproc=no
28737 rm -f conftest.err conftest.$ac_ext
28738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28739 echo "${ECHO_T}$ac_header_preproc" >&6; }
28741 # So? What about this header?
28742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28744 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28745 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28746 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28747 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28748 ac_header_preproc=yes
28751 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28752 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28753 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28754 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28755 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28756 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28757 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28758 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28760 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28761 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28762 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28764 ## ----------------------------------- ##
28765 ## Report this to llvmbugs@cs.uiuc.edu ##
28766 ## ----------------------------------- ##
28768 ) | sed "s/^/$as_me: WARNING: /" >&2
28771 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28772 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28773 if test "${ac_cv_header_opagent_h+set}" = set; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28776 ac_cv_header_opagent_h=$ac_header_preproc
28778 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28779 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28782 if test $ac_cv_header_opagent_h = yes; then
28786 echo "Error! You need to have opagent.h around."
28795 llvm_cv_old_LIBS="$LIBS"
28796 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28797 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28798 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28799 if test "${ac_cv_search_op_open_agent+set}" = set; then
28800 echo $ECHO_N "(cached) $ECHO_C" >&6
28802 ac_func_search_save_LIBS=$LIBS
28803 cat >conftest.$ac_ext <<_ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h. */
28810 /* Override any GCC internal prototype to avoid an error.
28811 Use char because int might match the return type of a GCC
28812 builtin and then its argument prototype would still apply. */
28816 char op_open_agent ();
28820 return op_open_agent ();
28825 for ac_lib in '' opagent; do
28826 if test -z "$ac_lib"; then
28827 ac_res="none required"
28830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28832 rm -f conftest.$ac_objext conftest$ac_exeext
28833 if { (ac_try="$ac_link"
28834 case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839 (eval "$ac_link") 2>conftest.er1
28841 grep -v '^ *+' conftest.er1 >conftest.err
28843 cat conftest.err >&5
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); } &&
28846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28847 { (case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852 (eval "$ac_try") 2>&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; } &&
28856 { ac_try='test -s conftest$ac_exeext'
28857 { (case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_try") 2>&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; }; then
28866 ac_cv_search_op_open_agent=$ac_res
28868 echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28874 rm -f core conftest.err conftest.$ac_objext \
28876 if test "${ac_cv_search_op_open_agent+set}" = set; then
28880 if test "${ac_cv_search_op_open_agent+set}" = set; then
28883 ac_cv_search_op_open_agent=no
28885 rm conftest.$ac_ext
28886 LIBS=$ac_func_search_save_LIBS
28888 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28889 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28890 ac_res=$ac_cv_search_op_open_agent
28891 if test "$ac_res" != no; then
28892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28896 LIBS="$llvm_cv_old_LIBS"
28901 if test "${ac_cv_header_opagent_h+set}" = set; then
28902 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28903 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28904 if test "${ac_cv_header_opagent_h+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28907 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28908 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28910 # Is the header compilable?
28911 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28912 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28913 cat >conftest.$ac_ext <<_ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28919 $ac_includes_default
28920 #include <opagent.h>
28922 rm -f conftest.$ac_objext
28923 if { (ac_try="$ac_compile"
28924 case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_compile") 2>conftest.er1
28931 grep -v '^ *+' conftest.er1 >conftest.err
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } &&
28936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28937 { (case "(($ac_try" in
28938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28939 *) ac_try_echo=$ac_try;;
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_try") 2>&5
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest.$ac_objext'
28947 { (case "(($ac_try" in
28948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949 *) ac_try_echo=$ac_try;;
28951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952 (eval "$ac_try") 2>&5
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 ac_header_compiler=yes
28958 echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ac_header_compiler=no
28964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966 echo "${ECHO_T}$ac_header_compiler" >&6; }
28968 # Is the header present?
28969 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28970 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28971 cat >conftest.$ac_ext <<_ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 #include <opagent.h>
28979 if { (ac_try="$ac_cpp conftest.$ac_ext"
28980 case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28987 grep -v '^ *+' conftest.er1 >conftest.err
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } >/dev/null; then
28992 if test -s conftest.err; then
28993 ac_cpp_err=$ac_c_preproc_warn_flag
28994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29001 if test -z "$ac_cpp_err"; then
29002 ac_header_preproc=yes
29004 echo "$as_me: failed program was:" >&5
29005 sed 's/^/| /' conftest.$ac_ext >&5
29007 ac_header_preproc=no
29010 rm -f conftest.err conftest.$ac_ext
29011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012 echo "${ECHO_T}$ac_header_preproc" >&6; }
29014 # So? What about this header?
29015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29017 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29018 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29020 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29021 ac_header_preproc=yes
29024 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29025 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29027 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29029 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29031 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29033 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29035 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29037 ## ----------------------------------- ##
29038 ## Report this to llvmbugs@cs.uiuc.edu ##
29039 ## ----------------------------------- ##
29041 ) | sed "s/^/$as_me: WARNING: /" >&2
29044 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29045 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29046 if test "${ac_cv_header_opagent_h+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29049 ac_cv_header_opagent_h=$ac_header_preproc
29051 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29052 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29055 if test $ac_cv_header_opagent_h = yes; then
29059 LIBS="$llvm_cv_old_LIBS"
29070 cat >>confdefs.h <<_ACEOF
29071 #define USE_OPROFILE $USE_OPROFILE
29081 ac_header_dirent=no
29082 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29083 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29084 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29085 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29089 cat >conftest.$ac_ext <<_ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h. */
29095 #include <sys/types.h>
29107 rm -f conftest.$ac_objext
29108 if { (ac_try="$ac_compile"
29109 case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_compile") 2>conftest.er1
29116 grep -v '^ *+' conftest.er1 >conftest.err
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
29121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29122 { (case "(($ac_try" in
29123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29124 *) ac_try_echo=$ac_try;;
29126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29127 (eval "$ac_try") 2>&5
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; } &&
29131 { ac_try='test -s conftest.$ac_objext'
29132 { (case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_try") 2>&5
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; }; then
29141 eval "$as_ac_Header=yes"
29143 echo "$as_me: failed program was:" >&5
29144 sed 's/^/| /' conftest.$ac_ext >&5
29146 eval "$as_ac_Header=no"
29149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29151 ac_res=`eval echo '${'$as_ac_Header'}'`
29152 { echo "$as_me:$LINENO: result: $ac_res" >&5
29153 echo "${ECHO_T}$ac_res" >&6; }
29154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29155 cat >>confdefs.h <<_ACEOF
29156 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29159 ac_header_dirent=$ac_hdr; break
29163 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29164 if test $ac_header_dirent = dirent.h; then
29165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29166 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29167 if test "${ac_cv_search_opendir+set}" = set; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29170 ac_func_search_save_LIBS=$LIBS
29171 cat >conftest.$ac_ext <<_ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29178 /* Override any GCC internal prototype to avoid an error.
29179 Use char because int might match the return type of a GCC
29180 builtin and then its argument prototype would still apply. */
29193 for ac_lib in '' dir; do
29194 if test -z "$ac_lib"; then
29195 ac_res="none required"
29198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29200 rm -f conftest.$ac_objext conftest$ac_exeext
29201 if { (ac_try="$ac_link"
29202 case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_link") 2>conftest.er1
29209 grep -v '^ *+' conftest.er1 >conftest.err
29211 cat conftest.err >&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
29214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29215 { (case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_try") 2>&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; } &&
29224 { ac_try='test -s conftest$ac_exeext'
29225 { (case "(($ac_try" in
29226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227 *) ac_try_echo=$ac_try;;
29229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230 (eval "$ac_try") 2>&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234 ac_cv_search_opendir=$ac_res
29236 echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29242 rm -f core conftest.err conftest.$ac_objext \
29244 if test "${ac_cv_search_opendir+set}" = set; then
29248 if test "${ac_cv_search_opendir+set}" = set; then
29251 ac_cv_search_opendir=no
29253 rm conftest.$ac_ext
29254 LIBS=$ac_func_search_save_LIBS
29256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29258 ac_res=$ac_cv_search_opendir
29259 if test "$ac_res" != no; then
29260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29265 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29266 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29267 if test "${ac_cv_search_opendir+set}" = set; then
29268 echo $ECHO_N "(cached) $ECHO_C" >&6
29270 ac_func_search_save_LIBS=$LIBS
29271 cat >conftest.$ac_ext <<_ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h. */
29278 /* Override any GCC internal prototype to avoid an error.
29279 Use char because int might match the return type of a GCC
29280 builtin and then its argument prototype would still apply. */
29293 for ac_lib in '' x; do
29294 if test -z "$ac_lib"; then
29295 ac_res="none required"
29298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29300 rm -f conftest.$ac_objext conftest$ac_exeext
29301 if { (ac_try="$ac_link"
29302 case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_link") 2>conftest.er1
29309 grep -v '^ *+' conftest.er1 >conftest.err
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); } &&
29314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29315 { (case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_try") 2>&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest$ac_exeext'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 ac_cv_search_opendir=$ac_res
29336 echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29342 rm -f core conftest.err conftest.$ac_objext \
29344 if test "${ac_cv_search_opendir+set}" = set; then
29348 if test "${ac_cv_search_opendir+set}" = set; then
29351 ac_cv_search_opendir=no
29353 rm conftest.$ac_ext
29354 LIBS=$ac_func_search_save_LIBS
29356 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29357 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29358 ac_res=$ac_cv_search_opendir
29359 if test "$ac_res" != no; then
29360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29366 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29367 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29368 if test "${ac_cv_header_mmap_anon+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29372 ac_cpp='$CPP $CPPFLAGS'
29373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383 #include <sys/mman.h>
29384 #include <unistd.h>
29389 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29394 rm -f conftest.$ac_objext
29395 if { (ac_try="$ac_compile"
29396 case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_compile") 2>conftest.er1
29403 grep -v '^ *+' conftest.er1 >conftest.err
29405 cat conftest.err >&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } &&
29408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29409 { (case "(($ac_try" in
29410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411 *) ac_try_echo=$ac_try;;
29413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414 (eval "$ac_try") 2>&5
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
29419 { (case "(($ac_try" in
29420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29421 *) ac_try_echo=$ac_try;;
29423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29424 (eval "$ac_try") 2>&5
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
29428 ac_cv_header_mmap_anon=yes
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 ac_cv_header_mmap_anon=no
29436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29438 ac_cpp='$CPP $CPPFLAGS'
29439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29445 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29446 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29447 if test "$ac_cv_header_mmap_anon" = yes; then
29449 cat >>confdefs.h <<\_ACEOF
29450 #define HAVE_MMAP_ANONYMOUS 1
29455 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29456 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29457 if test "${ac_cv_header_stat_broken+set}" = set; then
29458 echo $ECHO_N "(cached) $ECHO_C" >&6
29460 cat >conftest.$ac_ext <<_ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 #include <sys/types.h>
29467 #include <sys/stat.h>
29469 #if defined S_ISBLK && defined S_IFDIR
29470 # if S_ISBLK (S_IFDIR)
29475 #if defined S_ISBLK && defined S_IFCHR
29476 # if S_ISBLK (S_IFCHR)
29481 #if defined S_ISLNK && defined S_IFREG
29482 # if S_ISLNK (S_IFREG)
29487 #if defined S_ISSOCK && defined S_IFREG
29488 # if S_ISSOCK (S_IFREG)
29494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29495 $EGREP "You lose" >/dev/null 2>&1; then
29496 ac_cv_header_stat_broken=yes
29498 ac_cv_header_stat_broken=no
29503 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29504 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29505 if test $ac_cv_header_stat_broken = yes; then
29507 cat >>confdefs.h <<\_ACEOF
29508 #define STAT_MACROS_BROKEN 1
29513 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29515 if test "${ac_cv_header_stdc+set}" = set; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29518 cat >conftest.$ac_ext <<_ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29524 #include <stdlib.h>
29525 #include <stdarg.h>
29526 #include <string.h>
29537 rm -f conftest.$ac_objext
29538 if { (ac_try="$ac_compile"
29539 case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_compile") 2>conftest.er1
29546 grep -v '^ *+' conftest.er1 >conftest.err
29548 cat conftest.err >&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } &&
29551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest.$ac_objext'
29562 { (case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_try") 2>&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 ac_cv_header_stdc=yes
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29576 ac_cv_header_stdc=no
29579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29581 if test $ac_cv_header_stdc = yes; then
29582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29583 cat >conftest.$ac_ext <<_ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29589 #include <string.h>
29592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29593 $EGREP "memchr" >/dev/null 2>&1; then
29596 ac_cv_header_stdc=no
29602 if test $ac_cv_header_stdc = yes; then
29603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29604 cat >conftest.$ac_ext <<_ACEOF
29607 cat confdefs.h >>conftest.$ac_ext
29608 cat >>conftest.$ac_ext <<_ACEOF
29609 /* end confdefs.h. */
29610 #include <stdlib.h>
29613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29614 $EGREP "free" >/dev/null 2>&1; then
29617 ac_cv_header_stdc=no
29623 if test $ac_cv_header_stdc = yes; then
29624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29625 if test "$cross_compiling" = yes; then
29628 cat >conftest.$ac_ext <<_ACEOF
29631 cat confdefs.h >>conftest.$ac_ext
29632 cat >>conftest.$ac_ext <<_ACEOF
29633 /* end confdefs.h. */
29635 #include <stdlib.h>
29636 #if ((' ' & 0x0FF) == 0x020)
29637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29640 # define ISLOWER(c) \
29641 (('a' <= (c) && (c) <= 'i') \
29642 || ('j' <= (c) && (c) <= 'r') \
29643 || ('s' <= (c) && (c) <= 'z'))
29644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29652 for (i = 0; i < 256; i++)
29653 if (XOR (islower (i), ISLOWER (i))
29654 || toupper (i) != TOUPPER (i))
29659 rm -f conftest$ac_exeext
29660 if { (ac_try="$ac_link"
29661 case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_link") 2>&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29670 { (case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_try") 2>&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29681 echo "$as_me: program exited with status $ac_status" >&5
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 ( exit $ac_status )
29686 ac_cv_header_stdc=no
29688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29694 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29695 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29696 if test $ac_cv_header_stdc = yes; then
29698 cat >>confdefs.h <<\_ACEOF
29699 #define STDC_HEADERS 1
29704 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29705 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29706 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29709 cat >conftest.$ac_ext <<_ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h. */
29715 #include <sys/types.h>
29716 #include <sys/wait.h>
29717 #ifndef WEXITSTATUS
29718 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29721 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29729 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29734 rm -f conftest.$ac_objext
29735 if { (ac_try="$ac_compile"
29736 case "(($ac_try" in
29737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738 *) ac_try_echo=$ac_try;;
29740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741 (eval "$ac_compile") 2>conftest.er1
29743 grep -v '^ *+' conftest.er1 >conftest.err
29745 cat conftest.err >&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } &&
29748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29749 { (case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_try") 2>&5
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; } &&
29758 { ac_try='test -s conftest.$ac_objext'
29759 { (case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_try") 2>&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; }; then
29768 ac_cv_header_sys_wait_h=yes
29770 echo "$as_me: failed program was:" >&5
29771 sed 's/^/| /' conftest.$ac_ext >&5
29773 ac_cv_header_sys_wait_h=no
29776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29778 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29779 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29780 if test $ac_cv_header_sys_wait_h = yes; then
29782 cat >>confdefs.h <<\_ACEOF
29783 #define HAVE_SYS_WAIT_H 1
29788 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29789 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29790 if test "${ac_cv_header_time+set}" = set; then
29791 echo $ECHO_N "(cached) $ECHO_C" >&6
29793 cat >conftest.$ac_ext <<_ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29799 #include <sys/types.h>
29800 #include <sys/time.h>
29806 if ((struct tm *) 0)
29812 rm -f conftest.$ac_objext
29813 if { (ac_try="$ac_compile"
29814 case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_compile") 2>conftest.er1
29821 grep -v '^ *+' conftest.er1 >conftest.err
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } &&
29826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29827 { (case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832 (eval "$ac_try") 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest.$ac_objext'
29837 { (case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_try") 2>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; }; then
29846 ac_cv_header_time=yes
29848 echo "$as_me: failed program was:" >&5
29849 sed 's/^/| /' conftest.$ac_ext >&5
29851 ac_cv_header_time=no
29854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29856 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29857 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29858 if test $ac_cv_header_time = yes; then
29860 cat >>confdefs.h <<\_ACEOF
29861 #define TIME_WITH_SYS_TIME 1
29873 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 ac_res=`eval echo '${'$as_ac_Header'}'`
29883 { echo "$as_me:$LINENO: result: $ac_res" >&5
29884 echo "${ECHO_T}$ac_res" >&6; }
29886 # Is the header compilable?
29887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29889 cat >conftest.$ac_ext <<_ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h. */
29895 $ac_includes_default
29896 #include <$ac_header>
29898 rm -f conftest.$ac_objext
29899 if { (ac_try="$ac_compile"
29900 case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_compile") 2>conftest.er1
29907 grep -v '^ *+' conftest.er1 >conftest.err
29909 cat conftest.err >&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
29912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913 { (case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_try") 2>&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
29923 { (case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_try") 2>&5
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
29932 ac_header_compiler=yes
29934 echo "$as_me: failed program was:" >&5
29935 sed 's/^/| /' conftest.$ac_ext >&5
29937 ac_header_compiler=no
29940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29942 echo "${ECHO_T}$ac_header_compiler" >&6; }
29944 # Is the header present?
29945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29947 cat >conftest.$ac_ext <<_ACEOF
29950 cat confdefs.h >>conftest.$ac_ext
29951 cat >>conftest.$ac_ext <<_ACEOF
29952 /* end confdefs.h. */
29953 #include <$ac_header>
29955 if { (ac_try="$ac_cpp conftest.$ac_ext"
29956 case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29963 grep -v '^ *+' conftest.er1 >conftest.err
29965 cat conftest.err >&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } >/dev/null; then
29968 if test -s conftest.err; then
29969 ac_cpp_err=$ac_c_preproc_warn_flag
29970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29977 if test -z "$ac_cpp_err"; then
29978 ac_header_preproc=yes
29980 echo "$as_me: failed program was:" >&5
29981 sed 's/^/| /' conftest.$ac_ext >&5
29983 ac_header_preproc=no
29986 rm -f conftest.err conftest.$ac_ext
29987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29988 echo "${ECHO_T}$ac_header_preproc" >&6; }
29990 # So? What about this header?
29991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29997 ac_header_preproc=yes
30000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30013 ## ----------------------------------- ##
30014 ## Report this to llvmbugs@cs.uiuc.edu ##
30015 ## ----------------------------------- ##
30017 ) | sed "s/^/$as_me: WARNING: /" >&2
30020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30025 eval "$as_ac_Header=\$ac_header_preproc"
30027 ac_res=`eval echo '${'$as_ac_Header'}'`
30028 { echo "$as_me:$LINENO: result: $ac_res" >&5
30029 echo "${ECHO_T}$ac_res" >&6; }
30032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30033 cat >>confdefs.h <<_ACEOF
30034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30047 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30056 ac_res=`eval echo '${'$as_ac_Header'}'`
30057 { echo "$as_me:$LINENO: result: $ac_res" >&5
30058 echo "${ECHO_T}$ac_res" >&6; }
30060 # Is the header compilable?
30061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30063 cat >conftest.$ac_ext <<_ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30069 $ac_includes_default
30070 #include <$ac_header>
30072 rm -f conftest.$ac_objext
30073 if { (ac_try="$ac_compile"
30074 case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_compile") 2>conftest.er1
30081 grep -v '^ *+' conftest.er1 >conftest.err
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } &&
30086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30087 { (case "(($ac_try" in
30088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_try") 2>&5
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; } &&
30096 { ac_try='test -s conftest.$ac_objext'
30097 { (case "(($ac_try" in
30098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099 *) ac_try_echo=$ac_try;;
30101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102 (eval "$ac_try") 2>&5
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 ac_header_compiler=yes
30108 echo "$as_me: failed program was:" >&5
30109 sed 's/^/| /' conftest.$ac_ext >&5
30111 ac_header_compiler=no
30114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116 echo "${ECHO_T}$ac_header_compiler" >&6; }
30118 # Is the header present?
30119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30121 cat >conftest.$ac_ext <<_ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 #include <$ac_header>
30129 if { (ac_try="$ac_cpp conftest.$ac_ext"
30130 case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30137 grep -v '^ *+' conftest.er1 >conftest.err
30139 cat conftest.err >&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } >/dev/null; then
30142 if test -s conftest.err; then
30143 ac_cpp_err=$ac_c_preproc_warn_flag
30144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30151 if test -z "$ac_cpp_err"; then
30152 ac_header_preproc=yes
30154 echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30157 ac_header_preproc=no
30160 rm -f conftest.err conftest.$ac_ext
30161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30162 echo "${ECHO_T}$ac_header_preproc" >&6; }
30164 # So? What about this header?
30165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30171 ac_header_preproc=yes
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30187 ## ----------------------------------- ##
30188 ## Report this to llvmbugs@cs.uiuc.edu ##
30189 ## ----------------------------------- ##
30191 ) | sed "s/^/$as_me: WARNING: /" >&2
30194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30199 eval "$as_ac_Header=\$ac_header_preproc"
30201 ac_res=`eval echo '${'$as_ac_Header'}'`
30202 { echo "$as_me:$LINENO: result: $ac_res" >&5
30203 echo "${ECHO_T}$ac_res" >&6; }
30206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30207 cat >>confdefs.h <<_ACEOF
30208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30217 for ac_header in utime.h windows.h
30219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30224 echo $ECHO_N "(cached) $ECHO_C" >&6
30226 ac_res=`eval echo '${'$as_ac_Header'}'`
30227 { echo "$as_me:$LINENO: result: $ac_res" >&5
30228 echo "${ECHO_T}$ac_res" >&6; }
30230 # Is the header compilable?
30231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30233 cat >conftest.$ac_ext <<_ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h. */
30239 $ac_includes_default
30240 #include <$ac_header>
30242 rm -f conftest.$ac_objext
30243 if { (ac_try="$ac_compile"
30244 case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_compile") 2>conftest.er1
30251 grep -v '^ *+' conftest.er1 >conftest.err
30253 cat conftest.err >&5
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } &&
30256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30257 { (case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_try") 2>&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest.$ac_objext'
30267 { (case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_try") 2>&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
30276 ac_header_compiler=yes
30278 echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30281 ac_header_compiler=no
30284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30286 echo "${ECHO_T}$ac_header_compiler" >&6; }
30288 # Is the header present?
30289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30291 cat >conftest.$ac_ext <<_ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h. */
30297 #include <$ac_header>
30299 if { (ac_try="$ac_cpp conftest.$ac_ext"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30307 grep -v '^ *+' conftest.er1 >conftest.err
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } >/dev/null; then
30312 if test -s conftest.err; then
30313 ac_cpp_err=$ac_c_preproc_warn_flag
30314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30321 if test -z "$ac_cpp_err"; then
30322 ac_header_preproc=yes
30324 echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.$ac_ext >&5
30327 ac_header_preproc=no
30330 rm -f conftest.err conftest.$ac_ext
30331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30332 echo "${ECHO_T}$ac_header_preproc" >&6; }
30334 # So? What about this header?
30335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30341 ac_header_preproc=yes
30344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30357 ## ----------------------------------- ##
30358 ## Report this to llvmbugs@cs.uiuc.edu ##
30359 ## ----------------------------------- ##
30361 ) | sed "s/^/$as_me: WARNING: /" >&2
30364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30367 echo $ECHO_N "(cached) $ECHO_C" >&6
30369 eval "$as_ac_Header=\$ac_header_preproc"
30371 ac_res=`eval echo '${'$as_ac_Header'}'`
30372 { echo "$as_me:$LINENO: result: $ac_res" >&5
30373 echo "${ECHO_T}$ac_res" >&6; }
30376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30377 cat >>confdefs.h <<_ACEOF
30378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30389 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30398 ac_res=`eval echo '${'$as_ac_Header'}'`
30399 { echo "$as_me:$LINENO: result: $ac_res" >&5
30400 echo "${ECHO_T}$ac_res" >&6; }
30402 # Is the header compilable?
30403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30405 cat >conftest.$ac_ext <<_ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30411 $ac_includes_default
30412 #include <$ac_header>
30414 rm -f conftest.$ac_objext
30415 if { (ac_try="$ac_compile"
30416 case "(($ac_try" in
30417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418 *) ac_try_echo=$ac_try;;
30420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421 (eval "$ac_compile") 2>conftest.er1
30423 grep -v '^ *+' conftest.er1 >conftest.err
30425 cat conftest.err >&5
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); } &&
30428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30429 { (case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_try") 2>&5
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest.$ac_objext'
30439 { (case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444 (eval "$ac_try") 2>&5
30446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447 (exit $ac_status); }; }; then
30448 ac_header_compiler=yes
30450 echo "$as_me: failed program was:" >&5
30451 sed 's/^/| /' conftest.$ac_ext >&5
30453 ac_header_compiler=no
30456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30458 echo "${ECHO_T}$ac_header_compiler" >&6; }
30460 # Is the header present?
30461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30463 cat >conftest.$ac_ext <<_ACEOF
30466 cat confdefs.h >>conftest.$ac_ext
30467 cat >>conftest.$ac_ext <<_ACEOF
30468 /* end confdefs.h. */
30469 #include <$ac_header>
30471 if { (ac_try="$ac_cpp conftest.$ac_ext"
30472 case "(($ac_try" in
30473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474 *) ac_try_echo=$ac_try;;
30476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30479 grep -v '^ *+' conftest.er1 >conftest.err
30481 cat conftest.err >&5
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); } >/dev/null; then
30484 if test -s conftest.err; then
30485 ac_cpp_err=$ac_c_preproc_warn_flag
30486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30493 if test -z "$ac_cpp_err"; then
30494 ac_header_preproc=yes
30496 echo "$as_me: failed program was:" >&5
30497 sed 's/^/| /' conftest.$ac_ext >&5
30499 ac_header_preproc=no
30502 rm -f conftest.err conftest.$ac_ext
30503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30504 echo "${ECHO_T}$ac_header_preproc" >&6; }
30506 # So? What about this header?
30507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30513 ac_header_preproc=yes
30516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30529 ## ----------------------------------- ##
30530 ## Report this to llvmbugs@cs.uiuc.edu ##
30531 ## ----------------------------------- ##
30533 ) | sed "s/^/$as_me: WARNING: /" >&2
30536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30539 echo $ECHO_N "(cached) $ECHO_C" >&6
30541 eval "$as_ac_Header=\$ac_header_preproc"
30543 ac_res=`eval echo '${'$as_ac_Header'}'`
30544 { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30549 cat >>confdefs.h <<_ACEOF
30550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30561 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30568 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 ac_res=`eval echo '${'$as_ac_Header'}'`
30571 { echo "$as_me:$LINENO: result: $ac_res" >&5
30572 echo "${ECHO_T}$ac_res" >&6; }
30574 # Is the header compilable?
30575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30577 cat >conftest.$ac_ext <<_ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30583 $ac_includes_default
30584 #include <$ac_header>
30586 rm -f conftest.$ac_objext
30587 if { (ac_try="$ac_compile"
30588 case "(($ac_try" in
30589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590 *) ac_try_echo=$ac_try;;
30592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30593 (eval "$ac_compile") 2>conftest.er1
30595 grep -v '^ *+' conftest.er1 >conftest.err
30597 cat conftest.err >&5
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); } &&
30600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30601 { (case "(($ac_try" in
30602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603 *) ac_try_echo=$ac_try;;
30605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606 (eval "$ac_try") 2>&5
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); }; } &&
30610 { ac_try='test -s conftest.$ac_objext'
30611 { (case "(($ac_try" in
30612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30613 *) ac_try_echo=$ac_try;;
30615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616 (eval "$ac_try") 2>&5
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); }; }; then
30620 ac_header_compiler=yes
30622 echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30625 ac_header_compiler=no
30628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30630 echo "${ECHO_T}$ac_header_compiler" >&6; }
30632 # Is the header present?
30633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30635 cat >conftest.$ac_ext <<_ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h. */
30641 #include <$ac_header>
30643 if { (ac_try="$ac_cpp conftest.$ac_ext"
30644 case "(($ac_try" in
30645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30646 *) ac_try_echo=$ac_try;;
30648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30651 grep -v '^ *+' conftest.er1 >conftest.err
30653 cat conftest.err >&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); } >/dev/null; then
30656 if test -s conftest.err; then
30657 ac_cpp_err=$ac_c_preproc_warn_flag
30658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30665 if test -z "$ac_cpp_err"; then
30666 ac_header_preproc=yes
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30671 ac_header_preproc=no
30674 rm -f conftest.err conftest.$ac_ext
30675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30676 echo "${ECHO_T}$ac_header_preproc" >&6; }
30678 # So? What about this header?
30679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30685 ac_header_preproc=yes
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30701 ## ----------------------------------- ##
30702 ## Report this to llvmbugs@cs.uiuc.edu ##
30703 ## ----------------------------------- ##
30705 ) | sed "s/^/$as_me: WARNING: /" >&2
30708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30713 eval "$as_ac_Header=\$ac_header_preproc"
30715 ac_res=`eval echo '${'$as_ac_Header'}'`
30716 { echo "$as_me:$LINENO: result: $ac_res" >&5
30717 echo "${ECHO_T}$ac_res" >&6; }
30720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30721 cat >>confdefs.h <<_ACEOF
30722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30729 if test "$ENABLE_THREADS" -eq 1 ; then
30731 for ac_header in pthread.h
30733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30738 echo $ECHO_N "(cached) $ECHO_C" >&6
30740 ac_res=`eval echo '${'$as_ac_Header'}'`
30741 { echo "$as_me:$LINENO: result: $ac_res" >&5
30742 echo "${ECHO_T}$ac_res" >&6; }
30744 # Is the header compilable?
30745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30747 cat >conftest.$ac_ext <<_ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h. */
30753 $ac_includes_default
30754 #include <$ac_header>
30756 rm -f conftest.$ac_objext
30757 if { (ac_try="$ac_compile"
30758 case "(($ac_try" in
30759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760 *) ac_try_echo=$ac_try;;
30762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763 (eval "$ac_compile") 2>conftest.er1
30765 grep -v '^ *+' conftest.er1 >conftest.err
30767 cat conftest.err >&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); } &&
30770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30771 { (case "(($ac_try" in
30772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773 *) ac_try_echo=$ac_try;;
30775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776 (eval "$ac_try") 2>&5
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; } &&
30780 { ac_try='test -s conftest.$ac_objext'
30781 { (case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786 (eval "$ac_try") 2>&5
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; }; then
30790 ac_header_compiler=yes
30792 echo "$as_me: failed program was:" >&5
30793 sed 's/^/| /' conftest.$ac_ext >&5
30795 ac_header_compiler=no
30798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30800 echo "${ECHO_T}$ac_header_compiler" >&6; }
30802 # Is the header present?
30803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30805 cat >conftest.$ac_ext <<_ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h. */
30811 #include <$ac_header>
30813 if { (ac_try="$ac_cpp conftest.$ac_ext"
30814 case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30821 grep -v '^ *+' conftest.er1 >conftest.err
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } >/dev/null; then
30826 if test -s conftest.err; then
30827 ac_cpp_err=$ac_c_preproc_warn_flag
30828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30835 if test -z "$ac_cpp_err"; then
30836 ac_header_preproc=yes
30838 echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30841 ac_header_preproc=no
30844 rm -f conftest.err conftest.$ac_ext
30845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30846 echo "${ECHO_T}$ac_header_preproc" >&6; }
30848 # So? What about this header?
30849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30855 ac_header_preproc=yes
30858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30871 ## ----------------------------------- ##
30872 ## Report this to llvmbugs@cs.uiuc.edu ##
30873 ## ----------------------------------- ##
30875 ) | sed "s/^/$as_me: WARNING: /" >&2
30878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30881 echo $ECHO_N "(cached) $ECHO_C" >&6
30883 eval "$as_ac_Header=\$ac_header_preproc"
30885 ac_res=`eval echo '${'$as_ac_Header'}'`
30886 { echo "$as_me:$LINENO: result: $ac_res" >&5
30887 echo "${ECHO_T}$ac_res" >&6; }
30890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30891 cat >>confdefs.h <<_ACEOF
30892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30908 if test "$llvm_cv_enable_libffi" = "yes" ; then
30911 for ac_header in ffi.h ffi/ffi.h
30913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 ac_res=`eval echo '${'$as_ac_Header'}'`
30921 { echo "$as_me:$LINENO: result: $ac_res" >&5
30922 echo "${ECHO_T}$ac_res" >&6; }
30924 # Is the header compilable?
30925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 $ac_includes_default
30934 #include <$ac_header>
30936 rm -f conftest.$ac_objext
30937 if { (ac_try="$ac_compile"
30938 case "(($ac_try" in
30939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940 *) ac_try_echo=$ac_try;;
30942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943 (eval "$ac_compile") 2>conftest.er1
30945 grep -v '^ *+' conftest.er1 >conftest.err
30947 cat conftest.err >&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); } &&
30950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; } &&
30960 { ac_try='test -s conftest.$ac_objext'
30961 { (case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_try") 2>&5
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; }; then
30970 ac_header_compiler=yes
30972 echo "$as_me: failed program was:" >&5
30973 sed 's/^/| /' conftest.$ac_ext >&5
30975 ac_header_compiler=no
30978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30980 echo "${ECHO_T}$ac_header_compiler" >&6; }
30982 # Is the header present?
30983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30985 cat >conftest.$ac_ext <<_ACEOF
30988 cat confdefs.h >>conftest.$ac_ext
30989 cat >>conftest.$ac_ext <<_ACEOF
30990 /* end confdefs.h. */
30991 #include <$ac_header>
30993 if { (ac_try="$ac_cpp conftest.$ac_ext"
30994 case "(($ac_try" in
30995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996 *) ac_try_echo=$ac_try;;
30998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31001 grep -v '^ *+' conftest.er1 >conftest.err
31003 cat conftest.err >&5
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); } >/dev/null; then
31006 if test -s conftest.err; then
31007 ac_cpp_err=$ac_c_preproc_warn_flag
31008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31015 if test -z "$ac_cpp_err"; then
31016 ac_header_preproc=yes
31018 echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31021 ac_header_preproc=no
31024 rm -f conftest.err conftest.$ac_ext
31025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31026 echo "${ECHO_T}$ac_header_preproc" >&6; }
31028 # So? What about this header?
31029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31035 ac_header_preproc=yes
31038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31051 ## ----------------------------------- ##
31052 ## Report this to llvmbugs@cs.uiuc.edu ##
31053 ## ----------------------------------- ##
31055 ) | sed "s/^/$as_me: WARNING: /" >&2
31058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31061 echo $ECHO_N "(cached) $ECHO_C" >&6
31063 eval "$as_ac_Header=\$ac_header_preproc"
31065 ac_res=`eval echo '${'$as_ac_Header'}'`
31066 { echo "$as_me:$LINENO: result: $ac_res" >&5
31067 echo "${ECHO_T}$ac_res" >&6; }
31070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31071 cat >>confdefs.h <<_ACEOF
31072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31083 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31084 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31085 if test "${ac_cv_huge_val_sanity+set}" = set; then
31086 echo $ECHO_N "(cached) $ECHO_C" >&6
31090 ac_cpp='$CXXCPP $CPPFLAGS'
31091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31096 if test "$cross_compiling" = yes; then
31097 ac_cv_huge_val_sanity=yes
31099 cat >conftest.$ac_ext <<_ACEOF
31102 cat confdefs.h >>conftest.$ac_ext
31103 cat >>conftest.$ac_ext <<_ACEOF
31104 /* end confdefs.h. */
31109 double x = HUGE_VAL; return x != x;
31114 rm -f conftest$ac_exeext
31115 if { (ac_try="$ac_link"
31116 case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_link") 2>&5
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31125 { (case "(($ac_try" in
31126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127 *) ac_try_echo=$ac_try;;
31129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130 (eval "$ac_try") 2>&5
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; }; then
31134 ac_cv_huge_val_sanity=yes
31136 echo "$as_me: program exited with status $ac_status" >&5
31137 echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31140 ( exit $ac_status )
31141 ac_cv_huge_val_sanity=no
31143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31148 ac_cpp='$CPP $CPPFLAGS'
31149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31155 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31156 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31157 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31160 { echo "$as_me:$LINENO: checking for pid_t" >&5
31161 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31162 if test "${ac_cv_type_pid_t+set}" = set; then
31163 echo $ECHO_N "(cached) $ECHO_C" >&6
31165 cat >conftest.$ac_ext <<_ACEOF
31168 cat confdefs.h >>conftest.$ac_ext
31169 cat >>conftest.$ac_ext <<_ACEOF
31170 /* end confdefs.h. */
31171 $ac_includes_default
31172 typedef pid_t ac__type_new_;
31176 if ((ac__type_new_ *) 0)
31178 if (sizeof (ac__type_new_))
31184 rm -f conftest.$ac_objext
31185 if { (ac_try="$ac_compile"
31186 case "(($ac_try" in
31187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31188 *) ac_try_echo=$ac_try;;
31190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31191 (eval "$ac_compile") 2>conftest.er1
31193 grep -v '^ *+' conftest.er1 >conftest.err
31195 cat conftest.err >&5
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); } &&
31198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31199 { (case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_try") 2>&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest.$ac_objext'
31209 { (case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_try") 2>&5
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; }; then
31218 ac_cv_type_pid_t=yes
31220 echo "$as_me: failed program was:" >&5
31221 sed 's/^/| /' conftest.$ac_ext >&5
31223 ac_cv_type_pid_t=no
31226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31228 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31230 if test $ac_cv_type_pid_t = yes; then
31234 cat >>confdefs.h <<_ACEOF
31240 { echo "$as_me:$LINENO: checking for size_t" >&5
31241 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31242 if test "${ac_cv_type_size_t+set}" = set; then
31243 echo $ECHO_N "(cached) $ECHO_C" >&6
31245 cat >conftest.$ac_ext <<_ACEOF
31248 cat confdefs.h >>conftest.$ac_ext
31249 cat >>conftest.$ac_ext <<_ACEOF
31250 /* end confdefs.h. */
31251 $ac_includes_default
31252 typedef size_t ac__type_new_;
31256 if ((ac__type_new_ *) 0)
31258 if (sizeof (ac__type_new_))
31264 rm -f conftest.$ac_objext
31265 if { (ac_try="$ac_compile"
31266 case "(($ac_try" in
31267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268 *) ac_try_echo=$ac_try;;
31270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31271 (eval "$ac_compile") 2>conftest.er1
31273 grep -v '^ *+' conftest.er1 >conftest.err
31275 cat conftest.err >&5
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); } &&
31278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31279 { (case "(($ac_try" in
31280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281 *) ac_try_echo=$ac_try;;
31283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284 (eval "$ac_try") 2>&5
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; } &&
31288 { ac_try='test -s conftest.$ac_objext'
31289 { (case "(($ac_try" in
31290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291 *) ac_try_echo=$ac_try;;
31293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294 (eval "$ac_try") 2>&5
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); }; }; then
31298 ac_cv_type_size_t=yes
31300 echo "$as_me: failed program was:" >&5
31301 sed 's/^/| /' conftest.$ac_ext >&5
31303 ac_cv_type_size_t=no
31306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31308 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31309 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31310 if test $ac_cv_type_size_t = yes; then
31314 cat >>confdefs.h <<_ACEOF
31315 #define size_t unsigned int
31320 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31321 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31322 if test "${ac_cv_type_signal+set}" = set; then
31323 echo $ECHO_N "(cached) $ECHO_C" >&6
31325 cat >conftest.$ac_ext <<_ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h. */
31331 #include <sys/types.h>
31332 #include <signal.h>
31337 return *(signal (0, 0)) (0) == 1;
31342 rm -f conftest.$ac_objext
31343 if { (ac_try="$ac_compile"
31344 case "(($ac_try" in
31345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_compile") 2>conftest.er1
31351 grep -v '^ *+' conftest.er1 >conftest.err
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest.$ac_objext'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
31376 ac_cv_type_signal=int
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 ac_cv_type_signal=void
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31386 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31387 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31389 cat >>confdefs.h <<_ACEOF
31390 #define RETSIGTYPE $ac_cv_type_signal
31394 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31395 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31396 if test "${ac_cv_struct_tm+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31399 cat >conftest.$ac_ext <<_ACEOF
31402 cat confdefs.h >>conftest.$ac_ext
31403 cat >>conftest.$ac_ext <<_ACEOF
31404 /* end confdefs.h. */
31405 #include <sys/types.h>
31411 struct tm *tp; tp->tm_sec;
31416 rm -f conftest.$ac_objext
31417 if { (ac_try="$ac_compile"
31418 case "(($ac_try" in
31419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420 *) ac_try_echo=$ac_try;;
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_compile") 2>conftest.er1
31425 grep -v '^ *+' conftest.er1 >conftest.err
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); } &&
31430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31431 { (case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_try") 2>&5
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest.$ac_objext'
31441 { (case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31446 (eval "$ac_try") 2>&5
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; }; then
31450 ac_cv_struct_tm=time.h
31452 echo "$as_me: failed program was:" >&5
31453 sed 's/^/| /' conftest.$ac_ext >&5
31455 ac_cv_struct_tm=sys/time.h
31458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31460 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31461 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31462 if test $ac_cv_struct_tm = sys/time.h; then
31464 cat >>confdefs.h <<\_ACEOF
31465 #define TM_IN_SYS_TIME 1
31470 { echo "$as_me:$LINENO: checking for int64_t" >&5
31471 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31472 if test "${ac_cv_type_int64_t+set}" = set; then
31473 echo $ECHO_N "(cached) $ECHO_C" >&6
31475 cat >conftest.$ac_ext <<_ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h. */
31481 $ac_includes_default
31482 typedef int64_t ac__type_new_;
31486 if ((ac__type_new_ *) 0)
31488 if (sizeof (ac__type_new_))
31494 rm -f conftest.$ac_objext
31495 if { (ac_try="$ac_compile"
31496 case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_compile") 2>conftest.er1
31503 grep -v '^ *+' conftest.er1 >conftest.err
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } &&
31508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest.$ac_objext'
31519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
31528 ac_cv_type_int64_t=yes
31530 echo "$as_me: failed program was:" >&5
31531 sed 's/^/| /' conftest.$ac_ext >&5
31533 ac_cv_type_int64_t=no
31536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31538 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31539 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31540 if test $ac_cv_type_int64_t = yes; then
31542 cat >>confdefs.h <<_ACEOF
31543 #define HAVE_INT64_T 1
31548 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31549 echo "$as_me: error: Type int64_t required but not found" >&2;}
31550 { (exit 1); exit 1; }; }
31553 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31554 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31555 if test "${ac_cv_type_uint64_t+set}" = set; then
31556 echo $ECHO_N "(cached) $ECHO_C" >&6
31558 cat >conftest.$ac_ext <<_ACEOF
31561 cat confdefs.h >>conftest.$ac_ext
31562 cat >>conftest.$ac_ext <<_ACEOF
31563 /* end confdefs.h. */
31564 $ac_includes_default
31565 typedef uint64_t ac__type_new_;
31569 if ((ac__type_new_ *) 0)
31571 if (sizeof (ac__type_new_))
31577 rm -f conftest.$ac_objext
31578 if { (ac_try="$ac_compile"
31579 case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_compile") 2>conftest.er1
31586 grep -v '^ *+' conftest.er1 >conftest.err
31588 cat conftest.err >&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } &&
31591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31592 { (case "(($ac_try" in
31593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31594 *) ac_try_echo=$ac_try;;
31596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31597 (eval "$ac_try") 2>&5
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; } &&
31601 { ac_try='test -s conftest.$ac_objext'
31602 { (case "(($ac_try" in
31603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604 *) ac_try_echo=$ac_try;;
31606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607 (eval "$ac_try") 2>&5
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); }; }; then
31611 ac_cv_type_uint64_t=yes
31613 echo "$as_me: failed program was:" >&5
31614 sed 's/^/| /' conftest.$ac_ext >&5
31616 ac_cv_type_uint64_t=no
31619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31621 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31622 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31623 if test $ac_cv_type_uint64_t = yes; then
31625 cat >>confdefs.h <<_ACEOF
31626 #define HAVE_UINT64_T 1
31631 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31632 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31633 if test "${ac_cv_type_u_int64_t+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 cat >conftest.$ac_ext <<_ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h. */
31642 $ac_includes_default
31643 typedef u_int64_t ac__type_new_;
31647 if ((ac__type_new_ *) 0)
31649 if (sizeof (ac__type_new_))
31655 rm -f conftest.$ac_objext
31656 if { (ac_try="$ac_compile"
31657 case "(($ac_try" in
31658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659 *) ac_try_echo=$ac_try;;
31661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662 (eval "$ac_compile") 2>conftest.er1
31664 grep -v '^ *+' conftest.er1 >conftest.err
31666 cat conftest.err >&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } &&
31669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31670 { (case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_try") 2>&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; } &&
31679 { ac_try='test -s conftest.$ac_objext'
31680 { (case "(($ac_try" in
31681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31682 *) ac_try_echo=$ac_try;;
31684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31685 (eval "$ac_try") 2>&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; }; then
31689 ac_cv_type_u_int64_t=yes
31691 echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31694 ac_cv_type_u_int64_t=no
31697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31699 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31700 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31701 if test $ac_cv_type_u_int64_t = yes; then
31703 cat >>confdefs.h <<_ACEOF
31704 #define HAVE_U_INT64_T 1
31709 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31710 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31711 { (exit 1); exit 1; }; }
31725 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31731 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 cat >conftest.$ac_ext <<_ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h. */
31739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31741 #define $ac_func innocuous_$ac_func
31743 /* System header to define __stub macros and hopefully few prototypes,
31744 which can conflict with char $ac_func (); below.
31745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746 <limits.h> exists even on freestanding compilers. */
31749 # include <limits.h>
31751 # include <assert.h>
31756 /* Override any GCC internal prototype to avoid an error.
31757 Use char because int might match the return type of a GCC
31758 builtin and then its argument prototype would still apply. */
31763 /* The GNU C library defines this for functions which it implements
31764 to always fail with ENOSYS. Some functions are actually named
31765 something starting with __ and the normal name is an alias. */
31766 #if defined __stub_$ac_func || defined __stub___$ac_func
31773 return $ac_func ();
31778 rm -f conftest.$ac_objext conftest$ac_exeext
31779 if { (ac_try="$ac_link"
31780 case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_link") 2>conftest.er1
31787 grep -v '^ *+' conftest.er1 >conftest.err
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } &&
31792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31793 { (case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_try") 2>&5
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; } &&
31802 { ac_try='test -s conftest$ac_exeext'
31803 { (case "(($ac_try" in
31804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805 *) ac_try_echo=$ac_try;;
31807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31808 (eval "$ac_try") 2>&5
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
31812 eval "$as_ac_var=yes"
31814 echo "$as_me: failed program was:" >&5
31815 sed 's/^/| /' conftest.$ac_ext >&5
31817 eval "$as_ac_var=no"
31820 rm -f core conftest.err conftest.$ac_objext \
31821 conftest$ac_exeext conftest.$ac_ext
31823 ac_res=`eval echo '${'$as_ac_var'}'`
31824 { echo "$as_me:$LINENO: result: $ac_res" >&5
31825 echo "${ECHO_T}$ac_res" >&6; }
31826 if test `eval echo '${'$as_ac_var'}'` = yes; then
31827 cat >>confdefs.h <<_ACEOF
31828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31838 for ac_func in powf fmodf strtof round
31840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31846 cat >conftest.$ac_ext <<_ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h. */
31852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31854 #define $ac_func innocuous_$ac_func
31856 /* System header to define __stub macros and hopefully few prototypes,
31857 which can conflict with char $ac_func (); below.
31858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31859 <limits.h> exists even on freestanding compilers. */
31862 # include <limits.h>
31864 # include <assert.h>
31869 /* Override any GCC internal prototype to avoid an error.
31870 Use char because int might match the return type of a GCC
31871 builtin and then its argument prototype would still apply. */
31876 /* The GNU C library defines this for functions which it implements
31877 to always fail with ENOSYS. Some functions are actually named
31878 something starting with __ and the normal name is an alias. */
31879 #if defined __stub_$ac_func || defined __stub___$ac_func
31886 return $ac_func ();
31891 rm -f conftest.$ac_objext conftest$ac_exeext
31892 if { (ac_try="$ac_link"
31893 case "(($ac_try" in
31894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31895 *) ac_try_echo=$ac_try;;
31897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31898 (eval "$ac_link") 2>conftest.er1
31900 grep -v '^ *+' conftest.er1 >conftest.err
31902 cat conftest.err >&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } &&
31905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31906 { (case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_try") 2>&5
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; } &&
31915 { ac_try='test -s conftest$ac_exeext'
31916 { (case "(($ac_try" in
31917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31918 *) ac_try_echo=$ac_try;;
31920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31921 (eval "$ac_try") 2>&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); }; }; then
31925 eval "$as_ac_var=yes"
31927 echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31930 eval "$as_ac_var=no"
31933 rm -f core conftest.err conftest.$ac_objext \
31934 conftest$ac_exeext conftest.$ac_ext
31936 ac_res=`eval echo '${'$as_ac_var'}'`
31937 { echo "$as_me:$LINENO: result: $ac_res" >&5
31938 echo "${ECHO_T}$ac_res" >&6; }
31939 if test `eval echo '${'$as_ac_var'}'` = yes; then
31940 cat >>confdefs.h <<_ACEOF
31941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31952 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31960 cat >conftest.$ac_ext <<_ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h. */
31966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31968 #define $ac_func innocuous_$ac_func
31970 /* System header to define __stub macros and hopefully few prototypes,
31971 which can conflict with char $ac_func (); below.
31972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31973 <limits.h> exists even on freestanding compilers. */
31976 # include <limits.h>
31978 # include <assert.h>
31983 /* Override any GCC internal prototype to avoid an error.
31984 Use char because int might match the return type of a GCC
31985 builtin and then its argument prototype would still apply. */
31990 /* The GNU C library defines this for functions which it implements
31991 to always fail with ENOSYS. Some functions are actually named
31992 something starting with __ and the normal name is an alias. */
31993 #if defined __stub_$ac_func || defined __stub___$ac_func
32000 return $ac_func ();
32005 rm -f conftest.$ac_objext conftest$ac_exeext
32006 if { (ac_try="$ac_link"
32007 case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_link") 2>conftest.er1
32014 grep -v '^ *+' conftest.er1 >conftest.err
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } &&
32019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32020 { (case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_try") 2>&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest$ac_exeext'
32030 { (case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_try") 2>&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 eval "$as_ac_var=yes"
32041 echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32044 eval "$as_ac_var=no"
32047 rm -f core conftest.err conftest.$ac_objext \
32048 conftest$ac_exeext conftest.$ac_ext
32050 ac_res=`eval echo '${'$as_ac_var'}'`
32051 { echo "$as_me:$LINENO: result: $ac_res" >&5
32052 echo "${ECHO_T}$ac_res" >&6; }
32053 if test `eval echo '${'$as_ac_var'}'` = yes; then
32054 cat >>confdefs.h <<_ACEOF
32055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32064 for ac_func in isatty mkdtemp mkstemp
32066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32070 echo $ECHO_N "(cached) $ECHO_C" >&6
32072 cat >conftest.$ac_ext <<_ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h. */
32078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32080 #define $ac_func innocuous_$ac_func
32082 /* System header to define __stub macros and hopefully few prototypes,
32083 which can conflict with char $ac_func (); below.
32084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32085 <limits.h> exists even on freestanding compilers. */
32088 # include <limits.h>
32090 # include <assert.h>
32095 /* Override any GCC internal prototype to avoid an error.
32096 Use char because int might match the return type of a GCC
32097 builtin and then its argument prototype would still apply. */
32102 /* The GNU C library defines this for functions which it implements
32103 to always fail with ENOSYS. Some functions are actually named
32104 something starting with __ and the normal name is an alias. */
32105 #if defined __stub_$ac_func || defined __stub___$ac_func
32112 return $ac_func ();
32117 rm -f conftest.$ac_objext conftest$ac_exeext
32118 if { (ac_try="$ac_link"
32119 case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124 (eval "$ac_link") 2>conftest.er1
32126 grep -v '^ *+' conftest.er1 >conftest.err
32128 cat conftest.err >&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } &&
32131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; } &&
32141 { ac_try='test -s conftest$ac_exeext'
32142 { (case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_try") 2>&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
32151 eval "$as_ac_var=yes"
32153 echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32156 eval "$as_ac_var=no"
32159 rm -f core conftest.err conftest.$ac_objext \
32160 conftest$ac_exeext conftest.$ac_ext
32162 ac_res=`eval echo '${'$as_ac_var'}'`
32163 { echo "$as_me:$LINENO: result: $ac_res" >&5
32164 echo "${ECHO_T}$ac_res" >&6; }
32165 if test `eval echo '${'$as_ac_var'}'` = yes; then
32166 cat >>confdefs.h <<_ACEOF
32167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32178 for ac_func in mktemp realpath sbrk setrlimit strdup
32180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32184 echo $ECHO_N "(cached) $ECHO_C" >&6
32186 cat >conftest.$ac_ext <<_ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h. */
32192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32194 #define $ac_func innocuous_$ac_func
32196 /* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32202 # include <limits.h>
32204 # include <assert.h>
32209 /* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32216 /* The GNU C library defines this for functions which it implements
32217 to always fail with ENOSYS. Some functions are actually named
32218 something starting with __ and the normal name is an alias. */
32219 #if defined __stub_$ac_func || defined __stub___$ac_func
32226 return $ac_func ();
32231 rm -f conftest.$ac_objext conftest$ac_exeext
32232 if { (ac_try="$ac_link"
32233 case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_link") 2>conftest.er1
32240 grep -v '^ *+' conftest.er1 >conftest.err
32242 cat conftest.err >&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); } &&
32245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32246 { (case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_try") 2>&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; } &&
32255 { ac_try='test -s conftest$ac_exeext'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 eval "$as_ac_var=yes"
32267 echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32270 eval "$as_ac_var=no"
32273 rm -f core conftest.err conftest.$ac_objext \
32274 conftest$ac_exeext conftest.$ac_ext
32276 ac_res=`eval echo '${'$as_ac_var'}'`
32277 { echo "$as_me:$LINENO: result: $ac_res" >&5
32278 echo "${ECHO_T}$ac_res" >&6; }
32279 if test `eval echo '${'$as_ac_var'}'` = yes; then
32280 cat >>confdefs.h <<_ACEOF
32281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32290 for ac_func in strerror strerror_r strerror_s
32292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32296 echo $ECHO_N "(cached) $ECHO_C" >&6
32298 cat >conftest.$ac_ext <<_ACEOF
32301 cat confdefs.h >>conftest.$ac_ext
32302 cat >>conftest.$ac_ext <<_ACEOF
32303 /* end confdefs.h. */
32304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32306 #define $ac_func innocuous_$ac_func
32308 /* System header to define __stub macros and hopefully few prototypes,
32309 which can conflict with char $ac_func (); below.
32310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32311 <limits.h> exists even on freestanding compilers. */
32314 # include <limits.h>
32316 # include <assert.h>
32321 /* Override any GCC internal prototype to avoid an error.
32322 Use char because int might match the return type of a GCC
32323 builtin and then its argument prototype would still apply. */
32328 /* The GNU C library defines this for functions which it implements
32329 to always fail with ENOSYS. Some functions are actually named
32330 something starting with __ and the normal name is an alias. */
32331 #if defined __stub_$ac_func || defined __stub___$ac_func
32338 return $ac_func ();
32343 rm -f conftest.$ac_objext conftest$ac_exeext
32344 if { (ac_try="$ac_link"
32345 case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_link") 2>conftest.er1
32352 grep -v '^ *+' conftest.er1 >conftest.err
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
32357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest$ac_exeext'
32368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 eval "$as_ac_var=yes"
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 eval "$as_ac_var=no"
32385 rm -f core conftest.err conftest.$ac_objext \
32386 conftest$ac_exeext conftest.$ac_ext
32388 ac_res=`eval echo '${'$as_ac_var'}'`
32389 { echo "$as_me:$LINENO: result: $ac_res" >&5
32390 echo "${ECHO_T}$ac_res" >&6; }
32391 if test `eval echo '${'$as_ac_var'}'` = yes; then
32392 cat >>confdefs.h <<_ACEOF
32393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32403 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32409 echo $ECHO_N "(cached) $ECHO_C" >&6
32411 cat >conftest.$ac_ext <<_ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h. */
32417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32419 #define $ac_func innocuous_$ac_func
32421 /* System header to define __stub macros and hopefully few prototypes,
32422 which can conflict with char $ac_func (); below.
32423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32424 <limits.h> exists even on freestanding compilers. */
32427 # include <limits.h>
32429 # include <assert.h>
32434 /* Override any GCC internal prototype to avoid an error.
32435 Use char because int might match the return type of a GCC
32436 builtin and then its argument prototype would still apply. */
32441 /* The GNU C library defines this for functions which it implements
32442 to always fail with ENOSYS. Some functions are actually named
32443 something starting with __ and the normal name is an alias. */
32444 #if defined __stub_$ac_func || defined __stub___$ac_func
32451 return $ac_func ();
32456 rm -f conftest.$ac_objext conftest$ac_exeext
32457 if { (ac_try="$ac_link"
32458 case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_link") 2>conftest.er1
32465 grep -v '^ *+' conftest.er1 >conftest.err
32467 cat conftest.err >&5
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); } &&
32470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32471 { (case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_try") 2>&5
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; } &&
32480 { ac_try='test -s conftest$ac_exeext'
32481 { (case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_try") 2>&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; }; then
32490 eval "$as_ac_var=yes"
32492 echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32495 eval "$as_ac_var=no"
32498 rm -f core conftest.err conftest.$ac_objext \
32499 conftest$ac_exeext conftest.$ac_ext
32501 ac_res=`eval echo '${'$as_ac_var'}'`
32502 { echo "$as_me:$LINENO: result: $ac_res" >&5
32503 echo "${ECHO_T}$ac_res" >&6; }
32504 if test `eval echo '${'$as_ac_var'}'` = yes; then
32505 cat >>confdefs.h <<_ACEOF
32506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32516 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32522 echo $ECHO_N "(cached) $ECHO_C" >&6
32524 cat >conftest.$ac_ext <<_ACEOF
32527 cat confdefs.h >>conftest.$ac_ext
32528 cat >>conftest.$ac_ext <<_ACEOF
32529 /* end confdefs.h. */
32530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32532 #define $ac_func innocuous_$ac_func
32534 /* System header to define __stub macros and hopefully few prototypes,
32535 which can conflict with char $ac_func (); below.
32536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32537 <limits.h> exists even on freestanding compilers. */
32540 # include <limits.h>
32542 # include <assert.h>
32547 /* Override any GCC internal prototype to avoid an error.
32548 Use char because int might match the return type of a GCC
32549 builtin and then its argument prototype would still apply. */
32554 /* The GNU C library defines this for functions which it implements
32555 to always fail with ENOSYS. Some functions are actually named
32556 something starting with __ and the normal name is an alias. */
32557 #if defined __stub_$ac_func || defined __stub___$ac_func
32564 return $ac_func ();
32569 rm -f conftest.$ac_objext conftest$ac_exeext
32570 if { (ac_try="$ac_link"
32571 case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_link") 2>conftest.er1
32578 grep -v '^ *+' conftest.er1 >conftest.err
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); } &&
32583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32584 { (case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_try") 2>&5
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest$ac_exeext'
32594 { (case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_try") 2>&5
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; }; then
32603 eval "$as_ac_var=yes"
32605 echo "$as_me: failed program was:" >&5
32606 sed 's/^/| /' conftest.$ac_ext >&5
32608 eval "$as_ac_var=no"
32611 rm -f core conftest.err conftest.$ac_objext \
32612 conftest$ac_exeext conftest.$ac_ext
32614 ac_res=`eval echo '${'$as_ac_var'}'`
32615 { echo "$as_me:$LINENO: result: $ac_res" >&5
32616 echo "${ECHO_T}$ac_res" >&6; }
32617 if test `eval echo '${'$as_ac_var'}'` = yes; then
32618 cat >>confdefs.h <<_ACEOF
32619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32625 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32626 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32627 if test "${llvm_cv_c_printf_a+set}" = set; then
32628 echo $ECHO_N "(cached) $ECHO_C" >&6
32631 ac_cpp='$CPP $CPPFLAGS'
32632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32636 if test "$cross_compiling" = yes; then
32637 llvmac_cv_c_printf_a=no
32639 cat >conftest.$ac_ext <<_ACEOF
32643 cat confdefs.h >>conftest.$ac_ext
32644 cat >>conftest.$ac_ext <<_ACEOF
32645 /* end confdefs.h. */
32648 #include <stdlib.h>
32654 volatile double A, B;
32658 sprintf(Buffer, "%a", A);
32662 if (A != 0x1.999999999999ap-4)
32669 rm -f conftest$ac_exeext
32670 if { (ac_try="$ac_link"
32671 case "(($ac_try" in
32672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673 *) ac_try_echo=$ac_try;;
32675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676 (eval "$ac_link") 2>&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32680 { (case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_try") 2>&5
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; }; then
32689 llvm_cv_c_printf_a=yes
32691 echo "$as_me: program exited with status $ac_status" >&5
32692 echo "$as_me: failed program was:" >&5
32693 sed 's/^/| /' conftest.$ac_ext >&5
32695 ( exit $ac_status )
32696 llvmac_cv_c_printf_a=no
32698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32703 ac_cpp='$CPP $CPPFLAGS'
32704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32709 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32710 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32711 if test "$llvm_cv_c_printf_a" = "yes"; then
32713 cat >>confdefs.h <<\_ACEOF
32714 #define HAVE_PRINTF_A 1
32719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32720 # for constant arguments. Useless!
32721 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32722 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32723 if test "${ac_cv_working_alloca_h+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32726 cat >conftest.$ac_ext <<_ACEOF
32729 cat confdefs.h >>conftest.$ac_ext
32730 cat >>conftest.$ac_ext <<_ACEOF
32731 /* end confdefs.h. */
32732 #include <alloca.h>
32736 char *p = (char *) alloca (2 * sizeof (int));
32742 rm -f conftest.$ac_objext conftest$ac_exeext
32743 if { (ac_try="$ac_link"
32744 case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_link") 2>conftest.er1
32751 grep -v '^ *+' conftest.er1 >conftest.err
32753 cat conftest.err >&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } &&
32756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32757 { (case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; } &&
32766 { ac_try='test -s conftest$ac_exeext'
32767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 ac_cv_working_alloca_h=yes
32778 echo "$as_me: failed program was:" >&5
32779 sed 's/^/| /' conftest.$ac_ext >&5
32781 ac_cv_working_alloca_h=no
32784 rm -f core conftest.err conftest.$ac_objext \
32785 conftest$ac_exeext conftest.$ac_ext
32787 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32788 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32789 if test $ac_cv_working_alloca_h = yes; then
32791 cat >>confdefs.h <<\_ACEOF
32792 #define HAVE_ALLOCA_H 1
32797 { echo "$as_me:$LINENO: checking for alloca" >&5
32798 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32799 if test "${ac_cv_func_alloca_works+set}" = set; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32802 cat >conftest.$ac_ext <<_ACEOF
32805 cat confdefs.h >>conftest.$ac_ext
32806 cat >>conftest.$ac_ext <<_ACEOF
32807 /* end confdefs.h. */
32809 # define alloca __builtin_alloca
32812 # include <malloc.h>
32813 # define alloca _alloca
32816 # include <alloca.h>
32821 # ifndef alloca /* predefined by HP cc +Olibcalls */
32832 char *p = (char *) alloca (1);
32838 rm -f conftest.$ac_objext conftest$ac_exeext
32839 if { (ac_try="$ac_link"
32840 case "(($ac_try" in
32841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842 *) ac_try_echo=$ac_try;;
32844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845 (eval "$ac_link") 2>conftest.er1
32847 grep -v '^ *+' conftest.er1 >conftest.err
32849 cat conftest.err >&5
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); } &&
32852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32853 { (case "(($ac_try" in
32854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855 *) ac_try_echo=$ac_try;;
32857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858 (eval "$ac_try") 2>&5
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; } &&
32862 { ac_try='test -s conftest$ac_exeext'
32863 { (case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_try") 2>&5
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; }; then
32872 ac_cv_func_alloca_works=yes
32874 echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32877 ac_cv_func_alloca_works=no
32880 rm -f core conftest.err conftest.$ac_objext \
32881 conftest$ac_exeext conftest.$ac_ext
32883 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32884 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32886 if test $ac_cv_func_alloca_works = yes; then
32888 cat >>confdefs.h <<\_ACEOF
32889 #define HAVE_ALLOCA 1
32893 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32894 # that cause trouble. Some versions do not even contain alloca or
32895 # contain a buggy version. If you still want to use their alloca,
32896 # use ar to extract alloca.o from them instead of compiling alloca.c.
32898 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32900 cat >>confdefs.h <<\_ACEOF
32905 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32906 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32907 if test "${ac_cv_os_cray+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32910 cat >conftest.$ac_ext <<_ACEOF
32913 cat confdefs.h >>conftest.$ac_ext
32914 cat >>conftest.$ac_ext <<_ACEOF
32915 /* end confdefs.h. */
32916 #if defined CRAY && ! defined CRAY2
32923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32924 $EGREP "webecray" >/dev/null 2>&1; then
32932 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32933 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32934 if test $ac_cv_os_cray = yes; then
32935 for ac_func in _getb67 GETB67 getb67; do
32936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32942 cat >conftest.$ac_ext <<_ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h. */
32948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32950 #define $ac_func innocuous_$ac_func
32952 /* System header to define __stub macros and hopefully few prototypes,
32953 which can conflict with char $ac_func (); below.
32954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32955 <limits.h> exists even on freestanding compilers. */
32958 # include <limits.h>
32960 # include <assert.h>
32965 /* Override any GCC internal prototype to avoid an error.
32966 Use char because int might match the return type of a GCC
32967 builtin and then its argument prototype would still apply. */
32972 /* The GNU C library defines this for functions which it implements
32973 to always fail with ENOSYS. Some functions are actually named
32974 something starting with __ and the normal name is an alias. */
32975 #if defined __stub_$ac_func || defined __stub___$ac_func
32982 return $ac_func ();
32987 rm -f conftest.$ac_objext conftest$ac_exeext
32988 if { (ac_try="$ac_link"
32989 case "(($ac_try" in
32990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32991 *) ac_try_echo=$ac_try;;
32993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32994 (eval "$ac_link") 2>conftest.er1
32996 grep -v '^ *+' conftest.er1 >conftest.err
32998 cat conftest.err >&5
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } &&
33001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33002 { (case "(($ac_try" in
33003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004 *) ac_try_echo=$ac_try;;
33006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007 (eval "$ac_try") 2>&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; } &&
33011 { ac_try='test -s conftest$ac_exeext'
33012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 eval "$as_ac_var=yes"
33023 echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33026 eval "$as_ac_var=no"
33029 rm -f core conftest.err conftest.$ac_objext \
33030 conftest$ac_exeext conftest.$ac_ext
33032 ac_res=`eval echo '${'$as_ac_var'}'`
33033 { echo "$as_me:$LINENO: result: $ac_res" >&5
33034 echo "${ECHO_T}$ac_res" >&6; }
33035 if test `eval echo '${'$as_ac_var'}'` = yes; then
33037 cat >>confdefs.h <<_ACEOF
33038 #define CRAY_STACKSEG_END $ac_func
33047 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33048 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33049 if test "${ac_cv_c_stack_direction+set}" = set; then
33050 echo $ECHO_N "(cached) $ECHO_C" >&6
33052 if test "$cross_compiling" = yes; then
33053 ac_cv_c_stack_direction=0
33055 cat >conftest.$ac_ext <<_ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h. */
33061 $ac_includes_default
33063 find_stack_direction ()
33065 static char *addr = 0;
33070 return find_stack_direction ();
33073 return (&dummy > addr) ? 1 : -1;
33079 return find_stack_direction () < 0;
33082 rm -f conftest$ac_exeext
33083 if { (ac_try="$ac_link"
33084 case "(($ac_try" in
33085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33086 *) ac_try_echo=$ac_try;;
33088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33089 (eval "$ac_link") 2>&5
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33093 { (case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_try") 2>&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; }; then
33102 ac_cv_c_stack_direction=1
33104 echo "$as_me: program exited with status $ac_status" >&5
33105 echo "$as_me: failed program was:" >&5
33106 sed 's/^/| /' conftest.$ac_ext >&5
33108 ( exit $ac_status )
33109 ac_cv_c_stack_direction=-1
33111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33116 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33117 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33119 cat >>confdefs.h <<_ACEOF
33120 #define STACK_DIRECTION $ac_cv_c_stack_direction
33127 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33128 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33129 if test "${ac_cv_func_rand48+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33133 ac_cpp='$CXXCPP $CPPFLAGS'
33134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33138 cat >conftest.$ac_ext <<_ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h. */
33144 #include <stdlib.h>
33148 srand48(0);lrand48();drand48();
33153 rm -f conftest.$ac_objext
33154 if { (ac_try="$ac_compile"
33155 case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_compile") 2>conftest.er1
33162 grep -v '^ *+' conftest.er1 >conftest.err
33164 cat conftest.err >&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } &&
33167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest.$ac_objext'
33178 { (case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_try") 2>&5
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; }; then
33187 ac_cv_func_rand48=yes
33189 echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33192 ac_cv_func_rand48=no
33195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33197 ac_cpp='$CPP $CPPFLAGS'
33198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33203 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33204 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33206 if test "$ac_cv_func_rand48" = "yes" ; then
33208 cat >>confdefs.h <<\_ACEOF
33209 #define HAVE_RAND48 1
33215 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33216 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33217 if test "${ac_cv_cxx_namespaces+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33221 ac_cpp='$CXXCPP $CPPFLAGS'
33222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33226 cat >conftest.$ac_ext <<_ACEOF
33229 cat confdefs.h >>conftest.$ac_ext
33230 cat >>conftest.$ac_ext <<_ACEOF
33231 /* end confdefs.h. */
33232 namespace Outer { namespace Inner { int i = 0; }}
33236 using namespace Outer::Inner; return i;
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
33250 grep -v '^ *+' conftest.er1 >conftest.err
33252 cat conftest.err >&5
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); } &&
33255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
33266 { (case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_try") 2>&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ac_cv_cxx_namespaces=yes
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33280 ac_cv_cxx_namespaces=no
33283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33285 ac_cpp='$CPP $CPPFLAGS'
33286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33292 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33293 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33294 if test "$ac_cv_cxx_namespaces" = yes; then
33296 cat >>confdefs.h <<\_ACEOF
33297 #define HAVE_NAMESPACES
33302 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33303 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33304 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33309 ac_cpp='$CXXCPP $CPPFLAGS'
33310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33314 cat >conftest.$ac_ext <<_ACEOF
33317 cat confdefs.h >>conftest.$ac_ext
33318 cat >>conftest.$ac_ext <<_ACEOF
33319 /* end confdefs.h. */
33320 #include <iterator>
33321 #ifdef HAVE_NAMESPACES
33322 using namespace std;
33327 iterator<int,int,int> t; return 0;
33332 rm -f conftest.$ac_objext
33333 if { (ac_try="$ac_compile"
33334 case "(($ac_try" in
33335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336 *) ac_try_echo=$ac_try;;
33338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339 (eval "$ac_compile") 2>conftest.er1
33341 grep -v '^ *+' conftest.er1 >conftest.err
33343 cat conftest.err >&5
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); } &&
33346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33347 { (case "(($ac_try" in
33348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349 *) ac_try_echo=$ac_try;;
33351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352 (eval "$ac_try") 2>&5
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); }; } &&
33356 { ac_try='test -s conftest.$ac_objext'
33357 { (case "(($ac_try" in
33358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359 *) ac_try_echo=$ac_try;;
33361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362 (eval "$ac_try") 2>&5
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
33366 ac_cv_cxx_have_std_iterator=yes
33368 echo "$as_me: failed program was:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33371 ac_cv_cxx_have_std_iterator=no
33374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33376 ac_cpp='$CPP $CPPFLAGS'
33377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33384 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33385 if test "$ac_cv_cxx_have_std_iterator" = yes
33388 cat >>confdefs.h <<\_ACEOF
33389 #define HAVE_STD_ITERATOR 1
33394 cat >>confdefs.h <<\_ACEOF
33395 #define HAVE_STD_ITERATOR 0
33400 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33401 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33402 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33403 echo $ECHO_N "(cached) $ECHO_C" >&6
33407 ac_cpp='$CXXCPP $CPPFLAGS'
33408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33412 cat >conftest.$ac_ext <<_ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h. */
33418 #include <iterator>
33419 #ifdef HAVE_NAMESPACES
33420 using namespace std;
33425 bidirectional_iterator<int,int> t; return 0;
33430 rm -f conftest.$ac_objext
33431 if { (ac_try="$ac_compile"
33432 case "(($ac_try" in
33433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33434 *) ac_try_echo=$ac_try;;
33436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33437 (eval "$ac_compile") 2>conftest.er1
33439 grep -v '^ *+' conftest.er1 >conftest.err
33441 cat conftest.err >&5
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); } &&
33444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33445 { (case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_try") 2>&5
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; } &&
33454 { ac_try='test -s conftest.$ac_objext'
33455 { (case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_try") 2>&5
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); }; }; then
33464 ac_cv_cxx_have_bi_iterator=yes
33466 echo "$as_me: failed program was:" >&5
33467 sed 's/^/| /' conftest.$ac_ext >&5
33469 ac_cv_cxx_have_bi_iterator=no
33472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33474 ac_cpp='$CPP $CPPFLAGS'
33475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33481 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33482 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33483 if test "$ac_cv_cxx_have_bi_iterator" = yes
33486 cat >>confdefs.h <<\_ACEOF
33487 #define HAVE_BI_ITERATOR 1
33492 cat >>confdefs.h <<\_ACEOF
33493 #define HAVE_BI_ITERATOR 0
33498 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33499 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33500 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33501 echo $ECHO_N "(cached) $ECHO_C" >&6
33505 ac_cpp='$CXXCPP $CPPFLAGS'
33506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33510 cat >conftest.$ac_ext <<_ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h. */
33516 #include <iterator>
33517 #ifdef HAVE_NAMESPACES
33518 using namespace std;
33523 forward_iterator<int,int> t; return 0;
33528 rm -f conftest.$ac_objext
33529 if { (ac_try="$ac_compile"
33530 case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_compile") 2>conftest.er1
33537 grep -v '^ *+' conftest.er1 >conftest.err
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; } &&
33552 { ac_try='test -s conftest.$ac_objext'
33553 { (case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_try") 2>&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 ac_cv_cxx_have_fwd_iterator=yes
33564 echo "$as_me: failed program was:" >&5
33565 sed 's/^/| /' conftest.$ac_ext >&5
33567 ac_cv_cxx_have_fwd_iterator=no
33570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33572 ac_cpp='$CPP $CPPFLAGS'
33573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33579 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33580 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33581 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33584 cat >>confdefs.h <<\_ACEOF
33585 #define HAVE_FWD_ITERATOR 1
33590 cat >>confdefs.h <<\_ACEOF
33591 #define HAVE_FWD_ITERATOR 0
33597 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33598 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33599 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33600 echo $ECHO_N "(cached) $ECHO_C" >&6
33603 ac_cpp='$CXXCPP $CPPFLAGS'
33604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33608 cat >conftest.$ac_ext <<_ACEOF
33611 cat confdefs.h >>conftest.$ac_ext
33612 cat >>conftest.$ac_ext <<_ACEOF
33613 /* end confdefs.h. */
33623 rm -f conftest.$ac_objext
33624 if { (ac_try="$ac_compile"
33625 case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630 (eval "$ac_compile") 2>conftest.er1
33632 grep -v '^ *+' conftest.er1 >conftest.err
33634 cat conftest.err >&5
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } &&
33637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33638 { (case "(($ac_try" in
33639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640 *) ac_try_echo=$ac_try;;
33642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643 (eval "$ac_try") 2>&5
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); }; } &&
33647 { ac_try='test -s conftest.$ac_objext'
33648 { (case "(($ac_try" in
33649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650 *) ac_try_echo=$ac_try;;
33652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653 (eval "$ac_try") 2>&5
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; }; then
33657 ac_cv_func_isnan_in_math_h=yes
33659 echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33662 ac_cv_func_isnan_in_math_h=no
33665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33667 ac_cpp='$CPP $CPPFLAGS'
33668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33673 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33674 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33677 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33679 cat >>confdefs.h <<\_ACEOF
33680 #define HAVE_ISNAN_IN_MATH_H 1
33685 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33686 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33687 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33691 ac_cpp='$CXXCPP $CPPFLAGS'
33692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33696 cat >conftest.$ac_ext <<_ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h. */
33711 rm -f conftest.$ac_objext
33712 if { (ac_try="$ac_compile"
33713 case "(($ac_try" in
33714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33715 *) ac_try_echo=$ac_try;;
33717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33718 (eval "$ac_compile") 2>conftest.er1
33720 grep -v '^ *+' conftest.er1 >conftest.err
33722 cat conftest.err >&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } &&
33725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33726 { (case "(($ac_try" in
33727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728 *) ac_try_echo=$ac_try;;
33730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731 (eval "$ac_try") 2>&5
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; } &&
33735 { ac_try='test -s conftest.$ac_objext'
33736 { (case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_try") 2>&5
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; }; then
33745 ac_cv_func_isnan_in_cmath=yes
33747 echo "$as_me: failed program was:" >&5
33748 sed 's/^/| /' conftest.$ac_ext >&5
33750 ac_cv_func_isnan_in_cmath=no
33753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33755 ac_cpp='$CPP $CPPFLAGS'
33756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33761 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33762 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33764 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33766 cat >>confdefs.h <<\_ACEOF
33767 #define HAVE_ISNAN_IN_CMATH 1
33772 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33773 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33774 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33775 echo $ECHO_N "(cached) $ECHO_C" >&6
33778 ac_cpp='$CXXCPP $CPPFLAGS'
33779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33783 cat >conftest.$ac_ext <<_ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h. */
33793 float f; std::isnan(f);
33798 rm -f conftest.$ac_objext
33799 if { (ac_try="$ac_compile"
33800 case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_compile") 2>conftest.er1
33807 grep -v '^ *+' conftest.er1 >conftest.err
33809 cat conftest.err >&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); } &&
33812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33813 { (case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_try") 2>&5
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; } &&
33822 { ac_try='test -s conftest.$ac_objext'
33823 { (case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_try") 2>&5
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); }; }; then
33832 ac_cv_func_std_isnan_in_cmath=yes
33834 echo "$as_me: failed program was:" >&5
33835 sed 's/^/| /' conftest.$ac_ext >&5
33837 ac_cv_func_std_isnan_in_cmath=no
33840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33842 ac_cpp='$CPP $CPPFLAGS'
33843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33848 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33849 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33851 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33853 cat >>confdefs.h <<\_ACEOF
33854 #define HAVE_STD_ISNAN_IN_CMATH 1
33860 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33861 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33862 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33863 echo $ECHO_N "(cached) $ECHO_C" >&6
33866 ac_cpp='$CXXCPP $CPPFLAGS'
33867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33871 cat >conftest.$ac_ext <<_ACEOF
33874 cat confdefs.h >>conftest.$ac_ext
33875 cat >>conftest.$ac_ext <<_ACEOF
33876 /* end confdefs.h. */
33886 rm -f conftest.$ac_objext
33887 if { (ac_try="$ac_compile"
33888 case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_compile") 2>conftest.er1
33895 grep -v '^ *+' conftest.er1 >conftest.err
33897 cat conftest.err >&5
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); } &&
33900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33901 { (case "(($ac_try" in
33902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903 *) ac_try_echo=$ac_try;;
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906 (eval "$ac_try") 2>&5
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); }; } &&
33910 { ac_try='test -s conftest.$ac_objext'
33911 { (case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_try") 2>&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; }; then
33920 ac_cv_func_isinf_in_math_h=yes
33922 echo "$as_me: failed program was:" >&5
33923 sed 's/^/| /' conftest.$ac_ext >&5
33925 ac_cv_func_isinf_in_math_h=no
33928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33930 ac_cpp='$CPP $CPPFLAGS'
33931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33936 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33937 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33939 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33941 cat >>confdefs.h <<\_ACEOF
33942 #define HAVE_ISINF_IN_MATH_H 1
33947 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33948 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33949 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33950 echo $ECHO_N "(cached) $ECHO_C" >&6
33953 ac_cpp='$CXXCPP $CPPFLAGS'
33954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33958 cat >conftest.$ac_ext <<_ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h. */
33973 rm -f conftest.$ac_objext
33974 if { (ac_try="$ac_compile"
33975 case "(($ac_try" in
33976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33977 *) ac_try_echo=$ac_try;;
33979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33980 (eval "$ac_compile") 2>conftest.er1
33982 grep -v '^ *+' conftest.er1 >conftest.err
33984 cat conftest.err >&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); } &&
33987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33988 { (case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_try") 2>&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; } &&
33997 { ac_try='test -s conftest.$ac_objext'
33998 { (case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_try") 2>&5
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; }; then
34007 ac_cv_func_isinf_in_cmath=yes
34009 echo "$as_me: failed program was:" >&5
34010 sed 's/^/| /' conftest.$ac_ext >&5
34012 ac_cv_func_isinf_in_cmath=no
34015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34017 ac_cpp='$CPP $CPPFLAGS'
34018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34023 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34024 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34026 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34028 cat >>confdefs.h <<\_ACEOF
34029 #define HAVE_ISINF_IN_CMATH 1
34034 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34035 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34036 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34040 ac_cpp='$CXXCPP $CPPFLAGS'
34041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34045 cat >conftest.$ac_ext <<_ACEOF
34048 cat confdefs.h >>conftest.$ac_ext
34049 cat >>conftest.$ac_ext <<_ACEOF
34050 /* end confdefs.h. */
34055 float f; std::isinf(f)}
34060 rm -f conftest.$ac_objext
34061 if { (ac_try="$ac_compile"
34062 case "(($ac_try" in
34063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064 *) ac_try_echo=$ac_try;;
34066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34067 (eval "$ac_compile") 2>conftest.er1
34069 grep -v '^ *+' conftest.er1 >conftest.err
34071 cat conftest.err >&5
34072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073 (exit $ac_status); } &&
34074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34075 { (case "(($ac_try" in
34076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34077 *) ac_try_echo=$ac_try;;
34079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34080 (eval "$ac_try") 2>&5
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); }; } &&
34084 { ac_try='test -s conftest.$ac_objext'
34085 { (case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_try") 2>&5
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); }; }; then
34094 ac_cv_func_std_isinf_in_cmath=yes
34096 echo "$as_me: failed program was:" >&5
34097 sed 's/^/| /' conftest.$ac_ext >&5
34099 ac_cv_func_std_isinf_in_cmath=no
34102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34104 ac_cpp='$CPP $CPPFLAGS'
34105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34110 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34111 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34113 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34115 cat >>confdefs.h <<\_ACEOF
34116 #define HAVE_STD_ISINF_IN_CMATH 1
34121 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34122 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34123 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34124 echo $ECHO_N "(cached) $ECHO_C" >&6
34127 ac_cpp='$CXXCPP $CPPFLAGS'
34128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34132 cat >conftest.$ac_ext <<_ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h. */
34138 #include <ieeefp.h>
34142 float f; finite(f);
34147 rm -f conftest.$ac_objext
34148 if { (ac_try="$ac_compile"
34149 case "(($ac_try" in
34150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151 *) ac_try_echo=$ac_try;;
34153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154 (eval "$ac_compile") 2>conftest.er1
34156 grep -v '^ *+' conftest.er1 >conftest.err
34158 cat conftest.err >&5
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); } &&
34161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34162 { (case "(($ac_try" in
34163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164 *) ac_try_echo=$ac_try;;
34166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167 (eval "$ac_try") 2>&5
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; } &&
34171 { ac_try='test -s conftest.$ac_objext'
34172 { (case "(($ac_try" in
34173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174 *) ac_try_echo=$ac_try;;
34176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177 (eval "$ac_try") 2>&5
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; }; then
34181 ac_cv_func_finite_in_ieeefp_h=yes
34183 echo "$as_me: failed program was:" >&5
34184 sed 's/^/| /' conftest.$ac_ext >&5
34186 ac_cv_func_finite_in_ieeefp_h=no
34189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34191 ac_cpp='$CPP $CPPFLAGS'
34192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34197 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34198 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34200 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34202 cat >>confdefs.h <<\_ACEOF
34203 #define HAVE_FINITE_IN_IEEEFP_H 1
34210 if test "$llvm_cv_platform_type" = "Unix" ; then
34213 for ac_header in stdlib.h unistd.h
34215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34220 echo $ECHO_N "(cached) $ECHO_C" >&6
34222 ac_res=`eval echo '${'$as_ac_Header'}'`
34223 { echo "$as_me:$LINENO: result: $ac_res" >&5
34224 echo "${ECHO_T}$ac_res" >&6; }
34226 # Is the header compilable?
34227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34229 cat >conftest.$ac_ext <<_ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h. */
34235 $ac_includes_default
34236 #include <$ac_header>
34238 rm -f conftest.$ac_objext
34239 if { (ac_try="$ac_compile"
34240 case "(($ac_try" in
34241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242 *) ac_try_echo=$ac_try;;
34244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34245 (eval "$ac_compile") 2>conftest.er1
34247 grep -v '^ *+' conftest.er1 >conftest.err
34249 cat conftest.err >&5
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); } &&
34252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34253 { (case "(($ac_try" in
34254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_try") 2>&5
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; } &&
34262 { ac_try='test -s conftest.$ac_objext'
34263 { (case "(($ac_try" in
34264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265 *) ac_try_echo=$ac_try;;
34267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268 (eval "$ac_try") 2>&5
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); }; }; then
34272 ac_header_compiler=yes
34274 echo "$as_me: failed program was:" >&5
34275 sed 's/^/| /' conftest.$ac_ext >&5
34277 ac_header_compiler=no
34280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34282 echo "${ECHO_T}$ac_header_compiler" >&6; }
34284 # Is the header present?
34285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34287 cat >conftest.$ac_ext <<_ACEOF
34290 cat confdefs.h >>conftest.$ac_ext
34291 cat >>conftest.$ac_ext <<_ACEOF
34292 /* end confdefs.h. */
34293 #include <$ac_header>
34295 if { (ac_try="$ac_cpp conftest.$ac_ext"
34296 case "(($ac_try" in
34297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34298 *) ac_try_echo=$ac_try;;
34300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34303 grep -v '^ *+' conftest.er1 >conftest.err
34305 cat conftest.err >&5
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); } >/dev/null; then
34308 if test -s conftest.err; then
34309 ac_cpp_err=$ac_c_preproc_warn_flag
34310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34317 if test -z "$ac_cpp_err"; then
34318 ac_header_preproc=yes
34320 echo "$as_me: failed program was:" >&5
34321 sed 's/^/| /' conftest.$ac_ext >&5
34323 ac_header_preproc=no
34326 rm -f conftest.err conftest.$ac_ext
34327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34328 echo "${ECHO_T}$ac_header_preproc" >&6; }
34330 # So? What about this header?
34331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34337 ac_header_preproc=yes
34340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34353 ## ----------------------------------- ##
34354 ## Report this to llvmbugs@cs.uiuc.edu ##
34355 ## ----------------------------------- ##
34357 ) | sed "s/^/$as_me: WARNING: /" >&2
34360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34365 eval "$as_ac_Header=\$ac_header_preproc"
34367 ac_res=`eval echo '${'$as_ac_Header'}'`
34368 { echo "$as_me:$LINENO: result: $ac_res" >&5
34369 echo "${ECHO_T}$ac_res" >&6; }
34372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34373 cat >>confdefs.h <<_ACEOF
34374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34382 for ac_func in getpagesize
34384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34388 echo $ECHO_N "(cached) $ECHO_C" >&6
34390 cat >conftest.$ac_ext <<_ACEOF
34393 cat confdefs.h >>conftest.$ac_ext
34394 cat >>conftest.$ac_ext <<_ACEOF
34395 /* end confdefs.h. */
34396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34398 #define $ac_func innocuous_$ac_func
34400 /* System header to define __stub macros and hopefully few prototypes,
34401 which can conflict with char $ac_func (); below.
34402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34403 <limits.h> exists even on freestanding compilers. */
34406 # include <limits.h>
34408 # include <assert.h>
34413 /* Override any GCC internal prototype to avoid an error.
34414 Use char because int might match the return type of a GCC
34415 builtin and then its argument prototype would still apply. */
34420 /* The GNU C library defines this for functions which it implements
34421 to always fail with ENOSYS. Some functions are actually named
34422 something starting with __ and the normal name is an alias. */
34423 #if defined __stub_$ac_func || defined __stub___$ac_func
34430 return $ac_func ();
34435 rm -f conftest.$ac_objext conftest$ac_exeext
34436 if { (ac_try="$ac_link"
34437 case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_link") 2>conftest.er1
34444 grep -v '^ *+' conftest.er1 >conftest.err
34446 cat conftest.err >&5
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); } &&
34449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34450 { (case "(($ac_try" in
34451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452 *) ac_try_echo=$ac_try;;
34454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34455 (eval "$ac_try") 2>&5
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } &&
34459 { ac_try='test -s conftest$ac_exeext'
34460 { (case "(($ac_try" in
34461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462 *) ac_try_echo=$ac_try;;
34464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465 (eval "$ac_try") 2>&5
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; }; then
34469 eval "$as_ac_var=yes"
34471 echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34474 eval "$as_ac_var=no"
34477 rm -f core conftest.err conftest.$ac_objext \
34478 conftest$ac_exeext conftest.$ac_ext
34480 ac_res=`eval echo '${'$as_ac_var'}'`
34481 { echo "$as_me:$LINENO: result: $ac_res" >&5
34482 echo "${ECHO_T}$ac_res" >&6; }
34483 if test `eval echo '${'$as_ac_var'}'` = yes; then
34484 cat >>confdefs.h <<_ACEOF
34485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34491 { echo "$as_me:$LINENO: checking for working mmap" >&5
34492 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34493 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34494 echo $ECHO_N "(cached) $ECHO_C" >&6
34496 if test "$cross_compiling" = yes; then
34497 ac_cv_func_mmap_fixed_mapped=no
34499 cat >conftest.$ac_ext <<_ACEOF
34502 cat confdefs.h >>conftest.$ac_ext
34503 cat >>conftest.$ac_ext <<_ACEOF
34504 /* end confdefs.h. */
34505 $ac_includes_default
34506 /* malloc might have been renamed as rpl_malloc. */
34509 /* Thanks to Mike Haertel and Jim Avera for this test.
34510 Here is a matrix of mmap possibilities:
34511 mmap private not fixed
34512 mmap private fixed at somewhere currently unmapped
34513 mmap private fixed at somewhere already mapped
34514 mmap shared not fixed
34515 mmap shared fixed at somewhere currently unmapped
34516 mmap shared fixed at somewhere already mapped
34517 For private mappings, we should verify that changes cannot be read()
34518 back from the file, nor mmap's back from the file at a different
34519 address. (There have been systems where private was not correctly
34520 implemented like the infamous i386 svr4.0, and systems where the
34521 VM page cache was not coherent with the file system buffer cache
34522 like early versions of FreeBSD and possibly contemporary NetBSD.)
34523 For shared mappings, we should conversely verify that changes get
34524 propagated back to all the places they're supposed to be.
34526 Grep wants private fixed already mapped.
34527 The main things grep needs to know about mmap are:
34528 * does it exist and is it safe to write into the mmap'd area
34529 * how to use it (BSD variants) */
34532 #include <sys/mman.h>
34534 #if !STDC_HEADERS && !HAVE_STDLIB_H
34538 /* This mess was copied from the GNU getpagesize.h. */
34539 #if !HAVE_GETPAGESIZE
34540 /* Assume that all systems that can run configure have sys/param.h. */
34541 # if !HAVE_SYS_PARAM_H
34542 # define HAVE_SYS_PARAM_H 1
34545 # ifdef _SC_PAGESIZE
34546 # define getpagesize() sysconf(_SC_PAGESIZE)
34547 # else /* no _SC_PAGESIZE */
34548 # if HAVE_SYS_PARAM_H
34549 # include <sys/param.h>
34550 # ifdef EXEC_PAGESIZE
34551 # define getpagesize() EXEC_PAGESIZE
34552 # else /* no EXEC_PAGESIZE */
34554 # define getpagesize() NBPG * CLSIZE
34557 # endif /* no CLSIZE */
34558 # else /* no NBPG */
34560 # define getpagesize() NBPC
34561 # else /* no NBPC */
34563 # define getpagesize() PAGESIZE
34564 # endif /* PAGESIZE */
34565 # endif /* no NBPC */
34566 # endif /* no NBPG */
34567 # endif /* no EXEC_PAGESIZE */
34568 # else /* no HAVE_SYS_PARAM_H */
34569 # define getpagesize() 8192 /* punt totally */
34570 # endif /* no HAVE_SYS_PARAM_H */
34571 # endif /* no _SC_PAGESIZE */
34573 #endif /* no HAVE_GETPAGESIZE */
34578 char *data, *data2, *data3;
34582 pagesize = getpagesize ();
34584 /* First, make a file with some known garbage in it. */
34585 data = (char *) malloc (pagesize);
34588 for (i = 0; i < pagesize; ++i)
34589 *(data + i) = rand ();
34591 fd = creat ("conftest.mmap", 0600);
34594 if (write (fd, data, pagesize) != pagesize)
34598 /* Next, try to mmap the file at a fixed address which already has
34599 something else allocated at it. If we can, also make sure that
34600 we see the same garbage. */
34601 fd = open ("conftest.mmap", O_RDWR);
34604 data2 = (char *) malloc (2 * pagesize);
34607 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34608 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34609 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34611 for (i = 0; i < pagesize; ++i)
34612 if (*(data + i) != *(data2 + i))
34615 /* Finally, make sure that changes to the mapped area do not
34616 percolate back to the file as seen by read(). (This is a bug on
34617 some variants of i386 svr4.0.) */
34618 for (i = 0; i < pagesize; ++i)
34619 *(data2 + i) = *(data2 + i) + 1;
34620 data3 = (char *) malloc (pagesize);
34623 if (read (fd, data3, pagesize) != pagesize)
34625 for (i = 0; i < pagesize; ++i)
34626 if (*(data + i) != *(data3 + i))
34632 rm -f conftest$ac_exeext
34633 if { (ac_try="$ac_link"
34634 case "(($ac_try" in
34635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34636 *) ac_try_echo=$ac_try;;
34638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34639 (eval "$ac_link") 2>&5
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34643 { (case "(($ac_try" in
34644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34645 *) ac_try_echo=$ac_try;;
34647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34648 (eval "$ac_try") 2>&5
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; }; then
34652 ac_cv_func_mmap_fixed_mapped=yes
34654 echo "$as_me: program exited with status $ac_status" >&5
34655 echo "$as_me: failed program was:" >&5
34656 sed 's/^/| /' conftest.$ac_ext >&5
34658 ( exit $ac_status )
34659 ac_cv_func_mmap_fixed_mapped=no
34661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34666 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34667 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34668 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34670 cat >>confdefs.h <<\_ACEOF
34671 #define HAVE_MMAP 1
34675 rm -f conftest.mmap
34677 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34678 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34679 if test "${ac_cv_func_mmap_file+set}" = set; then
34680 echo $ECHO_N "(cached) $ECHO_C" >&6
34683 ac_cpp='$CPP $CPPFLAGS'
34684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34688 if test "$cross_compiling" = yes; then
34689 ac_cv_func_mmap_file=no
34691 cat >conftest.$ac_ext <<_ACEOF
34695 cat confdefs.h >>conftest.$ac_ext
34696 cat >>conftest.$ac_ext <<_ACEOF
34697 /* end confdefs.h. */
34699 #include <sys/types.h>
34700 #include <sys/mman.h>
34708 fd = creat ("foo",0777);
34709 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34711 return (fd != (int) MAP_FAILED);
34716 rm -f conftest$ac_exeext
34717 if { (ac_try="$ac_link"
34718 case "(($ac_try" in
34719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34720 *) ac_try_echo=$ac_try;;
34722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34723 (eval "$ac_link") 2>&5
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34727 { (case "(($ac_try" in
34728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729 *) ac_try_echo=$ac_try;;
34731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34732 (eval "$ac_try") 2>&5
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736 ac_cv_func_mmap_file=yes
34738 echo "$as_me: program exited with status $ac_status" >&5
34739 echo "$as_me: failed program was:" >&5
34740 sed 's/^/| /' conftest.$ac_ext >&5
34742 ( exit $ac_status )
34743 ac_cv_func_mmap_file=no
34745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34750 ac_cpp='$CPP $CPPFLAGS'
34751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34757 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34758 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34759 if test "$ac_cv_func_mmap_file" = yes; then
34761 cat >>confdefs.h <<\_ACEOF
34762 #define HAVE_MMAP_FILE
34769 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34770 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34771 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34772 echo $ECHO_N "(cached) $ECHO_C" >&6
34774 if test "$llvm_cv_os_type" = "Interix" ; then
34775 ac_cv_need_dev_zero_for_mmap=yes
34777 ac_cv_need_dev_zero_for_mmap=no
34781 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34782 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34783 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34785 cat >>confdefs.h <<\_ACEOF
34786 #define NEED_DEV_ZERO_FOR_MMAP 1
34791 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34793 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34794 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34796 if test "$ac_cv_func_mmap_file" = "no"
34798 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34799 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34803 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34804 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34805 cat >conftest.$ac_ext <<_ACEOF
34808 cat confdefs.h >>conftest.$ac_ext
34809 cat >>conftest.$ac_ext <<_ACEOF
34810 /* end confdefs.h. */
34812 volatile unsigned long val = 1;
34813 __sync_synchronize();
34814 __sync_val_compare_and_swap(&val, 1, 0);
34815 __sync_add_and_fetch(&val, 1);
34816 __sync_sub_and_fetch(&val, 1);
34821 rm -f conftest.$ac_objext conftest$ac_exeext
34822 if { (ac_try="$ac_link"
34823 case "(($ac_try" in
34824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825 *) ac_try_echo=$ac_try;;
34827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828 (eval "$ac_link") 2>conftest.er1
34830 grep -v '^ *+' conftest.er1 >conftest.err
34832 cat conftest.err >&5
34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834 (exit $ac_status); } &&
34835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34836 { (case "(($ac_try" in
34837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838 *) ac_try_echo=$ac_try;;
34840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841 (eval "$ac_try") 2>&5
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; } &&
34845 { ac_try='test -s conftest$ac_exeext'
34846 { (case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_try") 2>&5
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 { echo "$as_me:$LINENO: result: yes" >&5
34856 echo "${ECHO_T}yes" >&6; }
34858 cat >>confdefs.h <<\_ACEOF
34859 #define LLVM_MULTITHREADED 1
34863 echo "$as_me: failed program was:" >&5
34864 sed 's/^/| /' conftest.$ac_ext >&5
34866 { echo "$as_me:$LINENO: result: no" >&5
34867 echo "${ECHO_T}no" >&6; }
34869 cat >>confdefs.h <<\_ACEOF
34870 #define LLVM_MULTITHREADED 0
34873 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34874 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34877 rm -f core conftest.err conftest.$ac_objext \
34878 conftest$ac_exeext conftest.$ac_ext
34883 for ac_func in __dso_handle
34885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34889 echo $ECHO_N "(cached) $ECHO_C" >&6
34891 cat >conftest.$ac_ext <<_ACEOF
34894 cat confdefs.h >>conftest.$ac_ext
34895 cat >>conftest.$ac_ext <<_ACEOF
34896 /* end confdefs.h. */
34897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34899 #define $ac_func innocuous_$ac_func
34901 /* System header to define __stub macros and hopefully few prototypes,
34902 which can conflict with char $ac_func (); below.
34903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34904 <limits.h> exists even on freestanding compilers. */
34907 # include <limits.h>
34909 # include <assert.h>
34914 /* Override any GCC internal prototype to avoid an error.
34915 Use char because int might match the return type of a GCC
34916 builtin and then its argument prototype would still apply. */
34921 /* The GNU C library defines this for functions which it implements
34922 to always fail with ENOSYS. Some functions are actually named
34923 something starting with __ and the normal name is an alias. */
34924 #if defined __stub_$ac_func || defined __stub___$ac_func
34931 return $ac_func ();
34936 rm -f conftest.$ac_objext conftest$ac_exeext
34937 if { (ac_try="$ac_link"
34938 case "(($ac_try" in
34939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940 *) ac_try_echo=$ac_try;;
34942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943 (eval "$ac_link") 2>conftest.er1
34945 grep -v '^ *+' conftest.er1 >conftest.err
34947 cat conftest.err >&5
34948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34949 (exit $ac_status); } &&
34950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34951 { (case "(($ac_try" in
34952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34953 *) ac_try_echo=$ac_try;;
34955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34956 (eval "$ac_try") 2>&5
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); }; } &&
34960 { ac_try='test -s conftest$ac_exeext'
34961 { (case "(($ac_try" in
34962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34963 *) ac_try_echo=$ac_try;;
34965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34966 (eval "$ac_try") 2>&5
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; }; then
34970 eval "$as_ac_var=yes"
34972 echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34975 eval "$as_ac_var=no"
34978 rm -f core conftest.err conftest.$ac_objext \
34979 conftest$ac_exeext conftest.$ac_ext
34981 ac_res=`eval echo '${'$as_ac_var'}'`
34982 { echo "$as_me:$LINENO: result: $ac_res" >&5
34983 echo "${ECHO_T}$ac_res" >&6; }
34984 if test `eval echo '${'$as_ac_var'}'` = yes; then
34985 cat >>confdefs.h <<_ACEOF
34986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34993 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34994 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34995 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34996 echo $ECHO_N "(cached) $ECHO_C" >&6
34998 llvm_cv_llvmgcc_sanity="no"
34999 if test -x "$LLVMGCC" ; then
35000 cp /dev/null conftest.c
35001 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35002 grep 'target datalayout =' > /dev/null 2>&1
35003 if test $? -eq 0 ; then
35004 llvm_cv_llvmgcc_sanity="yes"
35009 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35010 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35012 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35013 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35014 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35015 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35016 LLVMCC1=$llvmcc1path
35018 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35019 LLVMCC1PLUS=$llvmcc1pluspath
35021 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35022 LLVMGCCDIR=$llvmgccdir
35024 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35025 LLVMGCCLIBEXEC=$llvmgcclibexec
35027 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35028 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35029 LLVMGCC_VERSION=$llvmgccversion
35031 LLVMGCC_MAJVERS=$llvmgccmajvers
35033 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35034 LLVMGCC_LANGS=$llvmgcclangs
35036 { echo "$as_me:$LINENO: result: ok" >&5
35037 echo "${ECHO_T}ok" >&6; }
35040 SHLIBEXT=$libltdl_cv_shlibext
35043 # Translate the various configuration directories and other basic
35044 # information into substitutions that will end up in Makefile.config.in
35045 # that these configured values can be used by the makefiles
35046 if test "${prefix}" = "NONE" ; then
35047 prefix="/usr/local"
35049 eval LLVM_PREFIX="${prefix}";
35050 eval LLVM_BINDIR="${prefix}/bin";
35051 eval LLVM_LIBDIR="${prefix}/lib";
35052 eval LLVM_DATADIR="${prefix}/share/llvm";
35053 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35054 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35055 eval LLVM_INCLUDEDIR="${prefix}/include";
35056 eval LLVM_INFODIR="${prefix}/info";
35057 eval LLVM_MANDIR="${prefix}/man";
35058 LLVM_CONFIGTIME=`date`
35070 # Place the various directores into the config.h file as #defines so that we
35071 # can know about the installation paths within LLVM.
35073 cat >>confdefs.h <<_ACEOF
35074 #define LLVM_PREFIX "$LLVM_PREFIX"
35078 cat >>confdefs.h <<_ACEOF
35079 #define LLVM_BINDIR "$LLVM_BINDIR"
35083 cat >>confdefs.h <<_ACEOF
35084 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35088 cat >>confdefs.h <<_ACEOF
35089 #define LLVM_DATADIR "$LLVM_DATADIR"
35093 cat >>confdefs.h <<_ACEOF
35094 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35098 cat >>confdefs.h <<_ACEOF
35099 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35103 cat >>confdefs.h <<_ACEOF
35104 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35108 cat >>confdefs.h <<_ACEOF
35109 #define LLVM_INFODIR "$LLVM_INFODIR"
35113 cat >>confdefs.h <<_ACEOF
35114 #define LLVM_MANDIR "$LLVM_MANDIR"
35118 cat >>confdefs.h <<_ACEOF
35119 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35123 cat >>confdefs.h <<_ACEOF
35124 #define LLVM_HOSTTRIPLE "$host"
35128 # Determine which bindings to build.
35129 if test "$BINDINGS_TO_BUILD" = auto ; then
35130 BINDINGS_TO_BUILD=""
35131 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35132 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35135 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35138 # This isn't really configurey, but it avoids having to repeat the list in
35143 # Do any work necessary to ensure that bindings have what they need.
35144 binding_prereqs_failed=0
35145 for a_binding in $BINDINGS_TO_BUILD ; do
35146 case "$a_binding" in
35148 if test "x$OCAMLC" = x ; then
35149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35150 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35151 binding_prereqs_failed=1
35153 if test "x$OCAMLDEP" = x ; then
35154 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35155 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35156 binding_prereqs_failed=1
35158 if test "x$OCAMLOPT" = x ; then
35159 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35160 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35162 if test "x$with_ocaml_libdir" != xauto ; then
35163 OCAML_LIBDIR=$with_ocaml_libdir
35166 ocaml_stdlib="`"$OCAMLC" -where`"
35167 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35169 # ocaml stdlib is beneath our prefix; use stdlib
35170 OCAML_LIBDIR=$ocaml_stdlib
35173 # ocaml stdlib is outside our prefix; use libdir/ocaml
35174 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35181 if test "$binding_prereqs_failed" = 1 ; then
35182 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35183 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35184 { (exit 1); exit 1; }; }
35187 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35188 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35189 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35190 echo $ECHO_N "(cached) $ECHO_C" >&6
35193 ac_cpp='$CXXCPP $CPPFLAGS'
35194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35198 oldcxxflags="$CXXFLAGS"
35199 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35200 cat >conftest.$ac_ext <<_ACEOF
35203 cat confdefs.h >>conftest.$ac_ext
35204 cat >>conftest.$ac_ext <<_ACEOF
35205 /* end confdefs.h. */
35215 rm -f conftest.$ac_objext
35216 if { (ac_try="$ac_compile"
35217 case "(($ac_try" in
35218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219 *) ac_try_echo=$ac_try;;
35221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35222 (eval "$ac_compile") 2>conftest.er1
35224 grep -v '^ *+' conftest.er1 >conftest.err
35226 cat conftest.err >&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); } &&
35229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35230 { (case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35235 (eval "$ac_try") 2>&5
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest.$ac_objext'
35240 { (case "(($ac_try" in
35241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242 *) ac_try_echo=$ac_try;;
35244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35245 (eval "$ac_try") 2>&5
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; }; then
35249 llvm_cv_cxx_visibility_inlines_hidden=yes
35251 echo "$as_me: failed program was:" >&5
35252 sed 's/^/| /' conftest.$ac_ext >&5
35254 llvm_cv_cxx_visibility_inlines_hidden=no
35257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258 CXXFLAGS="$oldcxxflags"
35260 ac_cpp='$CPP $CPPFLAGS'
35261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35267 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35268 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35269 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35270 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35273 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35278 if test "$llvm_cv_link_use_r" = "yes" ; then
35285 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35286 RDYNAMIC="-Wl,-export-dynamic"
35293 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35295 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35297 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35299 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35301 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35304 ac_config_files="$ac_config_files Makefile.config"
35307 ac_config_files="$ac_config_files llvm.spec"
35310 ac_config_files="$ac_config_files docs/doxygen.cfg"
35313 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35316 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35319 ac_config_commands="$ac_config_commands setup"
35321 ac_config_commands="$ac_config_commands Makefile"
35324 ac_config_commands="$ac_config_commands Makefile.common"
35327 ac_config_commands="$ac_config_commands examples/Makefile"
35330 ac_config_commands="$ac_config_commands lib/Makefile"
35333 ac_config_commands="$ac_config_commands runtime/Makefile"
35336 ac_config_commands="$ac_config_commands test/Makefile"
35339 ac_config_commands="$ac_config_commands test/Makefile.tests"
35342 ac_config_commands="$ac_config_commands unittests/Makefile"
35345 ac_config_commands="$ac_config_commands tools/Makefile"
35348 ac_config_commands="$ac_config_commands utils/Makefile"
35351 ac_config_commands="$ac_config_commands projects/Makefile"
35354 ac_config_commands="$ac_config_commands bindings/Makefile"
35357 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35361 cat >confcache <<\_ACEOF
35362 # This file is a shell script that caches the results of configure
35363 # tests run on this system so they can be shared between configure
35364 # scripts and configure runs, see configure's option --config-cache.
35365 # It is not useful on other systems. If it contains results you don't
35366 # want to keep, you may remove or edit it.
35368 # config.status only pays attention to the cache file if you give it
35369 # the --recheck option to rerun configure.
35371 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35372 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35373 # following values.
35377 # The following way of writing the cache mishandles newlines in values,
35378 # but we know of no workaround that is simple, portable, and efficient.
35379 # So, we kill variables containing newlines.
35380 # Ultrix sh set writes to stderr and can't be redirected directly,
35381 # and sets the high bit in the cache file unless we assign to the vars.
35383 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35384 eval ac_val=\$$ac_var
35388 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35389 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35392 _ | IFS | as_nl) ;; #(
35393 *) $as_unset $ac_var ;;
35399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35400 *${as_nl}ac_space=\ *)
35401 # `set' does not quote correctly, so add quotes (double-quote
35402 # substitution turns \\\\ into \\, and sed turns \\ into \).
35405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35408 # `set' quotes correctly as required by POSIX, so do not add quotes.
35409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35422 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35423 if test -w "$cache_file"; then
35424 test "x$cache_file" != "x/dev/null" &&
35425 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35426 echo "$as_me: updating cache $cache_file" >&6;}
35427 cat confcache >$cache_file
35429 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35430 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35435 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35436 # Let make expand exec_prefix.
35437 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35439 DEFS=-DHAVE_CONFIG_H
35443 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35444 # 1. Remove the extension, and $U if already installed.
35445 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35446 ac_i=`echo "$ac_i" | sed "$ac_script"`
35447 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35448 # will be set to the directory where LIBOBJS objects are built.
35449 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35450 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35452 LIBOBJS=$ac_libobjs
35454 LTLIBOBJS=$ac_ltlibobjs
35457 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35458 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35459 Usually this means the macro was only invoked conditionally." >&5
35460 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35461 Usually this means the macro was only invoked conditionally." >&2;}
35462 { (exit 1); exit 1; }; }
35464 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35465 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35466 Usually this means the macro was only invoked conditionally." >&5
35467 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35468 Usually this means the macro was only invoked conditionally." >&2;}
35469 { (exit 1); exit 1; }; }
35472 : ${CONFIG_STATUS=./config.status}
35473 ac_clean_files_save=$ac_clean_files
35474 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35475 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35476 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35477 cat >$CONFIG_STATUS <<_ACEOF
35479 # Generated by $as_me.
35480 # Run this file to recreate the current configuration.
35481 # Compiler output produced by configure, useful for debugging
35482 # configure, is in config.log if it exists.
35485 ac_cs_recheck=false
35487 SHELL=\${CONFIG_SHELL-$SHELL}
35490 cat >>$CONFIG_STATUS <<\_ACEOF
35491 ## --------------------- ##
35492 ## M4sh Initialization. ##
35493 ## --------------------- ##
35495 # Be Bourne compatible
35496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35499 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35500 # is contrary to our usage. Disable this feature.
35501 alias -g '${1+"$@"}'='"$@"'
35502 setopt NO_GLOB_SUBST
35504 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35506 BIN_SH=xpg4; export BIN_SH # for Tru64
35507 DUALCASE=1; export DUALCASE # for MKS sh
35511 # Avoid depending upon Character Ranges.
35512 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35513 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35514 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35515 as_cr_digits='0123456789'
35516 as_cr_alnum=$as_cr_Letters$as_cr_digits
35518 # The user is always right.
35519 if test "${PATH_SEPARATOR+set}" != set; then
35520 echo "#! /bin/sh" >conf$$.sh
35521 echo "exit 0" >>conf$$.sh
35523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35531 # Support unset when possible.
35532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35540 # We need space, tab and new line, in precisely that order. Quoting is
35541 # there to prevent editors from complaining about space-tab.
35542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35543 # splitting by setting IFS to empty value.)
35548 # Find who we are. Look in the path if we contain no directory separator.
35550 *[\\/]* ) as_myself=$0 ;;
35551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35552 for as_dir in $PATH
35555 test -z "$as_dir" && as_dir=.
35556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35562 # We did not find ourselves, most probably we were run as `sh COMMAND'
35563 # in which case we are not to be found in the path.
35564 if test "x$as_myself" = x; then
35567 if test ! -f "$as_myself"; then
35568 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35569 { (exit 1); exit 1; }
35572 # Work around bugs in pre-3.0 UWIN ksh.
35573 for as_var in ENV MAIL MAILPATH
35574 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35584 LC_TELEPHONE LC_TIME
35586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35587 eval $as_var=C; export $as_var
35589 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35593 # Required to use basename.
35594 if expr a : '\(a\)' >/dev/null 2>&1 &&
35595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35602 as_basename=basename
35608 # Name of the executable.
35609 as_me=`$as_basename -- "$0" ||
35610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35611 X"$0" : 'X\(//\)$' \| \
35612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35614 sed '/^.*\/\([^/][^/]*\)\/*$/{
35633 as_lineno_1=$LINENO
35634 as_lineno_2=$LINENO
35635 test "x$as_lineno_1" != "x$as_lineno_2" &&
35636 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35639 # uniformly replaced by the line number. The first 'sed' inserts a
35640 # line-number line after each line using $LINENO; the second 'sed'
35641 # does the real work. The second script uses 'N' to pair each
35642 # line-number line with the line containing $LINENO, and appends
35643 # trailing '-' during substitution so that $LINENO is not a special
35644 # case at line end.
35645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35646 # scripts with optimization help from Paolo Bonzini. Blame Lee
35647 # E. McMahon (1931-1989) for sed's syntax. :-)
35659 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35662 ' >$as_me.lineno &&
35663 chmod +x "$as_me.lineno" ||
35664 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35665 { (exit 1); exit 1; }; }
35667 # Don't try to exec as it changes $[0], causing all sort of problems
35668 # (the dirname of $[0] is not the place where we might find the
35669 # original and so on. Autoconf is especially sensitive to this).
35670 . "./$as_me.lineno"
35671 # Exit status is that of the last command.
35676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35682 ECHO_C= ECHO_N= ECHO_T=
35683 case `echo -n x` in
35685 case `echo 'x\c'` in
35686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35693 if expr a : '\(a\)' >/dev/null 2>&1 &&
35694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35700 rm -f conf$$ conf$$.exe conf$$.file
35701 if test -d conf$$.dir; then
35702 rm -f conf$$.dir/conf$$.file
35708 if ln -s conf$$.file conf$$ 2>/dev/null; then
35710 # ... but there are two gotchas:
35711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35713 # In both cases, we have to default to `cp -p'.
35714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35716 elif ln conf$$.file conf$$ 2>/dev/null; then
35721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35722 rmdir conf$$.dir 2>/dev/null
35724 if mkdir -p . 2>/dev/null; then
35727 test -d ./-p && rmdir ./-p
35731 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35732 # systems may use methods other than mode bits to determine executability.
35733 cat >conf$$.file <<_ASEOF
35737 chmod +x conf$$.file
35738 if test -x conf$$.file >/dev/null 2>&1; then
35739 as_executable_p="test -x"
35745 # Sed expression to map a string onto a valid CPP name.
35746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35748 # Sed expression to map a string onto a valid variable name.
35749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35754 # Save the log message, to keep $[0] and so on meaningful, and to
35755 # report actual input values of CONFIG_FILES etc. instead of their
35756 # values after options handling.
35758 This file was extended by llvm $as_me 2.7svn, which was
35759 generated by GNU Autoconf 2.60. Invocation command line was
35761 CONFIG_FILES = $CONFIG_FILES
35762 CONFIG_HEADERS = $CONFIG_HEADERS
35763 CONFIG_LINKS = $CONFIG_LINKS
35764 CONFIG_COMMANDS = $CONFIG_COMMANDS
35767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35772 cat >>$CONFIG_STATUS <<_ACEOF
35773 # Files that config.status was made for.
35774 config_files="$ac_config_files"
35775 config_headers="$ac_config_headers"
35776 config_commands="$ac_config_commands"
35780 cat >>$CONFIG_STATUS <<\_ACEOF
35782 \`$as_me' instantiates files from templates according to the
35783 current configuration.
35785 Usage: $0 [OPTIONS] [FILE]...
35787 -h, --help print this help, then exit
35788 -V, --version print version number, then exit
35789 -q, --quiet do not print progress messages
35790 -d, --debug don't remove temporary files
35791 --recheck update $as_me by reconfiguring in the same conditions
35792 --file=FILE[:TEMPLATE]
35793 instantiate the configuration file FILE
35794 --header=FILE[:TEMPLATE]
35795 instantiate the configuration header FILE
35797 Configuration files:
35800 Configuration headers:
35803 Configuration commands:
35806 Report bugs to <bug-autoconf@gnu.org>."
35809 cat >>$CONFIG_STATUS <<_ACEOF
35811 llvm config.status 2.7svn
35812 configured by $0, generated by GNU Autoconf 2.60,
35813 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35815 Copyright (C) 2006 Free Software Foundation, Inc.
35816 This config.status script is free software; the Free Software Foundation
35817 gives unlimited permission to copy, distribute and modify it."
35824 cat >>$CONFIG_STATUS <<\_ACEOF
35825 # If no file are specified by the user, then we need to provide default
35826 # value. By we need to know if files were specified by the user.
35832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35844 # Handling of the options.
35845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35848 echo "$ac_cs_version"; exit ;;
35849 --debug | --debu | --deb | --de | --d | -d )
35851 --file | --fil | --fi | --f )
35853 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35854 ac_need_defaults=false;;
35855 --header | --heade | --head | --hea )
35857 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35858 ac_need_defaults=false;;
35860 # Conflict between --help and --header
35861 { echo "$as_me: error: ambiguous option: $1
35862 Try \`$0 --help' for more information." >&2
35863 { (exit 1); exit 1; }; };;
35864 --help | --hel | -h )
35865 echo "$ac_cs_usage"; exit ;;
35866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35870 # This is an error.
35871 -*) { echo "$as_me: error: unrecognized option: $1
35872 Try \`$0 --help' for more information." >&2
35873 { (exit 1); exit 1; }; } ;;
35875 *) ac_config_targets="$ac_config_targets $1"
35876 ac_need_defaults=false ;;
35882 ac_configure_extra_args=
35884 if $ac_cs_silent; then
35886 ac_configure_extra_args="$ac_configure_extra_args --silent"
35890 cat >>$CONFIG_STATUS <<_ACEOF
35891 if \$ac_cs_recheck; then
35892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35893 CONFIG_SHELL=$SHELL
35894 export CONFIG_SHELL
35895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35899 cat >>$CONFIG_STATUS <<\_ACEOF
35903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35904 ## Running $as_me. ##
35910 cat >>$CONFIG_STATUS <<_ACEOF
35914 llvm_src="${srcdir}"
35918 cat >>$CONFIG_STATUS <<\_ACEOF
35920 # Handling of arguments.
35921 for ac_config_target in $ac_config_targets
35923 case $ac_config_target in
35924 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35925 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35926 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35927 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35928 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35929 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35930 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35931 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35932 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35933 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35934 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35935 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35936 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35937 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35938 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35939 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35940 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35941 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35942 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35943 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35944 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35945 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35946 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35947 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35949 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35950 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35951 { (exit 1); exit 1; }; };;
35956 # If the user did not use the arguments to specify the items to instantiate,
35957 # then the envvar interface is used. Set only those that are not.
35958 # We use the long form for the default assignment because of an extremely
35959 # bizarre bug on SunOS 4.1.3.
35960 if $ac_need_defaults; then
35961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35966 # Have a temporary directory for convenience. Make it in the build tree
35967 # simply because there is no reason against having it here, and in addition,
35968 # creating and moving files from /tmp can sometimes cause problems.
35969 # Hook for its removal unless debugging.
35970 # Note that there is a small window in which the directory will not be cleaned:
35971 # after its creation but before its name has been assigned to `$tmp'.
35975 trap 'exit_status=$?
35976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35978 trap '{ (exit 1); exit 1; }' 1 2 13 15
35980 # Create a (secure) tmp directory for tmp files.
35983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35984 test -n "$tmp" && test -d "$tmp"
35987 tmp=./conf$$-$RANDOM
35988 (umask 077 && mkdir "$tmp")
35991 echo "$me: cannot create a temporary directory in ." >&2
35992 { (exit 1); exit 1; }
35996 # Set up the sed scripts for CONFIG_FILES section.
35999 # No need to generate the scripts if there are no CONFIG_FILES.
36000 # This happens for instance when ./config.status config.h
36001 if test -n "$CONFIG_FILES"; then
36008 for ac_last_try in false false false false false :; do
36009 cat >conf$$subs.sed <<_ACEOF
36010 SHELL!$SHELL$ac_delim
36011 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36012 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36013 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36014 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36015 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36016 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36017 exec_prefix!$exec_prefix$ac_delim
36018 prefix!$prefix$ac_delim
36019 program_transform_name!$program_transform_name$ac_delim
36020 bindir!$bindir$ac_delim
36021 sbindir!$sbindir$ac_delim
36022 libexecdir!$libexecdir$ac_delim
36023 datarootdir!$datarootdir$ac_delim
36024 datadir!$datadir$ac_delim
36025 sysconfdir!$sysconfdir$ac_delim
36026 sharedstatedir!$sharedstatedir$ac_delim
36027 localstatedir!$localstatedir$ac_delim
36028 includedir!$includedir$ac_delim
36029 oldincludedir!$oldincludedir$ac_delim
36030 docdir!$docdir$ac_delim
36031 infodir!$infodir$ac_delim
36032 htmldir!$htmldir$ac_delim
36033 dvidir!$dvidir$ac_delim
36034 pdfdir!$pdfdir$ac_delim
36035 psdir!$psdir$ac_delim
36036 libdir!$libdir$ac_delim
36037 localedir!$localedir$ac_delim
36038 mandir!$mandir$ac_delim
36039 DEFS!$DEFS$ac_delim
36040 ECHO_C!$ECHO_C$ac_delim
36041 ECHO_N!$ECHO_N$ac_delim
36042 ECHO_T!$ECHO_T$ac_delim
36043 LIBS!$LIBS$ac_delim
36044 build_alias!$build_alias$ac_delim
36045 host_alias!$host_alias$ac_delim
36046 target_alias!$target_alias$ac_delim
36047 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36048 subdirs!$subdirs$ac_delim
36049 build!$build$ac_delim
36050 build_cpu!$build_cpu$ac_delim
36051 build_vendor!$build_vendor$ac_delim
36052 build_os!$build_os$ac_delim
36053 host!$host$ac_delim
36054 host_cpu!$host_cpu$ac_delim
36055 host_vendor!$host_vendor$ac_delim
36056 host_os!$host_os$ac_delim
36057 target!$target$ac_delim
36058 target_cpu!$target_cpu$ac_delim
36059 target_vendor!$target_vendor$ac_delim
36060 target_os!$target_os$ac_delim
36062 HOST_OS!$HOST_OS$ac_delim
36063 TARGET_OS!$TARGET_OS$ac_delim
36064 LINKALL!$LINKALL$ac_delim
36065 NOLINKALL!$NOLINKALL$ac_delim
36066 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36067 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36068 ARCH!$ARCH$ac_delim
36069 ENDIAN!$ENDIAN$ac_delim
36071 CFLAGS!$CFLAGS$ac_delim
36072 LDFLAGS!$LDFLAGS$ac_delim
36073 CPPFLAGS!$CPPFLAGS$ac_delim
36074 ac_ct_CC!$ac_ct_CC$ac_delim
36075 EXEEXT!$EXEEXT$ac_delim
36076 OBJEXT!$OBJEXT$ac_delim
36078 GREP!$GREP$ac_delim
36079 EGREP!$EGREP$ac_delim
36080 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36081 BUILD_CC!$BUILD_CC$ac_delim
36082 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36083 BUILD_CXX!$BUILD_CXX$ac_delim
36084 CVSBUILD!$CVSBUILD$ac_delim
36085 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36086 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36087 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36088 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36089 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36090 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36092 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36093 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36094 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36095 ENABLE_PIC!$ENABLE_PIC$ac_delim
36096 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36097 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36098 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36099 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36100 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36101 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36102 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36103 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36104 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36106 CXXFLAGS!$CXXFLAGS$ac_delim
36109 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36111 elif $ac_last_try; then
36112 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36113 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36114 { (exit 1); exit 1; }; }
36116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36120 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36121 if test -n "$ac_eof"; then
36122 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36123 ac_eof=`expr $ac_eof + 1`
36126 cat >>$CONFIG_STATUS <<_ACEOF
36127 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36131 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36132 s/^/s,@/; s/!/@,|#_!!_#|/
36135 s/'"$ac_delim"'$/,g/; t
36137 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36138 ' >>$CONFIG_STATUS <conf$$subs.sed
36139 rm -f conf$$subs.sed
36140 cat >>$CONFIG_STATUS <<_ACEOF
36146 for ac_last_try in false false false false false :; do
36147 cat >conf$$subs.sed <<_ACEOF
36148 ac_ct_CXX!$ac_ct_CXX$ac_delim
36150 ifGNUmake!$ifGNUmake$ac_delim
36151 LN_S!$LN_S$ac_delim
36154 DATE!$DATE$ac_delim
36155 FIND!$FIND$ac_delim
36156 MKDIR!$MKDIR$ac_delim
36158 RANLIB!$RANLIB$ac_delim
36162 BINPWD!$BINPWD$ac_delim
36163 GRAPHVIZ!$GRAPHVIZ$ac_delim
36166 NEATO!$NEATO$ac_delim
36167 TWOPI!$TWOPI$ac_delim
36168 CIRCO!$CIRCO$ac_delim
36170 DOTTY!$DOTTY$ac_delim
36171 PERL!$PERL$ac_delim
36172 HAVE_PERL!$HAVE_PERL$ac_delim
36173 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36174 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36175 INSTALL_DATA!$INSTALL_DATA$ac_delim
36176 BZIP2!$BZIP2$ac_delim
36177 DOXYGEN!$DOXYGEN$ac_delim
36178 GROFF!$GROFF$ac_delim
36179 GZIP!$GZIP$ac_delim
36180 POD2HTML!$POD2HTML$ac_delim
36181 POD2MAN!$POD2MAN$ac_delim
36182 RUNTEST!$RUNTEST$ac_delim
36183 TCLSH!$TCLSH$ac_delim
36185 OCAMLC!$OCAMLC$ac_delim
36186 OCAMLOPT!$OCAMLOPT$ac_delim
36187 OCAMLDEP!$OCAMLDEP$ac_delim
36188 OCAMLDOC!$OCAMLDOC$ac_delim
36190 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36191 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36192 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36193 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36194 LIBADD_DL!$LIBADD_DL$ac_delim
36195 ECHO!$ECHO$ac_delim
36197 STRIP!$STRIP$ac_delim
36198 CXXCPP!$CXXCPP$ac_delim
36200 FFLAGS!$FFLAGS$ac_delim
36201 ac_ct_F77!$ac_ct_F77$ac_delim
36202 LIBTOOL!$LIBTOOL$ac_delim
36203 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36204 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36205 LLVMGCC!$LLVMGCC$ac_delim
36206 LLVMGXX!$LLVMGXX$ac_delim
36207 USE_UDIS86!$USE_UDIS86$ac_delim
36208 USE_OPROFILE!$USE_OPROFILE$ac_delim
36209 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36210 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36211 ALLOCA!$ALLOCA$ac_delim
36212 MMAP_FILE!$MMAP_FILE$ac_delim
36213 LLVMCC1!$LLVMCC1$ac_delim
36214 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36215 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36216 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36217 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36218 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36219 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36220 SHLIBEXT!$SHLIBEXT$ac_delim
36221 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36222 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36223 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36224 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36225 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36226 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36227 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36228 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36229 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36230 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36231 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36232 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36233 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36234 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36235 RPATH!$RPATH$ac_delim
36236 RDYNAMIC!$RDYNAMIC$ac_delim
36237 LIBOBJS!$LIBOBJS$ac_delim
36238 LTLIBOBJS!$LTLIBOBJS$ac_delim
36241 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
36243 elif $ac_last_try; then
36244 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36245 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36246 { (exit 1); exit 1; }; }
36248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36252 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36253 if test -n "$ac_eof"; then
36254 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36255 ac_eof=`expr $ac_eof + 1`
36258 cat >>$CONFIG_STATUS <<_ACEOF
36259 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36263 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36264 s/^/s,@/; s/!/@,|#_!!_#|/
36267 s/'"$ac_delim"'$/,g/; t
36269 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36270 ' >>$CONFIG_STATUS <conf$$subs.sed
36271 rm -f conf$$subs.sed
36272 cat >>$CONFIG_STATUS <<_ACEOF
36279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36281 # trailing colons and then remove the whole line if VPATH becomes empty
36282 # (actually we leave an empty line to preserve line numbers).
36283 if test "x$srcdir" = x.; then
36284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36285 s/:*\$(srcdir):*/:/
36286 s/:*\${srcdir}:*/:/
36288 s/^\([^=]*=[ ]*\):*/\1/
36294 cat >>$CONFIG_STATUS <<\_ACEOF
36295 fi # test -n "$CONFIG_FILES"
36298 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36301 :[FHLC]) ac_mode=$ac_tag; continue;;
36303 case $ac_mode$ac_tag in
36305 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36306 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36307 { (exit 1); exit 1; }; };;
36308 :[FH]-) ac_tag=-:-;;
36309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36326 -) ac_f="$tmp/stdin";;
36327 *) # Look for the file first in the build tree, then in the source tree
36328 # (if the path is not absolute). The absolute path cannot be DOS-style,
36329 # because $ac_f cannot contain `:'.
36333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36335 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36336 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36337 { (exit 1); exit 1; }; };;
36339 ac_file_inputs="$ac_file_inputs $ac_f"
36342 # Let's still pretend it is `configure' which instantiates (i.e., don't
36343 # use $as_me), people would be surprised to read:
36344 # /* config.h. Generated by config.status. */
36345 configure_input="Generated from "`IFS=:
36346 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36347 if test x"$ac_file" != x-; then
36348 configure_input="$ac_file. $configure_input"
36349 { echo "$as_me:$LINENO: creating $ac_file" >&5
36350 echo "$as_me: creating $ac_file" >&6;}
36354 *:-:* | *:-) cat >"$tmp/stdin";;
36359 ac_dir=`$as_dirname -- "$ac_file" ||
36360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36361 X"$ac_file" : 'X\(//\)[^/]' \| \
36362 X"$ac_file" : 'X\(//\)$' \| \
36363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36369 /^X\(\/\/\)[^/].*/{
36384 -*) as_dir=./$as_dir;;
36386 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36390 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36391 *) as_qdir=$as_dir;;
36393 as_dirs="'$as_qdir' $as_dirs"
36394 as_dir=`$as_dirname -- "$as_dir" ||
36395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36396 X"$as_dir" : 'X\(//\)[^/]' \| \
36397 X"$as_dir" : 'X\(//\)$' \| \
36398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36404 /^X\(\/\/\)[^/].*/{
36417 test -d "$as_dir" && break
36419 test -z "$as_dirs" || eval "mkdir $as_dirs"
36420 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36421 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36422 { (exit 1); exit 1; }; }; }
36426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36429 # A ".." for each directory in $ac_dir_suffix.
36430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36431 case $ac_top_builddir_sub in
36432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36436 ac_abs_top_builddir=$ac_pwd
36437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36438 # for backward compatibility:
36439 ac_top_builddir=$ac_top_build_prefix
36442 .) # We are building in place.
36444 ac_top_srcdir=$ac_top_builddir_sub
36445 ac_abs_top_srcdir=$ac_pwd ;;
36446 [\\/]* | ?:[\\/]* ) # Absolute name.
36447 ac_srcdir=$srcdir$ac_dir_suffix;
36448 ac_top_srcdir=$srcdir
36449 ac_abs_top_srcdir=$srcdir ;;
36450 *) # Relative name.
36451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36452 ac_top_srcdir=$ac_top_build_prefix$srcdir
36453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36470 cat >>$CONFIG_STATUS <<\_ACEOF
36471 # If the template does not know about datarootdir, expand it.
36472 # FIXME: This hack should be removed a few years after 2.60.
36473 ac_datarootdir_hack=; ac_datarootdir_seen=
36475 case `sed -n '/datarootdir/ {
36484 ' $ac_file_inputs` in
36485 *datarootdir*) ac_datarootdir_seen=yes;;
36486 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36487 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36488 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36490 cat >>$CONFIG_STATUS <<_ACEOF
36491 ac_datarootdir_hack='
36492 s&@datadir@&$datadir&g
36493 s&@docdir@&$docdir&g
36494 s&@infodir@&$infodir&g
36495 s&@localedir@&$localedir&g
36496 s&@mandir@&$mandir&g
36497 s&\\\${datarootdir}&$datarootdir&g' ;;
36501 # Neutralize VPATH when `$srcdir' = `.'.
36502 # Shell code in configure.ac might set extrasub.
36503 # FIXME: do we really want to maintain this feature?
36504 cat >>$CONFIG_STATUS <<_ACEOF
36508 cat >>$CONFIG_STATUS <<\_ACEOF
36510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36511 s&@configure_input@&$configure_input&;t t
36512 s&@top_builddir@&$ac_top_builddir_sub&;t t
36513 s&@srcdir@&$ac_srcdir&;t t
36514 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36515 s&@top_srcdir@&$ac_top_srcdir&;t t
36516 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36517 s&@builddir@&$ac_builddir&;t t
36518 s&@abs_builddir@&$ac_abs_builddir&;t t
36519 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36520 s&@INSTALL@&$ac_INSTALL&;t t
36521 $ac_datarootdir_hack
36522 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36524 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36525 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36527 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36528 which seems to be undefined. Please make sure it is defined." >&5
36529 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36530 which seems to be undefined. Please make sure it is defined." >&2;}
36534 -) cat "$tmp/out"; rm -f "$tmp/out";;
36535 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36544 # Transform confdefs.h into a sed script `conftest.defines', that
36545 # substitutes the proper values into config.h.in to produce config.h.
36546 rm -f conftest.defines conftest.tail
36547 # First, append a space to every undef/define line, to ease matching.
36548 echo 's/$/ /' >conftest.defines
36549 # Then, protect against being on the right side of a sed subst, or in
36550 # an unquoted here document, in config.status. If some macros were
36551 # called several times there might be several #defines for the same
36552 # symbol, which is useless. But do not sort them, since the last
36553 # AC_DEFINE must be honored.
36554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36555 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36556 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36557 # PARAMS is the parameter list in the macro definition--in most cases, it's
36558 # just an empty string.
36559 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36560 ac_dB='\\)[ (].*,\\1define\\2'
36568 s/^[ ]*#[ ]*define[ ][ ]*//
36573 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36574 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36575 ' >>conftest.defines
36577 # Remove the space that was appended to ease matching.
36578 # Then replace #undef with comments. This is necessary, for
36579 # example, in the case of _POSIX_SOURCE, which is predefined and required
36580 # on some systems where configure will not decide to define it.
36581 # (The regexp can be short, since the line contains either #define or #undef.)
36583 s,^[ #]*u.*,/* & */,' >>conftest.defines
36585 # Break up conftest.defines:
36586 ac_max_sed_lines=50
36588 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36589 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36590 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36592 ac_in='$ac_file_inputs'
36593 ac_out='"$tmp/out1"'
36594 ac_nxt='"$tmp/out2"'
36598 # Write a here document:
36599 cat >>$CONFIG_STATUS <<_ACEOF
36600 # First, check the format of the line:
36601 cat >"\$tmp/defines.sed" <<\\CEOF
36602 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36603 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36607 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36609 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36610 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36611 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36612 grep . conftest.tail >/dev/null || break
36613 rm -f conftest.defines
36614 mv conftest.tail conftest.defines
36616 rm -f conftest.defines conftest.tail
36618 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36619 cat >>$CONFIG_STATUS <<\_ACEOF
36620 if test x"$ac_file" != x-; then
36621 echo "/* $configure_input */" >"$tmp/config.h"
36622 cat "$ac_result" >>"$tmp/config.h"
36623 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36625 echo "$as_me: $ac_file is unchanged" >&6;}
36628 mv "$tmp/config.h" $ac_file
36631 echo "/* $configure_input */"
36637 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36638 echo "$as_me: executing $ac_file commands" >&6;}
36643 case $ac_file$ac_mode in
36644 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36646 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36648 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36650 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36652 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36654 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36656 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36658 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36660 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36662 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36664 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36666 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36668 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36675 { (exit 0); exit 0; }
36677 chmod +x $CONFIG_STATUS
36678 ac_clean_files=$ac_clean_files_save
36681 # configure is writing to config.log, and then calls config.status.
36682 # config.status does its own redirection, appending to config.log.
36683 # Unfortunately, on DOS this fails, as config.log is still kept open
36684 # by configure, so config.status won't be able to write to it; its
36685 # output is simply discarded. So we exec the FD to /dev/null,
36686 # effectively closing config.log, so it can be properly (re)opened and
36687 # appended to by config.status. When coming back to configure, we
36688 # need to make the FD available again.
36689 if test "$no_create" != yes; then
36691 ac_config_status_args=
36692 test "$silent" = yes &&
36693 ac_config_status_args="$ac_config_status_args --quiet"
36695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36698 # would make configure fail if this is the last instruction.
36699 $ac_cs_success || { (exit 1); exit 1; }
36703 # CONFIG_SUBDIRS section.
36705 if test "$no_recursion" != yes; then
36707 # Remove --cache-file and --srcdir arguments so they do not pile up.
36708 ac_sub_configure_args=
36710 eval "set x $ac_configure_args"
36714 if test -n "$ac_prev"; then
36719 -cache-file | --cache-file | --cache-fil | --cache-fi \
36720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36721 ac_prev=cache_file ;;
36722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36726 --config-cache | -C)
36728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36732 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36734 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36738 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36740 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36744 # Always prepend --prefix to ensure using the same prefix
36745 # in subdir configurations.
36746 ac_arg="--prefix=$prefix"
36748 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36750 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36753 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36755 # Do not complain, so a configure script can configure whichever
36756 # parts of a large source tree are present.
36757 test -d "$srcdir/$ac_dir" || continue
36759 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36760 echo "$as_me:$LINENO: $ac_msg" >&5
36764 -*) as_dir=./$as_dir;;
36766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36770 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36771 *) as_qdir=$as_dir;;
36773 as_dirs="'$as_qdir' $as_dirs"
36774 as_dir=`$as_dirname -- "$as_dir" ||
36775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36776 X"$as_dir" : 'X\(//\)[^/]' \| \
36777 X"$as_dir" : 'X\(//\)$' \| \
36778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36784 /^X\(\/\/\)[^/].*/{
36797 test -d "$as_dir" && break
36799 test -z "$as_dirs" || eval "mkdir $as_dirs"
36800 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36802 { (exit 1); exit 1; }; }; }
36806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36809 # A ".." for each directory in $ac_dir_suffix.
36810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36811 case $ac_top_builddir_sub in
36812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36816 ac_abs_top_builddir=$ac_pwd
36817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36818 # for backward compatibility:
36819 ac_top_builddir=$ac_top_build_prefix
36822 .) # We are building in place.
36824 ac_top_srcdir=$ac_top_builddir_sub
36825 ac_abs_top_srcdir=$ac_pwd ;;
36826 [\\/]* | ?:[\\/]* ) # Absolute name.
36827 ac_srcdir=$srcdir$ac_dir_suffix;
36828 ac_top_srcdir=$srcdir
36829 ac_abs_top_srcdir=$srcdir ;;
36830 *) # Relative name.
36831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36832 ac_top_srcdir=$ac_top_build_prefix$srcdir
36833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36840 # Check for guested configure; otherwise get Cygnus style configure.
36841 if test -f "$ac_srcdir/configure.gnu"; then
36842 ac_sub_configure=$ac_srcdir/configure.gnu
36843 elif test -f "$ac_srcdir/configure"; then
36844 ac_sub_configure=$ac_srcdir/configure
36845 elif test -f "$ac_srcdir/configure.in"; then
36846 # This should be Cygnus configure.
36847 ac_sub_configure=$ac_aux_dir/configure
36849 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36850 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36854 # The recursion is here.
36855 if test -n "$ac_sub_configure"; then
36856 # Make the cache file name correct relative to the subdirectory.
36857 case $cache_file in
36858 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36859 *) # Relative name.
36860 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36863 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36864 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36865 # The eval makes quoting arguments work.
36866 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36867 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36868 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36869 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36870 { (exit 1); exit 1; }; }