2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
837 ENABLE_EXPENSIVE_CHECKS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
943 ENABLE_VISIBILITY_INLINES_HIDDEN
949 ac_precious_vars='build_alias
963 ac_subdirs_all='projects/sample
965 projects/llvm-stacker
972 projects/llvm-poolalloc
974 projects/llvm-kernel'
976 # Initialize some variables set by options.
978 ac_init_version=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name=s,x,x,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1083 eval enable_$ac_feature=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1102 eval enable_$ac_feature=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1266 -site=* | --site=* | --sit=*)
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package=`echo $ac_package| sed 's/-/_/g'`
1299 eval with_$ac_package=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_package=`echo $ac_package | sed 's/-/_/g'`
1308 eval with_$ac_package=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 # Be sure to have absolute directory names.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1553 --enable-expensive-checks
1554 Compile with expensive debug checks enabled (default
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
1560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
1565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
1570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
1574 --enable-libffi Check for the presence of libffi (default is YES)
1575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
1579 --enable-ltdl-install install libltdl
1580 --enable-shared[=PKGS] build shared libraries
1582 --enable-static[=PKGS] build static libraries
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation
1587 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1594 --with-llvmgcc Specify location of llvm-gcc driver (default
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1598 --with-extra-options Specify additional options to compile LLVM with
1599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
1603 --with-tclinclude directory where tcl headers are
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-udis86=<path> Use udis86 external x86 disassembler library
1609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
1612 Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
1622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1629 Report bugs to <llvmbugs@cs.uiuc.edu>.
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" || continue
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 llvm configure 2.7svn
1691 generated by GNU Autoconf 2.60
1693 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1694 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1698 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1706 It was created by llvm $as_me 2.7svn, which was
1707 generated by GNU Autoconf 2.60. Invocation command line was
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1767 ac_must_keep_next=false
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 -* ) ac_must_keep_next=true ;;
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1823 # The following way of writing the cache mishandles newlines in values,
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855 ## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##
1860 for ac_var in $ac_subst_vars
1862 eval ac_val=\$$ac_var
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 echo "$ac_var='\''$ac_val'\''"
1870 if test -n "$ac_subst_files"; then
1872 ## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##
1877 for ac_var in $ac_subst_files
1879 eval ac_val=\$$ac_var
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 echo "$ac_var='\''$ac_val'\''"
1888 if test -s confdefs.h; then
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906 for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1912 rm -f -r conftest* confdefs.h
1914 # Predefined preprocessor variables.
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_STRING "$PACKAGE_STRING"
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer explicitly selected file to automatically selected ones.
1943 if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945 elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
1954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956 echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1962 if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967 echo "$as_me: loading cache $cache_file" >&6;}
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975 echo "$as_me: creating cache $cache_file" >&6;}
1979 # Check that the precious variables saved in the cache have kept the same
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2002 echo "$as_me: former value: $ac_old_val" >&2;}
2003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2004 echo "$as_me: current value: $ac_new_val" >&2;}
2005 ac_cache_corrupted=:
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012 *) ac_arg=$ac_var=$ac_new_val ;;
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020 if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2069 for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2074 elif test -f "$ac_dir/install.sh"; then
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2078 elif test -f "$ac_dir/shtool"; then
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2084 if test -z "$ac_aux_dir"; then
2085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2087 { (exit 1); exit 1; }; }
2090 # These three variables are undocumented and unsupported,
2091 # and are intended to be withdrawn in a future Autoconf release.
2092 # They can cause serious problems if a builder's source tree is in a directory
2093 # whose full name contains unusual characters.
2094 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2100 if test ${srcdir} != "." ; then
2101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2103 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
2108 for i in `ls ${srcdir}/projects`
2110 if test -d ${srcdir}/projects/${i} ; then
2113 sample) subdirs="$subdirs projects/sample"
2115 privbracket) subdirs="$subdirs projects/privbracket"
2117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2119 # llvm-test is the old name of the test-suite, kept here for backwards
2121 llvm-test) subdirs="$subdirs projects/llvm-test"
2123 test-suite) subdirs="$subdirs projects/test-suite"
2125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2129 llvm-java) subdirs="$subdirs projects/llvm-java"
2131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2135 poolalloc) subdirs="$subdirs projects/poolalloc"
2137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2148 # Make sure we can run config.sub.
2149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152 { (exit 1); exit 1; }; }
2154 { echo "$as_me:$LINENO: checking build system type" >&5
2155 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 ac_build_alias=$build_alias
2160 test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162 test "x$ac_build_alias" = x &&
2163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
2166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2172 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173 echo "${ECHO_T}$ac_cv_build" >&6; }
2174 case $ac_cv_build in
2176 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177 echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2181 ac_save_IFS=$IFS; IFS='-'
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2194 { echo "$as_me:$LINENO: checking host system type" >&5
2195 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196 if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2209 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 echo "${ECHO_T}$ac_cv_host" >&6; }
2213 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214 echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2218 ac_save_IFS=$IFS; IFS='-'
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2231 { echo "$as_me:$LINENO: checking target system type" >&5
2232 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233 if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242 { (exit 1); exit 1; }; }
2246 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247 echo "${ECHO_T}$ac_cv_target" >&6; }
2248 case $ac_cv_target in
2250 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251 echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2254 target=$ac_cv_target
2255 ac_save_IFS=$IFS; IFS='-'
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2265 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2268 # The aliases save the names the user supplied, while $host etc.
2269 # will get canonicalized.
2270 test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2273 program_prefix=${target_alias}-
2275 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2277 if test "${llvm_cv_os_type+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2297 llvm_cv_link_all_option="-Wl,-all_load"
2298 llvm_cv_no_link_all_option="-Wl,-noall_load"
2299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
2342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344 llvm_cv_os_type="Win32"
2345 llvm_cv_platform_type="Win32" ;;
2347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349 llvm_cv_os_type="MingW"
2350 llvm_cv_platform_type="Win32" ;;
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Freestanding"
2355 llvm_cv_platform_type="Unix" ;;
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Freestanding"
2360 llvm_cv_platform_type="Unix" ;;
2362 llvm_cv_link_all_option=""
2363 llvm_cv_no_link_all_option=""
2364 llvm_cv_os_type="Unknown"
2365 llvm_cv_platform_type="Unknown" ;;
2368 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2371 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373 if test "${llvm_cv_target_os_type+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 llvm_cv_target_os_type="AIX" ;;
2380 llvm_cv_target_os_type="IRIX" ;;
2382 llvm_cv_target_os_type="Cygwin" ;;
2384 llvm_cv_target_os_type="Darwin" ;;
2386 llvm_cv_target_os_type="FreeBSD" ;;
2388 llvm_cv_target_os_type="OpenBSD" ;;
2390 llvm_cv_target_os_type="NetBSD" ;;
2392 llvm_cv_target_os_type="DragonFly" ;;
2394 llvm_cv_target_os_type="HP-UX" ;;
2396 llvm_cv_target_os_type="Interix" ;;
2398 llvm_cv_target_os_type="Linux" ;;
2400 llvm_cv_target_os_type="SunOS" ;;
2402 llvm_cv_target_os_type="Win32" ;;
2404 llvm_cv_target_os_type="MingW" ;;
2406 llvm_cv_target_os_type="Freestanding" ;;
2408 llvm_cv_target_os_type="Unknown" ;;
2411 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2414 if test "$llvm_cv_os_type" = "Unknown" ; then
2415 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2417 { (exit 1); exit 1; }; }
2422 HOST_OS=$llvm_cv_os_type
2424 TARGET_OS=$llvm_cv_target_os_type
2427 LINKALL=$llvm_cv_link_all_option
2429 NOLINKALL=$llvm_cv_no_link_all_option
2432 case $llvm_cv_platform_type in
2435 cat >>confdefs.h <<\_ACEOF
2436 #define LLVM_ON_UNIX 1
2446 cat >>confdefs.h <<\_ACEOF
2447 #define LLVM_ON_WIN32 1
2457 { echo "$as_me:$LINENO: checking target architecture" >&5
2458 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2459 if test "${llvm_cv_target_arch+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 i?86-*) llvm_cv_target_arch="x86" ;;
2464 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2465 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2466 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2467 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2468 arm*-*) llvm_cv_target_arch="ARM" ;;
2469 mips-*) llvm_cv_target_arch="Mips" ;;
2470 pic16-*) llvm_cv_target_arch="PIC16" ;;
2471 xcore-*) llvm_cv_target_arch="XCore" ;;
2472 msp430-*) llvm_cv_target_arch="MSP430" ;;
2473 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2474 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2475 *) llvm_cv_target_arch="Unknown" ;;
2478 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2481 if test "$llvm_cv_target_arch" = "Unknown" ; then
2482 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2486 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2531 if test -z "$ac_cv_prog_CC"; then
2533 # Extract the first word of "gcc", so it can be a program name with args.
2534 set dummy gcc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_CC="gcc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561 if test -n "$ac_ct_CC"; then
2562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563 echo "${ECHO_T}$ac_ct_CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2569 if test "x$ac_ct_CC" = x; then
2572 case $cross_compiling:$ac_tool_warned in
2574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet. If you think this
2576 configuration is useful to you, please write to autoconf@gnu.org." >&5
2577 echo "$as_me: 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." >&2;}
2580 ac_tool_warned=yes ;;
2588 if test -z "$CC"; then
2589 if test -n "$ac_tool_prefix"; then
2590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2591 set dummy ${ac_tool_prefix}cc; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_CC="${ac_tool_prefix}cc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2629 if test -z "$CC"; then
2630 # Extract the first word of "cc", so it can be a program name with args.
2631 set dummy cc; ac_word=$2
2632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2649 ac_prog_rejected=yes
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test $ac_prog_rejected = yes; then
2661 # We found a bogon in the path, so make sure we never use it.
2662 set dummy $ac_cv_prog_CC
2664 if test $# != 0; then
2665 # We chose a different compiler from the bogus one.
2666 # However, it has the same basename, so the bogon will be chosen
2667 # first if we set CC to just the basename; use the full file name.
2669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2675 if test -n "$CC"; then
2676 { echo "$as_me:$LINENO: result: $CC" >&5
2677 echo "${ECHO_T}$CC" >&6; }
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2685 if test -z "$CC"; then
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in cl.exe
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6; }
2721 { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2726 test -n "$CC" && break
2729 if test -z "$CC"; then
2731 for ac_prog in cl.exe
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy $ac_prog; ac_word=$2
2735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_ac_ct_CC="$ac_prog"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761 if test -n "$ac_ct_CC"; then
2762 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2763 echo "${ECHO_T}$ac_ct_CC" >&6; }
2765 { echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6; }
2770 test -n "$ac_ct_CC" && break
2773 if test "x$ac_ct_CC" = x; then
2776 case $cross_compiling:$ac_tool_warned in
2778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2779 whose name does not start with the host triplet. If you think this
2780 configuration is useful to you, please write to autoconf@gnu.org." >&5
2781 echo "$as_me: 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." >&2;}
2784 ac_tool_warned=yes ;;
2793 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: no acceptable C compiler found in \$PATH
2796 See \`config.log' for more details." >&2;}
2797 { (exit 1); exit 1; }; }
2799 # Provide some information about the compiler.
2800 echo "$as_me:$LINENO: checking for C compiler version" >&5
2801 ac_compiler=`set X $ac_compile; echo $2`
2802 { (ac_try="$ac_compiler --version >&5"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_compiler --version >&5") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }
2812 { (ac_try="$ac_compiler -v >&5"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compiler -v >&5") 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }
2822 { (ac_try="$ac_compiler -V >&5"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_compiler -V >&5") 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2848 ac_clean_files_save=$ac_clean_files
2849 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2850 # Try to create an executable without -o first, disregard a.out.
2851 # It will help us diagnose broken compilers, and finding out an intuition
2853 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2854 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2855 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2857 # List of possible output files, starting from the most likely.
2858 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2859 # only as a last resort. b.out is created by i960 compilers.
2860 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2862 # The IRIX 6 linker writes into existing files which may not be
2863 # executable, retaining their permissions. Remove them first so a
2864 # subsequent execution test works.
2866 for ac_file in $ac_files
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2875 if { (ac_try="$ac_link_default"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_link_default") 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2888 # so that the user can short-circuit this test for compilers unknown to
2890 for ac_file in $ac_files
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2897 # We found the default executable, but exeext='' is most
2901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905 # We set ac_cv_exeext here because the later test for it is not
2906 # safe: cross compilers may not add the suffix if given an `-o'
2907 # argument, so we may need to know it at that point already.
2908 # Even if this section looks crufty: it has the advantage of
2915 test "$ac_cv_exeext" = no && ac_cv_exeext=
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: C compiler cannot create executables
2924 See \`config.log' for more details." >&2;}
2925 { (exit 77); exit 77; }; }
2928 ac_exeext=$ac_cv_exeext
2929 { echo "$as_me:$LINENO: result: $ac_file" >&5
2930 echo "${ECHO_T}$ac_file" >&6; }
2932 # Check that the compiler produces executables we can run. If not, either
2933 # the compiler is broken, or we cross compile.
2934 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2935 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2936 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2937 # If not cross compiling, check that we can run a simple program.
2938 if test "$cross_compiling" != yes; then
2939 if { ac_try='./$ac_file'
2940 { (case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_try") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2951 if test "$cross_compiling" = maybe; then
2954 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2955 If you meant to cross compile, use \`--host'.
2956 See \`config.log' for more details." >&5
2957 echo "$as_me: error: cannot run C compiled programs.
2958 If you meant to cross compile, use \`--host'.
2959 See \`config.log' for more details." >&2;}
2960 { (exit 1); exit 1; }; }
2964 { echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6; }
2967 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2968 ac_clean_files=$ac_clean_files_save
2969 # Check that the compiler produces executables we can run. If not, either
2970 # the compiler is broken, or we cross compile.
2971 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2972 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2973 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2974 echo "${ECHO_T}$cross_compiling" >&6; }
2976 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2977 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2978 if { (ac_try="$ac_link"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_link") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2990 # work properly (i.e., refer to `conftest.exe'), while it won't with
2992 for ac_file in conftest.exe conftest conftest.*; do
2993 test -f "$ac_file" || continue
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest$ac_cv_exeext
3010 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3013 rm -f conftest.$ac_ext
3014 EXEEXT=$ac_cv_exeext
3016 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3018 if test "${ac_cv_objext+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3036 rm -f conftest.o conftest.obj
3037 if { (ac_try="$ac_compile"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; then
3047 for ac_file in conftest.o conftest.obj conftest.*; do
3048 test -f "$ac_file" || continue;
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3051 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3060 See \`config.log' for more details." >&5
3061 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3062 See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3066 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3068 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3069 echo "${ECHO_T}$ac_cv_objext" >&6; }
3070 OBJEXT=$ac_cv_objext
3072 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3073 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3074 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3141 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3142 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3143 GCC=`test $ac_compiler_gnu = yes && echo yes`
3144 ac_test_CFLAGS=${CFLAGS+set}
3145 ac_save_CFLAGS=$CFLAGS
3146 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3147 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3148 if test "${ac_cv_prog_cc_g+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 ac_save_c_werror_flag=$ac_c_werror_flag
3152 ac_c_werror_flag=yes
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240 { (case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_try") 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_try") 2>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3343 if test "$GCC" = yes; then
3349 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3350 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_c89+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 ac_cv_prog_cc_c89=no
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3364 #include <sys/types.h>
3365 #include <sys/stat.h>
3366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3367 struct buf { int x; };
3368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369 static char *e (p, i)
3375 static char *f (char * (*g) (char **, int), char **p, ...)
3380 s = g (p, va_arg (v,int));
3385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3386 function prototypes and stuff, but not '\xHH' hex character constants.
3387 These don't provoke an error unfortunately, instead are silently treated
3388 as 'x'. The following induces an error, until -std is added to get
3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3390 array size at least. It's necessary to write '\x00'==0 to get something
3391 that's true only with -std. */
3392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3394 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3395 inside strings and character constants. */
3397 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3399 int test (int i, double x);
3400 struct s1 {int (*f) (int a);};
3401 struct s2 {int (*f) (double a);};
3402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3414 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3416 CC="$ac_save_CC $ac_arg"
3417 rm -f conftest.$ac_objext
3418 if { (ac_try="$ac_compile"
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_compile") 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3432 { (case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_try") 2>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_try") 2>&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_c89=$ac_arg
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3459 rm -f core conftest.err conftest.$ac_objext
3460 test "x$ac_cv_prog_cc_c89" != "xno" && break
3462 rm -f conftest.$ac_ext
3467 case "x$ac_cv_prog_cc_c89" in
3469 { echo "$as_me:$LINENO: result: none needed" >&5
3470 echo "${ECHO_T}none needed" >&6; } ;;
3472 { echo "$as_me:$LINENO: result: unsupported" >&5
3473 echo "${ECHO_T}unsupported" >&6; } ;;
3475 CC="$CC $ac_cv_prog_cc_c89"
3476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3477 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
3489 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
3490 if test "${llvm_cv_linux_mixed+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 error: Not x86-64 even if uname says so!
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3532 { (case "(($ac_try" in
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_try") 2>&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_try") 2>&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 llvm_cv_linux_mixed=no
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 llvm_cv_linux_mixed=yes
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
3569 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
3571 if test "$llvm_cv_linux_mixed" = "yes"; then
3572 llvm_cv_target_arch="x86"
3576 # Determine the LLVM native architecture for the target
3577 case "$llvm_cv_target_arch" in
3578 x86) LLVM_NATIVE_ARCH="X86" ;;
3579 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3580 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3583 ARCH=$llvm_cv_target_arch
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3592 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3593 # On Suns, sometimes $CPP names a directory.
3594 if test -n "$CPP" && test -d "$CPP"; then
3597 if test -z "$CPP"; then
3598 if test "${ac_cv_prog_CPP+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 # Double quotes because CPP needs to be expanded
3602 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3605 for ac_c_preproc_warn_flag in '' yes
3607 # Use a header file that comes with gcc, so configuring glibc
3608 # with a fresh cross-compiler works.
3609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610 # <limits.h> exists even on freestanding compilers.
3611 # On the NeXT, cc -E runs the code through the compiler's parser,
3612 # not just through cpp. "Syntax error" is here to catch this case.
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3620 # include <limits.h>
3622 # include <assert.h>
3626 if { (ac_try="$ac_cpp conftest.$ac_ext"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3648 if test -z "$ac_cpp_err"; then
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 # Broken: fails on valid input.
3658 rm -f conftest.err conftest.$ac_ext
3660 # OK, works on sane cases. Now check whether nonexistent headers
3661 # can be detected and how.
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 #include <ac_nonexistent.h>
3670 if { (ac_try="$ac_cpp conftest.$ac_ext"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } >/dev/null; then
3683 if test -s conftest.err; then
3684 ac_cpp_err=$ac_c_preproc_warn_flag
3685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3692 if test -z "$ac_cpp_err"; then
3693 # Broken: success on invalid input.
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 # Passes both tests.
3704 rm -f conftest.err conftest.$ac_ext
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then
3721 { echo "$as_me:$LINENO: result: $CPP" >&5
3722 echo "${ECHO_T}$CPP" >&6; }
3724 for ac_c_preproc_warn_flag in '' yes
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error" is here to catch this case.
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3739 # include <limits.h>
3741 # include <assert.h>
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3753 grep -v '^ *+' conftest.er1 >conftest.err
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev/null; then
3758 if test -s conftest.err; then
3759 ac_cpp_err=$ac_c_preproc_warn_flag
3760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3767 if test -z "$ac_cpp_err"; then
3770 echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 # Broken: fails on valid input.
3777 rm -f conftest.err conftest.$ac_ext
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 #include <ac_nonexistent.h>
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } >/dev/null; then
3802 if test -s conftest.err; then
3803 ac_cpp_err=$ac_c_preproc_warn_flag
3804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3811 if test -z "$ac_cpp_err"; then
3812 # Broken: success on invalid input.
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 # Passes both tests.
3823 rm -f conftest.err conftest.$ac_ext
3826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827 rm -f conftest.err conftest.$ac_ext
3828 if $ac_preproc_ok; then
3831 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3832 See \`config.log' for more details." >&5
3833 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3834 See \`config.log' for more details." >&2;}
3835 { (exit 1); exit 1; }; }
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3846 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_GREP+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 # Extract the first word of "grep ggrep" to use in msg output
3851 if test -z "$GREP"; then
3852 set dummy grep ggrep; ac_prog_name=$2
3853 if test "${ac_cv_path_GREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 ac_path_GREP_found=false
3857 # Loop through the user's path and test for each of PROGNAME-LIST
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in grep ggrep; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3866 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3867 # Check for GNU ac_path_GREP and select it if it is found.
3868 # Check for GNU $ac_path_GREP
3869 case `"$ac_path_GREP" --version 2>&1` in
3871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3874 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3877 cat "conftest.in" "conftest.in" >"conftest.tmp"
3878 mv "conftest.tmp" "conftest.in"
3879 cp "conftest.in" "conftest.nl"
3880 echo 'GREP' >> "conftest.nl"
3881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3883 ac_count=`expr $ac_count + 1`
3884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3885 # Best one so far, save it but keep looking for a better one
3886 ac_cv_path_GREP="$ac_path_GREP"
3887 ac_path_GREP_max=$ac_count
3889 # 10*(2^10) chars as input seems more than enough
3890 test $ac_count -gt 10 && break
3892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896 $ac_path_GREP_found && break 3
3906 GREP="$ac_cv_path_GREP"
3907 if test -z "$GREP"; then
3908 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3909 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3910 { (exit 1); exit 1; }; }
3914 ac_cv_path_GREP=$GREP
3919 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3920 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3921 GREP="$ac_cv_path_GREP"
3924 { echo "$as_me:$LINENO: checking for egrep" >&5
3925 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3926 if test "${ac_cv_path_EGREP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3930 then ac_cv_path_EGREP="$GREP -E"
3932 # Extract the first word of "egrep" to use in msg output
3933 if test -z "$EGREP"; then
3934 set dummy egrep; ac_prog_name=$2
3935 if test "${ac_cv_path_EGREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_path_EGREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in egrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3949 # Check for GNU ac_path_EGREP and select it if it is found.
3950 # Check for GNU $ac_path_EGREP
3951 case `"$ac_path_EGREP" --version 2>&1` in
3953 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3956 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 echo 'EGREP' >> "conftest.nl"
3963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 ac_count=`expr $ac_count + 1`
3966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_EGREP="$ac_path_EGREP"
3969 ac_path_EGREP_max=$ac_count
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978 $ac_path_EGREP_found && break 3
3988 EGREP="$ac_cv_path_EGREP"
3989 if test -z "$EGREP"; then
3990 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992 { (exit 1); exit 1; }; }
3996 ac_cv_path_EGREP=$EGREP
4002 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4003 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4004 EGREP="$ac_cv_path_EGREP"
4007 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4009 if test "${ac_cv_header_stdc+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_cv_header_stdc=yes
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 ac_cv_header_stdc=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 if test $ac_cv_header_stdc = yes; then
4076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "memchr" >/dev/null 2>&1; then
4090 ac_cv_header_stdc=no
4096 if test $ac_cv_header_stdc = yes; then
4097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "free" >/dev/null 2>&1; then
4111 ac_cv_header_stdc=no
4117 if test $ac_cv_header_stdc = yes; then
4118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4119 if test "$cross_compiling" = yes; then
4122 cat >conftest.$ac_ext <<_ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4130 #if ((' ' & 0x0FF) == 0x020)
4131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4134 # define ISLOWER(c) \
4135 (('a' <= (c) && (c) <= 'i') \
4136 || ('j' <= (c) && (c) <= 'r') \
4137 || ('s' <= (c) && (c) <= 'z'))
4138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4146 for (i = 0; i < 256; i++)
4147 if (XOR (islower (i), ISLOWER (i))
4148 || toupper (i) != TOUPPER (i))
4153 rm -f conftest$ac_exeext
4154 if { (ac_try="$ac_link"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_link") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_cv_header_stdc=no
4182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4188 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4189 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4190 if test $ac_cv_header_stdc = yes; then
4192 cat >>confdefs.h <<\_ACEOF
4193 #define STDC_HEADERS 1
4198 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4209 inttypes.h stdint.h unistd.h
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 $ac_includes_default
4225 #include <$ac_header>
4227 rm -f conftest.$ac_objext
4228 if { (ac_try="$ac_compile"
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4242 { (case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_try") 2>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; } &&
4251 { ac_try='test -s conftest.$ac_objext'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 eval "$as_ac_Header=yes"
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 eval "$as_ac_Header=no"
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 ac_res=`eval echo '${'$as_ac_Header'}'`
4272 { echo "$as_me:$LINENO: result: $ac_res" >&5
4273 echo "${ECHO_T}$ac_res" >&6; }
4274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4275 cat >>confdefs.h <<_ACEOF
4276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4285 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4286 if test "${ac_cv_c_bigendian+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 # See if sys/param.h defines the BYTE_ORDER macro.
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 #include <sys/types.h>
4297 #include <sys/param.h>
4302 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_try") 2>&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 # It does; now see whether it defined to BIG_ENDIAN or not.
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #include <sys/types.h>
4352 #include <sys/param.h>
4357 #if BYTE_ORDER != BIG_ENDIAN
4365 rm -f conftest.$ac_objext
4366 if { (ac_try="$ac_compile"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_compile") 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4380 { (case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_try") 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_c_bigendian=yes
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_cv_c_bigendian=no
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 # It does not; compile a test program.
4413 if test "$cross_compiling" = yes; then
4414 # try to guess the endianness by grepping values into an object file
4415 ac_cv_c_bigendian=unknown
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4423 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4424 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4425 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4426 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4427 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4431 _ascii (); _ebcdic ();
4436 rm -f conftest.$ac_objext
4437 if { (ac_try="$ac_compile"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_compile") 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4471 ac_cv_c_bigendian=yes
4473 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4474 if test "$ac_cv_c_bigendian" = unknown; then
4475 ac_cv_c_bigendian=no
4477 # finding both strings is unlikely to happen, but who knows?
4478 ac_cv_c_bigendian=unknown
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4501 /* Are we little or big endian? From Harbison&Steele. */
4505 char c[sizeof (long int)];
4508 return u.c[sizeof (long int) - 1] == 1;
4514 rm -f conftest$ac_exeext
4515 if { (ac_try="$ac_link"
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_link") 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4525 { (case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_try") 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_cv_c_bigendian=no
4536 echo "$as_me: program exited with status $ac_status" >&5
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4541 ac_cv_c_bigendian=yes
4543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4552 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4553 case $ac_cv_c_bigendian in
4561 { { echo "$as_me:$LINENO: error: unknown endianness
4562 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4563 echo "$as_me: error: unknown endianness
4564 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4565 { (exit 1); exit 1; }; } ;;
4569 if test "$cross_compiling" = yes; then
4570 LLVM_CROSS_COMPILING=1
4573 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4574 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4575 if test "${ac_cv_build_exeext+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4579 ac_cv_build_exeext=.exe
4581 ac_build_prefix=${build_alias}-
4583 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4584 set dummy ${ac_build_prefix}gcc; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 if test -n "$BUILD_CC"; then
4591 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 BUILD_CC=$ac_cv_prog_BUILD_CC
4611 if test -n "$BUILD_CC"; then
4612 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4613 echo "${ECHO_T}$BUILD_CC" >&6; }
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4620 if test -z "$BUILD_CC"; then
4621 # Extract the first word of "gcc", so it can be a program name with args.
4622 set dummy gcc; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 if test -n "$BUILD_CC"; then
4629 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_BUILD_CC="gcc"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 BUILD_CC=$ac_cv_prog_BUILD_CC
4649 if test -n "$BUILD_CC"; then
4650 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4651 echo "${ECHO_T}$BUILD_CC" >&6; }
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4658 if test -z "$BUILD_CC"; then
4659 # Extract the first word of "cc", so it can be a program name with args.
4660 set dummy cc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$BUILD_CC"; then
4667 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4678 ac_prog_rejected=yes
4681 ac_cv_prog_BUILD_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 if test $ac_prog_rejected = yes; then
4690 # We found a bogon in the path, so make sure we never use it.
4691 set dummy $ac_cv_prog_BUILD_CC
4693 if test $# != 0; then
4694 # We chose a different compiler from the bogus one.
4695 # However, it has the same basename, so the bogon will be chosen
4696 # first if we set BUILD_CC to just the basename; use the full file name.
4698 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4703 BUILD_CC=$ac_cv_prog_BUILD_CC
4704 if test -n "$BUILD_CC"; then
4705 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4706 echo "${ECHO_T}$BUILD_CC" >&6; }
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4715 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4716 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4717 { (exit 1); exit 1; }; }
4718 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4720 echo 'int main () { return 0; }' > conftest.$ac_ext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4723 (eval $ac_build_link) 2>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; then
4727 for file in conftest.*; do
4729 *.c | *.o | *.obj | *.dSYM) ;;
4730 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4734 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4735 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4736 { (exit 1); exit 1; }; }
4739 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4744 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4745 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4746 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4747 ac_build_exeext=$BUILD_EXEEXT
4749 ac_build_prefix=${build_alias}-
4750 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4751 set dummy ${ac_build_prefix}g++; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 if test -n "$BUILD_CXX"; then
4758 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4778 if test -n "$BUILD_CXX"; then
4779 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4780 echo "${ECHO_T}$BUILD_CXX" >&6; }
4782 { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4787 if test -z "$BUILD_CXX"; then
4788 # Extract the first word of "g++", so it can be a program name with args.
4789 set dummy g++; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -n "$BUILD_CXX"; then
4796 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_prog_BUILD_CXX="g++"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4816 if test -n "$BUILD_CXX"; then
4817 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4818 echo "${ECHO_T}$BUILD_CXX" >&6; }
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4825 if test -z "$BUILD_CXX"; then
4826 # Extract the first word of "c++", so it can be a program name with args.
4827 set dummy c++; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 if test -n "$BUILD_CXX"; then
4834 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4845 ac_prog_rejected=yes
4848 ac_cv_prog_BUILD_CXX="c++"
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 if test $ac_prog_rejected = yes; then
4857 # We found a bogon in the path, so make sure we never use it.
4858 set dummy $ac_cv_prog_BUILD_CXX
4860 if test $# != 0; then
4861 # We chose a different compiler from the bogus one.
4862 # However, it has the same basename, so the bogon will be chosen
4863 # first if we set BUILD_CXX to just the basename; use the full file name.
4865 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4870 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4871 if test -n "$BUILD_CXX"; then
4872 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4873 echo "${ECHO_T}$BUILD_CXX" >&6; }
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4883 LLVM_CROSS_COMPILING=0
4887 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4898 # Check whether --enable-optimized was given.
4899 if test "${enable_optimized+set}" = set; then
4900 enableval=$enable_optimized;
4905 if test ${enableval} = "no" ; then
4909 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4913 # Check whether --enable-profiling was given.
4914 if test "${enable_profiling+set}" = set; then
4915 enableval=$enable_profiling;
4920 if test ${enableval} = "no" ; then
4924 ENABLE_PROFILING=ENABLE_PROFILING=1
4928 # Check whether --enable-assertions was given.
4929 if test "${enable_assertions+set}" = set; then
4930 enableval=$enable_assertions;
4935 if test ${enableval} = "yes" ; then
4939 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4943 # Check whether --enable-expensive-checks was given.
4944 if test "${enable_expensive_checks+set}" = set; then
4945 enableval=$enable_expensive_checks;
4950 if test ${enableval} = "yes" ; then
4951 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4953 EXPENSIVE_CHECKS=yes
4956 ENABLE_EXPENSIVE_CHECKS=
4962 # Check whether --enable-debug-runtime was given.
4963 if test "${enable_debug_runtime+set}" = set; then
4964 enableval=$enable_debug_runtime;
4969 if test ${enableval} = "no" ; then
4973 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4977 # Check whether --enable-debug-symbols was given.
4978 if test "${enable_debug_symbols+set}" = set; then
4979 enableval=$enable_debug_symbols;
4984 if test ${enableval} = "no" ; then
4988 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4992 # Check whether --enable-jit was given.
4993 if test "${enable_jit+set}" = set; then
4994 enableval=$enable_jit;
4999 if test ${enableval} = "no"
5004 case "$llvm_cv_target_arch" in
5005 x86) TARGET_HAS_JIT=1
5007 Sparc) TARGET_HAS_JIT=0
5009 PowerPC) TARGET_HAS_JIT=1
5011 x86_64) TARGET_HAS_JIT=1
5013 Alpha) TARGET_HAS_JIT=1
5015 ARM) TARGET_HAS_JIT=1
5017 Mips) TARGET_HAS_JIT=0
5019 PIC16) TARGET_HAS_JIT=0
5021 XCore) TARGET_HAS_JIT=0
5023 MSP430) TARGET_HAS_JIT=0
5025 SystemZ) TARGET_HAS_JIT=0
5027 Blackfin) TARGET_HAS_JIT=0
5034 # Check whether --enable-doxygen was given.
5035 if test "${enable_doxygen+set}" = set; then
5036 enableval=$enable_doxygen;
5041 case "$enableval" in
5042 yes) ENABLE_DOXYGEN=1
5044 no) ENABLE_DOXYGEN=0
5046 default) ENABLE_DOXYGEN=0
5048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5049 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5053 # Check whether --enable-threads was given.
5054 if test "${enable_threads+set}" = set; then
5055 enableval=$enable_threads;
5060 case "$enableval" in
5061 yes) ENABLE_THREADS=1
5063 no) ENABLE_THREADS=0
5065 default) ENABLE_THREADS=1
5067 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5068 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5072 cat >>confdefs.h <<_ACEOF
5073 #define ENABLE_THREADS $ENABLE_THREADS
5077 # Check whether --enable-pic was given.
5078 if test "${enable_pic+set}" = set; then
5079 enableval=$enable_pic;
5084 case "$enableval" in
5089 default) ENABLE_PIC=1
5091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5092 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5093 { (exit 1); exit 1; }; } ;;
5096 cat >>confdefs.h <<_ACEOF
5097 #define ENABLE_PIC $ENABLE_PIC
5102 # Check whether --enable-targets was given.
5103 if test "${enable_targets+set}" = set; then
5104 enableval=$enable_targets;
5109 if test "$enableval" = host-only ; then
5112 case "$enableval" in
5113 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5114 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5116 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5117 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5118 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5119 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5120 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5121 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5122 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5123 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5124 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5125 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5126 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5127 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5128 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5129 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5130 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5131 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5132 host) case "$llvm_cv_target_arch" in
5133 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5134 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5135 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5136 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5137 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5138 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5139 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5140 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5141 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5142 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5143 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5144 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5145 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5146 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5147 echo "$as_me: error: Can not set target to build" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5150 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5151 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5152 { (exit 1); exit 1; }; } ;;
5157 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5160 # Determine whether we are building LLVM support for the native architecture.
5161 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5162 for a_target in $TARGETS_TO_BUILD; do
5163 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5164 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5166 cat >>confdefs.h <<_ACEOF
5167 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5173 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5174 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5175 LLVM_ENUM_TARGETS=""
5176 LLVM_ENUM_ASM_PRINTERS=""
5177 LLVM_ENUM_ASM_PARSERS=""
5178 for target_to_build in $TARGETS_TO_BUILD; do
5179 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5180 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5181 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5183 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5184 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5191 # Check whether --enable-cbe-printf-a was given.
5192 if test "${enable_cbe_printf_a+set}" = set; then
5193 enableval=$enable_cbe_printf_a;
5198 case "$enableval" in
5199 yes) ENABLE_CBE_PRINTF_A=1
5201 no) ENABLE_CBE_PRINTF_A=0
5203 default) ENABLE_CBE_PRINTF_A=1
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5210 cat >>confdefs.h <<_ACEOF
5211 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5216 # Check whether --with-llvmgccdir was given.
5217 if test "${with_llvmgccdir+set}" = set; then
5218 withval=$with_llvmgccdir;
5224 default) WITH_LLVMGCCDIR=default ;;
5225 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5226 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5227 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5232 # Check whether --with-llvmgcc was given.
5233 if test "${with_llvmgcc+set}" = set; then
5234 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5240 # Check whether --with-llvmgxx was given.
5241 if test "${with_llvmgxx+set}" = set; then
5242 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5247 if test -n "$LLVMGCC"; then
5248 LLVMGCCCOMMAND="$LLVMGCC"
5251 if test -n "$LLVMGXX"; then
5252 LLVMGXXCOMMAND="$LLVMGXX"
5255 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5256 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5257 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5258 { (exit 1); exit 1; }; };
5261 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5262 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5263 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5264 { (exit 1); exit 1; }; };
5268 # Check whether --with-extra-options was given.
5269 if test "${with_extra_options+set}" = set; then
5270 withval=$with_extra_options;
5276 default) EXTRA_OPTIONS= ;;
5277 *) EXTRA_OPTIONS=$withval ;;
5279 EXTRA_OPTIONS=$EXTRA_OPTIONS
5282 # Check whether --enable-bindings was given.
5283 if test "${enable_bindings+set}" = set; then
5284 enableval=$enable_bindings;
5289 BINDINGS_TO_BUILD=""
5290 case "$enableval" in
5291 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5292 all ) BINDINGS_TO_BUILD="ocaml" ;;
5293 none | no) BINDINGS_TO_BUILD="" ;;
5294 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5295 case "$a_binding" in
5296 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5297 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5298 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5299 { (exit 1); exit 1; }; } ;;
5306 # Check whether --with-ocaml-libdir was given.
5307 if test "${with_ocaml_libdir+set}" = set; then
5308 withval=$with_ocaml_libdir;
5314 auto) with_ocaml_libdir="$withval" ;;
5315 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5316 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5317 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5318 { (exit 1); exit 1; }; } ;;
5322 # Check whether --with-binutils-include was given.
5323 if test "${with_binutils_include+set}" = set; then
5324 withval=$with_binutils_include;
5330 default) WITH_BINUTILS_INCDIR=default ;;
5331 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5332 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5333 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5334 { (exit 1); exit 1; }; } ;;
5336 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5337 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5339 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5340 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5341 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5342 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5343 { (exit 1); exit 1; }; };
5347 # Check whether --enable-libffi was given.
5348 if test "${enable_libffi+set}" = set; then
5349 enableval=$enable_libffi;
5354 case "$enableval" in
5355 yes) llvm_cv_enable_libffi="yes" ;;
5356 no) llvm_cv_enable_libffi="no" ;;
5357 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5358 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5359 { (exit 1); exit 1; }; } ;;
5362 if test "$llvm_cv_os_type" = "Win32" ; then
5368 # Check whether --enable-llvmc-dynamic was given.
5369 if test "${enable_llvmc_dynamic+set}" = set; then
5370 enableval=$enable_llvmc_dynamic;
5372 enableval=$llvmc_dynamic
5375 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5376 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5379 ENABLE_LLVMC_DYNAMIC=
5383 # Check whether --enable-llvmc-dynamic-plugins was given.
5384 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5385 enableval=$enable_llvmc_dynamic_plugins;
5390 if test ${enableval} = "yes" ; then
5391 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5394 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5406 # On Suns, sometimes $CPP names a directory.
5407 if test -n "$CPP" && test -d "$CPP"; then
5410 if test -z "$CPP"; then
5411 if test "${ac_cv_prog_CPP+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 # Double quotes because CPP needs to be expanded
5415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5418 for ac_c_preproc_warn_flag in '' yes
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5433 # include <limits.h>
5435 # include <assert.h>
5439 if { (ac_try="$ac_cpp conftest.$ac_ext"
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447 grep -v '^ *+' conftest.er1 >conftest.err
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_c_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5461 if test -z "$ac_cpp_err"; then
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 # Broken: fails on valid input.
5471 rm -f conftest.err conftest.$ac_ext
5473 # OK, works on sane cases. Now check whether nonexistent headers
5474 # can be detected and how.
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5483 if { (ac_try="$ac_cpp conftest.$ac_ext"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5505 if test -z "$ac_cpp_err"; then
5506 # Broken: success on invalid input.
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 # Passes both tests.
5517 rm -f conftest.err conftest.$ac_ext
5520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5521 rm -f conftest.err conftest.$ac_ext
5522 if $ac_preproc_ok; then
5534 { echo "$as_me:$LINENO: result: $CPP" >&5
5535 echo "${ECHO_T}$CPP" >&6; }
5537 for ac_c_preproc_warn_flag in '' yes
5539 # Use a header file that comes with gcc, so configuring glibc
5540 # with a fresh cross-compiler works.
5541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5542 # <limits.h> exists even on freestanding compilers.
5543 # On the NeXT, cc -E runs the code through the compiler's parser,
5544 # not just through cpp. "Syntax error" is here to catch this case.
5545 cat >conftest.$ac_ext <<_ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5552 # include <limits.h>
5554 # include <assert.h>
5558 if { (ac_try="$ac_cpp conftest.$ac_ext"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5566 grep -v '^ *+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } >/dev/null; then
5571 if test -s conftest.err; then
5572 ac_cpp_err=$ac_c_preproc_warn_flag
5573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5580 if test -z "$ac_cpp_err"; then
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 # Broken: fails on valid input.
5590 rm -f conftest.err conftest.$ac_ext
5592 # OK, works on sane cases. Now check whether nonexistent headers
5593 # can be detected and how.
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #include <ac_nonexistent.h>
5602 if { (ac_try="$ac_cpp conftest.$ac_ext"
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } >/dev/null; then
5615 if test -s conftest.err; then
5616 ac_cpp_err=$ac_c_preproc_warn_flag
5617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5624 if test -z "$ac_cpp_err"; then
5625 # Broken: success on invalid input.
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 # Passes both tests.
5636 rm -f conftest.err conftest.$ac_ext
5639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5640 rm -f conftest.err conftest.$ac_ext
5641 if $ac_preproc_ok; then
5644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5645 See \`config.log' for more details." >&5
5646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5647 See \`config.log' for more details." >&2;}
5648 { (exit 1); exit 1; }; }
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 if test -n "$ac_tool_prefix"; then
5665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5669 if test "${ac_cv_prog_CC+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 if test -n "$CC"; then
5673 ac_cv_prog_CC="$CC" # Let the user override the test.
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 if test -n "$CC"; then
5694 { echo "$as_me:$LINENO: result: $CC" >&5
5695 echo "${ECHO_T}$CC" >&6; }
5697 { echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6; }
5702 test -n "$CC" && break
5705 if test -z "$CC"; then
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 if test -n "$ac_ct_CC"; then
5717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_prog_ac_ct_CC="$ac_prog"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5737 if test -n "$ac_ct_CC"; then
5738 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5739 echo "${ECHO_T}$ac_ct_CC" >&6; }
5741 { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5746 test -n "$ac_ct_CC" && break
5749 if test "x$ac_ct_CC" = x; then
5752 case $cross_compiling:$ac_tool_warned in
5754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5755 whose name does not start with the host triplet. If you think this
5756 configuration is useful to you, please write to autoconf@gnu.org." >&5
5757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5758 whose name does not start with the host triplet. If you think this
5759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5760 ac_tool_warned=yes ;;
5767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5768 See \`config.log' for more details." >&5
5769 echo "$as_me: error: no acceptable C compiler found in \$PATH
5770 See \`config.log' for more details." >&2;}
5771 { (exit 1); exit 1; }; }
5773 # Provide some information about the compiler.
5774 echo "$as_me:$LINENO: checking for C compiler version" >&5
5775 ac_compiler=`set X $ac_compile; echo $2`
5776 { (ac_try="$ac_compiler --version >&5"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compiler --version >&5") 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }
5786 { (ac_try="$ac_compiler -v >&5"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compiler -v >&5") 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }
5796 { (ac_try="$ac_compiler -V >&5"
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compiler -V >&5") 2>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }
5807 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5808 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5809 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 cat >conftest.$ac_ext <<_ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845 { (case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_try") 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_try") 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5876 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5877 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5878 GCC=`test $ac_compiler_gnu = yes && echo yes`
5879 ac_test_CFLAGS=${CFLAGS+set}
5880 ac_save_CFLAGS=$CFLAGS
5881 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5882 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5883 if test "${ac_cv_prog_cc_g+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_save_c_werror_flag=$ac_c_werror_flag
5887 ac_c_werror_flag=yes
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
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5969 grep -v '^ *+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5975 { (case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_try") 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try='test -s conftest.$ac_objext'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6016 rm -f conftest.$ac_objext
6017 if { (ac_try="$ac_compile"
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_compile") 2>conftest.er1
6025 grep -v '^ *+' conftest.er1 >conftest.err
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_try") 2>&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_try") 2>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 ac_c_werror_flag=$ac_save_c_werror_flag
6067 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6068 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6069 if test "$ac_test_CFLAGS" = set; then
6070 CFLAGS=$ac_save_CFLAGS
6071 elif test $ac_cv_prog_cc_g = yes; then
6072 if test "$GCC" = yes; then
6078 if test "$GCC" = yes; then
6084 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6085 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_cc_c89+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 ac_cv_prog_cc_c89=no
6091 cat >conftest.$ac_ext <<_ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6099 #include <sys/types.h>
6100 #include <sys/stat.h>
6101 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6102 struct buf { int x; };
6103 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6104 static char *e (p, i)
6110 static char *f (char * (*g) (char **, int), char **p, ...)
6115 s = g (p, va_arg (v,int));
6120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6121 function prototypes and stuff, but not '\xHH' hex character constants.
6122 These don't provoke an error unfortunately, instead are silently treated
6123 as 'x'. The following induces an error, until -std is added to get
6124 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6125 array size at least. It's necessary to write '\x00'==0 to get something
6126 that's true only with -std. */
6127 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6130 inside strings and character constants. */
6132 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6134 int test (int i, double x);
6135 struct s1 {int (*f) (int a);};
6136 struct s2 {int (*f) (double a);};
6137 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6143 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6148 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6149 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6151 CC="$ac_save_CC $ac_arg"
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6167 { (case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_try") 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_prog_cc_c89=$ac_arg
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6194 rm -f core conftest.err conftest.$ac_objext
6195 test "x$ac_cv_prog_cc_c89" != "xno" && break
6197 rm -f conftest.$ac_ext
6202 case "x$ac_cv_prog_cc_c89" in
6204 { echo "$as_me:$LINENO: result: none needed" >&5
6205 echo "${ECHO_T}none needed" >&6; } ;;
6207 { echo "$as_me:$LINENO: result: unsupported" >&5
6208 echo "${ECHO_T}unsupported" >&6; } ;;
6210 CC="$CC $ac_cv_prog_cc_c89"
6211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6217 ac_cpp='$CPP $CPPFLAGS'
6218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6223 ac_cpp='$CXXCPP $CPPFLAGS'
6224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6227 if test -z "$CXX"; then
6228 if test -n "$CCC"; then
6231 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238 if test "${ac_cv_prog_CXX+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 if test -n "$CXX"; then
6242 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 if test -n "$CXX"; then
6263 { echo "$as_me:$LINENO: result: $CXX" >&5
6264 echo "${ECHO_T}$CXX" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 test -n "$CXX" && break
6274 if test -z "$CXX"; then
6278 # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 if test -n "$ac_ct_CXX"; then
6286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_ac_ct_CXX="$ac_prog"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6306 if test -n "$ac_ct_CXX"; then
6307 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6308 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6310 { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6315 test -n "$ac_ct_CXX" && break
6318 if test "x$ac_ct_CXX" = x; then
6321 case $cross_compiling:$ac_tool_warned in
6323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6324 whose name does not start with the host triplet. If you think this
6325 configuration is useful to you, please write to autoconf@gnu.org." >&5
6326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet. If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6329 ac_tool_warned=yes ;;
6337 # Provide some information about the compiler.
6338 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6339 ac_compiler=`set X $ac_compile; echo $2`
6340 { (ac_try="$ac_compiler --version >&5"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_compiler --version >&5") 2>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }
6350 { (ac_try="$ac_compiler -v >&5"
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compiler -v >&5") 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }
6360 { (ac_try="$ac_compiler -V >&5"
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compiler -V >&5") 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }
6371 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6372 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6373 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6409 { (case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_try") 2>&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6440 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6441 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6442 GXX=`test $ac_compiler_gnu = yes && echo yes`
6443 ac_test_CXXFLAGS=${CXXFLAGS+set}
6444 ac_save_CXXFLAGS=$CXXFLAGS
6445 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6446 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6447 if test "${ac_cv_prog_cxx_g+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6451 ac_cxx_werror_flag=yes
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
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6539 { (case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_try") 2>&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; } &&
6548 { ac_try='test -s conftest.$ac_objext'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6595 { (case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_try") 2>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; } &&
6604 { ac_try='test -s conftest.$ac_objext'
6605 { (case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_try") 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6614 ac_cv_prog_cxx_g=yes
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6631 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6632 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6633 if test "$ac_test_CXXFLAGS" = set; then
6634 CXXFLAGS=$ac_save_CXXFLAGS
6635 elif test $ac_cv_prog_cxx_g = yes; then
6636 if test "$GXX" = yes; then
6642 if test "$GXX" = yes; then
6649 ac_cpp='$CPP $CPPFLAGS'
6650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6656 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6657 if test "${lt_cv_path_NM+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 if test -n "$NM"; then
6661 # Let the user override the test.
6664 lt_nm_to_check="${ac_tool_prefix}nm"
6665 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6666 lt_nm_to_check="$lt_nm_to_check nm"
6668 for lt_tmp_nm in $lt_nm_to_check; do
6669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6670 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6672 test -z "$ac_dir" && ac_dir=.
6673 tmp_nm="$ac_dir/$lt_tmp_nm"
6674 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6675 # Check to see if the nm accepts a BSD-compat flag.
6676 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6677 # nm: unknown option "B" ignored
6678 # Tru64's nm complains that /dev/null is an invalid object file
6679 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6680 */dev/null* | *'Invalid file or object type'*)
6681 lt_cv_path_NM="$tmp_nm -B"
6685 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6687 lt_cv_path_NM="$tmp_nm -p"
6691 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6692 continue # so that we can try to find one that supports BSD flags
6701 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6704 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6705 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6710 { echo "$as_me:$LINENO: checking for GNU make" >&5
6711 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6712 if test "${llvm_cv_gnu_make_command+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 llvm_cv_gnu_make_command=''
6716 for a in "$MAKE" make gmake gnumake ; do
6717 if test -z "$a" ; then continue ; fi ;
6718 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6720 llvm_cv_gnu_make_command=$a ;
6725 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6726 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6727 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6731 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6732 echo "${ECHO_T}\"Not found\"" >&6; };
6736 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6737 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6739 if test "$LN_S" = "ln -s"; then
6740 { echo "$as_me:$LINENO: result: yes" >&5
6741 echo "${ECHO_T}yes" >&6; }
6743 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6744 echo "${ECHO_T}no, using $LN_S" >&6; }
6747 # Extract the first word of "cmp", so it can be a program name with args.
6748 set dummy cmp; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_CMP+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6779 if test -n "$CMP"; then
6780 { echo "$as_me:$LINENO: result: $CMP" >&5
6781 echo "${ECHO_T}$CMP" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 # Extract the first word of "cp", so it can be a program name with args.
6789 set dummy cp; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_CP+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6820 if test -n "$CP"; then
6821 { echo "$as_me:$LINENO: result: $CP" >&5
6822 echo "${ECHO_T}$CP" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6829 # Extract the first word of "date", so it can be a program name with args.
6830 set dummy date; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_DATE+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6860 DATE=$ac_cv_path_DATE
6861 if test -n "$DATE"; then
6862 { echo "$as_me:$LINENO: result: $DATE" >&5
6863 echo "${ECHO_T}$DATE" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 # Extract the first word of "find", so it can be a program name with args.
6871 set dummy find; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_FIND+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6901 FIND=$ac_cv_path_FIND
6902 if test -n "$FIND"; then
6903 { echo "$as_me:$LINENO: result: $FIND" >&5
6904 echo "${ECHO_T}$FIND" >&6; }
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 # Extract the first word of "grep", so it can be a program name with args.
6912 set dummy grep; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_GREP+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6942 GREP=$ac_cv_path_GREP
6943 if test -n "$GREP"; then
6944 { echo "$as_me:$LINENO: result: $GREP" >&5
6945 echo "${ECHO_T}$GREP" >&6; }
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6952 # Extract the first word of "mkdir", so it can be a program name with args.
6953 set dummy mkdir; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_MKDIR+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6983 MKDIR=$ac_cv_path_MKDIR
6984 if test -n "$MKDIR"; then
6985 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6986 echo "${ECHO_T}$MKDIR" >&6; }
6988 { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6993 # Extract the first word of "mv", so it can be a program name with args.
6994 set dummy mv; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_MV+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7025 if test -n "$MV"; then
7026 { echo "$as_me:$LINENO: result: $MV" >&5
7027 echo "${ECHO_T}$MV" >&6; }
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039 if test "${ac_cv_prog_RANLIB+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 if test -n "$RANLIB"; then
7043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 RANLIB=$ac_cv_prog_RANLIB
7063 if test -n "$RANLIB"; then
7064 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7065 echo "${ECHO_T}$RANLIB" >&6; }
7067 { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7073 if test -z "$ac_cv_prog_RANLIB"; then
7074 ac_ct_RANLIB=$RANLIB
7075 # Extract the first word of "ranlib", so it can be a program name with args.
7076 set dummy ranlib; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 if test -n "$ac_ct_RANLIB"; then
7083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_prog_ac_ct_RANLIB="ranlib"
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7103 if test -n "$ac_ct_RANLIB"; then
7104 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7105 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7107 { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7111 if test "x$ac_ct_RANLIB" = x; then
7114 case $cross_compiling:$ac_tool_warned in
7116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7117 whose name does not start with the host triplet. If you think this
7118 configuration is useful to you, please write to autoconf@gnu.org." >&5
7119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7120 whose name does not start with the host triplet. If you think this
7121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7122 ac_tool_warned=yes ;;
7124 RANLIB=$ac_ct_RANLIB
7127 RANLIB="$ac_cv_prog_RANLIB"
7130 # Extract the first word of "rm", so it can be a program name with args.
7131 set dummy rm; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_RM+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7162 if test -n "$RM"; then
7163 { echo "$as_me:$LINENO: result: $RM" >&5
7164 echo "${ECHO_T}$RM" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 # Extract the first word of "sed", so it can be a program name with args.
7172 set dummy sed; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_SED+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7203 if test -n "$SED"; then
7204 { echo "$as_me:$LINENO: result: $SED" >&5
7205 echo "${ECHO_T}$SED" >&6; }
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7212 # Extract the first word of "tar", so it can be a program name with args.
7213 set dummy tar; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_TAR+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7244 if test -n "$TAR"; then
7245 { echo "$as_me:$LINENO: result: $TAR" >&5
7246 echo "${ECHO_T}$TAR" >&6; }
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7253 # Extract the first word of "pwd", so it can be a program name with args.
7254 set dummy pwd; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_BINPWD+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7284 BINPWD=$ac_cv_path_BINPWD
7285 if test -n "$BINPWD"; then
7286 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7287 echo "${ECHO_T}$BINPWD" >&6; }
7289 { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7295 # Extract the first word of "Graphviz", so it can be a program name with args.
7296 set dummy Graphviz; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7326 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7327 if test -n "$GRAPHVIZ"; then
7328 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7329 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7331 { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7336 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_GRAPHVIZ 1
7342 if test "$llvm_cv_os_type" = "MingW" ; then
7343 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7346 cat >>confdefs.h <<_ACEOF
7347 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7351 # Extract the first word of "dot", so it can be a program name with args.
7352 set dummy dot; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_path_DOT+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7383 if test -n "$DOT"; then
7384 { echo "$as_me:$LINENO: result: $DOT" >&5
7385 echo "${ECHO_T}$DOT" >&6; }
7387 { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7392 if test "$DOT" != "echo dot" ; then
7394 cat >>confdefs.h <<\_ACEOF
7398 if test "$llvm_cv_os_type" = "MingW" ; then
7399 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7402 cat >>confdefs.h <<_ACEOF
7403 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7407 # Extract the first word of "fdp", so it can be a program name with args.
7408 set dummy fdp; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_path_FDP+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7439 if test -n "$FDP"; then
7440 { echo "$as_me:$LINENO: result: $FDP" >&5
7441 echo "${ECHO_T}$FDP" >&6; }
7443 { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7448 if test "$FDP" != "echo fdp" ; then
7450 cat >>confdefs.h <<\_ACEOF
7454 if test "$llvm_cv_os_type" = "MingW" ; then
7455 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7458 cat >>confdefs.h <<_ACEOF
7459 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7463 # Extract the first word of "neato", so it can be a program name with args.
7464 set dummy neato; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_NEATO+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7494 NEATO=$ac_cv_path_NEATO
7495 if test -n "$NEATO"; then
7496 { echo "$as_me:$LINENO: result: $NEATO" >&5
7497 echo "${ECHO_T}$NEATO" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 if test "$NEATO" != "echo neato" ; then
7506 cat >>confdefs.h <<\_ACEOF
7507 #define HAVE_NEATO 1
7510 if test "$llvm_cv_os_type" = "MingW" ; then
7511 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7514 cat >>confdefs.h <<_ACEOF
7515 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7519 # Extract the first word of "twopi", so it can be a program name with args.
7520 set dummy twopi; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_TWOPI+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7550 TWOPI=$ac_cv_path_TWOPI
7551 if test -n "$TWOPI"; then
7552 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7553 echo "${ECHO_T}$TWOPI" >&6; }
7555 { echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6; }
7560 if test "$TWOPI" != "echo twopi" ; then
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_TWOPI 1
7566 if test "$llvm_cv_os_type" = "MingW" ; then
7567 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7570 cat >>confdefs.h <<_ACEOF
7571 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7575 # Extract the first word of "circo", so it can be a program name with args.
7576 set dummy circo; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_CIRCO+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7606 CIRCO=$ac_cv_path_CIRCO
7607 if test -n "$CIRCO"; then
7608 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7609 echo "${ECHO_T}$CIRCO" >&6; }
7611 { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7616 if test "$CIRCO" != "echo circo" ; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_CIRCO 1
7622 if test "$llvm_cv_os_type" = "MingW" ; then
7623 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7626 cat >>confdefs.h <<_ACEOF
7627 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7631 for ac_prog in gv gsview32
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_GV+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 if test -n "$GV"; then
7665 { echo "$as_me:$LINENO: result: $GV" >&5
7666 echo "${ECHO_T}$GV" >&6; }
7668 { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7673 test -n "$GV" && break
7675 test -n "$GV" || GV="echo gv"
7677 if test "$GV" != "echo gv" ; then
7679 cat >>confdefs.h <<\_ACEOF
7683 if test "$llvm_cv_os_type" = "MingW" ; then
7684 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7687 cat >>confdefs.h <<_ACEOF
7688 #define LLVM_PATH_GV "$GV${EXEEXT}"
7692 # Extract the first word of "dotty", so it can be a program name with args.
7693 set dummy dotty; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_DOTTY+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7723 DOTTY=$ac_cv_path_DOTTY
7724 if test -n "$DOTTY"; then
7725 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7726 echo "${ECHO_T}$DOTTY" >&6; }
7728 { echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6; }
7733 if test "$DOTTY" != "echo dotty" ; then
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_DOTTY 1
7739 if test "$llvm_cv_os_type" = "MingW" ; then
7740 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7743 cat >>confdefs.h <<_ACEOF
7744 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7750 # Extract the first word of "perl", so it can be a program name with args.
7751 set dummy perl; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_PERL+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7781 PERL=$ac_cv_path_PERL
7782 if test -n "$PERL"; then
7783 { echo "$as_me:$LINENO: result: $PERL" >&5
7784 echo "${ECHO_T}$PERL" >&6; }
7786 { echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6; }
7791 if test "$PERL" != "none"; then
7792 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7793 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7794 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7795 { echo "$as_me:$LINENO: result: yes" >&5
7796 echo "${ECHO_T}yes" >&6; }
7799 { echo "$as_me:$LINENO: result: not found" >&5
7800 echo "${ECHO_T}not found" >&6; }
7805 if test x"$PERL" = xnone; then
7808 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7809 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7810 { (exit 1); exit 1; }; }
7816 # Find a good install program. We prefer a C program (faster),
7817 # so one script is as good as another. But avoid the broken or
7818 # incompatible versions:
7819 # SysV /etc/install, /usr/sbin/install
7820 # SunOS /usr/etc/install
7821 # IRIX /sbin/install
7823 # AmigaOS /C/install, which installs bootblocks on floppy discs
7824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7827 # OS/2's system install, which has a completely different semantic
7828 # ./install, which can be erroneously created by make from ./install.sh.
7829 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7830 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7831 if test -z "$INSTALL"; then
7832 if test "${ac_cv_path_install+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir=.
7840 # Account for people who put trailing slashes in PATH elements.
7842 ./ | .// | /cC/* | \
7843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7844 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7847 # OSF1 and SCO ODT 3.0 have their own names for install.
7848 # Don't use installbsd from OSF since it installs stuff as root
7850 for ac_prog in ginstall scoinst install; do
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7853 if test $ac_prog = install &&
7854 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7855 # AIX install. It has an incompatible calling convention.
7857 elif test $ac_prog = install &&
7858 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7859 # program-specific install script used by HP pwplus--don't use.
7862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7875 if test "${ac_cv_path_install+set}" = set; then
7876 INSTALL=$ac_cv_path_install
7878 # As a last resort, use the slow shell script. Don't cache a
7879 # value for INSTALL within a source directory, because that will
7880 # break other packages using the cache if that directory is
7881 # removed, or if the value is a relative name.
7882 INSTALL=$ac_install_sh
7885 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7886 echo "${ECHO_T}$INSTALL" >&6; }
7888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7889 # It thinks the first close brace ends the variable substitution.
7890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7897 # Extract the first word of "bzip2", so it can be a program name with args.
7898 set dummy bzip2; ac_word=$2
7899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901 if test "${ac_cv_path_BZIP2+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 BZIP2=$ac_cv_path_BZIP2
7928 if test -n "$BZIP2"; then
7929 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7930 echo "${ECHO_T}$BZIP2" >&6; }
7932 { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7937 # Extract the first word of "doxygen", so it can be a program name with args.
7938 set dummy doxygen; ac_word=$2
7939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7941 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 DOXYGEN=$ac_cv_path_DOXYGEN
7968 if test -n "$DOXYGEN"; then
7969 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7970 echo "${ECHO_T}$DOXYGEN" >&6; }
7972 { echo "$as_me:$LINENO: result: no" >&5
7973 echo "${ECHO_T}no" >&6; }
7977 # Extract the first word of "groff", so it can be a program name with args.
7978 set dummy groff; ac_word=$2
7979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981 if test "${ac_cv_path_GROFF+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 GROFF=$ac_cv_path_GROFF
8008 if test -n "$GROFF"; then
8009 { echo "$as_me:$LINENO: result: $GROFF" >&5
8010 echo "${ECHO_T}$GROFF" >&6; }
8012 { echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6; }
8017 # Extract the first word of "gzip", so it can be a program name with args.
8018 set dummy gzip; ac_word=$2
8019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8021 if test "${ac_cv_path_GZIP+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 GZIP=$ac_cv_path_GZIP
8048 if test -n "$GZIP"; then
8049 { echo "$as_me:$LINENO: result: $GZIP" >&5
8050 echo "${ECHO_T}$GZIP" >&6; }
8052 { echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6; }
8057 # Extract the first word of "pod2html", so it can be a program name with args.
8058 set dummy pod2html; ac_word=$2
8059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061 if test "${ac_cv_path_POD2HTML+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 POD2HTML=$ac_cv_path_POD2HTML
8088 if test -n "$POD2HTML"; then
8089 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8090 echo "${ECHO_T}$POD2HTML" >&6; }
8092 { echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6; }
8097 # Extract the first word of "pod2man", so it can be a program name with args.
8098 set dummy pod2man; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_path_POD2MAN+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 POD2MAN=$ac_cv_path_POD2MAN
8128 if test -n "$POD2MAN"; then
8129 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8130 echo "${ECHO_T}$POD2MAN" >&6; }
8132 { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8137 # Extract the first word of "runtest", so it can be a program name with args.
8138 set dummy runtest; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_RUNTEST+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 RUNTEST=$ac_cv_path_RUNTEST
8168 if test -n "$RUNTEST"; then
8169 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8170 echo "${ECHO_T}$RUNTEST" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8179 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8180 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8182 # Check whether --with-tclinclude was given.
8183 if test "${with_tclinclude+set}" = set; then
8184 withval=$with_tclinclude; with_tclinclude=${withval}
8189 if test "${ac_cv_path_tclsh+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 if test x"${with_tclinclude}" != x ; then
8194 if test -f ${with_tclinclude}/tclsh ; then
8195 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8196 elif test -f ${with_tclinclude}/src/tclsh ; then
8197 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8199 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8200 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8201 { (exit 1); exit 1; }; }
8205 if test x"${ac_cv_path_tclsh}" = x ; then
8206 { echo "$as_me:$LINENO: result: none" >&5
8207 echo "${ECHO_T}none" >&6; }
8208 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
8210 # Extract the first word of "$ac_prog", so it can be a program name with args.
8211 set dummy $ac_prog; ac_word=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_path_TCLSH+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 TCLSH=$ac_cv_path_TCLSH
8241 if test -n "$TCLSH"; then
8242 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8243 echo "${ECHO_T}$TCLSH" >&6; }
8245 { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8250 test -n "$TCLSH" && break
8253 if test x"${TCLSH}" = x ; then
8254 ac_cv_path_tclsh='';
8256 ac_cv_path_tclsh="${TCLSH}";
8259 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8260 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8261 TCLSH="${ac_cv_path_tclsh}"
8267 # Extract the first word of "zip", so it can be a program name with args.
8268 set dummy zip; ac_word=$2
8269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8271 if test "${ac_cv_path_ZIP+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 if test -n "$ZIP"; then
8299 { echo "$as_me:$LINENO: result: $ZIP" >&5
8300 echo "${ECHO_T}$ZIP" >&6; }
8302 { echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6; }
8307 for ac_prog in ocamlc
8309 # Extract the first word of "$ac_prog", so it can be a program name with args.
8310 set dummy $ac_prog; ac_word=$2
8311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8313 if test "${ac_cv_path_OCAMLC+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 OCAMLC=$ac_cv_path_OCAMLC
8340 if test -n "$OCAMLC"; then
8341 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8342 echo "${ECHO_T}$OCAMLC" >&6; }
8344 { echo "$as_me:$LINENO: result: no" >&5
8345 echo "${ECHO_T}no" >&6; }
8349 test -n "$OCAMLC" && break
8352 for ac_prog in ocamlopt
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 OCAMLOPT=$ac_cv_path_OCAMLOPT
8385 if test -n "$OCAMLOPT"; then
8386 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8387 echo "${ECHO_T}$OCAMLOPT" >&6; }
8389 { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8394 test -n "$OCAMLOPT" && break
8397 for ac_prog in ocamldep
8399 # Extract the first word of "$ac_prog", so it can be a program name with args.
8400 set dummy $ac_prog; ac_word=$2
8401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8403 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 OCAMLDEP=$ac_cv_path_OCAMLDEP
8430 if test -n "$OCAMLDEP"; then
8431 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8432 echo "${ECHO_T}$OCAMLDEP" >&6; }
8434 { echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6; }
8439 test -n "$OCAMLDEP" && break
8442 for ac_prog in ocamldoc
8444 # Extract the first word of "$ac_prog", so it can be a program name with args.
8445 set dummy $ac_prog; ac_word=$2
8446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8448 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 OCAMLDOC=$ac_cv_path_OCAMLDOC
8475 if test -n "$OCAMLDOC"; then
8476 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8477 echo "${ECHO_T}$OCAMLDOC" >&6; }
8479 { echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6; }
8484 test -n "$OCAMLDOC" && break
8487 for ac_prog in gas as
8489 # Extract the first word of "$ac_prog", so it can be a program name with args.
8490 set dummy $ac_prog; ac_word=$2
8491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8493 if test "${ac_cv_path_GAS+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8508 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 if test -n "$GAS"; then
8521 { echo "$as_me:$LINENO: result: $GAS" >&5
8522 echo "${ECHO_T}$GAS" >&6; }
8524 { echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6; }
8529 test -n "$GAS" && break
8533 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8534 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8535 if test "${llvm_cv_link_use_r+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_cpp='$CPP $CPPFLAGS'
8540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8545 CFLAGS="$CFLAGS -Wl,-R."
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8556 int main() { return 0; }
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_link") 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8576 { (case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_try") 2>&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; } &&
8585 { ac_try='test -s conftest$ac_exeext'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8595 llvm_cv_link_use_r=yes
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8600 llvm_cv_link_use_r=no
8603 rm -f core conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8607 ac_cpp='$CPP $CPPFLAGS'
8608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8615 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8616 if test "$llvm_cv_link_use_r" = yes ; then
8618 cat >>confdefs.h <<\_ACEOF
8619 #define HAVE_LINK_R 1
8625 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8626 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8627 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8637 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8648 int main() { return 0; }
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (ac_try="$ac_link"
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_link") 2>conftest.er1
8662 grep -v '^ *+' conftest.er1 >conftest.err
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8668 { (case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_try") 2>&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_try") 2>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 llvm_cv_link_use_export_dynamic=yes
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 llvm_cv_link_use_export_dynamic=no
8695 rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8699 ac_cpp='$CPP $CPPFLAGS'
8700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8706 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8707 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8708 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8710 cat >>confdefs.h <<\_ACEOF
8711 #define HAVE_LINK_EXPORT_DYNAMIC 1
8719 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8720 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8721 if test "${ac_cv_c_const+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8734 /* FIXME: Include the comments suggested by Paul. */
8736 /* Ultrix mips cc rejects this. */
8737 typedef int charset[2];
8739 /* SunOS 4.1.1 cc rejects this. */
8740 char const *const *ccp;
8742 /* NEC SVR4.0.2 mips cc rejects this. */
8743 struct point {int x, y;};
8744 static struct point const zero = {0,0};
8745 /* AIX XL C 1.02.0.0 rejects this.
8746 It does not let you subtract one const X* pointer from another in
8747 an arm of an if-expression whose if-part is not a constant
8749 const char *g = "string";
8750 ccp = &g + (g ? g-g : 0);
8751 /* HPUX 7.0 cc rejects these. */
8754 ccp = (char const *const *) p;
8755 { /* SCO 3.2v4 cc rejects this. */
8757 char const *s = 0 ? (char *) 0 : (char const *) 0;
8762 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8764 const int *foo = &x[0];
8767 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8768 typedef const int *iptr;
8772 { /* AIX XL C 1.02.0.0 rejects this saying
8773 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8774 struct s { int j; const int *ap[3]; };
8775 struct s *b; b->j = 5;
8777 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8781 return !x[0] && !zero.x;
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8833 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8834 if test $ac_cv_c_const = no; then
8836 cat >>confdefs.h <<\_ACEOF
8848 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8849 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8850 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8851 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 cat >conftest.$ac_ext <<_ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8882 grep -v '^ *+' conftest.er1 >conftest.err
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8888 { (case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_try") 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest.$ac_objext'
8898 { (case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_try") 2>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 eval "$as_ac_Header=yes"
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 eval "$as_ac_Header=no"
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 ac_res=`eval echo '${'$as_ac_Header'}'`
8918 { echo "$as_me:$LINENO: result: $ac_res" >&5
8919 echo "${ECHO_T}$ac_res" >&6; }
8920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8921 cat >>confdefs.h <<_ACEOF
8922 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8925 ac_header_dirent=$ac_hdr; break
8929 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8930 if test $ac_header_dirent = dirent.h; then
8931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8933 if test "${ac_cv_search_opendir+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 ac_func_search_save_LIBS=$LIBS
8937 cat >conftest.$ac_ext <<_ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8944 /* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8959 for ac_lib in '' dir; do
8960 if test -z "$ac_lib"; then
8961 ac_res="none required"
8964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (ac_try="$ac_link"
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_link") 2>conftest.er1
8975 grep -v '^ *+' conftest.er1 >conftest.err
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8981 { (case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_try") 2>&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_try") 2>&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_cv_search_opendir=$ac_res
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9008 rm -f core conftest.err conftest.$ac_objext \
9010 if test "${ac_cv_search_opendir+set}" = set; then
9014 if test "${ac_cv_search_opendir+set}" = set; then
9017 ac_cv_search_opendir=no
9020 LIBS=$ac_func_search_save_LIBS
9022 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9023 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9024 ac_res=$ac_cv_search_opendir
9025 if test "$ac_res" != no; then
9026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9031 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9033 if test "${ac_cv_search_opendir+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 ac_func_search_save_LIBS=$LIBS
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9044 /* Override any GCC internal prototype to avoid an error.
9045 Use char because int might match the return type of a GCC
9046 builtin and then its argument prototype would still apply. */
9059 for ac_lib in '' x; do
9060 if test -z "$ac_lib"; then
9061 ac_res="none required"
9064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_link") 2>conftest.er1
9075 grep -v '^ *+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9081 { (case "(($ac_try" in
9082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083 *) ac_try_echo=$ac_try;;
9085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9086 (eval "$ac_try") 2>&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest$ac_exeext'
9091 { (case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_try") 2>&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_search_opendir=$ac_res
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9108 rm -f core conftest.err conftest.$ac_objext \
9110 if test "${ac_cv_search_opendir+set}" = set; then
9114 if test "${ac_cv_search_opendir+set}" = set; then
9117 ac_cv_search_opendir=no
9120 LIBS=$ac_func_search_save_LIBS
9122 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9123 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9124 ac_res=$ac_cv_search_opendir
9125 if test "$ac_res" != no; then
9126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9133 for ac_header in dlfcn.h
9135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 ac_res=`eval echo '${'$as_ac_Header'}'`
9143 { echo "$as_me:$LINENO: result: $ac_res" >&5
9144 echo "${ECHO_T}$ac_res" >&6; }
9146 # Is the header compilable?
9147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9156 #include <$ac_header>
9158 rm -f conftest.$ac_objext
9159 if { (ac_try="$ac_compile"
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_compile") 2>conftest.er1
9167 grep -v '^ *+' conftest.er1 >conftest.err
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9173 { (case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_try") 2>&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_try") 2>&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_header_compiler=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 ac_header_compiler=no
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202 echo "${ECHO_T}$ac_header_compiler" >&6; }
9204 # Is the header present?
9205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9207 cat >conftest.$ac_ext <<_ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 #include <$ac_header>
9215 if { (ac_try="$ac_cpp conftest.$ac_ext"
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } >/dev/null; then
9228 if test -s conftest.err; then
9229 ac_cpp_err=$ac_c_preproc_warn_flag
9230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9237 if test -z "$ac_cpp_err"; then
9238 ac_header_preproc=yes
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_header_preproc=no
9246 rm -f conftest.err conftest.$ac_ext
9247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9248 echo "${ECHO_T}$ac_header_preproc" >&6; }
9250 # So? What about this header?
9251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9257 ac_header_preproc=yes
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9273 ## ----------------------------------- ##
9274 ## Report this to llvmbugs@cs.uiuc.edu ##
9275 ## ----------------------------------- ##
9277 ) | sed "s/^/$as_me: WARNING: /" >&2
9280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 eval "$as_ac_Header=\$ac_header_preproc"
9287 ac_res=`eval echo '${'$as_ac_Header'}'`
9288 { echo "$as_me:$LINENO: result: $ac_res" >&5
9289 echo "${ECHO_T}$ac_res" >&6; }
9292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9301 # Check whether --enable-ltdl-install was given.
9302 if test "${enable_ltdl_install+set}" = set; then
9303 enableval=$enable_ltdl_install;
9309 if test x"${enable_ltdl_install-no}" != xno; then
9311 INSTALL_LTDL_FALSE='#'
9313 INSTALL_LTDL_TRUE='#'
9319 if test x"${enable_ltdl_convenience-no}" != xno; then
9320 CONVENIENCE_LTDL_TRUE=
9321 CONVENIENCE_LTDL_FALSE='#'
9323 CONVENIENCE_LTDL_TRUE='#'
9324 CONVENIENCE_LTDL_FALSE=
9328 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9331 libname_spec='lib$name'
9339 shlibpath_overrides_runpath=unknown
9341 dynamic_linker="$host_os ld.so"
9342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9343 if test "$GCC" = yes; then
9344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9345 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9346 # if the path contains ";" then we assume it to be the separator
9347 # otherwise default to the standard path separator (i.e. ":") - it is
9348 # assumed that no part of a normal pathname contains ";" but that should
9349 # okay in the real world where ";" in dirpaths is itself problematic.
9350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9357 need_lib_prefix=unknown
9358 hardcode_into_libs=no
9360 # when you set need_version to no, make sure it does not cause -set_version
9361 # flags to be left without arguments
9362 need_version=unknown
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9368 shlibpath_var=LIBPATH
9370 # AIX 3 has no versioning support, so we append a major version to the name.
9371 soname_spec='${libname}${release}${shared_ext}$major'
9378 hardcode_into_libs=yes
9379 if test "$host_cpu" = ia64; then
9380 # AIX 5 supports IA64
9381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9382 shlibpath_var=LD_LIBRARY_PATH
9384 # With GCC up to 2.95.x, collect2 would create an import file
9385 # for dependence libraries. The import file would start with
9386 # the line `#! .'. This would cause the generated library to
9387 # depend on `.', always an invalid library. This was fixed in
9388 # development snapshots of GCC prior to 3.0.
9390 aix4 | aix4.[01] | aix4.[01].*)
9391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9393 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9401 # soname into executable. Probably we can add versioning support to
9402 # collect2, so additional links can be useful in future.
9403 if test "$aix_use_runtimelinking" = yes; then
9404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9405 # instead of lib<name>.a to let people know that these are not
9406 # typical AIX shared libraries.
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 # We preserve .a as extension for shared libraries through AIX4.2
9410 # and later when we are not doing run time linking.
9411 library_names_spec='${libname}${release}.a $libname.a'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9414 shlibpath_var=LIBPATH
9419 library_names_spec='$libname.ixlibrary $libname.a'
9420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9421 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'
9425 library_names_spec='${libname}${shared_ext}'
9426 dynamic_linker="$host_os ld.so"
9427 shlibpath_var=LIBRARY_PATH
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9439 # the default ld.so.conf also contains /usr/contrib/lib and
9440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9441 # libtool to hard-code these into programs
9444 cygwin* | mingw* | pw32*)
9445 version_type=windows
9450 case $GCC,$host_os in
9451 yes,cygwin* | yes,mingw* | yes,pw32*)
9452 library_names_spec='$libname.dll.a'
9453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9454 postinstall_cmds='base_file=`basename \${file}`~
9455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9456 dldir=$destdir/`dirname \$dlpath`~
9457 test -d \$dldir || mkdir -p \$dldir~
9458 $install_prog $dir/$dlname \$dldir/$dlname~
9459 chmod a+x \$dldir/$dlname'
9460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9461 dlpath=$dir/\$dldll~
9463 shlibpath_overrides_runpath=yes
9467 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9469 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9472 # MinGW DLLs use traditional 'lib' prefix
9473 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9475 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9476 # It is most probably a Windows format PATH printed by
9477 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9478 # path with ; separators, and with drive letters. We can handle the
9479 # drive letters (cygwin fileutils understands them), so leave them,
9480 # especially as we might pass files found there to a mingw objdump,
9481 # which wouldn't understand a cygwinified path. Ahh.
9482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9488 # pw32 DLLs use 'pw' prefix rather than 'lib'
9489 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9495 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9498 dynamic_linker='Win32 ld.exe'
9499 # FIXME: first we should search . and the directory the executable is in
9503 darwin* | rhapsody*)
9504 dynamic_linker="$host_os dyld"
9508 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9509 soname_spec='${libname}${release}${major}$shared_ext'
9510 shlibpath_overrides_runpath=yes
9511 shlibpath_var=DYLD_LIBRARY_PATH
9512 shrext_cmds='.dylib'
9513 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9514 if test "$GCC" = yes; then
9515 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"`
9517 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 shlibpath_var=LD_LIBRARY_PATH
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=no
9543 hardcode_into_libs=yes
9544 dynamic_linker='GNU ld.so'
9547 freebsd* | dragonfly*)
9548 # DragonFly does not have aout. When/if they implement a new
9549 # versioning mechanism, adjust this.
9550 if test -x /usr/bin/objformat; then
9551 objformat=`/usr/bin/objformat`
9554 freebsd[123]*) objformat=aout ;;
9558 version_type=freebsd-$objformat
9559 case $version_type in
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9570 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=yes
9575 freebsd3.[01]* | freebsdelf3.[01]*)
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9581 shlibpath_overrides_runpath=no
9582 hardcode_into_libs=yes
9584 freebsd*) # from 4.6 on
9585 shlibpath_overrides_runpath=yes
9586 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
9598 hardcode_into_libs=yes
9601 hpux9* | hpux10* | hpux11*)
9602 # Give a soname corresponding to the major version so that dld.sl refuses to
9603 # link against other versions.
9610 hardcode_into_libs=yes
9611 dynamic_linker="$host_os dld.so"
9612 shlibpath_var=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615 soname_spec='${libname}${release}${shared_ext}$major'
9616 if test "X$HPUX_IA64_MODE" = X32; then
9617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9625 hardcode_into_libs=yes
9626 dynamic_linker="$host_os dld.sl"
9627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9636 dynamic_linker="$host_os dld.sl"
9637 shlibpath_var=SHLIB_PATH
9638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9643 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9644 postinstall_cmds='chmod 555 $lib'
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=no
9656 hardcode_into_libs=yes
9659 irix5* | irix6* | nonstopux*)
9661 nonstopux*) version_type=nonstopux ;;
9663 if test "$lt_cv_prog_gnu_ld" = yes; then
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9674 irix5* | nonstopux*)
9678 case $LD in # libtool.m4 will add one of these switches to LD
9679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9680 libsuff= shlibsuff= libmagic=32-bit;;
9681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9682 libsuff=32 shlibsuff=N32 libmagic=N32;;
9683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9685 *) libsuff= shlibsuff= libmagic=never-match;;
9689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9690 shlibpath_overrides_runpath=no
9691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9693 hardcode_into_libs=yes
9696 # No shared lib support for Linux oldld, aout, or coff.
9697 linux*oldld* | linux*aout* | linux*coff*)
9701 # This must be Linux ELF.
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=no
9711 # This implies no fast_install, which is unacceptable.
9712 # Some rework will be needed to allow for fast_install
9713 # before this can be enabled.
9714 hardcode_into_libs=yes
9716 # Append ld.so.conf contents to the search path
9717 if test -f /etc/ld.so.conf; then
9718 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' ' '`
9719 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9722 # We used to test for /lib/ld.so.1 and disable shared libraries on
9723 # powerpc, because MkLinux only supported shared libraries with the
9724 # GNU dynamic linker. Since this was broken with cross compilers,
9725 # most powerpc-linux boxes support dynamic linking these days and
9726 # people can always --disable-shared, the test was removed, and we
9727 # assume the GNU/Linux dynamic linker is in use.
9728 dynamic_linker='GNU/Linux ld.so'
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9736 soname_spec='${libname}${release}${shared_ext}$major'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 shlibpath_overrides_runpath=no
9739 hardcode_into_libs=yes
9740 dynamic_linker='GNU ld.so'
9747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9750 dynamic_linker='NetBSD (a.out) ld.so'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 dynamic_linker='NetBSD ld.elf_so'
9756 shlibpath_var=LD_LIBRARY_PATH
9757 shlibpath_overrides_runpath=yes
9758 hardcode_into_libs=yes
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=yes
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=yes
9780 sys_lib_dlsearch_path_spec="/usr/lib"
9782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9785 *) need_version=no ;;
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9792 openbsd2.[89] | openbsd2.[89].*)
9793 shlibpath_overrides_runpath=no
9796 shlibpath_overrides_runpath=yes
9800 shlibpath_overrides_runpath=yes
9805 libname_spec='$name'
9808 library_names_spec='$libname${shared_ext} $libname.a'
9809 dynamic_linker='OS/2 ld.exe'
9810 shlibpath_var=LIBPATH
9813 osf3* | osf4* | osf5*)
9817 soname_spec='${libname}${release}${shared_ext}$major'
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 shlibpath_var=LD_LIBRARY_PATH
9820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 shlibpath_overrides_runpath=yes
9832 hardcode_into_libs=yes
9833 # ldd complains unless libraries are executable
9834 postinstall_cmds='chmod +x $lib'
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 shlibpath_overrides_runpath=yes
9843 if test "$with_gnu_ld" = yes; then
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 case $host_vendor in
9856 shlibpath_overrides_runpath=no
9858 export_dynamic_flag_spec='${wl}-Blargedynsym'
9859 runpath_var=LD_RUN_PATH
9867 shlibpath_overrides_runpath=no
9868 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9874 if test -d /usr/nec ;then
9876 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9877 soname_spec='$libname${shared_ext}.$major'
9878 shlibpath_var=LD_LIBRARY_PATH
9882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9883 version_type=freebsd-elf
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 hardcode_into_libs=yes
9890 if test "$with_gnu_ld" = yes; then
9891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9892 shlibpath_overrides_runpath=no
9894 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9895 shlibpath_overrides_runpath=yes
9898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9902 sys_lib_dlsearch_path_spec='/usr/lib'
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9917 echo "${ECHO_T}$dynamic_linker" >&6; }
9918 test "$dynamic_linker" = no && can_build_shared=no
9920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9921 if test "$GCC" = yes; then
9922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9926 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9927 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9928 if test "${libltdl_cv_shlibext+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 eval libltdl_cv_shlibext=$shrext_cmds
9936 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9937 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9938 if test -n "$libltdl_cv_shlibext"; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9947 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9948 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9949 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 libltdl_cv_shlibpath_var="$shlibpath_var"
9954 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9955 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9956 if test -n "$libltdl_cv_shlibpath_var"; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9965 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9966 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9967 if test "${libltdl_cv_sys_search_path+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9972 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9973 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9974 if test -n "$libltdl_cv_sys_search_path"; then
9976 for dir in $libltdl_cv_sys_search_path; do
9977 if test -z "$sys_search_path"; then
9978 sys_search_path="$dir"
9980 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9984 cat >>confdefs.h <<_ACEOF
9985 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9990 { echo "$as_me:$LINENO: checking for objdir" >&5
9991 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9992 if test "${libltdl_cv_objdir+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 libltdl_cv_objdir="$objdir"
9996 if test -n "$objdir"; then
9999 rm -f .libs 2>/dev/null
10000 mkdir .libs 2>/dev/null
10001 if test -d .libs; then
10002 libltdl_cv_objdir=.libs
10004 # MS-DOS does not allow filenames that begin with a dot.
10005 libltdl_cv_objdir=_libs
10007 rmdir .libs 2>/dev/null
10011 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10012 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10014 cat >>confdefs.h <<_ACEOF
10015 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10023 # Check for command to grab the raw symbol name followed by C symbol from nm.
10024 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10025 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10026 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 # These are sane defaults that work on at least a few old systems.
10031 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10033 # Character class describing NM global symbol codes.
10034 symcode='[BCDEGRST]'
10036 # Regexp to match symbols that can be accessed directly from C.
10037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10039 # Transform an extracted symbol line into a proper C declaration
10040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10042 # Transform an extracted symbol line into symbol name and symbol address
10043 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'"
10045 # Define system-specific variables.
10050 cygwin* | mingw* | pw32*)
10051 symcode='[ABCDGISTW]'
10053 hpux*) # Its linker distinguishes data from code symbols
10054 if test "$host_cpu" = ia64; then
10055 symcode='[ABCDEGRST]'
10057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10058 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'"
10061 if test "$host_cpu" = ia64; then
10062 symcode='[ABCDGIRSTW]'
10063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10064 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'"
10067 irix* | nonstopux*)
10068 symcode='[BCDEGRST]'
10071 symcode='[BCDEGQRST]'
10082 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10090 # Handle CRLF in mingw tool chain
10094 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10098 # If we're using GNU nm, then use its standard symbol codes.
10099 case `$NM -V 2>&1` in
10100 *GNU* | *'with BFD'*)
10101 symcode='[ABCDGIRSTW]' ;;
10104 # Try without a prefix undercore, then with it.
10105 for ac_symprfx in "" "_"; do
10107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10108 symxfrm="\\1 $ac_symprfx\\2 \\2"
10110 # Write the raw and C identifiers.
10111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10113 # Check to see that the pipe works correctly.
10117 cat > conftest.$ac_ext <<EOF
10122 void nm_test_func(){}
10126 int main(){nm_test_var='a';nm_test_func();return(0);}
10129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130 (eval $ac_compile) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; then
10134 # Now try to grab the symbols.
10136 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10137 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && test -s "$nlist"; then
10141 # Try sorting and uniquifying the output.
10142 if sort "$nlist" | uniq > "$nlist"T; then
10143 mv -f "$nlist"T "$nlist"
10148 # Make sure that we snagged all the symbols we need.
10149 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10150 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10151 cat <<EOF > conftest.$ac_ext
10157 # Now generate the symbol file.
10158 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10160 cat <<EOF >> conftest.$ac_ext
10161 #if defined (__STDC__) && __STDC__
10162 # define lt_ptr_t void *
10164 # define lt_ptr_t char *
10168 /* The mapping between symbol names and symbols. */
10173 lt_preloaded_symbols[] =
10176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10177 cat <<\EOF >> conftest.$ac_ext
10185 # Now try linking the two files.
10186 mv conftest.$ac_objext conftstm.$ac_objext
10187 lt_save_LIBS="$LIBS"
10188 lt_save_CFLAGS="$CFLAGS"
10189 LIBS="conftstm.$ac_objext"
10190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10198 LIBS="$lt_save_LIBS"
10199 CFLAGS="$lt_save_CFLAGS"
10201 echo "cannot find nm_test_func in $nlist" >&5
10204 echo "cannot find nm_test_var in $nlist" >&5
10207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10210 echo "$progname: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10213 rm -f conftest* conftst*
10215 # Do not use the global_symbol_pipe unless it works.
10216 if test "$pipe_works" = yes; then
10219 lt_cv_sys_global_symbol_pipe=
10225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10226 lt_cv_sys_global_symbol_to_cdecl=
10228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10229 { echo "$as_me:$LINENO: result: failed" >&5
10230 echo "${ECHO_T}failed" >&6; }
10232 { echo "$as_me:$LINENO: result: ok" >&5
10233 echo "${ECHO_T}ok" >&6; }
10237 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10238 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10239 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10243 libltdl_cv_preloaded_symbols=yes
10245 libltdl_cv_preloaded_symbols=no
10249 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10250 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10251 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_PRELOADED_SYMBOLS 1
10262 ac_cpp='$CPP $CPPFLAGS'
10263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10268 { echo "$as_me:$LINENO: checking for shl_load" >&5
10269 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10270 if test "${ac_cv_func_shl_load+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 cat >conftest.$ac_ext <<_ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281 #define shl_load innocuous_shl_load
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char shl_load (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10289 # include <limits.h>
10291 # include <assert.h>
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined __stub_shl_load || defined __stub___shl_load
10313 return shl_load ();
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_link") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10333 { (case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_try") 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest$ac_exeext'
10343 { (case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_try") 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_func_shl_load=yes
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ac_cv_func_shl_load=no
10360 rm -f core conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
10363 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10364 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10365 if test $ac_cv_func_shl_load = yes; then
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_SHL_LOAD 1
10372 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10373 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_check_lib_save_LIBS=$LIBS
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10396 return shl_load ();
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (ac_try="$ac_link"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408 (eval "$ac_link") 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest$ac_exeext'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_lib_dld_shl_load=yes
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_cv_lib_dld_shl_load=no
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10448 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10449 if test $ac_cv_lib_dld_shl_load = yes; then
10451 cat >>confdefs.h <<\_ACEOF
10452 #define HAVE_SHL_LOAD 1
10455 LIBADD_DL="$LIBADD_DL -ldld"
10457 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 ac_check_lib_save_LIBS=$LIBS
10464 cat >conftest.$ac_ext <<_ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10471 /* Override any GCC internal prototype to avoid an error.
10472 Use char because int might match the return type of a GCC
10473 builtin and then its argument prototype would still apply. */
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (ac_try="$ac_link"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_link") 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10501 { (case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506 (eval "$ac_try") 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest$ac_exeext'
10511 { (case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_try") 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 ac_cv_lib_dl_dlopen=yes
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10525 ac_cv_lib_dl_dlopen=no
10528 rm -f core conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10532 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10533 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10534 if test $ac_cv_lib_dl_dlopen = yes; then
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_LIBDL 1
10540 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10542 cat >conftest.$ac_ext <<_ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10549 # include <dlfcn.h>
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (ac_try="$ac_link"
10562 case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_link") 2>conftest.er1
10569 grep -v '^ *+' conftest.er1 >conftest.err
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10575 { (case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_try") 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_try") 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_LIBDL 1
10598 libltdl_cv_func_dlopen="yes"
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10604 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10605 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 ac_check_lib_save_LIBS=$LIBS
10609 LIBS="-lsvld $LIBS"
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10617 /* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (ac_try="$ac_link"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10647 { (case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_try") 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest$ac_exeext'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_try") 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_lib_svld_dlopen=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_cv_lib_svld_dlopen=no
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10678 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10680 if test $ac_cv_lib_svld_dlopen = yes; then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_LIBDL 1
10686 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10688 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10689 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10690 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 ac_check_lib_save_LIBS=$LIBS
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10712 return dld_link ();
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_link") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest$ac_exeext'
10742 { (case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_try") 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_lib_dld_dld_link=yes
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ac_cv_lib_dld_dld_link=no
10759 rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10764 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10765 if test $ac_cv_lib_dld_dld_link = yes; then
10767 cat >>confdefs.h <<\_ACEOF
10771 LIBADD_DL="$LIBADD_DL -ldld"
10773 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10774 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10775 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786 #define _dyld_func_lookup innocuous__dyld_func_lookup
10788 /* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char _dyld_func_lookup (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10794 # include <limits.h>
10796 # include <assert.h>
10799 #undef _dyld_func_lookup
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10807 char _dyld_func_lookup ();
10808 /* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10818 return _dyld_func_lookup ();
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_func__dyld_func_lookup=yes
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_cv_func__dyld_func_lookup=no
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10869 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10870 if test $ac_cv_func__dyld_func_lookup = yes; then
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_DYLD 1
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10899 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10901 lt_save_LIBS="$LIBS"
10902 LIBS="$LIBS $LIBADD_DL"
10904 for ac_func in dlerror
10906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 cat >conftest.$ac_ext <<_ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10920 #define $ac_func innocuous_$ac_func
10922 /* System header to define __stub macros and hopefully few prototypes,
10923 which can conflict with char $ac_func (); below.
10924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925 <limits.h> exists even on freestanding compilers. */
10928 # include <limits.h>
10930 # include <assert.h>
10935 /* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10942 /* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945 #if defined __stub_$ac_func || defined __stub___$ac_func
10952 return $ac_func ();
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (ac_try="$ac_link"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_link") 2>conftest.er1
10966 grep -v '^ *+' conftest.er1 >conftest.err
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972 { (case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_try") 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest$ac_exeext'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 eval "$as_ac_var=yes"
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 eval "$as_ac_var=no"
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11002 ac_res=`eval echo '${'$as_ac_var'}'`
11003 { echo "$as_me:$LINENO: result: $ac_res" >&5
11004 echo "${ECHO_T}$ac_res" >&6; }
11005 if test `eval echo '${'$as_ac_var'}'` = yes; then
11006 cat >>confdefs.h <<_ACEOF
11007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11013 LIBS="$lt_save_LIBS"
11016 ac_cpp='$CPP $CPPFLAGS'
11017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11023 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11024 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11025 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 ac_cv_sys_symbol_underscore=no
11029 cat > conftest.$ac_ext <<EOF
11030 void nm_test_func(){}
11031 int main(){nm_test_func;return 0;}
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; then
11038 # Now try to grab the symbols.
11039 ac_nlist=conftest.nm
11040 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11041 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && test -s "$ac_nlist"; then
11045 # See whether the symbols have a leading underscore.
11046 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11047 ac_cv_sys_symbol_underscore=yes
11049 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11052 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11056 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11059 echo "configure: failed program was:" >&5
11065 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11066 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11069 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11070 if test x"$libltdl_cv_func_dlopen" = xyes ||
11071 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11072 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11073 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11074 if test "${libltdl_cv_need_uscore+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 libltdl_cv_need_uscore=unknown
11079 LIBS="$LIBS $LIBADD_DL"
11080 if test "$cross_compiling" = yes; then :
11081 libltdl_cv_need_uscore=cross
11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084 lt_status=$lt_dlunknown
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11086 "configure"
11087 #include "confdefs.h"
11096 # define LT_DLGLOBAL RTLD_GLOBAL
11099 # define LT_DLGLOBAL DL_GLOBAL
11101 # define LT_DLGLOBAL 0
11105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106 find out it does not work in some platform. */
11107 #ifndef LT_DLLAZY_OR_NOW
11109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11112 # define LT_DLLAZY_OR_NOW DL_LAZY
11115 # define LT_DLLAZY_OR_NOW RTLD_NOW
11118 # define LT_DLLAZY_OR_NOW DL_NOW
11120 # define LT_DLLAZY_OR_NOW 0
11128 extern "C" void exit (int);
11131 void fnord() { int i=42;}
11134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135 int status = $lt_dlunknown;
11139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11141 /* dlclose (self); */
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11154 (./conftest; exit; ) >&5 2>/dev/null
11156 case x$lt_status in
11157 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11158 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11159 x$lt_dlunknown|x*) ;;
11162 # compilation failed
11171 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11172 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11176 if test x"$libltdl_cv_need_uscore" = xyes; then
11178 cat >>confdefs.h <<\_ACEOF
11179 #define NEED_USCORE 1
11185 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11186 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11187 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 # PORTME does your system automatically load deplibs for dlopen?
11191 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11192 # For now, we just catch OSes we know something about -- in the
11193 # future, we'll try test this programmatically.
11194 libltdl_cv_sys_dlopen_deplibs=unknown
11196 aix3*|aix4.1.*|aix4.2.*)
11197 # Unknown whether this is true for these versions of AIX, but
11198 # we want this `case' here to explicitly catch those versions.
11199 libltdl_cv_sys_dlopen_deplibs=unknown
11202 libltdl_cv_sys_dlopen_deplibs=yes
11205 # Assuming the user has installed a libdl from somewhere, this is true
11206 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11207 libltdl_cv_sys_dlopen_deplibs=yes
11209 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11210 # GNU and its variants, using gnu ld.so (Glibc)
11211 libltdl_cv_sys_dlopen_deplibs=yes
11214 libltdl_cv_sys_dlopen_deplibs=yes
11217 libltdl_cv_sys_dlopen_deplibs=yes
11219 irix[12345]*|irix6.[01]*)
11220 # Catch all versions of IRIX before 6.2, and indicate that we don't
11221 # know how it worked for any of those versions.
11222 libltdl_cv_sys_dlopen_deplibs=unknown
11225 # The case above catches anything before 6.2, and it's known that
11226 # at 6.2 and later dlopen does load deplibs.
11227 libltdl_cv_sys_dlopen_deplibs=yes
11230 libltdl_cv_sys_dlopen_deplibs=yes
11233 libltdl_cv_sys_dlopen_deplibs=yes
11236 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11237 # it did *not* use an RPATH in a shared library to find objects the
11238 # library depends on, so we explictly say `no'.
11239 libltdl_cv_sys_dlopen_deplibs=no
11241 osf5.0|osf5.0a|osf5.1)
11242 # dlopen *does* load deplibs and with the right loader patch applied
11243 # it even uses RPATH in a shared library to search for shared objects
11244 # that the library depends on, but there's no easy way to know if that
11245 # patch is installed. Since this is the case, all we can really
11246 # say is unknown -- it depends on the patch being installed. If
11247 # it is, this changes to `yes'. Without it, it would be `no'.
11248 libltdl_cv_sys_dlopen_deplibs=unknown
11251 # the two cases above should catch all versions of osf <= 5.1. Read
11252 # the comments above for what we know about them.
11253 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11254 # is used to find them so we can finally say `yes'.
11255 libltdl_cv_sys_dlopen_deplibs=yes
11258 libltdl_cv_sys_dlopen_deplibs=yes
11260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11261 libltdl_cv_sys_dlopen_deplibs=yes
11266 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11267 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11268 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define LTDL_DLOPEN_DEPLIBS 1
11277 for ac_header in argz.h
11279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11290 # Is the header compilable?
11291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 $ac_includes_default
11300 #include <$ac_header>
11302 rm -f conftest.$ac_objext
11303 if { (ac_try="$ac_compile"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_compile") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11317 { (case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_try") 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_try") 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_header_compiler=yes
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 ac_header_compiler=no
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11346 echo "${ECHO_T}$ac_header_compiler" >&6; }
11348 # Is the header present?
11349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11351 cat >conftest.$ac_ext <<_ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 #include <$ac_header>
11359 if { (ac_try="$ac_cpp conftest.$ac_ext"
11360 case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11367 grep -v '^ *+' conftest.er1 >conftest.err
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } >/dev/null; then
11372 if test -s conftest.err; then
11373 ac_cpp_err=$ac_c_preproc_warn_flag
11374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11381 if test -z "$ac_cpp_err"; then
11382 ac_header_preproc=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_header_preproc=no
11390 rm -f conftest.err conftest.$ac_ext
11391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11392 echo "${ECHO_T}$ac_header_preproc" >&6; }
11394 # So? What about this header?
11395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11401 ac_header_preproc=yes
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11417 ## ----------------------------------- ##
11418 ## Report this to llvmbugs@cs.uiuc.edu ##
11419 ## ----------------------------------- ##
11421 ) | sed "s/^/$as_me: WARNING: /" >&2
11424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 eval "$as_ac_Header=\$ac_header_preproc"
11431 ac_res=`eval echo '${'$as_ac_Header'}'`
11432 { echo "$as_me:$LINENO: result: $ac_res" >&5
11433 echo "${ECHO_T}$ac_res" >&6; }
11436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11437 cat >>confdefs.h <<_ACEOF
11438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446 { echo "$as_me:$LINENO: checking for error_t" >&5
11447 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11448 if test "${ac_cv_type_error_t+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 cat >conftest.$ac_ext <<_ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11461 typedef error_t ac__type_new_;
11465 if ((ac__type_new_ *) 0)
11467 if (sizeof (ac__type_new_))
11473 rm -f conftest.$ac_objext
11474 if { (ac_try="$ac_compile"
11475 case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_compile") 2>conftest.er1
11482 grep -v '^ *+' conftest.er1 >conftest.err
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest.$ac_objext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_type_error_t=yes
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ac_cv_type_error_t=no
11515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11518 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11519 if test $ac_cv_type_error_t = yes; then
11521 cat >>confdefs.h <<_ACEOF
11522 #define HAVE_ERROR_T 1
11528 cat >>confdefs.h <<\_ACEOF
11529 #define error_t int
11540 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11556 #define $ac_func innocuous_$ac_func
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below.
11560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561 <limits.h> exists even on freestanding compilers. */
11564 # include <limits.h>
11566 # include <assert.h>
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined __stub_$ac_func || defined __stub___$ac_func
11588 return $ac_func ();
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11602 grep -v '^ *+' conftest.er1 >conftest.err
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608 { (case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_try") 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 eval "$as_ac_var=yes"
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 eval "$as_ac_var=no"
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11638 ac_res=`eval echo '${'$as_ac_var'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_var'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11676 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 ac_res=`eval echo '${'$as_ac_Header'}'`
11687 { echo "$as_me:$LINENO: result: $ac_res" >&5
11688 echo "${ECHO_T}$ac_res" >&6; }
11690 # Is the header compilable?
11691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11693 cat >conftest.$ac_ext <<_ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 $ac_includes_default
11700 #include <$ac_header>
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11717 { (case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; } &&
11726 { ac_try='test -s conftest.$ac_objext'
11727 { (case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_try") 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 ac_header_compiler=yes
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 ac_header_compiler=no
11744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11746 echo "${ECHO_T}$ac_header_compiler" >&6; }
11748 # Is the header present?
11749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 #include <$ac_header>
11759 if { (ac_try="$ac_cpp conftest.$ac_ext"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } >/dev/null; then
11772 if test -s conftest.err; then
11773 ac_cpp_err=$ac_c_preproc_warn_flag
11774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11781 if test -z "$ac_cpp_err"; then
11782 ac_header_preproc=yes
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_header_preproc=no
11790 rm -f conftest.err conftest.$ac_ext
11791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11792 echo "${ECHO_T}$ac_header_preproc" >&6; }
11794 # So? What about this header?
11795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11801 ac_header_preproc=yes
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11817 ## ----------------------------------- ##
11818 ## Report this to llvmbugs@cs.uiuc.edu ##
11819 ## ----------------------------------- ##
11821 ) | sed "s/^/$as_me: WARNING: /" >&2
11824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 eval "$as_ac_Header=\$ac_header_preproc"
11831 ac_res=`eval echo '${'$as_ac_Header'}'`
11832 { echo "$as_me:$LINENO: result: $ac_res" >&5
11833 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11837 cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11849 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 ac_res=`eval echo '${'$as_ac_Header'}'`
11859 { echo "$as_me:$LINENO: result: $ac_res" >&5
11860 echo "${ECHO_T}$ac_res" >&6; }
11862 # Is the header compilable?
11863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11872 #include <$ac_header>
11874 rm -f conftest.$ac_objext
11875 if { (ac_try="$ac_compile"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_compile") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_header_compiler=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_header_compiler=no
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11918 echo "${ECHO_T}$ac_header_compiler" >&6; }
11920 # Is the header present?
11921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 #include <$ac_header>
11931 if { (ac_try="$ac_cpp conftest.$ac_ext"
11932 case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11939 grep -v '^ *+' conftest.er1 >conftest.err
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } >/dev/null; then
11944 if test -s conftest.err; then
11945 ac_cpp_err=$ac_c_preproc_warn_flag
11946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11953 if test -z "$ac_cpp_err"; then
11954 ac_header_preproc=yes
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 ac_header_preproc=no
11962 rm -f conftest.err conftest.$ac_ext
11963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11964 echo "${ECHO_T}$ac_header_preproc" >&6; }
11966 # So? What about this header?
11967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11973 ac_header_preproc=yes
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11989 ## ----------------------------------- ##
11990 ## Report this to llvmbugs@cs.uiuc.edu ##
11991 ## ----------------------------------- ##
11993 ) | sed "s/^/$as_me: WARNING: /" >&2
11996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 eval "$as_ac_Header=\$ac_header_preproc"
12003 ac_res=`eval echo '${'$as_ac_Header'}'`
12004 { echo "$as_me:$LINENO: result: $ac_res" >&5
12005 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12019 for ac_header in string.h strings.h
12021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 ac_res=`eval echo '${'$as_ac_Header'}'`
12029 { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12032 # Is the header compilable?
12033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 $ac_includes_default
12042 #include <$ac_header>
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_compile") 2>conftest.er1
12053 grep -v '^ *+' conftest.er1 >conftest.err
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12059 { (case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_try") 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_try") 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 ac_header_compiler=yes
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ac_header_compiler=no
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12088 echo "${ECHO_T}$ac_header_compiler" >&6; }
12090 # Is the header present?
12091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <$ac_header>
12101 if { (ac_try="$ac_cpp conftest.$ac_ext"
12102 case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12109 grep -v '^ *+' conftest.er1 >conftest.err
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } >/dev/null; then
12114 if test -s conftest.err; then
12115 ac_cpp_err=$ac_c_preproc_warn_flag
12116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12123 if test -z "$ac_cpp_err"; then
12124 ac_header_preproc=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_header_preproc=no
12132 rm -f conftest.err conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12134 echo "${ECHO_T}$ac_header_preproc" >&6; }
12136 # So? What about this header?
12137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12143 ac_header_preproc=yes
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12159 ## ----------------------------------- ##
12160 ## Report this to llvmbugs@cs.uiuc.edu ##
12161 ## ----------------------------------- ##
12163 ) | sed "s/^/$as_me: WARNING: /" >&2
12166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 eval "$as_ac_Header=\$ac_header_preproc"
12173 ac_res=`eval echo '${'$as_ac_Header'}'`
12174 { echo "$as_me:$LINENO: result: $ac_res" >&5
12175 echo "${ECHO_T}$ac_res" >&6; }
12178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12190 for ac_func in strchr index
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 strrchr rindex
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 memcpy bcopy
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
12523 for ac_func in memmove strcmp
12525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 cat >conftest.$ac_ext <<_ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12539 #define $ac_func innocuous_$ac_func
12541 /* System header to define __stub macros and hopefully few prototypes,
12542 which can conflict with char $ac_func (); below.
12543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12544 <limits.h> exists even on freestanding compilers. */
12547 # include <limits.h>
12549 # include <assert.h>
12554 /* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12561 /* The GNU C library defines this for functions which it implements
12562 to always fail with ENOSYS. Some functions are actually named
12563 something starting with __ and the normal name is an alias. */
12564 #if defined __stub_$ac_func || defined __stub___$ac_func
12571 return $ac_func ();
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (ac_try="$ac_link"
12578 case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_link") 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 eval "$as_ac_var=yes"
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615 eval "$as_ac_var=no"
12618 rm -f core conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext conftest.$ac_ext
12621 ac_res=`eval echo '${'$as_ac_var'}'`
12622 { echo "$as_me:$LINENO: result: $ac_res" >&5
12623 echo "${ECHO_T}$ac_res" >&6; }
12624 if test `eval echo '${'$as_ac_var'}'` = yes; then
12625 cat >>confdefs.h <<_ACEOF
12626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12635 for ac_func in closedir opendir readdir
12637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12651 #define $ac_func innocuous_$ac_func
12653 /* System header to define __stub macros and hopefully few prototypes,
12654 which can conflict with char $ac_func (); below.
12655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656 <limits.h> exists even on freestanding compilers. */
12659 # include <limits.h>
12661 # include <assert.h>
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined __stub_$ac_func || defined __stub___$ac_func
12683 return $ac_func ();
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (ac_try="$ac_link"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_link") 2>conftest.er1
12697 grep -v '^ *+' conftest.er1 >conftest.err
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 eval "$as_ac_var=yes"
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 eval "$as_ac_var=no"
12730 rm -f core conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12733 ac_res=`eval echo '${'$as_ac_var'}'`
12734 { echo "$as_me:$LINENO: result: $ac_res" >&5
12735 echo "${ECHO_T}$ac_res" >&6; }
12736 if test `eval echo '${'$as_ac_var'}'` = yes; then
12737 cat >>confdefs.h <<_ACEOF
12738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12745 # Check whether --enable-shared was given.
12746 if test "${enable_shared+set}" = set; then
12747 enableval=$enable_shared; p=${PACKAGE-default}
12749 yes) enable_shared=yes ;;
12750 no) enable_shared=no ;;
12753 # Look at the argument we got. We use all the common list separators.
12754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12755 for pkg in $enableval; do
12757 if test "X$pkg" = "X$p"; then
12769 # Check whether --enable-static was given.
12770 if test "${enable_static+set}" = set; then
12771 enableval=$enable_static; p=${PACKAGE-default}
12773 yes) enable_static=yes ;;
12774 no) enable_static=no ;;
12777 # Look at the argument we got. We use all the common list separators.
12778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12779 for pkg in $enableval; do
12781 if test "X$pkg" = "X$p"; then
12793 # Check whether --enable-fast-install was given.
12794 if test "${enable_fast_install+set}" = set; then
12795 enableval=$enable_fast_install; p=${PACKAGE-default}
12797 yes) enable_fast_install=yes ;;
12798 no) enable_fast_install=no ;;
12800 enable_fast_install=no
12801 # Look at the argument we got. We use all the common list separators.
12802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12803 for pkg in $enableval; do
12805 if test "X$pkg" = "X$p"; then
12806 enable_fast_install=yes
12813 enable_fast_install=yes
12817 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12818 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12819 if test "${lt_cv_path_SED+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 # Loop through the user's path and test for sed and gsed.
12823 # Then use that list of sed's as ones to test for truncation.
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12828 test -z "$as_dir" && as_dir=.
12829 for lt_ac_prog in sed gsed; do
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12832 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12839 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12840 # along with /bin/sed that truncates output.
12841 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12842 test ! -f $lt_ac_sed && continue
12843 cat /dev/null > conftest.in
12845 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12846 # Check for GNU sed and select it if it is found.
12847 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12848 lt_cv_path_SED=$lt_ac_sed
12852 cat conftest.in conftest.in >conftest.tmp
12853 mv conftest.tmp conftest.in
12854 cp conftest.in conftest.nl
12856 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12857 cmp -s conftest.out conftest.nl || break
12858 # 10000 chars as input seems more than enough
12859 test $lt_ac_count -gt 10 && break
12860 lt_ac_count=`expr $lt_ac_count + 1`
12861 if test $lt_ac_count -gt $lt_ac_max; then
12862 lt_ac_max=$lt_ac_count
12863 lt_cv_path_SED=$lt_ac_sed
12870 SED=$lt_cv_path_SED
12871 { echo "$as_me:$LINENO: result: $SED" >&5
12872 echo "${ECHO_T}$SED" >&6; }
12875 # Check whether --with-gnu-ld was given.
12876 if test "${with_gnu_ld+set}" = set; then
12877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12883 if test "$GCC" = yes; then
12884 # Check if gcc -print-prog-name=ld gives a path.
12885 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12889 # gcc leaves a trailing carriage return which upsets mingw
12890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12895 # Accept absolute paths.
12897 re_direlt='/[^/][^/]*/\.\./'
12898 # Canonicalize the pathname of ld
12899 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12901 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12903 test -z "$LD" && LD="$ac_prog"
12906 # If it fails, then pretend we aren't using GCC.
12910 # If it is relative, then search for the first ld in PATH.
12911 with_gnu_ld=unknown
12914 elif test "$with_gnu_ld" = yes; then
12915 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12918 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12921 if test "${lt_cv_path_LD+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 if test -z "$LD"; then
12925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12926 for ac_dir in $PATH; do
12928 test -z "$ac_dir" && ac_dir=.
12929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12930 lt_cv_path_LD="$ac_dir/$ac_prog"
12931 # Check to see if the program is GNU ld. I'd rather use --version,
12932 # but apparently some variants of GNU ld only accept -v.
12933 # Break only if it was the GNU/non-GNU ld that we prefer.
12934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12935 *GNU* | *'with BFD'*)
12936 test "$with_gnu_ld" != no && break
12939 test "$with_gnu_ld" != yes && break
12946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12950 LD="$lt_cv_path_LD"
12951 if test -n "$LD"; then
12952 { echo "$as_me:$LINENO: result: $LD" >&5
12953 echo "${ECHO_T}$LD" >&6; }
12955 { echo "$as_me:$LINENO: result: no" >&5
12956 echo "${ECHO_T}no" >&6; }
12958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12960 { (exit 1); exit 1; }; }
12961 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12967 case `$LD -v 2>&1 </dev/null` in
12968 *GNU* | *'with BFD'*)
12969 lt_cv_prog_gnu_ld=yes
12972 lt_cv_prog_gnu_ld=no
12976 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12978 with_gnu_ld=$lt_cv_prog_gnu_ld
12981 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12982 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12983 if test "${lt_cv_ld_reload_flag+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 lt_cv_ld_reload_flag='-r'
12988 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12989 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12990 reload_flag=$lt_cv_ld_reload_flag
12991 case $reload_flag in
12993 *) reload_flag=" $reload_flag" ;;
12995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12998 if test "$GCC" = yes; then
12999 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
13001 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13006 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13007 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
13008 if test "${lt_cv_deplibs_check_method+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 lt_cv_file_magic_cmd='$MAGIC_CMD'
13012 lt_cv_file_magic_test_file=
13013 lt_cv_deplibs_check_method='unknown'
13014 # Need to set the preceding variable on all platforms that support
13015 # interlibrary dependencies.
13016 # 'none' -- dependencies not supported.
13017 # `unknown' -- same as none, but documents that we really don't know.
13018 # 'pass_all' -- all dependencies passed with no checks.
13019 # 'test_compile' -- check by making test program.
13020 # 'file_magic [[regex]]' -- check by looking for files in library path
13021 # which responds to the $file_magic_cmd with a given extended regex.
13022 # If you have `file' or equivalent on your system and you're not sure
13023 # whether `pass_all' will *always* work, you probably want this one.
13027 lt_cv_deplibs_check_method=pass_all
13031 lt_cv_deplibs_check_method=pass_all
13035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13036 lt_cv_file_magic_cmd='/usr/bin/file -L'
13037 lt_cv_file_magic_test_file=/shlib/libc.so
13041 # func_win32_libid is a shell function defined in ltmain.sh
13042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13043 lt_cv_file_magic_cmd='func_win32_libid'
13047 # Base MSYS/MinGW do not provide the 'file' command needed by
13048 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13049 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13050 lt_cv_file_magic_cmd='$OBJDUMP -f'
13053 darwin* | rhapsody*)
13054 lt_cv_deplibs_check_method=pass_all
13057 freebsd* | kfreebsd*-gnu | dragonfly*)
13058 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13061 # Not sure whether the presence of OpenBSD here was a mistake.
13062 # Let's accept both of them until this is cleared up.
13063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13064 lt_cv_file_magic_cmd=/usr/bin/file
13065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13069 lt_cv_deplibs_check_method=pass_all
13074 lt_cv_deplibs_check_method=pass_all
13077 hpux10.20* | hpux11*)
13078 lt_cv_file_magic_cmd=/usr/bin/file
13081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13085 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]'
13086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13096 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13100 irix5* | irix6* | nonstopux*)
13102 *-32|*"-32 ") libmagic=32-bit;;
13103 *-n32|*"-n32 ") libmagic=N32;;
13104 *-64|*"-64 ") libmagic=64-bit;;
13105 *) libmagic=never-match;;
13107 lt_cv_deplibs_check_method=pass_all
13110 # This must be Linux ELF.
13112 lt_cv_deplibs_check_method=pass_all
13116 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13125 lt_cv_file_magic_cmd=/usr/bin/file
13126 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13130 lt_cv_deplibs_check_method=unknown
13134 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13141 osf3* | osf4* | osf5*)
13142 lt_cv_deplibs_check_method=pass_all
13146 lt_cv_deplibs_check_method=pass_all
13150 case $host_vendor in
13152 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]'
13153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13156 lt_cv_deplibs_check_method=pass_all
13159 lt_cv_file_magic_cmd='/bin/file'
13160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13163 lt_cv_file_magic_cmd='/bin/file'
13164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13165 lt_cv_file_magic_test_file=/lib/libc.so
13168 lt_cv_deplibs_check_method=pass_all
13171 lt_cv_deplibs_check_method=pass_all
13176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13177 lt_cv_deplibs_check_method=pass_all
13182 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13183 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13184 file_magic_cmd=$lt_cv_file_magic_cmd
13185 deplibs_check_method=$lt_cv_deplibs_check_method
13186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13190 # If no C compiler was specified, use CC.
13193 # If no C compiler flags were specified, use CFLAGS.
13194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13196 # Allow CC to be a program name with arguments.
13199 # Check whether --enable-libtool-lock was given.
13200 if test "${enable_libtool_lock+set}" = set; then
13201 enableval=$enable_libtool_lock;
13204 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13206 # Some flags need to be propagated to the compiler or linker for good
13210 # Find out which ABI we are using.
13211 echo 'int i;' > conftest.$ac_ext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; then
13217 case `/usr/bin/file conftest.$ac_objext` in
13219 HPUX_IA64_MODE="32"
13222 HPUX_IA64_MODE="64"
13229 # Find out which ABI we are using.
13230 echo '#line 13230 "configure"' > conftest.$ac_ext
13231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13232 (eval $ac_compile) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; then
13236 if test "$lt_cv_prog_gnu_ld" = yes; then
13237 case `/usr/bin/file conftest.$ac_objext` in
13239 LD="${LD-ld} -melf32bsmip"
13242 LD="${LD-ld} -melf32bmipn32"
13245 LD="${LD-ld} -melf64bmip"
13249 case `/usr/bin/file conftest.$ac_objext` in
13265 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13266 # Find out which ABI we are using.
13267 echo 'int i;' > conftest.$ac_ext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; then
13273 case `/usr/bin/file conftest.o` in
13277 LD="${LD-ld} -m elf_i386"
13279 ppc64-*linux*|powerpc64-*linux*)
13280 LD="${LD-ld} -m elf32ppclinux"
13283 LD="${LD-ld} -m elf_s390"
13286 LD="${LD-ld} -m elf32_sparc"
13293 LD="${LD-ld} -m elf_x86_64"
13295 ppc*-*linux*|powerpc*-*linux*)
13296 LD="${LD-ld} -m elf64ppc"
13299 LD="${LD-ld} -m elf64_s390"
13302 LD="${LD-ld} -m elf64_sparc"
13312 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13313 SAVE_CFLAGS="$CFLAGS"
13314 CFLAGS="$CFLAGS -belf"
13315 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13316 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13317 if test "${lt_cv_cc_needs_belf+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 ac_cpp='$CPP $CPPFLAGS'
13322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (ac_try="$ac_link"
13343 case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_link") 2>conftest.er1
13350 grep -v '^ *+' conftest.er1 >conftest.err
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_try") 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 lt_cv_cc_needs_belf=yes
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 lt_cv_cc_needs_belf=no
13383 rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13386 ac_cpp='$CPP $CPPFLAGS'
13387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13392 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13393 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13394 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13395 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13396 CFLAGS="$SAVE_CFLAGS"
13400 # Find out which ABI we are using.
13401 echo 'int i;' > conftest.$ac_ext
13402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13403 (eval $ac_compile) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; then
13407 case `/usr/bin/file conftest.o` in
13409 case $lt_cv_prog_gnu_ld in
13410 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13411 *) LD="${LD-ld} -64" ;;
13422 need_locks="$enable_libtool_lock"
13427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13428 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13429 (test "X$CXX" != "Xg++"))) ; then
13431 ac_cpp='$CXXCPP $CPPFLAGS'
13432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13435 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13437 if test -z "$CXXCPP"; then
13438 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 # Double quotes because CXXCPP needs to be expanded
13442 for CXXCPP in "$CXX -E" "/lib/cpp"
13444 ac_preproc_ok=false
13445 for ac_cxx_preproc_warn_flag in '' yes
13447 # Use a header file that comes with gcc, so configuring glibc
13448 # with a fresh cross-compiler works.
13449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13450 # <limits.h> exists even on freestanding compilers.
13451 # On the NeXT, cc -E runs the code through the compiler's parser,
13452 # not just through cpp. "Syntax error" is here to catch this case.
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13460 # include <limits.h>
13462 # include <assert.h>
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } >/dev/null; then
13479 if test -s conftest.err; then
13480 ac_cpp_err=$ac_cxx_preproc_warn_flag
13481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13488 if test -z "$ac_cpp_err"; then
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 # Broken: fails on valid input.
13498 rm -f conftest.err conftest.$ac_ext
13500 # OK, works on sane cases. Now check whether nonexistent headers
13501 # can be detected and how.
13502 cat >conftest.$ac_ext <<_ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 #include <ac_nonexistent.h>
13510 if { (ac_try="$ac_cpp conftest.$ac_ext"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } >/dev/null; then
13523 if test -s conftest.err; then
13524 ac_cpp_err=$ac_cxx_preproc_warn_flag
13525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13532 if test -z "$ac_cpp_err"; then
13533 # Broken: success on invalid input.
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 # Passes both tests.
13544 rm -f conftest.err conftest.$ac_ext
13547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13548 rm -f conftest.err conftest.$ac_ext
13549 if $ac_preproc_ok; then
13554 ac_cv_prog_CXXCPP=$CXXCPP
13557 CXXCPP=$ac_cv_prog_CXXCPP
13559 ac_cv_prog_CXXCPP=$CXXCPP
13561 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13562 echo "${ECHO_T}$CXXCPP" >&6; }
13563 ac_preproc_ok=false
13564 for ac_cxx_preproc_warn_flag in '' yes
13566 # Use a header file that comes with gcc, so configuring glibc
13567 # with a fresh cross-compiler works.
13568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13569 # <limits.h> exists even on freestanding compilers.
13570 # On the NeXT, cc -E runs the code through the compiler's parser,
13571 # not just through cpp. "Syntax error" is here to catch this case.
13572 cat >conftest.$ac_ext <<_ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13579 # include <limits.h>
13581 # include <assert.h>
13585 if { (ac_try="$ac_cpp conftest.$ac_ext"
13586 case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13593 grep -v '^ *+' conftest.er1 >conftest.err
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } >/dev/null; then
13598 if test -s conftest.err; then
13599 ac_cpp_err=$ac_cxx_preproc_warn_flag
13600 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13607 if test -z "$ac_cpp_err"; then
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13613 # Broken: fails on valid input.
13617 rm -f conftest.err conftest.$ac_ext
13619 # OK, works on sane cases. Now check whether nonexistent headers
13620 # can be detected and how.
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 #include <ac_nonexistent.h>
13629 if { (ac_try="$ac_cpp conftest.$ac_ext"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13637 grep -v '^ *+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } >/dev/null; then
13642 if test -s conftest.err; then
13643 ac_cpp_err=$ac_cxx_preproc_warn_flag
13644 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13651 if test -z "$ac_cpp_err"; then
13652 # Broken: success on invalid input.
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 # Passes both tests.
13663 rm -f conftest.err conftest.$ac_ext
13666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13667 rm -f conftest.err conftest.$ac_ext
13668 if $ac_preproc_ok; then
13671 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13672 See \`config.log' for more details." >&5
13673 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13674 See \`config.log' for more details." >&2;}
13675 { (exit 1); exit 1; }; }
13679 ac_cpp='$CXXCPP $CPPFLAGS'
13680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13688 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13689 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13691 if test -n "$ac_tool_prefix"; then
13692 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
13694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13698 if test "${ac_cv_prog_F77+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 if test -n "$F77"; then
13702 ac_cv_prog_F77="$F77" # Let the user override the test.
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13711 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13721 F77=$ac_cv_prog_F77
13722 if test -n "$F77"; then
13723 { echo "$as_me:$LINENO: result: $F77" >&5
13724 echo "${ECHO_T}$F77" >&6; }
13726 { echo "$as_me:$LINENO: result: no" >&5
13727 echo "${ECHO_T}no" >&6; }
13731 test -n "$F77" && break
13734 if test -z "$F77"; then
13736 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
13738 # Extract the first word of "$ac_prog", so it can be a program name with args.
13739 set dummy $ac_prog; ac_word=$2
13740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13742 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 if test -n "$ac_ct_F77"; then
13746 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13752 test -z "$as_dir" && as_dir=.
13753 for ac_exec_ext in '' $ac_executable_extensions; do
13754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13755 ac_cv_prog_ac_ct_F77="$ac_prog"
13756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13766 if test -n "$ac_ct_F77"; then
13767 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13768 echo "${ECHO_T}$ac_ct_F77" >&6; }
13770 { echo "$as_me:$LINENO: result: no" >&5
13771 echo "${ECHO_T}no" >&6; }
13775 test -n "$ac_ct_F77" && break
13778 if test "x$ac_ct_F77" = x; then
13781 case $cross_compiling:$ac_tool_warned in
13783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13784 whose name does not start with the host triplet. If you think this
13785 configuration is useful to you, please write to autoconf@gnu.org." >&5
13786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13787 whose name does not start with the host triplet. If you think this
13788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13789 ac_tool_warned=yes ;;
13796 # Provide some information about the compiler.
13797 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13798 ac_compiler=`set X $ac_compile; echo $2`
13799 { (ac_try="$ac_compiler --version >&5"
13800 case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_compiler --version >&5") 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }
13809 { (ac_try="$ac_compiler -v >&5"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_compiler -v >&5") 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }
13819 { (ac_try="$ac_compiler -V >&5"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compiler -V >&5") 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }
13831 # If we don't use `.F' as extension, the preprocessor is not run on the
13832 # input file. (Note that this only needs to work for GNU compilers.)
13833 ac_save_ext=$ac_ext
13835 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13836 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13837 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13848 rm -f conftest.$ac_objext
13849 if { (ac_try="$ac_compile"
13850 case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_compile") 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_compiler_gnu=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13894 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13895 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13896 ac_ext=$ac_save_ext
13897 ac_test_FFLAGS=${FFLAGS+set}
13898 ac_save_FFLAGS=$FFLAGS
13900 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13901 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13902 if test "${ac_cv_prog_f77_g+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 cat >conftest.$ac_ext <<_ACEOF
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_compile") 2>conftest.er1
13920 grep -v '^ *+' conftest.er1 >conftest.err
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13926 { (case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_prog_f77_g=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_prog_f77_g=no
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13957 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13958 if test "$ac_test_FFLAGS" = set; then
13959 FFLAGS=$ac_save_FFLAGS
13960 elif test $ac_cv_prog_f77_g = yes; then
13961 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13967 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13974 G77=`test $ac_compiler_gnu = yes && echo yes`
13976 ac_cpp='$CPP $CPPFLAGS'
13977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13983 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13985 # find the maximum length of command line arguments
13986 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13987 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13988 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 # On DJGPP, this test can blow up pretty badly due to problems in libc
13997 # (any single argument exceeding 2000 bytes causes a buffer overrun
13998 # during glob expansion). Even if it were fixed, the result of this
13999 # check would be larger than it should be.
14000 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14004 # Under GNU Hurd, this test is not required because there is
14005 # no limit to the length of command line arguments.
14006 # Libtool will interpret -1 as no limit whatsoever
14007 lt_cv_sys_max_cmd_len=-1;
14011 # On Win9x/ME, this test blows up -- it succeeds, but takes
14012 # about 5 minutes as the teststring grows exponentially.
14013 # Worse, since 9x/ME are not pre-emptively multitasking,
14014 # you end up with a "frozen" computer, even though with patience
14015 # the test eventually succeeds (with a max line length of 256k).
14016 # Instead, let's just punt: use the minimum linelength reported by
14017 # all of the supported platforms: 8192 (on NT/2K/XP).
14018 lt_cv_sys_max_cmd_len=8192;
14022 # On AmigaOS with pdksh, this test takes hours, literally.
14023 # So we just punt and use a minimum line length of 8192.
14024 lt_cv_sys_max_cmd_len=8192;
14027 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14028 # This has been around since 386BSD, at least. Likely further.
14029 if test -x /sbin/sysctl; then
14030 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14031 elif test -x /usr/sbin/sysctl; then
14032 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14034 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14036 # And add a safety zone
14037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14042 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14043 lt_cv_sys_max_cmd_len=196608
14047 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14048 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14049 # nice to cause kernel panics so lets avoid the loop below.
14050 # First set a reasonable default.
14051 lt_cv_sys_max_cmd_len=16384
14053 if test -x /sbin/sysconfig; then
14054 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14055 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14060 lt_cv_sys_max_cmd_len=102400
14062 sysv5* | sco5v6* | sysv4.2uw2*)
14063 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14064 if test -n "$kargmax"; then
14065 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14067 lt_cv_sys_max_cmd_len=32768
14071 # If test is not a shell built-in, we'll probably end up computing a
14072 # maximum length that is only half of the actual maximum length, but
14074 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14075 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14076 = "XX$teststring") >/dev/null 2>&1 &&
14077 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14078 lt_cv_sys_max_cmd_len=$new_result &&
14079 test $i != 17 # 1/2 MB should be enough
14082 teststring=$teststring$teststring
14085 # Add a significant safety factor because C++ compilers can tack on massive
14086 # amounts of additional arguments before passing them to the linker.
14087 # It appears as though 1/2 is a usable value.
14088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14094 if test -n $lt_cv_sys_max_cmd_len ; then
14095 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14096 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14098 { echo "$as_me:$LINENO: result: none" >&5
14099 echo "${ECHO_T}none" >&6; }
14105 # Check for command to grab the raw symbol name followed by C symbol from nm.
14106 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14107 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14108 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 # These are sane defaults that work on at least a few old systems.
14113 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14115 # Character class describing NM global symbol codes.
14116 symcode='[BCDEGRST]'
14118 # Regexp to match symbols that can be accessed directly from C.
14119 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14121 # Transform an extracted symbol line into a proper C declaration
14122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14124 # Transform an extracted symbol line into symbol name and symbol address
14125 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'"
14127 # Define system-specific variables.
14132 cygwin* | mingw* | pw32*)
14133 symcode='[ABCDGISTW]'
14135 hpux*) # Its linker distinguishes data from code symbols
14136 if test "$host_cpu" = ia64; then
14137 symcode='[ABCDEGRST]'
14139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14140 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'"
14143 if test "$host_cpu" = ia64; then
14144 symcode='[ABCDGIRSTW]'
14145 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14146 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'"
14149 irix* | nonstopux*)
14150 symcode='[BCDEGRST]'
14153 symcode='[BCDEGQRST]'
14164 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14172 # Handle CRLF in mingw tool chain
14176 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14180 # If we're using GNU nm, then use its standard symbol codes.
14181 case `$NM -V 2>&1` in
14182 *GNU* | *'with BFD'*)
14183 symcode='[ABCDGIRSTW]' ;;
14186 # Try without a prefix undercore, then with it.
14187 for ac_symprfx in "" "_"; do
14189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14190 symxfrm="\\1 $ac_symprfx\\2 \\2"
14192 # Write the raw and C identifiers.
14193 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14195 # Check to see that the pipe works correctly.
14199 cat > conftest.$ac_ext <<EOF
14204 void nm_test_func(){}
14208 int main(){nm_test_var='a';nm_test_func();return(0);}
14211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212 (eval $ac_compile) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; then
14216 # Now try to grab the symbols.
14218 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14219 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && test -s "$nlist"; then
14223 # Try sorting and uniquifying the output.
14224 if sort "$nlist" | uniq > "$nlist"T; then
14225 mv -f "$nlist"T "$nlist"
14230 # Make sure that we snagged all the symbols we need.
14231 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14232 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14233 cat <<EOF > conftest.$ac_ext
14239 # Now generate the symbol file.
14240 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14242 cat <<EOF >> conftest.$ac_ext
14243 #if defined (__STDC__) && __STDC__
14244 # define lt_ptr_t void *
14246 # define lt_ptr_t char *
14250 /* The mapping between symbol names and symbols. */
14255 lt_preloaded_symbols[] =
14258 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14259 cat <<\EOF >> conftest.$ac_ext
14267 # Now try linking the two files.
14268 mv conftest.$ac_objext conftstm.$ac_objext
14269 lt_save_LIBS="$LIBS"
14270 lt_save_CFLAGS="$CFLAGS"
14271 LIBS="conftstm.$ac_objext"
14272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14280 LIBS="$lt_save_LIBS"
14281 CFLAGS="$lt_save_CFLAGS"
14283 echo "cannot find nm_test_func in $nlist" >&5
14286 echo "cannot find nm_test_var in $nlist" >&5
14289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14292 echo "$progname: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14295 rm -f conftest* conftst*
14297 # Do not use the global_symbol_pipe unless it works.
14298 if test "$pipe_works" = yes; then
14301 lt_cv_sys_global_symbol_pipe=
14307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14308 lt_cv_sys_global_symbol_to_cdecl=
14310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14311 { echo "$as_me:$LINENO: result: failed" >&5
14312 echo "${ECHO_T}failed" >&6; }
14314 { echo "$as_me:$LINENO: result: ok" >&5
14315 echo "${ECHO_T}ok" >&6; }
14318 { echo "$as_me:$LINENO: checking for objdir" >&5
14319 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14320 if test "${lt_cv_objdir+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 rm -f .libs 2>/dev/null
14324 mkdir .libs 2>/dev/null
14325 if test -d .libs; then
14328 # MS-DOS does not allow filenames that begin with a dot.
14331 rmdir .libs 2>/dev/null
14333 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14334 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14335 objdir=$lt_cv_objdir
14343 # AIX sometimes has problems with the GCC collect2 program. For some
14344 # reason, if we set the COLLECT_NAMES environment variable, the problems
14345 # vanish in a puff of smoke.
14346 if test "X${COLLECT_NAMES+set}" != Xset; then
14348 export COLLECT_NAMES
14353 # Sed substitution that helps us do robust quoting. It backslashifies
14354 # metacharacters that are still active within double-quoted strings.
14355 Xsed='sed -e 1s/^X//'
14356 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14358 # Same as above, but do not quote variable references.
14359 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14361 # Sed substitution to delay expansion of an escaped shell variable in a
14362 # double_quote_subst'ed string.
14363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14365 # Sed substitution to avoid accidental globbing in evaled expressions
14366 no_glob_subst='s/\*/\\\*/g'
14371 # Global variables:
14372 default_ofile=mklib
14373 can_build_shared=yes
14375 # All known linkers require a `.a' archive for static linking (except MSVC,
14376 # which needs '.lib').
14378 ltmain="$ac_aux_dir/ltmain.sh"
14379 ofile="$default_ofile"
14380 with_gnu_ld="$lt_cv_prog_gnu_ld"
14382 if test -n "$ac_tool_prefix"; then
14383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14384 set dummy ${ac_tool_prefix}ar; ac_word=$2
14385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14387 if test "${ac_cv_prog_AR+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 if test -n "$AR"; then
14391 ac_cv_prog_AR="$AR" # Let the user override the test.
14393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14394 for as_dir in $PATH
14397 test -z "$as_dir" && as_dir=.
14398 for ac_exec_ext in '' $ac_executable_extensions; do
14399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14400 ac_cv_prog_AR="${ac_tool_prefix}ar"
14401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 if test -n "$AR"; then
14412 { echo "$as_me:$LINENO: result: $AR" >&5
14413 echo "${ECHO_T}$AR" >&6; }
14415 { echo "$as_me:$LINENO: result: no" >&5
14416 echo "${ECHO_T}no" >&6; }
14421 if test -z "$ac_cv_prog_AR"; then
14423 # Extract the first word of "ar", so it can be a program name with args.
14424 set dummy ar; ac_word=$2
14425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14427 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 if test -n "$ac_ct_AR"; then
14431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14440 ac_cv_prog_ac_ct_AR="ar"
14441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14451 if test -n "$ac_ct_AR"; then
14452 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14453 echo "${ECHO_T}$ac_ct_AR" >&6; }
14455 { echo "$as_me:$LINENO: result: no" >&5
14456 echo "${ECHO_T}no" >&6; }
14459 if test "x$ac_ct_AR" = x; then
14462 case $cross_compiling:$ac_tool_warned in
14464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14465 whose name does not start with the host triplet. If you think this
14466 configuration is useful to you, please write to autoconf@gnu.org." >&5
14467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14468 whose name does not start with the host triplet. If you think this
14469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14470 ac_tool_warned=yes ;;
14475 AR="$ac_cv_prog_AR"
14478 if test -n "$ac_tool_prefix"; then
14479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14483 if test "${ac_cv_prog_RANLIB+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 if test -n "$RANLIB"; then
14487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490 for as_dir in $PATH
14493 test -z "$as_dir" && as_dir=.
14494 for ac_exec_ext in '' $ac_executable_extensions; do
14495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14506 RANLIB=$ac_cv_prog_RANLIB
14507 if test -n "$RANLIB"; then
14508 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14509 echo "${ECHO_T}$RANLIB" >&6; }
14511 { echo "$as_me:$LINENO: result: no" >&5
14512 echo "${ECHO_T}no" >&6; }
14517 if test -z "$ac_cv_prog_RANLIB"; then
14518 ac_ct_RANLIB=$RANLIB
14519 # Extract the first word of "ranlib", so it can be a program name with args.
14520 set dummy ranlib; ac_word=$2
14521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 if test -n "$ac_ct_RANLIB"; then
14527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
14535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14536 ac_cv_prog_ac_ct_RANLIB="ranlib"
14537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14547 if test -n "$ac_ct_RANLIB"; then
14548 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14549 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14551 { echo "$as_me:$LINENO: result: no" >&5
14552 echo "${ECHO_T}no" >&6; }
14555 if test "x$ac_ct_RANLIB" = x; then
14558 case $cross_compiling:$ac_tool_warned in
14560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14561 whose name does not start with the host triplet. If you think this
14562 configuration is useful to you, please write to autoconf@gnu.org." >&5
14563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14564 whose name does not start with the host triplet. If you think this
14565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14566 ac_tool_warned=yes ;;
14568 RANLIB=$ac_ct_RANLIB
14571 RANLIB="$ac_cv_prog_RANLIB"
14574 if test -n "$ac_tool_prefix"; then
14575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14576 set dummy ${ac_tool_prefix}strip; ac_word=$2
14577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14579 if test "${ac_cv_prog_STRIP+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 if test -n "$STRIP"; then
14583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
14591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14602 STRIP=$ac_cv_prog_STRIP
14603 if test -n "$STRIP"; then
14604 { echo "$as_me:$LINENO: result: $STRIP" >&5
14605 echo "${ECHO_T}$STRIP" >&6; }
14607 { echo "$as_me:$LINENO: result: no" >&5
14608 echo "${ECHO_T}no" >&6; }
14613 if test -z "$ac_cv_prog_STRIP"; then
14615 # Extract the first word of "strip", so it can be a program name with args.
14616 set dummy strip; ac_word=$2
14617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 if test -n "$ac_ct_STRIP"; then
14623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626 for as_dir in $PATH
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14632 ac_cv_prog_ac_ct_STRIP="strip"
14633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14643 if test -n "$ac_ct_STRIP"; then
14644 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14647 { echo "$as_me:$LINENO: result: no" >&5
14648 echo "${ECHO_T}no" >&6; }
14651 if test "x$ac_ct_STRIP" = x; then
14654 case $cross_compiling:$ac_tool_warned in
14656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14657 whose name does not start with the host triplet. If you think this
14658 configuration is useful to you, please write to autoconf@gnu.org." >&5
14659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14660 whose name does not start with the host triplet. If you think this
14661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14662 ac_tool_warned=yes ;;
14667 STRIP="$ac_cv_prog_STRIP"
14672 old_CFLAGS="$CFLAGS"
14674 # Set sane defaults for various variables
14675 test -z "$AR" && AR=ar
14676 test -z "$AR_FLAGS" && AR_FLAGS=cru
14677 test -z "$AS" && AS=as
14678 test -z "$CC" && CC=cc
14679 test -z "$LTCC" && LTCC=$CC
14680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14681 test -z "$DLLTOOL" && DLLTOOL=dlltool
14682 test -z "$LD" && LD=ld
14683 test -z "$LN_S" && LN_S="ln -s"
14684 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14685 test -z "$NM" && NM=nm
14686 test -z "$SED" && SED=sed
14687 test -z "$OBJDUMP" && OBJDUMP=objdump
14688 test -z "$RANLIB" && RANLIB=:
14689 test -z "$STRIP" && STRIP=:
14690 test -z "$ac_objext" && ac_objext=o
14692 # Determine commands to create old-style static archives.
14693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14694 old_postinstall_cmds='chmod 644 $oldlib'
14695 old_postuninstall_cmds=
14697 if test -n "$RANLIB"; then
14700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14706 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14709 for cc_temp in $compiler""; do
14711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14720 # Only perform the check for file, if the check method requires it
14721 case $deplibs_check_method in
14723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14724 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14725 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14726 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14734 lt_save_MAGIC_CMD="$MAGIC_CMD"
14735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14737 for ac_dir in $ac_dummy; do
14739 test -z "$ac_dir" && ac_dir=.
14740 if test -f $ac_dir/${ac_tool_prefix}file; then
14741 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14742 if test -n "$file_magic_test_file"; then
14743 case $deplibs_check_method in
14745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14748 $EGREP "$file_magic_regex" > /dev/null; then
14753 *** Warning: the command libtool uses to detect shared libraries,
14754 *** $file_magic_cmd, produces output that libtool cannot recognize.
14755 *** The result is that libtool may fail to recognize shared libraries
14756 *** as such. This will affect the creation of libtool libraries that
14757 *** depend on shared libraries, but programs linked with such libtool
14758 *** libraries will work regardless of this problem. Nevertheless, you
14759 *** may want to report the problem to your system manager and/or to
14760 *** bug-libtool@gnu.org
14770 MAGIC_CMD="$lt_save_MAGIC_CMD"
14775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14776 if test -n "$MAGIC_CMD"; then
14777 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14778 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14780 { echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6; }
14784 if test -z "$lt_cv_path_MAGIC_CMD"; then
14785 if test -n "$ac_tool_prefix"; then
14786 { echo "$as_me:$LINENO: checking for file" >&5
14787 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14796 lt_save_MAGIC_CMD="$MAGIC_CMD"
14797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14799 for ac_dir in $ac_dummy; do
14801 test -z "$ac_dir" && ac_dir=.
14802 if test -f $ac_dir/file; then
14803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14804 if test -n "$file_magic_test_file"; then
14805 case $deplibs_check_method in
14807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14810 $EGREP "$file_magic_regex" > /dev/null; then
14815 *** Warning: the command libtool uses to detect shared libraries,
14816 *** $file_magic_cmd, produces output that libtool cannot recognize.
14817 *** The result is that libtool may fail to recognize shared libraries
14818 *** as such. This will affect the creation of libtool libraries that
14819 *** depend on shared libraries, but programs linked with such libtool
14820 *** libraries will work regardless of this problem. Nevertheless, you
14821 *** may want to report the problem to your system manager and/or to
14822 *** bug-libtool@gnu.org
14832 MAGIC_CMD="$lt_save_MAGIC_CMD"
14837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14838 if test -n "$MAGIC_CMD"; then
14839 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14840 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14842 { echo "$as_me:$LINENO: result: no" >&5
14843 echo "${ECHO_T}no" >&6; }
14856 enable_win32_dll=no
14858 # Check whether --enable-libtool-lock was given.
14859 if test "${enable_libtool_lock+set}" = set; then
14860 enableval=$enable_libtool_lock;
14863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14866 # Check whether --with-pic was given.
14867 if test "${with_pic+set}" = set; then
14868 withval=$with_pic; pic_mode="$withval"
14873 test -z "$pic_mode" && pic_mode=default
14875 # Use C for the default configuration in the libtool script
14879 ac_cpp='$CPP $CPPFLAGS'
14880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14885 # Source file extension for C test sources.
14888 # Object file extension for compiled C test sources.
14892 # Code to be used in simple compile tests
14893 lt_simple_compile_test_code="int some_variable = 0;\n"
14895 # Code to be used in simple link tests
14896 lt_simple_link_test_code='int main(){return(0);}\n'
14899 # If no C compiler was specified, use CC.
14902 # If no C compiler flags were specified, use CFLAGS.
14903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14905 # Allow CC to be a program name with arguments.
14909 # save warnings/boilerplate of simple test code
14910 ac_outfile=conftest.$ac_objext
14911 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14913 _lt_compiler_boilerplate=`cat conftest.err`
14916 ac_outfile=conftest.$ac_objext
14917 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14919 _lt_linker_boilerplate=`cat conftest.err`
14924 lt_prog_compiler_no_builtin_flag=
14926 if test "$GCC" = yes; then
14927 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14930 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14931 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 lt_cv_prog_compiler_rtti_exceptions=no
14936 ac_outfile=conftest.$ac_objext
14937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14938 lt_compiler_flag="-fno-rtti -fno-exceptions"
14939 # Insert the option either (1) after the last *FLAGS variable, or
14940 # (2) before a word containing "conftest.", or (3) at the end.
14941 # Note that $ac_compile itself does not contain backslashes and begins
14942 # with a dollar sign (not a hyphen), so the echo should work correctly.
14943 # The option is referenced via a variable to avoid confusing sed.
14944 lt_compile=`echo "$ac_compile" | $SED \
14945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947 -e 's:$: $lt_compiler_flag:'`
14948 (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
14949 (eval "$lt_compile" 2>conftest.err)
14951 cat conftest.err >&5
14952 echo "$as_me:14952: \$? = $ac_status" >&5
14953 if (exit $ac_status) && test -s "$ac_outfile"; then
14954 # The compiler can only warn and ignore the option if not recognized
14955 # So say no if there are warnings other than the usual output.
14956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14959 lt_cv_prog_compiler_rtti_exceptions=yes
14965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14966 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14968 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14976 lt_prog_compiler_wl=
14977 lt_prog_compiler_pic=
14978 lt_prog_compiler_static=
14980 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14981 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14983 if test "$GCC" = yes; then
14984 lt_prog_compiler_wl='-Wl,'
14985 lt_prog_compiler_static='-static'
14989 # All AIX code is PIC.
14990 if test "$host_cpu" = ia64; then
14991 # AIX 5 now supports IA64 processor
14992 lt_prog_compiler_static='-Bstatic'
14997 # FIXME: we need at least 68020 code to build shared libraries, but
14998 # adding the `-m68020' flag to GCC prevents building anything better,
15000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15003 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15004 # PIC is the default for these OSes.
15007 mingw* | pw32* | os2*)
15008 # This hack is so that the source file can tell whether it is being
15009 # built for inclusion in a dll (and should export symbols for example).
15010 lt_prog_compiler_pic='-DDLL_EXPORT'
15013 darwin* | rhapsody*)
15014 # PIC is the default on this platform
15015 # Common symbols not allowed in MH_DYLIB files
15016 lt_prog_compiler_pic='-fno-common'
15020 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15021 # Instead, we relocate shared libraries at runtime.
15025 # Just because we use GCC doesn't mean we suddenly get shared libraries
15026 # on systems that don't support them.
15027 lt_prog_compiler_can_build_shared=no
15032 if test -d /usr/nec; then
15033 lt_prog_compiler_pic=-Kconform_pic
15038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15039 # not for PA HP-UX.
15045 lt_prog_compiler_pic='-fPIC'
15051 lt_prog_compiler_pic='-fPIC'
15055 # PORTME Check for flag to pass linker flags through the system compiler.
15058 lt_prog_compiler_wl='-Wl,'
15059 if test "$host_cpu" = ia64; then
15060 # AIX 5 now supports IA64 processor
15061 lt_prog_compiler_static='-Bstatic'
15063 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15067 # PIC is the default on this platform
15068 # Common symbols not allowed in MH_DYLIB files
15069 case $cc_basename in
15071 lt_prog_compiler_pic='-qnocommon'
15072 lt_prog_compiler_wl='-Wl,'
15077 mingw* | pw32* | os2*)
15078 # This hack is so that the source file can tell whether it is being
15079 # built for inclusion in a dll (and should export symbols for example).
15080 lt_prog_compiler_pic='-DDLL_EXPORT'
15083 hpux9* | hpux10* | hpux11*)
15084 lt_prog_compiler_wl='-Wl,'
15085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15086 # not for PA HP-UX.
15092 lt_prog_compiler_pic='+Z'
15095 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15096 lt_prog_compiler_static='${wl}-a ${wl}archive'
15099 irix5* | irix6* | nonstopux*)
15100 lt_prog_compiler_wl='-Wl,'
15101 # PIC (with -KPIC) is the default.
15102 lt_prog_compiler_static='-non_shared'
15106 lt_prog_compiler_pic='-KPIC'
15107 lt_prog_compiler_static='-Bstatic'
15111 case $cc_basename in
15113 lt_prog_compiler_wl='-Wl,'
15114 lt_prog_compiler_pic='-KPIC'
15115 lt_prog_compiler_static='-static'
15117 pgcc* | pgf77* | pgf90* | pgf95*)
15118 # Portland Group compilers (*not* the Pentium gcc compiler,
15119 # which looks to be a dead project)
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-fpic'
15122 lt_prog_compiler_static='-Bstatic'
15125 lt_prog_compiler_wl='-Wl,'
15126 # All Alpha code is PIC.
15127 lt_prog_compiler_static='-non_shared'
15132 osf3* | osf4* | osf5*)
15133 lt_prog_compiler_wl='-Wl,'
15134 # All OSF/1 code is PIC.
15135 lt_prog_compiler_static='-non_shared'
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15141 case $cc_basename in
15142 f77* | f90* | f95*)
15143 lt_prog_compiler_wl='-Qoption ld ';;
15145 lt_prog_compiler_wl='-Wl,';;
15150 lt_prog_compiler_wl='-Qoption ld '
15151 lt_prog_compiler_pic='-PIC'
15152 lt_prog_compiler_static='-Bstatic'
15155 sysv4 | sysv4.2uw2* | sysv4.3*)
15156 lt_prog_compiler_wl='-Wl,'
15157 lt_prog_compiler_pic='-KPIC'
15158 lt_prog_compiler_static='-Bstatic'
15162 if test -d /usr/nec ;then
15163 lt_prog_compiler_pic='-Kconform_pic'
15164 lt_prog_compiler_static='-Bstatic'
15168 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15175 lt_prog_compiler_wl='-Wl,'
15176 lt_prog_compiler_can_build_shared=no
15180 lt_prog_compiler_pic='-pic'
15181 lt_prog_compiler_static='-Bstatic'
15185 lt_prog_compiler_can_build_shared=no
15190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15191 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15194 # Check to make sure the PIC flag actually works.
15196 if test -n "$lt_prog_compiler_pic"; then
15198 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15200 if test "${lt_prog_compiler_pic_works+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 lt_prog_compiler_pic_works=no
15204 ac_outfile=conftest.$ac_objext
15205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15207 # Insert the option either (1) after the last *FLAGS variable, or
15208 # (2) before a word containing "conftest.", or (3) at the end.
15209 # Note that $ac_compile itself does not contain backslashes and begins
15210 # with a dollar sign (not a hyphen), so the echo should work correctly.
15211 # The option is referenced via a variable to avoid confusing sed.
15212 lt_compile=`echo "$ac_compile" | $SED \
15213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15215 -e 's:$: $lt_compiler_flag:'`
15216 (eval echo "\"\$as_me:15216: $lt_compile\"" >&5)
15217 (eval "$lt_compile" 2>conftest.err)
15219 cat conftest.err >&5
15220 echo "$as_me:15220: \$? = $ac_status" >&5
15221 if (exit $ac_status) && test -s "$ac_outfile"; then
15222 # The compiler can only warn and ignore the option if not recognized
15223 # So say no if there are warnings other than the usual output.
15224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15227 lt_prog_compiler_pic_works=yes
15233 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15234 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15236 if test x"$lt_prog_compiler_pic_works" = xyes; then
15237 case $lt_prog_compiler_pic in
15239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15242 lt_prog_compiler_pic=
15243 lt_prog_compiler_can_build_shared=no
15248 # For platforms which do not support PIC, -DPIC is meaningless:
15250 lt_prog_compiler_pic=
15253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15258 # Check to make sure the static flag actually works.
15260 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15261 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15263 if test "${lt_prog_compiler_static_works+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 lt_prog_compiler_static_works=no
15267 save_LDFLAGS="$LDFLAGS"
15268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15269 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15271 # The linker can only warn and ignore the option if not recognized
15272 # So say no if there are warnings
15273 if test -s conftest.err; then
15274 # Append any errors to the config.log.
15275 cat conftest.err 1>&5
15276 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15278 if diff conftest.exp conftest.er2 >/dev/null; then
15279 lt_prog_compiler_static_works=yes
15282 lt_prog_compiler_static_works=yes
15286 LDFLAGS="$save_LDFLAGS"
15289 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15290 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15292 if test x"$lt_prog_compiler_static_works" = xyes; then
15295 lt_prog_compiler_static=
15299 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15301 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 lt_cv_prog_compiler_c_o=no
15305 $rm -r conftest 2>/dev/null
15309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15311 lt_compiler_flag="-o out/conftest2.$ac_objext"
15312 # Insert the option either (1) after the last *FLAGS variable, or
15313 # (2) before a word containing "conftest.", or (3) at the end.
15314 # Note that $ac_compile itself does not contain backslashes and begins
15315 # with a dollar sign (not a hyphen), so the echo should work correctly.
15316 lt_compile=`echo "$ac_compile" | $SED \
15317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319 -e 's:$: $lt_compiler_flag:'`
15320 (eval echo "\"\$as_me:15320: $lt_compile\"" >&5)
15321 (eval "$lt_compile" 2>out/conftest.err)
15323 cat out/conftest.err >&5
15324 echo "$as_me:15324: \$? = $ac_status" >&5
15325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15327 # The compiler can only warn and ignore the option if not recognized
15328 # So say no if there are warnings
15329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15332 lt_cv_prog_compiler_c_o=yes
15337 # SGI C++ compiler will create directory out/ii_files/ for
15338 # template instantiation
15339 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15340 $rm out/* && rmdir out
15346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15350 hard_links="nottested"
15351 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15352 # do not overwrite the value of need_locks provided by the user
15353 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15359 ln conftest.a conftest.b 2>&5 || hard_links=no
15360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361 { echo "$as_me:$LINENO: result: $hard_links" >&5
15362 echo "${ECHO_T}$hard_links" >&6; }
15363 if test "$hard_links" = no; then
15364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15372 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15376 allow_undefined_flag=
15377 enable_shared_with_static_runtimes=no
15379 archive_expsym_cmds=
15380 old_archive_From_new_cmds=
15381 old_archive_from_expsyms_cmds=
15382 export_dynamic_flag_spec=
15383 whole_archive_flag_spec=
15384 thread_safe_flag_spec=
15385 hardcode_libdir_flag_spec=
15386 hardcode_libdir_flag_spec_ld=
15387 hardcode_libdir_separator=
15389 hardcode_minus_L=no
15390 hardcode_shlibpath_var=unsupported
15391 link_all_deplibs=unknown
15392 hardcode_automatic=no
15394 module_expsym_cmds=
15395 always_export_symbols=no
15396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 # include_expsyms should be a list of space-separated symbols to be *always*
15398 # included in the symbol list
15400 # exclude_expsyms can be an extended regexp of symbols to exclude
15401 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15402 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15403 # as well as any symbol that contains `d'.
15404 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15406 # platforms (ab)use it in PIC code, but their linkers get confused if
15407 # the symbol is explicitly referenced. Since portable code cannot
15408 # rely on this symbol name, it's probably fine to never include it in
15409 # preloaded symbol tables.
15410 extract_expsyms_cmds=
15411 # Just being paranoid about ensuring that cc_basename is set.
15412 for cc_temp in $compiler""; do
15414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15420 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15423 cygwin* | mingw* | pw32*)
15424 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15425 # When not using gcc, we currently assume that we are using
15426 # Microsoft Visual C++.
15427 if test "$GCC" != yes; then
15432 # we just hope/assume this is gcc and not c89 (= MSVC++)
15441 if test "$with_gnu_ld" = yes; then
15442 # If archive_cmds runs LD, not CC, wlarc should be empty
15445 # Set some defaults for GNU ld with shared library support. These
15446 # are reset later if shared libraries are not supported. Putting them
15447 # here allows them to be overridden if necessary.
15448 runpath_var=LD_RUN_PATH
15449 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15450 export_dynamic_flag_spec='${wl}--export-dynamic'
15451 # ancient GNU ld didn't support --whole-archive et. al.
15452 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15455 whole_archive_flag_spec=
15457 supports_anon_versioning=no
15458 case `$LD -v 2>/dev/null` in
15459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15462 *\ 2.11.*) ;; # other 2.11 versions
15463 *) supports_anon_versioning=yes ;;
15466 # See if GNU ld supports shared libraries.
15468 aix3* | aix4* | aix5*)
15469 # On AIX/PPC, the GNU linker is very broken
15470 if test "$host_cpu" != ia64; then
15474 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475 *** to be unable to reliably create shared libraries on AIX.
15476 *** Therefore, libtool is disabling shared libraries support. If you
15477 *** really care for shared libraries, you may want to modify your PATH
15478 *** so that a non-GNU linker is found, and then restart.
15485 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)'
15486 hardcode_libdir_flag_spec='-L$libdir'
15487 hardcode_minus_L=yes
15489 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490 # that the semantics of dynamic libraries on AmigaOS, at least up
15491 # to version 4, is to share data among multiple programs linked
15492 # with the same dynamic library. Since this doesn't match the
15493 # behavior of shared libraries on other platforms, we can't use
15499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500 allow_undefined_flag=unsupported
15501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502 # support --undefined. This deserves some investigation. FIXME
15503 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509 cygwin* | mingw* | pw32*)
15510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15511 # as there is no search path for DLLs.
15512 hardcode_libdir_flag_spec='-L$libdir'
15513 allow_undefined_flag=unsupported
15514 always_export_symbols=no
15515 enable_shared_with_static_runtimes=yes
15516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520 # If the export-symbols file already is a .def file (1st line
15521 # is EXPORTS), use it as is; otherwise, prepend...
15522 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523 cp $export_symbols $output_objdir/$soname.def;
15525 echo EXPORTS > $output_objdir/$soname.def;
15526 cat $export_symbols >> $output_objdir/$soname.def;
15528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15536 hardcode_shlibpath_var=no
15537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15538 export_dynamic_flag_spec='${wl}-E'
15539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15540 # Instead, shared libraries are loaded at an image base (0x10000000 by
15541 # default) and relocated if they conflict, which is a slow very memory
15542 # consuming and fragmenting process. To avoid this, we pick a random,
15543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15546 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'
15550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15552 case $cc_basename,$host_cpu in
15553 pgcc*) # Portland Group C compiler
15554 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'
15555 tmp_addflag=' $pic_flag'
15557 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15558 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'
15559 tmp_addflag=' $pic_flag -Mnomain' ;;
15560 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15561 tmp_addflag=' -i_dynamic' ;;
15562 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15563 tmp_addflag=' -i_dynamic -nofor_main' ;;
15564 ifc* | ifort*) # Intel Fortran compiler
15565 tmp_addflag=' -nofor_main' ;;
15567 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15569 if test $supports_anon_versioning = yes; then
15570 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15572 $echo "local: *; };" >> $output_objdir/$libname.ver~
15573 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15582 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15591 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15595 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15596 *** create shared libraries on Solaris systems. Therefore, libtool
15597 *** is disabling shared libraries support. We urge you to upgrade GNU
15598 *** binutils to release 2.9.1 or newer. Another option is to modify
15599 *** your PATH or compiler configuration so that the native linker is
15600 *** used, and then restart.
15603 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15612 case `$LD -v 2>&1` in
15613 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15617 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15618 *** reliably create shared libraries on SCO systems. Therefore, libtool
15619 *** is disabling shared libraries support. We urge you to upgrade GNU
15620 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15621 *** your PATH or compiler configuration so that the native linker is
15622 *** used, and then restart.
15627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15628 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15639 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15641 hardcode_direct=yes
15642 hardcode_shlibpath_var=no
15646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15655 if test "$ld_shlibs" = no; then
15657 hardcode_libdir_flag_spec=
15658 export_dynamic_flag_spec=
15659 whole_archive_flag_spec=
15662 # PORTME fill in a description of your system's linker (not GNU ld)
15665 allow_undefined_flag=unsupported
15666 always_export_symbols=yes
15667 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'
15668 # Note: this linker hardcodes the directories in LIBPATH if there
15669 # are no directories specified by -L.
15670 hardcode_minus_L=yes
15671 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15672 # Neither direct hardcoding nor static linking is supported with a
15674 hardcode_direct=unsupported
15679 if test "$host_cpu" = ia64; then
15680 # On IA64, the linker does run time linking by default, so we don't
15681 # have to do anything special.
15682 aix_use_runtimelinking=no
15683 exp_sym_flag='-Bexport'
15686 # If we're using GNU nm, then we don't want the "-C" option.
15687 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15688 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15689 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'
15691 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'
15693 aix_use_runtimelinking=no
15695 # Test if we are trying to use run time linking or normal
15696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15697 # need to do runtime linking.
15698 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15699 for ld_flag in $LDFLAGS; do
15700 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15701 aix_use_runtimelinking=yes
15708 exp_sym_flag='-bexport'
15709 no_entry_flag='-bnoentry'
15712 # When large executables or shared objects are built, AIX ld can
15713 # have problems creating the table of contents. If linking a library
15714 # or program results in "error TOC overflow" add -mminimal-toc to
15715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15719 hardcode_direct=yes
15720 hardcode_libdir_separator=':'
15721 link_all_deplibs=yes
15723 if test "$GCC" = yes; then
15724 case $host_os in aix4.[012]|aix4.[012].*)
15725 # We only want to do this on AIX 4.2 and lower, the check
15726 # below for broken collect2 doesn't work under 4.3+
15727 collect2name=`${CC} -print-prog-name=collect2`
15728 if test -f "$collect2name" && \
15729 strings "$collect2name" | grep resolve_lib_name >/dev/null
15731 # We have reworked collect2
15732 hardcode_direct=yes
15734 # We have old collect2
15735 hardcode_direct=unsupported
15736 # It fails to find uninstalled libraries when the uninstalled
15737 # path is not listed in the libpath. Setting hardcode_minus_L
15738 # to unsupported forces relinking
15739 hardcode_minus_L=yes
15740 hardcode_libdir_flag_spec='-L$libdir'
15741 hardcode_libdir_separator=
15745 shared_flag='-shared'
15746 if test "$aix_use_runtimelinking" = yes; then
15747 shared_flag="$shared_flag "'${wl}-G'
15751 if test "$host_cpu" = ia64; then
15752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15753 # chokes on -Wl,-G. The following line is correct:
15756 if test "$aix_use_runtimelinking" = yes; then
15757 shared_flag='${wl}-G'
15759 shared_flag='${wl}-bM:SRE'
15764 # It seems that -bexpall does not export symbols beginning with
15765 # underscore (_), so it is better to generate a list of symbols to export.
15766 always_export_symbols=yes
15767 if test "$aix_use_runtimelinking" = yes; then
15768 # Warning - without using the other runtime loading flags (-brtl),
15769 # -berok will link without error, but may produce a broken library.
15770 allow_undefined_flag='-berok'
15771 # Determine the default libpath from the value encoded in an empty executable.
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (ac_try="$ac_link"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_link") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15824 # Check for a 64-bit object if we didn't find anything.
15825 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; }
15828 echo "$as_me: failed program was:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15834 rm -f core conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15839 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"
15841 if test "$host_cpu" = ia64; then
15842 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15843 allow_undefined_flag="-z nodefs"
15844 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"
15846 # Determine the default libpath from the value encoded in an empty executable.
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_link") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest$ac_exeext'
15887 { (case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_try") 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15899 # Check for a 64-bit object if we didn't find anything.
15900 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; }
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15909 rm -f core conftest.err conftest.$ac_objext \
15910 conftest$ac_exeext conftest.$ac_ext
15911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15914 # Warning - without using the other run time loading flags,
15915 # -berok will link without error, but may produce a broken library.
15916 no_undefined_flag=' ${wl}-bernotok'
15917 allow_undefined_flag=' ${wl}-berok'
15918 # Exported symbols can be pulled into shared objects from archives
15919 whole_archive_flag_spec='$convenience'
15920 archive_cmds_need_lc=yes
15921 # This is similar to how AIX traditionally builds its shared libraries.
15922 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'
15928 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)'
15929 hardcode_libdir_flag_spec='-L$libdir'
15930 hardcode_minus_L=yes
15931 # see comment about different semantics on the GNU ld section
15936 export_dynamic_flag_spec=-rdynamic
15939 cygwin* | mingw* | pw32*)
15940 # When not using gcc, we currently assume that we are using
15941 # Microsoft Visual C++.
15942 # hardcode_libdir_flag_spec is actually meaningless, as there is
15943 # no search path for DLLs.
15944 hardcode_libdir_flag_spec=' '
15945 allow_undefined_flag=unsupported
15946 # Tell ltmain to make .lib files, not .a files.
15948 # Tell ltmain to make .dll files, not .so files.
15950 # FIXME: Setting linknames here is a bad hack.
15951 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15952 # The linker will automatically build a .lib file if we build a DLL.
15953 old_archive_From_new_cmds='true'
15954 # FIXME: Should let the user specify the lib program.
15955 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15956 fix_srcfile_path='`cygpath -w "$srcfile"`'
15957 enable_shared_with_static_runtimes=yes
15960 darwin* | rhapsody*)
15962 rhapsody* | darwin1.[012])
15963 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15967 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15969 case ${MACOSX_DEPLOYMENT_TARGET} in
15971 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15974 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15980 archive_cmds_need_lc=no
15982 hardcode_automatic=yes
15983 hardcode_shlibpath_var=unsupported
15984 whole_archive_flag_spec=''
15985 link_all_deplibs=yes
15986 if test "$GCC" = yes ; then
15987 output_verbose_link_cmd='echo'
15988 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15989 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15991 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}'
15992 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}'
15994 case $cc_basename in
15996 output_verbose_link_cmd='echo'
15997 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15998 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16000 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}'
16001 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}'
16011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012 hardcode_libdir_flag_spec='-L$libdir'
16013 hardcode_shlibpath_var=no
16020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16021 # support. Future versions do this automatically, but an explicit c++rt0.o
16022 # does not break anything, and helps significantly (at the cost of a little
16025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16026 hardcode_libdir_flag_spec='-R$libdir'
16027 hardcode_direct=yes
16028 hardcode_shlibpath_var=no
16031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16034 hardcode_direct=yes
16035 hardcode_minus_L=yes
16036 hardcode_shlibpath_var=no
16039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16040 freebsd* | kfreebsd*-gnu | dragonfly*)
16041 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16042 hardcode_libdir_flag_spec='-R$libdir'
16043 hardcode_direct=yes
16044 hardcode_shlibpath_var=no
16048 if test "$GCC" = yes; then
16049 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'
16051 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'
16053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16054 hardcode_libdir_separator=:
16055 hardcode_direct=yes
16057 # hardcode_minus_L: Not really in the search PATH,
16058 # but as the default location of the library.
16059 hardcode_minus_L=yes
16060 export_dynamic_flag_spec='${wl}-E'
16064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16069 if test "$with_gnu_ld" = no; then
16070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16071 hardcode_libdir_separator=:
16073 hardcode_direct=yes
16074 export_dynamic_flag_spec='${wl}-E'
16076 # hardcode_minus_L: Not really in the search PATH,
16077 # but as the default location of the library.
16078 hardcode_minus_L=yes
16083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16086 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16098 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16101 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16104 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16108 if test "$with_gnu_ld" = no; then
16109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16110 hardcode_libdir_separator=:
16114 hardcode_libdir_flag_spec_ld='+b $libdir'
16116 hardcode_shlibpath_var=no
16119 hardcode_direct=yes
16120 export_dynamic_flag_spec='${wl}-E'
16122 # hardcode_minus_L: Not really in the search PATH,
16123 # but as the default location of the library.
16124 hardcode_minus_L=yes
16130 irix5* | irix6* | nonstopux*)
16131 if test "$GCC" = yes; then
16132 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'
16134 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'
16135 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16138 hardcode_libdir_separator=:
16139 link_all_deplibs=yes
16143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16146 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16148 hardcode_libdir_flag_spec='-R$libdir'
16149 hardcode_direct=yes
16150 hardcode_shlibpath_var=no
16154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155 hardcode_direct=yes
16156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16157 hardcode_libdir_separator=:
16158 hardcode_shlibpath_var=no
16162 hardcode_direct=yes
16163 hardcode_shlibpath_var=no
16164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16168 export_dynamic_flag_spec='${wl}-E'
16171 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec='-R$libdir'
16176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16184 hardcode_libdir_flag_spec='-L$libdir'
16185 hardcode_minus_L=yes
16186 allow_undefined_flag=unsupported
16187 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'
16188 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16192 if test "$GCC" = yes; then
16193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16194 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'
16196 allow_undefined_flag=' -expect_unresolved \*'
16197 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'
16199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16200 hardcode_libdir_separator=:
16203 osf4* | osf5*) # as osf3* with the addition of -msym flag
16204 if test "$GCC" = yes; then
16205 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16206 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'
16207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16209 allow_undefined_flag=' -expect_unresolved \*'
16210 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'
16211 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16212 $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'
16214 # Both c and cxx compiler support -rpath directly
16215 hardcode_libdir_flag_spec='-rpath $libdir'
16217 hardcode_libdir_separator=:
16221 no_undefined_flag=' -z text'
16222 if test "$GCC" = yes; then
16224 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16226 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16229 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16230 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16231 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16233 hardcode_libdir_flag_spec='-R$libdir'
16234 hardcode_shlibpath_var=no
16236 solaris2.[0-5] | solaris2.[0-5].*) ;;
16238 # The compiler driver will combine linker options so we
16239 # cannot just pass the convience library names through
16240 # without $wl, iff we do not link with $LD.
16241 # Luckily, gcc supports the same syntax we need for Sun Studio.
16242 # Supported since Solaris 2.6 (maybe 2.5.1?)
16245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16247 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' ;;
16250 link_all_deplibs=yes
16254 if test "x$host_vendor" = xsequent; then
16255 # Use $CC to link under sequent, because it throws in some extra .o
16256 # files that make .init and .fini sections work.
16257 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16259 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16261 hardcode_libdir_flag_spec='-L$libdir'
16262 hardcode_direct=yes
16263 hardcode_minus_L=yes
16264 hardcode_shlibpath_var=no
16268 case $host_vendor in
16270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271 hardcode_direct=yes # is this really true???
16274 ## LD is ld it makes a PLAMLIB
16275 ## CC just makes a GrossModule.
16276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16277 reload_cmds='$CC -r -o $output$reload_objs'
16281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16285 runpath_var='LD_RUN_PATH'
16286 hardcode_shlibpath_var=no
16290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291 hardcode_shlibpath_var=no
16292 export_dynamic_flag_spec='-Bexport'
16296 if test -d /usr/nec; then
16297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_shlibpath_var=no
16299 runpath_var=LD_RUN_PATH
16300 hardcode_runpath_var=yes
16305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16306 no_undefined_flag='${wl}-z,text'
16307 archive_cmds_need_lc=no
16308 hardcode_shlibpath_var=no
16309 runpath_var='LD_RUN_PATH'
16311 if test "$GCC" = yes; then
16312 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16313 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16315 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16316 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16320 sysv5* | sco3.2v5* | sco5v6*)
16321 # Note: We can NOT use -z defs as we might desire, because we do not
16322 # link with -lc, and that would cause any symbols used from libc to
16323 # always be unresolved, which means just about no library would
16324 # ever link correctly. If we're not using GNU ld we use -z text
16325 # though, which does catch some bad symbols but isn't as heavy-handed
16327 no_undefined_flag='${wl}-z,text'
16328 allow_undefined_flag='${wl}-z,nodefs'
16329 archive_cmds_need_lc=no
16330 hardcode_shlibpath_var=no
16331 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16332 hardcode_libdir_separator=':'
16333 link_all_deplibs=yes
16334 export_dynamic_flag_spec='${wl}-Bexport'
16335 runpath_var='LD_RUN_PATH'
16337 if test "$GCC" = yes; then
16338 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16339 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16341 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348 hardcode_libdir_flag_spec='-L$libdir'
16349 hardcode_shlibpath_var=no
16358 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16359 echo "${ECHO_T}$ld_shlibs" >&6; }
16360 test "$ld_shlibs" = no && can_build_shared=no
16363 # Do we need to explicitly link libc?
16365 case "x$archive_cmds_need_lc" in
16367 # Assume -lc should be added
16368 archive_cmds_need_lc=yes
16370 if test "$enable_shared" = yes && test "$GCC" = yes; then
16371 case $archive_cmds in
16373 # FIXME: we may have to deal with multi-command sequences.
16376 # Test whether the compiler implicitly links with -lc since on some
16377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16378 # to ld, don't add -lc before -lgcc.
16379 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16380 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16382 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } 2>conftest.err; then
16391 libobjs=conftest.$ac_objext
16393 wl=$lt_prog_compiler_wl
16394 pic_flag=$lt_prog_compiler_pic
16400 lt_save_allow_undefined_flag=$allow_undefined_flag
16401 allow_undefined_flag=
16402 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16403 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }
16408 archive_cmds_need_lc=no
16410 archive_cmds_need_lc=yes
16412 allow_undefined_flag=$lt_save_allow_undefined_flag
16414 cat conftest.err 1>&5
16417 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16418 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16425 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16426 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16427 library_names_spec=
16428 libname_spec='lib$name'
16432 postuninstall_cmds=
16436 shlibpath_overrides_runpath=unknown
16438 dynamic_linker="$host_os ld.so"
16439 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16440 if test "$GCC" = yes; then
16441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16442 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16443 # if the path contains ";" then we assume it to be the separator
16444 # otherwise default to the standard path separator (i.e. ":") - it is
16445 # assumed that no part of a normal pathname contains ";" but that should
16446 # okay in the real world where ";" in dirpaths is itself problematic.
16447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16454 need_lib_prefix=unknown
16455 hardcode_into_libs=no
16457 # when you set need_version to no, make sure it does not cause -set_version
16458 # flags to be left without arguments
16459 need_version=unknown
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16465 shlibpath_var=LIBPATH
16467 # AIX 3 has no versioning support, so we append a major version to the name.
16468 soname_spec='${libname}${release}${shared_ext}$major'
16475 hardcode_into_libs=yes
16476 if test "$host_cpu" = ia64; then
16477 # AIX 5 supports IA64
16478 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16479 shlibpath_var=LD_LIBRARY_PATH
16481 # With GCC up to 2.95.x, collect2 would create an import file
16482 # for dependence libraries. The import file would start with
16483 # the line `#! .'. This would cause the generated library to
16484 # depend on `.', always an invalid library. This was fixed in
16485 # development snapshots of GCC prior to 3.0.
16487 aix4 | aix4.[01] | aix4.[01].*)
16488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16490 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16493 can_build_shared=no
16497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16498 # soname into executable. Probably we can add versioning support to
16499 # collect2, so additional links can be useful in future.
16500 if test "$aix_use_runtimelinking" = yes; then
16501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16502 # instead of lib<name>.a to let people know that these are not
16503 # typical AIX shared libraries.
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 # We preserve .a as extension for shared libraries through AIX4.2
16507 # and later when we are not doing run time linking.
16508 library_names_spec='${libname}${release}.a $libname.a'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16511 shlibpath_var=LIBPATH
16516 library_names_spec='$libname.ixlibrary $libname.a'
16517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16518 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'
16522 library_names_spec='${libname}${shared_ext}'
16523 dynamic_linker="$host_os ld.so"
16524 shlibpath_var=LIBRARY_PATH
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16536 # the default ld.so.conf also contains /usr/contrib/lib and
16537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16538 # libtool to hard-code these into programs
16541 cygwin* | mingw* | pw32*)
16542 version_type=windows
16547 case $GCC,$host_os in
16548 yes,cygwin* | yes,mingw* | yes,pw32*)
16549 library_names_spec='$libname.dll.a'
16550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16551 postinstall_cmds='base_file=`basename \${file}`~
16552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16553 dldir=$destdir/`dirname \$dlpath`~
16554 test -d \$dldir || mkdir -p \$dldir~
16555 $install_prog $dir/$dlname \$dldir/$dlname~
16556 chmod a+x \$dldir/$dlname'
16557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16558 dlpath=$dir/\$dldll~
16560 shlibpath_overrides_runpath=yes
16564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16566 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16569 # MinGW DLLs use traditional 'lib' prefix
16570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16572 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16573 # It is most probably a Windows format PATH printed by
16574 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16575 # path with ; separators, and with drive letters. We can handle the
16576 # drive letters (cygwin fileutils understands them), so leave them,
16577 # especially as we might pass files found there to a mingw objdump,
16578 # which wouldn't understand a cygwinified path. Ahh.
16579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16585 # pw32 DLLs use 'pw' prefix rather than 'lib'
16586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16595 dynamic_linker='Win32 ld.exe'
16596 # FIXME: first we should search . and the directory the executable is in
16600 darwin* | rhapsody*)
16601 dynamic_linker="$host_os dyld"
16602 version_type=darwin
16605 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16606 soname_spec='${libname}${release}${major}$shared_ext'
16607 shlibpath_overrides_runpath=yes
16608 shlibpath_var=DYLD_LIBRARY_PATH
16609 shrext_cmds='.dylib'
16610 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16611 if test "$GCC" = yes; then
16612 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"`
16614 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16624 soname_spec='${libname}${release}${shared_ext}$major'
16625 shlibpath_var=LD_LIBRARY_PATH
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 shlibpath_var=LD_LIBRARY_PATH
16639 shlibpath_overrides_runpath=no
16640 hardcode_into_libs=yes
16641 dynamic_linker='GNU ld.so'
16644 freebsd* | dragonfly*)
16645 # DragonFly does not have aout. When/if they implement a new
16646 # versioning mechanism, adjust this.
16647 if test -x /usr/bin/objformat; then
16648 objformat=`/usr/bin/objformat`
16651 freebsd[123]*) objformat=aout ;;
16652 *) objformat=elf ;;
16655 version_type=freebsd-$objformat
16656 case $version_type in
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16667 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=yes
16672 freebsd3.[01]* | freebsdelf3.[01]*)
16673 shlibpath_overrides_runpath=yes
16674 hardcode_into_libs=yes
16676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16678 shlibpath_overrides_runpath=no
16679 hardcode_into_libs=yes
16681 freebsd*) # from 4.6 on
16682 shlibpath_overrides_runpath=yes
16683 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
16695 hardcode_into_libs=yes
16698 hpux9* | hpux10* | hpux11*)
16699 # Give a soname corresponding to the major version so that dld.sl refuses to
16700 # link against other versions.
16707 hardcode_into_libs=yes
16708 dynamic_linker="$host_os dld.so"
16709 shlibpath_var=LD_LIBRARY_PATH
16710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 if test "X$HPUX_IA64_MODE" = X32; then
16714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16722 hardcode_into_libs=yes
16723 dynamic_linker="$host_os dld.sl"
16724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16733 dynamic_linker="$host_os dld.sl"
16734 shlibpath_var=SHLIB_PATH
16735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16741 postinstall_cmds='chmod 555 $lib'
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=no
16753 hardcode_into_libs=yes
16756 irix5* | irix6* | nonstopux*)
16758 nonstopux*) version_type=nonstopux ;;
16760 if test "$lt_cv_prog_gnu_ld" = yes; then
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16771 irix5* | nonstopux*)
16772 libsuff= shlibsuff=
16775 case $LD in # libtool.m4 will add one of these switches to LD
16776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16777 libsuff= shlibsuff= libmagic=32-bit;;
16778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16779 libsuff=32 shlibsuff=N32 libmagic=N32;;
16780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16782 *) libsuff= shlibsuff= libmagic=never-match;;
16786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16787 shlibpath_overrides_runpath=no
16788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16790 hardcode_into_libs=yes
16793 # No shared lib support for Linux oldld, aout, or coff.
16794 linux*oldld* | linux*aout* | linux*coff*)
16798 # This must be Linux ELF.
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16806 shlibpath_var=LD_LIBRARY_PATH
16807 shlibpath_overrides_runpath=no
16808 # This implies no fast_install, which is unacceptable.
16809 # Some rework will be needed to allow for fast_install
16810 # before this can be enabled.
16811 hardcode_into_libs=yes
16813 # Append ld.so.conf contents to the search path
16814 if test -f /etc/ld.so.conf; then
16815 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' ' '`
16816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16819 # We used to test for /lib/ld.so.1 and disable shared libraries on
16820 # powerpc, because MkLinux only supported shared libraries with the
16821 # GNU dynamic linker. Since this was broken with cross compilers,
16822 # most powerpc-linux boxes support dynamic linking these days and
16823 # people can always --disable-shared, the test was removed, and we
16824 # assume the GNU/Linux dynamic linker is in use.
16825 dynamic_linker='GNU/Linux ld.so'
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=no
16836 hardcode_into_libs=yes
16837 dynamic_linker='GNU ld.so'
16844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847 dynamic_linker='NetBSD (a.out) ld.so'
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 dynamic_linker='NetBSD ld.elf_so'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=yes
16855 hardcode_into_libs=yes
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 shlibpath_overrides_runpath=yes
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=yes
16877 sys_lib_dlsearch_path_spec="/usr/lib"
16879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16882 *) need_version=no ;;
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16889 openbsd2.[89] | openbsd2.[89].*)
16890 shlibpath_overrides_runpath=no
16893 shlibpath_overrides_runpath=yes
16897 shlibpath_overrides_runpath=yes
16902 libname_spec='$name'
16905 library_names_spec='$libname${shared_ext} $libname.a'
16906 dynamic_linker='OS/2 ld.exe'
16907 shlibpath_var=LIBPATH
16910 osf3* | osf4* | osf5*)
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 shlibpath_var=LD_LIBRARY_PATH
16917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 shlibpath_overrides_runpath=yes
16929 hardcode_into_libs=yes
16930 # ldd complains unless libraries are executable
16931 postinstall_cmds='chmod +x $lib'
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 shlibpath_overrides_runpath=yes
16940 if test "$with_gnu_ld" = yes; then
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 case $host_vendor in
16953 shlibpath_overrides_runpath=no
16955 export_dynamic_flag_spec='${wl}-Blargedynsym'
16956 runpath_var=LD_RUN_PATH
16964 shlibpath_overrides_runpath=no
16965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16971 if test -d /usr/nec ;then
16973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16974 soname_spec='$libname${shared_ext}.$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16980 version_type=freebsd-elf
16983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16984 soname_spec='${libname}${release}${shared_ext}$major'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 hardcode_into_libs=yes
16987 if test "$with_gnu_ld" = yes; then
16988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16989 shlibpath_overrides_runpath=no
16991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16992 shlibpath_overrides_runpath=yes
16995 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16999 sys_lib_dlsearch_path_spec='/usr/lib'
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17013 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17014 echo "${ECHO_T}$dynamic_linker" >&6; }
17015 test "$dynamic_linker" = no && can_build_shared=no
17017 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17018 if test "$GCC" = yes; then
17019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17022 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17023 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17025 if test -n "$hardcode_libdir_flag_spec" || \
17026 test -n "$runpath_var" || \
17027 test "X$hardcode_automatic" = "Xyes" ; then
17029 # We can hardcode non-existant directories.
17030 if test "$hardcode_direct" != no &&
17031 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17032 # have to relink, otherwise we might link with an installed library
17033 # when we should be linking with a yet-to-be-installed one
17034 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17035 test "$hardcode_minus_L" != no; then
17036 # Linking always hardcodes the temporary library directory.
17037 hardcode_action=relink
17039 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17040 hardcode_action=immediate
17043 # We cannot hardcode anything, or else we can only hardcode existing
17045 hardcode_action=unsupported
17047 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17048 echo "${ECHO_T}$hardcode_action" >&6; }
17050 if test "$hardcode_action" = relink; then
17051 # Fast installation is not supported
17052 enable_fast_install=no
17053 elif test "$shlibpath_overrides_runpath" = yes ||
17054 test "$enable_shared" = no; then
17055 # Fast installation is not necessary
17056 enable_fast_install=needless
17061 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17062 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17063 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17066 { echo "$as_me:$LINENO: result: yes" >&5
17067 echo "${ECHO_T}yes" >&6; }
17069 # FIXME - insert some real tests, host_os isn't really good enough
17072 if test -n "$STRIP" ; then
17073 striplib="$STRIP -x"
17074 { echo "$as_me:$LINENO: result: yes" >&5
17075 echo "${ECHO_T}yes" >&6; }
17077 { echo "$as_me:$LINENO: result: no" >&5
17078 echo "${ECHO_T}no" >&6; }
17082 { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17088 if test "x$enable_dlopen" != xyes; then
17089 enable_dlopen=unknown
17090 enable_dlopen_self=unknown
17091 enable_dlopen_self_static=unknown
17098 lt_cv_dlopen="load_add_on"
17100 lt_cv_dlopen_self=yes
17104 lt_cv_dlopen="LoadLibrary"
17109 lt_cv_dlopen="dlopen"
17114 # if libdl is installed we need to link against it
17115 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 ac_check_lib_save_LIBS=$LIBS
17122 cat >conftest.$ac_ext <<_ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17129 /* Override any GCC internal prototype to avoid an error.
17130 Use char because int might match the return type of a GCC
17131 builtin and then its argument prototype would still apply. */
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_lib_dl_dlopen=yes
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_lib_dl_dlopen=no
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17190 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17191 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17192 if test $ac_cv_lib_dl_dlopen = yes; then
17193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17196 lt_cv_dlopen="dyld"
17198 lt_cv_dlopen_self=yes
17205 { echo "$as_me:$LINENO: checking for shl_load" >&5
17206 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17207 if test "${ac_cv_func_shl_load+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17218 #define shl_load innocuous_shl_load
17220 /* System header to define __stub macros and hopefully few prototypes,
17221 which can conflict with char shl_load (); below.
17222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223 <limits.h> exists even on freestanding compilers. */
17226 # include <limits.h>
17228 # include <assert.h>
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17240 /* The GNU C library defines this for functions which it implements
17241 to always fail with ENOSYS. Some functions are actually named
17242 something starting with __ and the normal name is an alias. */
17243 #if defined __stub_shl_load || defined __stub___shl_load
17250 return shl_load ();
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_func_shl_load=yes
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 ac_cv_func_shl_load=no
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17302 if test $ac_cv_func_shl_load = yes; then
17303 lt_cv_dlopen="shl_load"
17305 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17310 ac_check_lib_save_LIBS=$LIBS
17312 cat >conftest.$ac_ext <<_ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17319 /* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17329 return shl_load ();
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17343 grep -v '^ *+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_lib_dld_shl_load=yes
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ac_cv_lib_dld_shl_load=no
17376 rm -f core conftest.err conftest.$ac_objext \
17377 conftest$ac_exeext conftest.$ac_ext
17378 LIBS=$ac_check_lib_save_LIBS
17380 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17381 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17382 if test $ac_cv_lib_dld_shl_load = yes; then
17383 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17385 { echo "$as_me:$LINENO: checking for dlopen" >&5
17386 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17387 if test "${ac_cv_func_dlopen+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17398 #define dlopen innocuous_dlopen
17400 /* System header to define __stub macros and hopefully few prototypes,
17401 which can conflict with char dlopen (); below.
17402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403 <limits.h> exists even on freestanding compilers. */
17406 # include <limits.h>
17408 # include <assert.h>
17413 /* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17420 /* The GNU C library defines this for functions which it implements
17421 to always fail with ENOSYS. Some functions are actually named
17422 something starting with __ and the normal name is an alias. */
17423 #if defined __stub_dlopen || defined __stub___dlopen
17435 rm -f conftest.$ac_objext conftest$ac_exeext
17436 if { (ac_try="$ac_link"
17437 case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_link") 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_try") 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_func_dlopen=yes
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17474 ac_cv_func_dlopen=no
17477 rm -f core conftest.err conftest.$ac_objext \
17478 conftest$ac_exeext conftest.$ac_ext
17480 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17481 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17482 if test $ac_cv_func_dlopen = yes; then
17483 lt_cv_dlopen="dlopen"
17485 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 ac_check_lib_save_LIBS=$LIBS
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17499 /* Override any GCC internal prototype to avoid an error.
17500 Use char because int might match the return type of a GCC
17501 builtin and then its argument prototype would still apply. */
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_link") 2>conftest.er1
17523 grep -v '^ *+' conftest.er1 >conftest.err
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17529 { (case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_try") 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } &&
17538 { ac_try='test -s conftest$ac_exeext'
17539 { (case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_try") 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_lib_dl_dlopen=yes
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ac_cv_lib_dl_dlopen=no
17556 rm -f core conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17558 LIBS=$ac_check_lib_save_LIBS
17560 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17562 if test $ac_cv_lib_dl_dlopen = yes; then
17563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17565 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17566 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17567 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 ac_check_lib_save_LIBS=$LIBS
17571 LIBS="-lsvld $LIBS"
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17579 /* Override any GCC internal prototype to avoid an error.
17580 Use char because int might match the return type of a GCC
17581 builtin and then its argument prototype would still apply. */
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_link") 2>conftest.er1
17603 grep -v '^ *+' conftest.er1 >conftest.err
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
17608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest$ac_exeext'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 ac_cv_lib_svld_dlopen=yes
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17633 ac_cv_lib_svld_dlopen=no
17636 rm -f core conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17638 LIBS=$ac_check_lib_save_LIBS
17640 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17641 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17642 if test $ac_cv_lib_svld_dlopen = yes; then
17643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17645 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17646 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17647 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 ac_check_lib_save_LIBS=$LIBS
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17659 /* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17669 return dld_link ();
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (ac_try="$ac_link"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_link") 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689 { (case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_try") 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; } &&
17698 { ac_try='test -s conftest$ac_exeext'
17699 { (case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_try") 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_lib_dld_dld_link=yes
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 ac_cv_lib_dld_dld_link=no
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17720 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17721 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17722 if test $ac_cv_lib_dld_dld_link = yes; then
17723 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17744 if test "x$lt_cv_dlopen" != xno; then
17750 case $lt_cv_dlopen in
17752 save_CPPFLAGS="$CPPFLAGS"
17753 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17755 save_LDFLAGS="$LDFLAGS"
17756 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17759 LIBS="$lt_cv_dlopen_libs $LIBS"
17761 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17762 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17763 if test "${lt_cv_dlopen_self+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 if test "$cross_compiling" = yes; then :
17767 lt_cv_dlopen_self=cross
17769 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17770 lt_status=$lt_dlunknown
17771 cat > conftest.$ac_ext <<EOF
17772 #line 17772 "configure"
17773 #include "confdefs.h"
17782 # define LT_DLGLOBAL RTLD_GLOBAL
17785 # define LT_DLGLOBAL DL_GLOBAL
17787 # define LT_DLGLOBAL 0
17791 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17792 find out it does not work in some platform. */
17793 #ifndef LT_DLLAZY_OR_NOW
17795 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17798 # define LT_DLLAZY_OR_NOW DL_LAZY
17801 # define LT_DLLAZY_OR_NOW RTLD_NOW
17804 # define LT_DLLAZY_OR_NOW DL_NOW
17806 # define LT_DLLAZY_OR_NOW 0
17814 extern "C" void exit (int);
17817 void fnord() { int i=42;}
17820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17821 int status = $lt_dlunknown;
17825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17826 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17827 /* dlclose (self); */
17835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 (eval $ac_link) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17840 (./conftest; exit; ) >&5 2>/dev/null
17842 case x$lt_status in
17843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17848 # compilation failed
17849 lt_cv_dlopen_self=no
17856 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17857 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17859 if test "x$lt_cv_dlopen_self" = xyes; then
17860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17861 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17862 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17863 if test "${lt_cv_dlopen_self_static+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 if test "$cross_compiling" = yes; then :
17867 lt_cv_dlopen_self_static=cross
17869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17870 lt_status=$lt_dlunknown
17871 cat > conftest.$ac_ext <<EOF
17872 #line 17872 "configure"
17873 #include "confdefs.h"
17882 # define LT_DLGLOBAL RTLD_GLOBAL
17885 # define LT_DLGLOBAL DL_GLOBAL
17887 # define LT_DLGLOBAL 0
17891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17892 find out it does not work in some platform. */
17893 #ifndef LT_DLLAZY_OR_NOW
17895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17898 # define LT_DLLAZY_OR_NOW DL_LAZY
17901 # define LT_DLLAZY_OR_NOW RTLD_NOW
17904 # define LT_DLLAZY_OR_NOW DL_NOW
17906 # define LT_DLLAZY_OR_NOW 0
17914 extern "C" void exit (int);
17917 void fnord() { int i=42;}
17920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17921 int status = $lt_dlunknown;
17925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17926 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17927 /* dlclose (self); */
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936 (eval $ac_link) 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17940 (./conftest; exit; ) >&5 2>/dev/null
17942 case x$lt_status in
17943 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17944 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17945 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17948 # compilation failed
17949 lt_cv_dlopen_self_static=no
17956 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17957 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17960 CPPFLAGS="$save_CPPFLAGS"
17961 LDFLAGS="$save_LDFLAGS"
17966 case $lt_cv_dlopen_self in
17967 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17968 *) enable_dlopen_self=unknown ;;
17971 case $lt_cv_dlopen_self_static in
17972 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17973 *) enable_dlopen_self_static=unknown ;;
17978 # Report which library types will actually be built
17979 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17980 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17981 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17982 echo "${ECHO_T}$can_build_shared" >&6; }
17984 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17985 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17986 test "$can_build_shared" = "no" && enable_shared=no
17988 # On AIX, shared libraries and static libraries use the same namespace, and
17989 # are all built from PIC.
17992 test "$enable_shared" = yes && enable_static=no
17993 if test -n "$RANLIB"; then
17994 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17995 postinstall_cmds='$RANLIB $lib'
18000 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18001 test "$enable_shared" = yes && enable_static=no
18005 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18006 echo "${ECHO_T}$enable_shared" >&6; }
18008 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18009 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18010 # Make sure either enable_shared or enable_static is yes.
18011 test "$enable_shared" = yes || enable_static=yes
18012 { echo "$as_me:$LINENO: result: $enable_static" >&5
18013 echo "${ECHO_T}$enable_static" >&6; }
18015 # The else clause should only fire when bootstrapping the
18016 # libtool distribution, otherwise you forgot to ship ltmain.sh
18017 # with your package, and you will get complaints that there are
18018 # no rules to generate ltmain.sh.
18019 if test -f "$ltmain"; then
18020 # See if we are running on zsh, and set the options which allow our commands through
18021 # without removal of \ escapes.
18022 if test -n "${ZSH_VERSION+set}" ; then
18023 setopt NO_GLOB_SUBST
18025 # Now quote all the things that may contain metacharacters while being
18026 # careful not to overquote the AC_SUBSTed values. We take copies of the
18027 # variables and quote the copies for generation of the libtool script.
18028 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18030 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18031 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18032 deplibs_check_method reload_flag reload_cmds need_locks \
18033 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18034 lt_cv_sys_global_symbol_to_c_name_address \
18035 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18036 old_postinstall_cmds old_postuninstall_cmds \
18040 lt_prog_compiler_wl \
18041 lt_prog_compiler_pic \
18042 lt_prog_compiler_static \
18043 lt_prog_compiler_no_builtin_flag \
18044 export_dynamic_flag_spec \
18045 thread_safe_flag_spec \
18046 whole_archive_flag_spec \
18047 enable_shared_with_static_runtimes \
18049 old_archive_from_new_cmds \
18054 compiler_lib_search_path \
18056 archive_expsym_cmds \
18058 postuninstall_cmds \
18059 old_archive_from_expsyms_cmds \
18060 allow_undefined_flag \
18061 no_undefined_flag \
18062 export_symbols_cmds \
18063 hardcode_libdir_flag_spec \
18064 hardcode_libdir_flag_spec_ld \
18065 hardcode_libdir_separator \
18066 hardcode_automatic \
18068 module_expsym_cmds \
18069 lt_cv_prog_compiler_c_o \
18071 include_expsyms; do
18074 old_archive_cmds | \
18075 old_archive_from_new_cmds | \
18077 archive_expsym_cmds | \
18079 module_expsym_cmds | \
18080 old_archive_from_expsyms_cmds | \
18081 export_symbols_cmds | \
18082 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18083 postinstall_cmds | postuninstall_cmds | \
18084 old_postinstall_cmds | old_postuninstall_cmds | \
18085 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18086 # Double-quote double-evaled strings.
18087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18096 *'\$0 --fallback-echo"')
18097 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18101 cfgfile="${ofile}T"
18102 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18104 { echo "$as_me:$LINENO: creating $ofile" >&5
18105 echo "$as_me: creating $ofile" >&6;}
18107 cat <<__EOF__ >> "$cfgfile"
18110 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18111 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18112 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18114 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18115 # Free Software Foundation, Inc.
18117 # This file is part of GNU Libtool:
18118 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18120 # This program is free software; you can redistribute it and/or modify
18121 # it under the terms of the GNU General Public License as published by
18122 # the Free Software Foundation; either version 2 of the License, or
18123 # (at your option) any later version.
18125 # This program is distributed in the hope that it will be useful, but
18126 # WITHOUT ANY WARRANTY; without even the implied warranty of
18127 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18128 # General Public License for more details.
18130 # You should have received a copy of the GNU General Public License
18131 # along with this program; if not, write to the Free Software
18132 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18134 # As a special exception to the GNU General Public License, if you
18135 # distribute this file as part of a program that contains a
18136 # configuration script generated by Autoconf, you may include it under
18137 # the same distribution terms that you use for the rest of that program.
18139 # A sed program that does not truncate output.
18142 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18143 Xsed="$SED -e 1s/^X//"
18145 # The HP-UX ksh and POSIX shell print the target directory to stdout
18146 # if CDPATH is set.
18147 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18149 # The names of the tagged configurations supported by this script.
18152 # ### BEGIN LIBTOOL CONFIG
18154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18156 # Shell to use when invoking shell scripts.
18159 # Whether or not to build shared libraries.
18160 build_libtool_libs=$enable_shared
18162 # Whether or not to build static libraries.
18163 build_old_libs=$enable_static
18165 # Whether or not to add -lc for building shared libraries.
18166 build_libtool_need_lc=$archive_cmds_need_lc
18168 # Whether or not to disallow shared libs when runtime libs are static
18169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18171 # Whether or not to optimize for fast installation.
18172 fast_install=$enable_fast_install
18175 host_alias=$host_alias
18179 # The build system.
18180 build_alias=$build_alias
18184 # An echo program that does not interpret backslashes.
18189 AR_FLAGS=$lt_AR_FLAGS
18194 # LTCC compiler flags.
18195 LTCFLAGS=$lt_LTCFLAGS
18197 # A language-specific compiler.
18200 # Is the compiler the GNU C compiler?
18206 # The linker used to build libraries.
18209 # Whether we need hard or soft links.
18212 # A BSD-compatible nm program.
18215 # A symbol stripping program
18218 # Used to examine libraries when file_magic_cmd begins "file"
18219 MAGIC_CMD=$MAGIC_CMD
18221 # Used on cygwin: DLL creation program.
18224 # Used on cygwin: object dumper.
18227 # Used on cygwin: assembler.
18230 # The name of the directory that contains temporary libtool files.
18233 # How to create reloadable object files.
18234 reload_flag=$lt_reload_flag
18235 reload_cmds=$lt_reload_cmds
18237 # How to pass a linker flag through the compiler.
18238 wl=$lt_lt_prog_compiler_wl
18240 # Object file suffix (normally "o").
18241 objext="$ac_objext"
18243 # Old archive suffix (normally "a").
18246 # Shared library suffix (normally ".so").
18247 shrext_cmds='$shrext_cmds'
18249 # Executable file suffix (normally "").
18252 # Additional compiler flags for building library objects.
18253 pic_flag=$lt_lt_prog_compiler_pic
18256 # What is the maximum length of a command?
18257 max_cmd_len=$lt_cv_sys_max_cmd_len
18259 # Does compiler simultaneously support -c and -o options?
18260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18262 # Must we lock files when doing compilation?
18263 need_locks=$lt_need_locks
18265 # Do we need the lib prefix for modules?
18266 need_lib_prefix=$need_lib_prefix
18268 # Do we need a version for libraries?
18269 need_version=$need_version
18271 # Whether dlopen is supported.
18272 dlopen_support=$enable_dlopen
18274 # Whether dlopen of programs is supported.
18275 dlopen_self=$enable_dlopen_self
18277 # Whether dlopen of statically linked programs is supported.
18278 dlopen_self_static=$enable_dlopen_self_static
18280 # Compiler flag to prevent dynamic linking.
18281 link_static_flag=$lt_lt_prog_compiler_static
18283 # Compiler flag to turn off builtin functions.
18284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18286 # Compiler flag to allow reflexive dlopens.
18287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18289 # Compiler flag to generate shared objects directly from archives.
18290 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18292 # Compiler flag to generate thread-safe objects.
18293 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18295 # Library versioning type.
18296 version_type=$version_type
18298 # Format of library name prefix.
18299 libname_spec=$lt_libname_spec
18301 # List of archive names. First name is the real one, the rest are links.
18302 # The last name is the one that the linker finds with -lNAME.
18303 library_names_spec=$lt_library_names_spec
18305 # The coded name of the library, if different from the real name.
18306 soname_spec=$lt_soname_spec
18308 # Commands used to build and install an old-style archive.
18310 old_archive_cmds=$lt_old_archive_cmds
18311 old_postinstall_cmds=$lt_old_postinstall_cmds
18312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18314 # Create an old-style archive from a shared archive.
18315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18317 # Create a temporary old-style archive to link instead of a shared archive.
18318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18320 # Commands used to build and install a shared archive.
18321 archive_cmds=$lt_archive_cmds
18322 archive_expsym_cmds=$lt_archive_expsym_cmds
18323 postinstall_cmds=$lt_postinstall_cmds
18324 postuninstall_cmds=$lt_postuninstall_cmds
18326 # Commands used to build a loadable module (assumed same as above if empty)
18327 module_cmds=$lt_module_cmds
18328 module_expsym_cmds=$lt_module_expsym_cmds
18330 # Commands to strip libraries.
18331 old_striplib=$lt_old_striplib
18332 striplib=$lt_striplib
18334 # Dependencies to place before the objects being linked to create a
18336 predep_objects=$lt_predep_objects
18338 # Dependencies to place after the objects being linked to create a
18340 postdep_objects=$lt_postdep_objects
18342 # Dependencies to place before the objects being linked to create a
18344 predeps=$lt_predeps
18346 # Dependencies to place after the objects being linked to create a
18348 postdeps=$lt_postdeps
18350 # The library search path used internally by the compiler when linking
18351 # a shared library.
18352 compiler_lib_search_path=$lt_compiler_lib_search_path
18354 # Method to check whether dependent libraries are shared objects.
18355 deplibs_check_method=$lt_deplibs_check_method
18357 # Command to use when deplibs_check_method == file_magic.
18358 file_magic_cmd=$lt_file_magic_cmd
18360 # Flag that allows shared libraries with undefined symbols to be built.
18361 allow_undefined_flag=$lt_allow_undefined_flag
18363 # Flag that forces no undefined symbols.
18364 no_undefined_flag=$lt_no_undefined_flag
18366 # Commands used to finish a libtool library installation in a directory.
18367 finish_cmds=$lt_finish_cmds
18369 # Same as above, but a single script fragment to be evaled but not shown.
18370 finish_eval=$lt_finish_eval
18372 # Take the output of nm and produce a listing of raw symbols and C names.
18373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18375 # Transform the output of nm in a proper C declaration
18376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18378 # Transform the output of nm in a C name address pair
18379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18381 # This is the shared library runtime path variable.
18382 runpath_var=$runpath_var
18384 # This is the shared library path variable.
18385 shlibpath_var=$shlibpath_var
18387 # Is shlibpath searched before the hard-coded library search path?
18388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18390 # How to hardcode a shared library path into an executable.
18391 hardcode_action=$hardcode_action
18393 # Whether we should hardcode library paths into libraries.
18394 hardcode_into_libs=$hardcode_into_libs
18396 # Flag to hardcode \$libdir into a binary during linking.
18397 # This must work even if \$libdir does not exist.
18398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18400 # If ld is used when linking, flag to hardcode \$libdir into
18401 # a binary during linking. This must work even if \$libdir does
18403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18405 # Whether we need a single -rpath flag with a separated argument.
18406 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18409 # resulting binary.
18410 hardcode_direct=$hardcode_direct
18412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18413 # resulting binary.
18414 hardcode_minus_L=$hardcode_minus_L
18416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18417 # the resulting binary.
18418 hardcode_shlibpath_var=$hardcode_shlibpath_var
18420 # Set to yes if building a shared library automatically hardcodes DIR into the library
18421 # and all subsequent libraries and executables linked against it.
18422 hardcode_automatic=$hardcode_automatic
18424 # Variables whose values should be saved in libtool wrapper scripts and
18425 # restored at relink time.
18426 variables_saved_for_relink="$variables_saved_for_relink"
18428 # Whether libtool must link a program against all its dependency libraries.
18429 link_all_deplibs=$link_all_deplibs
18431 # Compile-time system search path for libraries
18432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18434 # Run-time system search path for libraries
18435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18437 # Fix the shell variable \$srcfile for the compiler.
18438 fix_srcfile_path="$fix_srcfile_path"
18440 # Set to yes if exported symbols are required.
18441 always_export_symbols=$always_export_symbols
18443 # The commands to list exported symbols.
18444 export_symbols_cmds=$lt_export_symbols_cmds
18446 # The commands to extract the exported symbol list from a shared archive.
18447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18449 # Symbols that should not be listed in the preloaded symbols.
18450 exclude_expsyms=$lt_exclude_expsyms
18452 # Symbols that must always be exported.
18453 include_expsyms=$lt_include_expsyms
18455 # ### END LIBTOOL CONFIG
18462 cat <<\EOF >> "$cfgfile"
18464 # AIX sometimes has problems with the GCC collect2 program. For some
18465 # reason, if we set the COLLECT_NAMES environment variable, the problems
18466 # vanish in a puff of smoke.
18467 if test "X${COLLECT_NAMES+set}" != Xset; then
18469 export COLLECT_NAMES
18475 # We use sed instead of cat because bash on DJGPP gets confused if
18476 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18477 # text mode, it properly converts lines to CR/LF. This bash problem
18478 # is reportedly fixed, but why not run on old versions too?
18479 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18481 mv -f "$cfgfile" "$ofile" || \
18482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18486 # If there is no Makefile yet, we rely on a make rule to execute
18487 # `config.status --recheck' to rerun these tests and create the
18488 # libtool script then.
18489 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18490 if test -f "$ltmain_in"; then
18491 test -f Makefile && make "$ltmain"
18497 ac_cpp='$CPP $CPPFLAGS'
18498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18505 # Check whether --with-tags was given.
18506 if test "${with_tags+set}" = set; then
18507 withval=$with_tags; tagnames="$withval"
18511 if test -f "$ltmain" && test -n "$tagnames"; then
18512 if test ! -f "${ofile}"; then
18513 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18514 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18517 if test -z "$LTCC"; then
18518 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18519 if test -z "$LTCC"; then
18520 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18521 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18523 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18524 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18527 if test -z "$LTCFLAGS"; then
18528 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18531 # Extract list of available tagged configurations in $ofile.
18532 # Note that this assumes the entire list is on one line.
18533 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18536 for tagname in $tagnames; do
18538 # Check whether tagname contains only valid characters
18539 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18541 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18542 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18543 { (exit 1); exit 1; }; }
18547 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18549 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18550 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18551 { (exit 1); exit 1; }; }
18554 # Update the list of available tags.
18555 if test -n "$tagname"; then
18556 echo appending configuration tag \"$tagname\" to $ofile
18560 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18561 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18562 (test "X$CXX" != "Xg++"))) ; then
18564 ac_cpp='$CXXCPP $CPPFLAGS'
18565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18572 archive_cmds_need_lc_CXX=no
18573 allow_undefined_flag_CXX=
18574 always_export_symbols_CXX=no
18575 archive_expsym_cmds_CXX=
18576 export_dynamic_flag_spec_CXX=
18577 hardcode_direct_CXX=no
18578 hardcode_libdir_flag_spec_CXX=
18579 hardcode_libdir_flag_spec_ld_CXX=
18580 hardcode_libdir_separator_CXX=
18581 hardcode_minus_L_CXX=no
18582 hardcode_shlibpath_var_CXX=unsupported
18583 hardcode_automatic_CXX=no
18585 module_expsym_cmds_CXX=
18586 link_all_deplibs_CXX=unknown
18587 old_archive_cmds_CXX=$old_archive_cmds
18588 no_undefined_flag_CXX=
18589 whole_archive_flag_spec_CXX=
18590 enable_shared_with_static_runtimes_CXX=no
18592 # Dependencies to place before and after the object being linked:
18593 predep_objects_CXX=
18594 postdep_objects_CXX=
18597 compiler_lib_search_path_CXX=
18599 # Source file extension for C++ test sources.
18602 # Object file extension for compiled C++ test sources.
18606 # Code to be used in simple compile tests
18607 lt_simple_compile_test_code="int some_variable = 0;\n"
18609 # Code to be used in simple link tests
18610 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18612 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18614 # If no C compiler was specified, use CC.
18617 # If no C compiler flags were specified, use CFLAGS.
18618 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18620 # Allow CC to be a program name with arguments.
18624 # save warnings/boilerplate of simple test code
18625 ac_outfile=conftest.$ac_objext
18626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18628 _lt_compiler_boilerplate=`cat conftest.err`
18631 ac_outfile=conftest.$ac_objext
18632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18634 _lt_linker_boilerplate=`cat conftest.err`
18638 # Allow CC to be a program name with arguments.
18643 lt_save_with_gnu_ld=$with_gnu_ld
18644 lt_save_path_LD=$lt_cv_path_LD
18645 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18646 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18648 $as_unset lt_cv_prog_gnu_ld
18650 if test -n "${lt_cv_path_LDCXX+set}"; then
18651 lt_cv_path_LD=$lt_cv_path_LDCXX
18653 $as_unset lt_cv_path_LD
18655 test -z "${LDCXX+set}" || LD=$LDCXX
18659 for cc_temp in $compiler""; do
18661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18670 # We don't want -fno-exception wen compiling C++ code, so set the
18671 # no_builtin_flag separately
18672 if test "$GXX" = yes; then
18673 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18675 lt_prog_compiler_no_builtin_flag_CXX=
18678 if test "$GXX" = yes; then
18679 # Set up default GNU C++ configuration
18682 # Check whether --with-gnu-ld was given.
18683 if test "${with_gnu_ld+set}" = set; then
18684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18690 if test "$GCC" = yes; then
18691 # Check if gcc -print-prog-name=ld gives a path.
18692 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18693 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18696 # gcc leaves a trailing carriage return which upsets mingw
18697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18702 # Accept absolute paths.
18704 re_direlt='/[^/][^/]*/\.\./'
18705 # Canonicalize the pathname of ld
18706 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18707 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18708 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18710 test -z "$LD" && LD="$ac_prog"
18713 # If it fails, then pretend we aren't using GCC.
18717 # If it is relative, then search for the first ld in PATH.
18718 with_gnu_ld=unknown
18721 elif test "$with_gnu_ld" = yes; then
18722 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18723 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18725 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18726 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18728 if test "${lt_cv_path_LD+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 if test -z "$LD"; then
18732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18733 for ac_dir in $PATH; do
18735 test -z "$ac_dir" && ac_dir=.
18736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18737 lt_cv_path_LD="$ac_dir/$ac_prog"
18738 # Check to see if the program is GNU ld. I'd rather use --version,
18739 # but apparently some variants of GNU ld only accept -v.
18740 # Break only if it was the GNU/non-GNU ld that we prefer.
18741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18742 *GNU* | *'with BFD'*)
18743 test "$with_gnu_ld" != no && break
18746 test "$with_gnu_ld" != yes && break
18753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18757 LD="$lt_cv_path_LD"
18758 if test -n "$LD"; then
18759 { echo "$as_me:$LINENO: result: $LD" >&5
18760 echo "${ECHO_T}$LD" >&6; }
18762 { echo "$as_me:$LINENO: result: no" >&5
18763 echo "${ECHO_T}no" >&6; }
18765 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18766 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18767 { (exit 1); exit 1; }; }
18768 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18769 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18770 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18774 case `$LD -v 2>&1 </dev/null` in
18775 *GNU* | *'with BFD'*)
18776 lt_cv_prog_gnu_ld=yes
18779 lt_cv_prog_gnu_ld=no
18783 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18784 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18785 with_gnu_ld=$lt_cv_prog_gnu_ld
18789 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18790 # archiving commands below assume that GNU ld is being used.
18791 if test "$with_gnu_ld" = yes; then
18792 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18793 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'
18795 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18798 # If archive_cmds runs LD, not CC, wlarc should be empty
18799 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18800 # investigate it a little bit more. (MM)
18803 # ancient GNU ld didn't support --whole-archive et. al.
18804 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18805 grep 'no-whole-archive' > /dev/null; then
18806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18808 whole_archive_flag_spec_CXX=
18814 # A generic and very simple default shared library creation
18815 # command for GNU C++ for the case where it uses the native
18816 # linker, instead of GNU ld. If possible, this setting should
18817 # overridden to take advantage of the native linker features on
18818 # the platform it is being used on.
18819 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18822 # Commands to make compiler produce verbose output that lists
18823 # what "hidden" libraries, object files and flags are used when
18824 # linking a shared library.
18825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18833 # PORTME: fill in a description of your system's C++ link characteristics
18834 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18839 # FIXME: insert proper C++ library support
18843 if test "$host_cpu" = ia64; then
18844 # On IA64, the linker does run time linking by default, so we don't
18845 # have to do anything special.
18846 aix_use_runtimelinking=no
18847 exp_sym_flag='-Bexport'
18850 aix_use_runtimelinking=no
18852 # Test if we are trying to use run time linking or normal
18853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18854 # need to do runtime linking.
18855 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18856 for ld_flag in $LDFLAGS; do
18859 aix_use_runtimelinking=yes
18867 exp_sym_flag='-bexport'
18868 no_entry_flag='-bnoentry'
18871 # When large executables or shared objects are built, AIX ld can
18872 # have problems creating the table of contents. If linking a library
18873 # or program results in "error TOC overflow" add -mminimal-toc to
18874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18877 archive_cmds_CXX=''
18878 hardcode_direct_CXX=yes
18879 hardcode_libdir_separator_CXX=':'
18880 link_all_deplibs_CXX=yes
18882 if test "$GXX" = yes; then
18883 case $host_os in aix4.[012]|aix4.[012].*)
18884 # We only want to do this on AIX 4.2 and lower, the check
18885 # below for broken collect2 doesn't work under 4.3+
18886 collect2name=`${CC} -print-prog-name=collect2`
18887 if test -f "$collect2name" && \
18888 strings "$collect2name" | grep resolve_lib_name >/dev/null
18890 # We have reworked collect2
18891 hardcode_direct_CXX=yes
18893 # We have old collect2
18894 hardcode_direct_CXX=unsupported
18895 # It fails to find uninstalled libraries when the uninstalled
18896 # path is not listed in the libpath. Setting hardcode_minus_L
18897 # to unsupported forces relinking
18898 hardcode_minus_L_CXX=yes
18899 hardcode_libdir_flag_spec_CXX='-L$libdir'
18900 hardcode_libdir_separator_CXX=
18904 shared_flag='-shared'
18905 if test "$aix_use_runtimelinking" = yes; then
18906 shared_flag="$shared_flag "'${wl}-G'
18910 if test "$host_cpu" = ia64; then
18911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18912 # chokes on -Wl,-G. The following line is correct:
18915 if test "$aix_use_runtimelinking" = yes; then
18916 shared_flag='${wl}-G'
18918 shared_flag='${wl}-bM:SRE'
18923 # It seems that -bexpall does not export symbols beginning with
18924 # underscore (_), so it is better to generate a list of symbols to export.
18925 always_export_symbols_CXX=yes
18926 if test "$aix_use_runtimelinking" = yes; then
18927 # Warning - without using the other runtime loading flags (-brtl),
18928 # -berok will link without error, but may produce a broken library.
18929 allow_undefined_flag_CXX='-berok'
18930 # Determine the default libpath from the value encoded in an empty executable.
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_link") 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18961 { (case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_try") 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try='test -s conftest$ac_exeext'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18983 # Check for a 64-bit object if we didn't find anything.
18984 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; }
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18993 rm -f core conftest.err conftest.$ac_objext \
18994 conftest$ac_exeext conftest.$ac_ext
18995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18997 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18999 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"
19001 if test "$host_cpu" = ia64; then
19002 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19003 allow_undefined_flag_CXX="-z nodefs"
19004 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"
19006 # Determine the default libpath from the value encoded in an empty executable.
19007 cat >conftest.$ac_ext <<_ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h. */
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19031 grep -v '^ *+' conftest.er1 >conftest.err
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19037 { (case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_try") 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19059 # Check for a 64-bit object if we didn't find anything.
19060 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; }
19063 echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19069 rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19073 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19074 # Warning - without using the other run time loading flags,
19075 # -berok will link without error, but may produce a broken library.
19076 no_undefined_flag_CXX=' ${wl}-bernotok'
19077 allow_undefined_flag_CXX=' ${wl}-berok'
19078 # Exported symbols can be pulled into shared objects from archives
19079 whole_archive_flag_spec_CXX='$convenience'
19080 archive_cmds_need_lc_CXX=yes
19081 # This is similar to how AIX traditionally builds its shared libraries.
19082 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'
19088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19089 allow_undefined_flag_CXX=unsupported
19090 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19091 # support --undefined. This deserves some investigation. FIXME
19092 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19099 case $cc_basename in
19101 # FIXME: insert proper C++ library support
19107 cygwin* | mingw* | pw32*)
19108 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19109 # as there is no search path for DLLs.
19110 hardcode_libdir_flag_spec_CXX='-L$libdir'
19111 allow_undefined_flag_CXX=unsupported
19112 always_export_symbols_CXX=no
19113 enable_shared_with_static_runtimes_CXX=yes
19115 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19116 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'
19117 # If the export-symbols file already is a .def file (1st line
19118 # is EXPORTS), use it as is; otherwise, prepend...
19119 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19120 cp $export_symbols $output_objdir/$soname.def;
19122 echo EXPORTS > $output_objdir/$soname.def;
19123 cat $export_symbols >> $output_objdir/$soname.def;
19125 $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'
19130 darwin* | rhapsody*)
19132 rhapsody* | darwin1.[012])
19133 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19137 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19139 case ${MACOSX_DEPLOYMENT_TARGET} in
19141 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19144 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19150 archive_cmds_need_lc_CXX=no
19151 hardcode_direct_CXX=no
19152 hardcode_automatic_CXX=yes
19153 hardcode_shlibpath_var_CXX=unsupported
19154 whole_archive_flag_spec_CXX=''
19155 link_all_deplibs_CXX=yes
19157 if test "$GXX" = yes ; then
19158 lt_int_apple_cc_single_mod=no
19159 output_verbose_link_cmd='echo'
19160 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19161 lt_int_apple_cc_single_mod=yes
19163 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19164 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19166 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'
19168 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19171 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}'
19173 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}'
19175 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}'
19177 case $cc_basename in
19179 output_verbose_link_cmd='echo'
19180 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'
19181 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19183 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}'
19184 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}'
19194 case $cc_basename in
19196 # FIXME: insert proper C++ library support
19200 # Green Hills C++ Compiler
19201 # FIXME: insert proper C++ library support
19205 # FIXME: insert proper C++ library support
19211 # C++ shared libraries reported to be fairly broken before switch to ELF
19215 archive_cmds_need_lc_CXX=no
19217 freebsd* | kfreebsd*-gnu | dragonfly*)
19218 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19225 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19226 hardcode_libdir_separator_CXX=:
19227 export_dynamic_flag_spec_CXX='${wl}-E'
19228 hardcode_direct_CXX=yes
19229 hardcode_minus_L_CXX=yes # Not in the search PATH,
19230 # but as the default
19231 # location of the library.
19233 case $cc_basename in
19235 # FIXME: insert proper C++ library support
19239 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'
19240 # Commands to make compiler produce verbose output that lists
19241 # what "hidden" libraries, object files and flags are used when
19242 # linking a shared library.
19244 # There doesn't appear to be a way to prevent this compiler from
19245 # explicitly linking system object files so we need to strip them
19246 # from the output so that they don't get included in the library
19248 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'
19251 if test "$GXX" = yes; then
19252 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'
19254 # FIXME: insert proper C++ library support
19261 if test $with_gnu_ld = no; then
19262 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19267 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19270 export_dynamic_flag_spec_CXX='${wl}-E'
19276 hardcode_direct_CXX=no
19277 hardcode_shlibpath_var_CXX=no
19280 hardcode_direct_CXX=yes
19281 hardcode_minus_L_CXX=yes # Not in the search PATH,
19282 # but as the default
19283 # location of the library.
19287 case $cc_basename in
19289 # FIXME: insert proper C++ library support
19295 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19298 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19301 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19304 # Commands to make compiler produce verbose output that lists
19305 # what "hidden" libraries, object files and flags are used when
19306 # linking a shared library.
19308 # There doesn't appear to be a way to prevent this compiler from
19309 # explicitly linking system object files so we need to strip them
19310 # from the output so that they don't get included in the library
19312 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'
19315 if test "$GXX" = yes; then
19316 if test $with_gnu_ld = no; then
19319 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19322 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19325 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'
19330 # FIXME: insert proper C++ library support
19337 hardcode_direct_CXX=no
19338 hardcode_shlibpath_var_CXX=no
19339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19340 export_dynamic_flag_spec_CXX='${wl}-E'
19341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19342 # Instead, shared libraries are loaded at an image base (0x10000000 by
19343 # default) and relocated if they conflict, which is a slow very memory
19344 # consuming and fragmenting process. To avoid this, we pick a random,
19345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19346 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19347 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'
19348 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'
19351 case $cc_basename in
19354 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'
19356 # Archives containing C++ object files must be created using
19357 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19358 # necessary to make sure instantiated templates are included
19360 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19363 if test "$GXX" = yes; then
19364 if test "$with_gnu_ld" = no; then
19365 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'
19367 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'
19370 link_all_deplibs_CXX=yes
19373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19374 hardcode_libdir_separator_CXX=:
19377 case $cc_basename in
19379 # Kuck and Associates, Inc. (KAI) C++ Compiler
19381 # KCC will only create a shared library if the output file
19382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19383 # to its proper name (with version) after linking.
19384 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'
19385 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'
19386 # Commands to make compiler produce verbose output that lists
19387 # what "hidden" libraries, object files and flags are used when
19388 # linking a shared library.
19390 # There doesn't appear to be a way to prevent this compiler from
19391 # explicitly linking system object files so we need to strip them
19392 # from the output so that they don't get included in the library
19394 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'
19396 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19399 # Archives containing C++ object files must be created using
19400 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19401 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19406 # version 8.0 and above of icpc choke on multiply defined symbols
19407 # if we add $predep_objects and $postdep_objects, however 7.1 and
19408 # earlier do not add the objects themselves.
19409 case `$CC -V 2>&1` in
19411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19412 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'
19414 *) # Version 8.0 or newer
19417 ia64*) tmp_idyn=' -i_dynamic';;
19419 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19420 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'
19423 archive_cmds_need_lc_CXX=no
19424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19426 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19429 # Portland Group C++ compiler
19430 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19431 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'
19433 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435 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'
19439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19440 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'
19442 runpath_var=LD_RUN_PATH
19443 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19444 hardcode_libdir_separator_CXX=:
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19450 # There doesn't appear to be a way to prevent this compiler from
19451 # explicitly linking system object files so we need to strip them
19452 # from the output so that they don't get included in the library
19454 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'
19459 # FIXME: insert proper C++ library support
19463 # FIXME: insert proper C++ library support
19467 case $cc_basename in
19469 # FIXME: insert proper C++ library support
19473 # FIXME: insert proper C++ library support
19479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19480 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19482 hardcode_libdir_flag_spec_CXX='-R$libdir'
19483 hardcode_direct_CXX=yes
19484 hardcode_shlibpath_var_CXX=no
19486 # Workaround some broken pre-1.5 toolchains
19487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19490 # C++ shared libraries are fairly broken
19494 hardcode_direct_CXX=yes
19495 hardcode_shlibpath_var_CXX=no
19496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19499 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19500 export_dynamic_flag_spec_CXX='${wl}-E'
19501 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19503 output_verbose_link_cmd='echo'
19506 case $cc_basename in
19508 # Kuck and Associates, Inc. (KAI) C++ Compiler
19510 # KCC will only create a shared library if the output file
19511 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19512 # to its proper name (with version) after linking.
19513 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'
19515 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19516 hardcode_libdir_separator_CXX=:
19518 # Archives containing C++ object files must be created using
19519 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19520 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19524 # Rational C++ 2.4.1
19525 # FIXME: insert proper C++ library support
19529 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19530 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'
19532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19533 hardcode_libdir_separator_CXX=:
19535 # Commands to make compiler produce verbose output that lists
19536 # what "hidden" libraries, object files and flags are used when
19537 # linking a shared library.
19539 # There doesn't appear to be a way to prevent this compiler from
19540 # explicitly linking system object files so we need to strip them
19541 # from the output so that they don't get included in the library
19543 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'
19546 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19547 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19548 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'
19550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19551 hardcode_libdir_separator_CXX=:
19553 # Commands to make compiler produce verbose output that lists
19554 # what "hidden" libraries, object files and flags are used when
19555 # linking a shared library.
19556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19559 # FIXME: insert proper C++ library support
19566 case $cc_basename in
19568 # Kuck and Associates, Inc. (KAI) C++ Compiler
19570 # KCC will only create a shared library if the output file
19571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19572 # to its proper name (with version) after linking.
19573 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'
19575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19576 hardcode_libdir_separator_CXX=:
19578 # Archives containing C++ object files must be created using
19579 # the KAI C++ compiler.
19580 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19583 # Rational C++ 2.4.1
19584 # FIXME: insert proper C++ library support
19588 allow_undefined_flag_CXX=' -expect_unresolved \*'
19589 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'
19590 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19591 echo "-hidden">> $lib.exp~
19592 $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~
19595 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19596 hardcode_libdir_separator_CXX=:
19598 # Commands to make compiler produce verbose output that lists
19599 # what "hidden" libraries, object files and flags are used when
19600 # linking a shared library.
19602 # There doesn't appear to be a way to prevent this compiler from
19603 # explicitly linking system object files so we need to strip them
19604 # from the output so that they don't get included in the library
19606 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'
19609 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19610 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19611 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'
19613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19614 hardcode_libdir_separator_CXX=:
19616 # Commands to make compiler produce verbose output that lists
19617 # what "hidden" libraries, object files and flags are used when
19618 # linking a shared library.
19619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19622 # FIXME: insert proper C++ library support
19629 # FIXME: insert proper C++ library support
19633 case $cc_basename in
19636 # FIXME: insert proper C++ library support
19641 # FIXME: insert proper C++ library support
19645 # FIXME: insert proper C++ library support
19651 case $cc_basename in
19653 # Sun C++ 4.2, 5.x and Centerline C++
19654 archive_cmds_need_lc_CXX=yes
19655 no_undefined_flag_CXX=' -zdefs'
19656 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19657 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19658 $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'
19660 hardcode_libdir_flag_spec_CXX='-R$libdir'
19661 hardcode_shlibpath_var_CXX=no
19663 solaris2.[0-5] | solaris2.[0-5].*) ;;
19665 # The C++ compiler is used as linker so we must use $wl
19666 # flag to pass the commands to the underlying system
19667 # linker. We must also pass each convience library through
19668 # to the system linker between allextract/defaultextract.
19669 # The C++ compiler will combine linker options so we
19670 # cannot just pass the convience library names through
19672 # Supported since Solaris 2.6 (maybe 2.5.1?)
19673 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'
19676 link_all_deplibs_CXX=yes
19678 output_verbose_link_cmd='echo'
19680 # Archives containing C++ object files must be created using
19681 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19682 # necessary to make sure instantiated templates are included
19684 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19687 # Green Hills C++ Compiler
19688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19690 # The C++ compiler must be used to create the archive.
19691 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19694 # GNU C++ compiler with Solaris linker
19695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19696 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19697 if $CC --version | grep -v '^2\.7' > /dev/null; then
19698 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19699 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19700 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19702 # Commands to make compiler produce verbose output that lists
19703 # what "hidden" libraries, object files and flags are used when
19704 # linking a shared library.
19705 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19707 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19709 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19710 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19711 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19713 # Commands to make compiler produce verbose output that lists
19714 # what "hidden" libraries, object files and flags are used when
19715 # linking a shared library.
19716 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19719 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19725 no_undefined_flag_CXX='${wl}-z,text'
19726 archive_cmds_need_lc_CXX=no
19727 hardcode_shlibpath_var_CXX=no
19728 runpath_var='LD_RUN_PATH'
19730 case $cc_basename in
19732 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19733 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19736 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19737 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 sysv5* | sco3.2v5* | sco5v6*)
19742 # Note: We can NOT use -z defs as we might desire, because we do not
19743 # link with -lc, and that would cause any symbols used from libc to
19744 # always be unresolved, which means just about no library would
19745 # ever link correctly. If we're not using GNU ld we use -z text
19746 # though, which does catch some bad symbols but isn't as heavy-handed
19748 # For security reasons, it is highly recommended that you always
19749 # use absolute paths for naming shared libraries, and exclude the
19750 # DT_RUNPATH tag from executables and libraries. But doing so
19751 # requires that you compile everything twice, which is a pain.
19752 # So that behaviour is only enabled if SCOABSPATH is set to a
19753 # non-empty value in the environment. Most likely only useful for
19754 # creating official distributions of packages.
19755 # This is a hack until libtool officially supports absolute path
19756 # names for shared libraries.
19757 no_undefined_flag_CXX='${wl}-z,text'
19758 allow_undefined_flag_CXX='${wl}-z,nodefs'
19759 archive_cmds_need_lc_CXX=no
19760 hardcode_shlibpath_var_CXX=no
19761 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19762 hardcode_libdir_separator_CXX=':'
19763 link_all_deplibs_CXX=yes
19764 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19765 runpath_var='LD_RUN_PATH'
19767 case $cc_basename in
19769 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19779 case $cc_basename in
19781 # NonStop-UX NCC 3.20
19782 # FIXME: insert proper C++ library support
19786 # FIXME: insert proper C++ library support
19792 # FIXME: insert proper C++ library support
19796 # FIXME: insert proper C++ library support
19800 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19801 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19802 test "$ld_shlibs_CXX" = no && can_build_shared=no
19808 cat > conftest.$ac_ext <<EOF
19812 Foo (void) { a = 0; }
19818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19819 (eval $ac_compile) 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; then
19823 # Parse the compiler output and extract the necessary
19824 # objects, libraries and library flags.
19826 # Sentinel used to keep track of whether or not we are before
19827 # the conftest object file.
19828 pre_test_object_deps_done=no
19830 # The `*' in the case matches for architectures that use `case' in
19831 # $output_verbose_cmd can trigger glob expansion during the loop
19832 # eval without this substitution.
19833 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19835 for p in `eval $output_verbose_link_cmd`; do
19839 # Some compilers place space between "-{L,R}" and the path.
19840 # Remove the space.
19841 if test $p = "-L" \
19842 || test $p = "-R"; then
19849 if test "$pre_test_object_deps_done" = no; then
19852 # Internal compiler library paths should come after those
19853 # provided the user. The postdeps already come after the
19854 # user supplied libs so there is no need to process them.
19855 if test -z "$compiler_lib_search_path_CXX"; then
19856 compiler_lib_search_path_CXX="${prev}${p}"
19858 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19861 # The "-l" case would never come before the object being
19862 # linked, so don't bother handling this case.
19865 if test -z "$postdeps_CXX"; then
19866 postdeps_CXX="${prev}${p}"
19868 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19874 # This assumes that the test object file only shows up
19875 # once in the compiler output.
19876 if test "$p" = "conftest.$objext"; then
19877 pre_test_object_deps_done=yes
19881 if test "$pre_test_object_deps_done" = no; then
19882 if test -z "$predep_objects_CXX"; then
19883 predep_objects_CXX="$p"
19885 predep_objects_CXX="$predep_objects_CXX $p"
19888 if test -z "$postdep_objects_CXX"; then
19889 postdep_objects_CXX="$p"
19891 postdep_objects_CXX="$postdep_objects_CXX $p"
19896 *) ;; # Ignore the rest.
19904 echo "libtool.m4: error: problem compiling CXX test program"
19907 $rm -f confest.$objext
19909 # PORTME: override above test on systems where it is broken
19912 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19913 # hack all around it, let's just trust "g++" to DTRT.
19914 predep_objects_CXX=
19915 postdep_objects_CXX=
19920 case $cc_basename in
19922 # Adding this requires a known-good setup of shared libraries for
19923 # Sun compiler versions before 5.6, else PIC objects from an old
19924 # archive will be linked into the output, leading to subtle bugs.
19925 postdeps_CXX='-lCstd -lCrun'
19932 case " $postdeps_CXX " in
19933 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19936 lt_prog_compiler_wl_CXX=
19937 lt_prog_compiler_pic_CXX=
19938 lt_prog_compiler_static_CXX=
19940 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19941 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19943 # C++ specific cases for pic, static, wl, etc.
19944 if test "$GXX" = yes; then
19945 lt_prog_compiler_wl_CXX='-Wl,'
19946 lt_prog_compiler_static_CXX='-static'
19950 # All AIX code is PIC.
19951 if test "$host_cpu" = ia64; then
19952 # AIX 5 now supports IA64 processor
19953 lt_prog_compiler_static_CXX='-Bstatic'
19957 # FIXME: we need at least 68020 code to build shared libraries, but
19958 # adding the `-m68020' flag to GCC prevents building anything better,
19960 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19962 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19963 # PIC is the default for these OSes.
19965 mingw* | os2* | pw32*)
19966 # This hack is so that the source file can tell whether it is being
19967 # built for inclusion in a dll (and should export symbols for example).
19968 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19970 darwin* | rhapsody*)
19971 # PIC is the default on this platform
19972 # Common symbols not allowed in MH_DYLIB files
19973 lt_prog_compiler_pic_CXX='-fno-common'
19976 # DJGPP does not support shared libraries at all
19977 lt_prog_compiler_pic_CXX=
19980 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19981 # Instead, we relocate shared libraries at runtime.
19984 if test -d /usr/nec; then
19985 lt_prog_compiler_pic_CXX=-Kconform_pic
19989 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19990 # not for PA HP-UX.
19995 lt_prog_compiler_pic_CXX='-fPIC'
20000 lt_prog_compiler_pic_CXX='-fPIC'
20006 # All AIX code is PIC.
20007 if test "$host_cpu" = ia64; then
20008 # AIX 5 now supports IA64 processor
20009 lt_prog_compiler_static_CXX='-Bstatic'
20011 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20015 case $cc_basename in
20017 # Green Hills C++ Compiler
20018 # _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"
20023 # PIC is the default on this platform
20024 # Common symbols not allowed in MH_DYLIB files
20025 case $cc_basename in
20027 lt_prog_compiler_pic_CXX='-qnocommon'
20028 lt_prog_compiler_wl_CXX='-Wl,'
20033 case $cc_basename in
20035 lt_prog_compiler_pic_CXX='-KPIC'
20038 # Green Hills C++ Compiler
20039 lt_prog_compiler_pic_CXX='-pic'
20045 freebsd* | kfreebsd*-gnu | dragonfly*)
20046 # FreeBSD uses GNU C++
20048 hpux9* | hpux10* | hpux11*)
20049 case $cc_basename in
20051 lt_prog_compiler_wl_CXX='-Wl,'
20052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20053 if test "$host_cpu" != ia64; then
20054 lt_prog_compiler_pic_CXX='+Z'
20058 lt_prog_compiler_wl_CXX='-Wl,'
20059 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20065 lt_prog_compiler_pic_CXX='+Z'
20074 # This is c89, which is MS Visual C++ (no shared libs)
20075 # Anyone wants to do a port?
20077 irix5* | irix6* | nonstopux*)
20078 case $cc_basename in
20080 lt_prog_compiler_wl_CXX='-Wl,'
20081 lt_prog_compiler_static_CXX='-non_shared'
20082 # CC pic flag -KPIC is the default.
20089 case $cc_basename in
20092 lt_prog_compiler_wl_CXX='--backend -Wl,'
20093 lt_prog_compiler_pic_CXX='-fPIC'
20097 lt_prog_compiler_wl_CXX='-Wl,'
20098 lt_prog_compiler_pic_CXX='-KPIC'
20099 lt_prog_compiler_static_CXX='-static'
20102 # Portland Group C++ compiler.
20103 lt_prog_compiler_wl_CXX='-Wl,'
20104 lt_prog_compiler_pic_CXX='-fpic'
20105 lt_prog_compiler_static_CXX='-Bstatic'
20109 # Make sure the PIC flag is empty. It appears that all Alpha
20110 # Linux and Compaq Tru64 Unix objects are PIC.
20111 lt_prog_compiler_pic_CXX=
20112 lt_prog_compiler_static_CXX='-non_shared'
20123 case $cc_basename in
20125 lt_prog_compiler_pic_CXX='-W c,exportall'
20133 osf3* | osf4* | osf5*)
20134 case $cc_basename in
20136 lt_prog_compiler_wl_CXX='--backend -Wl,'
20139 # Rational C++ 2.4.1
20140 lt_prog_compiler_pic_CXX='-pic'
20143 # Digital/Compaq C++
20144 lt_prog_compiler_wl_CXX='-Wl,'
20145 # Make sure the PIC flag is empty. It appears that all Alpha
20146 # Linux and Compaq Tru64 Unix objects are PIC.
20147 lt_prog_compiler_pic_CXX=
20148 lt_prog_compiler_static_CXX='-non_shared'
20157 case $cc_basename in
20159 # Sun C++ 4.2, 5.x and Centerline C++
20160 lt_prog_compiler_pic_CXX='-KPIC'
20161 lt_prog_compiler_static_CXX='-Bstatic'
20162 lt_prog_compiler_wl_CXX='-Qoption ld '
20165 # Green Hills C++ Compiler
20166 lt_prog_compiler_pic_CXX='-PIC'
20173 case $cc_basename in
20176 lt_prog_compiler_pic_CXX='-pic'
20177 lt_prog_compiler_static_CXX='-Bstatic'
20181 lt_prog_compiler_pic_CXX='-pic'
20188 case $cc_basename in
20190 # NonStop-UX NCC 3.20
20191 lt_prog_compiler_pic_CXX='-KPIC'
20197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20198 case $cc_basename in
20200 lt_prog_compiler_wl_CXX='-Wl,'
20201 lt_prog_compiler_pic_CXX='-KPIC'
20202 lt_prog_compiler_static_CXX='-Bstatic'
20209 lt_prog_compiler_can_build_shared_CXX=no
20214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20215 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20218 # Check to make sure the PIC flag actually works.
20220 if test -n "$lt_prog_compiler_pic_CXX"; then
20222 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20223 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20224 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 lt_prog_compiler_pic_works_CXX=no
20228 ac_outfile=conftest.$ac_objext
20229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20230 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20231 # Insert the option either (1) after the last *FLAGS variable, or
20232 # (2) before a word containing "conftest.", or (3) at the end.
20233 # Note that $ac_compile itself does not contain backslashes and begins
20234 # with a dollar sign (not a hyphen), so the echo should work correctly.
20235 # The option is referenced via a variable to avoid confusing sed.
20236 lt_compile=`echo "$ac_compile" | $SED \
20237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20239 -e 's:$: $lt_compiler_flag:'`
20240 (eval echo "\"\$as_me:20240: $lt_compile\"" >&5)
20241 (eval "$lt_compile" 2>conftest.err)
20243 cat conftest.err >&5
20244 echo "$as_me:20244: \$? = $ac_status" >&5
20245 if (exit $ac_status) && test -s "$ac_outfile"; then
20246 # The compiler can only warn and ignore the option if not recognized
20247 # So say no if there are warnings other than the usual output.
20248 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20251 lt_prog_compiler_pic_works_CXX=yes
20257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20258 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20260 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20261 case $lt_prog_compiler_pic_CXX in
20263 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20266 lt_prog_compiler_pic_CXX=
20267 lt_prog_compiler_can_build_shared_CXX=no
20272 # For platforms which do not support PIC, -DPIC is meaningless:
20274 lt_prog_compiler_pic_CXX=
20277 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20282 # Check to make sure the static flag actually works.
20284 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20285 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20286 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20287 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 lt_prog_compiler_static_works_CXX=no
20291 save_LDFLAGS="$LDFLAGS"
20292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20293 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20295 # The linker can only warn and ignore the option if not recognized
20296 # So say no if there are warnings
20297 if test -s conftest.err; then
20298 # Append any errors to the config.log.
20299 cat conftest.err 1>&5
20300 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20302 if diff conftest.exp conftest.er2 >/dev/null; then
20303 lt_prog_compiler_static_works_CXX=yes
20306 lt_prog_compiler_static_works_CXX=yes
20310 LDFLAGS="$save_LDFLAGS"
20313 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20314 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20316 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20319 lt_prog_compiler_static_CXX=
20323 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20324 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20325 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 lt_cv_prog_compiler_c_o_CXX=no
20329 $rm -r conftest 2>/dev/null
20333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20335 lt_compiler_flag="-o out/conftest2.$ac_objext"
20336 # Insert the option either (1) after the last *FLAGS variable, or
20337 # (2) before a word containing "conftest.", or (3) at the end.
20338 # Note that $ac_compile itself does not contain backslashes and begins
20339 # with a dollar sign (not a hyphen), so the echo should work correctly.
20340 lt_compile=`echo "$ac_compile" | $SED \
20341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20343 -e 's:$: $lt_compiler_flag:'`
20344 (eval echo "\"\$as_me:20344: $lt_compile\"" >&5)
20345 (eval "$lt_compile" 2>out/conftest.err)
20347 cat out/conftest.err >&5
20348 echo "$as_me:20348: \$? = $ac_status" >&5
20349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20351 # The compiler can only warn and ignore the option if not recognized
20352 # So say no if there are warnings
20353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20356 lt_cv_prog_compiler_c_o_CXX=yes
20361 # SGI C++ compiler will create directory out/ii_files/ for
20362 # template instantiation
20363 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20364 $rm out/* && rmdir out
20370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20371 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20374 hard_links="nottested"
20375 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20376 # do not overwrite the value of need_locks provided by the user
20377 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20378 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20383 ln conftest.a conftest.b 2>&5 || hard_links=no
20384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20385 { echo "$as_me:$LINENO: result: $hard_links" >&5
20386 echo "${ECHO_T}$hard_links" >&6; }
20387 if test "$hard_links" = no; then
20388 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20389 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20396 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20397 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20399 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20402 # If we're using GNU nm, then we don't want the "-C" option.
20403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20405 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'
20407 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'
20411 export_symbols_cmds_CXX="$ltdll_cmds"
20414 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'
20417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20421 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20422 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20423 test "$ld_shlibs_CXX" = no && can_build_shared=no
20426 # Do we need to explicitly link libc?
20428 case "x$archive_cmds_need_lc_CXX" in
20430 # Assume -lc should be added
20431 archive_cmds_need_lc_CXX=yes
20433 if test "$enable_shared" = yes && test "$GCC" = yes; then
20434 case $archive_cmds_CXX in
20436 # FIXME: we may have to deal with multi-command sequences.
20439 # Test whether the compiler implicitly links with -lc since on some
20440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20441 # to ld, don't add -lc before -lgcc.
20442 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20443 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } 2>conftest.err; then
20454 libobjs=conftest.$ac_objext
20456 wl=$lt_prog_compiler_wl_CXX
20457 pic_flag=$lt_prog_compiler_pic_CXX
20463 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20464 allow_undefined_flag_CXX=
20465 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20466 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }
20471 archive_cmds_need_lc_CXX=no
20473 archive_cmds_need_lc_CXX=yes
20475 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20477 cat conftest.err 1>&5
20480 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20481 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20488 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20489 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20490 library_names_spec=
20491 libname_spec='lib$name'
20495 postuninstall_cmds=
20499 shlibpath_overrides_runpath=unknown
20501 dynamic_linker="$host_os ld.so"
20502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20503 if test "$GCC" = yes; then
20504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20505 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20506 # if the path contains ";" then we assume it to be the separator
20507 # otherwise default to the standard path separator (i.e. ":") - it is
20508 # assumed that no part of a normal pathname contains ";" but that should
20509 # okay in the real world where ";" in dirpaths is itself problematic.
20510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20517 need_lib_prefix=unknown
20518 hardcode_into_libs=no
20520 # when you set need_version to no, make sure it does not cause -set_version
20521 # flags to be left without arguments
20522 need_version=unknown
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20528 shlibpath_var=LIBPATH
20530 # AIX 3 has no versioning support, so we append a major version to the name.
20531 soname_spec='${libname}${release}${shared_ext}$major'
20538 hardcode_into_libs=yes
20539 if test "$host_cpu" = ia64; then
20540 # AIX 5 supports IA64
20541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20542 shlibpath_var=LD_LIBRARY_PATH
20544 # With GCC up to 2.95.x, collect2 would create an import file
20545 # for dependence libraries. The import file would start with
20546 # the line `#! .'. This would cause the generated library to
20547 # depend on `.', always an invalid library. This was fixed in
20548 # development snapshots of GCC prior to 3.0.
20550 aix4 | aix4.[01] | aix4.[01].*)
20551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20556 can_build_shared=no
20560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20561 # soname into executable. Probably we can add versioning support to
20562 # collect2, so additional links can be useful in future.
20563 if test "$aix_use_runtimelinking" = yes; then
20564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20565 # instead of lib<name>.a to let people know that these are not
20566 # typical AIX shared libraries.
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569 # We preserve .a as extension for shared libraries through AIX4.2
20570 # and later when we are not doing run time linking.
20571 library_names_spec='${libname}${release}.a $libname.a'
20572 soname_spec='${libname}${release}${shared_ext}$major'
20574 shlibpath_var=LIBPATH
20579 library_names_spec='$libname.ixlibrary $libname.a'
20580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20581 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'
20585 library_names_spec='${libname}${shared_ext}'
20586 dynamic_linker="$host_os ld.so"
20587 shlibpath_var=LIBRARY_PATH
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20596 shlibpath_var=LD_LIBRARY_PATH
20597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20599 # the default ld.so.conf also contains /usr/contrib/lib and
20600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20601 # libtool to hard-code these into programs
20604 cygwin* | mingw* | pw32*)
20605 version_type=windows
20610 case $GCC,$host_os in
20611 yes,cygwin* | yes,mingw* | yes,pw32*)
20612 library_names_spec='$libname.dll.a'
20613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20614 postinstall_cmds='base_file=`basename \${file}`~
20615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20616 dldir=$destdir/`dirname \$dlpath`~
20617 test -d \$dldir || mkdir -p \$dldir~
20618 $install_prog $dir/$dlname \$dldir/$dlname~
20619 chmod a+x \$dldir/$dlname'
20620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20621 dlpath=$dir/\$dldll~
20623 shlibpath_overrides_runpath=yes
20627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20632 # MinGW DLLs use traditional 'lib' prefix
20633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20636 # It is most probably a Windows format PATH printed by
20637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20638 # path with ; separators, and with drive letters. We can handle the
20639 # drive letters (cygwin fileutils understands them), so leave them,
20640 # especially as we might pass files found there to a mingw objdump,
20641 # which wouldn't understand a cygwinified path. Ahh.
20642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20648 # pw32 DLLs use 'pw' prefix rather than 'lib'
20649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20658 dynamic_linker='Win32 ld.exe'
20659 # FIXME: first we should search . and the directory the executable is in
20663 darwin* | rhapsody*)
20664 dynamic_linker="$host_os dyld"
20665 version_type=darwin
20668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20669 soname_spec='${libname}${release}${major}$shared_ext'
20670 shlibpath_overrides_runpath=yes
20671 shlibpath_var=DYLD_LIBRARY_PATH
20672 shrext_cmds='.dylib'
20673 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20674 if test "$GCC" = yes; then
20675 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"`
20677 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 shlibpath_var=LD_LIBRARY_PATH
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=no
20703 hardcode_into_libs=yes
20704 dynamic_linker='GNU ld.so'
20707 freebsd* | dragonfly*)
20708 # DragonFly does not have aout. When/if they implement a new
20709 # versioning mechanism, adjust this.
20710 if test -x /usr/bin/objformat; then
20711 objformat=`/usr/bin/objformat`
20714 freebsd[123]*) objformat=aout ;;
20715 *) objformat=elf ;;
20718 version_type=freebsd-$objformat
20719 case $version_type in
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20730 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=yes
20735 freebsd3.[01]* | freebsdelf3.[01]*)
20736 shlibpath_overrides_runpath=yes
20737 hardcode_into_libs=yes
20739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20741 shlibpath_overrides_runpath=no
20742 hardcode_into_libs=yes
20744 freebsd*) # from 4.6 on
20745 shlibpath_overrides_runpath=yes
20746 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
20758 hardcode_into_libs=yes
20761 hpux9* | hpux10* | hpux11*)
20762 # Give a soname corresponding to the major version so that dld.sl refuses to
20763 # link against other versions.
20770 hardcode_into_libs=yes
20771 dynamic_linker="$host_os dld.so"
20772 shlibpath_var=LD_LIBRARY_PATH
20773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20775 soname_spec='${libname}${release}${shared_ext}$major'
20776 if test "X$HPUX_IA64_MODE" = X32; then
20777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20785 hardcode_into_libs=yes
20786 dynamic_linker="$host_os dld.sl"
20787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20796 dynamic_linker="$host_os dld.sl"
20797 shlibpath_var=SHLIB_PATH
20798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800 soname_spec='${libname}${release}${shared_ext}$major'
20803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20804 postinstall_cmds='chmod 555 $lib'
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20814 shlibpath_var=LD_LIBRARY_PATH
20815 shlibpath_overrides_runpath=no
20816 hardcode_into_libs=yes
20819 irix5* | irix6* | nonstopux*)
20821 nonstopux*) version_type=nonstopux ;;
20823 if test "$lt_cv_prog_gnu_ld" = yes; then
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20834 irix5* | nonstopux*)
20835 libsuff= shlibsuff=
20838 case $LD in # libtool.m4 will add one of these switches to LD
20839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20840 libsuff= shlibsuff= libmagic=32-bit;;
20841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20842 libsuff=32 shlibsuff=N32 libmagic=N32;;
20843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20845 *) libsuff= shlibsuff= libmagic=never-match;;
20849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20850 shlibpath_overrides_runpath=no
20851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20853 hardcode_into_libs=yes
20856 # No shared lib support for Linux oldld, aout, or coff.
20857 linux*oldld* | linux*aout* | linux*coff*)
20861 # This must be Linux ELF.
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20867 soname_spec='${libname}${release}${shared_ext}$major'
20868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20869 shlibpath_var=LD_LIBRARY_PATH
20870 shlibpath_overrides_runpath=no
20871 # This implies no fast_install, which is unacceptable.
20872 # Some rework will be needed to allow for fast_install
20873 # before this can be enabled.
20874 hardcode_into_libs=yes
20876 # Append ld.so.conf contents to the search path
20877 if test -f /etc/ld.so.conf; then
20878 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' ' '`
20879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20882 # We used to test for /lib/ld.so.1 and disable shared libraries on
20883 # powerpc, because MkLinux only supported shared libraries with the
20884 # GNU dynamic linker. Since this was broken with cross compilers,
20885 # most powerpc-linux boxes support dynamic linking these days and
20886 # people can always --disable-shared, the test was removed, and we
20887 # assume the GNU/Linux dynamic linker is in use.
20888 dynamic_linker='GNU/Linux ld.so'
20895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20896 soname_spec='${libname}${release}${shared_ext}$major'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath=no
20899 hardcode_into_libs=yes
20900 dynamic_linker='GNU ld.so'
20907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20910 dynamic_linker='NetBSD (a.out) ld.so'
20912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20913 soname_spec='${libname}${release}${shared_ext}$major'
20914 dynamic_linker='NetBSD ld.elf_so'
20916 shlibpath_var=LD_LIBRARY_PATH
20917 shlibpath_overrides_runpath=yes
20918 hardcode_into_libs=yes
20923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20924 shlibpath_var=LD_LIBRARY_PATH
20925 shlibpath_overrides_runpath=yes
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 shlibpath_var=LD_LIBRARY_PATH
20935 shlibpath_overrides_runpath=yes
20940 sys_lib_dlsearch_path_spec="/usr/lib"
20942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20945 *) need_version=no ;;
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20952 openbsd2.[89] | openbsd2.[89].*)
20953 shlibpath_overrides_runpath=no
20956 shlibpath_overrides_runpath=yes
20960 shlibpath_overrides_runpath=yes
20965 libname_spec='$name'
20968 library_names_spec='$libname${shared_ext} $libname.a'
20969 dynamic_linker='OS/2 ld.exe'
20970 shlibpath_var=LIBPATH
20973 osf3* | osf4* | osf5*)
20977 soname_spec='${libname}${release}${shared_ext}$major'
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 shlibpath_var=LD_LIBRARY_PATH
20980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20989 soname_spec='${libname}${release}${shared_ext}$major'
20990 shlibpath_var=LD_LIBRARY_PATH
20991 shlibpath_overrides_runpath=yes
20992 hardcode_into_libs=yes
20993 # ldd complains unless libraries are executable
20994 postinstall_cmds='chmod +x $lib'
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21001 shlibpath_var=LD_LIBRARY_PATH
21002 shlibpath_overrides_runpath=yes
21003 if test "$with_gnu_ld" = yes; then
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 case $host_vendor in
21016 shlibpath_overrides_runpath=no
21018 export_dynamic_flag_spec='${wl}-Blargedynsym'
21019 runpath_var=LD_RUN_PATH
21027 shlibpath_overrides_runpath=no
21028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21034 if test -d /usr/nec ;then
21036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21037 soname_spec='$libname${shared_ext}.$major'
21038 shlibpath_var=LD_LIBRARY_PATH
21042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21043 version_type=freebsd-elf
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21047 soname_spec='${libname}${release}${shared_ext}$major'
21048 shlibpath_var=LD_LIBRARY_PATH
21049 hardcode_into_libs=yes
21050 if test "$with_gnu_ld" = yes; then
21051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21052 shlibpath_overrides_runpath=no
21054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21055 shlibpath_overrides_runpath=yes
21058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21062 sys_lib_dlsearch_path_spec='/usr/lib'
21067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21068 soname_spec='${libname}${release}${shared_ext}$major'
21069 shlibpath_var=LD_LIBRARY_PATH
21076 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21077 echo "${ECHO_T}$dynamic_linker" >&6; }
21078 test "$dynamic_linker" = no && can_build_shared=no
21080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21081 if test "$GCC" = yes; then
21082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21085 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21086 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21087 hardcode_action_CXX=
21088 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21089 test -n "$runpath_var_CXX" || \
21090 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21092 # We can hardcode non-existant directories.
21093 if test "$hardcode_direct_CXX" != no &&
21094 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21095 # have to relink, otherwise we might link with an installed library
21096 # when we should be linking with a yet-to-be-installed one
21097 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21098 test "$hardcode_minus_L_CXX" != no; then
21099 # Linking always hardcodes the temporary library directory.
21100 hardcode_action_CXX=relink
21102 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21103 hardcode_action_CXX=immediate
21106 # We cannot hardcode anything, or else we can only hardcode existing
21108 hardcode_action_CXX=unsupported
21110 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21111 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21113 if test "$hardcode_action_CXX" = relink; then
21114 # Fast installation is not supported
21115 enable_fast_install=no
21116 elif test "$shlibpath_overrides_runpath" = yes ||
21117 test "$enable_shared" = no; then
21118 # Fast installation is not necessary
21119 enable_fast_install=needless
21123 # The else clause should only fire when bootstrapping the
21124 # libtool distribution, otherwise you forgot to ship ltmain.sh
21125 # with your package, and you will get complaints that there are
21126 # no rules to generate ltmain.sh.
21127 if test -f "$ltmain"; then
21128 # See if we are running on zsh, and set the options which allow our commands through
21129 # without removal of \ escapes.
21130 if test -n "${ZSH_VERSION+set}" ; then
21131 setopt NO_GLOB_SUBST
21133 # Now quote all the things that may contain metacharacters while being
21134 # careful not to overquote the AC_SUBSTed values. We take copies of the
21135 # variables and quote the copies for generation of the libtool script.
21136 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21138 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21139 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21140 deplibs_check_method reload_flag reload_cmds need_locks \
21141 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21142 lt_cv_sys_global_symbol_to_c_name_address \
21143 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21144 old_postinstall_cmds old_postuninstall_cmds \
21148 lt_prog_compiler_wl_CXX \
21149 lt_prog_compiler_pic_CXX \
21150 lt_prog_compiler_static_CXX \
21151 lt_prog_compiler_no_builtin_flag_CXX \
21152 export_dynamic_flag_spec_CXX \
21153 thread_safe_flag_spec_CXX \
21154 whole_archive_flag_spec_CXX \
21155 enable_shared_with_static_runtimes_CXX \
21156 old_archive_cmds_CXX \
21157 old_archive_from_new_cmds_CXX \
21158 predep_objects_CXX \
21159 postdep_objects_CXX \
21162 compiler_lib_search_path_CXX \
21164 archive_expsym_cmds_CXX \
21165 postinstall_cmds_CXX \
21166 postuninstall_cmds_CXX \
21167 old_archive_from_expsyms_cmds_CXX \
21168 allow_undefined_flag_CXX \
21169 no_undefined_flag_CXX \
21170 export_symbols_cmds_CXX \
21171 hardcode_libdir_flag_spec_CXX \
21172 hardcode_libdir_flag_spec_ld_CXX \
21173 hardcode_libdir_separator_CXX \
21174 hardcode_automatic_CXX \
21176 module_expsym_cmds_CXX \
21177 lt_cv_prog_compiler_c_o_CXX \
21178 exclude_expsyms_CXX \
21179 include_expsyms_CXX; do
21182 old_archive_cmds_CXX | \
21183 old_archive_from_new_cmds_CXX | \
21184 archive_cmds_CXX | \
21185 archive_expsym_cmds_CXX | \
21186 module_cmds_CXX | \
21187 module_expsym_cmds_CXX | \
21188 old_archive_from_expsyms_cmds_CXX | \
21189 export_symbols_cmds_CXX | \
21190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21191 postinstall_cmds | postuninstall_cmds | \
21192 old_postinstall_cmds | old_postuninstall_cmds | \
21193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21194 # Double-quote double-evaled strings.
21195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21204 *'\$0 --fallback-echo"')
21205 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21211 cat <<__EOF__ >> "$cfgfile"
21212 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21216 # Shell to use when invoking shell scripts.
21219 # Whether or not to build shared libraries.
21220 build_libtool_libs=$enable_shared
21222 # Whether or not to build static libraries.
21223 build_old_libs=$enable_static
21225 # Whether or not to add -lc for building shared libraries.
21226 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21228 # Whether or not to disallow shared libs when runtime libs are static
21229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21231 # Whether or not to optimize for fast installation.
21232 fast_install=$enable_fast_install
21235 host_alias=$host_alias
21239 # The build system.
21240 build_alias=$build_alias
21244 # An echo program that does not interpret backslashes.
21249 AR_FLAGS=$lt_AR_FLAGS
21254 # LTCC compiler flags.
21255 LTCFLAGS=$lt_LTCFLAGS
21257 # A language-specific compiler.
21258 CC=$lt_compiler_CXX
21260 # Is the compiler the GNU C compiler?
21266 # The linker used to build libraries.
21269 # Whether we need hard or soft links.
21272 # A BSD-compatible nm program.
21275 # A symbol stripping program
21278 # Used to examine libraries when file_magic_cmd begins "file"
21279 MAGIC_CMD=$MAGIC_CMD
21281 # Used on cygwin: DLL creation program.
21284 # Used on cygwin: object dumper.
21287 # Used on cygwin: assembler.
21290 # The name of the directory that contains temporary libtool files.
21293 # How to create reloadable object files.
21294 reload_flag=$lt_reload_flag
21295 reload_cmds=$lt_reload_cmds
21297 # How to pass a linker flag through the compiler.
21298 wl=$lt_lt_prog_compiler_wl_CXX
21300 # Object file suffix (normally "o").
21301 objext="$ac_objext"
21303 # Old archive suffix (normally "a").
21306 # Shared library suffix (normally ".so").
21307 shrext_cmds='$shrext_cmds'
21309 # Executable file suffix (normally "").
21312 # Additional compiler flags for building library objects.
21313 pic_flag=$lt_lt_prog_compiler_pic_CXX
21316 # What is the maximum length of a command?
21317 max_cmd_len=$lt_cv_sys_max_cmd_len
21319 # Does compiler simultaneously support -c and -o options?
21320 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21322 # Must we lock files when doing compilation?
21323 need_locks=$lt_need_locks
21325 # Do we need the lib prefix for modules?
21326 need_lib_prefix=$need_lib_prefix
21328 # Do we need a version for libraries?
21329 need_version=$need_version
21331 # Whether dlopen is supported.
21332 dlopen_support=$enable_dlopen
21334 # Whether dlopen of programs is supported.
21335 dlopen_self=$enable_dlopen_self
21337 # Whether dlopen of statically linked programs is supported.
21338 dlopen_self_static=$enable_dlopen_self_static
21340 # Compiler flag to prevent dynamic linking.
21341 link_static_flag=$lt_lt_prog_compiler_static_CXX
21343 # Compiler flag to turn off builtin functions.
21344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21346 # Compiler flag to allow reflexive dlopens.
21347 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21349 # Compiler flag to generate shared objects directly from archives.
21350 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21352 # Compiler flag to generate thread-safe objects.
21353 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21355 # Library versioning type.
21356 version_type=$version_type
21358 # Format of library name prefix.
21359 libname_spec=$lt_libname_spec
21361 # List of archive names. First name is the real one, the rest are links.
21362 # The last name is the one that the linker finds with -lNAME.
21363 library_names_spec=$lt_library_names_spec
21365 # The coded name of the library, if different from the real name.
21366 soname_spec=$lt_soname_spec
21368 # Commands used to build and install an old-style archive.
21370 old_archive_cmds=$lt_old_archive_cmds_CXX
21371 old_postinstall_cmds=$lt_old_postinstall_cmds
21372 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21374 # Create an old-style archive from a shared archive.
21375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21377 # Create a temporary old-style archive to link instead of a shared archive.
21378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21380 # Commands used to build and install a shared archive.
21381 archive_cmds=$lt_archive_cmds_CXX
21382 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21383 postinstall_cmds=$lt_postinstall_cmds
21384 postuninstall_cmds=$lt_postuninstall_cmds
21386 # Commands used to build a loadable module (assumed same as above if empty)
21387 module_cmds=$lt_module_cmds_CXX
21388 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21390 # Commands to strip libraries.
21391 old_striplib=$lt_old_striplib
21392 striplib=$lt_striplib
21394 # Dependencies to place before the objects being linked to create a
21396 predep_objects=$lt_predep_objects_CXX
21398 # Dependencies to place after the objects being linked to create a
21400 postdep_objects=$lt_postdep_objects_CXX
21402 # Dependencies to place before the objects being linked to create a
21404 predeps=$lt_predeps_CXX
21406 # Dependencies to place after the objects being linked to create a
21408 postdeps=$lt_postdeps_CXX
21410 # The library search path used internally by the compiler when linking
21411 # a shared library.
21412 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21414 # Method to check whether dependent libraries are shared objects.
21415 deplibs_check_method=$lt_deplibs_check_method
21417 # Command to use when deplibs_check_method == file_magic.
21418 file_magic_cmd=$lt_file_magic_cmd
21420 # Flag that allows shared libraries with undefined symbols to be built.
21421 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21423 # Flag that forces no undefined symbols.
21424 no_undefined_flag=$lt_no_undefined_flag_CXX
21426 # Commands used to finish a libtool library installation in a directory.
21427 finish_cmds=$lt_finish_cmds
21429 # Same as above, but a single script fragment to be evaled but not shown.
21430 finish_eval=$lt_finish_eval
21432 # Take the output of nm and produce a listing of raw symbols and C names.
21433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21435 # Transform the output of nm in a proper C declaration
21436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21438 # Transform the output of nm in a C name address pair
21439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21441 # This is the shared library runtime path variable.
21442 runpath_var=$runpath_var
21444 # This is the shared library path variable.
21445 shlibpath_var=$shlibpath_var
21447 # Is shlibpath searched before the hard-coded library search path?
21448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21450 # How to hardcode a shared library path into an executable.
21451 hardcode_action=$hardcode_action_CXX
21453 # Whether we should hardcode library paths into libraries.
21454 hardcode_into_libs=$hardcode_into_libs
21456 # Flag to hardcode \$libdir into a binary during linking.
21457 # This must work even if \$libdir does not exist.
21458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21460 # If ld is used when linking, flag to hardcode \$libdir into
21461 # a binary during linking. This must work even if \$libdir does
21463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21465 # Whether we need a single -rpath flag with a separated argument.
21466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21468 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21469 # resulting binary.
21470 hardcode_direct=$hardcode_direct_CXX
21472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21473 # resulting binary.
21474 hardcode_minus_L=$hardcode_minus_L_CXX
21476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21477 # the resulting binary.
21478 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21480 # Set to yes if building a shared library automatically hardcodes DIR into the library
21481 # and all subsequent libraries and executables linked against it.
21482 hardcode_automatic=$hardcode_automatic_CXX
21484 # Variables whose values should be saved in libtool wrapper scripts and
21485 # restored at relink time.
21486 variables_saved_for_relink="$variables_saved_for_relink"
21488 # Whether libtool must link a program against all its dependency libraries.
21489 link_all_deplibs=$link_all_deplibs_CXX
21491 # Compile-time system search path for libraries
21492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21494 # Run-time system search path for libraries
21495 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21497 # Fix the shell variable \$srcfile for the compiler.
21498 fix_srcfile_path="$fix_srcfile_path_CXX"
21500 # Set to yes if exported symbols are required.
21501 always_export_symbols=$always_export_symbols_CXX
21503 # The commands to list exported symbols.
21504 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21506 # The commands to extract the exported symbol list from a shared archive.
21507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21509 # Symbols that should not be listed in the preloaded symbols.
21510 exclude_expsyms=$lt_exclude_expsyms_CXX
21512 # Symbols that must always be exported.
21513 include_expsyms=$lt_include_expsyms_CXX
21515 # ### END LIBTOOL TAG CONFIG: $tagname
21521 # If there is no Makefile yet, we rely on a make rule to execute
21522 # `config.status --recheck' to rerun these tests and create the
21523 # libtool script then.
21524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21525 if test -f "$ltmain_in"; then
21526 test -f Makefile && make "$ltmain"
21532 ac_cpp='$CPP $CPPFLAGS'
21533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21541 with_gnu_ldcxx=$with_gnu_ld
21542 with_gnu_ld=$lt_save_with_gnu_ld
21543 lt_cv_path_LDCXX=$lt_cv_path_LD
21544 lt_cv_path_LD=$lt_save_path_LD
21545 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21546 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21554 if test -n "$F77" && test "X$F77" != "Xno"; then
21557 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21558 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21559 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21562 archive_cmds_need_lc_F77=no
21563 allow_undefined_flag_F77=
21564 always_export_symbols_F77=no
21565 archive_expsym_cmds_F77=
21566 export_dynamic_flag_spec_F77=
21567 hardcode_direct_F77=no
21568 hardcode_libdir_flag_spec_F77=
21569 hardcode_libdir_flag_spec_ld_F77=
21570 hardcode_libdir_separator_F77=
21571 hardcode_minus_L_F77=no
21572 hardcode_automatic_F77=no
21574 module_expsym_cmds_F77=
21575 link_all_deplibs_F77=unknown
21576 old_archive_cmds_F77=$old_archive_cmds
21577 no_undefined_flag_F77=
21578 whole_archive_flag_spec_F77=
21579 enable_shared_with_static_runtimes_F77=no
21581 # Source file extension for f77 test sources.
21584 # Object file extension for compiled f77 test sources.
21588 # Code to be used in simple compile tests
21589 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21591 # Code to be used in simple link tests
21592 lt_simple_link_test_code=" program t\n end\n"
21594 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21596 # If no C compiler was specified, use CC.
21599 # If no C compiler flags were specified, use CFLAGS.
21600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21602 # Allow CC to be a program name with arguments.
21606 # save warnings/boilerplate of simple test code
21607 ac_outfile=conftest.$ac_objext
21608 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21610 _lt_compiler_boilerplate=`cat conftest.err`
21613 ac_outfile=conftest.$ac_objext
21614 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21616 _lt_linker_boilerplate=`cat conftest.err`
21620 # Allow CC to be a program name with arguments.
21625 for cc_temp in $compiler""; do
21627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21636 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21637 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21638 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21639 echo "${ECHO_T}$can_build_shared" >&6; }
21641 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21642 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21643 test "$can_build_shared" = "no" && enable_shared=no
21645 # On AIX, shared libraries and static libraries use the same namespace, and
21646 # are all built from PIC.
21649 test "$enable_shared" = yes && enable_static=no
21650 if test -n "$RANLIB"; then
21651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21652 postinstall_cmds='$RANLIB $lib'
21656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21657 test "$enable_shared" = yes && enable_static=no
21661 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21662 echo "${ECHO_T}$enable_shared" >&6; }
21664 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21665 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21666 # Make sure either enable_shared or enable_static is yes.
21667 test "$enable_shared" = yes || enable_static=yes
21668 { echo "$as_me:$LINENO: result: $enable_static" >&5
21669 echo "${ECHO_T}$enable_static" >&6; }
21674 lt_prog_compiler_wl_F77=
21675 lt_prog_compiler_pic_F77=
21676 lt_prog_compiler_static_F77=
21678 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21681 if test "$GCC" = yes; then
21682 lt_prog_compiler_wl_F77='-Wl,'
21683 lt_prog_compiler_static_F77='-static'
21687 # All AIX code is PIC.
21688 if test "$host_cpu" = ia64; then
21689 # AIX 5 now supports IA64 processor
21690 lt_prog_compiler_static_F77='-Bstatic'
21695 # FIXME: we need at least 68020 code to build shared libraries, but
21696 # adding the `-m68020' flag to GCC prevents building anything better,
21698 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21701 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21702 # PIC is the default for these OSes.
21705 mingw* | pw32* | os2*)
21706 # This hack is so that the source file can tell whether it is being
21707 # built for inclusion in a dll (and should export symbols for example).
21708 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21711 darwin* | rhapsody*)
21712 # PIC is the default on this platform
21713 # Common symbols not allowed in MH_DYLIB files
21714 lt_prog_compiler_pic_F77='-fno-common'
21718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21719 # Instead, we relocate shared libraries at runtime.
21723 # Just because we use GCC doesn't mean we suddenly get shared libraries
21724 # on systems that don't support them.
21725 lt_prog_compiler_can_build_shared_F77=no
21730 if test -d /usr/nec; then
21731 lt_prog_compiler_pic_F77=-Kconform_pic
21736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21737 # not for PA HP-UX.
21743 lt_prog_compiler_pic_F77='-fPIC'
21749 lt_prog_compiler_pic_F77='-fPIC'
21753 # PORTME Check for flag to pass linker flags through the system compiler.
21756 lt_prog_compiler_wl_F77='-Wl,'
21757 if test "$host_cpu" = ia64; then
21758 # AIX 5 now supports IA64 processor
21759 lt_prog_compiler_static_F77='-Bstatic'
21761 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21765 # PIC is the default on this platform
21766 # Common symbols not allowed in MH_DYLIB files
21767 case $cc_basename in
21769 lt_prog_compiler_pic_F77='-qnocommon'
21770 lt_prog_compiler_wl_F77='-Wl,'
21775 mingw* | pw32* | os2*)
21776 # This hack is so that the source file can tell whether it is being
21777 # built for inclusion in a dll (and should export symbols for example).
21778 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21781 hpux9* | hpux10* | hpux11*)
21782 lt_prog_compiler_wl_F77='-Wl,'
21783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21784 # not for PA HP-UX.
21790 lt_prog_compiler_pic_F77='+Z'
21793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21794 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21797 irix5* | irix6* | nonstopux*)
21798 lt_prog_compiler_wl_F77='-Wl,'
21799 # PIC (with -KPIC) is the default.
21800 lt_prog_compiler_static_F77='-non_shared'
21804 lt_prog_compiler_pic_F77='-KPIC'
21805 lt_prog_compiler_static_F77='-Bstatic'
21809 case $cc_basename in
21811 lt_prog_compiler_wl_F77='-Wl,'
21812 lt_prog_compiler_pic_F77='-KPIC'
21813 lt_prog_compiler_static_F77='-static'
21815 pgcc* | pgf77* | pgf90* | pgf95*)
21816 # Portland Group compilers (*not* the Pentium gcc compiler,
21817 # which looks to be a dead project)
21818 lt_prog_compiler_wl_F77='-Wl,'
21819 lt_prog_compiler_pic_F77='-fpic'
21820 lt_prog_compiler_static_F77='-Bstatic'
21823 lt_prog_compiler_wl_F77='-Wl,'
21824 # All Alpha code is PIC.
21825 lt_prog_compiler_static_F77='-non_shared'
21830 osf3* | osf4* | osf5*)
21831 lt_prog_compiler_wl_F77='-Wl,'
21832 # All OSF/1 code is PIC.
21833 lt_prog_compiler_static_F77='-non_shared'
21837 lt_prog_compiler_pic_F77='-KPIC'
21838 lt_prog_compiler_static_F77='-Bstatic'
21839 case $cc_basename in
21840 f77* | f90* | f95*)
21841 lt_prog_compiler_wl_F77='-Qoption ld ';;
21843 lt_prog_compiler_wl_F77='-Wl,';;
21848 lt_prog_compiler_wl_F77='-Qoption ld '
21849 lt_prog_compiler_pic_F77='-PIC'
21850 lt_prog_compiler_static_F77='-Bstatic'
21853 sysv4 | sysv4.2uw2* | sysv4.3*)
21854 lt_prog_compiler_wl_F77='-Wl,'
21855 lt_prog_compiler_pic_F77='-KPIC'
21856 lt_prog_compiler_static_F77='-Bstatic'
21860 if test -d /usr/nec ;then
21861 lt_prog_compiler_pic_F77='-Kconform_pic'
21862 lt_prog_compiler_static_F77='-Bstatic'
21866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21867 lt_prog_compiler_wl_F77='-Wl,'
21868 lt_prog_compiler_pic_F77='-KPIC'
21869 lt_prog_compiler_static_F77='-Bstatic'
21873 lt_prog_compiler_wl_F77='-Wl,'
21874 lt_prog_compiler_can_build_shared_F77=no
21878 lt_prog_compiler_pic_F77='-pic'
21879 lt_prog_compiler_static_F77='-Bstatic'
21883 lt_prog_compiler_can_build_shared_F77=no
21888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21889 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21892 # Check to make sure the PIC flag actually works.
21894 if test -n "$lt_prog_compiler_pic_F77"; then
21896 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21897 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21898 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 lt_prog_compiler_pic_works_F77=no
21902 ac_outfile=conftest.$ac_objext
21903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21904 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21905 # Insert the option either (1) after the last *FLAGS variable, or
21906 # (2) before a word containing "conftest.", or (3) at the end.
21907 # Note that $ac_compile itself does not contain backslashes and begins
21908 # with a dollar sign (not a hyphen), so the echo should work correctly.
21909 # The option is referenced via a variable to avoid confusing sed.
21910 lt_compile=`echo "$ac_compile" | $SED \
21911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21913 -e 's:$: $lt_compiler_flag:'`
21914 (eval echo "\"\$as_me:21914: $lt_compile\"" >&5)
21915 (eval "$lt_compile" 2>conftest.err)
21917 cat conftest.err >&5
21918 echo "$as_me:21918: \$? = $ac_status" >&5
21919 if (exit $ac_status) && test -s "$ac_outfile"; then
21920 # The compiler can only warn and ignore the option if not recognized
21921 # So say no if there are warnings other than the usual output.
21922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21925 lt_prog_compiler_pic_works_F77=yes
21931 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21932 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21934 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21935 case $lt_prog_compiler_pic_F77 in
21937 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21940 lt_prog_compiler_pic_F77=
21941 lt_prog_compiler_can_build_shared_F77=no
21946 # For platforms which do not support PIC, -DPIC is meaningless:
21948 lt_prog_compiler_pic_F77=
21951 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21956 # Check to make sure the static flag actually works.
21958 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21959 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21960 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21961 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 lt_prog_compiler_static_works_F77=no
21965 save_LDFLAGS="$LDFLAGS"
21966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21967 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21969 # The linker can only warn and ignore the option if not recognized
21970 # So say no if there are warnings
21971 if test -s conftest.err; then
21972 # Append any errors to the config.log.
21973 cat conftest.err 1>&5
21974 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21976 if diff conftest.exp conftest.er2 >/dev/null; then
21977 lt_prog_compiler_static_works_F77=yes
21980 lt_prog_compiler_static_works_F77=yes
21984 LDFLAGS="$save_LDFLAGS"
21987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21988 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21990 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21993 lt_prog_compiler_static_F77=
21997 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21999 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 lt_cv_prog_compiler_c_o_F77=no
22003 $rm -r conftest 2>/dev/null
22007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22009 lt_compiler_flag="-o out/conftest2.$ac_objext"
22010 # Insert the option either (1) after the last *FLAGS variable, or
22011 # (2) before a word containing "conftest.", or (3) at the end.
22012 # Note that $ac_compile itself does not contain backslashes and begins
22013 # with a dollar sign (not a hyphen), so the echo should work correctly.
22014 lt_compile=`echo "$ac_compile" | $SED \
22015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22017 -e 's:$: $lt_compiler_flag:'`
22018 (eval echo "\"\$as_me:22018: $lt_compile\"" >&5)
22019 (eval "$lt_compile" 2>out/conftest.err)
22021 cat out/conftest.err >&5
22022 echo "$as_me:22022: \$? = $ac_status" >&5
22023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22025 # The compiler can only warn and ignore the option if not recognized
22026 # So say no if there are warnings
22027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22030 lt_cv_prog_compiler_c_o_F77=yes
22035 # SGI C++ compiler will create directory out/ii_files/ for
22036 # template instantiation
22037 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22038 $rm out/* && rmdir out
22044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22045 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22048 hard_links="nottested"
22049 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22050 # do not overwrite the value of need_locks provided by the user
22051 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22052 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22057 ln conftest.a conftest.b 2>&5 || hard_links=no
22058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22059 { echo "$as_me:$LINENO: result: $hard_links" >&5
22060 echo "${ECHO_T}$hard_links" >&6; }
22061 if test "$hard_links" = no; then
22062 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22063 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22070 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22074 allow_undefined_flag_F77=
22075 enable_shared_with_static_runtimes_F77=no
22077 archive_expsym_cmds_F77=
22078 old_archive_From_new_cmds_F77=
22079 old_archive_from_expsyms_cmds_F77=
22080 export_dynamic_flag_spec_F77=
22081 whole_archive_flag_spec_F77=
22082 thread_safe_flag_spec_F77=
22083 hardcode_libdir_flag_spec_F77=
22084 hardcode_libdir_flag_spec_ld_F77=
22085 hardcode_libdir_separator_F77=
22086 hardcode_direct_F77=no
22087 hardcode_minus_L_F77=no
22088 hardcode_shlibpath_var_F77=unsupported
22089 link_all_deplibs_F77=unknown
22090 hardcode_automatic_F77=no
22092 module_expsym_cmds_F77=
22093 always_export_symbols_F77=no
22094 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22095 # include_expsyms should be a list of space-separated symbols to be *always*
22096 # included in the symbol list
22097 include_expsyms_F77=
22098 # exclude_expsyms can be an extended regexp of symbols to exclude
22099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22101 # as well as any symbol that contains `d'.
22102 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22104 # platforms (ab)use it in PIC code, but their linkers get confused if
22105 # the symbol is explicitly referenced. Since portable code cannot
22106 # rely on this symbol name, it's probably fine to never include it in
22107 # preloaded symbol tables.
22108 extract_expsyms_cmds=
22109 # Just being paranoid about ensuring that cc_basename is set.
22110 for cc_temp in $compiler""; do
22112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22121 cygwin* | mingw* | pw32*)
22122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22123 # When not using gcc, we currently assume that we are using
22124 # Microsoft Visual C++.
22125 if test "$GCC" != yes; then
22130 # we just hope/assume this is gcc and not c89 (= MSVC++)
22139 if test "$with_gnu_ld" = yes; then
22140 # If archive_cmds runs LD, not CC, wlarc should be empty
22143 # Set some defaults for GNU ld with shared library support. These
22144 # are reset later if shared libraries are not supported. Putting them
22145 # here allows them to be overridden if necessary.
22146 runpath_var=LD_RUN_PATH
22147 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22148 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22149 # ancient GNU ld didn't support --whole-archive et. al.
22150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22151 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22153 whole_archive_flag_spec_F77=
22155 supports_anon_versioning=no
22156 case `$LD -v 2>/dev/null` in
22157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22160 *\ 2.11.*) ;; # other 2.11 versions
22161 *) supports_anon_versioning=yes ;;
22164 # See if GNU ld supports shared libraries.
22166 aix3* | aix4* | aix5*)
22167 # On AIX/PPC, the GNU linker is very broken
22168 if test "$host_cpu" != ia64; then
22172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22173 *** to be unable to reliably create shared libraries on AIX.
22174 *** Therefore, libtool is disabling shared libraries support. If you
22175 *** really care for shared libraries, you may want to modify your PATH
22176 *** so that a non-GNU linker is found, and then restart.
22183 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)'
22184 hardcode_libdir_flag_spec_F77='-L$libdir'
22185 hardcode_minus_L_F77=yes
22187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22188 # that the semantics of dynamic libraries on AmigaOS, at least up
22189 # to version 4, is to share data among multiple programs linked
22190 # with the same dynamic library. Since this doesn't match the
22191 # behavior of shared libraries on other platforms, we can't use
22197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22198 allow_undefined_flag_F77=unsupported
22199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22200 # support --undefined. This deserves some investigation. FIXME
22201 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22207 cygwin* | mingw* | pw32*)
22208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22209 # as there is no search path for DLLs.
22210 hardcode_libdir_flag_spec_F77='-L$libdir'
22211 allow_undefined_flag_F77=unsupported
22212 always_export_symbols_F77=no
22213 enable_shared_with_static_runtimes_F77=yes
22214 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22217 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22218 # If the export-symbols file already is a .def file (1st line
22219 # is EXPORTS), use it as is; otherwise, prepend...
22220 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22221 cp $export_symbols $output_objdir/$soname.def;
22223 echo EXPORTS > $output_objdir/$soname.def;
22224 cat $export_symbols >> $output_objdir/$soname.def;
22226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22233 hardcode_direct_F77=no
22234 hardcode_shlibpath_var_F77=no
22235 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22236 export_dynamic_flag_spec_F77='${wl}-E'
22237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22238 # Instead, shared libraries are loaded at an image base (0x10000000 by
22239 # default) and relocated if they conflict, which is a slow very memory
22240 # consuming and fragmenting process. To avoid this, we pick a random,
22241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22243 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'
22244 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'
22248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22250 case $cc_basename,$host_cpu in
22251 pgcc*) # Portland Group C compiler
22252 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'
22253 tmp_addflag=' $pic_flag'
22255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22256 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'
22257 tmp_addflag=' $pic_flag -Mnomain' ;;
22258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22259 tmp_addflag=' -i_dynamic' ;;
22260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22261 tmp_addflag=' -i_dynamic -nofor_main' ;;
22262 ifc* | ifort*) # Intel Fortran compiler
22263 tmp_addflag=' -nofor_main' ;;
22265 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22267 if test $supports_anon_versioning = yes; then
22268 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22270 $echo "local: *; };" >> $output_objdir/$libname.ver~
22271 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22280 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22284 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22289 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22294 *** create shared libraries on Solaris systems. Therefore, libtool
22295 *** is disabling shared libraries support. We urge you to upgrade GNU
22296 *** binutils to release 2.9.1 or newer. Another option is to modify
22297 *** your PATH or compiler configuration so that the native linker is
22298 *** used, and then restart.
22301 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22303 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22310 case `$LD -v 2>&1` in
22311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22316 *** reliably create shared libraries on SCO systems. Therefore, libtool
22317 *** is disabling shared libraries support. We urge you to upgrade GNU
22318 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22319 *** your PATH or compiler configuration so that the native linker is
22320 *** used, and then restart.
22325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22326 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22327 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22328 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22337 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22339 hardcode_direct_F77=yes
22340 hardcode_shlibpath_var_F77=no
22344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22353 if test "$ld_shlibs_F77" = no; then
22355 hardcode_libdir_flag_spec_F77=
22356 export_dynamic_flag_spec_F77=
22357 whole_archive_flag_spec_F77=
22360 # PORTME fill in a description of your system's linker (not GNU ld)
22363 allow_undefined_flag_F77=unsupported
22364 always_export_symbols_F77=yes
22365 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'
22366 # Note: this linker hardcodes the directories in LIBPATH if there
22367 # are no directories specified by -L.
22368 hardcode_minus_L_F77=yes
22369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22370 # Neither direct hardcoding nor static linking is supported with a
22372 hardcode_direct_F77=unsupported
22377 if test "$host_cpu" = ia64; then
22378 # On IA64, the linker does run time linking by default, so we don't
22379 # have to do anything special.
22380 aix_use_runtimelinking=no
22381 exp_sym_flag='-Bexport'
22384 # If we're using GNU nm, then we don't want the "-C" option.
22385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22386 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22387 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'
22389 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'
22391 aix_use_runtimelinking=no
22393 # Test if we are trying to use run time linking or normal
22394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22395 # need to do runtime linking.
22396 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22397 for ld_flag in $LDFLAGS; do
22398 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22399 aix_use_runtimelinking=yes
22406 exp_sym_flag='-bexport'
22407 no_entry_flag='-bnoentry'
22410 # When large executables or shared objects are built, AIX ld can
22411 # have problems creating the table of contents. If linking a library
22412 # or program results in "error TOC overflow" add -mminimal-toc to
22413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22416 archive_cmds_F77=''
22417 hardcode_direct_F77=yes
22418 hardcode_libdir_separator_F77=':'
22419 link_all_deplibs_F77=yes
22421 if test "$GCC" = yes; then
22422 case $host_os in aix4.[012]|aix4.[012].*)
22423 # We only want to do this on AIX 4.2 and lower, the check
22424 # below for broken collect2 doesn't work under 4.3+
22425 collect2name=`${CC} -print-prog-name=collect2`
22426 if test -f "$collect2name" && \
22427 strings "$collect2name" | grep resolve_lib_name >/dev/null
22429 # We have reworked collect2
22430 hardcode_direct_F77=yes
22432 # We have old collect2
22433 hardcode_direct_F77=unsupported
22434 # It fails to find uninstalled libraries when the uninstalled
22435 # path is not listed in the libpath. Setting hardcode_minus_L
22436 # to unsupported forces relinking
22437 hardcode_minus_L_F77=yes
22438 hardcode_libdir_flag_spec_F77='-L$libdir'
22439 hardcode_libdir_separator_F77=
22443 shared_flag='-shared'
22444 if test "$aix_use_runtimelinking" = yes; then
22445 shared_flag="$shared_flag "'${wl}-G'
22449 if test "$host_cpu" = ia64; then
22450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22451 # chokes on -Wl,-G. The following line is correct:
22454 if test "$aix_use_runtimelinking" = yes; then
22455 shared_flag='${wl}-G'
22457 shared_flag='${wl}-bM:SRE'
22462 # It seems that -bexpall does not export symbols beginning with
22463 # underscore (_), so it is better to generate a list of symbols to export.
22464 always_export_symbols_F77=yes
22465 if test "$aix_use_runtimelinking" = yes; then
22466 # Warning - without using the other runtime loading flags (-brtl),
22467 # -berok will link without error, but may produce a broken library.
22468 allow_undefined_flag_F77='-berok'
22469 # Determine the default libpath from the value encoded in an empty executable.
22470 cat >conftest.$ac_ext <<_ACEOF
22475 rm -f conftest.$ac_objext conftest$ac_exeext
22476 if { (ac_try="$ac_link"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_link") 2>conftest.er1
22484 grep -v '^ *+' conftest.er1 >conftest.err
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } &&
22489 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } &&
22499 { ac_try='test -s conftest$ac_exeext'
22500 { (case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_try") 2>&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); }; }; then
22510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22512 # Check for a 64-bit object if we didn't find anything.
22513 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; }
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22522 rm -f core conftest.err conftest.$ac_objext \
22523 conftest$ac_exeext conftest.$ac_ext
22524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22526 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22527 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"
22529 if test "$host_cpu" = ia64; then
22530 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22531 allow_undefined_flag_F77="-z nodefs"
22532 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"
22534 # Determine the default libpath from the value encoded in an empty executable.
22535 cat >conftest.$ac_ext <<_ACEOF
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>conftest.er1
22549 grep -v '^ *+' conftest.er1 >conftest.err
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } &&
22554 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22555 { (case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_try") 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest$ac_exeext'
22565 { (case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_try") 2>&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
22575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22577 # Check for a 64-bit object if we didn't find anything.
22578 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; }
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22587 rm -f core conftest.err conftest.$ac_objext \
22588 conftest$ac_exeext conftest.$ac_ext
22589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22591 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22592 # Warning - without using the other run time loading flags,
22593 # -berok will link without error, but may produce a broken library.
22594 no_undefined_flag_F77=' ${wl}-bernotok'
22595 allow_undefined_flag_F77=' ${wl}-berok'
22596 # Exported symbols can be pulled into shared objects from archives
22597 whole_archive_flag_spec_F77='$convenience'
22598 archive_cmds_need_lc_F77=yes
22599 # This is similar to how AIX traditionally builds its shared libraries.
22600 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'
22606 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)'
22607 hardcode_libdir_flag_spec_F77='-L$libdir'
22608 hardcode_minus_L_F77=yes
22609 # see comment about different semantics on the GNU ld section
22614 export_dynamic_flag_spec_F77=-rdynamic
22617 cygwin* | mingw* | pw32*)
22618 # When not using gcc, we currently assume that we are using
22619 # Microsoft Visual C++.
22620 # hardcode_libdir_flag_spec is actually meaningless, as there is
22621 # no search path for DLLs.
22622 hardcode_libdir_flag_spec_F77=' '
22623 allow_undefined_flag_F77=unsupported
22624 # Tell ltmain to make .lib files, not .a files.
22626 # Tell ltmain to make .dll files, not .so files.
22628 # FIXME: Setting linknames here is a bad hack.
22629 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22630 # The linker will automatically build a .lib file if we build a DLL.
22631 old_archive_From_new_cmds_F77='true'
22632 # FIXME: Should let the user specify the lib program.
22633 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22634 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22635 enable_shared_with_static_runtimes_F77=yes
22638 darwin* | rhapsody*)
22640 rhapsody* | darwin1.[012])
22641 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22644 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22645 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22647 case ${MACOSX_DEPLOYMENT_TARGET} in
22649 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22652 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22658 archive_cmds_need_lc_F77=no
22659 hardcode_direct_F77=no
22660 hardcode_automatic_F77=yes
22661 hardcode_shlibpath_var_F77=unsupported
22662 whole_archive_flag_spec_F77=''
22663 link_all_deplibs_F77=yes
22664 if test "$GCC" = yes ; then
22665 output_verbose_link_cmd='echo'
22666 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22667 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22668 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22669 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}'
22670 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}'
22672 case $cc_basename in
22674 output_verbose_link_cmd='echo'
22675 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22676 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22677 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22678 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}'
22679 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}'
22689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22690 hardcode_libdir_flag_spec_F77='-L$libdir'
22691 hardcode_shlibpath_var_F77=no
22698 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22699 # support. Future versions do this automatically, but an explicit c++rt0.o
22700 # does not break anything, and helps significantly (at the cost of a little
22703 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22704 hardcode_libdir_flag_spec_F77='-R$libdir'
22705 hardcode_direct_F77=yes
22706 hardcode_shlibpath_var_F77=no
22709 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22711 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22712 hardcode_direct_F77=yes
22713 hardcode_minus_L_F77=yes
22714 hardcode_shlibpath_var_F77=no
22717 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22718 freebsd* | kfreebsd*-gnu | dragonfly*)
22719 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22720 hardcode_libdir_flag_spec_F77='-R$libdir'
22721 hardcode_direct_F77=yes
22722 hardcode_shlibpath_var_F77=no
22726 if test "$GCC" = yes; then
22727 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'
22729 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'
22731 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22732 hardcode_libdir_separator_F77=:
22733 hardcode_direct_F77=yes
22735 # hardcode_minus_L: Not really in the search PATH,
22736 # but as the default location of the library.
22737 hardcode_minus_L_F77=yes
22738 export_dynamic_flag_spec_F77='${wl}-E'
22742 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22743 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22745 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22747 if test "$with_gnu_ld" = no; then
22748 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22749 hardcode_libdir_separator_F77=:
22751 hardcode_direct_F77=yes
22752 export_dynamic_flag_spec_F77='${wl}-E'
22754 # hardcode_minus_L: Not really in the search PATH,
22755 # but as the default location of the library.
22756 hardcode_minus_L_F77=yes
22761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22764 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22767 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22770 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22776 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22779 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22782 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22786 if test "$with_gnu_ld" = no; then
22787 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22788 hardcode_libdir_separator_F77=:
22792 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22793 hardcode_direct_F77=no
22794 hardcode_shlibpath_var_F77=no
22797 hardcode_direct_F77=yes
22798 export_dynamic_flag_spec_F77='${wl}-E'
22800 # hardcode_minus_L: Not really in the search PATH,
22801 # but as the default location of the library.
22802 hardcode_minus_L_F77=yes
22808 irix5* | irix6* | nonstopux*)
22809 if test "$GCC" = yes; then
22810 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'
22812 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'
22813 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22815 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22816 hardcode_libdir_separator_F77=:
22817 link_all_deplibs_F77=yes
22821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22822 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22824 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22826 hardcode_libdir_flag_spec_F77='-R$libdir'
22827 hardcode_direct_F77=yes
22828 hardcode_shlibpath_var_F77=no
22832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22833 hardcode_direct_F77=yes
22834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22835 hardcode_libdir_separator_F77=:
22836 hardcode_shlibpath_var_F77=no
22840 hardcode_direct_F77=yes
22841 hardcode_shlibpath_var_F77=no
22842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22843 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22844 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22845 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22846 export_dynamic_flag_spec_F77='${wl}-E'
22849 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22850 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22851 hardcode_libdir_flag_spec_F77='-R$libdir'
22854 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22855 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22862 hardcode_libdir_flag_spec_F77='-L$libdir'
22863 hardcode_minus_L_F77=yes
22864 allow_undefined_flag_F77=unsupported
22865 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'
22866 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22870 if test "$GCC" = yes; then
22871 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22872 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'
22874 allow_undefined_flag_F77=' -expect_unresolved \*'
22875 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'
22877 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22878 hardcode_libdir_separator_F77=:
22881 osf4* | osf5*) # as osf3* with the addition of -msym flag
22882 if test "$GCC" = yes; then
22883 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22884 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'
22885 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22887 allow_undefined_flag_F77=' -expect_unresolved \*'
22888 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'
22889 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~
22890 $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'
22892 # Both c and cxx compiler support -rpath directly
22893 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22895 hardcode_libdir_separator_F77=:
22899 no_undefined_flag_F77=' -z text'
22900 if test "$GCC" = yes; then
22902 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22903 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22904 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22907 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22908 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22911 hardcode_libdir_flag_spec_F77='-R$libdir'
22912 hardcode_shlibpath_var_F77=no
22914 solaris2.[0-5] | solaris2.[0-5].*) ;;
22916 # The compiler driver will combine linker options so we
22917 # cannot just pass the convience library names through
22918 # without $wl, iff we do not link with $LD.
22919 # Luckily, gcc supports the same syntax we need for Sun Studio.
22920 # Supported since Solaris 2.6 (maybe 2.5.1?)
22923 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22925 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' ;;
22928 link_all_deplibs_F77=yes
22932 if test "x$host_vendor" = xsequent; then
22933 # Use $CC to link under sequent, because it throws in some extra .o
22934 # files that make .init and .fini sections work.
22935 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22937 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22939 hardcode_libdir_flag_spec_F77='-L$libdir'
22940 hardcode_direct_F77=yes
22941 hardcode_minus_L_F77=yes
22942 hardcode_shlibpath_var_F77=no
22946 case $host_vendor in
22948 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22949 hardcode_direct_F77=yes # is this really true???
22952 ## LD is ld it makes a PLAMLIB
22953 ## CC just makes a GrossModule.
22954 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22955 reload_cmds_F77='$CC -r -o $output$reload_objs'
22956 hardcode_direct_F77=no
22959 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22960 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22963 runpath_var='LD_RUN_PATH'
22964 hardcode_shlibpath_var_F77=no
22968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22969 hardcode_shlibpath_var_F77=no
22970 export_dynamic_flag_spec_F77='-Bexport'
22974 if test -d /usr/nec; then
22975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22976 hardcode_shlibpath_var_F77=no
22977 runpath_var=LD_RUN_PATH
22978 hardcode_runpath_var=yes
22983 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22984 no_undefined_flag_F77='${wl}-z,text'
22985 archive_cmds_need_lc_F77=no
22986 hardcode_shlibpath_var_F77=no
22987 runpath_var='LD_RUN_PATH'
22989 if test "$GCC" = yes; then
22990 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22991 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22993 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22994 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22998 sysv5* | sco3.2v5* | sco5v6*)
22999 # Note: We can NOT use -z defs as we might desire, because we do not
23000 # link with -lc, and that would cause any symbols used from libc to
23001 # always be unresolved, which means just about no library would
23002 # ever link correctly. If we're not using GNU ld we use -z text
23003 # though, which does catch some bad symbols but isn't as heavy-handed
23005 no_undefined_flag_F77='${wl}-z,text'
23006 allow_undefined_flag_F77='${wl}-z,nodefs'
23007 archive_cmds_need_lc_F77=no
23008 hardcode_shlibpath_var_F77=no
23009 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23010 hardcode_libdir_separator_F77=':'
23011 link_all_deplibs_F77=yes
23012 export_dynamic_flag_spec_F77='${wl}-Bexport'
23013 runpath_var='LD_RUN_PATH'
23015 if test "$GCC" = yes; then
23016 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23017 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23019 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23020 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23026 hardcode_libdir_flag_spec_F77='-L$libdir'
23027 hardcode_shlibpath_var_F77=no
23036 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23037 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23038 test "$ld_shlibs_F77" = no && can_build_shared=no
23041 # Do we need to explicitly link libc?
23043 case "x$archive_cmds_need_lc_F77" in
23045 # Assume -lc should be added
23046 archive_cmds_need_lc_F77=yes
23048 if test "$enable_shared" = yes && test "$GCC" = yes; then
23049 case $archive_cmds_F77 in
23051 # FIXME: we may have to deal with multi-command sequences.
23054 # Test whether the compiler implicitly links with -lc since on some
23055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23056 # to ld, don't add -lc before -lgcc.
23057 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23063 (eval $ac_compile) 2>&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } 2>conftest.err; then
23069 libobjs=conftest.$ac_objext
23071 wl=$lt_prog_compiler_wl_F77
23072 pic_flag=$lt_prog_compiler_pic_F77
23078 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23079 allow_undefined_flag_F77=
23080 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23081 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }
23086 archive_cmds_need_lc_F77=no
23088 archive_cmds_need_lc_F77=yes
23090 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23092 cat conftest.err 1>&5
23095 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23096 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23103 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23104 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23105 library_names_spec=
23106 libname_spec='lib$name'
23110 postuninstall_cmds=
23114 shlibpath_overrides_runpath=unknown
23116 dynamic_linker="$host_os ld.so"
23117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23118 if test "$GCC" = yes; then
23119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23120 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23121 # if the path contains ";" then we assume it to be the separator
23122 # otherwise default to the standard path separator (i.e. ":") - it is
23123 # assumed that no part of a normal pathname contains ";" but that should
23124 # okay in the real world where ";" in dirpaths is itself problematic.
23125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23132 need_lib_prefix=unknown
23133 hardcode_into_libs=no
23135 # when you set need_version to no, make sure it does not cause -set_version
23136 # flags to be left without arguments
23137 need_version=unknown
23142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23143 shlibpath_var=LIBPATH
23145 # AIX 3 has no versioning support, so we append a major version to the name.
23146 soname_spec='${libname}${release}${shared_ext}$major'
23153 hardcode_into_libs=yes
23154 if test "$host_cpu" = ia64; then
23155 # AIX 5 supports IA64
23156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23157 shlibpath_var=LD_LIBRARY_PATH
23159 # With GCC up to 2.95.x, collect2 would create an import file
23160 # for dependence libraries. The import file would start with
23161 # the line `#! .'. This would cause the generated library to
23162 # depend on `.', always an invalid library. This was fixed in
23163 # development snapshots of GCC prior to 3.0.
23165 aix4 | aix4.[01] | aix4.[01].*)
23166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23171 can_build_shared=no
23175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23176 # soname into executable. Probably we can add versioning support to
23177 # collect2, so additional links can be useful in future.
23178 if test "$aix_use_runtimelinking" = yes; then
23179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23180 # instead of lib<name>.a to let people know that these are not
23181 # typical AIX shared libraries.
23182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184 # We preserve .a as extension for shared libraries through AIX4.2
23185 # and later when we are not doing run time linking.
23186 library_names_spec='${libname}${release}.a $libname.a'
23187 soname_spec='${libname}${release}${shared_ext}$major'
23189 shlibpath_var=LIBPATH
23194 library_names_spec='$libname.ixlibrary $libname.a'
23195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23196 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'
23200 library_names_spec='${libname}${shared_ext}'
23201 dynamic_linker="$host_os ld.so"
23202 shlibpath_var=LIBRARY_PATH
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23211 shlibpath_var=LD_LIBRARY_PATH
23212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23214 # the default ld.so.conf also contains /usr/contrib/lib and
23215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23216 # libtool to hard-code these into programs
23219 cygwin* | mingw* | pw32*)
23220 version_type=windows
23225 case $GCC,$host_os in
23226 yes,cygwin* | yes,mingw* | yes,pw32*)
23227 library_names_spec='$libname.dll.a'
23228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23229 postinstall_cmds='base_file=`basename \${file}`~
23230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23231 dldir=$destdir/`dirname \$dlpath`~
23232 test -d \$dldir || mkdir -p \$dldir~
23233 $install_prog $dir/$dlname \$dldir/$dlname~
23234 chmod a+x \$dldir/$dlname'
23235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23236 dlpath=$dir/\$dldll~
23238 shlibpath_overrides_runpath=yes
23242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23244 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23247 # MinGW DLLs use traditional 'lib' prefix
23248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23250 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23251 # It is most probably a Windows format PATH printed by
23252 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23253 # path with ; separators, and with drive letters. We can handle the
23254 # drive letters (cygwin fileutils understands them), so leave them,
23255 # especially as we might pass files found there to a mingw objdump,
23256 # which wouldn't understand a cygwinified path. Ahh.
23257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23263 # pw32 DLLs use 'pw' prefix rather than 'lib'
23264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23273 dynamic_linker='Win32 ld.exe'
23274 # FIXME: first we should search . and the directory the executable is in
23278 darwin* | rhapsody*)
23279 dynamic_linker="$host_os dyld"
23280 version_type=darwin
23283 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23284 soname_spec='${libname}${release}${major}$shared_ext'
23285 shlibpath_overrides_runpath=yes
23286 shlibpath_var=DYLD_LIBRARY_PATH
23287 shrext_cmds='.dylib'
23288 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23289 if test "$GCC" = yes; then
23290 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"`
23292 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23302 soname_spec='${libname}${release}${shared_ext}$major'
23303 shlibpath_var=LD_LIBRARY_PATH
23314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23315 soname_spec='${libname}${release}${shared_ext}$major'
23316 shlibpath_var=LD_LIBRARY_PATH
23317 shlibpath_overrides_runpath=no
23318 hardcode_into_libs=yes
23319 dynamic_linker='GNU ld.so'
23322 freebsd* | dragonfly*)
23323 # DragonFly does not have aout. When/if they implement a new
23324 # versioning mechanism, adjust this.
23325 if test -x /usr/bin/objformat; then
23326 objformat=`/usr/bin/objformat`
23329 freebsd[123]*) objformat=aout ;;
23330 *) objformat=elf ;;
23333 version_type=freebsd-$objformat
23334 case $version_type in
23336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23345 shlibpath_var=LD_LIBRARY_PATH
23348 shlibpath_overrides_runpath=yes
23350 freebsd3.[01]* | freebsdelf3.[01]*)
23351 shlibpath_overrides_runpath=yes
23352 hardcode_into_libs=yes
23354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23356 shlibpath_overrides_runpath=no
23357 hardcode_into_libs=yes
23359 freebsd*) # from 4.6 on
23360 shlibpath_overrides_runpath=yes
23361 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
23373 hardcode_into_libs=yes
23376 hpux9* | hpux10* | hpux11*)
23377 # Give a soname corresponding to the major version so that dld.sl refuses to
23378 # link against other versions.
23385 hardcode_into_libs=yes
23386 dynamic_linker="$host_os dld.so"
23387 shlibpath_var=LD_LIBRARY_PATH
23388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23390 soname_spec='${libname}${release}${shared_ext}$major'
23391 if test "X$HPUX_IA64_MODE" = X32; then
23392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23400 hardcode_into_libs=yes
23401 dynamic_linker="$host_os dld.sl"
23402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23405 soname_spec='${libname}${release}${shared_ext}$major'
23406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23411 dynamic_linker="$host_os dld.sl"
23412 shlibpath_var=SHLIB_PATH
23413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23415 soname_spec='${libname}${release}${shared_ext}$major'
23418 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23419 postinstall_cmds='chmod 555 $lib'
23426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23427 soname_spec='${libname}${release}${shared_ext}$major'
23428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23429 shlibpath_var=LD_LIBRARY_PATH
23430 shlibpath_overrides_runpath=no
23431 hardcode_into_libs=yes
23434 irix5* | irix6* | nonstopux*)
23436 nonstopux*) version_type=nonstopux ;;
23438 if test "$lt_cv_prog_gnu_ld" = yes; then
23446 soname_spec='${libname}${release}${shared_ext}$major'
23447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23449 irix5* | nonstopux*)
23450 libsuff= shlibsuff=
23453 case $LD in # libtool.m4 will add one of these switches to LD
23454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23455 libsuff= shlibsuff= libmagic=32-bit;;
23456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23457 libsuff=32 shlibsuff=N32 libmagic=N32;;
23458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23459 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23460 *) libsuff= shlibsuff= libmagic=never-match;;
23464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23465 shlibpath_overrides_runpath=no
23466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23468 hardcode_into_libs=yes
23471 # No shared lib support for Linux oldld, aout, or coff.
23472 linux*oldld* | linux*aout* | linux*coff*)
23476 # This must be Linux ELF.
23481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23482 soname_spec='${libname}${release}${shared_ext}$major'
23483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23484 shlibpath_var=LD_LIBRARY_PATH
23485 shlibpath_overrides_runpath=no
23486 # This implies no fast_install, which is unacceptable.
23487 # Some rework will be needed to allow for fast_install
23488 # before this can be enabled.
23489 hardcode_into_libs=yes
23491 # Append ld.so.conf contents to the search path
23492 if test -f /etc/ld.so.conf; then
23493 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' ' '`
23494 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23497 # We used to test for /lib/ld.so.1 and disable shared libraries on
23498 # powerpc, because MkLinux only supported shared libraries with the
23499 # GNU dynamic linker. Since this was broken with cross compilers,
23500 # most powerpc-linux boxes support dynamic linking these days and
23501 # people can always --disable-shared, the test was removed, and we
23502 # assume the GNU/Linux dynamic linker is in use.
23503 dynamic_linker='GNU/Linux ld.so'
23510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23511 soname_spec='${libname}${release}${shared_ext}$major'
23512 shlibpath_var=LD_LIBRARY_PATH
23513 shlibpath_overrides_runpath=no
23514 hardcode_into_libs=yes
23515 dynamic_linker='GNU ld.so'
23522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23525 dynamic_linker='NetBSD (a.out) ld.so'
23527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23528 soname_spec='${libname}${release}${shared_ext}$major'
23529 dynamic_linker='NetBSD ld.elf_so'
23531 shlibpath_var=LD_LIBRARY_PATH
23532 shlibpath_overrides_runpath=yes
23533 hardcode_into_libs=yes
23538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23539 shlibpath_var=LD_LIBRARY_PATH
23540 shlibpath_overrides_runpath=yes
23547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23548 soname_spec='${libname}${release}${shared_ext}$major'
23549 shlibpath_var=LD_LIBRARY_PATH
23550 shlibpath_overrides_runpath=yes
23555 sys_lib_dlsearch_path_spec="/usr/lib"
23557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23560 *) need_version=no ;;
23562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23564 shlibpath_var=LD_LIBRARY_PATH
23565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23567 openbsd2.[89] | openbsd2.[89].*)
23568 shlibpath_overrides_runpath=no
23571 shlibpath_overrides_runpath=yes
23575 shlibpath_overrides_runpath=yes
23580 libname_spec='$name'
23583 library_names_spec='$libname${shared_ext} $libname.a'
23584 dynamic_linker='OS/2 ld.exe'
23585 shlibpath_var=LIBPATH
23588 osf3* | osf4* | osf5*)
23592 soname_spec='${libname}${release}${shared_ext}$major'
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594 shlibpath_var=LD_LIBRARY_PATH
23595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23604 soname_spec='${libname}${release}${shared_ext}$major'
23605 shlibpath_var=LD_LIBRARY_PATH
23606 shlibpath_overrides_runpath=yes
23607 hardcode_into_libs=yes
23608 # ldd complains unless libraries are executable
23609 postinstall_cmds='chmod +x $lib'
23614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23616 shlibpath_var=LD_LIBRARY_PATH
23617 shlibpath_overrides_runpath=yes
23618 if test "$with_gnu_ld" = yes; then
23626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23627 soname_spec='${libname}${release}${shared_ext}$major'
23628 shlibpath_var=LD_LIBRARY_PATH
23629 case $host_vendor in
23631 shlibpath_overrides_runpath=no
23633 export_dynamic_flag_spec='${wl}-Blargedynsym'
23634 runpath_var=LD_RUN_PATH
23642 shlibpath_overrides_runpath=no
23643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23649 if test -d /usr/nec ;then
23651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23652 soname_spec='$libname${shared_ext}.$major'
23653 shlibpath_var=LD_LIBRARY_PATH
23657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23658 version_type=freebsd-elf
23661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23662 soname_spec='${libname}${release}${shared_ext}$major'
23663 shlibpath_var=LD_LIBRARY_PATH
23664 hardcode_into_libs=yes
23665 if test "$with_gnu_ld" = yes; then
23666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23667 shlibpath_overrides_runpath=no
23669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23670 shlibpath_overrides_runpath=yes
23673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23677 sys_lib_dlsearch_path_spec='/usr/lib'
23682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23683 soname_spec='${libname}${release}${shared_ext}$major'
23684 shlibpath_var=LD_LIBRARY_PATH
23691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23692 echo "${ECHO_T}$dynamic_linker" >&6; }
23693 test "$dynamic_linker" = no && can_build_shared=no
23695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23696 if test "$GCC" = yes; then
23697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23700 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23702 hardcode_action_F77=
23703 if test -n "$hardcode_libdir_flag_spec_F77" || \
23704 test -n "$runpath_var_F77" || \
23705 test "X$hardcode_automatic_F77" = "Xyes" ; then
23707 # We can hardcode non-existant directories.
23708 if test "$hardcode_direct_F77" != no &&
23709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23710 # have to relink, otherwise we might link with an installed library
23711 # when we should be linking with a yet-to-be-installed one
23712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23713 test "$hardcode_minus_L_F77" != no; then
23714 # Linking always hardcodes the temporary library directory.
23715 hardcode_action_F77=relink
23717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23718 hardcode_action_F77=immediate
23721 # We cannot hardcode anything, or else we can only hardcode existing
23723 hardcode_action_F77=unsupported
23725 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23726 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23728 if test "$hardcode_action_F77" = relink; then
23729 # Fast installation is not supported
23730 enable_fast_install=no
23731 elif test "$shlibpath_overrides_runpath" = yes ||
23732 test "$enable_shared" = no; then
23733 # Fast installation is not necessary
23734 enable_fast_install=needless
23738 # The else clause should only fire when bootstrapping the
23739 # libtool distribution, otherwise you forgot to ship ltmain.sh
23740 # with your package, and you will get complaints that there are
23741 # no rules to generate ltmain.sh.
23742 if test -f "$ltmain"; then
23743 # See if we are running on zsh, and set the options which allow our commands through
23744 # without removal of \ escapes.
23745 if test -n "${ZSH_VERSION+set}" ; then
23746 setopt NO_GLOB_SUBST
23748 # Now quote all the things that may contain metacharacters while being
23749 # careful not to overquote the AC_SUBSTed values. We take copies of the
23750 # variables and quote the copies for generation of the libtool script.
23751 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23753 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23754 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23755 deplibs_check_method reload_flag reload_cmds need_locks \
23756 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23757 lt_cv_sys_global_symbol_to_c_name_address \
23758 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23759 old_postinstall_cmds old_postuninstall_cmds \
23763 lt_prog_compiler_wl_F77 \
23764 lt_prog_compiler_pic_F77 \
23765 lt_prog_compiler_static_F77 \
23766 lt_prog_compiler_no_builtin_flag_F77 \
23767 export_dynamic_flag_spec_F77 \
23768 thread_safe_flag_spec_F77 \
23769 whole_archive_flag_spec_F77 \
23770 enable_shared_with_static_runtimes_F77 \
23771 old_archive_cmds_F77 \
23772 old_archive_from_new_cmds_F77 \
23773 predep_objects_F77 \
23774 postdep_objects_F77 \
23777 compiler_lib_search_path_F77 \
23779 archive_expsym_cmds_F77 \
23780 postinstall_cmds_F77 \
23781 postuninstall_cmds_F77 \
23782 old_archive_from_expsyms_cmds_F77 \
23783 allow_undefined_flag_F77 \
23784 no_undefined_flag_F77 \
23785 export_symbols_cmds_F77 \
23786 hardcode_libdir_flag_spec_F77 \
23787 hardcode_libdir_flag_spec_ld_F77 \
23788 hardcode_libdir_separator_F77 \
23789 hardcode_automatic_F77 \
23791 module_expsym_cmds_F77 \
23792 lt_cv_prog_compiler_c_o_F77 \
23793 exclude_expsyms_F77 \
23794 include_expsyms_F77; do
23797 old_archive_cmds_F77 | \
23798 old_archive_from_new_cmds_F77 | \
23799 archive_cmds_F77 | \
23800 archive_expsym_cmds_F77 | \
23801 module_cmds_F77 | \
23802 module_expsym_cmds_F77 | \
23803 old_archive_from_expsyms_cmds_F77 | \
23804 export_symbols_cmds_F77 | \
23805 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23806 postinstall_cmds | postuninstall_cmds | \
23807 old_postinstall_cmds | old_postuninstall_cmds | \
23808 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23809 # Double-quote double-evaled strings.
23810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23819 *'\$0 --fallback-echo"')
23820 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23826 cat <<__EOF__ >> "$cfgfile"
23827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23831 # Shell to use when invoking shell scripts.
23834 # Whether or not to build shared libraries.
23835 build_libtool_libs=$enable_shared
23837 # Whether or not to build static libraries.
23838 build_old_libs=$enable_static
23840 # Whether or not to add -lc for building shared libraries.
23841 build_libtool_need_lc=$archive_cmds_need_lc_F77
23843 # Whether or not to disallow shared libs when runtime libs are static
23844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23846 # Whether or not to optimize for fast installation.
23847 fast_install=$enable_fast_install
23850 host_alias=$host_alias
23854 # The build system.
23855 build_alias=$build_alias
23859 # An echo program that does not interpret backslashes.
23864 AR_FLAGS=$lt_AR_FLAGS
23869 # LTCC compiler flags.
23870 LTCFLAGS=$lt_LTCFLAGS
23872 # A language-specific compiler.
23873 CC=$lt_compiler_F77
23875 # Is the compiler the GNU C compiler?
23881 # The linker used to build libraries.
23884 # Whether we need hard or soft links.
23887 # A BSD-compatible nm program.
23890 # A symbol stripping program
23893 # Used to examine libraries when file_magic_cmd begins "file"
23894 MAGIC_CMD=$MAGIC_CMD
23896 # Used on cygwin: DLL creation program.
23899 # Used on cygwin: object dumper.
23902 # Used on cygwin: assembler.
23905 # The name of the directory that contains temporary libtool files.
23908 # How to create reloadable object files.
23909 reload_flag=$lt_reload_flag
23910 reload_cmds=$lt_reload_cmds
23912 # How to pass a linker flag through the compiler.
23913 wl=$lt_lt_prog_compiler_wl_F77
23915 # Object file suffix (normally "o").
23916 objext="$ac_objext"
23918 # Old archive suffix (normally "a").
23921 # Shared library suffix (normally ".so").
23922 shrext_cmds='$shrext_cmds'
23924 # Executable file suffix (normally "").
23927 # Additional compiler flags for building library objects.
23928 pic_flag=$lt_lt_prog_compiler_pic_F77
23931 # What is the maximum length of a command?
23932 max_cmd_len=$lt_cv_sys_max_cmd_len
23934 # Does compiler simultaneously support -c and -o options?
23935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23937 # Must we lock files when doing compilation?
23938 need_locks=$lt_need_locks
23940 # Do we need the lib prefix for modules?
23941 need_lib_prefix=$need_lib_prefix
23943 # Do we need a version for libraries?
23944 need_version=$need_version
23946 # Whether dlopen is supported.
23947 dlopen_support=$enable_dlopen
23949 # Whether dlopen of programs is supported.
23950 dlopen_self=$enable_dlopen_self
23952 # Whether dlopen of statically linked programs is supported.
23953 dlopen_self_static=$enable_dlopen_self_static
23955 # Compiler flag to prevent dynamic linking.
23956 link_static_flag=$lt_lt_prog_compiler_static_F77
23958 # Compiler flag to turn off builtin functions.
23959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23961 # Compiler flag to allow reflexive dlopens.
23962 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23964 # Compiler flag to generate shared objects directly from archives.
23965 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23967 # Compiler flag to generate thread-safe objects.
23968 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23970 # Library versioning type.
23971 version_type=$version_type
23973 # Format of library name prefix.
23974 libname_spec=$lt_libname_spec
23976 # List of archive names. First name is the real one, the rest are links.
23977 # The last name is the one that the linker finds with -lNAME.
23978 library_names_spec=$lt_library_names_spec
23980 # The coded name of the library, if different from the real name.
23981 soname_spec=$lt_soname_spec
23983 # Commands used to build and install an old-style archive.
23985 old_archive_cmds=$lt_old_archive_cmds_F77
23986 old_postinstall_cmds=$lt_old_postinstall_cmds
23987 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23989 # Create an old-style archive from a shared archive.
23990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23992 # Create a temporary old-style archive to link instead of a shared archive.
23993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23995 # Commands used to build and install a shared archive.
23996 archive_cmds=$lt_archive_cmds_F77
23997 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23998 postinstall_cmds=$lt_postinstall_cmds
23999 postuninstall_cmds=$lt_postuninstall_cmds
24001 # Commands used to build a loadable module (assumed same as above if empty)
24002 module_cmds=$lt_module_cmds_F77
24003 module_expsym_cmds=$lt_module_expsym_cmds_F77
24005 # Commands to strip libraries.
24006 old_striplib=$lt_old_striplib
24007 striplib=$lt_striplib
24009 # Dependencies to place before the objects being linked to create a
24011 predep_objects=$lt_predep_objects_F77
24013 # Dependencies to place after the objects being linked to create a
24015 postdep_objects=$lt_postdep_objects_F77
24017 # Dependencies to place before the objects being linked to create a
24019 predeps=$lt_predeps_F77
24021 # Dependencies to place after the objects being linked to create a
24023 postdeps=$lt_postdeps_F77
24025 # The library search path used internally by the compiler when linking
24026 # a shared library.
24027 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24029 # Method to check whether dependent libraries are shared objects.
24030 deplibs_check_method=$lt_deplibs_check_method
24032 # Command to use when deplibs_check_method == file_magic.
24033 file_magic_cmd=$lt_file_magic_cmd
24035 # Flag that allows shared libraries with undefined symbols to be built.
24036 allow_undefined_flag=$lt_allow_undefined_flag_F77
24038 # Flag that forces no undefined symbols.
24039 no_undefined_flag=$lt_no_undefined_flag_F77
24041 # Commands used to finish a libtool library installation in a directory.
24042 finish_cmds=$lt_finish_cmds
24044 # Same as above, but a single script fragment to be evaled but not shown.
24045 finish_eval=$lt_finish_eval
24047 # Take the output of nm and produce a listing of raw symbols and C names.
24048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24050 # Transform the output of nm in a proper C declaration
24051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24053 # Transform the output of nm in a C name address pair
24054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24056 # This is the shared library runtime path variable.
24057 runpath_var=$runpath_var
24059 # This is the shared library path variable.
24060 shlibpath_var=$shlibpath_var
24062 # Is shlibpath searched before the hard-coded library search path?
24063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24065 # How to hardcode a shared library path into an executable.
24066 hardcode_action=$hardcode_action_F77
24068 # Whether we should hardcode library paths into libraries.
24069 hardcode_into_libs=$hardcode_into_libs
24071 # Flag to hardcode \$libdir into a binary during linking.
24072 # This must work even if \$libdir does not exist.
24073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24075 # If ld is used when linking, flag to hardcode \$libdir into
24076 # a binary during linking. This must work even if \$libdir does
24078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24080 # Whether we need a single -rpath flag with a separated argument.
24081 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24083 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24084 # resulting binary.
24085 hardcode_direct=$hardcode_direct_F77
24087 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24088 # resulting binary.
24089 hardcode_minus_L=$hardcode_minus_L_F77
24091 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24092 # the resulting binary.
24093 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24095 # Set to yes if building a shared library automatically hardcodes DIR into the library
24096 # and all subsequent libraries and executables linked against it.
24097 hardcode_automatic=$hardcode_automatic_F77
24099 # Variables whose values should be saved in libtool wrapper scripts and
24100 # restored at relink time.
24101 variables_saved_for_relink="$variables_saved_for_relink"
24103 # Whether libtool must link a program against all its dependency libraries.
24104 link_all_deplibs=$link_all_deplibs_F77
24106 # Compile-time system search path for libraries
24107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24109 # Run-time system search path for libraries
24110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24112 # Fix the shell variable \$srcfile for the compiler.
24113 fix_srcfile_path="$fix_srcfile_path_F77"
24115 # Set to yes if exported symbols are required.
24116 always_export_symbols=$always_export_symbols_F77
24118 # The commands to list exported symbols.
24119 export_symbols_cmds=$lt_export_symbols_cmds_F77
24121 # The commands to extract the exported symbol list from a shared archive.
24122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24124 # Symbols that should not be listed in the preloaded symbols.
24125 exclude_expsyms=$lt_exclude_expsyms_F77
24127 # Symbols that must always be exported.
24128 include_expsyms=$lt_include_expsyms_F77
24130 # ### END LIBTOOL TAG CONFIG: $tagname
24136 # If there is no Makefile yet, we rely on a make rule to execute
24137 # `config.status --recheck' to rerun these tests and create the
24138 # libtool script then.
24139 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24140 if test -f "$ltmain_in"; then
24141 test -f Makefile && make "$ltmain"
24147 ac_cpp='$CPP $CPPFLAGS'
24148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24160 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24162 ac_cpp='$CPP $CPPFLAGS'
24163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24168 # Source file extension for Java test sources.
24171 # Object file extension for compiled Java test sources.
24175 # Code to be used in simple compile tests
24176 lt_simple_compile_test_code="class foo {}\n"
24178 # Code to be used in simple link tests
24179 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24183 # If no C compiler was specified, use CC.
24186 # If no C compiler flags were specified, use CFLAGS.
24187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24189 # Allow CC to be a program name with arguments.
24193 # save warnings/boilerplate of simple test code
24194 ac_outfile=conftest.$ac_objext
24195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24197 _lt_compiler_boilerplate=`cat conftest.err`
24200 ac_outfile=conftest.$ac_objext
24201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24203 _lt_linker_boilerplate=`cat conftest.err`
24207 # Allow CC to be a program name with arguments.
24212 for cc_temp in $compiler""; do
24214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24223 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24224 archive_cmds_need_lc_GCJ=no
24226 old_archive_cmds_GCJ=$old_archive_cmds
24229 lt_prog_compiler_no_builtin_flag_GCJ=
24231 if test "$GCC" = yes; then
24232 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24235 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24236 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24237 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 lt_cv_prog_compiler_rtti_exceptions=no
24241 ac_outfile=conftest.$ac_objext
24242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24243 lt_compiler_flag="-fno-rtti -fno-exceptions"
24244 # Insert the option either (1) after the last *FLAGS variable, or
24245 # (2) before a word containing "conftest.", or (3) at the end.
24246 # Note that $ac_compile itself does not contain backslashes and begins
24247 # with a dollar sign (not a hyphen), so the echo should work correctly.
24248 # The option is referenced via a variable to avoid confusing sed.
24249 lt_compile=`echo "$ac_compile" | $SED \
24250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24252 -e 's:$: $lt_compiler_flag:'`
24253 (eval echo "\"\$as_me:24253: $lt_compile\"" >&5)
24254 (eval "$lt_compile" 2>conftest.err)
24256 cat conftest.err >&5
24257 echo "$as_me:24257: \$? = $ac_status" >&5
24258 if (exit $ac_status) && test -s "$ac_outfile"; then
24259 # The compiler can only warn and ignore the option if not recognized
24260 # So say no if there are warnings other than the usual output.
24261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24264 lt_cv_prog_compiler_rtti_exceptions=yes
24270 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24271 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24274 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24281 lt_prog_compiler_wl_GCJ=
24282 lt_prog_compiler_pic_GCJ=
24283 lt_prog_compiler_static_GCJ=
24285 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24288 if test "$GCC" = yes; then
24289 lt_prog_compiler_wl_GCJ='-Wl,'
24290 lt_prog_compiler_static_GCJ='-static'
24294 # All AIX code is PIC.
24295 if test "$host_cpu" = ia64; then
24296 # AIX 5 now supports IA64 processor
24297 lt_prog_compiler_static_GCJ='-Bstatic'
24302 # FIXME: we need at least 68020 code to build shared libraries, but
24303 # adding the `-m68020' flag to GCC prevents building anything better,
24305 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24308 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24309 # PIC is the default for these OSes.
24312 mingw* | pw32* | os2*)
24313 # This hack is so that the source file can tell whether it is being
24314 # built for inclusion in a dll (and should export symbols for example).
24315 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24318 darwin* | rhapsody*)
24319 # PIC is the default on this platform
24320 # Common symbols not allowed in MH_DYLIB files
24321 lt_prog_compiler_pic_GCJ='-fno-common'
24325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24326 # Instead, we relocate shared libraries at runtime.
24330 # Just because we use GCC doesn't mean we suddenly get shared libraries
24331 # on systems that don't support them.
24332 lt_prog_compiler_can_build_shared_GCJ=no
24337 if test -d /usr/nec; then
24338 lt_prog_compiler_pic_GCJ=-Kconform_pic
24343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24344 # not for PA HP-UX.
24350 lt_prog_compiler_pic_GCJ='-fPIC'
24356 lt_prog_compiler_pic_GCJ='-fPIC'
24360 # PORTME Check for flag to pass linker flags through the system compiler.
24363 lt_prog_compiler_wl_GCJ='-Wl,'
24364 if test "$host_cpu" = ia64; then
24365 # AIX 5 now supports IA64 processor
24366 lt_prog_compiler_static_GCJ='-Bstatic'
24368 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24372 # PIC is the default on this platform
24373 # Common symbols not allowed in MH_DYLIB files
24374 case $cc_basename in
24376 lt_prog_compiler_pic_GCJ='-qnocommon'
24377 lt_prog_compiler_wl_GCJ='-Wl,'
24382 mingw* | pw32* | os2*)
24383 # This hack is so that the source file can tell whether it is being
24384 # built for inclusion in a dll (and should export symbols for example).
24385 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24388 hpux9* | hpux10* | hpux11*)
24389 lt_prog_compiler_wl_GCJ='-Wl,'
24390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24391 # not for PA HP-UX.
24397 lt_prog_compiler_pic_GCJ='+Z'
24400 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24401 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24404 irix5* | irix6* | nonstopux*)
24405 lt_prog_compiler_wl_GCJ='-Wl,'
24406 # PIC (with -KPIC) is the default.
24407 lt_prog_compiler_static_GCJ='-non_shared'
24411 lt_prog_compiler_pic_GCJ='-KPIC'
24412 lt_prog_compiler_static_GCJ='-Bstatic'
24416 case $cc_basename in
24418 lt_prog_compiler_wl_GCJ='-Wl,'
24419 lt_prog_compiler_pic_GCJ='-KPIC'
24420 lt_prog_compiler_static_GCJ='-static'
24422 pgcc* | pgf77* | pgf90* | pgf95*)
24423 # Portland Group compilers (*not* the Pentium gcc compiler,
24424 # which looks to be a dead project)
24425 lt_prog_compiler_wl_GCJ='-Wl,'
24426 lt_prog_compiler_pic_GCJ='-fpic'
24427 lt_prog_compiler_static_GCJ='-Bstatic'
24430 lt_prog_compiler_wl_GCJ='-Wl,'
24431 # All Alpha code is PIC.
24432 lt_prog_compiler_static_GCJ='-non_shared'
24437 osf3* | osf4* | osf5*)
24438 lt_prog_compiler_wl_GCJ='-Wl,'
24439 # All OSF/1 code is PIC.
24440 lt_prog_compiler_static_GCJ='-non_shared'
24444 lt_prog_compiler_pic_GCJ='-KPIC'
24445 lt_prog_compiler_static_GCJ='-Bstatic'
24446 case $cc_basename in
24447 f77* | f90* | f95*)
24448 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24450 lt_prog_compiler_wl_GCJ='-Wl,';;
24455 lt_prog_compiler_wl_GCJ='-Qoption ld '
24456 lt_prog_compiler_pic_GCJ='-PIC'
24457 lt_prog_compiler_static_GCJ='-Bstatic'
24460 sysv4 | sysv4.2uw2* | sysv4.3*)
24461 lt_prog_compiler_wl_GCJ='-Wl,'
24462 lt_prog_compiler_pic_GCJ='-KPIC'
24463 lt_prog_compiler_static_GCJ='-Bstatic'
24467 if test -d /usr/nec ;then
24468 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24469 lt_prog_compiler_static_GCJ='-Bstatic'
24473 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24474 lt_prog_compiler_wl_GCJ='-Wl,'
24475 lt_prog_compiler_pic_GCJ='-KPIC'
24476 lt_prog_compiler_static_GCJ='-Bstatic'
24480 lt_prog_compiler_wl_GCJ='-Wl,'
24481 lt_prog_compiler_can_build_shared_GCJ=no
24485 lt_prog_compiler_pic_GCJ='-pic'
24486 lt_prog_compiler_static_GCJ='-Bstatic'
24490 lt_prog_compiler_can_build_shared_GCJ=no
24495 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24496 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24499 # Check to make sure the PIC flag actually works.
24501 if test -n "$lt_prog_compiler_pic_GCJ"; then
24503 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24504 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24505 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24508 lt_prog_compiler_pic_works_GCJ=no
24509 ac_outfile=conftest.$ac_objext
24510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24511 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24512 # Insert the option either (1) after the last *FLAGS variable, or
24513 # (2) before a word containing "conftest.", or (3) at the end.
24514 # Note that $ac_compile itself does not contain backslashes and begins
24515 # with a dollar sign (not a hyphen), so the echo should work correctly.
24516 # The option is referenced via a variable to avoid confusing sed.
24517 lt_compile=`echo "$ac_compile" | $SED \
24518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24520 -e 's:$: $lt_compiler_flag:'`
24521 (eval echo "\"\$as_me:24521: $lt_compile\"" >&5)
24522 (eval "$lt_compile" 2>conftest.err)
24524 cat conftest.err >&5
24525 echo "$as_me:24525: \$? = $ac_status" >&5
24526 if (exit $ac_status) && test -s "$ac_outfile"; then
24527 # The compiler can only warn and ignore the option if not recognized
24528 # So say no if there are warnings other than the usual output.
24529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24532 lt_prog_compiler_pic_works_GCJ=yes
24538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24539 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24541 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24542 case $lt_prog_compiler_pic_GCJ in
24544 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24547 lt_prog_compiler_pic_GCJ=
24548 lt_prog_compiler_can_build_shared_GCJ=no
24553 # For platforms which do not support PIC, -DPIC is meaningless:
24555 lt_prog_compiler_pic_GCJ=
24558 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24563 # Check to make sure the static flag actually works.
24565 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24566 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24567 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24568 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24569 echo $ECHO_N "(cached) $ECHO_C" >&6
24571 lt_prog_compiler_static_works_GCJ=no
24572 save_LDFLAGS="$LDFLAGS"
24573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24574 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24576 # The linker can only warn and ignore the option if not recognized
24577 # So say no if there are warnings
24578 if test -s conftest.err; then
24579 # Append any errors to the config.log.
24580 cat conftest.err 1>&5
24581 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24583 if diff conftest.exp conftest.er2 >/dev/null; then
24584 lt_prog_compiler_static_works_GCJ=yes
24587 lt_prog_compiler_static_works_GCJ=yes
24591 LDFLAGS="$save_LDFLAGS"
24594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24595 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24597 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24600 lt_prog_compiler_static_GCJ=
24604 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24605 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24606 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 lt_cv_prog_compiler_c_o_GCJ=no
24610 $rm -r conftest 2>/dev/null
24614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24616 lt_compiler_flag="-o out/conftest2.$ac_objext"
24617 # Insert the option either (1) after the last *FLAGS variable, or
24618 # (2) before a word containing "conftest.", or (3) at the end.
24619 # Note that $ac_compile itself does not contain backslashes and begins
24620 # with a dollar sign (not a hyphen), so the echo should work correctly.
24621 lt_compile=`echo "$ac_compile" | $SED \
24622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24624 -e 's:$: $lt_compiler_flag:'`
24625 (eval echo "\"\$as_me:24625: $lt_compile\"" >&5)
24626 (eval "$lt_compile" 2>out/conftest.err)
24628 cat out/conftest.err >&5
24629 echo "$as_me:24629: \$? = $ac_status" >&5
24630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24632 # The compiler can only warn and ignore the option if not recognized
24633 # So say no if there are warnings
24634 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24637 lt_cv_prog_compiler_c_o_GCJ=yes
24642 # SGI C++ compiler will create directory out/ii_files/ for
24643 # template instantiation
24644 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24645 $rm out/* && rmdir out
24651 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24652 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24655 hard_links="nottested"
24656 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24657 # do not overwrite the value of need_locks provided by the user
24658 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24659 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24664 ln conftest.a conftest.b 2>&5 || hard_links=no
24665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24666 { echo "$as_me:$LINENO: result: $hard_links" >&5
24667 echo "${ECHO_T}$hard_links" >&6; }
24668 if test "$hard_links" = no; then
24669 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24670 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24677 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24678 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24681 allow_undefined_flag_GCJ=
24682 enable_shared_with_static_runtimes_GCJ=no
24684 archive_expsym_cmds_GCJ=
24685 old_archive_From_new_cmds_GCJ=
24686 old_archive_from_expsyms_cmds_GCJ=
24687 export_dynamic_flag_spec_GCJ=
24688 whole_archive_flag_spec_GCJ=
24689 thread_safe_flag_spec_GCJ=
24690 hardcode_libdir_flag_spec_GCJ=
24691 hardcode_libdir_flag_spec_ld_GCJ=
24692 hardcode_libdir_separator_GCJ=
24693 hardcode_direct_GCJ=no
24694 hardcode_minus_L_GCJ=no
24695 hardcode_shlibpath_var_GCJ=unsupported
24696 link_all_deplibs_GCJ=unknown
24697 hardcode_automatic_GCJ=no
24699 module_expsym_cmds_GCJ=
24700 always_export_symbols_GCJ=no
24701 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24702 # include_expsyms should be a list of space-separated symbols to be *always*
24703 # included in the symbol list
24704 include_expsyms_GCJ=
24705 # exclude_expsyms can be an extended regexp of symbols to exclude
24706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24708 # as well as any symbol that contains `d'.
24709 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24711 # platforms (ab)use it in PIC code, but their linkers get confused if
24712 # the symbol is explicitly referenced. Since portable code cannot
24713 # rely on this symbol name, it's probably fine to never include it in
24714 # preloaded symbol tables.
24715 extract_expsyms_cmds=
24716 # Just being paranoid about ensuring that cc_basename is set.
24717 for cc_temp in $compiler""; do
24719 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24720 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24725 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24728 cygwin* | mingw* | pw32*)
24729 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24730 # When not using gcc, we currently assume that we are using
24731 # Microsoft Visual C++.
24732 if test "$GCC" != yes; then
24737 # we just hope/assume this is gcc and not c89 (= MSVC++)
24746 if test "$with_gnu_ld" = yes; then
24747 # If archive_cmds runs LD, not CC, wlarc should be empty
24750 # Set some defaults for GNU ld with shared library support. These
24751 # are reset later if shared libraries are not supported. Putting them
24752 # here allows them to be overridden if necessary.
24753 runpath_var=LD_RUN_PATH
24754 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24755 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24756 # ancient GNU ld didn't support --whole-archive et. al.
24757 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24758 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24760 whole_archive_flag_spec_GCJ=
24762 supports_anon_versioning=no
24763 case `$LD -v 2>/dev/null` in
24764 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24767 *\ 2.11.*) ;; # other 2.11 versions
24768 *) supports_anon_versioning=yes ;;
24771 # See if GNU ld supports shared libraries.
24773 aix3* | aix4* | aix5*)
24774 # On AIX/PPC, the GNU linker is very broken
24775 if test "$host_cpu" != ia64; then
24779 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24780 *** to be unable to reliably create shared libraries on AIX.
24781 *** Therefore, libtool is disabling shared libraries support. If you
24782 *** really care for shared libraries, you may want to modify your PATH
24783 *** so that a non-GNU linker is found, and then restart.
24790 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)'
24791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24792 hardcode_minus_L_GCJ=yes
24794 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24795 # that the semantics of dynamic libraries on AmigaOS, at least up
24796 # to version 4, is to share data among multiple programs linked
24797 # with the same dynamic library. Since this doesn't match the
24798 # behavior of shared libraries on other platforms, we can't use
24804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24805 allow_undefined_flag_GCJ=unsupported
24806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24807 # support --undefined. This deserves some investigation. FIXME
24808 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24814 cygwin* | mingw* | pw32*)
24815 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24816 # as there is no search path for DLLs.
24817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24818 allow_undefined_flag_GCJ=unsupported
24819 always_export_symbols_GCJ=no
24820 enable_shared_with_static_runtimes_GCJ=yes
24821 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24823 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24825 # If the export-symbols file already is a .def file (1st line
24826 # is EXPORTS), use it as is; otherwise, prepend...
24827 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24828 cp $export_symbols $output_objdir/$soname.def;
24830 echo EXPORTS > $output_objdir/$soname.def;
24831 cat $export_symbols >> $output_objdir/$soname.def;
24833 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24840 hardcode_direct_GCJ=no
24841 hardcode_shlibpath_var_GCJ=no
24842 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24843 export_dynamic_flag_spec_GCJ='${wl}-E'
24844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24845 # Instead, shared libraries are loaded at an image base (0x10000000 by
24846 # default) and relocated if they conflict, which is a slow very memory
24847 # consuming and fragmenting process. To avoid this, we pick a random,
24848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24849 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24850 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'
24851 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'
24855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24857 case $cc_basename,$host_cpu in
24858 pgcc*) # Portland Group C compiler
24859 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'
24860 tmp_addflag=' $pic_flag'
24862 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24863 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'
24864 tmp_addflag=' $pic_flag -Mnomain' ;;
24865 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24866 tmp_addflag=' -i_dynamic' ;;
24867 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24868 tmp_addflag=' -i_dynamic -nofor_main' ;;
24869 ifc* | ifort*) # Intel Fortran compiler
24870 tmp_addflag=' -nofor_main' ;;
24872 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24874 if test $supports_anon_versioning = yes; then
24875 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24876 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24877 $echo "local: *; };" >> $output_objdir/$libname.ver~
24878 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24887 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24890 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24891 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24896 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24900 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24901 *** create shared libraries on Solaris systems. Therefore, libtool
24902 *** is disabling shared libraries support. We urge you to upgrade GNU
24903 *** binutils to release 2.9.1 or newer. Another option is to modify
24904 *** your PATH or compiler configuration so that the native linker is
24905 *** used, and then restart.
24908 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24909 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24910 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24917 case `$LD -v 2>&1` in
24918 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24922 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24923 *** reliably create shared libraries on SCO systems. Therefore, libtool
24924 *** is disabling shared libraries support. We urge you to upgrade GNU
24925 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24926 *** your PATH or compiler configuration so that the native linker is
24927 *** used, and then restart.
24932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24933 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24934 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24935 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24944 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24946 hardcode_direct_GCJ=yes
24947 hardcode_shlibpath_var_GCJ=no
24951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24952 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24953 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24960 if test "$ld_shlibs_GCJ" = no; then
24962 hardcode_libdir_flag_spec_GCJ=
24963 export_dynamic_flag_spec_GCJ=
24964 whole_archive_flag_spec_GCJ=
24967 # PORTME fill in a description of your system's linker (not GNU ld)
24970 allow_undefined_flag_GCJ=unsupported
24971 always_export_symbols_GCJ=yes
24972 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'
24973 # Note: this linker hardcodes the directories in LIBPATH if there
24974 # are no directories specified by -L.
24975 hardcode_minus_L_GCJ=yes
24976 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24977 # Neither direct hardcoding nor static linking is supported with a
24979 hardcode_direct_GCJ=unsupported
24984 if test "$host_cpu" = ia64; then
24985 # On IA64, the linker does run time linking by default, so we don't
24986 # have to do anything special.
24987 aix_use_runtimelinking=no
24988 exp_sym_flag='-Bexport'
24991 # If we're using GNU nm, then we don't want the "-C" option.
24992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24994 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'
24996 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'
24998 aix_use_runtimelinking=no
25000 # Test if we are trying to use run time linking or normal
25001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25002 # need to do runtime linking.
25003 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25004 for ld_flag in $LDFLAGS; do
25005 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25006 aix_use_runtimelinking=yes
25013 exp_sym_flag='-bexport'
25014 no_entry_flag='-bnoentry'
25017 # When large executables or shared objects are built, AIX ld can
25018 # have problems creating the table of contents. If linking a library
25019 # or program results in "error TOC overflow" add -mminimal-toc to
25020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25023 archive_cmds_GCJ=''
25024 hardcode_direct_GCJ=yes
25025 hardcode_libdir_separator_GCJ=':'
25026 link_all_deplibs_GCJ=yes
25028 if test "$GCC" = yes; then
25029 case $host_os in aix4.[012]|aix4.[012].*)
25030 # We only want to do this on AIX 4.2 and lower, the check
25031 # below for broken collect2 doesn't work under 4.3+
25032 collect2name=`${CC} -print-prog-name=collect2`
25033 if test -f "$collect2name" && \
25034 strings "$collect2name" | grep resolve_lib_name >/dev/null
25036 # We have reworked collect2
25037 hardcode_direct_GCJ=yes
25039 # We have old collect2
25040 hardcode_direct_GCJ=unsupported
25041 # It fails to find uninstalled libraries when the uninstalled
25042 # path is not listed in the libpath. Setting hardcode_minus_L
25043 # to unsupported forces relinking
25044 hardcode_minus_L_GCJ=yes
25045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25046 hardcode_libdir_separator_GCJ=
25050 shared_flag='-shared'
25051 if test "$aix_use_runtimelinking" = yes; then
25052 shared_flag="$shared_flag "'${wl}-G'
25056 if test "$host_cpu" = ia64; then
25057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25058 # chokes on -Wl,-G. The following line is correct:
25061 if test "$aix_use_runtimelinking" = yes; then
25062 shared_flag='${wl}-G'
25064 shared_flag='${wl}-bM:SRE'
25069 # It seems that -bexpall does not export symbols beginning with
25070 # underscore (_), so it is better to generate a list of symbols to export.
25071 always_export_symbols_GCJ=yes
25072 if test "$aix_use_runtimelinking" = yes; then
25073 # Warning - without using the other runtime loading flags (-brtl),
25074 # -berok will link without error, but may produce a broken library.
25075 allow_undefined_flag_GCJ='-berok'
25076 # Determine the default libpath from the value encoded in an empty executable.
25077 cat >conftest.$ac_ext <<_ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h. */
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (ac_try="$ac_link"
25094 case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_link") 2>conftest.er1
25101 grep -v '^ *+' conftest.er1 >conftest.err
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } &&
25106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25107 { (case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_try") 2>&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } &&
25116 { ac_try='test -s conftest$ac_exeext'
25117 { (case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_try") 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25129 # Check for a 64-bit object if we didn't find anything.
25130 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; }
25133 echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25139 rm -f core conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25143 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25144 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"
25146 if test "$host_cpu" = ia64; then
25147 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25148 allow_undefined_flag_GCJ="-z nodefs"
25149 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"
25151 # Determine the default libpath from the value encoded in an empty executable.
25152 cat >conftest.$ac_ext <<_ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25167 rm -f conftest.$ac_objext conftest$ac_exeext
25168 if { (ac_try="$ac_link"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_link") 2>conftest.er1
25176 grep -v '^ *+' conftest.er1 >conftest.err
25178 cat conftest.err >&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } &&
25181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25182 { (case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_try") 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
25192 { (case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_try") 2>&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; }; then
25202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25204 # Check for a 64-bit object if we didn't find anything.
25205 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; }
25208 echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25214 rm -f core conftest.err conftest.$ac_objext \
25215 conftest$ac_exeext conftest.$ac_ext
25216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25218 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25219 # Warning - without using the other run time loading flags,
25220 # -berok will link without error, but may produce a broken library.
25221 no_undefined_flag_GCJ=' ${wl}-bernotok'
25222 allow_undefined_flag_GCJ=' ${wl}-berok'
25223 # Exported symbols can be pulled into shared objects from archives
25224 whole_archive_flag_spec_GCJ='$convenience'
25225 archive_cmds_need_lc_GCJ=yes
25226 # This is similar to how AIX traditionally builds its shared libraries.
25227 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'
25233 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)'
25234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25235 hardcode_minus_L_GCJ=yes
25236 # see comment about different semantics on the GNU ld section
25241 export_dynamic_flag_spec_GCJ=-rdynamic
25244 cygwin* | mingw* | pw32*)
25245 # When not using gcc, we currently assume that we are using
25246 # Microsoft Visual C++.
25247 # hardcode_libdir_flag_spec is actually meaningless, as there is
25248 # no search path for DLLs.
25249 hardcode_libdir_flag_spec_GCJ=' '
25250 allow_undefined_flag_GCJ=unsupported
25251 # Tell ltmain to make .lib files, not .a files.
25253 # Tell ltmain to make .dll files, not .so files.
25255 # FIXME: Setting linknames here is a bad hack.
25256 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25257 # The linker will automatically build a .lib file if we build a DLL.
25258 old_archive_From_new_cmds_GCJ='true'
25259 # FIXME: Should let the user specify the lib program.
25260 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25261 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25262 enable_shared_with_static_runtimes_GCJ=yes
25265 darwin* | rhapsody*)
25267 rhapsody* | darwin1.[012])
25268 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25271 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25272 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25274 case ${MACOSX_DEPLOYMENT_TARGET} in
25276 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25279 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25285 archive_cmds_need_lc_GCJ=no
25286 hardcode_direct_GCJ=no
25287 hardcode_automatic_GCJ=yes
25288 hardcode_shlibpath_var_GCJ=unsupported
25289 whole_archive_flag_spec_GCJ=''
25290 link_all_deplibs_GCJ=yes
25291 if test "$GCC" = yes ; then
25292 output_verbose_link_cmd='echo'
25293 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25294 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25296 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}'
25297 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}'
25299 case $cc_basename in
25301 output_verbose_link_cmd='echo'
25302 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25303 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25304 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25305 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}'
25306 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}'
25316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25317 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25318 hardcode_shlibpath_var_GCJ=no
25325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25326 # support. Future versions do this automatically, but an explicit c++rt0.o
25327 # does not break anything, and helps significantly (at the cost of a little
25330 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25331 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25332 hardcode_direct_GCJ=yes
25333 hardcode_shlibpath_var_GCJ=no
25336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25339 hardcode_direct_GCJ=yes
25340 hardcode_minus_L_GCJ=yes
25341 hardcode_shlibpath_var_GCJ=no
25344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25345 freebsd* | kfreebsd*-gnu | dragonfly*)
25346 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25347 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25348 hardcode_direct_GCJ=yes
25349 hardcode_shlibpath_var_GCJ=no
25353 if test "$GCC" = yes; then
25354 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'
25356 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'
25358 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25359 hardcode_libdir_separator_GCJ=:
25360 hardcode_direct_GCJ=yes
25362 # hardcode_minus_L: Not really in the search PATH,
25363 # but as the default location of the library.
25364 hardcode_minus_L_GCJ=yes
25365 export_dynamic_flag_spec_GCJ='${wl}-E'
25369 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25370 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25372 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25374 if test "$with_gnu_ld" = no; then
25375 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25376 hardcode_libdir_separator_GCJ=:
25378 hardcode_direct_GCJ=yes
25379 export_dynamic_flag_spec_GCJ='${wl}-E'
25381 # hardcode_minus_L: Not really in the search PATH,
25382 # but as the default location of the library.
25383 hardcode_minus_L_GCJ=yes
25388 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25391 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25394 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25397 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25403 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25406 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25409 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25413 if test "$with_gnu_ld" = no; then
25414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25415 hardcode_libdir_separator_GCJ=:
25419 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25420 hardcode_direct_GCJ=no
25421 hardcode_shlibpath_var_GCJ=no
25424 hardcode_direct_GCJ=yes
25425 export_dynamic_flag_spec_GCJ='${wl}-E'
25427 # hardcode_minus_L: Not really in the search PATH,
25428 # but as the default location of the library.
25429 hardcode_minus_L_GCJ=yes
25435 irix5* | irix6* | nonstopux*)
25436 if test "$GCC" = yes; then
25437 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'
25439 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'
25440 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25443 hardcode_libdir_separator_GCJ=:
25444 link_all_deplibs_GCJ=yes
25448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25451 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25453 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25454 hardcode_direct_GCJ=yes
25455 hardcode_shlibpath_var_GCJ=no
25459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25460 hardcode_direct_GCJ=yes
25461 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25462 hardcode_libdir_separator_GCJ=:
25463 hardcode_shlibpath_var_GCJ=no
25467 hardcode_direct_GCJ=yes
25468 hardcode_shlibpath_var_GCJ=no
25469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25470 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25471 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25473 export_dynamic_flag_spec_GCJ='${wl}-E'
25476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25477 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25478 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25481 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25482 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25490 hardcode_minus_L_GCJ=yes
25491 allow_undefined_flag_GCJ=unsupported
25492 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'
25493 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25497 if test "$GCC" = yes; then
25498 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25499 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'
25501 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25502 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'
25504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25505 hardcode_libdir_separator_GCJ=:
25508 osf4* | osf5*) # as osf3* with the addition of -msym flag
25509 if test "$GCC" = yes; then
25510 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25511 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'
25512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25514 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25515 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'
25516 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~
25517 $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'
25519 # Both c and cxx compiler support -rpath directly
25520 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25522 hardcode_libdir_separator_GCJ=:
25526 no_undefined_flag_GCJ=' -z text'
25527 if test "$GCC" = yes; then
25529 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25530 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25531 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25534 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25535 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25539 hardcode_shlibpath_var_GCJ=no
25541 solaris2.[0-5] | solaris2.[0-5].*) ;;
25543 # The compiler driver will combine linker options so we
25544 # cannot just pass the convience library names through
25545 # without $wl, iff we do not link with $LD.
25546 # Luckily, gcc supports the same syntax we need for Sun Studio.
25547 # Supported since Solaris 2.6 (maybe 2.5.1?)
25550 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25552 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' ;;
25555 link_all_deplibs_GCJ=yes
25559 if test "x$host_vendor" = xsequent; then
25560 # Use $CC to link under sequent, because it throws in some extra .o
25561 # files that make .init and .fini sections work.
25562 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25564 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25567 hardcode_direct_GCJ=yes
25568 hardcode_minus_L_GCJ=yes
25569 hardcode_shlibpath_var_GCJ=no
25573 case $host_vendor in
25575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25576 hardcode_direct_GCJ=yes # is this really true???
25579 ## LD is ld it makes a PLAMLIB
25580 ## CC just makes a GrossModule.
25581 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25582 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25583 hardcode_direct_GCJ=no
25586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25587 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25590 runpath_var='LD_RUN_PATH'
25591 hardcode_shlibpath_var_GCJ=no
25595 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25596 hardcode_shlibpath_var_GCJ=no
25597 export_dynamic_flag_spec_GCJ='-Bexport'
25601 if test -d /usr/nec; then
25602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25603 hardcode_shlibpath_var_GCJ=no
25604 runpath_var=LD_RUN_PATH
25605 hardcode_runpath_var=yes
25610 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25611 no_undefined_flag_GCJ='${wl}-z,text'
25612 archive_cmds_need_lc_GCJ=no
25613 hardcode_shlibpath_var_GCJ=no
25614 runpath_var='LD_RUN_PATH'
25616 if test "$GCC" = yes; then
25617 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25618 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25620 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25621 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25625 sysv5* | sco3.2v5* | sco5v6*)
25626 # Note: We can NOT use -z defs as we might desire, because we do not
25627 # link with -lc, and that would cause any symbols used from libc to
25628 # always be unresolved, which means just about no library would
25629 # ever link correctly. If we're not using GNU ld we use -z text
25630 # though, which does catch some bad symbols but isn't as heavy-handed
25632 no_undefined_flag_GCJ='${wl}-z,text'
25633 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25634 archive_cmds_need_lc_GCJ=no
25635 hardcode_shlibpath_var_GCJ=no
25636 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25637 hardcode_libdir_separator_GCJ=':'
25638 link_all_deplibs_GCJ=yes
25639 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25640 runpath_var='LD_RUN_PATH'
25642 if test "$GCC" = yes; then
25643 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25644 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25646 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25647 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25654 hardcode_shlibpath_var_GCJ=no
25663 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25664 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25665 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25668 # Do we need to explicitly link libc?
25670 case "x$archive_cmds_need_lc_GCJ" in
25672 # Assume -lc should be added
25673 archive_cmds_need_lc_GCJ=yes
25675 if test "$enable_shared" = yes && test "$GCC" = yes; then
25676 case $archive_cmds_GCJ in
25678 # FIXME: we may have to deal with multi-command sequences.
25681 # Test whether the compiler implicitly links with -lc since on some
25682 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25683 # to ld, don't add -lc before -lgcc.
25684 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25685 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25690 (eval $ac_compile) 2>&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } 2>conftest.err; then
25696 libobjs=conftest.$ac_objext
25698 wl=$lt_prog_compiler_wl_GCJ
25699 pic_flag=$lt_prog_compiler_pic_GCJ
25705 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25706 allow_undefined_flag_GCJ=
25707 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25708 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }
25713 archive_cmds_need_lc_GCJ=no
25715 archive_cmds_need_lc_GCJ=yes
25717 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25719 cat conftest.err 1>&5
25722 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25723 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25730 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25732 library_names_spec=
25733 libname_spec='lib$name'
25737 postuninstall_cmds=
25741 shlibpath_overrides_runpath=unknown
25743 dynamic_linker="$host_os ld.so"
25744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25745 if test "$GCC" = yes; then
25746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25748 # if the path contains ";" then we assume it to be the separator
25749 # otherwise default to the standard path separator (i.e. ":") - it is
25750 # assumed that no part of a normal pathname contains ";" but that should
25751 # okay in the real world where ";" in dirpaths is itself problematic.
25752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25759 need_lib_prefix=unknown
25760 hardcode_into_libs=no
25762 # when you set need_version to no, make sure it does not cause -set_version
25763 # flags to be left without arguments
25764 need_version=unknown
25769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25770 shlibpath_var=LIBPATH
25772 # AIX 3 has no versioning support, so we append a major version to the name.
25773 soname_spec='${libname}${release}${shared_ext}$major'
25780 hardcode_into_libs=yes
25781 if test "$host_cpu" = ia64; then
25782 # AIX 5 supports IA64
25783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25784 shlibpath_var=LD_LIBRARY_PATH
25786 # With GCC up to 2.95.x, collect2 would create an import file
25787 # for dependence libraries. The import file would start with
25788 # the line `#! .'. This would cause the generated library to
25789 # depend on `.', always an invalid library. This was fixed in
25790 # development snapshots of GCC prior to 3.0.
25792 aix4 | aix4.[01] | aix4.[01].*)
25793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25798 can_build_shared=no
25802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25803 # soname into executable. Probably we can add versioning support to
25804 # collect2, so additional links can be useful in future.
25805 if test "$aix_use_runtimelinking" = yes; then
25806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25807 # instead of lib<name>.a to let people know that these are not
25808 # typical AIX shared libraries.
25809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811 # We preserve .a as extension for shared libraries through AIX4.2
25812 # and later when we are not doing run time linking.
25813 library_names_spec='${libname}${release}.a $libname.a'
25814 soname_spec='${libname}${release}${shared_ext}$major'
25816 shlibpath_var=LIBPATH
25821 library_names_spec='$libname.ixlibrary $libname.a'
25822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25823 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'
25827 library_names_spec='${libname}${shared_ext}'
25828 dynamic_linker="$host_os ld.so"
25829 shlibpath_var=LIBRARY_PATH
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25838 shlibpath_var=LD_LIBRARY_PATH
25839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25841 # the default ld.so.conf also contains /usr/contrib/lib and
25842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25843 # libtool to hard-code these into programs
25846 cygwin* | mingw* | pw32*)
25847 version_type=windows
25852 case $GCC,$host_os in
25853 yes,cygwin* | yes,mingw* | yes,pw32*)
25854 library_names_spec='$libname.dll.a'
25855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25856 postinstall_cmds='base_file=`basename \${file}`~
25857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25858 dldir=$destdir/`dirname \$dlpath`~
25859 test -d \$dldir || mkdir -p \$dldir~
25860 $install_prog $dir/$dlname \$dldir/$dlname~
25861 chmod a+x \$dldir/$dlname'
25862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25863 dlpath=$dir/\$dldll~
25865 shlibpath_overrides_runpath=yes
25869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25871 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25874 # MinGW DLLs use traditional 'lib' prefix
25875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25877 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25878 # It is most probably a Windows format PATH printed by
25879 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25880 # path with ; separators, and with drive letters. We can handle the
25881 # drive letters (cygwin fileutils understands them), so leave them,
25882 # especially as we might pass files found there to a mingw objdump,
25883 # which wouldn't understand a cygwinified path. Ahh.
25884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25890 # pw32 DLLs use 'pw' prefix rather than 'lib'
25891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25900 dynamic_linker='Win32 ld.exe'
25901 # FIXME: first we should search . and the directory the executable is in
25905 darwin* | rhapsody*)
25906 dynamic_linker="$host_os dyld"
25907 version_type=darwin
25910 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25911 soname_spec='${libname}${release}${major}$shared_ext'
25912 shlibpath_overrides_runpath=yes
25913 shlibpath_var=DYLD_LIBRARY_PATH
25914 shrext_cmds='.dylib'
25915 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25916 if test "$GCC" = yes; then
25917 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"`
25919 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25929 soname_spec='${libname}${release}${shared_ext}$major'
25930 shlibpath_var=LD_LIBRARY_PATH
25941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25942 soname_spec='${libname}${release}${shared_ext}$major'
25943 shlibpath_var=LD_LIBRARY_PATH
25944 shlibpath_overrides_runpath=no
25945 hardcode_into_libs=yes
25946 dynamic_linker='GNU ld.so'
25949 freebsd* | dragonfly*)
25950 # DragonFly does not have aout. When/if they implement a new
25951 # versioning mechanism, adjust this.
25952 if test -x /usr/bin/objformat; then
25953 objformat=`/usr/bin/objformat`
25956 freebsd[123]*) objformat=aout ;;
25957 *) objformat=elf ;;
25960 version_type=freebsd-$objformat
25961 case $version_type in
25963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25972 shlibpath_var=LD_LIBRARY_PATH
25975 shlibpath_overrides_runpath=yes
25977 freebsd3.[01]* | freebsdelf3.[01]*)
25978 shlibpath_overrides_runpath=yes
25979 hardcode_into_libs=yes
25981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25983 shlibpath_overrides_runpath=no
25984 hardcode_into_libs=yes
25986 freebsd*) # from 4.6 on
25987 shlibpath_overrides_runpath=yes
25988 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
26000 hardcode_into_libs=yes
26003 hpux9* | hpux10* | hpux11*)
26004 # Give a soname corresponding to the major version so that dld.sl refuses to
26005 # link against other versions.
26012 hardcode_into_libs=yes
26013 dynamic_linker="$host_os dld.so"
26014 shlibpath_var=LD_LIBRARY_PATH
26015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26017 soname_spec='${libname}${release}${shared_ext}$major'
26018 if test "X$HPUX_IA64_MODE" = X32; then
26019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26027 hardcode_into_libs=yes
26028 dynamic_linker="$host_os dld.sl"
26029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26032 soname_spec='${libname}${release}${shared_ext}$major'
26033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26038 dynamic_linker="$host_os dld.sl"
26039 shlibpath_var=SHLIB_PATH
26040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26042 soname_spec='${libname}${release}${shared_ext}$major'
26045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26046 postinstall_cmds='chmod 555 $lib'
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26054 soname_spec='${libname}${release}${shared_ext}$major'
26055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26056 shlibpath_var=LD_LIBRARY_PATH
26057 shlibpath_overrides_runpath=no
26058 hardcode_into_libs=yes
26061 irix5* | irix6* | nonstopux*)
26063 nonstopux*) version_type=nonstopux ;;
26065 if test "$lt_cv_prog_gnu_ld" = yes; then
26073 soname_spec='${libname}${release}${shared_ext}$major'
26074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26076 irix5* | nonstopux*)
26077 libsuff= shlibsuff=
26080 case $LD in # libtool.m4 will add one of these switches to LD
26081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26082 libsuff= shlibsuff= libmagic=32-bit;;
26083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26084 libsuff=32 shlibsuff=N32 libmagic=N32;;
26085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26087 *) libsuff= shlibsuff= libmagic=never-match;;
26091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26092 shlibpath_overrides_runpath=no
26093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26095 hardcode_into_libs=yes
26098 # No shared lib support for Linux oldld, aout, or coff.
26099 linux*oldld* | linux*aout* | linux*coff*)
26103 # This must be Linux ELF.
26108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26109 soname_spec='${libname}${release}${shared_ext}$major'
26110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26111 shlibpath_var=LD_LIBRARY_PATH
26112 shlibpath_overrides_runpath=no
26113 # This implies no fast_install, which is unacceptable.
26114 # Some rework will be needed to allow for fast_install
26115 # before this can be enabled.
26116 hardcode_into_libs=yes
26118 # Append ld.so.conf contents to the search path
26119 if test -f /etc/ld.so.conf; then
26120 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' ' '`
26121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26124 # We used to test for /lib/ld.so.1 and disable shared libraries on
26125 # powerpc, because MkLinux only supported shared libraries with the
26126 # GNU dynamic linker. Since this was broken with cross compilers,
26127 # most powerpc-linux boxes support dynamic linking these days and
26128 # people can always --disable-shared, the test was removed, and we
26129 # assume the GNU/Linux dynamic linker is in use.
26130 dynamic_linker='GNU/Linux ld.so'
26137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26138 soname_spec='${libname}${release}${shared_ext}$major'
26139 shlibpath_var=LD_LIBRARY_PATH
26140 shlibpath_overrides_runpath=no
26141 hardcode_into_libs=yes
26142 dynamic_linker='GNU ld.so'
26149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26152 dynamic_linker='NetBSD (a.out) ld.so'
26154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26155 soname_spec='${libname}${release}${shared_ext}$major'
26156 dynamic_linker='NetBSD ld.elf_so'
26158 shlibpath_var=LD_LIBRARY_PATH
26159 shlibpath_overrides_runpath=yes
26160 hardcode_into_libs=yes
26165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26166 shlibpath_var=LD_LIBRARY_PATH
26167 shlibpath_overrides_runpath=yes
26174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26175 soname_spec='${libname}${release}${shared_ext}$major'
26176 shlibpath_var=LD_LIBRARY_PATH
26177 shlibpath_overrides_runpath=yes
26182 sys_lib_dlsearch_path_spec="/usr/lib"
26184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26187 *) need_version=no ;;
26189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26191 shlibpath_var=LD_LIBRARY_PATH
26192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26194 openbsd2.[89] | openbsd2.[89].*)
26195 shlibpath_overrides_runpath=no
26198 shlibpath_overrides_runpath=yes
26202 shlibpath_overrides_runpath=yes
26207 libname_spec='$name'
26210 library_names_spec='$libname${shared_ext} $libname.a'
26211 dynamic_linker='OS/2 ld.exe'
26212 shlibpath_var=LIBPATH
26215 osf3* | osf4* | osf5*)
26219 soname_spec='${libname}${release}${shared_ext}$major'
26220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221 shlibpath_var=LD_LIBRARY_PATH
26222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26231 soname_spec='${libname}${release}${shared_ext}$major'
26232 shlibpath_var=LD_LIBRARY_PATH
26233 shlibpath_overrides_runpath=yes
26234 hardcode_into_libs=yes
26235 # ldd complains unless libraries are executable
26236 postinstall_cmds='chmod +x $lib'
26241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26243 shlibpath_var=LD_LIBRARY_PATH
26244 shlibpath_overrides_runpath=yes
26245 if test "$with_gnu_ld" = yes; then
26253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26254 soname_spec='${libname}${release}${shared_ext}$major'
26255 shlibpath_var=LD_LIBRARY_PATH
26256 case $host_vendor in
26258 shlibpath_overrides_runpath=no
26260 export_dynamic_flag_spec='${wl}-Blargedynsym'
26261 runpath_var=LD_RUN_PATH
26269 shlibpath_overrides_runpath=no
26270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26276 if test -d /usr/nec ;then
26278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26279 soname_spec='$libname${shared_ext}.$major'
26280 shlibpath_var=LD_LIBRARY_PATH
26284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26285 version_type=freebsd-elf
26288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26289 soname_spec='${libname}${release}${shared_ext}$major'
26290 shlibpath_var=LD_LIBRARY_PATH
26291 hardcode_into_libs=yes
26292 if test "$with_gnu_ld" = yes; then
26293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26294 shlibpath_overrides_runpath=no
26296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26297 shlibpath_overrides_runpath=yes
26300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26304 sys_lib_dlsearch_path_spec='/usr/lib'
26309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26310 soname_spec='${libname}${release}${shared_ext}$major'
26311 shlibpath_var=LD_LIBRARY_PATH
26318 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26319 echo "${ECHO_T}$dynamic_linker" >&6; }
26320 test "$dynamic_linker" = no && can_build_shared=no
26322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26323 if test "$GCC" = yes; then
26324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26327 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26329 hardcode_action_GCJ=
26330 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26331 test -n "$runpath_var_GCJ" || \
26332 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26334 # We can hardcode non-existant directories.
26335 if test "$hardcode_direct_GCJ" != no &&
26336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26337 # have to relink, otherwise we might link with an installed library
26338 # when we should be linking with a yet-to-be-installed one
26339 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26340 test "$hardcode_minus_L_GCJ" != no; then
26341 # Linking always hardcodes the temporary library directory.
26342 hardcode_action_GCJ=relink
26344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26345 hardcode_action_GCJ=immediate
26348 # We cannot hardcode anything, or else we can only hardcode existing
26350 hardcode_action_GCJ=unsupported
26352 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26353 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26355 if test "$hardcode_action_GCJ" = relink; then
26356 # Fast installation is not supported
26357 enable_fast_install=no
26358 elif test "$shlibpath_overrides_runpath" = yes ||
26359 test "$enable_shared" = no; then
26360 # Fast installation is not necessary
26361 enable_fast_install=needless
26365 # The else clause should only fire when bootstrapping the
26366 # libtool distribution, otherwise you forgot to ship ltmain.sh
26367 # with your package, and you will get complaints that there are
26368 # no rules to generate ltmain.sh.
26369 if test -f "$ltmain"; then
26370 # See if we are running on zsh, and set the options which allow our commands through
26371 # without removal of \ escapes.
26372 if test -n "${ZSH_VERSION+set}" ; then
26373 setopt NO_GLOB_SUBST
26375 # Now quote all the things that may contain metacharacters while being
26376 # careful not to overquote the AC_SUBSTed values. We take copies of the
26377 # variables and quote the copies for generation of the libtool script.
26378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26382 deplibs_check_method reload_flag reload_cmds need_locks \
26383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26384 lt_cv_sys_global_symbol_to_c_name_address \
26385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26386 old_postinstall_cmds old_postuninstall_cmds \
26390 lt_prog_compiler_wl_GCJ \
26391 lt_prog_compiler_pic_GCJ \
26392 lt_prog_compiler_static_GCJ \
26393 lt_prog_compiler_no_builtin_flag_GCJ \
26394 export_dynamic_flag_spec_GCJ \
26395 thread_safe_flag_spec_GCJ \
26396 whole_archive_flag_spec_GCJ \
26397 enable_shared_with_static_runtimes_GCJ \
26398 old_archive_cmds_GCJ \
26399 old_archive_from_new_cmds_GCJ \
26400 predep_objects_GCJ \
26401 postdep_objects_GCJ \
26404 compiler_lib_search_path_GCJ \
26406 archive_expsym_cmds_GCJ \
26407 postinstall_cmds_GCJ \
26408 postuninstall_cmds_GCJ \
26409 old_archive_from_expsyms_cmds_GCJ \
26410 allow_undefined_flag_GCJ \
26411 no_undefined_flag_GCJ \
26412 export_symbols_cmds_GCJ \
26413 hardcode_libdir_flag_spec_GCJ \
26414 hardcode_libdir_flag_spec_ld_GCJ \
26415 hardcode_libdir_separator_GCJ \
26416 hardcode_automatic_GCJ \
26418 module_expsym_cmds_GCJ \
26419 lt_cv_prog_compiler_c_o_GCJ \
26420 exclude_expsyms_GCJ \
26421 include_expsyms_GCJ; do
26424 old_archive_cmds_GCJ | \
26425 old_archive_from_new_cmds_GCJ | \
26426 archive_cmds_GCJ | \
26427 archive_expsym_cmds_GCJ | \
26428 module_cmds_GCJ | \
26429 module_expsym_cmds_GCJ | \
26430 old_archive_from_expsyms_cmds_GCJ | \
26431 export_symbols_cmds_GCJ | \
26432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26433 postinstall_cmds | postuninstall_cmds | \
26434 old_postinstall_cmds | old_postuninstall_cmds | \
26435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26436 # Double-quote double-evaled strings.
26437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26446 *'\$0 --fallback-echo"')
26447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26453 cat <<__EOF__ >> "$cfgfile"
26454 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26458 # Shell to use when invoking shell scripts.
26461 # Whether or not to build shared libraries.
26462 build_libtool_libs=$enable_shared
26464 # Whether or not to build static libraries.
26465 build_old_libs=$enable_static
26467 # Whether or not to add -lc for building shared libraries.
26468 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26470 # Whether or not to disallow shared libs when runtime libs are static
26471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26473 # Whether or not to optimize for fast installation.
26474 fast_install=$enable_fast_install
26477 host_alias=$host_alias
26481 # The build system.
26482 build_alias=$build_alias
26486 # An echo program that does not interpret backslashes.
26491 AR_FLAGS=$lt_AR_FLAGS
26496 # LTCC compiler flags.
26497 LTCFLAGS=$lt_LTCFLAGS
26499 # A language-specific compiler.
26500 CC=$lt_compiler_GCJ
26502 # Is the compiler the GNU C compiler?
26508 # The linker used to build libraries.
26511 # Whether we need hard or soft links.
26514 # A BSD-compatible nm program.
26517 # A symbol stripping program
26520 # Used to examine libraries when file_magic_cmd begins "file"
26521 MAGIC_CMD=$MAGIC_CMD
26523 # Used on cygwin: DLL creation program.
26526 # Used on cygwin: object dumper.
26529 # Used on cygwin: assembler.
26532 # The name of the directory that contains temporary libtool files.
26535 # How to create reloadable object files.
26536 reload_flag=$lt_reload_flag
26537 reload_cmds=$lt_reload_cmds
26539 # How to pass a linker flag through the compiler.
26540 wl=$lt_lt_prog_compiler_wl_GCJ
26542 # Object file suffix (normally "o").
26543 objext="$ac_objext"
26545 # Old archive suffix (normally "a").
26548 # Shared library suffix (normally ".so").
26549 shrext_cmds='$shrext_cmds'
26551 # Executable file suffix (normally "").
26554 # Additional compiler flags for building library objects.
26555 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26558 # What is the maximum length of a command?
26559 max_cmd_len=$lt_cv_sys_max_cmd_len
26561 # Does compiler simultaneously support -c and -o options?
26562 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26564 # Must we lock files when doing compilation?
26565 need_locks=$lt_need_locks
26567 # Do we need the lib prefix for modules?
26568 need_lib_prefix=$need_lib_prefix
26570 # Do we need a version for libraries?
26571 need_version=$need_version
26573 # Whether dlopen is supported.
26574 dlopen_support=$enable_dlopen
26576 # Whether dlopen of programs is supported.
26577 dlopen_self=$enable_dlopen_self
26579 # Whether dlopen of statically linked programs is supported.
26580 dlopen_self_static=$enable_dlopen_self_static
26582 # Compiler flag to prevent dynamic linking.
26583 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26585 # Compiler flag to turn off builtin functions.
26586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26588 # Compiler flag to allow reflexive dlopens.
26589 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26591 # Compiler flag to generate shared objects directly from archives.
26592 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26594 # Compiler flag to generate thread-safe objects.
26595 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26597 # Library versioning type.
26598 version_type=$version_type
26600 # Format of library name prefix.
26601 libname_spec=$lt_libname_spec
26603 # List of archive names. First name is the real one, the rest are links.
26604 # The last name is the one that the linker finds with -lNAME.
26605 library_names_spec=$lt_library_names_spec
26607 # The coded name of the library, if different from the real name.
26608 soname_spec=$lt_soname_spec
26610 # Commands used to build and install an old-style archive.
26612 old_archive_cmds=$lt_old_archive_cmds_GCJ
26613 old_postinstall_cmds=$lt_old_postinstall_cmds
26614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26616 # Create an old-style archive from a shared archive.
26617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26619 # Create a temporary old-style archive to link instead of a shared archive.
26620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26622 # Commands used to build and install a shared archive.
26623 archive_cmds=$lt_archive_cmds_GCJ
26624 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26625 postinstall_cmds=$lt_postinstall_cmds
26626 postuninstall_cmds=$lt_postuninstall_cmds
26628 # Commands used to build a loadable module (assumed same as above if empty)
26629 module_cmds=$lt_module_cmds_GCJ
26630 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26632 # Commands to strip libraries.
26633 old_striplib=$lt_old_striplib
26634 striplib=$lt_striplib
26636 # Dependencies to place before the objects being linked to create a
26638 predep_objects=$lt_predep_objects_GCJ
26640 # Dependencies to place after the objects being linked to create a
26642 postdep_objects=$lt_postdep_objects_GCJ
26644 # Dependencies to place before the objects being linked to create a
26646 predeps=$lt_predeps_GCJ
26648 # Dependencies to place after the objects being linked to create a
26650 postdeps=$lt_postdeps_GCJ
26652 # The library search path used internally by the compiler when linking
26653 # a shared library.
26654 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26656 # Method to check whether dependent libraries are shared objects.
26657 deplibs_check_method=$lt_deplibs_check_method
26659 # Command to use when deplibs_check_method == file_magic.
26660 file_magic_cmd=$lt_file_magic_cmd
26662 # Flag that allows shared libraries with undefined symbols to be built.
26663 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26665 # Flag that forces no undefined symbols.
26666 no_undefined_flag=$lt_no_undefined_flag_GCJ
26668 # Commands used to finish a libtool library installation in a directory.
26669 finish_cmds=$lt_finish_cmds
26671 # Same as above, but a single script fragment to be evaled but not shown.
26672 finish_eval=$lt_finish_eval
26674 # Take the output of nm and produce a listing of raw symbols and C names.
26675 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26677 # Transform the output of nm in a proper C declaration
26678 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26680 # Transform the output of nm in a C name address pair
26681 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26683 # This is the shared library runtime path variable.
26684 runpath_var=$runpath_var
26686 # This is the shared library path variable.
26687 shlibpath_var=$shlibpath_var
26689 # Is shlibpath searched before the hard-coded library search path?
26690 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26692 # How to hardcode a shared library path into an executable.
26693 hardcode_action=$hardcode_action_GCJ
26695 # Whether we should hardcode library paths into libraries.
26696 hardcode_into_libs=$hardcode_into_libs
26698 # Flag to hardcode \$libdir into a binary during linking.
26699 # This must work even if \$libdir does not exist.
26700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26702 # If ld is used when linking, flag to hardcode \$libdir into
26703 # a binary during linking. This must work even if \$libdir does
26705 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26707 # Whether we need a single -rpath flag with a separated argument.
26708 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26710 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26711 # resulting binary.
26712 hardcode_direct=$hardcode_direct_GCJ
26714 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26715 # resulting binary.
26716 hardcode_minus_L=$hardcode_minus_L_GCJ
26718 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26719 # the resulting binary.
26720 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26722 # Set to yes if building a shared library automatically hardcodes DIR into the library
26723 # and all subsequent libraries and executables linked against it.
26724 hardcode_automatic=$hardcode_automatic_GCJ
26726 # Variables whose values should be saved in libtool wrapper scripts and
26727 # restored at relink time.
26728 variables_saved_for_relink="$variables_saved_for_relink"
26730 # Whether libtool must link a program against all its dependency libraries.
26731 link_all_deplibs=$link_all_deplibs_GCJ
26733 # Compile-time system search path for libraries
26734 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26736 # Run-time system search path for libraries
26737 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26739 # Fix the shell variable \$srcfile for the compiler.
26740 fix_srcfile_path="$fix_srcfile_path_GCJ"
26742 # Set to yes if exported symbols are required.
26743 always_export_symbols=$always_export_symbols_GCJ
26745 # The commands to list exported symbols.
26746 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26748 # The commands to extract the exported symbol list from a shared archive.
26749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26751 # Symbols that should not be listed in the preloaded symbols.
26752 exclude_expsyms=$lt_exclude_expsyms_GCJ
26754 # Symbols that must always be exported.
26755 include_expsyms=$lt_include_expsyms_GCJ
26757 # ### END LIBTOOL TAG CONFIG: $tagname
26763 # If there is no Makefile yet, we rely on a make rule to execute
26764 # `config.status --recheck' to rerun these tests and create the
26765 # libtool script then.
26766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26767 if test -f "$ltmain_in"; then
26768 test -f Makefile && make "$ltmain"
26774 ac_cpp='$CPP $CPPFLAGS'
26775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26788 ac_cpp='$CPP $CPPFLAGS'
26789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26794 # Source file extension for RC test sources.
26797 # Object file extension for compiled RC test sources.
26801 # Code to be used in simple compile tests
26802 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26804 # Code to be used in simple link tests
26805 lt_simple_link_test_code="$lt_simple_compile_test_code"
26807 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26809 # If no C compiler was specified, use CC.
26812 # If no C compiler flags were specified, use CFLAGS.
26813 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26815 # Allow CC to be a program name with arguments.
26819 # save warnings/boilerplate of simple test code
26820 ac_outfile=conftest.$ac_objext
26821 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26822 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26823 _lt_compiler_boilerplate=`cat conftest.err`
26826 ac_outfile=conftest.$ac_objext
26827 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26828 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26829 _lt_linker_boilerplate=`cat conftest.err`
26833 # Allow CC to be a program name with arguments.
26838 for cc_temp in $compiler""; do
26840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26848 lt_cv_prog_compiler_c_o_RC=yes
26850 # The else clause should only fire when bootstrapping the
26851 # libtool distribution, otherwise you forgot to ship ltmain.sh
26852 # with your package, and you will get complaints that there are
26853 # no rules to generate ltmain.sh.
26854 if test -f "$ltmain"; then
26855 # See if we are running on zsh, and set the options which allow our commands through
26856 # without removal of \ escapes.
26857 if test -n "${ZSH_VERSION+set}" ; then
26858 setopt NO_GLOB_SUBST
26860 # Now quote all the things that may contain metacharacters while being
26861 # careful not to overquote the AC_SUBSTed values. We take copies of the
26862 # variables and quote the copies for generation of the libtool script.
26863 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26867 deplibs_check_method reload_flag reload_cmds need_locks \
26868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26869 lt_cv_sys_global_symbol_to_c_name_address \
26870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26871 old_postinstall_cmds old_postuninstall_cmds \
26875 lt_prog_compiler_wl_RC \
26876 lt_prog_compiler_pic_RC \
26877 lt_prog_compiler_static_RC \
26878 lt_prog_compiler_no_builtin_flag_RC \
26879 export_dynamic_flag_spec_RC \
26880 thread_safe_flag_spec_RC \
26881 whole_archive_flag_spec_RC \
26882 enable_shared_with_static_runtimes_RC \
26883 old_archive_cmds_RC \
26884 old_archive_from_new_cmds_RC \
26885 predep_objects_RC \
26886 postdep_objects_RC \
26889 compiler_lib_search_path_RC \
26891 archive_expsym_cmds_RC \
26892 postinstall_cmds_RC \
26893 postuninstall_cmds_RC \
26894 old_archive_from_expsyms_cmds_RC \
26895 allow_undefined_flag_RC \
26896 no_undefined_flag_RC \
26897 export_symbols_cmds_RC \
26898 hardcode_libdir_flag_spec_RC \
26899 hardcode_libdir_flag_spec_ld_RC \
26900 hardcode_libdir_separator_RC \
26901 hardcode_automatic_RC \
26903 module_expsym_cmds_RC \
26904 lt_cv_prog_compiler_c_o_RC \
26905 exclude_expsyms_RC \
26906 include_expsyms_RC; do
26909 old_archive_cmds_RC | \
26910 old_archive_from_new_cmds_RC | \
26911 archive_cmds_RC | \
26912 archive_expsym_cmds_RC | \
26914 module_expsym_cmds_RC | \
26915 old_archive_from_expsyms_cmds_RC | \
26916 export_symbols_cmds_RC | \
26917 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26918 postinstall_cmds | postuninstall_cmds | \
26919 old_postinstall_cmds | old_postuninstall_cmds | \
26920 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26921 # Double-quote double-evaled strings.
26922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26931 *'\$0 --fallback-echo"')
26932 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26938 cat <<__EOF__ >> "$cfgfile"
26939 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26941 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26943 # Shell to use when invoking shell scripts.
26946 # Whether or not to build shared libraries.
26947 build_libtool_libs=$enable_shared
26949 # Whether or not to build static libraries.
26950 build_old_libs=$enable_static
26952 # Whether or not to add -lc for building shared libraries.
26953 build_libtool_need_lc=$archive_cmds_need_lc_RC
26955 # Whether or not to disallow shared libs when runtime libs are static
26956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26958 # Whether or not to optimize for fast installation.
26959 fast_install=$enable_fast_install
26962 host_alias=$host_alias
26966 # The build system.
26967 build_alias=$build_alias
26971 # An echo program that does not interpret backslashes.
26976 AR_FLAGS=$lt_AR_FLAGS
26981 # LTCC compiler flags.
26982 LTCFLAGS=$lt_LTCFLAGS
26984 # A language-specific compiler.
26987 # Is the compiler the GNU C compiler?
26993 # The linker used to build libraries.
26996 # Whether we need hard or soft links.
26999 # A BSD-compatible nm program.
27002 # A symbol stripping program
27005 # Used to examine libraries when file_magic_cmd begins "file"
27006 MAGIC_CMD=$MAGIC_CMD
27008 # Used on cygwin: DLL creation program.
27011 # Used on cygwin: object dumper.
27014 # Used on cygwin: assembler.
27017 # The name of the directory that contains temporary libtool files.
27020 # How to create reloadable object files.
27021 reload_flag=$lt_reload_flag
27022 reload_cmds=$lt_reload_cmds
27024 # How to pass a linker flag through the compiler.
27025 wl=$lt_lt_prog_compiler_wl_RC
27027 # Object file suffix (normally "o").
27028 objext="$ac_objext"
27030 # Old archive suffix (normally "a").
27033 # Shared library suffix (normally ".so").
27034 shrext_cmds='$shrext_cmds'
27036 # Executable file suffix (normally "").
27039 # Additional compiler flags for building library objects.
27040 pic_flag=$lt_lt_prog_compiler_pic_RC
27043 # What is the maximum length of a command?
27044 max_cmd_len=$lt_cv_sys_max_cmd_len
27046 # Does compiler simultaneously support -c and -o options?
27047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27049 # Must we lock files when doing compilation?
27050 need_locks=$lt_need_locks
27052 # Do we need the lib prefix for modules?
27053 need_lib_prefix=$need_lib_prefix
27055 # Do we need a version for libraries?
27056 need_version=$need_version
27058 # Whether dlopen is supported.
27059 dlopen_support=$enable_dlopen
27061 # Whether dlopen of programs is supported.
27062 dlopen_self=$enable_dlopen_self
27064 # Whether dlopen of statically linked programs is supported.
27065 dlopen_self_static=$enable_dlopen_self_static
27067 # Compiler flag to prevent dynamic linking.
27068 link_static_flag=$lt_lt_prog_compiler_static_RC
27070 # Compiler flag to turn off builtin functions.
27071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27073 # Compiler flag to allow reflexive dlopens.
27074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27076 # Compiler flag to generate shared objects directly from archives.
27077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27079 # Compiler flag to generate thread-safe objects.
27080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27082 # Library versioning type.
27083 version_type=$version_type
27085 # Format of library name prefix.
27086 libname_spec=$lt_libname_spec
27088 # List of archive names. First name is the real one, the rest are links.
27089 # The last name is the one that the linker finds with -lNAME.
27090 library_names_spec=$lt_library_names_spec
27092 # The coded name of the library, if different from the real name.
27093 soname_spec=$lt_soname_spec
27095 # Commands used to build and install an old-style archive.
27097 old_archive_cmds=$lt_old_archive_cmds_RC
27098 old_postinstall_cmds=$lt_old_postinstall_cmds
27099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27101 # Create an old-style archive from a shared archive.
27102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27104 # Create a temporary old-style archive to link instead of a shared archive.
27105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27107 # Commands used to build and install a shared archive.
27108 archive_cmds=$lt_archive_cmds_RC
27109 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27110 postinstall_cmds=$lt_postinstall_cmds
27111 postuninstall_cmds=$lt_postuninstall_cmds
27113 # Commands used to build a loadable module (assumed same as above if empty)
27114 module_cmds=$lt_module_cmds_RC
27115 module_expsym_cmds=$lt_module_expsym_cmds_RC
27117 # Commands to strip libraries.
27118 old_striplib=$lt_old_striplib
27119 striplib=$lt_striplib
27121 # Dependencies to place before the objects being linked to create a
27123 predep_objects=$lt_predep_objects_RC
27125 # Dependencies to place after the objects being linked to create a
27127 postdep_objects=$lt_postdep_objects_RC
27129 # Dependencies to place before the objects being linked to create a
27131 predeps=$lt_predeps_RC
27133 # Dependencies to place after the objects being linked to create a
27135 postdeps=$lt_postdeps_RC
27137 # The library search path used internally by the compiler when linking
27138 # a shared library.
27139 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27141 # Method to check whether dependent libraries are shared objects.
27142 deplibs_check_method=$lt_deplibs_check_method
27144 # Command to use when deplibs_check_method == file_magic.
27145 file_magic_cmd=$lt_file_magic_cmd
27147 # Flag that allows shared libraries with undefined symbols to be built.
27148 allow_undefined_flag=$lt_allow_undefined_flag_RC
27150 # Flag that forces no undefined symbols.
27151 no_undefined_flag=$lt_no_undefined_flag_RC
27153 # Commands used to finish a libtool library installation in a directory.
27154 finish_cmds=$lt_finish_cmds
27156 # Same as above, but a single script fragment to be evaled but not shown.
27157 finish_eval=$lt_finish_eval
27159 # Take the output of nm and produce a listing of raw symbols and C names.
27160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27162 # Transform the output of nm in a proper C declaration
27163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27165 # Transform the output of nm in a C name address pair
27166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27168 # This is the shared library runtime path variable.
27169 runpath_var=$runpath_var
27171 # This is the shared library path variable.
27172 shlibpath_var=$shlibpath_var
27174 # Is shlibpath searched before the hard-coded library search path?
27175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27177 # How to hardcode a shared library path into an executable.
27178 hardcode_action=$hardcode_action_RC
27180 # Whether we should hardcode library paths into libraries.
27181 hardcode_into_libs=$hardcode_into_libs
27183 # Flag to hardcode \$libdir into a binary during linking.
27184 # This must work even if \$libdir does not exist.
27185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27187 # If ld is used when linking, flag to hardcode \$libdir into
27188 # a binary during linking. This must work even if \$libdir does
27190 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27192 # Whether we need a single -rpath flag with a separated argument.
27193 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27195 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27196 # resulting binary.
27197 hardcode_direct=$hardcode_direct_RC
27199 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27200 # resulting binary.
27201 hardcode_minus_L=$hardcode_minus_L_RC
27203 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27204 # the resulting binary.
27205 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27207 # Set to yes if building a shared library automatically hardcodes DIR into the library
27208 # and all subsequent libraries and executables linked against it.
27209 hardcode_automatic=$hardcode_automatic_RC
27211 # Variables whose values should be saved in libtool wrapper scripts and
27212 # restored at relink time.
27213 variables_saved_for_relink="$variables_saved_for_relink"
27215 # Whether libtool must link a program against all its dependency libraries.
27216 link_all_deplibs=$link_all_deplibs_RC
27218 # Compile-time system search path for libraries
27219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27221 # Run-time system search path for libraries
27222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27224 # Fix the shell variable \$srcfile for the compiler.
27225 fix_srcfile_path="$fix_srcfile_path_RC"
27227 # Set to yes if exported symbols are required.
27228 always_export_symbols=$always_export_symbols_RC
27230 # The commands to list exported symbols.
27231 export_symbols_cmds=$lt_export_symbols_cmds_RC
27233 # The commands to extract the exported symbol list from a shared archive.
27234 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27236 # Symbols that should not be listed in the preloaded symbols.
27237 exclude_expsyms=$lt_exclude_expsyms_RC
27239 # Symbols that must always be exported.
27240 include_expsyms=$lt_include_expsyms_RC
27242 # ### END LIBTOOL TAG CONFIG: $tagname
27248 # If there is no Makefile yet, we rely on a make rule to execute
27249 # `config.status --recheck' to rerun these tests and create the
27250 # libtool script then.
27251 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27252 if test -f "$ltmain_in"; then
27253 test -f Makefile && make "$ltmain"
27259 ac_cpp='$CPP $CPPFLAGS'
27260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27269 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27270 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27271 { (exit 1); exit 1; }; }
27275 # Append the new tag name to the list of available tags.
27276 if test -n "$tagname" ; then
27277 available_tags="$available_tags $tagname"
27283 # Now substitute the updated list of available tags.
27284 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27285 mv "${ofile}T" "$ofile"
27289 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27290 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27291 { (exit 1); exit 1; }; }
27297 # This can be used to rebuild libtool when needed
27298 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27300 # Always use our own libtool.
27301 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27303 # Prevent multiple expansion
27325 if test "$lt_cv_dlopen_self" = "yes" ; then
27327 cat >>confdefs.h <<\_ACEOF
27328 #define CAN_DLOPEN_SELF 1
27334 if test "$WITH_LLVMGCCDIR" = "default" ; then
27335 LLVMGCC="llvm-gcc${EXEEXT}"
27336 LLVMGXX="llvm-g++${EXEEXT}"
27337 LLVMGCCCOMMAND="$LLVMGCC"
27338 LLVMGXXCOMMAND="$LLVMGXX"
27339 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27341 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27343 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27344 set dummy $LLVMGCC; ac_word=$2
27345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27347 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27352 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27356 for as_dir in $PATH
27359 test -z "$as_dir" && as_dir=.
27360 for ac_exec_ext in '' $ac_executable_extensions; do
27361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27362 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27373 LLVMGCC=$ac_cv_path_LLVMGCC
27374 if test -n "$LLVMGCC"; then
27375 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27376 echo "${ECHO_T}$LLVMGCC" >&6; }
27378 { echo "$as_me:$LINENO: result: no" >&5
27379 echo "${ECHO_T}no" >&6; }
27383 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27384 set dummy $LLVMGXX; ac_word=$2
27385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27387 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27392 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27396 for as_dir in $PATH
27399 test -z "$as_dir" && as_dir=.
27400 for ac_exec_ext in '' $ac_executable_extensions; do
27401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27402 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27413 LLVMGXX=$ac_cv_path_LLVMGXX
27414 if test -n "$LLVMGXX"; then
27415 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27416 echo "${ECHO_T}$LLVMGXX" >&6; }
27418 { echo "$as_me:$LINENO: result: no" >&5
27419 echo "${ECHO_T}no" >&6; }
27424 if test -z "$LLVMGCC"; then
27425 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27426 LLVMGCCCOMMAND="$LLVMGCC"
27428 if test -z "$LLVMGXX"; then
27429 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27430 LLVMGXXCOMMAND="$LLVMGXX"
27437 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27439 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27444 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27445 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27458 if test "$GCC" != "yes" && test "$ICC" != "yes"
27460 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27461 echo "$as_me: error: gcc|icc required but not found" >&2;}
27462 { (exit 1); exit 1; }; }
27465 if test "$GXX" != "yes" && test "$IXX" != "yes"
27467 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27468 echo "$as_me: error: g++|icc required but not found" >&2;}
27469 { (exit 1); exit 1; }; }
27472 if test "$GCC" = "yes"
27474 cat >conftest.$ac_ext <<_ACEOF
27475 #if !defined(__GNUC__) || __GNUC__ < 3
27476 #error Unsupported GCC version
27480 rm -f conftest.$ac_objext
27481 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27489 grep -v '^ *+' conftest.er1 >conftest.err
27491 cat conftest.err >&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); } &&
27494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27495 { (case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_try") 2>&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; } &&
27504 { ac_try='test -s conftest.$ac_objext'
27505 { (case "(($ac_try" in
27506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507 *) ac_try_echo=$ac_try;;
27509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510 (eval "$ac_try") 2>&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; }; then
27516 echo "$as_me: failed program was:" >&5
27517 sed 's/^/| /' conftest.$ac_ext >&5
27519 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27520 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27521 { (exit 1); exit 1; }; }
27524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527 if test -z "$llvm_cv_gnu_make_command"
27529 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27530 echo "$as_me: error: GNU Make required but not found" >&2;}
27531 { (exit 1); exit 1; }; }
27534 { echo "$as_me:$LINENO: result: ok" >&5
27535 echo "${ECHO_T}ok" >&6; }
27539 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27540 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27541 if test "${ac_cv_lib_m_sin+set}" = set; then
27542 echo $ECHO_N "(cached) $ECHO_C" >&6
27544 ac_check_lib_save_LIBS=$LIBS
27546 cat >conftest.$ac_ext <<_ACEOF
27549 cat confdefs.h >>conftest.$ac_ext
27550 cat >>conftest.$ac_ext <<_ACEOF
27551 /* end confdefs.h. */
27553 /* Override any GCC internal prototype to avoid an error.
27554 Use char because int might match the return type of a GCC
27555 builtin and then its argument prototype would still apply. */
27568 rm -f conftest.$ac_objext conftest$ac_exeext
27569 if { (ac_try="$ac_link"
27570 case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
27577 grep -v '^ *+' conftest.er1 >conftest.err
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try='test -s conftest$ac_exeext'
27593 { (case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27602 ac_cv_lib_m_sin=yes
27604 echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27610 rm -f core conftest.err conftest.$ac_objext \
27611 conftest$ac_exeext conftest.$ac_ext
27612 LIBS=$ac_check_lib_save_LIBS
27614 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27615 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27616 if test $ac_cv_lib_m_sin = yes; then
27617 cat >>confdefs.h <<_ACEOF
27618 #define HAVE_LIBM 1
27625 if test "$llvm_cv_os_type" = "MingW" ; then
27627 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27628 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27629 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27630 echo $ECHO_N "(cached) $ECHO_C" >&6
27632 ac_check_lib_save_LIBS=$LIBS
27633 LIBS="-limagehlp $LIBS"
27634 cat >conftest.$ac_ext <<_ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (ac_try="$ac_link"
27652 case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_link") 2>conftest.er1
27659 grep -v '^ *+' conftest.er1 >conftest.err
27661 cat conftest.err >&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } &&
27664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665 { (case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_try") 2>&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
27684 ac_cv_lib_imagehlp_main=yes
27686 echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27689 ac_cv_lib_imagehlp_main=no
27692 rm -f core conftest.err conftest.$ac_objext \
27693 conftest$ac_exeext conftest.$ac_ext
27694 LIBS=$ac_check_lib_save_LIBS
27696 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27697 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27698 if test $ac_cv_lib_imagehlp_main = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700 #define HAVE_LIBIMAGEHLP 1
27703 LIBS="-limagehlp $LIBS"
27708 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27709 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27710 if test "${ac_cv_lib_psapi_main+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27713 ac_check_lib_save_LIBS=$LIBS
27714 LIBS="-lpsapi $LIBS"
27715 cat >conftest.$ac_ext <<_ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h. */
27731 rm -f conftest.$ac_objext conftest$ac_exeext
27732 if { (ac_try="$ac_link"
27733 case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_link") 2>conftest.er1
27740 grep -v '^ *+' conftest.er1 >conftest.err
27742 cat conftest.err >&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); } &&
27745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27746 { (case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_try") 2>&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; } &&
27755 { ac_try='test -s conftest$ac_exeext'
27756 { (case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_try") 2>&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; }; then
27765 ac_cv_lib_psapi_main=yes
27767 echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27770 ac_cv_lib_psapi_main=no
27773 rm -f core conftest.err conftest.$ac_objext \
27774 conftest$ac_exeext conftest.$ac_ext
27775 LIBS=$ac_check_lib_save_LIBS
27777 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27778 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27779 if test $ac_cv_lib_psapi_main = yes; then
27780 cat >>confdefs.h <<_ACEOF
27781 #define HAVE_LIBPSAPI 1
27784 LIBS="-lpsapi $LIBS"
27790 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27791 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27792 if test "${ac_cv_search_dlopen+set}" = set; then
27793 echo $ECHO_N "(cached) $ECHO_C" >&6
27795 ac_func_search_save_LIBS=$LIBS
27796 cat >conftest.$ac_ext <<_ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h. */
27803 /* Override any GCC internal prototype to avoid an error.
27804 Use char because int might match the return type of a GCC
27805 builtin and then its argument prototype would still apply. */
27818 for ac_lib in '' dl; do
27819 if test -z "$ac_lib"; then
27820 ac_res="none required"
27823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27825 rm -f conftest.$ac_objext conftest$ac_exeext
27826 if { (ac_try="$ac_link"
27827 case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832 (eval "$ac_link") 2>conftest.er1
27834 grep -v '^ *+' conftest.er1 >conftest.err
27836 cat conftest.err >&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); } &&
27839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27840 { (case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845 (eval "$ac_try") 2>&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); }; } &&
27849 { ac_try='test -s conftest$ac_exeext'
27850 { (case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855 (eval "$ac_try") 2>&5
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); }; }; then
27859 ac_cv_search_dlopen=$ac_res
27861 echo "$as_me: failed program was:" >&5
27862 sed 's/^/| /' conftest.$ac_ext >&5
27867 rm -f core conftest.err conftest.$ac_objext \
27869 if test "${ac_cv_search_dlopen+set}" = set; then
27873 if test "${ac_cv_search_dlopen+set}" = set; then
27876 ac_cv_search_dlopen=no
27878 rm conftest.$ac_ext
27879 LIBS=$ac_func_search_save_LIBS
27881 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27882 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27883 ac_res=$ac_cv_search_dlopen
27884 if test "$ac_res" != no; then
27885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27887 cat >>confdefs.h <<\_ACEOF
27888 #define HAVE_DLOPEN 1
27892 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27893 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27897 if test "$llvm_cv_enable_libffi" = "yes" ; then
27898 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27899 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27900 if test "${ac_cv_search_ffi_call+set}" = set; then
27901 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 ac_func_search_save_LIBS=$LIBS
27904 cat >conftest.$ac_ext <<_ACEOF
27907 cat confdefs.h >>conftest.$ac_ext
27908 cat >>conftest.$ac_ext <<_ACEOF
27909 /* end confdefs.h. */
27911 /* Override any GCC internal prototype to avoid an error.
27912 Use char because int might match the return type of a GCC
27913 builtin and then its argument prototype would still apply. */
27921 return ffi_call ();
27926 for ac_lib in '' ffi; do
27927 if test -z "$ac_lib"; then
27928 ac_res="none required"
27931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27933 rm -f conftest.$ac_objext conftest$ac_exeext
27934 if { (ac_try="$ac_link"
27935 case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_link") 2>conftest.er1
27942 grep -v '^ *+' conftest.er1 >conftest.err
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
27947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27948 { (case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_try") 2>&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; } &&
27957 { ac_try='test -s conftest$ac_exeext'
27958 { (case "(($ac_try" in
27959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960 *) ac_try_echo=$ac_try;;
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963 (eval "$ac_try") 2>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; }; then
27967 ac_cv_search_ffi_call=$ac_res
27969 echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27975 rm -f core conftest.err conftest.$ac_objext \
27977 if test "${ac_cv_search_ffi_call+set}" = set; then
27981 if test "${ac_cv_search_ffi_call+set}" = set; then
27984 ac_cv_search_ffi_call=no
27986 rm conftest.$ac_ext
27987 LIBS=$ac_func_search_save_LIBS
27989 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27990 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27991 ac_res=$ac_cv_search_ffi_call
27992 if test "$ac_res" != no; then
27993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27995 cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_FFI_CALL 1
28000 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28001 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28006 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28007 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
28008 if test "${ac_cv_search_mallinfo+set}" = set; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28011 ac_func_search_save_LIBS=$LIBS
28012 cat >conftest.$ac_ext <<_ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h. */
28019 /* Override any GCC internal prototype to avoid an error.
28020 Use char because int might match the return type of a GCC
28021 builtin and then its argument prototype would still apply. */
28029 return mallinfo ();
28034 for ac_lib in '' malloc; do
28035 if test -z "$ac_lib"; then
28036 ac_res="none required"
28039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28041 rm -f conftest.$ac_objext conftest$ac_exeext
28042 if { (ac_try="$ac_link"
28043 case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_link") 2>conftest.er1
28050 grep -v '^ *+' conftest.er1 >conftest.err
28052 cat conftest.err >&5
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); } &&
28055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28056 { (case "(($ac_try" in
28057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058 *) ac_try_echo=$ac_try;;
28060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061 (eval "$ac_try") 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest$ac_exeext'
28066 { (case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_try") 2>&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; }; then
28075 ac_cv_search_mallinfo=$ac_res
28077 echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28083 rm -f core conftest.err conftest.$ac_objext \
28085 if test "${ac_cv_search_mallinfo+set}" = set; then
28089 if test "${ac_cv_search_mallinfo+set}" = set; then
28092 ac_cv_search_mallinfo=no
28094 rm conftest.$ac_ext
28095 LIBS=$ac_func_search_save_LIBS
28097 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28098 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28099 ac_res=$ac_cv_search_mallinfo
28100 if test "$ac_res" != no; then
28101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28103 cat >>confdefs.h <<\_ACEOF
28104 #define HAVE_MALLINFO 1
28110 if test "$ENABLE_THREADS" -eq 1 ; then
28112 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28113 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28114 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28117 ac_check_lib_save_LIBS=$LIBS
28118 LIBS="-lpthread $LIBS"
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28126 /* Override any GCC internal prototype to avoid an error.
28127 Use char because int might match the return type of a GCC
28128 builtin and then its argument prototype would still apply. */
28132 char pthread_mutex_init ();
28136 return pthread_mutex_init ();
28141 rm -f conftest.$ac_objext conftest$ac_exeext
28142 if { (ac_try="$ac_link"
28143 case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_link") 2>conftest.er1
28150 grep -v '^ *+' conftest.er1 >conftest.err
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
28155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28156 { (case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161 (eval "$ac_try") 2>&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; } &&
28165 { ac_try='test -s conftest$ac_exeext'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
28175 ac_cv_lib_pthread_pthread_mutex_init=yes
28177 echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180 ac_cv_lib_pthread_pthread_mutex_init=no
28183 rm -f core conftest.err conftest.$ac_objext \
28184 conftest$ac_exeext conftest.$ac_ext
28185 LIBS=$ac_check_lib_save_LIBS
28187 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28188 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28189 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28190 cat >>confdefs.h <<_ACEOF
28191 #define HAVE_LIBPTHREAD 1
28194 LIBS="-lpthread $LIBS"
28198 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28199 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28200 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28201 echo $ECHO_N "(cached) $ECHO_C" >&6
28203 ac_func_search_save_LIBS=$LIBS
28204 cat >conftest.$ac_ext <<_ACEOF
28207 cat confdefs.h >>conftest.$ac_ext
28208 cat >>conftest.$ac_ext <<_ACEOF
28209 /* end confdefs.h. */
28211 /* Override any GCC internal prototype to avoid an error.
28212 Use char because int might match the return type of a GCC
28213 builtin and then its argument prototype would still apply. */
28217 char pthread_mutex_lock ();
28221 return pthread_mutex_lock ();
28226 for ac_lib in '' pthread; do
28227 if test -z "$ac_lib"; then
28228 ac_res="none required"
28231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28233 rm -f conftest.$ac_objext conftest$ac_exeext
28234 if { (ac_try="$ac_link"
28235 case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240 (eval "$ac_link") 2>conftest.er1
28242 grep -v '^ *+' conftest.er1 >conftest.err
28244 cat conftest.err >&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } &&
28247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28248 { (case "(($ac_try" in
28249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28253 (eval "$ac_try") 2>&5
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; } &&
28257 { ac_try='test -s conftest$ac_exeext'
28258 { (case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_try") 2>&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; }; then
28267 ac_cv_search_pthread_mutex_lock=$ac_res
28269 echo "$as_me: failed program was:" >&5
28270 sed 's/^/| /' conftest.$ac_ext >&5
28275 rm -f core conftest.err conftest.$ac_objext \
28277 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28281 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28284 ac_cv_search_pthread_mutex_lock=no
28286 rm conftest.$ac_ext
28287 LIBS=$ac_func_search_save_LIBS
28289 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28290 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28291 ac_res=$ac_cv_search_pthread_mutex_lock
28292 if test "$ac_res" != no; then
28293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28295 cat >>confdefs.h <<\_ACEOF
28296 #define HAVE_PTHREAD_MUTEX_LOCK 1
28301 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28302 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28303 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28306 ac_func_search_save_LIBS=$LIBS
28307 cat >conftest.$ac_ext <<_ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28314 /* Override any GCC internal prototype to avoid an error.
28315 Use char because int might match the return type of a GCC
28316 builtin and then its argument prototype would still apply. */
28320 char pthread_rwlock_init ();
28324 return pthread_rwlock_init ();
28329 for ac_lib in '' pthread; do
28330 if test -z "$ac_lib"; then
28331 ac_res="none required"
28334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28336 rm -f conftest.$ac_objext conftest$ac_exeext
28337 if { (ac_try="$ac_link"
28338 case "(($ac_try" in
28339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340 *) ac_try_echo=$ac_try;;
28342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343 (eval "$ac_link") 2>conftest.er1
28345 grep -v '^ *+' conftest.er1 >conftest.err
28347 cat conftest.err >&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } &&
28350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28351 { (case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_try") 2>&5
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; } &&
28360 { ac_try='test -s conftest$ac_exeext'
28361 { (case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_try") 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; }; then
28370 ac_cv_search_pthread_rwlock_init=$ac_res
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28378 rm -f core conftest.err conftest.$ac_objext \
28380 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28384 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28387 ac_cv_search_pthread_rwlock_init=no
28389 rm conftest.$ac_ext
28390 LIBS=$ac_func_search_save_LIBS
28392 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28393 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28394 ac_res=$ac_cv_search_pthread_rwlock_init
28395 if test "$ac_res" != no; then
28396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28398 cat >>confdefs.h <<\_ACEOF
28399 #define HAVE_PTHREAD_RWLOCK_INIT 1
28404 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28405 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28406 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28407 echo $ECHO_N "(cached) $ECHO_C" >&6
28409 ac_func_search_save_LIBS=$LIBS
28410 cat >conftest.$ac_ext <<_ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h. */
28417 /* Override any GCC internal prototype to avoid an error.
28418 Use char because int might match the return type of a GCC
28419 builtin and then its argument prototype would still apply. */
28423 char pthread_getspecific ();
28427 return pthread_getspecific ();
28432 for ac_lib in '' pthread; do
28433 if test -z "$ac_lib"; then
28434 ac_res="none required"
28437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28439 rm -f conftest.$ac_objext conftest$ac_exeext
28440 if { (ac_try="$ac_link"
28441 case "(($ac_try" in
28442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443 *) ac_try_echo=$ac_try;;
28445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446 (eval "$ac_link") 2>conftest.er1
28448 grep -v '^ *+' conftest.er1 >conftest.err
28450 cat conftest.err >&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } &&
28453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28454 { (case "(($ac_try" in
28455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456 *) ac_try_echo=$ac_try;;
28458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459 (eval "$ac_try") 2>&5
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; } &&
28463 { ac_try='test -s conftest$ac_exeext'
28464 { (case "(($ac_try" in
28465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466 *) ac_try_echo=$ac_try;;
28468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469 (eval "$ac_try") 2>&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; }; then
28473 ac_cv_search_pthread_getspecific=$ac_res
28475 echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28481 rm -f core conftest.err conftest.$ac_objext \
28483 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28487 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28490 ac_cv_search_pthread_getspecific=no
28492 rm conftest.$ac_ext
28493 LIBS=$ac_func_search_save_LIBS
28495 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28496 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28497 ac_res=$ac_cv_search_pthread_getspecific
28498 if test "$ac_res" != no; then
28499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28501 cat >>confdefs.h <<\_ACEOF
28502 #define HAVE_PTHREAD_GETSPECIFIC 1
28510 # Check whether --with-udis86 was given.
28511 if test "${with_udis86+set}" = set; then
28512 withval=$with_udis86;
28517 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28520 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28521 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28522 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28523 echo $ECHO_N "(cached) $ECHO_C" >&6
28525 ac_check_lib_save_LIBS=$LIBS
28526 LIBS="-ludis86 $LIBS"
28527 cat >conftest.$ac_ext <<_ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28534 /* Override any GCC internal prototype to avoid an error.
28535 Use char because int might match the return type of a GCC
28536 builtin and then its argument prototype would still apply. */
28549 rm -f conftest.$ac_objext conftest$ac_exeext
28550 if { (ac_try="$ac_link"
28551 case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_link") 2>conftest.er1
28558 grep -v '^ *+' conftest.er1 >conftest.err
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
28563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28564 { (case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_try") 2>&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28583 ac_cv_lib_udis86_ud_init=yes
28585 echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28588 ac_cv_lib_udis86_ud_init=no
28591 rm -f core conftest.err conftest.$ac_objext \
28592 conftest$ac_exeext conftest.$ac_ext
28593 LIBS=$ac_check_lib_save_LIBS
28595 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28596 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28597 if test $ac_cv_lib_udis86_ud_init = yes; then
28598 cat >>confdefs.h <<_ACEOF
28599 #define HAVE_LIBUDIS86 1
28602 LIBS="-ludis86 $LIBS"
28606 echo "Error! You need to have libudis86 around."
28618 cat >>confdefs.h <<_ACEOF
28619 #define USE_UDIS86 $USE_UDIS86
28624 # Check whether --with-oprofile was given.
28625 if test "${with_oprofile+set}" = set; then
28626 withval=$with_oprofile;
28630 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28631 *) llvm_cv_oppath="${withval}/lib/oprofile"
28632 CPPFLAGS="-I${withval}/include";;
28634 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28635 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28636 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28637 if test "${ac_cv_search_op_open_agent+set}" = set; then
28638 echo $ECHO_N "(cached) $ECHO_C" >&6
28640 ac_func_search_save_LIBS=$LIBS
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28648 /* Override any GCC internal prototype to avoid an error.
28649 Use char because int might match the return type of a GCC
28650 builtin and then its argument prototype would still apply. */
28654 char op_open_agent ();
28658 return op_open_agent ();
28663 for ac_lib in '' opagent; do
28664 if test -z "$ac_lib"; then
28665 ac_res="none required"
28668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28670 rm -f conftest.$ac_objext conftest$ac_exeext
28671 if { (ac_try="$ac_link"
28672 case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_link") 2>conftest.er1
28679 grep -v '^ *+' conftest.er1 >conftest.err
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } &&
28684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685 { (case "(($ac_try" in
28686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687 *) ac_try_echo=$ac_try;;
28689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690 (eval "$ac_try") 2>&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest$ac_exeext'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
28704 ac_cv_search_op_open_agent=$ac_res
28706 echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28712 rm -f core conftest.err conftest.$ac_objext \
28714 if test "${ac_cv_search_op_open_agent+set}" = set; then
28718 if test "${ac_cv_search_op_open_agent+set}" = set; then
28721 ac_cv_search_op_open_agent=no
28723 rm conftest.$ac_ext
28724 LIBS=$ac_func_search_save_LIBS
28726 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28727 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28728 ac_res=$ac_cv_search_op_open_agent
28729 if test "$ac_res" != no; then
28730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28734 echo "Error! You need to have libopagent around."
28739 if test "${ac_cv_header_opagent_h+set}" = set; then
28740 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28741 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28742 if test "${ac_cv_header_opagent_h+set}" = set; then
28743 echo $ECHO_N "(cached) $ECHO_C" >&6
28745 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28746 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28748 # Is the header compilable?
28749 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28750 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28751 cat >conftest.$ac_ext <<_ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h. */
28757 $ac_includes_default
28758 #include <opagent.h>
28760 rm -f conftest.$ac_objext
28761 if { (ac_try="$ac_compile"
28762 case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_compile") 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
28774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; } &&
28784 { ac_try='test -s conftest.$ac_objext'
28785 { (case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_try") 2>&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 ac_header_compiler=yes
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28799 ac_header_compiler=no
28802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28804 echo "${ECHO_T}$ac_header_compiler" >&6; }
28806 # Is the header present?
28807 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28808 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28809 cat >conftest.$ac_ext <<_ACEOF
28812 cat confdefs.h >>conftest.$ac_ext
28813 cat >>conftest.$ac_ext <<_ACEOF
28814 /* end confdefs.h. */
28815 #include <opagent.h>
28817 if { (ac_try="$ac_cpp conftest.$ac_ext"
28818 case "(($ac_try" in
28819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820 *) ac_try_echo=$ac_try;;
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28825 grep -v '^ *+' conftest.er1 >conftest.err
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } >/dev/null; then
28830 if test -s conftest.err; then
28831 ac_cpp_err=$ac_c_preproc_warn_flag
28832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28839 if test -z "$ac_cpp_err"; then
28840 ac_header_preproc=yes
28842 echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28845 ac_header_preproc=no
28848 rm -f conftest.err conftest.$ac_ext
28849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28850 echo "${ECHO_T}$ac_header_preproc" >&6; }
28852 # So? What about this header?
28853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28855 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28856 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28858 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28859 ac_header_preproc=yes
28862 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28863 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28865 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28867 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28869 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28871 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28873 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28875 ## ----------------------------------- ##
28876 ## Report this to llvmbugs@cs.uiuc.edu ##
28877 ## ----------------------------------- ##
28879 ) | sed "s/^/$as_me: WARNING: /" >&2
28882 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28883 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28884 if test "${ac_cv_header_opagent_h+set}" = set; then
28885 echo $ECHO_N "(cached) $ECHO_C" >&6
28887 ac_cv_header_opagent_h=$ac_header_preproc
28889 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28890 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28893 if test $ac_cv_header_opagent_h = yes; then
28897 echo "Error! You need to have opagent.h around."
28906 llvm_cv_old_LIBS="$LIBS"
28907 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28908 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28909 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28910 if test "${ac_cv_search_op_open_agent+set}" = set; then
28911 echo $ECHO_N "(cached) $ECHO_C" >&6
28913 ac_func_search_save_LIBS=$LIBS
28914 cat >conftest.$ac_ext <<_ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h. */
28921 /* Override any GCC internal prototype to avoid an error.
28922 Use char because int might match the return type of a GCC
28923 builtin and then its argument prototype would still apply. */
28927 char op_open_agent ();
28931 return op_open_agent ();
28936 for ac_lib in '' opagent; do
28937 if test -z "$ac_lib"; then
28938 ac_res="none required"
28941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28943 rm -f conftest.$ac_objext conftest$ac_exeext
28944 if { (ac_try="$ac_link"
28945 case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_link") 2>conftest.er1
28952 grep -v '^ *+' conftest.er1 >conftest.err
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } &&
28957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28958 { (case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_try") 2>&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; } &&
28967 { ac_try='test -s conftest$ac_exeext'
28968 { (case "(($ac_try" in
28969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 *) ac_try_echo=$ac_try;;
28972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973 (eval "$ac_try") 2>&5
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; }; then
28977 ac_cv_search_op_open_agent=$ac_res
28979 echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28985 rm -f core conftest.err conftest.$ac_objext \
28987 if test "${ac_cv_search_op_open_agent+set}" = set; then
28991 if test "${ac_cv_search_op_open_agent+set}" = set; then
28994 ac_cv_search_op_open_agent=no
28996 rm conftest.$ac_ext
28997 LIBS=$ac_func_search_save_LIBS
28999 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
29000 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
29001 ac_res=$ac_cv_search_op_open_agent
29002 if test "$ac_res" != no; then
29003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29007 LIBS="$llvm_cv_old_LIBS"
29012 if test "${ac_cv_header_opagent_h+set}" = set; then
29013 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29014 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29015 if test "${ac_cv_header_opagent_h+set}" = set; then
29016 echo $ECHO_N "(cached) $ECHO_C" >&6
29018 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29019 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29021 # Is the header compilable?
29022 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
29023 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
29024 cat >conftest.$ac_ext <<_ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h. */
29030 $ac_includes_default
29031 #include <opagent.h>
29033 rm -f conftest.$ac_objext
29034 if { (ac_try="$ac_compile"
29035 case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_compile") 2>conftest.er1
29042 grep -v '^ *+' conftest.er1 >conftest.err
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
29047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; } &&
29057 { ac_try='test -s conftest.$ac_objext'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; }; then
29067 ac_header_compiler=yes
29069 echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29072 ac_header_compiler=no
29075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077 echo "${ECHO_T}$ac_header_compiler" >&6; }
29079 # Is the header present?
29080 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
29081 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
29082 cat >conftest.$ac_ext <<_ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h. */
29088 #include <opagent.h>
29090 if { (ac_try="$ac_cpp conftest.$ac_ext"
29091 case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29098 grep -v '^ *+' conftest.er1 >conftest.err
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } >/dev/null; then
29103 if test -s conftest.err; then
29104 ac_cpp_err=$ac_c_preproc_warn_flag
29105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29112 if test -z "$ac_cpp_err"; then
29113 ac_header_preproc=yes
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29118 ac_header_preproc=no
29121 rm -f conftest.err conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123 echo "${ECHO_T}$ac_header_preproc" >&6; }
29125 # So? What about this header?
29126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29128 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29129 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29131 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29132 ac_header_preproc=yes
29135 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29136 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29138 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29140 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29142 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29144 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29146 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29148 ## ----------------------------------- ##
29149 ## Report this to llvmbugs@cs.uiuc.edu ##
29150 ## ----------------------------------- ##
29152 ) | sed "s/^/$as_me: WARNING: /" >&2
29155 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29156 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29157 if test "${ac_cv_header_opagent_h+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 ac_cv_header_opagent_h=$ac_header_preproc
29162 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29163 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29166 if test $ac_cv_header_opagent_h = yes; then
29170 LIBS="$llvm_cv_old_LIBS"
29181 cat >>confdefs.h <<_ACEOF
29182 #define USE_OPROFILE $USE_OPROFILE
29192 ac_header_dirent=no
29193 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29194 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29195 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29196 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 cat >conftest.$ac_ext <<_ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h. */
29206 #include <sys/types.h>
29218 rm -f conftest.$ac_objext
29219 if { (ac_try="$ac_compile"
29220 case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225 (eval "$ac_compile") 2>conftest.er1
29227 grep -v '^ *+' conftest.er1 >conftest.err
29229 cat conftest.err >&5
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); } &&
29232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29233 { (case "(($ac_try" in
29234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29235 *) ac_try_echo=$ac_try;;
29237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238 (eval "$ac_try") 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; } &&
29242 { ac_try='test -s conftest.$ac_objext'
29243 { (case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_try") 2>&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
29252 eval "$as_ac_Header=yes"
29254 echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29257 eval "$as_ac_Header=no"
29260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29262 ac_res=`eval echo '${'$as_ac_Header'}'`
29263 { echo "$as_me:$LINENO: result: $ac_res" >&5
29264 echo "${ECHO_T}$ac_res" >&6; }
29265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29266 cat >>confdefs.h <<_ACEOF
29267 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29270 ac_header_dirent=$ac_hdr; break
29274 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29275 if test $ac_header_dirent = dirent.h; then
29276 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29277 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29278 if test "${ac_cv_search_opendir+set}" = set; then
29279 echo $ECHO_N "(cached) $ECHO_C" >&6
29281 ac_func_search_save_LIBS=$LIBS
29282 cat >conftest.$ac_ext <<_ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h. */
29289 /* Override any GCC internal prototype to avoid an error.
29290 Use char because int might match the return type of a GCC
29291 builtin and then its argument prototype would still apply. */
29304 for ac_lib in '' dir; do
29305 if test -z "$ac_lib"; then
29306 ac_res="none required"
29309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29311 rm -f conftest.$ac_objext conftest$ac_exeext
29312 if { (ac_try="$ac_link"
29313 case "(($ac_try" in
29314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315 *) ac_try_echo=$ac_try;;
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318 (eval "$ac_link") 2>conftest.er1
29320 grep -v '^ *+' conftest.er1 >conftest.err
29322 cat conftest.err >&5
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); } &&
29325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29326 { (case "(($ac_try" in
29327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328 *) ac_try_echo=$ac_try;;
29330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331 (eval "$ac_try") 2>&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); }; } &&
29335 { ac_try='test -s conftest$ac_exeext'
29336 { (case "(($ac_try" in
29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338 *) ac_try_echo=$ac_try;;
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341 (eval "$ac_try") 2>&5
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; }; then
29345 ac_cv_search_opendir=$ac_res
29347 echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29353 rm -f core conftest.err conftest.$ac_objext \
29355 if test "${ac_cv_search_opendir+set}" = set; then
29359 if test "${ac_cv_search_opendir+set}" = set; then
29362 ac_cv_search_opendir=no
29364 rm conftest.$ac_ext
29365 LIBS=$ac_func_search_save_LIBS
29367 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29368 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29369 ac_res=$ac_cv_search_opendir
29370 if test "$ac_res" != no; then
29371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29376 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29377 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29378 if test "${ac_cv_search_opendir+set}" = set; then
29379 echo $ECHO_N "(cached) $ECHO_C" >&6
29381 ac_func_search_save_LIBS=$LIBS
29382 cat >conftest.$ac_ext <<_ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h. */
29389 /* Override any GCC internal prototype to avoid an error.
29390 Use char because int might match the return type of a GCC
29391 builtin and then its argument prototype would still apply. */
29404 for ac_lib in '' x; do
29405 if test -z "$ac_lib"; then
29406 ac_res="none required"
29409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29411 rm -f conftest.$ac_objext conftest$ac_exeext
29412 if { (ac_try="$ac_link"
29413 case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_link") 2>conftest.er1
29420 grep -v '^ *+' conftest.er1 >conftest.err
29422 cat conftest.err >&5
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); } &&
29425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29426 { (case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_try") 2>&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; } &&
29435 { ac_try='test -s conftest$ac_exeext'
29436 { (case "(($ac_try" in
29437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438 *) ac_try_echo=$ac_try;;
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441 (eval "$ac_try") 2>&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
29445 ac_cv_search_opendir=$ac_res
29447 echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29453 rm -f core conftest.err conftest.$ac_objext \
29455 if test "${ac_cv_search_opendir+set}" = set; then
29459 if test "${ac_cv_search_opendir+set}" = set; then
29462 ac_cv_search_opendir=no
29464 rm conftest.$ac_ext
29465 LIBS=$ac_func_search_save_LIBS
29467 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29468 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29469 ac_res=$ac_cv_search_opendir
29470 if test "$ac_res" != no; then
29471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29477 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29478 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29479 if test "${ac_cv_header_mmap_anon+set}" = set; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29483 ac_cpp='$CPP $CPPFLAGS'
29484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29488 cat >conftest.$ac_ext <<_ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29494 #include <sys/mman.h>
29495 #include <unistd.h>
29500 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29505 rm -f conftest.$ac_objext
29506 if { (ac_try="$ac_compile"
29507 case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_compile") 2>conftest.er1
29514 grep -v '^ *+' conftest.er1 >conftest.err
29516 cat conftest.err >&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); } &&
29519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29520 { (case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_try") 2>&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; } &&
29529 { ac_try='test -s conftest.$ac_objext'
29530 { (case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_try") 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ac_cv_header_mmap_anon=yes
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 ac_cv_header_mmap_anon=no
29547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29549 ac_cpp='$CPP $CPPFLAGS'
29550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29556 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29557 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29558 if test "$ac_cv_header_mmap_anon" = yes; then
29560 cat >>confdefs.h <<\_ACEOF
29561 #define HAVE_MMAP_ANONYMOUS 1
29566 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29567 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29568 if test "${ac_cv_header_stat_broken+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29571 cat >conftest.$ac_ext <<_ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h. */
29577 #include <sys/types.h>
29578 #include <sys/stat.h>
29580 #if defined S_ISBLK && defined S_IFDIR
29581 # if S_ISBLK (S_IFDIR)
29586 #if defined S_ISBLK && defined S_IFCHR
29587 # if S_ISBLK (S_IFCHR)
29592 #if defined S_ISLNK && defined S_IFREG
29593 # if S_ISLNK (S_IFREG)
29598 #if defined S_ISSOCK && defined S_IFREG
29599 # if S_ISSOCK (S_IFREG)
29605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29606 $EGREP "You lose" >/dev/null 2>&1; then
29607 ac_cv_header_stat_broken=yes
29609 ac_cv_header_stat_broken=no
29614 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29615 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29616 if test $ac_cv_header_stat_broken = yes; then
29618 cat >>confdefs.h <<\_ACEOF
29619 #define STAT_MACROS_BROKEN 1
29624 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29625 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29626 if test "${ac_cv_header_stdc+set}" = set; then
29627 echo $ECHO_N "(cached) $ECHO_C" >&6
29629 cat >conftest.$ac_ext <<_ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29635 #include <stdlib.h>
29636 #include <stdarg.h>
29637 #include <string.h>
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655 (eval "$ac_compile") 2>conftest.er1
29657 grep -v '^ *+' conftest.er1 >conftest.err
29659 cat conftest.err >&5
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } &&
29662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29663 { (case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_try") 2>&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; } &&
29672 { ac_try='test -s conftest.$ac_objext'
29673 { (case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_try") 2>&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; }; then
29682 ac_cv_header_stdc=yes
29684 echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29687 ac_cv_header_stdc=no
29690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29692 if test $ac_cv_header_stdc = yes; then
29693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29694 cat >conftest.$ac_ext <<_ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h. */
29700 #include <string.h>
29703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29704 $EGREP "memchr" >/dev/null 2>&1; then
29707 ac_cv_header_stdc=no
29713 if test $ac_cv_header_stdc = yes; then
29714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29715 cat >conftest.$ac_ext <<_ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h. */
29721 #include <stdlib.h>
29724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29725 $EGREP "free" >/dev/null 2>&1; then
29728 ac_cv_header_stdc=no
29734 if test $ac_cv_header_stdc = yes; then
29735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29736 if test "$cross_compiling" = yes; then
29739 cat >conftest.$ac_ext <<_ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h. */
29746 #include <stdlib.h>
29747 #if ((' ' & 0x0FF) == 0x020)
29748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29751 # define ISLOWER(c) \
29752 (('a' <= (c) && (c) <= 'i') \
29753 || ('j' <= (c) && (c) <= 'r') \
29754 || ('s' <= (c) && (c) <= 'z'))
29755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29763 for (i = 0; i < 256; i++)
29764 if (XOR (islower (i), ISLOWER (i))
29765 || toupper (i) != TOUPPER (i))
29770 rm -f conftest$ac_exeext
29771 if { (ac_try="$ac_link"
29772 case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_link") 2>&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29781 { (case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_try") 2>&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29792 echo "$as_me: program exited with status $ac_status" >&5
29793 echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29796 ( exit $ac_status )
29797 ac_cv_header_stdc=no
29799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29805 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29806 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29807 if test $ac_cv_header_stdc = yes; then
29809 cat >>confdefs.h <<\_ACEOF
29810 #define STDC_HEADERS 1
29815 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29816 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29817 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29820 cat >conftest.$ac_ext <<_ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826 #include <sys/types.h>
29827 #include <sys/wait.h>
29828 #ifndef WEXITSTATUS
29829 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29832 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29840 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29845 rm -f conftest.$ac_objext
29846 if { (ac_try="$ac_compile"
29847 case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_compile") 2>conftest.er1
29854 grep -v '^ *+' conftest.er1 >conftest.err
29856 cat conftest.err >&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } &&
29859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29860 { (case "(($ac_try" in
29861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29862 *) ac_try_echo=$ac_try;;
29864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29865 (eval "$ac_try") 2>&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; } &&
29869 { ac_try='test -s conftest.$ac_objext'
29870 { (case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; }; then
29879 ac_cv_header_sys_wait_h=yes
29881 echo "$as_me: failed program was:" >&5
29882 sed 's/^/| /' conftest.$ac_ext >&5
29884 ac_cv_header_sys_wait_h=no
29887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29889 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29890 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29891 if test $ac_cv_header_sys_wait_h = yes; then
29893 cat >>confdefs.h <<\_ACEOF
29894 #define HAVE_SYS_WAIT_H 1
29899 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29900 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29901 if test "${ac_cv_header_time+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29904 cat >conftest.$ac_ext <<_ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29910 #include <sys/types.h>
29911 #include <sys/time.h>
29917 if ((struct tm *) 0)
29923 rm -f conftest.$ac_objext
29924 if { (ac_try="$ac_compile"
29925 case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_compile") 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
29937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938 { (case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_try") 2>&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; } &&
29947 { ac_try='test -s conftest.$ac_objext'
29948 { (case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_try") 2>&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
29957 ac_cv_header_time=yes
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_cv_header_time=no
29965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29967 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29968 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29969 if test $ac_cv_header_time = yes; then
29971 cat >>confdefs.h <<\_ACEOF
29972 #define TIME_WITH_SYS_TIME 1
29984 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29993 ac_res=`eval echo '${'$as_ac_Header'}'`
29994 { echo "$as_me:$LINENO: result: $ac_res" >&5
29995 echo "${ECHO_T}$ac_res" >&6; }
29997 # Is the header compilable?
29998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30000 cat >conftest.$ac_ext <<_ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h. */
30006 $ac_includes_default
30007 #include <$ac_header>
30009 rm -f conftest.$ac_objext
30010 if { (ac_try="$ac_compile"
30011 case "(($ac_try" in
30012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013 *) ac_try_echo=$ac_try;;
30015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016 (eval "$ac_compile") 2>conftest.er1
30018 grep -v '^ *+' conftest.er1 >conftest.err
30020 cat conftest.err >&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); } &&
30023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30024 { (case "(($ac_try" in
30025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026 *) ac_try_echo=$ac_try;;
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_try") 2>&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); }; } &&
30033 { ac_try='test -s conftest.$ac_objext'
30034 { (case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_try") 2>&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; }; then
30043 ac_header_compiler=yes
30045 echo "$as_me: failed program was:" >&5
30046 sed 's/^/| /' conftest.$ac_ext >&5
30048 ac_header_compiler=no
30051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30053 echo "${ECHO_T}$ac_header_compiler" >&6; }
30055 # Is the header present?
30056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30058 cat >conftest.$ac_ext <<_ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h. */
30064 #include <$ac_header>
30066 if { (ac_try="$ac_cpp conftest.$ac_ext"
30067 case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30074 grep -v '^ *+' conftest.er1 >conftest.err
30076 cat conftest.err >&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); } >/dev/null; then
30079 if test -s conftest.err; then
30080 ac_cpp_err=$ac_c_preproc_warn_flag
30081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30088 if test -z "$ac_cpp_err"; then
30089 ac_header_preproc=yes
30091 echo "$as_me: failed program was:" >&5
30092 sed 's/^/| /' conftest.$ac_ext >&5
30094 ac_header_preproc=no
30097 rm -f conftest.err conftest.$ac_ext
30098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30099 echo "${ECHO_T}$ac_header_preproc" >&6; }
30101 # So? What about this header?
30102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30108 ac_header_preproc=yes
30111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30124 ## ----------------------------------- ##
30125 ## Report this to llvmbugs@cs.uiuc.edu ##
30126 ## ----------------------------------- ##
30128 ) | sed "s/^/$as_me: WARNING: /" >&2
30131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30134 echo $ECHO_N "(cached) $ECHO_C" >&6
30136 eval "$as_ac_Header=\$ac_header_preproc"
30138 ac_res=`eval echo '${'$as_ac_Header'}'`
30139 { echo "$as_me:$LINENO: result: $ac_res" >&5
30140 echo "${ECHO_T}$ac_res" >&6; }
30143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30144 cat >>confdefs.h <<_ACEOF
30145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30158 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30167 ac_res=`eval echo '${'$as_ac_Header'}'`
30168 { echo "$as_me:$LINENO: result: $ac_res" >&5
30169 echo "${ECHO_T}$ac_res" >&6; }
30171 # Is the header compilable?
30172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30174 cat >conftest.$ac_ext <<_ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h. */
30180 $ac_includes_default
30181 #include <$ac_header>
30183 rm -f conftest.$ac_objext
30184 if { (ac_try="$ac_compile"
30185 case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_compile") 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest.$ac_objext'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
30217 ac_header_compiler=yes
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30222 ac_header_compiler=no
30225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30227 echo "${ECHO_T}$ac_header_compiler" >&6; }
30229 # Is the header present?
30230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30232 cat >conftest.$ac_ext <<_ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 #include <$ac_header>
30240 if { (ac_try="$ac_cpp conftest.$ac_ext"
30241 case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30248 grep -v '^ *+' conftest.er1 >conftest.err
30250 cat conftest.err >&5
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); } >/dev/null; then
30253 if test -s conftest.err; then
30254 ac_cpp_err=$ac_c_preproc_warn_flag
30255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30262 if test -z "$ac_cpp_err"; then
30263 ac_header_preproc=yes
30265 echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30268 ac_header_preproc=no
30271 rm -f conftest.err conftest.$ac_ext
30272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6; }
30275 # So? What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282 ac_header_preproc=yes
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30298 ## ----------------------------------- ##
30299 ## Report this to llvmbugs@cs.uiuc.edu ##
30300 ## ----------------------------------- ##
30302 ) | sed "s/^/$as_me: WARNING: /" >&2
30305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30308 echo $ECHO_N "(cached) $ECHO_C" >&6
30310 eval "$as_ac_Header=\$ac_header_preproc"
30312 ac_res=`eval echo '${'$as_ac_Header'}'`
30313 { echo "$as_me:$LINENO: result: $ac_res" >&5
30314 echo "${ECHO_T}$ac_res" >&6; }
30317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30328 for ac_header in utime.h windows.h
30330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30335 echo $ECHO_N "(cached) $ECHO_C" >&6
30337 ac_res=`eval echo '${'$as_ac_Header'}'`
30338 { echo "$as_me:$LINENO: result: $ac_res" >&5
30339 echo "${ECHO_T}$ac_res" >&6; }
30341 # Is the header compilable?
30342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30344 cat >conftest.$ac_ext <<_ACEOF
30347 cat confdefs.h >>conftest.$ac_ext
30348 cat >>conftest.$ac_ext <<_ACEOF
30349 /* end confdefs.h. */
30350 $ac_includes_default
30351 #include <$ac_header>
30353 rm -f conftest.$ac_objext
30354 if { (ac_try="$ac_compile"
30355 case "(($ac_try" in
30356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357 *) ac_try_echo=$ac_try;;
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360 (eval "$ac_compile") 2>conftest.er1
30362 grep -v '^ *+' conftest.er1 >conftest.err
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
30367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30368 { (case "(($ac_try" in
30369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370 *) ac_try_echo=$ac_try;;
30372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373 (eval "$ac_try") 2>&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; } &&
30377 { ac_try='test -s conftest.$ac_objext'
30378 { (case "(($ac_try" in
30379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380 *) ac_try_echo=$ac_try;;
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383 (eval "$ac_try") 2>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; }; then
30387 ac_header_compiler=yes
30389 echo "$as_me: failed program was:" >&5
30390 sed 's/^/| /' conftest.$ac_ext >&5
30392 ac_header_compiler=no
30395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30397 echo "${ECHO_T}$ac_header_compiler" >&6; }
30399 # Is the header present?
30400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30402 cat >conftest.$ac_ext <<_ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h. */
30408 #include <$ac_header>
30410 if { (ac_try="$ac_cpp conftest.$ac_ext"
30411 case "(($ac_try" in
30412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413 *) ac_try_echo=$ac_try;;
30415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30418 grep -v '^ *+' conftest.er1 >conftest.err
30420 cat conftest.err >&5
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); } >/dev/null; then
30423 if test -s conftest.err; then
30424 ac_cpp_err=$ac_c_preproc_warn_flag
30425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30432 if test -z "$ac_cpp_err"; then
30433 ac_header_preproc=yes
30435 echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.$ac_ext >&5
30438 ac_header_preproc=no
30441 rm -f conftest.err conftest.$ac_ext
30442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30443 echo "${ECHO_T}$ac_header_preproc" >&6; }
30445 # So? What about this header?
30446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30452 ac_header_preproc=yes
30455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30468 ## ----------------------------------- ##
30469 ## Report this to llvmbugs@cs.uiuc.edu ##
30470 ## ----------------------------------- ##
30472 ) | sed "s/^/$as_me: WARNING: /" >&2
30475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30480 eval "$as_ac_Header=\$ac_header_preproc"
30482 ac_res=`eval echo '${'$as_ac_Header'}'`
30483 { echo "$as_me:$LINENO: result: $ac_res" >&5
30484 echo "${ECHO_T}$ac_res" >&6; }
30487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30488 cat >>confdefs.h <<_ACEOF
30489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30500 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30509 ac_res=`eval echo '${'$as_ac_Header'}'`
30510 { echo "$as_me:$LINENO: result: $ac_res" >&5
30511 echo "${ECHO_T}$ac_res" >&6; }
30513 # Is the header compilable?
30514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30516 cat >conftest.$ac_ext <<_ACEOF
30519 cat confdefs.h >>conftest.$ac_ext
30520 cat >>conftest.$ac_ext <<_ACEOF
30521 /* end confdefs.h. */
30522 $ac_includes_default
30523 #include <$ac_header>
30525 rm -f conftest.$ac_objext
30526 if { (ac_try="$ac_compile"
30527 case "(($ac_try" in
30528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529 *) ac_try_echo=$ac_try;;
30531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532 (eval "$ac_compile") 2>conftest.er1
30534 grep -v '^ *+' conftest.er1 >conftest.err
30536 cat conftest.err >&5
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); } &&
30539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30540 { (case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_try") 2>&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; } &&
30549 { ac_try='test -s conftest.$ac_objext'
30550 { (case "(($ac_try" in
30551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552 *) ac_try_echo=$ac_try;;
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555 (eval "$ac_try") 2>&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; }; then
30559 ac_header_compiler=yes
30561 echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30564 ac_header_compiler=no
30567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30569 echo "${ECHO_T}$ac_header_compiler" >&6; }
30571 # Is the header present?
30572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30574 cat >conftest.$ac_ext <<_ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h. */
30580 #include <$ac_header>
30582 if { (ac_try="$ac_cpp conftest.$ac_ext"
30583 case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30590 grep -v '^ *+' conftest.er1 >conftest.err
30592 cat conftest.err >&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); } >/dev/null; then
30595 if test -s conftest.err; then
30596 ac_cpp_err=$ac_c_preproc_warn_flag
30597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30604 if test -z "$ac_cpp_err"; then
30605 ac_header_preproc=yes
30607 echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30610 ac_header_preproc=no
30613 rm -f conftest.err conftest.$ac_ext
30614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30615 echo "${ECHO_T}$ac_header_preproc" >&6; }
30617 # So? What about this header?
30618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30624 ac_header_preproc=yes
30627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30640 ## ----------------------------------- ##
30641 ## Report this to llvmbugs@cs.uiuc.edu ##
30642 ## ----------------------------------- ##
30644 ) | sed "s/^/$as_me: WARNING: /" >&2
30647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30650 echo $ECHO_N "(cached) $ECHO_C" >&6
30652 eval "$as_ac_Header=\$ac_header_preproc"
30654 ac_res=`eval echo '${'$as_ac_Header'}'`
30655 { echo "$as_me:$LINENO: result: $ac_res" >&5
30656 echo "${ECHO_T}$ac_res" >&6; }
30659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30660 cat >>confdefs.h <<_ACEOF
30661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30672 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30679 echo $ECHO_N "(cached) $ECHO_C" >&6
30681 ac_res=`eval echo '${'$as_ac_Header'}'`
30682 { echo "$as_me:$LINENO: result: $ac_res" >&5
30683 echo "${ECHO_T}$ac_res" >&6; }
30685 # Is the header compilable?
30686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30688 cat >conftest.$ac_ext <<_ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h. */
30694 $ac_includes_default
30695 #include <$ac_header>
30697 rm -f conftest.$ac_objext
30698 if { (ac_try="$ac_compile"
30699 case "(($ac_try" in
30700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704 (eval "$ac_compile") 2>conftest.er1
30706 grep -v '^ *+' conftest.er1 >conftest.err
30708 cat conftest.err >&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
30711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30712 { (case "(($ac_try" in
30713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714 *) ac_try_echo=$ac_try;;
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717 (eval "$ac_try") 2>&5
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; } &&
30721 { ac_try='test -s conftest.$ac_objext'
30722 { (case "(($ac_try" in
30723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727 (eval "$ac_try") 2>&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
30731 ac_header_compiler=yes
30733 echo "$as_me: failed program was:" >&5
30734 sed 's/^/| /' conftest.$ac_ext >&5
30736 ac_header_compiler=no
30739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30741 echo "${ECHO_T}$ac_header_compiler" >&6; }
30743 # Is the header present?
30744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30746 cat >conftest.$ac_ext <<_ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h. */
30752 #include <$ac_header>
30754 if { (ac_try="$ac_cpp conftest.$ac_ext"
30755 case "(($ac_try" in
30756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30757 *) ac_try_echo=$ac_try;;
30759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30762 grep -v '^ *+' conftest.er1 >conftest.err
30764 cat conftest.err >&5
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } >/dev/null; then
30767 if test -s conftest.err; then
30768 ac_cpp_err=$ac_c_preproc_warn_flag
30769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30776 if test -z "$ac_cpp_err"; then
30777 ac_header_preproc=yes
30779 echo "$as_me: failed program was:" >&5
30780 sed 's/^/| /' conftest.$ac_ext >&5
30782 ac_header_preproc=no
30785 rm -f conftest.err conftest.$ac_ext
30786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30787 echo "${ECHO_T}$ac_header_preproc" >&6; }
30789 # So? What about this header?
30790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30796 ac_header_preproc=yes
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30812 ## ----------------------------------- ##
30813 ## Report this to llvmbugs@cs.uiuc.edu ##
30814 ## ----------------------------------- ##
30816 ) | sed "s/^/$as_me: WARNING: /" >&2
30819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30822 echo $ECHO_N "(cached) $ECHO_C" >&6
30824 eval "$as_ac_Header=\$ac_header_preproc"
30826 ac_res=`eval echo '${'$as_ac_Header'}'`
30827 { echo "$as_me:$LINENO: result: $ac_res" >&5
30828 echo "${ECHO_T}$ac_res" >&6; }
30831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30832 cat >>confdefs.h <<_ACEOF
30833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30840 if test "$ENABLE_THREADS" -eq 1 ; then
30842 for ac_header in pthread.h
30844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30849 echo $ECHO_N "(cached) $ECHO_C" >&6
30851 ac_res=`eval echo '${'$as_ac_Header'}'`
30852 { echo "$as_me:$LINENO: result: $ac_res" >&5
30853 echo "${ECHO_T}$ac_res" >&6; }
30855 # Is the header compilable?
30856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30858 cat >conftest.$ac_ext <<_ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h. */
30864 $ac_includes_default
30865 #include <$ac_header>
30867 rm -f conftest.$ac_objext
30868 if { (ac_try="$ac_compile"
30869 case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_compile") 2>conftest.er1
30876 grep -v '^ *+' conftest.er1 >conftest.err
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } &&
30881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882 { (case "(($ac_try" in
30883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884 *) ac_try_echo=$ac_try;;
30886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887 (eval "$ac_try") 2>&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest.$ac_objext'
30892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
30901 ac_header_compiler=yes
30903 echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30906 ac_header_compiler=no
30909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30911 echo "${ECHO_T}$ac_header_compiler" >&6; }
30913 # Is the header present?
30914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30916 cat >conftest.$ac_ext <<_ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h. */
30922 #include <$ac_header>
30924 if { (ac_try="$ac_cpp conftest.$ac_ext"
30925 case "(($ac_try" in
30926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927 *) ac_try_echo=$ac_try;;
30929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30932 grep -v '^ *+' conftest.er1 >conftest.err
30934 cat conftest.err >&5
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); } >/dev/null; then
30937 if test -s conftest.err; then
30938 ac_cpp_err=$ac_c_preproc_warn_flag
30939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30946 if test -z "$ac_cpp_err"; then
30947 ac_header_preproc=yes
30949 echo "$as_me: failed program was:" >&5
30950 sed 's/^/| /' conftest.$ac_ext >&5
30952 ac_header_preproc=no
30955 rm -f conftest.err conftest.$ac_ext
30956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30957 echo "${ECHO_T}$ac_header_preproc" >&6; }
30959 # So? What about this header?
30960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30966 ac_header_preproc=yes
30969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30982 ## ----------------------------------- ##
30983 ## Report this to llvmbugs@cs.uiuc.edu ##
30984 ## ----------------------------------- ##
30986 ) | sed "s/^/$as_me: WARNING: /" >&2
30989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30992 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 eval "$as_ac_Header=\$ac_header_preproc"
30996 ac_res=`eval echo '${'$as_ac_Header'}'`
30997 { echo "$as_me:$LINENO: result: $ac_res" >&5
30998 echo "${ECHO_T}$ac_res" >&6; }
31001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31002 cat >>confdefs.h <<_ACEOF
31003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31019 if test "$llvm_cv_enable_libffi" = "yes" ; then
31022 for ac_header in ffi.h ffi/ffi.h
31024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31029 echo $ECHO_N "(cached) $ECHO_C" >&6
31031 ac_res=`eval echo '${'$as_ac_Header'}'`
31032 { echo "$as_me:$LINENO: result: $ac_res" >&5
31033 echo "${ECHO_T}$ac_res" >&6; }
31035 # Is the header compilable?
31036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31038 cat >conftest.$ac_ext <<_ACEOF
31041 cat confdefs.h >>conftest.$ac_ext
31042 cat >>conftest.$ac_ext <<_ACEOF
31043 /* end confdefs.h. */
31044 $ac_includes_default
31045 #include <$ac_header>
31047 rm -f conftest.$ac_objext
31048 if { (ac_try="$ac_compile"
31049 case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_compile") 2>conftest.er1
31056 grep -v '^ *+' conftest.er1 >conftest.err
31058 cat conftest.err >&5
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } &&
31061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31062 { (case "(($ac_try" in
31063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31064 *) ac_try_echo=$ac_try;;
31066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31067 (eval "$ac_try") 2>&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; } &&
31071 { ac_try='test -s conftest.$ac_objext'
31072 { (case "(($ac_try" in
31073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074 *) ac_try_echo=$ac_try;;
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077 (eval "$ac_try") 2>&5
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; }; then
31081 ac_header_compiler=yes
31083 echo "$as_me: failed program was:" >&5
31084 sed 's/^/| /' conftest.$ac_ext >&5
31086 ac_header_compiler=no
31089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31091 echo "${ECHO_T}$ac_header_compiler" >&6; }
31093 # Is the header present?
31094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31096 cat >conftest.$ac_ext <<_ACEOF
31099 cat confdefs.h >>conftest.$ac_ext
31100 cat >>conftest.$ac_ext <<_ACEOF
31101 /* end confdefs.h. */
31102 #include <$ac_header>
31104 if { (ac_try="$ac_cpp conftest.$ac_ext"
31105 case "(($ac_try" in
31106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31112 grep -v '^ *+' conftest.er1 >conftest.err
31114 cat conftest.err >&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } >/dev/null; then
31117 if test -s conftest.err; then
31118 ac_cpp_err=$ac_c_preproc_warn_flag
31119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31126 if test -z "$ac_cpp_err"; then
31127 ac_header_preproc=yes
31129 echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31132 ac_header_preproc=no
31135 rm -f conftest.err conftest.$ac_ext
31136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31137 echo "${ECHO_T}$ac_header_preproc" >&6; }
31139 # So? What about this header?
31140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31146 ac_header_preproc=yes
31149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31162 ## ----------------------------------- ##
31163 ## Report this to llvmbugs@cs.uiuc.edu ##
31164 ## ----------------------------------- ##
31166 ) | sed "s/^/$as_me: WARNING: /" >&2
31169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31174 eval "$as_ac_Header=\$ac_header_preproc"
31176 ac_res=`eval echo '${'$as_ac_Header'}'`
31177 { echo "$as_me:$LINENO: result: $ac_res" >&5
31178 echo "${ECHO_T}$ac_res" >&6; }
31181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31182 cat >>confdefs.h <<_ACEOF
31183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31194 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31195 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31196 if test "${ac_cv_huge_val_sanity+set}" = set; then
31197 echo $ECHO_N "(cached) $ECHO_C" >&6
31201 ac_cpp='$CXXCPP $CPPFLAGS'
31202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31207 if test "$cross_compiling" = yes; then
31208 ac_cv_huge_val_sanity=yes
31210 cat >conftest.$ac_ext <<_ACEOF
31213 cat confdefs.h >>conftest.$ac_ext
31214 cat >>conftest.$ac_ext <<_ACEOF
31215 /* end confdefs.h. */
31220 double x = HUGE_VAL; return x != x;
31225 rm -f conftest$ac_exeext
31226 if { (ac_try="$ac_link"
31227 case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_link") 2>&5
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31236 { (case "(($ac_try" in
31237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31238 *) ac_try_echo=$ac_try;;
31240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31241 (eval "$ac_try") 2>&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
31245 ac_cv_huge_val_sanity=yes
31247 echo "$as_me: program exited with status $ac_status" >&5
31248 echo "$as_me: failed program was:" >&5
31249 sed 's/^/| /' conftest.$ac_ext >&5
31251 ( exit $ac_status )
31252 ac_cv_huge_val_sanity=no
31254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31259 ac_cpp='$CPP $CPPFLAGS'
31260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31266 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31267 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31268 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31271 { echo "$as_me:$LINENO: checking for pid_t" >&5
31272 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31273 if test "${ac_cv_type_pid_t+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31276 cat >conftest.$ac_ext <<_ACEOF
31279 cat confdefs.h >>conftest.$ac_ext
31280 cat >>conftest.$ac_ext <<_ACEOF
31281 /* end confdefs.h. */
31282 $ac_includes_default
31283 typedef pid_t ac__type_new_;
31287 if ((ac__type_new_ *) 0)
31289 if (sizeof (ac__type_new_))
31295 rm -f conftest.$ac_objext
31296 if { (ac_try="$ac_compile"
31297 case "(($ac_try" in
31298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31299 *) ac_try_echo=$ac_try;;
31301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31302 (eval "$ac_compile") 2>conftest.er1
31304 grep -v '^ *+' conftest.er1 >conftest.err
31306 cat conftest.err >&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); } &&
31309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; } &&
31319 { ac_try='test -s conftest.$ac_objext'
31320 { (case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_try") 2>&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31329 ac_cv_type_pid_t=yes
31331 echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31334 ac_cv_type_pid_t=no
31337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31339 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31340 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31341 if test $ac_cv_type_pid_t = yes; then
31345 cat >>confdefs.h <<_ACEOF
31351 { echo "$as_me:$LINENO: checking for size_t" >&5
31352 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31353 if test "${ac_cv_type_size_t+set}" = set; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31356 cat >conftest.$ac_ext <<_ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h. */
31362 $ac_includes_default
31363 typedef size_t ac__type_new_;
31367 if ((ac__type_new_ *) 0)
31369 if (sizeof (ac__type_new_))
31375 rm -f conftest.$ac_objext
31376 if { (ac_try="$ac_compile"
31377 case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_compile") 2>conftest.er1
31384 grep -v '^ *+' conftest.er1 >conftest.err
31386 cat conftest.err >&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } &&
31389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31390 { (case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_try") 2>&5
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; } &&
31399 { ac_try='test -s conftest.$ac_objext'
31400 { (case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_try") 2>&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; }; then
31409 ac_cv_type_size_t=yes
31411 echo "$as_me: failed program was:" >&5
31412 sed 's/^/| /' conftest.$ac_ext >&5
31414 ac_cv_type_size_t=no
31417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31419 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31420 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31421 if test $ac_cv_type_size_t = yes; then
31425 cat >>confdefs.h <<_ACEOF
31426 #define size_t unsigned int
31431 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31432 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31433 if test "${ac_cv_type_signal+set}" = set; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31436 cat >conftest.$ac_ext <<_ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h. */
31442 #include <sys/types.h>
31443 #include <signal.h>
31448 return *(signal (0, 0)) (0) == 1;
31453 rm -f conftest.$ac_objext
31454 if { (ac_try="$ac_compile"
31455 case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_compile") 2>conftest.er1
31462 grep -v '^ *+' conftest.er1 >conftest.err
31464 cat conftest.err >&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); } &&
31467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31468 { (case "(($ac_try" in
31469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470 *) ac_try_echo=$ac_try;;
31472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473 (eval "$ac_try") 2>&5
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); }; } &&
31477 { ac_try='test -s conftest.$ac_objext'
31478 { (case "(($ac_try" in
31479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480 *) ac_try_echo=$ac_try;;
31482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483 (eval "$ac_try") 2>&5
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; }; then
31487 ac_cv_type_signal=int
31489 echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31492 ac_cv_type_signal=void
31495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31497 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31498 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31500 cat >>confdefs.h <<_ACEOF
31501 #define RETSIGTYPE $ac_cv_type_signal
31505 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31506 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31507 if test "${ac_cv_struct_tm+set}" = set; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31510 cat >conftest.$ac_ext <<_ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h. */
31516 #include <sys/types.h>
31522 struct tm *tp; tp->tm_sec;
31527 rm -f conftest.$ac_objext
31528 if { (ac_try="$ac_compile"
31529 case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_compile") 2>conftest.er1
31536 grep -v '^ *+' conftest.er1 >conftest.err
31538 cat conftest.err >&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); } &&
31541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31542 { (case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_try") 2>&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; } &&
31551 { ac_try='test -s conftest.$ac_objext'
31552 { (case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557 (eval "$ac_try") 2>&5
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 ac_cv_struct_tm=time.h
31563 echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31566 ac_cv_struct_tm=sys/time.h
31569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31571 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31572 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31573 if test $ac_cv_struct_tm = sys/time.h; then
31575 cat >>confdefs.h <<\_ACEOF
31576 #define TM_IN_SYS_TIME 1
31581 { echo "$as_me:$LINENO: checking for int64_t" >&5
31582 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31583 if test "${ac_cv_type_int64_t+set}" = set; then
31584 echo $ECHO_N "(cached) $ECHO_C" >&6
31586 cat >conftest.$ac_ext <<_ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h. */
31592 $ac_includes_default
31593 typedef int64_t ac__type_new_;
31597 if ((ac__type_new_ *) 0)
31599 if (sizeof (ac__type_new_))
31605 rm -f conftest.$ac_objext
31606 if { (ac_try="$ac_compile"
31607 case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_compile") 2>conftest.er1
31614 grep -v '^ *+' conftest.er1 >conftest.err
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
31619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; } &&
31629 { ac_try='test -s conftest.$ac_objext'
31630 { (case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_try") 2>&5
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 ac_cv_type_int64_t=yes
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31644 ac_cv_type_int64_t=no
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31650 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31651 if test $ac_cv_type_int64_t = yes; then
31653 cat >>confdefs.h <<_ACEOF
31654 #define HAVE_INT64_T 1
31659 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31660 echo "$as_me: error: Type int64_t required but not found" >&2;}
31661 { (exit 1); exit 1; }; }
31664 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31665 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31666 if test "${ac_cv_type_uint64_t+set}" = set; then
31667 echo $ECHO_N "(cached) $ECHO_C" >&6
31669 cat >conftest.$ac_ext <<_ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h. */
31675 $ac_includes_default
31676 typedef uint64_t ac__type_new_;
31680 if ((ac__type_new_ *) 0)
31682 if (sizeof (ac__type_new_))
31688 rm -f conftest.$ac_objext
31689 if { (ac_try="$ac_compile"
31690 case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_compile") 2>conftest.er1
31697 grep -v '^ *+' conftest.er1 >conftest.err
31699 cat conftest.err >&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); } &&
31702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31703 { (case "(($ac_try" in
31704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705 *) ac_try_echo=$ac_try;;
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708 (eval "$ac_try") 2>&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; } &&
31712 { ac_try='test -s conftest.$ac_objext'
31713 { (case "(($ac_try" in
31714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715 *) ac_try_echo=$ac_try;;
31717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718 (eval "$ac_try") 2>&5
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); }; }; then
31722 ac_cv_type_uint64_t=yes
31724 echo "$as_me: failed program was:" >&5
31725 sed 's/^/| /' conftest.$ac_ext >&5
31727 ac_cv_type_uint64_t=no
31730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31732 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31733 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31734 if test $ac_cv_type_uint64_t = yes; then
31736 cat >>confdefs.h <<_ACEOF
31737 #define HAVE_UINT64_T 1
31742 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31743 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31744 if test "${ac_cv_type_u_int64_t+set}" = set; then
31745 echo $ECHO_N "(cached) $ECHO_C" >&6
31747 cat >conftest.$ac_ext <<_ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h. */
31753 $ac_includes_default
31754 typedef u_int64_t ac__type_new_;
31758 if ((ac__type_new_ *) 0)
31760 if (sizeof (ac__type_new_))
31766 rm -f conftest.$ac_objext
31767 if { (ac_try="$ac_compile"
31768 case "(($ac_try" in
31769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31770 *) ac_try_echo=$ac_try;;
31772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31773 (eval "$ac_compile") 2>conftest.er1
31775 grep -v '^ *+' conftest.er1 >conftest.err
31777 cat conftest.err >&5
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); } &&
31780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31781 { (case "(($ac_try" in
31782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783 *) ac_try_echo=$ac_try;;
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786 (eval "$ac_try") 2>&5
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; } &&
31790 { ac_try='test -s conftest.$ac_objext'
31791 { (case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_try") 2>&5
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); }; }; then
31800 ac_cv_type_u_int64_t=yes
31802 echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31805 ac_cv_type_u_int64_t=no
31808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31810 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31811 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31812 if test $ac_cv_type_u_int64_t = yes; then
31814 cat >>confdefs.h <<_ACEOF
31815 #define HAVE_U_INT64_T 1
31820 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31821 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31822 { (exit 1); exit 1; }; }
31836 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31844 cat >conftest.$ac_ext <<_ACEOF
31847 cat confdefs.h >>conftest.$ac_ext
31848 cat >>conftest.$ac_ext <<_ACEOF
31849 /* end confdefs.h. */
31850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31852 #define $ac_func innocuous_$ac_func
31854 /* System header to define __stub macros and hopefully few prototypes,
31855 which can conflict with char $ac_func (); below.
31856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31857 <limits.h> exists even on freestanding compilers. */
31860 # include <limits.h>
31862 # include <assert.h>
31867 /* Override any GCC internal prototype to avoid an error.
31868 Use char because int might match the return type of a GCC
31869 builtin and then its argument prototype would still apply. */
31874 /* The GNU C library defines this for functions which it implements
31875 to always fail with ENOSYS. Some functions are actually named
31876 something starting with __ and the normal name is an alias. */
31877 #if defined __stub_$ac_func || defined __stub___$ac_func
31884 return $ac_func ();
31889 rm -f conftest.$ac_objext conftest$ac_exeext
31890 if { (ac_try="$ac_link"
31891 case "(($ac_try" in
31892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893 *) ac_try_echo=$ac_try;;
31895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896 (eval "$ac_link") 2>conftest.er1
31898 grep -v '^ *+' conftest.er1 >conftest.err
31900 cat conftest.err >&5
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); } &&
31903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31904 { (case "(($ac_try" in
31905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906 *) ac_try_echo=$ac_try;;
31908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909 (eval "$ac_try") 2>&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; } &&
31913 { ac_try='test -s conftest$ac_exeext'
31914 { (case "(($ac_try" in
31915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916 *) ac_try_echo=$ac_try;;
31918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919 (eval "$ac_try") 2>&5
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; }; then
31923 eval "$as_ac_var=yes"
31925 echo "$as_me: failed program was:" >&5
31926 sed 's/^/| /' conftest.$ac_ext >&5
31928 eval "$as_ac_var=no"
31931 rm -f core conftest.err conftest.$ac_objext \
31932 conftest$ac_exeext conftest.$ac_ext
31934 ac_res=`eval echo '${'$as_ac_var'}'`
31935 { echo "$as_me:$LINENO: result: $ac_res" >&5
31936 echo "${ECHO_T}$ac_res" >&6; }
31937 if test `eval echo '${'$as_ac_var'}'` = yes; then
31938 cat >>confdefs.h <<_ACEOF
31939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31949 for ac_func in powf fmodf strtof round
31951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31955 echo $ECHO_N "(cached) $ECHO_C" >&6
31957 cat >conftest.$ac_ext <<_ACEOF
31960 cat confdefs.h >>conftest.$ac_ext
31961 cat >>conftest.$ac_ext <<_ACEOF
31962 /* end confdefs.h. */
31963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31965 #define $ac_func innocuous_$ac_func
31967 /* System header to define __stub macros and hopefully few prototypes,
31968 which can conflict with char $ac_func (); below.
31969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31970 <limits.h> exists even on freestanding compilers. */
31973 # include <limits.h>
31975 # include <assert.h>
31980 /* Override any GCC internal prototype to avoid an error.
31981 Use char because int might match the return type of a GCC
31982 builtin and then its argument prototype would still apply. */
31987 /* The GNU C library defines this for functions which it implements
31988 to always fail with ENOSYS. Some functions are actually named
31989 something starting with __ and the normal name is an alias. */
31990 #if defined __stub_$ac_func || defined __stub___$ac_func
31997 return $ac_func ();
32002 rm -f conftest.$ac_objext conftest$ac_exeext
32003 if { (ac_try="$ac_link"
32004 case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_link") 2>conftest.er1
32011 grep -v '^ *+' conftest.er1 >conftest.err
32013 cat conftest.err >&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); } &&
32016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32017 { (case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_try") 2>&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); }; } &&
32026 { ac_try='test -s conftest$ac_exeext'
32027 { (case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_try") 2>&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 eval "$as_ac_var=yes"
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32041 eval "$as_ac_var=no"
32044 rm -f core conftest.err conftest.$ac_objext \
32045 conftest$ac_exeext conftest.$ac_ext
32047 ac_res=`eval echo '${'$as_ac_var'}'`
32048 { echo "$as_me:$LINENO: result: $ac_res" >&5
32049 echo "${ECHO_T}$ac_res" >&6; }
32050 if test `eval echo '${'$as_ac_var'}'` = yes; then
32051 cat >>confdefs.h <<_ACEOF
32052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32063 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
32065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32071 cat >conftest.$ac_ext <<_ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h. */
32077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32079 #define $ac_func innocuous_$ac_func
32081 /* System header to define __stub macros and hopefully few prototypes,
32082 which can conflict with char $ac_func (); below.
32083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32084 <limits.h> exists even on freestanding compilers. */
32087 # include <limits.h>
32089 # include <assert.h>
32094 /* Override any GCC internal prototype to avoid an error.
32095 Use char because int might match the return type of a GCC
32096 builtin and then its argument prototype would still apply. */
32101 /* The GNU C library defines this for functions which it implements
32102 to always fail with ENOSYS. Some functions are actually named
32103 something starting with __ and the normal name is an alias. */
32104 #if defined __stub_$ac_func || defined __stub___$ac_func
32111 return $ac_func ();
32116 rm -f conftest.$ac_objext conftest$ac_exeext
32117 if { (ac_try="$ac_link"
32118 case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_link") 2>conftest.er1
32125 grep -v '^ *+' conftest.er1 >conftest.err
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); } &&
32130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32131 { (case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_try") 2>&5
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; } &&
32140 { ac_try='test -s conftest$ac_exeext'
32141 { (case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_try") 2>&5
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; }; then
32150 eval "$as_ac_var=yes"
32152 echo "$as_me: failed program was:" >&5
32153 sed 's/^/| /' conftest.$ac_ext >&5
32155 eval "$as_ac_var=no"
32158 rm -f core conftest.err conftest.$ac_objext \
32159 conftest$ac_exeext conftest.$ac_ext
32161 ac_res=`eval echo '${'$as_ac_var'}'`
32162 { echo "$as_me:$LINENO: result: $ac_res" >&5
32163 echo "${ECHO_T}$ac_res" >&6; }
32164 if test `eval echo '${'$as_ac_var'}'` = yes; then
32165 cat >>confdefs.h <<_ACEOF
32166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32175 for ac_func in isatty mkdtemp mkstemp
32177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32181 echo $ECHO_N "(cached) $ECHO_C" >&6
32183 cat >conftest.$ac_ext <<_ACEOF
32186 cat confdefs.h >>conftest.$ac_ext
32187 cat >>conftest.$ac_ext <<_ACEOF
32188 /* end confdefs.h. */
32189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32191 #define $ac_func innocuous_$ac_func
32193 /* System header to define __stub macros and hopefully few prototypes,
32194 which can conflict with char $ac_func (); below.
32195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32196 <limits.h> exists even on freestanding compilers. */
32199 # include <limits.h>
32201 # include <assert.h>
32206 /* Override any GCC internal prototype to avoid an error.
32207 Use char because int might match the return type of a GCC
32208 builtin and then its argument prototype would still apply. */
32213 /* The GNU C library defines this for functions which it implements
32214 to always fail with ENOSYS. Some functions are actually named
32215 something starting with __ and the normal name is an alias. */
32216 #if defined __stub_$ac_func || defined __stub___$ac_func
32223 return $ac_func ();
32228 rm -f conftest.$ac_objext conftest$ac_exeext
32229 if { (ac_try="$ac_link"
32230 case "(($ac_try" in
32231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232 *) ac_try_echo=$ac_try;;
32234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235 (eval "$ac_link") 2>conftest.er1
32237 grep -v '^ *+' conftest.er1 >conftest.err
32239 cat conftest.err >&5
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); } &&
32242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32243 { (case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_try") 2>&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); }; } &&
32252 { ac_try='test -s conftest$ac_exeext'
32253 { (case "(($ac_try" in
32254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255 *) ac_try_echo=$ac_try;;
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258 (eval "$ac_try") 2>&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); }; }; then
32262 eval "$as_ac_var=yes"
32264 echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32267 eval "$as_ac_var=no"
32270 rm -f core conftest.err conftest.$ac_objext \
32271 conftest$ac_exeext conftest.$ac_ext
32273 ac_res=`eval echo '${'$as_ac_var'}'`
32274 { echo "$as_me:$LINENO: result: $ac_res" >&5
32275 echo "${ECHO_T}$ac_res" >&6; }
32276 if test `eval echo '${'$as_ac_var'}'` = yes; then
32277 cat >>confdefs.h <<_ACEOF
32278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32289 for ac_func in mktemp realpath sbrk setrlimit strdup
32291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32295 echo $ECHO_N "(cached) $ECHO_C" >&6
32297 cat >conftest.$ac_ext <<_ACEOF
32300 cat confdefs.h >>conftest.$ac_ext
32301 cat >>conftest.$ac_ext <<_ACEOF
32302 /* end confdefs.h. */
32303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32305 #define $ac_func innocuous_$ac_func
32307 /* System header to define __stub macros and hopefully few prototypes,
32308 which can conflict with char $ac_func (); below.
32309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32310 <limits.h> exists even on freestanding compilers. */
32313 # include <limits.h>
32315 # include <assert.h>
32320 /* Override any GCC internal prototype to avoid an error.
32321 Use char because int might match the return type of a GCC
32322 builtin and then its argument prototype would still apply. */
32327 /* The GNU C library defines this for functions which it implements
32328 to always fail with ENOSYS. Some functions are actually named
32329 something starting with __ and the normal name is an alias. */
32330 #if defined __stub_$ac_func || defined __stub___$ac_func
32337 return $ac_func ();
32342 rm -f conftest.$ac_objext conftest$ac_exeext
32343 if { (ac_try="$ac_link"
32344 case "(($ac_try" in
32345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346 *) ac_try_echo=$ac_try;;
32348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349 (eval "$ac_link") 2>conftest.er1
32351 grep -v '^ *+' conftest.er1 >conftest.err
32353 cat conftest.err >&5
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } &&
32356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32357 { (case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_try") 2>&5
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; } &&
32366 { ac_try='test -s conftest$ac_exeext'
32367 { (case "(($ac_try" in
32368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369 *) ac_try_echo=$ac_try;;
32371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372 (eval "$ac_try") 2>&5
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); }; }; then
32376 eval "$as_ac_var=yes"
32378 echo "$as_me: failed program was:" >&5
32379 sed 's/^/| /' conftest.$ac_ext >&5
32381 eval "$as_ac_var=no"
32384 rm -f core conftest.err conftest.$ac_objext \
32385 conftest$ac_exeext conftest.$ac_ext
32387 ac_res=`eval echo '${'$as_ac_var'}'`
32388 { echo "$as_me:$LINENO: result: $ac_res" >&5
32389 echo "${ECHO_T}$ac_res" >&6; }
32390 if test `eval echo '${'$as_ac_var'}'` = yes; then
32391 cat >>confdefs.h <<_ACEOF
32392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32402 for ac_func in strerror strerror_r strerror_s setenv
32404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32410 cat >conftest.$ac_ext <<_ACEOF
32413 cat confdefs.h >>conftest.$ac_ext
32414 cat >>conftest.$ac_ext <<_ACEOF
32415 /* end confdefs.h. */
32416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32418 #define $ac_func innocuous_$ac_func
32420 /* System header to define __stub macros and hopefully few prototypes,
32421 which can conflict with char $ac_func (); below.
32422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32423 <limits.h> exists even on freestanding compilers. */
32426 # include <limits.h>
32428 # include <assert.h>
32433 /* Override any GCC internal prototype to avoid an error.
32434 Use char because int might match the return type of a GCC
32435 builtin and then its argument prototype would still apply. */
32440 /* The GNU C library defines this for functions which it implements
32441 to always fail with ENOSYS. Some functions are actually named
32442 something starting with __ and the normal name is an alias. */
32443 #if defined __stub_$ac_func || defined __stub___$ac_func
32450 return $ac_func ();
32455 rm -f conftest.$ac_objext conftest$ac_exeext
32456 if { (ac_try="$ac_link"
32457 case "(($ac_try" in
32458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32459 *) ac_try_echo=$ac_try;;
32461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32462 (eval "$ac_link") 2>conftest.er1
32464 grep -v '^ *+' conftest.er1 >conftest.err
32466 cat conftest.err >&5
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); } &&
32469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32470 { (case "(($ac_try" in
32471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472 *) ac_try_echo=$ac_try;;
32474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475 (eval "$ac_try") 2>&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; } &&
32479 { ac_try='test -s conftest$ac_exeext'
32480 { (case "(($ac_try" in
32481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482 *) ac_try_echo=$ac_try;;
32484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485 (eval "$ac_try") 2>&5
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); }; }; then
32489 eval "$as_ac_var=yes"
32491 echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32494 eval "$as_ac_var=no"
32497 rm -f core conftest.err conftest.$ac_objext \
32498 conftest$ac_exeext conftest.$ac_ext
32500 ac_res=`eval echo '${'$as_ac_var'}'`
32501 { echo "$as_me:$LINENO: result: $ac_res" >&5
32502 echo "${ECHO_T}$ac_res" >&6; }
32503 if test `eval echo '${'$as_ac_var'}'` = yes; then
32504 cat >>confdefs.h <<_ACEOF
32505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32515 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32521 echo $ECHO_N "(cached) $ECHO_C" >&6
32523 cat >conftest.$ac_ext <<_ACEOF
32526 cat confdefs.h >>conftest.$ac_ext
32527 cat >>conftest.$ac_ext <<_ACEOF
32528 /* end confdefs.h. */
32529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32531 #define $ac_func innocuous_$ac_func
32533 /* System header to define __stub macros and hopefully few prototypes,
32534 which can conflict with char $ac_func (); below.
32535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32536 <limits.h> exists even on freestanding compilers. */
32539 # include <limits.h>
32541 # include <assert.h>
32546 /* Override any GCC internal prototype to avoid an error.
32547 Use char because int might match the return type of a GCC
32548 builtin and then its argument prototype would still apply. */
32553 /* The GNU C library defines this for functions which it implements
32554 to always fail with ENOSYS. Some functions are actually named
32555 something starting with __ and the normal name is an alias. */
32556 #if defined __stub_$ac_func || defined __stub___$ac_func
32563 return $ac_func ();
32568 rm -f conftest.$ac_objext conftest$ac_exeext
32569 if { (ac_try="$ac_link"
32570 case "(($ac_try" in
32571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572 *) ac_try_echo=$ac_try;;
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575 (eval "$ac_link") 2>conftest.er1
32577 grep -v '^ *+' conftest.er1 >conftest.err
32579 cat conftest.err >&5
32580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581 (exit $ac_status); } &&
32582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32583 { (case "(($ac_try" in
32584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585 *) ac_try_echo=$ac_try;;
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_try") 2>&5
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); }; } &&
32592 { ac_try='test -s conftest$ac_exeext'
32593 { (case "(($ac_try" in
32594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595 *) ac_try_echo=$ac_try;;
32597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598 (eval "$ac_try") 2>&5
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; }; then
32602 eval "$as_ac_var=yes"
32604 echo "$as_me: failed program was:" >&5
32605 sed 's/^/| /' conftest.$ac_ext >&5
32607 eval "$as_ac_var=no"
32610 rm -f core conftest.err conftest.$ac_objext \
32611 conftest$ac_exeext conftest.$ac_ext
32613 ac_res=`eval echo '${'$as_ac_var'}'`
32614 { echo "$as_me:$LINENO: result: $ac_res" >&5
32615 echo "${ECHO_T}$ac_res" >&6; }
32616 if test `eval echo '${'$as_ac_var'}'` = yes; then
32617 cat >>confdefs.h <<_ACEOF
32618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32628 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32636 cat >conftest.$ac_ext <<_ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h. */
32642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32644 #define $ac_func innocuous_$ac_func
32646 /* System header to define __stub macros and hopefully few prototypes,
32647 which can conflict with char $ac_func (); below.
32648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32649 <limits.h> exists even on freestanding compilers. */
32652 # include <limits.h>
32654 # include <assert.h>
32659 /* Override any GCC internal prototype to avoid an error.
32660 Use char because int might match the return type of a GCC
32661 builtin and then its argument prototype would still apply. */
32666 /* The GNU C library defines this for functions which it implements
32667 to always fail with ENOSYS. Some functions are actually named
32668 something starting with __ and the normal name is an alias. */
32669 #if defined __stub_$ac_func || defined __stub___$ac_func
32676 return $ac_func ();
32681 rm -f conftest.$ac_objext conftest$ac_exeext
32682 if { (ac_try="$ac_link"
32683 case "(($ac_try" in
32684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685 *) ac_try_echo=$ac_try;;
32687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688 (eval "$ac_link") 2>conftest.er1
32690 grep -v '^ *+' conftest.er1 >conftest.err
32692 cat conftest.err >&5
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); } &&
32695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32696 { (case "(($ac_try" in
32697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698 *) ac_try_echo=$ac_try;;
32700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701 (eval "$ac_try") 2>&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; } &&
32705 { ac_try='test -s conftest$ac_exeext'
32706 { (case "(($ac_try" in
32707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708 *) ac_try_echo=$ac_try;;
32710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711 (eval "$ac_try") 2>&5
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; }; then
32715 eval "$as_ac_var=yes"
32717 echo "$as_me: failed program was:" >&5
32718 sed 's/^/| /' conftest.$ac_ext >&5
32720 eval "$as_ac_var=no"
32723 rm -f core conftest.err conftest.$ac_objext \
32724 conftest$ac_exeext conftest.$ac_ext
32726 ac_res=`eval echo '${'$as_ac_var'}'`
32727 { echo "$as_me:$LINENO: result: $ac_res" >&5
32728 echo "${ECHO_T}$ac_res" >&6; }
32729 if test `eval echo '${'$as_ac_var'}'` = yes; then
32730 cat >>confdefs.h <<_ACEOF
32731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32737 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32738 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32739 if test "${llvm_cv_c_printf_a+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32743 ac_cpp='$CPP $CPPFLAGS'
32744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32748 if test "$cross_compiling" = yes; then
32749 llvmac_cv_c_printf_a=no
32751 cat >conftest.$ac_ext <<_ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h. */
32760 #include <stdlib.h>
32766 volatile double A, B;
32770 sprintf(Buffer, "%a", A);
32774 if (A != 0x1.999999999999ap-4)
32781 rm -f conftest$ac_exeext
32782 if { (ac_try="$ac_link"
32783 case "(($ac_try" in
32784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_link") 2>&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32792 { (case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_try") 2>&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; }; then
32801 llvm_cv_c_printf_a=yes
32803 echo "$as_me: program exited with status $ac_status" >&5
32804 echo "$as_me: failed program was:" >&5
32805 sed 's/^/| /' conftest.$ac_ext >&5
32807 ( exit $ac_status )
32808 llvmac_cv_c_printf_a=no
32810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32815 ac_cpp='$CPP $CPPFLAGS'
32816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32821 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32822 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32823 if test "$llvm_cv_c_printf_a" = "yes"; then
32825 cat >>confdefs.h <<\_ACEOF
32826 #define HAVE_PRINTF_A 1
32831 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32832 # for constant arguments. Useless!
32833 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32834 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32835 if test "${ac_cv_working_alloca_h+set}" = set; then
32836 echo $ECHO_N "(cached) $ECHO_C" >&6
32838 cat >conftest.$ac_ext <<_ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h. */
32844 #include <alloca.h>
32848 char *p = (char *) alloca (2 * sizeof (int));
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (ac_try="$ac_link"
32856 case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_link") 2>conftest.er1
32863 grep -v '^ *+' conftest.er1 >conftest.err
32865 cat conftest.err >&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); } &&
32868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32869 { (case "(($ac_try" in
32870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_try") 2>&5
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest$ac_exeext'
32879 { (case "(($ac_try" in
32880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881 *) ac_try_echo=$ac_try;;
32883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_try") 2>&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
32888 ac_cv_working_alloca_h=yes
32890 echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32893 ac_cv_working_alloca_h=no
32896 rm -f core conftest.err conftest.$ac_objext \
32897 conftest$ac_exeext conftest.$ac_ext
32899 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32900 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32901 if test $ac_cv_working_alloca_h = yes; then
32903 cat >>confdefs.h <<\_ACEOF
32904 #define HAVE_ALLOCA_H 1
32909 { echo "$as_me:$LINENO: checking for alloca" >&5
32910 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32911 if test "${ac_cv_func_alloca_works+set}" = set; then
32912 echo $ECHO_N "(cached) $ECHO_C" >&6
32914 cat >conftest.$ac_ext <<_ACEOF
32917 cat confdefs.h >>conftest.$ac_ext
32918 cat >>conftest.$ac_ext <<_ACEOF
32919 /* end confdefs.h. */
32921 # define alloca __builtin_alloca
32924 # include <malloc.h>
32925 # define alloca _alloca
32928 # include <alloca.h>
32933 # ifndef alloca /* predefined by HP cc +Olibcalls */
32944 char *p = (char *) alloca (1);
32950 rm -f conftest.$ac_objext conftest$ac_exeext
32951 if { (ac_try="$ac_link"
32952 case "(($ac_try" in
32953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954 *) ac_try_echo=$ac_try;;
32956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957 (eval "$ac_link") 2>conftest.er1
32959 grep -v '^ *+' conftest.er1 >conftest.err
32961 cat conftest.err >&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); } &&
32964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32965 { (case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_try") 2>&5
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; } &&
32974 { ac_try='test -s conftest$ac_exeext'
32975 { (case "(($ac_try" in
32976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977 *) ac_try_echo=$ac_try;;
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980 (eval "$ac_try") 2>&5
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
32984 ac_cv_func_alloca_works=yes
32986 echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32989 ac_cv_func_alloca_works=no
32992 rm -f core conftest.err conftest.$ac_objext \
32993 conftest$ac_exeext conftest.$ac_ext
32995 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32996 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32998 if test $ac_cv_func_alloca_works = yes; then
33000 cat >>confdefs.h <<\_ACEOF
33001 #define HAVE_ALLOCA 1
33005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
33006 # that cause trouble. Some versions do not even contain alloca or
33007 # contain a buggy version. If you still want to use their alloca,
33008 # use ar to extract alloca.o from them instead of compiling alloca.c.
33010 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
33012 cat >>confdefs.h <<\_ACEOF
33017 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
33018 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
33019 if test "${ac_cv_os_cray+set}" = set; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33022 cat >conftest.$ac_ext <<_ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h. */
33028 #if defined CRAY && ! defined CRAY2
33035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33036 $EGREP "webecray" >/dev/null 2>&1; then
33044 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
33045 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
33046 if test $ac_cv_os_cray = yes; then
33047 for ac_func in _getb67 GETB67 getb67; do
33048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33052 echo $ECHO_N "(cached) $ECHO_C" >&6
33054 cat >conftest.$ac_ext <<_ACEOF
33057 cat confdefs.h >>conftest.$ac_ext
33058 cat >>conftest.$ac_ext <<_ACEOF
33059 /* end confdefs.h. */
33060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33062 #define $ac_func innocuous_$ac_func
33064 /* System header to define __stub macros and hopefully few prototypes,
33065 which can conflict with char $ac_func (); below.
33066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33067 <limits.h> exists even on freestanding compilers. */
33070 # include <limits.h>
33072 # include <assert.h>
33077 /* Override any GCC internal prototype to avoid an error.
33078 Use char because int might match the return type of a GCC
33079 builtin and then its argument prototype would still apply. */
33084 /* The GNU C library defines this for functions which it implements
33085 to always fail with ENOSYS. Some functions are actually named
33086 something starting with __ and the normal name is an alias. */
33087 #if defined __stub_$ac_func || defined __stub___$ac_func
33094 return $ac_func ();
33099 rm -f conftest.$ac_objext conftest$ac_exeext
33100 if { (ac_try="$ac_link"
33101 case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_link") 2>conftest.er1
33108 grep -v '^ *+' conftest.er1 >conftest.err
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } &&
33113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33114 { (case "(($ac_try" in
33115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116 *) ac_try_echo=$ac_try;;
33118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119 (eval "$ac_try") 2>&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; } &&
33123 { ac_try='test -s conftest$ac_exeext'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; }; then
33133 eval "$as_ac_var=yes"
33135 echo "$as_me: failed program was:" >&5
33136 sed 's/^/| /' conftest.$ac_ext >&5
33138 eval "$as_ac_var=no"
33141 rm -f core conftest.err conftest.$ac_objext \
33142 conftest$ac_exeext conftest.$ac_ext
33144 ac_res=`eval echo '${'$as_ac_var'}'`
33145 { echo "$as_me:$LINENO: result: $ac_res" >&5
33146 echo "${ECHO_T}$ac_res" >&6; }
33147 if test `eval echo '${'$as_ac_var'}'` = yes; then
33149 cat >>confdefs.h <<_ACEOF
33150 #define CRAY_STACKSEG_END $ac_func
33159 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33160 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33161 if test "${ac_cv_c_stack_direction+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33164 if test "$cross_compiling" = yes; then
33165 ac_cv_c_stack_direction=0
33167 cat >conftest.$ac_ext <<_ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h. */
33173 $ac_includes_default
33175 find_stack_direction ()
33177 static char *addr = 0;
33182 return find_stack_direction ();
33185 return (&dummy > addr) ? 1 : -1;
33191 return find_stack_direction () < 0;
33194 rm -f conftest$ac_exeext
33195 if { (ac_try="$ac_link"
33196 case "(($ac_try" in
33197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198 *) ac_try_echo=$ac_try;;
33200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201 (eval "$ac_link") 2>&5
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
33214 ac_cv_c_stack_direction=1
33216 echo "$as_me: program exited with status $ac_status" >&5
33217 echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33220 ( exit $ac_status )
33221 ac_cv_c_stack_direction=-1
33223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33228 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33229 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33231 cat >>confdefs.h <<_ACEOF
33232 #define STACK_DIRECTION $ac_cv_c_stack_direction
33239 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33240 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33241 if test "${ac_cv_func_rand48+set}" = set; then
33242 echo $ECHO_N "(cached) $ECHO_C" >&6
33245 ac_cpp='$CXXCPP $CPPFLAGS'
33246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33250 cat >conftest.$ac_ext <<_ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h. */
33256 #include <stdlib.h>
33260 srand48(0);lrand48();drand48();
33265 rm -f conftest.$ac_objext
33266 if { (ac_try="$ac_compile"
33267 case "(($ac_try" in
33268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33269 *) ac_try_echo=$ac_try;;
33271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272 (eval "$ac_compile") 2>conftest.er1
33274 grep -v '^ *+' conftest.er1 >conftest.err
33276 cat conftest.err >&5
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); } &&
33279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33280 { (case "(($ac_try" in
33281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33282 *) ac_try_echo=$ac_try;;
33284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285 (eval "$ac_try") 2>&5
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; } &&
33289 { ac_try='test -s conftest.$ac_objext'
33290 { (case "(($ac_try" in
33291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33292 *) ac_try_echo=$ac_try;;
33294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295 (eval "$ac_try") 2>&5
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; }; then
33299 ac_cv_func_rand48=yes
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33304 ac_cv_func_rand48=no
33307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33309 ac_cpp='$CPP $CPPFLAGS'
33310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33315 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33316 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33318 if test "$ac_cv_func_rand48" = "yes" ; then
33320 cat >>confdefs.h <<\_ACEOF
33321 #define HAVE_RAND48 1
33327 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33328 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33329 if test "${ac_cv_cxx_namespaces+set}" = set; then
33330 echo $ECHO_N "(cached) $ECHO_C" >&6
33333 ac_cpp='$CXXCPP $CPPFLAGS'
33334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33338 cat >conftest.$ac_ext <<_ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h. */
33344 namespace Outer { namespace Inner { int i = 0; }}
33348 using namespace Outer::Inner; return i;
33353 rm -f conftest.$ac_objext
33354 if { (ac_try="$ac_compile"
33355 case "(($ac_try" in
33356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357 *) ac_try_echo=$ac_try;;
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360 (eval "$ac_compile") 2>conftest.er1
33362 grep -v '^ *+' conftest.er1 >conftest.err
33364 cat conftest.err >&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } &&
33367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33368 { (case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_try") 2>&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); }; } &&
33377 { ac_try='test -s conftest.$ac_objext'
33378 { (case "(($ac_try" in
33379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380 *) ac_try_echo=$ac_try;;
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_try") 2>&5
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; }; then
33387 ac_cv_cxx_namespaces=yes
33389 echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33392 ac_cv_cxx_namespaces=no
33395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33397 ac_cpp='$CPP $CPPFLAGS'
33398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33404 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33405 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33406 if test "$ac_cv_cxx_namespaces" = yes; then
33408 cat >>confdefs.h <<\_ACEOF
33409 #define HAVE_NAMESPACES
33414 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33415 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33416 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33417 echo $ECHO_N "(cached) $ECHO_C" >&6
33421 ac_cpp='$CXXCPP $CPPFLAGS'
33422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33426 cat >conftest.$ac_ext <<_ACEOF
33429 cat confdefs.h >>conftest.$ac_ext
33430 cat >>conftest.$ac_ext <<_ACEOF
33431 /* end confdefs.h. */
33432 #include <iterator>
33433 #ifdef HAVE_NAMESPACES
33434 using namespace std;
33439 iterator<int,int,int> t; return 0;
33444 rm -f conftest.$ac_objext
33445 if { (ac_try="$ac_compile"
33446 case "(($ac_try" in
33447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448 *) ac_try_echo=$ac_try;;
33450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33451 (eval "$ac_compile") 2>conftest.er1
33453 grep -v '^ *+' conftest.er1 >conftest.err
33455 cat conftest.err >&5
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); } &&
33458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33459 { (case "(($ac_try" in
33460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461 *) ac_try_echo=$ac_try;;
33463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464 (eval "$ac_try") 2>&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); }; } &&
33468 { ac_try='test -s conftest.$ac_objext'
33469 { (case "(($ac_try" in
33470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471 *) ac_try_echo=$ac_try;;
33473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474 (eval "$ac_try") 2>&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; }; then
33478 ac_cv_cxx_have_std_iterator=yes
33480 echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33483 ac_cv_cxx_have_std_iterator=no
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33488 ac_cpp='$CPP $CPPFLAGS'
33489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33495 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33496 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33497 if test "$ac_cv_cxx_have_std_iterator" = yes
33500 cat >>confdefs.h <<\_ACEOF
33501 #define HAVE_STD_ITERATOR 1
33506 cat >>confdefs.h <<\_ACEOF
33507 #define HAVE_STD_ITERATOR 0
33512 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33513 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33514 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33515 echo $ECHO_N "(cached) $ECHO_C" >&6
33519 ac_cpp='$CXXCPP $CPPFLAGS'
33520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33524 cat >conftest.$ac_ext <<_ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h. */
33530 #include <iterator>
33531 #ifdef HAVE_NAMESPACES
33532 using namespace std;
33537 bidirectional_iterator<int,int> t; return 0;
33542 rm -f conftest.$ac_objext
33543 if { (ac_try="$ac_compile"
33544 case "(($ac_try" in
33545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546 *) ac_try_echo=$ac_try;;
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549 (eval "$ac_compile") 2>conftest.er1
33551 grep -v '^ *+' conftest.er1 >conftest.err
33553 cat conftest.err >&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); } &&
33556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; } &&
33566 { ac_try='test -s conftest.$ac_objext'
33567 { (case "(($ac_try" in
33568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569 *) ac_try_echo=$ac_try;;
33571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572 (eval "$ac_try") 2>&5
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); }; }; then
33576 ac_cv_cxx_have_bi_iterator=yes
33578 echo "$as_me: failed program was:" >&5
33579 sed 's/^/| /' conftest.$ac_ext >&5
33581 ac_cv_cxx_have_bi_iterator=no
33584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33586 ac_cpp='$CPP $CPPFLAGS'
33587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33593 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33594 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33595 if test "$ac_cv_cxx_have_bi_iterator" = yes
33598 cat >>confdefs.h <<\_ACEOF
33599 #define HAVE_BI_ITERATOR 1
33604 cat >>confdefs.h <<\_ACEOF
33605 #define HAVE_BI_ITERATOR 0
33610 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33611 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33612 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33617 ac_cpp='$CXXCPP $CPPFLAGS'
33618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33622 cat >conftest.$ac_ext <<_ACEOF
33625 cat confdefs.h >>conftest.$ac_ext
33626 cat >>conftest.$ac_ext <<_ACEOF
33627 /* end confdefs.h. */
33628 #include <iterator>
33629 #ifdef HAVE_NAMESPACES
33630 using namespace std;
33635 forward_iterator<int,int> t; return 0;
33640 rm -f conftest.$ac_objext
33641 if { (ac_try="$ac_compile"
33642 case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_compile") 2>conftest.er1
33649 grep -v '^ *+' conftest.er1 >conftest.err
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } &&
33654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33655 { (case "(($ac_try" in
33656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657 *) ac_try_echo=$ac_try;;
33659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660 (eval "$ac_try") 2>&5
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); }; } &&
33664 { ac_try='test -s conftest.$ac_objext'
33665 { (case "(($ac_try" in
33666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33667 *) ac_try_echo=$ac_try;;
33669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33670 (eval "$ac_try") 2>&5
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
33674 ac_cv_cxx_have_fwd_iterator=yes
33676 echo "$as_me: failed program was:" >&5
33677 sed 's/^/| /' conftest.$ac_ext >&5
33679 ac_cv_cxx_have_fwd_iterator=no
33682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33684 ac_cpp='$CPP $CPPFLAGS'
33685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33691 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33692 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33693 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33696 cat >>confdefs.h <<\_ACEOF
33697 #define HAVE_FWD_ITERATOR 1
33702 cat >>confdefs.h <<\_ACEOF
33703 #define HAVE_FWD_ITERATOR 0
33709 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33710 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33711 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33712 echo $ECHO_N "(cached) $ECHO_C" >&6
33715 ac_cpp='$CXXCPP $CPPFLAGS'
33716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33720 cat >conftest.$ac_ext <<_ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33735 rm -f conftest.$ac_objext
33736 if { (ac_try="$ac_compile"
33737 case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_compile") 2>conftest.er1
33744 grep -v '^ *+' conftest.er1 >conftest.err
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest.$ac_objext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
33769 ac_cv_func_isnan_in_math_h=yes
33771 echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33774 ac_cv_func_isnan_in_math_h=no
33777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33779 ac_cpp='$CPP $CPPFLAGS'
33780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33785 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33786 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33789 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33791 cat >>confdefs.h <<\_ACEOF
33792 #define HAVE_ISNAN_IN_MATH_H 1
33797 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33798 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33799 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33800 echo $ECHO_N "(cached) $ECHO_C" >&6
33803 ac_cpp='$CXXCPP $CPPFLAGS'
33804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33808 cat >conftest.$ac_ext <<_ACEOF
33811 cat confdefs.h >>conftest.$ac_ext
33812 cat >>conftest.$ac_ext <<_ACEOF
33813 /* end confdefs.h. */
33823 rm -f conftest.$ac_objext
33824 if { (ac_try="$ac_compile"
33825 case "(($ac_try" in
33826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827 *) ac_try_echo=$ac_try;;
33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830 (eval "$ac_compile") 2>conftest.er1
33832 grep -v '^ *+' conftest.er1 >conftest.err
33834 cat conftest.err >&5
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 (exit $ac_status); } &&
33837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33838 { (case "(($ac_try" in
33839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840 *) ac_try_echo=$ac_try;;
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843 (eval "$ac_try") 2>&5
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); }; } &&
33847 { ac_try='test -s conftest.$ac_objext'
33848 { (case "(($ac_try" in
33849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33850 *) ac_try_echo=$ac_try;;
33852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33853 (eval "$ac_try") 2>&5
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); }; }; then
33857 ac_cv_func_isnan_in_cmath=yes
33859 echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33862 ac_cv_func_isnan_in_cmath=no
33865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33867 ac_cpp='$CPP $CPPFLAGS'
33868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33873 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33874 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33876 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33878 cat >>confdefs.h <<\_ACEOF
33879 #define HAVE_ISNAN_IN_CMATH 1
33884 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33885 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33886 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
33890 ac_cpp='$CXXCPP $CPPFLAGS'
33891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33895 cat >conftest.$ac_ext <<_ACEOF
33898 cat confdefs.h >>conftest.$ac_ext
33899 cat >>conftest.$ac_ext <<_ACEOF
33900 /* end confdefs.h. */
33905 float f; std::isnan(f);
33910 rm -f conftest.$ac_objext
33911 if { (ac_try="$ac_compile"
33912 case "(($ac_try" in
33913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33914 *) ac_try_echo=$ac_try;;
33916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33917 (eval "$ac_compile") 2>conftest.er1
33919 grep -v '^ *+' conftest.er1 >conftest.err
33921 cat conftest.err >&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); } &&
33924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33925 { (case "(($ac_try" in
33926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33927 *) ac_try_echo=$ac_try;;
33929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33930 (eval "$ac_try") 2>&5
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; } &&
33934 { ac_try='test -s conftest.$ac_objext'
33935 { (case "(($ac_try" in
33936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33937 *) ac_try_echo=$ac_try;;
33939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33940 (eval "$ac_try") 2>&5
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); }; }; then
33944 ac_cv_func_std_isnan_in_cmath=yes
33946 echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33949 ac_cv_func_std_isnan_in_cmath=no
33952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33954 ac_cpp='$CPP $CPPFLAGS'
33955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33960 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33961 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33963 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33965 cat >>confdefs.h <<\_ACEOF
33966 #define HAVE_STD_ISNAN_IN_CMATH 1
33972 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33973 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33974 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33975 echo $ECHO_N "(cached) $ECHO_C" >&6
33978 ac_cpp='$CXXCPP $CPPFLAGS'
33979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33983 cat >conftest.$ac_ext <<_ACEOF
33986 cat confdefs.h >>conftest.$ac_ext
33987 cat >>conftest.$ac_ext <<_ACEOF
33988 /* end confdefs.h. */
33998 rm -f conftest.$ac_objext
33999 if { (ac_try="$ac_compile"
34000 case "(($ac_try" in
34001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002 *) ac_try_echo=$ac_try;;
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005 (eval "$ac_compile") 2>conftest.er1
34007 grep -v '^ *+' conftest.er1 >conftest.err
34009 cat conftest.err >&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); } &&
34012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34013 { (case "(($ac_try" in
34014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34015 *) ac_try_echo=$ac_try;;
34017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34018 (eval "$ac_try") 2>&5
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; } &&
34022 { ac_try='test -s conftest.$ac_objext'
34023 { (case "(($ac_try" in
34024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34025 *) ac_try_echo=$ac_try;;
34027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34028 (eval "$ac_try") 2>&5
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); }; }; then
34032 ac_cv_func_isinf_in_math_h=yes
34034 echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34037 ac_cv_func_isinf_in_math_h=no
34040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34042 ac_cpp='$CPP $CPPFLAGS'
34043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34048 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
34049 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
34051 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
34053 cat >>confdefs.h <<\_ACEOF
34054 #define HAVE_ISINF_IN_MATH_H 1
34059 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
34060 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
34061 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34065 ac_cpp='$CXXCPP $CPPFLAGS'
34066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34070 cat >conftest.$ac_ext <<_ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h. */
34085 rm -f conftest.$ac_objext
34086 if { (ac_try="$ac_compile"
34087 case "(($ac_try" in
34088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34089 *) ac_try_echo=$ac_try;;
34091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34092 (eval "$ac_compile") 2>conftest.er1
34094 grep -v '^ *+' conftest.er1 >conftest.err
34096 cat conftest.err >&5
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); } &&
34099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34100 { (case "(($ac_try" in
34101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102 *) ac_try_echo=$ac_try;;
34104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105 (eval "$ac_try") 2>&5
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } &&
34109 { ac_try='test -s conftest.$ac_objext'
34110 { (case "(($ac_try" in
34111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34112 *) ac_try_echo=$ac_try;;
34114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34115 (eval "$ac_try") 2>&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); }; }; then
34119 ac_cv_func_isinf_in_cmath=yes
34121 echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34124 ac_cv_func_isinf_in_cmath=no
34127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34129 ac_cpp='$CPP $CPPFLAGS'
34130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34135 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34136 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34138 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34140 cat >>confdefs.h <<\_ACEOF
34141 #define HAVE_ISINF_IN_CMATH 1
34146 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34147 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34148 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34149 echo $ECHO_N "(cached) $ECHO_C" >&6
34152 ac_cpp='$CXXCPP $CPPFLAGS'
34153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34157 cat >conftest.$ac_ext <<_ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h. */
34167 float f; std::isinf(f)}
34172 rm -f conftest.$ac_objext
34173 if { (ac_try="$ac_compile"
34174 case "(($ac_try" in
34175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176 *) ac_try_echo=$ac_try;;
34178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179 (eval "$ac_compile") 2>conftest.er1
34181 grep -v '^ *+' conftest.er1 >conftest.err
34183 cat conftest.err >&5
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); } &&
34186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34187 { (case "(($ac_try" in
34188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34189 *) ac_try_echo=$ac_try;;
34191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34192 (eval "$ac_try") 2>&5
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); }; } &&
34196 { ac_try='test -s conftest.$ac_objext'
34197 { (case "(($ac_try" in
34198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199 *) ac_try_echo=$ac_try;;
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202 (eval "$ac_try") 2>&5
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; }; then
34206 ac_cv_func_std_isinf_in_cmath=yes
34208 echo "$as_me: failed program was:" >&5
34209 sed 's/^/| /' conftest.$ac_ext >&5
34211 ac_cv_func_std_isinf_in_cmath=no
34214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34216 ac_cpp='$CPP $CPPFLAGS'
34217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34222 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34223 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34225 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34227 cat >>confdefs.h <<\_ACEOF
34228 #define HAVE_STD_ISINF_IN_CMATH 1
34233 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34234 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34235 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34236 echo $ECHO_N "(cached) $ECHO_C" >&6
34239 ac_cpp='$CXXCPP $CPPFLAGS'
34240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34244 cat >conftest.$ac_ext <<_ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34250 #include <ieeefp.h>
34254 float f; finite(f);
34259 rm -f conftest.$ac_objext
34260 if { (ac_try="$ac_compile"
34261 case "(($ac_try" in
34262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34263 *) ac_try_echo=$ac_try;;
34265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34266 (eval "$ac_compile") 2>conftest.er1
34268 grep -v '^ *+' conftest.er1 >conftest.err
34270 cat conftest.err >&5
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); } &&
34273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34274 { (case "(($ac_try" in
34275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276 *) ac_try_echo=$ac_try;;
34278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279 (eval "$ac_try") 2>&5
34281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282 (exit $ac_status); }; } &&
34283 { ac_try='test -s conftest.$ac_objext'
34284 { (case "(($ac_try" in
34285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286 *) ac_try_echo=$ac_try;;
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289 (eval "$ac_try") 2>&5
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); }; }; then
34293 ac_cv_func_finite_in_ieeefp_h=yes
34295 echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34298 ac_cv_func_finite_in_ieeefp_h=no
34301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34303 ac_cpp='$CPP $CPPFLAGS'
34304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34309 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34310 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34312 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34314 cat >>confdefs.h <<\_ACEOF
34315 #define HAVE_FINITE_IN_IEEEFP_H 1
34322 if test "$llvm_cv_platform_type" = "Unix" ; then
34325 for ac_header in stdlib.h unistd.h
34327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34332 echo $ECHO_N "(cached) $ECHO_C" >&6
34334 ac_res=`eval echo '${'$as_ac_Header'}'`
34335 { echo "$as_me:$LINENO: result: $ac_res" >&5
34336 echo "${ECHO_T}$ac_res" >&6; }
34338 # Is the header compilable?
34339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34341 cat >conftest.$ac_ext <<_ACEOF
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h. */
34347 $ac_includes_default
34348 #include <$ac_header>
34350 rm -f conftest.$ac_objext
34351 if { (ac_try="$ac_compile"
34352 case "(($ac_try" in
34353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354 *) ac_try_echo=$ac_try;;
34356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357 (eval "$ac_compile") 2>conftest.er1
34359 grep -v '^ *+' conftest.er1 >conftest.err
34361 cat conftest.err >&5
34362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34363 (exit $ac_status); } &&
34364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34365 { (case "(($ac_try" in
34366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34367 *) ac_try_echo=$ac_try;;
34369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34370 (eval "$ac_try") 2>&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); }; } &&
34374 { ac_try='test -s conftest.$ac_objext'
34375 { (case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_try") 2>&5
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; }; then
34384 ac_header_compiler=yes
34386 echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34389 ac_header_compiler=no
34392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34394 echo "${ECHO_T}$ac_header_compiler" >&6; }
34396 # Is the header present?
34397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34399 cat >conftest.$ac_ext <<_ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h. */
34405 #include <$ac_header>
34407 if { (ac_try="$ac_cpp conftest.$ac_ext"
34408 case "(($ac_try" in
34409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34410 *) ac_try_echo=$ac_try;;
34412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34415 grep -v '^ *+' conftest.er1 >conftest.err
34417 cat conftest.err >&5
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); } >/dev/null; then
34420 if test -s conftest.err; then
34421 ac_cpp_err=$ac_c_preproc_warn_flag
34422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34429 if test -z "$ac_cpp_err"; then
34430 ac_header_preproc=yes
34432 echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34435 ac_header_preproc=no
34438 rm -f conftest.err conftest.$ac_ext
34439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34440 echo "${ECHO_T}$ac_header_preproc" >&6; }
34442 # So? What about this header?
34443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34449 ac_header_preproc=yes
34452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34465 ## ----------------------------------- ##
34466 ## Report this to llvmbugs@cs.uiuc.edu ##
34467 ## ----------------------------------- ##
34469 ) | sed "s/^/$as_me: WARNING: /" >&2
34472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34475 echo $ECHO_N "(cached) $ECHO_C" >&6
34477 eval "$as_ac_Header=\$ac_header_preproc"
34479 ac_res=`eval echo '${'$as_ac_Header'}'`
34480 { echo "$as_me:$LINENO: result: $ac_res" >&5
34481 echo "${ECHO_T}$ac_res" >&6; }
34484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34485 cat >>confdefs.h <<_ACEOF
34486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34494 for ac_func in getpagesize
34496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34500 echo $ECHO_N "(cached) $ECHO_C" >&6
34502 cat >conftest.$ac_ext <<_ACEOF
34505 cat confdefs.h >>conftest.$ac_ext
34506 cat >>conftest.$ac_ext <<_ACEOF
34507 /* end confdefs.h. */
34508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34510 #define $ac_func innocuous_$ac_func
34512 /* System header to define __stub macros and hopefully few prototypes,
34513 which can conflict with char $ac_func (); below.
34514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34515 <limits.h> exists even on freestanding compilers. */
34518 # include <limits.h>
34520 # include <assert.h>
34525 /* Override any GCC internal prototype to avoid an error.
34526 Use char because int might match the return type of a GCC
34527 builtin and then its argument prototype would still apply. */
34532 /* The GNU C library defines this for functions which it implements
34533 to always fail with ENOSYS. Some functions are actually named
34534 something starting with __ and the normal name is an alias. */
34535 #if defined __stub_$ac_func || defined __stub___$ac_func
34542 return $ac_func ();
34547 rm -f conftest.$ac_objext conftest$ac_exeext
34548 if { (ac_try="$ac_link"
34549 case "(($ac_try" in
34550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34551 *) ac_try_echo=$ac_try;;
34553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34554 (eval "$ac_link") 2>conftest.er1
34556 grep -v '^ *+' conftest.er1 >conftest.err
34558 cat conftest.err >&5
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); } &&
34561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34562 { (case "(($ac_try" in
34563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34564 *) ac_try_echo=$ac_try;;
34566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34567 (eval "$ac_try") 2>&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; } &&
34571 { ac_try='test -s conftest$ac_exeext'
34572 { (case "(($ac_try" in
34573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574 *) ac_try_echo=$ac_try;;
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577 (eval "$ac_try") 2>&5
34579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 (exit $ac_status); }; }; then
34581 eval "$as_ac_var=yes"
34583 echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34586 eval "$as_ac_var=no"
34589 rm -f core conftest.err conftest.$ac_objext \
34590 conftest$ac_exeext conftest.$ac_ext
34592 ac_res=`eval echo '${'$as_ac_var'}'`
34593 { echo "$as_me:$LINENO: result: $ac_res" >&5
34594 echo "${ECHO_T}$ac_res" >&6; }
34595 if test `eval echo '${'$as_ac_var'}'` = yes; then
34596 cat >>confdefs.h <<_ACEOF
34597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34603 { echo "$as_me:$LINENO: checking for working mmap" >&5
34604 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34605 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34606 echo $ECHO_N "(cached) $ECHO_C" >&6
34608 if test "$cross_compiling" = yes; then
34609 ac_cv_func_mmap_fixed_mapped=no
34611 cat >conftest.$ac_ext <<_ACEOF
34614 cat confdefs.h >>conftest.$ac_ext
34615 cat >>conftest.$ac_ext <<_ACEOF
34616 /* end confdefs.h. */
34617 $ac_includes_default
34618 /* malloc might have been renamed as rpl_malloc. */
34621 /* Thanks to Mike Haertel and Jim Avera for this test.
34622 Here is a matrix of mmap possibilities:
34623 mmap private not fixed
34624 mmap private fixed at somewhere currently unmapped
34625 mmap private fixed at somewhere already mapped
34626 mmap shared not fixed
34627 mmap shared fixed at somewhere currently unmapped
34628 mmap shared fixed at somewhere already mapped
34629 For private mappings, we should verify that changes cannot be read()
34630 back from the file, nor mmap's back from the file at a different
34631 address. (There have been systems where private was not correctly
34632 implemented like the infamous i386 svr4.0, and systems where the
34633 VM page cache was not coherent with the file system buffer cache
34634 like early versions of FreeBSD and possibly contemporary NetBSD.)
34635 For shared mappings, we should conversely verify that changes get
34636 propagated back to all the places they're supposed to be.
34638 Grep wants private fixed already mapped.
34639 The main things grep needs to know about mmap are:
34640 * does it exist and is it safe to write into the mmap'd area
34641 * how to use it (BSD variants) */
34644 #include <sys/mman.h>
34646 #if !STDC_HEADERS && !HAVE_STDLIB_H
34650 /* This mess was copied from the GNU getpagesize.h. */
34651 #if !HAVE_GETPAGESIZE
34652 /* Assume that all systems that can run configure have sys/param.h. */
34653 # if !HAVE_SYS_PARAM_H
34654 # define HAVE_SYS_PARAM_H 1
34657 # ifdef _SC_PAGESIZE
34658 # define getpagesize() sysconf(_SC_PAGESIZE)
34659 # else /* no _SC_PAGESIZE */
34660 # if HAVE_SYS_PARAM_H
34661 # include <sys/param.h>
34662 # ifdef EXEC_PAGESIZE
34663 # define getpagesize() EXEC_PAGESIZE
34664 # else /* no EXEC_PAGESIZE */
34666 # define getpagesize() NBPG * CLSIZE
34669 # endif /* no CLSIZE */
34670 # else /* no NBPG */
34672 # define getpagesize() NBPC
34673 # else /* no NBPC */
34675 # define getpagesize() PAGESIZE
34676 # endif /* PAGESIZE */
34677 # endif /* no NBPC */
34678 # endif /* no NBPG */
34679 # endif /* no EXEC_PAGESIZE */
34680 # else /* no HAVE_SYS_PARAM_H */
34681 # define getpagesize() 8192 /* punt totally */
34682 # endif /* no HAVE_SYS_PARAM_H */
34683 # endif /* no _SC_PAGESIZE */
34685 #endif /* no HAVE_GETPAGESIZE */
34690 char *data, *data2, *data3;
34694 pagesize = getpagesize ();
34696 /* First, make a file with some known garbage in it. */
34697 data = (char *) malloc (pagesize);
34700 for (i = 0; i < pagesize; ++i)
34701 *(data + i) = rand ();
34703 fd = creat ("conftest.mmap", 0600);
34706 if (write (fd, data, pagesize) != pagesize)
34710 /* Next, try to mmap the file at a fixed address which already has
34711 something else allocated at it. If we can, also make sure that
34712 we see the same garbage. */
34713 fd = open ("conftest.mmap", O_RDWR);
34716 data2 = (char *) malloc (2 * pagesize);
34719 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34720 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34721 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34723 for (i = 0; i < pagesize; ++i)
34724 if (*(data + i) != *(data2 + i))
34727 /* Finally, make sure that changes to the mapped area do not
34728 percolate back to the file as seen by read(). (This is a bug on
34729 some variants of i386 svr4.0.) */
34730 for (i = 0; i < pagesize; ++i)
34731 *(data2 + i) = *(data2 + i) + 1;
34732 data3 = (char *) malloc (pagesize);
34735 if (read (fd, data3, pagesize) != pagesize)
34737 for (i = 0; i < pagesize; ++i)
34738 if (*(data + i) != *(data3 + i))
34744 rm -f conftest$ac_exeext
34745 if { (ac_try="$ac_link"
34746 case "(($ac_try" in
34747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34748 *) ac_try_echo=$ac_try;;
34750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34751 (eval "$ac_link") 2>&5
34753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34755 { (case "(($ac_try" in
34756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757 *) ac_try_echo=$ac_try;;
34759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760 (eval "$ac_try") 2>&5
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; }; then
34764 ac_cv_func_mmap_fixed_mapped=yes
34766 echo "$as_me: program exited with status $ac_status" >&5
34767 echo "$as_me: failed program was:" >&5
34768 sed 's/^/| /' conftest.$ac_ext >&5
34770 ( exit $ac_status )
34771 ac_cv_func_mmap_fixed_mapped=no
34773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34778 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34779 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34780 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34782 cat >>confdefs.h <<\_ACEOF
34783 #define HAVE_MMAP 1
34787 rm -f conftest.mmap
34789 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34790 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34791 if test "${ac_cv_func_mmap_file+set}" = set; then
34792 echo $ECHO_N "(cached) $ECHO_C" >&6
34795 ac_cpp='$CPP $CPPFLAGS'
34796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34800 if test "$cross_compiling" = yes; then
34801 ac_cv_func_mmap_file=no
34803 cat >conftest.$ac_ext <<_ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h. */
34811 #include <sys/types.h>
34812 #include <sys/mman.h>
34820 fd = creat ("foo",0777);
34821 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34823 return (fd != (int) MAP_FAILED);
34828 rm -f conftest$ac_exeext
34829 if { (ac_try="$ac_link"
34830 case "(($ac_try" in
34831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34832 *) ac_try_echo=$ac_try;;
34834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34835 (eval "$ac_link") 2>&5
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34839 { (case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_try") 2>&5
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; }; then
34848 ac_cv_func_mmap_file=yes
34850 echo "$as_me: program exited with status $ac_status" >&5
34851 echo "$as_me: failed program was:" >&5
34852 sed 's/^/| /' conftest.$ac_ext >&5
34854 ( exit $ac_status )
34855 ac_cv_func_mmap_file=no
34857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34862 ac_cpp='$CPP $CPPFLAGS'
34863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34869 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34870 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34871 if test "$ac_cv_func_mmap_file" = yes; then
34873 cat >>confdefs.h <<\_ACEOF
34874 #define HAVE_MMAP_FILE
34881 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34882 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34883 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34884 echo $ECHO_N "(cached) $ECHO_C" >&6
34886 if test "$llvm_cv_os_type" = "Interix" ; then
34887 ac_cv_need_dev_zero_for_mmap=yes
34889 ac_cv_need_dev_zero_for_mmap=no
34893 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34894 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34895 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34897 cat >>confdefs.h <<\_ACEOF
34898 #define NEED_DEV_ZERO_FOR_MMAP 1
34903 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34905 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34906 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34908 if test "$ac_cv_func_mmap_file" = "no"
34910 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34911 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34915 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34916 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34917 cat >conftest.$ac_ext <<_ACEOF
34920 cat confdefs.h >>conftest.$ac_ext
34921 cat >>conftest.$ac_ext <<_ACEOF
34922 /* end confdefs.h. */
34924 volatile unsigned long val = 1;
34925 __sync_synchronize();
34926 __sync_val_compare_and_swap(&val, 1, 0);
34927 __sync_add_and_fetch(&val, 1);
34928 __sync_sub_and_fetch(&val, 1);
34933 rm -f conftest.$ac_objext conftest$ac_exeext
34934 if { (ac_try="$ac_link"
34935 case "(($ac_try" in
34936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937 *) ac_try_echo=$ac_try;;
34939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34940 (eval "$ac_link") 2>conftest.er1
34942 grep -v '^ *+' conftest.er1 >conftest.err
34944 cat conftest.err >&5
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); } &&
34947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34948 { (case "(($ac_try" in
34949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34950 *) ac_try_echo=$ac_try;;
34952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34953 (eval "$ac_try") 2>&5
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); }; } &&
34957 { ac_try='test -s conftest$ac_exeext'
34958 { (case "(($ac_try" in
34959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34960 *) ac_try_echo=$ac_try;;
34962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34963 (eval "$ac_try") 2>&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); }; }; then
34967 { echo "$as_me:$LINENO: result: yes" >&5
34968 echo "${ECHO_T}yes" >&6; }
34970 cat >>confdefs.h <<\_ACEOF
34971 #define LLVM_MULTITHREADED 1
34975 echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34978 { echo "$as_me:$LINENO: result: no" >&5
34979 echo "${ECHO_T}no" >&6; }
34981 cat >>confdefs.h <<\_ACEOF
34982 #define LLVM_MULTITHREADED 0
34985 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34986 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34989 rm -f core conftest.err conftest.$ac_objext \
34990 conftest$ac_exeext conftest.$ac_ext
34995 for ac_func in __dso_handle
34997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35001 echo $ECHO_N "(cached) $ECHO_C" >&6
35003 cat >conftest.$ac_ext <<_ACEOF
35006 cat confdefs.h >>conftest.$ac_ext
35007 cat >>conftest.$ac_ext <<_ACEOF
35008 /* end confdefs.h. */
35009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35011 #define $ac_func innocuous_$ac_func
35013 /* System header to define __stub macros and hopefully few prototypes,
35014 which can conflict with char $ac_func (); below.
35015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35016 <limits.h> exists even on freestanding compilers. */
35019 # include <limits.h>
35021 # include <assert.h>
35026 /* Override any GCC internal prototype to avoid an error.
35027 Use char because int might match the return type of a GCC
35028 builtin and then its argument prototype would still apply. */
35033 /* The GNU C library defines this for functions which it implements
35034 to always fail with ENOSYS. Some functions are actually named
35035 something starting with __ and the normal name is an alias. */
35036 #if defined __stub_$ac_func || defined __stub___$ac_func
35043 return $ac_func ();
35048 rm -f conftest.$ac_objext conftest$ac_exeext
35049 if { (ac_try="$ac_link"
35050 case "(($ac_try" in
35051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35052 *) ac_try_echo=$ac_try;;
35054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35055 (eval "$ac_link") 2>conftest.er1
35057 grep -v '^ *+' conftest.er1 >conftest.err
35059 cat conftest.err >&5
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 (exit $ac_status); } &&
35062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35063 { (case "(($ac_try" in
35064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35065 *) ac_try_echo=$ac_try;;
35067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35068 (eval "$ac_try") 2>&5
35070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071 (exit $ac_status); }; } &&
35072 { ac_try='test -s conftest$ac_exeext'
35073 { (case "(($ac_try" in
35074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35075 *) ac_try_echo=$ac_try;;
35077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35078 (eval "$ac_try") 2>&5
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); }; }; then
35082 eval "$as_ac_var=yes"
35084 echo "$as_me: failed program was:" >&5
35085 sed 's/^/| /' conftest.$ac_ext >&5
35087 eval "$as_ac_var=no"
35090 rm -f core conftest.err conftest.$ac_objext \
35091 conftest$ac_exeext conftest.$ac_ext
35093 ac_res=`eval echo '${'$as_ac_var'}'`
35094 { echo "$as_me:$LINENO: result: $ac_res" >&5
35095 echo "${ECHO_T}$ac_res" >&6; }
35096 if test `eval echo '${'$as_ac_var'}'` = yes; then
35097 cat >>confdefs.h <<_ACEOF
35098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35105 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35106 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35107 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35108 echo $ECHO_N "(cached) $ECHO_C" >&6
35110 llvm_cv_llvmgcc_sanity="no"
35111 if test -x "$LLVMGCC" ; then
35112 cp /dev/null conftest.c
35113 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35114 grep 'target datalayout =' > /dev/null 2>&1
35115 if test $? -eq 0 ; then
35116 llvm_cv_llvmgcc_sanity="yes"
35121 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35122 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35124 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35125 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35126 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35127 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35128 LLVMCC1=$llvmcc1path
35130 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35131 LLVMCC1PLUS=$llvmcc1pluspath
35133 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35134 LLVMGCCDIR=$llvmgccdir
35136 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35137 LLVMGCCLIBEXEC=$llvmgcclibexec
35139 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35140 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35141 LLVMGCC_VERSION=$llvmgccversion
35143 LLVMGCC_MAJVERS=$llvmgccmajvers
35145 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35146 LLVMGCC_LANGS=$llvmgcclangs
35148 { echo "$as_me:$LINENO: result: ok" >&5
35149 echo "${ECHO_T}ok" >&6; }
35152 SHLIBEXT=$libltdl_cv_shlibext
35155 # Translate the various configuration directories and other basic
35156 # information into substitutions that will end up in Makefile.config.in
35157 # that these configured values can be used by the makefiles
35158 if test "${prefix}" = "NONE" ; then
35159 prefix="/usr/local"
35161 eval LLVM_PREFIX="${prefix}";
35162 eval LLVM_BINDIR="${prefix}/bin";
35163 eval LLVM_LIBDIR="${prefix}/lib";
35164 eval LLVM_DATADIR="${prefix}/share/llvm";
35165 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35166 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35167 eval LLVM_INCLUDEDIR="${prefix}/include";
35168 eval LLVM_INFODIR="${prefix}/info";
35169 eval LLVM_MANDIR="${prefix}/man";
35170 LLVM_CONFIGTIME=`date`
35182 # Place the various directores into the config.h file as #defines so that we
35183 # can know about the installation paths within LLVM.
35185 cat >>confdefs.h <<_ACEOF
35186 #define LLVM_PREFIX "$LLVM_PREFIX"
35190 cat >>confdefs.h <<_ACEOF
35191 #define LLVM_BINDIR "$LLVM_BINDIR"
35195 cat >>confdefs.h <<_ACEOF
35196 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35200 cat >>confdefs.h <<_ACEOF
35201 #define LLVM_DATADIR "$LLVM_DATADIR"
35205 cat >>confdefs.h <<_ACEOF
35206 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35210 cat >>confdefs.h <<_ACEOF
35211 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35215 cat >>confdefs.h <<_ACEOF
35216 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35220 cat >>confdefs.h <<_ACEOF
35221 #define LLVM_INFODIR "$LLVM_INFODIR"
35225 cat >>confdefs.h <<_ACEOF
35226 #define LLVM_MANDIR "$LLVM_MANDIR"
35230 cat >>confdefs.h <<_ACEOF
35231 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35235 cat >>confdefs.h <<_ACEOF
35236 #define LLVM_HOSTTRIPLE "$host"
35240 # Determine which bindings to build.
35241 if test "$BINDINGS_TO_BUILD" = auto ; then
35242 BINDINGS_TO_BUILD=""
35243 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35244 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35247 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35250 # This isn't really configurey, but it avoids having to repeat the list in
35255 # Do any work necessary to ensure that bindings have what they need.
35256 binding_prereqs_failed=0
35257 for a_binding in $BINDINGS_TO_BUILD ; do
35258 case "$a_binding" in
35260 if test "x$OCAMLC" = x ; then
35261 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35262 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35263 binding_prereqs_failed=1
35265 if test "x$OCAMLDEP" = x ; then
35266 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35267 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35268 binding_prereqs_failed=1
35270 if test "x$OCAMLOPT" = x ; then
35271 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35272 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35274 if test "x$with_ocaml_libdir" != xauto ; then
35275 OCAML_LIBDIR=$with_ocaml_libdir
35278 ocaml_stdlib="`"$OCAMLC" -where`"
35279 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35281 # ocaml stdlib is beneath our prefix; use stdlib
35282 OCAML_LIBDIR=$ocaml_stdlib
35285 # ocaml stdlib is outside our prefix; use libdir/ocaml
35286 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35293 if test "$binding_prereqs_failed" = 1 ; then
35294 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35295 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35296 { (exit 1); exit 1; }; }
35299 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35300 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35301 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35302 echo $ECHO_N "(cached) $ECHO_C" >&6
35305 ac_cpp='$CXXCPP $CPPFLAGS'
35306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35310 oldcxxflags="$CXXFLAGS"
35311 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35312 cat >conftest.$ac_ext <<_ACEOF
35315 cat confdefs.h >>conftest.$ac_ext
35316 cat >>conftest.$ac_ext <<_ACEOF
35317 /* end confdefs.h. */
35327 rm -f conftest.$ac_objext
35328 if { (ac_try="$ac_compile"
35329 case "(($ac_try" in
35330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35331 *) ac_try_echo=$ac_try;;
35333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35334 (eval "$ac_compile") 2>conftest.er1
35336 grep -v '^ *+' conftest.er1 >conftest.err
35338 cat conftest.err >&5
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); } &&
35341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35342 { (case "(($ac_try" in
35343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344 *) ac_try_echo=$ac_try;;
35346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347 (eval "$ac_try") 2>&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest.$ac_objext'
35352 { (case "(($ac_try" in
35353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354 *) ac_try_echo=$ac_try;;
35356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35357 (eval "$ac_try") 2>&5
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; }; then
35361 llvm_cv_cxx_visibility_inlines_hidden=yes
35363 echo "$as_me: failed program was:" >&5
35364 sed 's/^/| /' conftest.$ac_ext >&5
35366 llvm_cv_cxx_visibility_inlines_hidden=no
35369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35370 CXXFLAGS="$oldcxxflags"
35372 ac_cpp='$CPP $CPPFLAGS'
35373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35379 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35380 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35381 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35382 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35385 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35390 if test "$llvm_cv_link_use_r" = "yes" ; then
35397 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35398 RDYNAMIC="-Wl,-export-dynamic"
35405 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35407 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35409 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35411 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35413 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35416 ac_config_files="$ac_config_files Makefile.config"
35419 ac_config_files="$ac_config_files llvm.spec"
35422 ac_config_files="$ac_config_files docs/doxygen.cfg"
35425 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35428 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35431 ac_config_commands="$ac_config_commands setup"
35433 ac_config_commands="$ac_config_commands Makefile"
35436 ac_config_commands="$ac_config_commands Makefile.common"
35439 ac_config_commands="$ac_config_commands examples/Makefile"
35442 ac_config_commands="$ac_config_commands lib/Makefile"
35445 ac_config_commands="$ac_config_commands runtime/Makefile"
35448 ac_config_commands="$ac_config_commands test/Makefile"
35451 ac_config_commands="$ac_config_commands test/Makefile.tests"
35454 ac_config_commands="$ac_config_commands unittests/Makefile"
35457 ac_config_commands="$ac_config_commands tools/Makefile"
35460 ac_config_commands="$ac_config_commands utils/Makefile"
35463 ac_config_commands="$ac_config_commands projects/Makefile"
35466 ac_config_commands="$ac_config_commands bindings/Makefile"
35469 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35473 cat >confcache <<\_ACEOF
35474 # This file is a shell script that caches the results of configure
35475 # tests run on this system so they can be shared between configure
35476 # scripts and configure runs, see configure's option --config-cache.
35477 # It is not useful on other systems. If it contains results you don't
35478 # want to keep, you may remove or edit it.
35480 # config.status only pays attention to the cache file if you give it
35481 # the --recheck option to rerun configure.
35483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35485 # following values.
35489 # The following way of writing the cache mishandles newlines in values,
35490 # but we know of no workaround that is simple, portable, and efficient.
35491 # So, we kill variables containing newlines.
35492 # Ultrix sh set writes to stderr and can't be redirected directly,
35493 # and sets the high bit in the cache file unless we assign to the vars.
35495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35496 eval ac_val=\$$ac_var
35500 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35501 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35504 _ | IFS | as_nl) ;; #(
35505 *) $as_unset $ac_var ;;
35511 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35512 *${as_nl}ac_space=\ *)
35513 # `set' does not quote correctly, so add quotes (double-quote
35514 # substitution turns \\\\ into \\, and sed turns \\ into \).
35517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35520 # `set' quotes correctly as required by POSIX, so do not add quotes.
35521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35532 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35534 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35535 if test -w "$cache_file"; then
35536 test "x$cache_file" != "x/dev/null" &&
35537 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35538 echo "$as_me: updating cache $cache_file" >&6;}
35539 cat confcache >$cache_file
35541 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35542 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35548 # Let make expand exec_prefix.
35549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35551 DEFS=-DHAVE_CONFIG_H
35555 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35556 # 1. Remove the extension, and $U if already installed.
35557 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35558 ac_i=`echo "$ac_i" | sed "$ac_script"`
35559 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35560 # will be set to the directory where LIBOBJS objects are built.
35561 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35562 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35564 LIBOBJS=$ac_libobjs
35566 LTLIBOBJS=$ac_ltlibobjs
35569 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35570 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35571 Usually this means the macro was only invoked conditionally." >&5
35572 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35573 Usually this means the macro was only invoked conditionally." >&2;}
35574 { (exit 1); exit 1; }; }
35576 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35577 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35578 Usually this means the macro was only invoked conditionally." >&5
35579 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35580 Usually this means the macro was only invoked conditionally." >&2;}
35581 { (exit 1); exit 1; }; }
35584 : ${CONFIG_STATUS=./config.status}
35585 ac_clean_files_save=$ac_clean_files
35586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35587 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35588 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35589 cat >$CONFIG_STATUS <<_ACEOF
35591 # Generated by $as_me.
35592 # Run this file to recreate the current configuration.
35593 # Compiler output produced by configure, useful for debugging
35594 # configure, is in config.log if it exists.
35597 ac_cs_recheck=false
35599 SHELL=\${CONFIG_SHELL-$SHELL}
35602 cat >>$CONFIG_STATUS <<\_ACEOF
35603 ## --------------------- ##
35604 ## M4sh Initialization. ##
35605 ## --------------------- ##
35607 # Be Bourne compatible
35608 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35611 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35612 # is contrary to our usage. Disable this feature.
35613 alias -g '${1+"$@"}'='"$@"'
35614 setopt NO_GLOB_SUBST
35616 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35618 BIN_SH=xpg4; export BIN_SH # for Tru64
35619 DUALCASE=1; export DUALCASE # for MKS sh
35623 # Avoid depending upon Character Ranges.
35624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35627 as_cr_digits='0123456789'
35628 as_cr_alnum=$as_cr_Letters$as_cr_digits
35630 # The user is always right.
35631 if test "${PATH_SEPARATOR+set}" != set; then
35632 echo "#! /bin/sh" >conf$$.sh
35633 echo "exit 0" >>conf$$.sh
35635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35643 # Support unset when possible.
35644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35652 # We need space, tab and new line, in precisely that order. Quoting is
35653 # there to prevent editors from complaining about space-tab.
35654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35655 # splitting by setting IFS to empty value.)
35660 # Find who we are. Look in the path if we contain no directory separator.
35662 *[\\/]* ) as_myself=$0 ;;
35663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35664 for as_dir in $PATH
35667 test -z "$as_dir" && as_dir=.
35668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35674 # We did not find ourselves, most probably we were run as `sh COMMAND'
35675 # in which case we are not to be found in the path.
35676 if test "x$as_myself" = x; then
35679 if test ! -f "$as_myself"; then
35680 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35681 { (exit 1); exit 1; }
35684 # Work around bugs in pre-3.0 UWIN ksh.
35685 for as_var in ENV MAIL MAILPATH
35686 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35694 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35695 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35696 LC_TELEPHONE LC_TIME
35698 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35699 eval $as_var=C; export $as_var
35701 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35705 # Required to use basename.
35706 if expr a : '\(a\)' >/dev/null 2>&1 &&
35707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35714 as_basename=basename
35720 # Name of the executable.
35721 as_me=`$as_basename -- "$0" ||
35722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35723 X"$0" : 'X\(//\)$' \| \
35724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35726 sed '/^.*\/\([^/][^/]*\)\/*$/{
35745 as_lineno_1=$LINENO
35746 as_lineno_2=$LINENO
35747 test "x$as_lineno_1" != "x$as_lineno_2" &&
35748 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35750 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35751 # uniformly replaced by the line number. The first 'sed' inserts a
35752 # line-number line after each line using $LINENO; the second 'sed'
35753 # does the real work. The second script uses 'N' to pair each
35754 # line-number line with the line containing $LINENO, and appends
35755 # trailing '-' during substitution so that $LINENO is not a special
35756 # case at line end.
35757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35758 # scripts with optimization help from Paolo Bonzini. Blame Lee
35759 # E. McMahon (1931-1989) for sed's syntax. :-)
35771 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35774 ' >$as_me.lineno &&
35775 chmod +x "$as_me.lineno" ||
35776 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35777 { (exit 1); exit 1; }; }
35779 # Don't try to exec as it changes $[0], causing all sort of problems
35780 # (the dirname of $[0] is not the place where we might find the
35781 # original and so on. Autoconf is especially sensitive to this).
35782 . "./$as_me.lineno"
35783 # Exit status is that of the last command.
35788 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35794 ECHO_C= ECHO_N= ECHO_T=
35795 case `echo -n x` in
35797 case `echo 'x\c'` in
35798 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35805 if expr a : '\(a\)' >/dev/null 2>&1 &&
35806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35812 rm -f conf$$ conf$$.exe conf$$.file
35813 if test -d conf$$.dir; then
35814 rm -f conf$$.dir/conf$$.file
35820 if ln -s conf$$.file conf$$ 2>/dev/null; then
35822 # ... but there are two gotchas:
35823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35825 # In both cases, we have to default to `cp -p'.
35826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35828 elif ln conf$$.file conf$$ 2>/dev/null; then
35833 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35834 rmdir conf$$.dir 2>/dev/null
35836 if mkdir -p . 2>/dev/null; then
35839 test -d ./-p && rmdir ./-p
35843 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35844 # systems may use methods other than mode bits to determine executability.
35845 cat >conf$$.file <<_ASEOF
35849 chmod +x conf$$.file
35850 if test -x conf$$.file >/dev/null 2>&1; then
35851 as_executable_p="test -x"
35857 # Sed expression to map a string onto a valid CPP name.
35858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35860 # Sed expression to map a string onto a valid variable name.
35861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35866 # Save the log message, to keep $[0] and so on meaningful, and to
35867 # report actual input values of CONFIG_FILES etc. instead of their
35868 # values after options handling.
35870 This file was extended by llvm $as_me 2.7svn, which was
35871 generated by GNU Autoconf 2.60. Invocation command line was
35873 CONFIG_FILES = $CONFIG_FILES
35874 CONFIG_HEADERS = $CONFIG_HEADERS
35875 CONFIG_LINKS = $CONFIG_LINKS
35876 CONFIG_COMMANDS = $CONFIG_COMMANDS
35879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35884 cat >>$CONFIG_STATUS <<_ACEOF
35885 # Files that config.status was made for.
35886 config_files="$ac_config_files"
35887 config_headers="$ac_config_headers"
35888 config_commands="$ac_config_commands"
35892 cat >>$CONFIG_STATUS <<\_ACEOF
35894 \`$as_me' instantiates files from templates according to the
35895 current configuration.
35897 Usage: $0 [OPTIONS] [FILE]...
35899 -h, --help print this help, then exit
35900 -V, --version print version number, then exit
35901 -q, --quiet do not print progress messages
35902 -d, --debug don't remove temporary files
35903 --recheck update $as_me by reconfiguring in the same conditions
35904 --file=FILE[:TEMPLATE]
35905 instantiate the configuration file FILE
35906 --header=FILE[:TEMPLATE]
35907 instantiate the configuration header FILE
35909 Configuration files:
35912 Configuration headers:
35915 Configuration commands:
35918 Report bugs to <bug-autoconf@gnu.org>."
35921 cat >>$CONFIG_STATUS <<_ACEOF
35923 llvm config.status 2.7svn
35924 configured by $0, generated by GNU Autoconf 2.60,
35925 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35927 Copyright (C) 2006 Free Software Foundation, Inc.
35928 This config.status script is free software; the Free Software Foundation
35929 gives unlimited permission to copy, distribute and modify it."
35936 cat >>$CONFIG_STATUS <<\_ACEOF
35937 # If no file are specified by the user, then we need to provide default
35938 # value. By we need to know if files were specified by the user.
35944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35945 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35956 # Handling of the options.
35957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35959 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35960 echo "$ac_cs_version"; exit ;;
35961 --debug | --debu | --deb | --de | --d | -d )
35963 --file | --fil | --fi | --f )
35965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35966 ac_need_defaults=false;;
35967 --header | --heade | --head | --hea )
35969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35970 ac_need_defaults=false;;
35972 # Conflict between --help and --header
35973 { echo "$as_me: error: ambiguous option: $1
35974 Try \`$0 --help' for more information." >&2
35975 { (exit 1); exit 1; }; };;
35976 --help | --hel | -h )
35977 echo "$ac_cs_usage"; exit ;;
35978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35982 # This is an error.
35983 -*) { echo "$as_me: error: unrecognized option: $1
35984 Try \`$0 --help' for more information." >&2
35985 { (exit 1); exit 1; }; } ;;
35987 *) ac_config_targets="$ac_config_targets $1"
35988 ac_need_defaults=false ;;
35994 ac_configure_extra_args=
35996 if $ac_cs_silent; then
35998 ac_configure_extra_args="$ac_configure_extra_args --silent"
36002 cat >>$CONFIG_STATUS <<_ACEOF
36003 if \$ac_cs_recheck; then
36004 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36005 CONFIG_SHELL=$SHELL
36006 export CONFIG_SHELL
36007 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36011 cat >>$CONFIG_STATUS <<\_ACEOF
36015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36016 ## Running $as_me. ##
36022 cat >>$CONFIG_STATUS <<_ACEOF
36026 llvm_src="${srcdir}"
36030 cat >>$CONFIG_STATUS <<\_ACEOF
36032 # Handling of arguments.
36033 for ac_config_target in $ac_config_targets
36035 case $ac_config_target in
36036 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
36037 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36038 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
36039 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
36040 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
36041 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36042 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36043 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
36044 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
36045 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36046 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36047 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36048 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36049 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36050 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36051 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36052 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36053 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
36054 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
36055 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36056 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36057 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
36058 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36059 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
36061 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36062 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36063 { (exit 1); exit 1; }; };;
36068 # If the user did not use the arguments to specify the items to instantiate,
36069 # then the envvar interface is used. Set only those that are not.
36070 # We use the long form for the default assignment because of an extremely
36071 # bizarre bug on SunOS 4.1.3.
36072 if $ac_need_defaults; then
36073 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36074 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36075 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36078 # Have a temporary directory for convenience. Make it in the build tree
36079 # simply because there is no reason against having it here, and in addition,
36080 # creating and moving files from /tmp can sometimes cause problems.
36081 # Hook for its removal unless debugging.
36082 # Note that there is a small window in which the directory will not be cleaned:
36083 # after its creation but before its name has been assigned to `$tmp'.
36087 trap 'exit_status=$?
36088 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36090 trap '{ (exit 1); exit 1; }' 1 2 13 15
36092 # Create a (secure) tmp directory for tmp files.
36095 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36096 test -n "$tmp" && test -d "$tmp"
36099 tmp=./conf$$-$RANDOM
36100 (umask 077 && mkdir "$tmp")
36103 echo "$me: cannot create a temporary directory in ." >&2
36104 { (exit 1); exit 1; }
36108 # Set up the sed scripts for CONFIG_FILES section.
36111 # No need to generate the scripts if there are no CONFIG_FILES.
36112 # This happens for instance when ./config.status config.h
36113 if test -n "$CONFIG_FILES"; then
36120 for ac_last_try in false false false false false :; do
36121 cat >conf$$subs.sed <<_ACEOF
36122 SHELL!$SHELL$ac_delim
36123 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36124 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36125 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36126 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36127 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36128 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36129 exec_prefix!$exec_prefix$ac_delim
36130 prefix!$prefix$ac_delim
36131 program_transform_name!$program_transform_name$ac_delim
36132 bindir!$bindir$ac_delim
36133 sbindir!$sbindir$ac_delim
36134 libexecdir!$libexecdir$ac_delim
36135 datarootdir!$datarootdir$ac_delim
36136 datadir!$datadir$ac_delim
36137 sysconfdir!$sysconfdir$ac_delim
36138 sharedstatedir!$sharedstatedir$ac_delim
36139 localstatedir!$localstatedir$ac_delim
36140 includedir!$includedir$ac_delim
36141 oldincludedir!$oldincludedir$ac_delim
36142 docdir!$docdir$ac_delim
36143 infodir!$infodir$ac_delim
36144 htmldir!$htmldir$ac_delim
36145 dvidir!$dvidir$ac_delim
36146 pdfdir!$pdfdir$ac_delim
36147 psdir!$psdir$ac_delim
36148 libdir!$libdir$ac_delim
36149 localedir!$localedir$ac_delim
36150 mandir!$mandir$ac_delim
36151 DEFS!$DEFS$ac_delim
36152 ECHO_C!$ECHO_C$ac_delim
36153 ECHO_N!$ECHO_N$ac_delim
36154 ECHO_T!$ECHO_T$ac_delim
36155 LIBS!$LIBS$ac_delim
36156 build_alias!$build_alias$ac_delim
36157 host_alias!$host_alias$ac_delim
36158 target_alias!$target_alias$ac_delim
36159 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36160 subdirs!$subdirs$ac_delim
36161 build!$build$ac_delim
36162 build_cpu!$build_cpu$ac_delim
36163 build_vendor!$build_vendor$ac_delim
36164 build_os!$build_os$ac_delim
36165 host!$host$ac_delim
36166 host_cpu!$host_cpu$ac_delim
36167 host_vendor!$host_vendor$ac_delim
36168 host_os!$host_os$ac_delim
36169 target!$target$ac_delim
36170 target_cpu!$target_cpu$ac_delim
36171 target_vendor!$target_vendor$ac_delim
36172 target_os!$target_os$ac_delim
36174 HOST_OS!$HOST_OS$ac_delim
36175 TARGET_OS!$TARGET_OS$ac_delim
36176 LINKALL!$LINKALL$ac_delim
36177 NOLINKALL!$NOLINKALL$ac_delim
36178 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36179 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36181 CFLAGS!$CFLAGS$ac_delim
36182 LDFLAGS!$LDFLAGS$ac_delim
36183 CPPFLAGS!$CPPFLAGS$ac_delim
36184 ac_ct_CC!$ac_ct_CC$ac_delim
36185 EXEEXT!$EXEEXT$ac_delim
36186 OBJEXT!$OBJEXT$ac_delim
36187 ARCH!$ARCH$ac_delim
36188 ENDIAN!$ENDIAN$ac_delim
36190 GREP!$GREP$ac_delim
36191 EGREP!$EGREP$ac_delim
36192 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36193 BUILD_CC!$BUILD_CC$ac_delim
36194 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36195 BUILD_CXX!$BUILD_CXX$ac_delim
36196 CVSBUILD!$CVSBUILD$ac_delim
36197 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36198 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36199 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36200 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36201 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36202 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36203 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36205 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36206 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36207 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36208 ENABLE_PIC!$ENABLE_PIC$ac_delim
36209 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36210 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36211 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36212 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36213 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36214 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36215 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36216 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36217 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36221 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36223 elif $ac_last_try; then
36224 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36225 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36226 { (exit 1); exit 1; }; }
36228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36232 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36233 if test -n "$ac_eof"; then
36234 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36235 ac_eof=`expr $ac_eof + 1`
36238 cat >>$CONFIG_STATUS <<_ACEOF
36239 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36243 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36244 s/^/s,@/; s/!/@,|#_!!_#|/
36247 s/'"$ac_delim"'$/,g/; t
36249 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36250 ' >>$CONFIG_STATUS <conf$$subs.sed
36251 rm -f conf$$subs.sed
36252 cat >>$CONFIG_STATUS <<_ACEOF
36258 for ac_last_try in false false false false false :; do
36259 cat >conf$$subs.sed <<_ACEOF
36260 CXXFLAGS!$CXXFLAGS$ac_delim
36261 ac_ct_CXX!$ac_ct_CXX$ac_delim
36263 ifGNUmake!$ifGNUmake$ac_delim
36264 LN_S!$LN_S$ac_delim
36267 DATE!$DATE$ac_delim
36268 FIND!$FIND$ac_delim
36269 MKDIR!$MKDIR$ac_delim
36271 RANLIB!$RANLIB$ac_delim
36275 BINPWD!$BINPWD$ac_delim
36276 GRAPHVIZ!$GRAPHVIZ$ac_delim
36279 NEATO!$NEATO$ac_delim
36280 TWOPI!$TWOPI$ac_delim
36281 CIRCO!$CIRCO$ac_delim
36283 DOTTY!$DOTTY$ac_delim
36284 PERL!$PERL$ac_delim
36285 HAVE_PERL!$HAVE_PERL$ac_delim
36286 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36287 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36288 INSTALL_DATA!$INSTALL_DATA$ac_delim
36289 BZIP2!$BZIP2$ac_delim
36290 DOXYGEN!$DOXYGEN$ac_delim
36291 GROFF!$GROFF$ac_delim
36292 GZIP!$GZIP$ac_delim
36293 POD2HTML!$POD2HTML$ac_delim
36294 POD2MAN!$POD2MAN$ac_delim
36295 RUNTEST!$RUNTEST$ac_delim
36296 TCLSH!$TCLSH$ac_delim
36298 OCAMLC!$OCAMLC$ac_delim
36299 OCAMLOPT!$OCAMLOPT$ac_delim
36300 OCAMLDEP!$OCAMLDEP$ac_delim
36301 OCAMLDOC!$OCAMLDOC$ac_delim
36303 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36304 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36305 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36306 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36307 LIBADD_DL!$LIBADD_DL$ac_delim
36308 ECHO!$ECHO$ac_delim
36310 STRIP!$STRIP$ac_delim
36311 CXXCPP!$CXXCPP$ac_delim
36313 FFLAGS!$FFLAGS$ac_delim
36314 ac_ct_F77!$ac_ct_F77$ac_delim
36315 LIBTOOL!$LIBTOOL$ac_delim
36316 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36317 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36318 LLVMGCC!$LLVMGCC$ac_delim
36319 LLVMGXX!$LLVMGXX$ac_delim
36320 USE_UDIS86!$USE_UDIS86$ac_delim
36321 USE_OPROFILE!$USE_OPROFILE$ac_delim
36322 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36323 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36324 ALLOCA!$ALLOCA$ac_delim
36325 MMAP_FILE!$MMAP_FILE$ac_delim
36326 LLVMCC1!$LLVMCC1$ac_delim
36327 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36328 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36329 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36330 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36331 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36332 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36333 SHLIBEXT!$SHLIBEXT$ac_delim
36334 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36335 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36336 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36337 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36338 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36339 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36340 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36341 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36342 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36343 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36344 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36345 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36346 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36347 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36348 RPATH!$RPATH$ac_delim
36349 RDYNAMIC!$RDYNAMIC$ac_delim
36350 LIBOBJS!$LIBOBJS$ac_delim
36351 LTLIBOBJS!$LTLIBOBJS$ac_delim
36354 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36356 elif $ac_last_try; then
36357 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36358 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36359 { (exit 1); exit 1; }; }
36361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36365 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36366 if test -n "$ac_eof"; then
36367 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36368 ac_eof=`expr $ac_eof + 1`
36371 cat >>$CONFIG_STATUS <<_ACEOF
36372 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36376 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36377 s/^/s,@/; s/!/@,|#_!!_#|/
36380 s/'"$ac_delim"'$/,g/; t
36382 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36383 ' >>$CONFIG_STATUS <conf$$subs.sed
36384 rm -f conf$$subs.sed
36385 cat >>$CONFIG_STATUS <<_ACEOF
36392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36394 # trailing colons and then remove the whole line if VPATH becomes empty
36395 # (actually we leave an empty line to preserve line numbers).
36396 if test "x$srcdir" = x.; then
36397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36398 s/:*\$(srcdir):*/:/
36399 s/:*\${srcdir}:*/:/
36401 s/^\([^=]*=[ ]*\):*/\1/
36407 cat >>$CONFIG_STATUS <<\_ACEOF
36408 fi # test -n "$CONFIG_FILES"
36411 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36414 :[FHLC]) ac_mode=$ac_tag; continue;;
36416 case $ac_mode$ac_tag in
36418 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36419 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36420 { (exit 1); exit 1; }; };;
36421 :[FH]-) ac_tag=-:-;;
36422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36439 -) ac_f="$tmp/stdin";;
36440 *) # Look for the file first in the build tree, then in the source tree
36441 # (if the path is not absolute). The absolute path cannot be DOS-style,
36442 # because $ac_f cannot contain `:'.
36446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36448 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36449 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36450 { (exit 1); exit 1; }; };;
36452 ac_file_inputs="$ac_file_inputs $ac_f"
36455 # Let's still pretend it is `configure' which instantiates (i.e., don't
36456 # use $as_me), people would be surprised to read:
36457 # /* config.h. Generated by config.status. */
36458 configure_input="Generated from "`IFS=:
36459 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36460 if test x"$ac_file" != x-; then
36461 configure_input="$ac_file. $configure_input"
36462 { echo "$as_me:$LINENO: creating $ac_file" >&5
36463 echo "$as_me: creating $ac_file" >&6;}
36467 *:-:* | *:-) cat >"$tmp/stdin";;
36472 ac_dir=`$as_dirname -- "$ac_file" ||
36473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36474 X"$ac_file" : 'X\(//\)[^/]' \| \
36475 X"$ac_file" : 'X\(//\)$' \| \
36476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36482 /^X\(\/\/\)[^/].*/{
36497 -*) as_dir=./$as_dir;;
36499 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36503 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36504 *) as_qdir=$as_dir;;
36506 as_dirs="'$as_qdir' $as_dirs"
36507 as_dir=`$as_dirname -- "$as_dir" ||
36508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36509 X"$as_dir" : 'X\(//\)[^/]' \| \
36510 X"$as_dir" : 'X\(//\)$' \| \
36511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36517 /^X\(\/\/\)[^/].*/{
36530 test -d "$as_dir" && break
36532 test -z "$as_dirs" || eval "mkdir $as_dirs"
36533 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36534 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36535 { (exit 1); exit 1; }; }; }
36539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36542 # A ".." for each directory in $ac_dir_suffix.
36543 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36544 case $ac_top_builddir_sub in
36545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36549 ac_abs_top_builddir=$ac_pwd
36550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36551 # for backward compatibility:
36552 ac_top_builddir=$ac_top_build_prefix
36555 .) # We are building in place.
36557 ac_top_srcdir=$ac_top_builddir_sub
36558 ac_abs_top_srcdir=$ac_pwd ;;
36559 [\\/]* | ?:[\\/]* ) # Absolute name.
36560 ac_srcdir=$srcdir$ac_dir_suffix;
36561 ac_top_srcdir=$srcdir
36562 ac_abs_top_srcdir=$srcdir ;;
36563 *) # Relative name.
36564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36565 ac_top_srcdir=$ac_top_build_prefix$srcdir
36566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36579 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36583 cat >>$CONFIG_STATUS <<\_ACEOF
36584 # If the template does not know about datarootdir, expand it.
36585 # FIXME: This hack should be removed a few years after 2.60.
36586 ac_datarootdir_hack=; ac_datarootdir_seen=
36588 case `sed -n '/datarootdir/ {
36597 ' $ac_file_inputs` in
36598 *datarootdir*) ac_datarootdir_seen=yes;;
36599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36600 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36601 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36603 cat >>$CONFIG_STATUS <<_ACEOF
36604 ac_datarootdir_hack='
36605 s&@datadir@&$datadir&g
36606 s&@docdir@&$docdir&g
36607 s&@infodir@&$infodir&g
36608 s&@localedir@&$localedir&g
36609 s&@mandir@&$mandir&g
36610 s&\\\${datarootdir}&$datarootdir&g' ;;
36614 # Neutralize VPATH when `$srcdir' = `.'.
36615 # Shell code in configure.ac might set extrasub.
36616 # FIXME: do we really want to maintain this feature?
36617 cat >>$CONFIG_STATUS <<_ACEOF
36621 cat >>$CONFIG_STATUS <<\_ACEOF
36623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36624 s&@configure_input@&$configure_input&;t t
36625 s&@top_builddir@&$ac_top_builddir_sub&;t t
36626 s&@srcdir@&$ac_srcdir&;t t
36627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36628 s&@top_srcdir@&$ac_top_srcdir&;t t
36629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36630 s&@builddir@&$ac_builddir&;t t
36631 s&@abs_builddir@&$ac_abs_builddir&;t t
36632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36633 s&@INSTALL@&$ac_INSTALL&;t t
36634 $ac_datarootdir_hack
36635 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36637 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36638 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36639 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36640 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36641 which seems to be undefined. Please make sure it is defined." >&5
36642 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36643 which seems to be undefined. Please make sure it is defined." >&2;}
36647 -) cat "$tmp/out"; rm -f "$tmp/out";;
36648 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36657 # Transform confdefs.h into a sed script `conftest.defines', that
36658 # substitutes the proper values into config.h.in to produce config.h.
36659 rm -f conftest.defines conftest.tail
36660 # First, append a space to every undef/define line, to ease matching.
36661 echo 's/$/ /' >conftest.defines
36662 # Then, protect against being on the right side of a sed subst, or in
36663 # an unquoted here document, in config.status. If some macros were
36664 # called several times there might be several #defines for the same
36665 # symbol, which is useless. But do not sort them, since the last
36666 # AC_DEFINE must be honored.
36667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36668 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36669 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36670 # PARAMS is the parameter list in the macro definition--in most cases, it's
36671 # just an empty string.
36672 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36673 ac_dB='\\)[ (].*,\\1define\\2'
36681 s/^[ ]*#[ ]*define[ ][ ]*//
36686 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36687 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36688 ' >>conftest.defines
36690 # Remove the space that was appended to ease matching.
36691 # Then replace #undef with comments. This is necessary, for
36692 # example, in the case of _POSIX_SOURCE, which is predefined and required
36693 # on some systems where configure will not decide to define it.
36694 # (The regexp can be short, since the line contains either #define or #undef.)
36696 s,^[ #]*u.*,/* & */,' >>conftest.defines
36698 # Break up conftest.defines:
36699 ac_max_sed_lines=50
36701 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36702 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36703 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36705 ac_in='$ac_file_inputs'
36706 ac_out='"$tmp/out1"'
36707 ac_nxt='"$tmp/out2"'
36711 # Write a here document:
36712 cat >>$CONFIG_STATUS <<_ACEOF
36713 # First, check the format of the line:
36714 cat >"\$tmp/defines.sed" <<\\CEOF
36715 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36716 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36720 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36722 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36723 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36724 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36725 grep . conftest.tail >/dev/null || break
36726 rm -f conftest.defines
36727 mv conftest.tail conftest.defines
36729 rm -f conftest.defines conftest.tail
36731 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36732 cat >>$CONFIG_STATUS <<\_ACEOF
36733 if test x"$ac_file" != x-; then
36734 echo "/* $configure_input */" >"$tmp/config.h"
36735 cat "$ac_result" >>"$tmp/config.h"
36736 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36737 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36738 echo "$as_me: $ac_file is unchanged" >&6;}
36741 mv "$tmp/config.h" $ac_file
36744 echo "/* $configure_input */"
36750 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36751 echo "$as_me: executing $ac_file commands" >&6;}
36756 case $ac_file$ac_mode in
36757 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36758 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36759 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36760 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36761 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36762 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36763 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36764 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36765 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36766 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36767 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36768 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36769 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36770 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36771 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36772 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36773 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36774 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36775 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36776 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36777 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36778 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36779 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36780 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36781 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36782 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36788 { (exit 0); exit 0; }
36790 chmod +x $CONFIG_STATUS
36791 ac_clean_files=$ac_clean_files_save
36794 # configure is writing to config.log, and then calls config.status.
36795 # config.status does its own redirection, appending to config.log.
36796 # Unfortunately, on DOS this fails, as config.log is still kept open
36797 # by configure, so config.status won't be able to write to it; its
36798 # output is simply discarded. So we exec the FD to /dev/null,
36799 # effectively closing config.log, so it can be properly (re)opened and
36800 # appended to by config.status. When coming back to configure, we
36801 # need to make the FD available again.
36802 if test "$no_create" != yes; then
36804 ac_config_status_args=
36805 test "$silent" = yes &&
36806 ac_config_status_args="$ac_config_status_args --quiet"
36808 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36810 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36811 # would make configure fail if this is the last instruction.
36812 $ac_cs_success || { (exit 1); exit 1; }
36816 # CONFIG_SUBDIRS section.
36818 if test "$no_recursion" != yes; then
36820 # Remove --cache-file and --srcdir arguments so they do not pile up.
36821 ac_sub_configure_args=
36823 eval "set x $ac_configure_args"
36827 if test -n "$ac_prev"; then
36832 -cache-file | --cache-file | --cache-fil | --cache-fi \
36833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36834 ac_prev=cache_file ;;
36835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36839 --config-cache | -C)
36841 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36843 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36845 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36847 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36851 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36853 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36857 # Always prepend --prefix to ensure using the same prefix
36858 # in subdir configurations.
36859 ac_arg="--prefix=$prefix"
36861 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36863 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36866 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36868 # Do not complain, so a configure script can configure whichever
36869 # parts of a large source tree are present.
36870 test -d "$srcdir/$ac_dir" || continue
36872 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36873 echo "$as_me:$LINENO: $ac_msg" >&5
36877 -*) as_dir=./$as_dir;;
36879 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36883 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36884 *) as_qdir=$as_dir;;
36886 as_dirs="'$as_qdir' $as_dirs"
36887 as_dir=`$as_dirname -- "$as_dir" ||
36888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36889 X"$as_dir" : 'X\(//\)[^/]' \| \
36890 X"$as_dir" : 'X\(//\)$' \| \
36891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36897 /^X\(\/\/\)[^/].*/{
36910 test -d "$as_dir" && break
36912 test -z "$as_dirs" || eval "mkdir $as_dirs"
36913 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36914 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36915 { (exit 1); exit 1; }; }; }
36919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36922 # A ".." for each directory in $ac_dir_suffix.
36923 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36924 case $ac_top_builddir_sub in
36925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36929 ac_abs_top_builddir=$ac_pwd
36930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36931 # for backward compatibility:
36932 ac_top_builddir=$ac_top_build_prefix
36935 .) # We are building in place.
36937 ac_top_srcdir=$ac_top_builddir_sub
36938 ac_abs_top_srcdir=$ac_pwd ;;
36939 [\\/]* | ?:[\\/]* ) # Absolute name.
36940 ac_srcdir=$srcdir$ac_dir_suffix;
36941 ac_top_srcdir=$srcdir
36942 ac_abs_top_srcdir=$srcdir ;;
36943 *) # Relative name.
36944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36945 ac_top_srcdir=$ac_top_build_prefix$srcdir
36946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36953 # Check for guested configure; otherwise get Cygnus style configure.
36954 if test -f "$ac_srcdir/configure.gnu"; then
36955 ac_sub_configure=$ac_srcdir/configure.gnu
36956 elif test -f "$ac_srcdir/configure"; then
36957 ac_sub_configure=$ac_srcdir/configure
36958 elif test -f "$ac_srcdir/configure.in"; then
36959 # This should be Cygnus configure.
36960 ac_sub_configure=$ac_aux_dir/configure
36962 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36967 # The recursion is here.
36968 if test -n "$ac_sub_configure"; then
36969 # Make the cache file name correct relative to the subdirectory.
36970 case $cache_file in
36971 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36972 *) # Relative name.
36973 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36976 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36977 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36978 # The eval makes quoting arguments work.
36979 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36980 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36981 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36982 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36983 { (exit 1); exit 1; }; }