2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.4svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
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
834 ENABLE_EXPENSIVE_CHECKS
893 CONVENIENCE_LTDL_TRUE
894 CONVENIENCE_LTDL_FALSE
932 ENABLE_VISIBILITY_INLINES_HIDDEN
936 ac_precious_vars='build_alias
952 ac_subdirs_all='projects/sample
954 projects/llvm-stacker
961 projects/llvm-poolalloc
963 projects/llvm-kernel'
965 # Initialize some variables set by options.
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
977 program_transform_name=s,x,x,
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072 eval enable_$ac_feature=no ;;
1074 -docdir | --docdir | --docdi | --doc | --do)
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091 eval enable_$ac_feature=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1255 -site=* | --site=* | --sit=*)
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package| sed 's/-/_/g'`
1288 eval with_$ac_package=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_package=`echo $ac_package | sed 's/-/_/g'`
1297 eval with_$ac_package=no ;;
1300 # Obsolete; use --with-x.
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
1328 eval $ac_envvar=\$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1348 # Be sure to have absolute directory names.
1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
1354 eval ac_val=\$$ac_var
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
1405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1429 ac_srcdir_defaulted=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434 { (exit 1); exit 1; }; }
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439 { (exit 1); exit 1; }; }
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 # Report the --help message.
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1465 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1472 Defaults for the options are specified in brackets.
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1496 For better control, use the options below.
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive ) echo "Configuration of llvm 2.4svn:";;
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-expensive-checks
1542 --enable-debug-runtime
1543 --enable-jit Enable Just In Time Compiling (default is YES)
1544 --enable-doxygen Build doxygen documentation (default is NO)
1545 --enable-threads Use threads if available (default is YES)
1546 --enable-pic Build LLVM with Position Independent Code (default
1548 --enable-targets Build specific host targets:
1549 all,host-only,{target-name} (default=all)
1550 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1552 --enable-bindings Build specific language bindings:
1553 all,auto,none,{binding-name} (default=auto)
1554 --enable-ltdl-install install libltdl
1555 --enable-shared[=PKGS] build shared libraries
1557 --enable-static[=PKGS] build static libraries
1559 --enable-fast-install[=PKGS]
1560 optimize for fast installation
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1569 --with-llvmgcc Specify location of llvm-gcc driver (default
1571 --with-llvmgxx Specify location of llvm-g++ driver (default
1573 --with-extra-options Specify addtional options to compile LLVM with
1574 --with-ocaml-libdir Specify install location for ocaml bindings (default
1576 --with-tclinclude directory where tcl headers are
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578 --with-pic try to use only PIC/non-PIC objects [default=use
1580 --with-tags[=TAGS] include additional configurations [automatic]
1581 --with-udis86=<path> Use udis86 external x86 disassembler library
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
1591 CXX C++ compiler command
1592 CXXFLAGS C++ compiler flags
1593 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1594 the first program found out of: `bison -y', `byacc', `yacc'.
1595 YFLAGS The list of arguments that will be passed by default to $YACC.
1596 This script will default YFLAGS to the empty string to avoid a
1597 default value of `-d' given by some make applications.
1598 CXXCPP C++ preprocessor
1599 F77 Fortran 77 compiler command
1600 FFLAGS Fortran 77 compiler flags
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to <llvmbugs@cs.uiuc.edu>.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" || continue
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1633 .) # We are building in place.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1666 llvm configure 2.4svn
1667 generated by GNU Autoconf 2.60
1669 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1670 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1674 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1682 It was created by llvm $as_me 2.4svn, which was
1683 generated by GNU Autoconf 2.60. Invocation command line was
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1708 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 echo "PATH: $as_dir"
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1743 ac_must_keep_next=false
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1754 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
1761 ac_must_keep_next=false # Got value, back to normal.
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 -* ) ac_must_keep_next=true ;;
1775 ac_configure_args="$ac_configure_args '$ac_arg'"
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log. We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1799 # The following way of writing the cache mishandles newlines in values,
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1806 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810 _ | IFS | as_nl) ;; #(
1811 *) $as_unset $ac_var ;;
1816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817 *${as_nl}ac_space=\ *)
1819 "s/'\''/'\''\\\\'\'''\''/g;
1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1831 ## ----------------- ##
1832 ## Output variables. ##
1833 ## ----------------- ##
1836 for ac_var in $ac_subst_vars
1838 eval ac_val=\$$ac_var
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 echo "$ac_var='\''$ac_val'\''"
1846 if test -n "$ac_subst_files"; then
1848 ## ------------------- ##
1849 ## File substitutions. ##
1850 ## ------------------- ##
1853 for ac_var in $ac_subst_files
1855 eval ac_val=\$$ac_var
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 echo "$ac_var='\''$ac_val'\''"
1864 if test -s confdefs.h; then
1874 test "$ac_signal" != 0 &&
1875 echo "$as_me: caught signal $ac_signal"
1876 echo "$as_me: exit $exit_status"
1878 rm -f core *.core core.conftest.* &&
1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882 for ac_signal in 1 2 13 15; do
1883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1887 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1888 rm -f -r conftest* confdefs.h
1890 # Predefined preprocessor variables.
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_NAME "$PACKAGE_NAME"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_STRING "$PACKAGE_STRING"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1917 # Let the site file select an alternate cache file if it wants to.
1918 # Prefer explicitly selected file to automatically selected ones.
1919 if test -n "$CONFIG_SITE"; then
1920 set x "$CONFIG_SITE"
1921 elif test "x$prefix" != xNONE; then
1922 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1924 set x "$ac_default_prefix/share/config.site" \
1925 "$ac_default_prefix/etc/config.site"
1930 if test -r "$ac_site_file"; then
1931 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1938 if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 echo "$as_me: loading cache $cache_file" >&6;}
1945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
1950 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 echo "$as_me: creating cache $cache_file" >&6;}
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1976 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1977 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1978 echo "$as_me: former value: $ac_old_val" >&2;}
1979 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1980 echo "$as_me: current value: $ac_new_val" >&2;}
1981 ac_cache_corrupted=:
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1987 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 *) ac_arg=$ac_var=$ac_new_val ;;
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 if $ac_cache_corrupted; then
1997 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001 { (exit 1); exit 1; }; }
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2045 for ac_dir in autoconf "$srcdir"/autoconf; do
2046 if test -f "$ac_dir/install-sh"; then
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 elif test -f "$ac_dir/install.sh"; then
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 elif test -f "$ac_dir/shtool"; then
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2060 if test -z "$ac_aux_dir"; then
2061 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2063 { (exit 1); exit 1; }; }
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2076 if test ${srcdir} != "." ; then
2077 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2078 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2079 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2080 { (exit 1); exit 1; }; }
2084 for i in `ls ${srcdir}/projects`
2086 if test -d ${srcdir}/projects/${i} ; then
2089 sample) subdirs="$subdirs projects/sample"
2091 privbracket) subdirs="$subdirs projects/privbracket"
2093 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2095 # llvm-test is the old name of the test-suite, kept here for backwards
2097 llvm-test) subdirs="$subdirs projects/llvm-test"
2099 test-suite) subdirs="$subdirs projects/test-suite"
2101 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2103 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2105 llvm-java) subdirs="$subdirs projects/llvm-java"
2107 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2109 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2111 poolalloc) subdirs="$subdirs projects/poolalloc"
2113 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2116 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2117 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2124 # Make sure we can run config.sub.
2125 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: checking build system type" >&5
2131 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2132 if test "${ac_cv_build+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 ac_build_alias=$build_alias
2136 test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138 test "x$ac_build_alias" = x &&
2139 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
2142 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149 echo "${ECHO_T}$ac_cv_build" >&6; }
2150 case $ac_cv_build in
2152 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153 echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
2157 ac_save_IFS=$IFS; IFS='-'
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2170 { echo "$as_me:$LINENO: checking host system type" >&5
2171 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2172 if test "${ac_cv_host+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181 { (exit 1); exit 1; }; }
2185 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186 echo "${ECHO_T}$ac_cv_host" >&6; }
2189 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190 echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
2194 ac_save_IFS=$IFS; IFS='-'
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2204 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207 { echo "$as_me:$LINENO: checking target system type" >&5
2208 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2209 if test "${ac_cv_target+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test "x$target_alias" = x; then
2213 ac_cv_target=$ac_cv_host
2215 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2216 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2217 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2218 { (exit 1); exit 1; }; }
2222 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2223 echo "${ECHO_T}$ac_cv_target" >&6; }
2224 case $ac_cv_target in
2226 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2227 echo "$as_me: error: invalid value of canonical target" >&2;}
2228 { (exit 1); exit 1; }; };;
2230 target=$ac_cv_target
2231 ac_save_IFS=$IFS; IFS='-'
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2241 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2244 # The aliases save the names the user supplied, while $host etc.
2245 # will get canonicalized.
2246 test -n "$target_alias" &&
2247 test "$program_prefix$program_suffix$program_transform_name" = \
2249 program_prefix=${target_alias}-
2251 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2252 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2253 if test "${llvm_cv_os_type+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2260 llvm_cv_os_type="AIX"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="IRIX"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="Cygwin"
2271 llvm_cv_platform_type="Unix" ;;
2273 llvm_cv_link_all_option="-Wl,-all_load"
2274 llvm_cv_no_link_all_option="-Wl,-noall_load"
2275 llvm_cv_os_type="Darwin"
2276 llvm_cv_platform_type="Unix" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="FreeBSD"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="OpenBSD"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="NetBSD"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="DragonFly"
2296 llvm_cv_platform_type="Unix" ;;
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="HP-UX"
2301 llvm_cv_platform_type="Unix" ;;
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="Interix"
2306 llvm_cv_platform_type="Unix" ;;
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="Linux"
2311 llvm_cv_platform_type="Unix" ;;
2313 llvm_cv_link_all_option="-Wl,-z,allextract"
2314 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2315 llvm_cv_os_type="SunOS"
2316 llvm_cv_platform_type="Unix" ;;
2318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320 llvm_cv_os_type="Win32"
2321 llvm_cv_platform_type="Win32" ;;
2323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325 llvm_cv_os_type="MingW"
2326 llvm_cv_platform_type="Win32" ;;
2328 llvm_cv_link_all_option=""
2329 llvm_cv_no_link_all_option=""
2330 llvm_cv_os_type="Unknown"
2331 llvm_cv_platform_type="Unknown" ;;
2334 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2335 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2337 if test "$llvm_cv_os_type" = "Unknown" ; then
2338 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2340 { (exit 1); exit 1; }; }
2346 LINKALL=$llvm_cv_link_all_option
2348 NOLINKALL=$llvm_cv_no_link_all_option
2351 case $llvm_cv_platform_type in
2354 cat >>confdefs.h <<\_ACEOF
2355 #define LLVM_ON_UNIX 1
2365 cat >>confdefs.h <<\_ACEOF
2366 #define LLVM_ON_WIN32 1
2376 { echo "$as_me:$LINENO: checking target architecture" >&5
2377 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2378 if test "${llvm_cv_target_arch+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 i?86-*) llvm_cv_target_arch="x86" ;;
2383 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2384 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2385 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2386 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2387 ia64-*) llvm_cv_target_arch="IA64" ;;
2388 arm-*) llvm_cv_target_arch="ARM" ;;
2389 mips-*) llvm_cv_target_arch="Mips" ;;
2390 pic16-*) llvm_cv_target_arch="PIC16" ;;
2391 *) llvm_cv_target_arch="Unknown" ;;
2394 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2395 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2397 if test "$llvm_cv_target_arch" = "Unknown" ; then
2398 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2399 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2402 ARCH=$llvm_cv_target_arch
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_CC+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 if test -n "$CC"; then
2440 { echo "$as_me:$LINENO: result: $CC" >&5
2441 echo "${ECHO_T}$CC" >&6; }
2443 { echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6; }
2449 if test -z "$ac_cv_prog_CC"; then
2451 # Extract the first word of "gcc", so it can be a program name with args.
2452 set dummy gcc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_ac_ct_CC="gcc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2481 echo "${ECHO_T}$ac_ct_CC" >&6; }
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2487 if test "x$ac_ct_CC" = x; then
2490 case $cross_compiling:$ac_tool_warned in
2492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet. If you think this
2494 configuration is useful to you, please write to autoconf@gnu.org." >&5
2495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet. If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498 ac_tool_warned=yes ;;
2506 if test -z "$CC"; then
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}cc; ac_word=$2
2510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_CC="${ac_tool_prefix}cc"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 if test -n "$CC"; then
2537 { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2547 if test -z "$CC"; then
2548 # Extract the first word of "cc", so it can be a program name with args.
2549 set dummy cc; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567 ac_prog_rejected=yes
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test $ac_prog_rejected = yes; then
2579 # We found a bogon in the path, so make sure we never use it.
2580 set dummy $ac_cv_prog_CC
2582 if test $# != 0; then
2583 # We chose a different compiler from the bogus one.
2584 # However, it has the same basename, so the bogon will be chosen
2585 # first if we set CC to just the basename; use the full file name.
2587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593 if test -n "$CC"; then
2594 { echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6; }
2597 { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2603 if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
2605 for ac_prog in cl.exe
2607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$CC"; then
2636 { echo "$as_me:$LINENO: result: $CC" >&5
2637 echo "${ECHO_T}$CC" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2644 test -n "$CC" && break
2647 if test -z "$CC"; then
2649 for ac_prog in cl.exe
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652 set dummy $ac_prog; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_ac_ct_CC="$ac_prog"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 echo "${ECHO_T}$ac_ct_CC" >&6; }
2683 { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2688 test -n "$ac_ct_CC" && break
2691 if test "x$ac_ct_CC" = x; then
2694 case $cross_compiling:$ac_tool_warned in
2696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2697 whose name does not start with the host triplet. If you think this
2698 configuration is useful to you, please write to autoconf@gnu.org." >&5
2699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet. If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2702 ac_tool_warned=yes ;;
2711 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2717 # Provide some information about the compiler.
2718 echo "$as_me:$LINENO: checking for C compiler version" >&5
2719 ac_compiler=`set X $ac_compile; echo $2`
2720 { (ac_try="$ac_compiler --version >&5"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler --version >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2730 { (ac_try="$ac_compiler -v >&5"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compiler -v >&5") 2>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }
2740 { (ac_try="$ac_compiler -V >&5"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler -V >&5") 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2766 ac_clean_files_save=$ac_clean_files
2767 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2768 # Try to create an executable without -o first, disregard a.out.
2769 # It will help us diagnose broken compilers, and finding out an intuition
2771 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2772 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2773 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2775 # List of possible output files, starting from the most likely.
2776 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2777 # only as a last resort. b.out is created by i960 compilers.
2778 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2780 # The IRIX 6 linker writes into existing files which may not be
2781 # executable, retaining their permissions. Remove them first so a
2782 # subsequent execution test works.
2784 for ac_file in $ac_files
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2788 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793 if { (ac_try="$ac_link_default"
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_link_default") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; then
2803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2804 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2805 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2806 # so that the user can short-circuit this test for compilers unknown to
2808 for ac_file in $ac_files
2810 test -f "$ac_file" || continue
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2815 # We found the default executable, but exeext='' is most
2819 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823 # We set ac_cv_exeext here because the later test for it is not
2824 # safe: cross compilers may not add the suffix if given an `-o'
2825 # argument, so we may need to know it at that point already.
2826 # Even if this section looks crufty: it has the advantage of
2833 test "$ac_cv_exeext" = no && ac_cv_exeext=
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2839 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2840 See \`config.log' for more details." >&5
2841 echo "$as_me: error: C compiler cannot create executables
2842 See \`config.log' for more details." >&2;}
2843 { (exit 77); exit 77; }; }
2846 ac_exeext=$ac_cv_exeext
2847 { echo "$as_me:$LINENO: result: $ac_file" >&5
2848 echo "${ECHO_T}$ac_file" >&6; }
2850 # Check that the compiler produces executables we can run. If not, either
2851 # the compiler is broken, or we cross compile.
2852 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2853 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2854 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2855 # If not cross compiling, check that we can run a simple program.
2856 if test "$cross_compiling" != yes; then
2857 if { ac_try='./$ac_file'
2858 { (case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_try") 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2869 if test "$cross_compiling" = maybe; then
2872 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2873 If you meant to cross compile, use \`--host'.
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: cannot run C compiled programs.
2876 If you meant to cross compile, use \`--host'.
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
2882 { echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6; }
2885 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2886 ac_clean_files=$ac_clean_files_save
2887 # Check that the compiler produces executables we can run. If not, either
2888 # the compiler is broken, or we cross compile.
2889 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2890 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2891 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2892 echo "${ECHO_T}$cross_compiling" >&6; }
2894 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2895 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2896 if { (ac_try="$ac_link"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_link") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2908 # work properly (i.e., refer to `conftest.exe'), while it won't with
2910 for ac_file in conftest.exe conftest conftest.*; do
2911 test -f "$ac_file" || continue
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&2;}
2924 { (exit 1); exit 1; }; }
2927 rm -f conftest$ac_cv_exeext
2928 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2929 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2931 rm -f conftest.$ac_ext
2932 EXEEXT=$ac_cv_exeext
2934 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2935 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2936 if test "${ac_cv_objext+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2954 rm -f conftest.o conftest.obj
2955 if { (ac_try="$ac_compile"
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; then
2965 for ac_file in conftest.o conftest.obj conftest.*; do
2966 test -f "$ac_file" || continue;
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2978 See \`config.log' for more details." >&5
2979 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2980 See \`config.log' for more details." >&2;}
2981 { (exit 1); exit 1; }; }
2984 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2986 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2987 echo "${ECHO_T}$ac_cv_objext" >&6; }
2988 OBJEXT=$ac_cv_objext
2990 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2991 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2992 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
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_try") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3061 GCC=`test $ac_compiler_gnu = yes && echo yes`
3062 ac_test_CFLAGS=${CFLAGS+set}
3063 ac_save_CFLAGS=$CFLAGS
3064 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3066 if test "${ac_cv_prog_cc_g+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 ac_save_c_werror_flag=$ac_c_werror_flag
3070 ac_c_werror_flag=yes
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3103 { (case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_try") 2>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_try") 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } &&
3213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3214 { (case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_try") 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_try") 2>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3252 if test "$ac_test_CFLAGS" = set; then
3253 CFLAGS=$ac_save_CFLAGS
3254 elif test $ac_cv_prog_cc_g = yes; then
3255 if test "$GCC" = yes; then
3261 if test "$GCC" = yes; then
3267 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3268 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_c89+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 ac_cv_prog_cc_c89=no
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 #include <sys/stat.h>
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3298 s = g (p, va_arg (v,int));
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3304 function prototypes and stuff, but not '\xHH' hex character constants.
3305 These don't provoke an error unfortunately, instead are silently treated
3306 as 'x'. The following induces an error, until -std is added to get
3307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3308 array size at least. It's necessary to write '\x00'==0 to get something
3309 that's true only with -std. */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313 inside strings and character constants. */
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 CC="$ac_save_CC $ac_arg"
3335 rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_compile") 2>conftest.er1
3344 grep -v '^ *+' conftest.er1 >conftest.err
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_try") 2>&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3369 ac_cv_prog_cc_c89=$ac_arg
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3377 rm -f core conftest.err conftest.$ac_objext
3378 test "x$ac_cv_prog_cc_c89" != "xno" && break
3380 rm -f conftest.$ac_ext
3385 case "x$ac_cv_prog_cc_c89" in
3387 { echo "$as_me:$LINENO: result: none needed" >&5
3388 echo "${ECHO_T}none needed" >&6; } ;;
3390 { echo "$as_me:$LINENO: result: unsupported" >&5
3391 echo "${ECHO_T}unsupported" >&6; } ;;
3393 CC="$CC $ac_cv_prog_cc_c89"
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3412 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3413 # On Suns, sometimes $CPP names a directory.
3414 if test -n "$CPP" && test -d "$CPP"; then
3417 if test -z "$CPP"; then
3418 if test "${ac_cv_prog_CPP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 # Double quotes because CPP needs to be expanded
3422 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3425 for ac_c_preproc_warn_flag in '' yes
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3440 # include <limits.h>
3442 # include <assert.h>
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_c_preproc_warn_flag
3461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468 if test -z "$ac_cpp_err"; then
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Broken: fails on valid input.
3478 rm -f conftest.err conftest.$ac_ext
3480 # OK, works on sane cases. Now check whether nonexistent headers
3481 # can be detected and how.
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include <ac_nonexistent.h>
3490 if { (ac_try="$ac_cpp conftest.$ac_ext"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } >/dev/null; then
3503 if test -s conftest.err; then
3504 ac_cpp_err=$ac_c_preproc_warn_flag
3505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3512 if test -z "$ac_cpp_err"; then
3513 # Broken: success on invalid input.
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 # Passes both tests.
3524 rm -f conftest.err conftest.$ac_ext
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then
3541 { echo "$as_me:$LINENO: result: $CPP" >&5
3542 echo "${ECHO_T}$CPP" >&6; }
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3559 # include <limits.h>
3561 # include <assert.h>
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587 if test -z "$ac_cpp_err"; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3597 rm -f conftest.err conftest.$ac_ext
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3631 if test -z "$ac_cpp_err"; then
3632 # Broken: success on invalid input.
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 # Passes both tests.
3643 rm -f conftest.err conftest.$ac_ext
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3651 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3652 See \`config.log' for more details." >&5
3653 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&2;}
3655 { (exit 1); exit 1; }; }
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3666 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3667 if test "${ac_cv_path_GREP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 # Extract the first word of "grep ggrep" to use in msg output
3671 if test -z "$GREP"; then
3672 set dummy grep ggrep; ac_prog_name=$2
3673 if test "${ac_cv_path_GREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 ac_path_GREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in grep ggrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3686 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3687 # Check for GNU ac_path_GREP and select it if it is found.
3688 # Check for GNU $ac_path_GREP
3689 case `"$ac_path_GREP" --version 2>&1` in
3691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 echo 'GREP' >> "conftest.nl"
3701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 ac_count=`expr $ac_count + 1`
3704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_GREP="$ac_path_GREP"
3707 ac_path_GREP_max=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3716 $ac_path_GREP_found && break 3
3726 GREP="$ac_cv_path_GREP"
3727 if test -z "$GREP"; then
3728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730 { (exit 1); exit 1; }; }
3734 ac_cv_path_GREP=$GREP
3739 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3740 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3741 GREP="$ac_cv_path_GREP"
3744 { echo "$as_me:$LINENO: checking for egrep" >&5
3745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3746 if test "${ac_cv_path_EGREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3750 then ac_cv_path_EGREP="$GREP -E"
3752 # Extract the first word of "egrep" to use in msg output
3753 if test -z "$EGREP"; then
3754 set dummy egrep; ac_prog_name=$2
3755 if test "${ac_cv_path_EGREP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 ac_path_EGREP_found=false
3759 # Loop through the user's path and test for each of PROGNAME-LIST
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764 test -z "$as_dir" && as_dir=.
3765 for ac_prog in egrep; do
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3768 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3769 # Check for GNU ac_path_EGREP and select it if it is found.
3770 # Check for GNU $ac_path_EGREP
3771 case `"$ac_path_EGREP" --version 2>&1` in
3773 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779 cat "conftest.in" "conftest.in" >"conftest.tmp"
3780 mv "conftest.tmp" "conftest.in"
3781 cp "conftest.in" "conftest.nl"
3782 echo 'EGREP' >> "conftest.nl"
3783 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3785 ac_count=`expr $ac_count + 1`
3786 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3787 # Best one so far, save it but keep looking for a better one
3788 ac_cv_path_EGREP="$ac_path_EGREP"
3789 ac_path_EGREP_max=$ac_count
3791 # 10*(2^10) chars as input seems more than enough
3792 test $ac_count -gt 10 && break
3794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798 $ac_path_EGREP_found && break 3
3808 EGREP="$ac_cv_path_EGREP"
3809 if test -z "$EGREP"; then
3810 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3811 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3812 { (exit 1); exit 1; }; }
3816 ac_cv_path_EGREP=$EGREP
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3824 EGREP="$ac_cv_path_EGREP"
3827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3829 if test "${ac_cv_header_stdc+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866 { (case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_try") 2>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_try") 2>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 ac_cv_header_stdc=yes
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 ac_cv_header_stdc=no
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 if test $ac_cv_header_stdc = yes; then
3896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907 $EGREP "memchr" >/dev/null 2>&1; then
3910 ac_cv_header_stdc=no
3916 if test $ac_cv_header_stdc = yes; then
3917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "free" >/dev/null 2>&1; then
3931 ac_cv_header_stdc=no
3937 if test $ac_cv_header_stdc = yes; then
3938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3939 if test "$cross_compiling" = yes; then
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3950 #if ((' ' & 0x0FF) == 0x020)
3951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3954 # define ISLOWER(c) \
3955 (('a' <= (c) && (c) <= 'i') \
3956 || ('j' <= (c) && (c) <= 'r') \
3957 || ('s' <= (c) && (c) <= 'z'))
3958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3966 for (i = 0; i < 256; i++)
3967 if (XOR (islower (i), ISLOWER (i))
3968 || toupper (i) != TOUPPER (i))
3973 rm -f conftest$ac_exeext
3974 if { (ac_try="$ac_link"
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_link") 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3984 { (case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_try") 2>&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3995 echo "$as_me: program exited with status $ac_status" >&5
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_cv_header_stdc=no
4002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4008 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4009 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4010 if test $ac_cv_header_stdc = yes; then
4012 cat >>confdefs.h <<\_ACEOF
4013 #define STDC_HEADERS 1
4018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4029 inttypes.h stdint.h unistd.h
4031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 $ac_includes_default
4045 #include <$ac_header>
4047 rm -f conftest.$ac_objext
4048 if { (ac_try="$ac_compile"
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_compile") 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4062 { (case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_try") 2>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_try") 2>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 eval "$as_ac_Header=yes"
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 eval "$as_ac_Header=no"
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 ac_res=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093 echo "${ECHO_T}$ac_res" >&6; }
4094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h <<_ACEOF
4096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4105 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4106 if test "${ac_cv_c_bigendian+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 # See if sys/param.h defines the BYTE_ORDER macro.
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <sys/types.h>
4117 #include <sys/param.h>
4122 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (case "(($ac_try" in
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_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 # It does; now see whether it defined to BIG_ENDIAN or not.
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <sys/types.h>
4172 #include <sys/param.h>
4177 #if BYTE_ORDER != BIG_ENDIAN
4185 rm -f conftest.$ac_objext
4186 if { (ac_try="$ac_compile"
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_compile") 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200 { (case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_try") 2>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest.$ac_objext'
4210 { (case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_try") 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_cv_c_bigendian=yes
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_c_bigendian=no
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 # It does not; compile a test program.
4233 if test "$cross_compiling" = yes; then
4234 # try to guess the endianness by grepping values into an object file
4235 ac_cv_c_bigendian=unknown
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4243 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4244 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4245 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4246 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4247 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4251 _ascii (); _ebcdic ();
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4291 ac_cv_c_bigendian=yes
4293 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4294 if test "$ac_cv_c_bigendian" = unknown; then
4295 ac_cv_c_bigendian=no
4297 # finding both strings is unlikely to happen, but who knows?
4298 ac_cv_c_bigendian=unknown
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4321 /* Are we little or big endian? From Harbison&Steele. */
4325 char c[sizeof (long int)];
4328 return u.c[sizeof (long int) - 1] == 1;
4334 rm -f conftest$ac_exeext
4335 if { (ac_try="$ac_link"
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_link") 2>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4345 { (case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_try") 2>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_c_bigendian=no
4356 echo "$as_me: program exited with status $ac_status" >&5
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_cv_c_bigendian=yes
4363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4373 case $ac_cv_c_bigendian in
4381 { { echo "$as_me:$LINENO: error: unknown endianness
4382 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4383 echo "$as_me: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4385 { (exit 1); exit 1; }; } ;;
4389 if test "$cross_compiling" = yes; then
4390 LLVM_CROSS_COMPILING=1
4393 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4394 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4395 if test "${ac_cv_build_exeext+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4399 ac_cv_build_exeext=.exe
4401 ac_build_prefix=${build_alias}-
4403 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4404 set dummy ${ac_build_prefix}gcc; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 if test -n "$BUILD_CC"; then
4411 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 BUILD_CC=$ac_cv_prog_BUILD_CC
4431 if test -n "$BUILD_CC"; then
4432 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4433 echo "${ECHO_T}$BUILD_CC" >&6; }
4435 { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4440 if test -z "$BUILD_CC"; then
4441 # Extract the first word of "gcc", so it can be a program name with args.
4442 set dummy gcc; ac_word=$2
4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test -n "$BUILD_CC"; then
4449 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_BUILD_CC="gcc"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 BUILD_CC=$ac_cv_prog_BUILD_CC
4469 if test -n "$BUILD_CC"; then
4470 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4471 echo "${ECHO_T}$BUILD_CC" >&6; }
4473 { echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6; }
4478 if test -z "$BUILD_CC"; then
4479 # Extract the first word of "cc", so it can be a program name with args.
4480 set dummy cc; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 if test -n "$BUILD_CC"; then
4487 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4498 ac_prog_rejected=yes
4501 ac_cv_prog_BUILD_CC="cc"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 if test $ac_prog_rejected = yes; then
4510 # We found a bogon in the path, so make sure we never use it.
4511 set dummy $ac_cv_prog_BUILD_CC
4513 if test $# != 0; then
4514 # We chose a different compiler from the bogus one.
4515 # However, it has the same basename, so the bogon will be chosen
4516 # first if we set BUILD_CC to just the basename; use the full file name.
4518 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4523 BUILD_CC=$ac_cv_prog_BUILD_CC
4524 if test -n "$BUILD_CC"; then
4525 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4526 echo "${ECHO_T}$BUILD_CC" >&6; }
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4535 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4536 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4537 { (exit 1); exit 1; }; }
4538 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4540 echo 'int main () { return 0; }' > conftest.$ac_ext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4543 (eval $ac_build_link) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; then
4547 for file in conftest.*; do
4549 *.c | *.o | *.obj | *.dSYM) ;;
4550 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4554 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4555 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4556 { (exit 1); exit 1; }; }
4559 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4564 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4565 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4566 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4567 ac_build_exeext=$BUILD_EXEEXT
4569 ac_build_prefix=${build_alias}-
4570 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4571 set dummy ${ac_build_prefix}g++; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 if test -n "$BUILD_CXX"; then
4578 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4598 if test -n "$BUILD_CXX"; then
4599 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4600 echo "${ECHO_T}$BUILD_CXX" >&6; }
4602 { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4607 if test -z "$BUILD_CXX"; then
4608 # Extract the first word of "g++", so it can be a program name with args.
4609 set dummy g++; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 if test -n "$BUILD_CXX"; then
4616 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_BUILD_CXX="g++"
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4636 if test -n "$BUILD_CXX"; then
4637 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4638 echo "${ECHO_T}$BUILD_CXX" >&6; }
4640 { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4645 if test -z "$BUILD_CXX"; then
4646 # Extract the first word of "c++", so it can be a program name with args.
4647 set dummy c++; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$BUILD_CXX"; then
4654 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4665 ac_prog_rejected=yes
4668 ac_cv_prog_BUILD_CXX="c++"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 if test $ac_prog_rejected = yes; then
4677 # We found a bogon in the path, so make sure we never use it.
4678 set dummy $ac_cv_prog_BUILD_CXX
4680 if test $# != 0; then
4681 # We chose a different compiler from the bogus one.
4682 # However, it has the same basename, so the bogon will be chosen
4683 # first if we set BUILD_CXX to just the basename; use the full file name.
4685 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4690 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4691 if test -n "$BUILD_CXX"; then
4692 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4693 echo "${ECHO_T}$BUILD_CXX" >&6; }
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4703 LLVM_CROSS_COMPILING=0
4707 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4718 # Check whether --enable-optimized was given.
4719 if test "${enable_optimized+set}" = set; then
4720 enableval=$enable_optimized;
4725 if test ${enableval} = "no" ; then
4729 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4733 # Check whether --enable-assertions was given.
4734 if test "${enable_assertions+set}" = set; then
4735 enableval=$enable_assertions;
4740 if test ${enableval} = "yes" ; then
4744 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4748 # Check whether --enable-expensive-checks was given.
4749 if test "${enable_expensive_checks+set}" = set; then
4750 enableval=$enable_expensive_checks;
4755 if test ${enableval} = "yes" ; then
4756 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4758 EXPENSIVE_CHECKS=yes
4761 ENABLE_EXPENSIVE_CHECKS=
4767 # Check whether --enable-debug-runtime was given.
4768 if test "${enable_debug_runtime+set}" = set; then
4769 enableval=$enable_debug_runtime;
4774 if test ${enableval} = "no" ; then
4778 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4782 # Check whether --enable-jit was given.
4783 if test "${enable_jit+set}" = set; then
4784 enableval=$enable_jit;
4789 if test ${enableval} = "no"
4794 case "$llvm_cv_target_arch" in
4795 x86) TARGET_HAS_JIT=1
4797 Sparc) TARGET_HAS_JIT=0
4799 PowerPC) TARGET_HAS_JIT=1
4801 x86_64) TARGET_HAS_JIT=1
4803 Alpha) TARGET_HAS_JIT=1
4805 IA64) TARGET_HAS_JIT=0
4807 ARM) TARGET_HAS_JIT=0
4809 Mips) TARGET_HAS_JIT=0
4811 PIC16) TARGET_HAS_JIT=0
4818 # Check whether --enable-doxygen was given.
4819 if test "${enable_doxygen+set}" = set; then
4820 enableval=$enable_doxygen;
4825 case "$enableval" in
4826 yes) ENABLE_DOXYGEN=1
4828 no) ENABLE_DOXYGEN=0
4830 default) ENABLE_DOXYGEN=0
4832 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4833 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4834 { (exit 1); exit 1; }; } ;;
4837 # Check whether --enable-threads was given.
4838 if test "${enable_threads+set}" = set; then
4839 enableval=$enable_threads;
4844 case "$enableval" in
4845 yes) ENABLE_THREADS=1
4847 no) ENABLE_THREADS=0
4849 default) ENABLE_THREADS=1
4851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
4856 cat >>confdefs.h <<_ACEOF
4857 #define ENABLE_THREADS $ENABLE_THREADS
4861 # Check whether --enable-pic was given.
4862 if test "${enable_pic+set}" = set; then
4863 enableval=$enable_pic;
4868 case "$enableval" in
4873 default) ENABLE_PIC=0
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4880 cat >>confdefs.h <<_ACEOF
4881 #define ENABLE_PIC $ENABLE_PIC
4886 # Check whether --enable-targets was given.
4887 if test "${enable_targets+set}" = set; then
4888 enableval=$enable_targets;
4893 case "$enableval" in
4894 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4896 case "$llvm_cv_target_arch" in
4897 x86) TARGETS_TO_BUILD="X86" ;;
4898 x86_64) TARGETS_TO_BUILD="X86" ;;
4899 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4900 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4901 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4902 IA64) TARGETS_TO_BUILD="IA64" ;;
4903 ARM) TARGETS_TO_BUILD="ARM" ;;
4904 Mips) TARGETS_TO_BUILD="Mips" ;;
4905 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4906 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4907 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4908 echo "$as_me: error: Can not set target to build" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4912 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4914 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4920 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4921 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4922 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4923 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4924 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4926 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4927 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4928 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4929 { (exit 1); exit 1; }; } ;;
4934 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4937 # Check whether --enable-cbe-printf-a was given.
4938 if test "${enable_cbe_printf_a+set}" = set; then
4939 enableval=$enable_cbe_printf_a;
4944 case "$enableval" in
4945 yes) ENABLE_CBE_PRINTF_A=1
4947 no) ENABLE_CBE_PRINTF_A=0
4949 default) ENABLE_CBE_PRINTF_A=1
4951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4952 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4953 { (exit 1); exit 1; }; } ;;
4956 cat >>confdefs.h <<_ACEOF
4957 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4962 # Check whether --with-llvmgccdir was given.
4963 if test "${with_llvmgccdir+set}" = set; then
4964 withval=$with_llvmgccdir;
4970 default) WITH_LLVMGCCDIR=default ;;
4971 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4972 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4973 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4974 { (exit 1); exit 1; }; } ;;
4978 # Check whether --with-llvmgcc was given.
4979 if test "${with_llvmgcc+set}" = set; then
4980 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4986 # Check whether --with-llvmgxx was given.
4987 if test "${with_llvmgxx+set}" = set; then
4988 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4993 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4994 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4995 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4996 { (exit 1); exit 1; }; };
4999 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5000 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5001 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5002 { (exit 1); exit 1; }; };
5006 # Check whether --with-extra-options was given.
5007 if test "${with_extra_options+set}" = set; then
5008 withval=$with_extra_options;
5014 default) EXTRA_OPTIONS= ;;
5015 *) EXTRA_OPTIONS=$withval ;;
5017 EXTRA_OPTIONS=$EXTRA_OPTIONS
5020 # Check whether --enable-bindings was given.
5021 if test "${enable_bindings+set}" = set; then
5022 enableval=$enable_bindings;
5027 BINDINGS_TO_BUILD=""
5028 case "$enableval" in
5029 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5030 all ) BINDINGS_TO_BUILD="ocaml" ;;
5031 none | no) BINDINGS_TO_BUILD="" ;;
5032 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5033 case "$a_binding" in
5034 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5035 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5036 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5044 # Check whether --with-ocaml-libdir was given.
5045 if test "${with_ocaml_libdir+set}" = set; then
5046 withval=$with_ocaml_libdir;
5052 auto) with_ocaml_libdir="$withval" ;;
5053 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5054 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5055 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5056 { (exit 1); exit 1; }; } ;;
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5071 if test -z "$CPP"; then
5072 if test "${ac_cv_prog_CPP+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5079 for ac_c_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 # include <limits.h>
5096 # include <assert.h>
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_c_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5122 if test -z "$ac_cpp_err"; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Broken: fails on valid input.
5132 rm -f conftest.err conftest.$ac_ext
5134 # OK, works on sane cases. Now check whether nonexistent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 #include <ac_nonexistent.h>
5144 if { (ac_try="$ac_cpp conftest.$ac_ext"
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152 grep -v '^ *+' conftest.er1 >conftest.err
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } >/dev/null; then
5157 if test -s conftest.err; then
5158 ac_cpp_err=$ac_c_preproc_warn_flag
5159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166 if test -z "$ac_cpp_err"; then
5167 # Broken: success on invalid input.
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 # Passes both tests.
5178 rm -f conftest.err conftest.$ac_ext
5181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5182 rm -f conftest.err conftest.$ac_ext
5183 if $ac_preproc_ok; then
5195 { echo "$as_me:$LINENO: result: $CPP" >&5
5196 echo "${ECHO_T}$CPP" >&6; }
5198 for ac_c_preproc_warn_flag in '' yes
5200 # Use a header file that comes with gcc, so configuring glibc
5201 # with a fresh cross-compiler works.
5202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203 # <limits.h> exists even on freestanding compilers.
5204 # On the NeXT, cc -E runs the code through the compiler's parser,
5205 # not just through cpp. "Syntax error" is here to catch this case.
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5213 # include <limits.h>
5215 # include <assert.h>
5219 if { (ac_try="$ac_cpp conftest.$ac_ext"
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5227 grep -v '^ *+' conftest.er1 >conftest.err
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null; then
5232 if test -s conftest.err; then
5233 ac_cpp_err=$ac_c_preproc_warn_flag
5234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241 if test -z "$ac_cpp_err"; then
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 # Broken: fails on valid input.
5251 rm -f conftest.err conftest.$ac_ext
5253 # OK, works on sane cases. Now check whether nonexistent headers
5254 # can be detected and how.
5255 cat >conftest.$ac_ext <<_ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 #include <ac_nonexistent.h>
5263 if { (ac_try="$ac_cpp conftest.$ac_ext"
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 grep -v '^ *+' conftest.er1 >conftest.err
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 if test -z "$ac_cpp_err"; then
5286 # Broken: success on invalid input.
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 # Passes both tests.
5297 rm -f conftest.err conftest.$ac_ext
5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301 rm -f conftest.err conftest.$ac_ext
5302 if $ac_preproc_ok; then
5305 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5306 See \`config.log' for more details." >&5
5307 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5308 See \`config.log' for more details." >&2;}
5309 { (exit 1); exit 1; }; }
5313 ac_cpp='$CPP $CPPFLAGS'
5314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5330 if test "${ac_cv_prog_CC+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 if test -n "$CC"; then
5334 ac_cv_prog_CC="$CC" # Let the user override the test.
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 if test -n "$CC"; then
5355 { echo "$as_me:$LINENO: result: $CC" >&5
5356 echo "${ECHO_T}$CC" >&6; }
5358 { echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6; }
5363 test -n "$CC" && break
5366 if test -z "$CC"; then
5370 # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 if test -n "$ac_ct_CC"; then
5378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_ac_ct_CC="$ac_prog"
5388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5398 if test -n "$ac_ct_CC"; then
5399 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5400 echo "${ECHO_T}$ac_ct_CC" >&6; }
5402 { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5407 test -n "$ac_ct_CC" && break
5410 if test "x$ac_ct_CC" = x; then
5413 case $cross_compiling:$ac_tool_warned in
5415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5416 whose name does not start with the host triplet. If you think this
5417 configuration is useful to you, please write to autoconf@gnu.org." >&5
5418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5419 whose name does not start with the host triplet. If you think this
5420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5421 ac_tool_warned=yes ;;
5428 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: no acceptable C compiler found in \$PATH
5431 See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5434 # Provide some information about the compiler.
5435 echo "$as_me:$LINENO: checking for C compiler version" >&5
5436 ac_compiler=`set X $ac_compile; echo $2`
5437 { (ac_try="$ac_compiler --version >&5"
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_compiler --version >&5") 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5447 { (ac_try="$ac_compiler -v >&5"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compiler -v >&5") 2>&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }
5457 { (ac_try="$ac_compiler -V >&5"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_compiler -V >&5") 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }
5468 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5506 { (case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_try") 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_try") 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5537 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5538 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5539 GCC=`test $ac_compiler_gnu = yes && echo yes`
5540 ac_test_CFLAGS=${CFLAGS+set}
5541 ac_save_CFLAGS=$CFLAGS
5542 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5544 if test "${ac_cv_prog_cc_g+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 ac_save_c_werror_flag=$ac_c_werror_flag
5548 ac_c_werror_flag=yes
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5581 { (case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_try") 2>&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_c_werror_flag=$ac_save_c_werror_flag
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } &&
5691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5692 { (case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_try") 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_try") 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 ac_c_werror_flag=$ac_save_c_werror_flag
5728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5729 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5730 if test "$ac_test_CFLAGS" = set; then
5731 CFLAGS=$ac_save_CFLAGS
5732 elif test $ac_cv_prog_cc_g = yes; then
5733 if test "$GCC" = yes; then
5739 if test "$GCC" = yes; then
5745 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5746 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_cc_c89+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 ac_cv_prog_cc_c89=no
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5760 #include <sys/types.h>
5761 #include <sys/stat.h>
5762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5763 struct buf { int x; };
5764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5765 static char *e (p, i)
5771 static char *f (char * (*g) (char **, int), char **p, ...)
5776 s = g (p, va_arg (v,int));
5781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5782 function prototypes and stuff, but not '\xHH' hex character constants.
5783 These don't provoke an error unfortunately, instead are silently treated
5784 as 'x'. The following induces an error, until -std is added to get
5785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5786 array size at least. It's necessary to write '\x00'==0 to get something
5787 that's true only with -std. */
5788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5791 inside strings and character constants. */
5793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5795 int test (int i, double x);
5796 struct s1 {int (*f) (int a);};
5797 struct s2 {int (*f) (double a);};
5798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5812 CC="$ac_save_CC $ac_arg"
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828 { (case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_try") 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_prog_cc_c89=$ac_arg
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5855 rm -f core conftest.err conftest.$ac_objext
5856 test "x$ac_cv_prog_cc_c89" != "xno" && break
5858 rm -f conftest.$ac_ext
5863 case "x$ac_cv_prog_cc_c89" in
5865 { echo "$as_me:$LINENO: result: none needed" >&5
5866 echo "${ECHO_T}none needed" >&6; } ;;
5868 { echo "$as_me:$LINENO: result: unsupported" >&5
5869 echo "${ECHO_T}unsupported" >&6; } ;;
5871 CC="$CC $ac_cv_prog_cc_c89"
5872 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5873 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5878 ac_cpp='$CPP $CPPFLAGS'
5879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884 ac_cpp='$CXXCPP $CPPFLAGS'
5885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5888 if test -z "$CXX"; then
5889 if test -n "$CCC"; then
5892 if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_CXX+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 if test -n "$CXX"; then
5903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 if test -n "$CXX"; then
5924 { echo "$as_me:$LINENO: result: $CXX" >&5
5925 echo "${ECHO_T}$CXX" >&6; }
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5932 test -n "$CXX" && break
5935 if test -z "$CXX"; then
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 if test -n "$ac_ct_CXX"; then
5947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_CXX="$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5967 if test -n "$ac_ct_CXX"; then
5968 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5976 test -n "$ac_ct_CXX" && break
5979 if test "x$ac_ct_CXX" = x; then
5982 case $cross_compiling:$ac_tool_warned in
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet. If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5998 # Provide some information about the compiler.
5999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6000 ac_compiler=`set X $ac_compile; echo $2`
6001 { (ac_try="$ac_compiler --version >&5"
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compiler --version >&5") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011 { (ac_try="$ac_compiler -v >&5"
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compiler -v >&5") 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }
6021 { (ac_try="$ac_compiler -V >&5"
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compiler -V >&5") 2>&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }
6032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6064 grep -v '^ *+' conftest.er1 >conftest.err
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_try") 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6101 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6102 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6103 GXX=`test $ac_compiler_gnu = yes && echo yes`
6104 ac_test_CXXFLAGS=${CXXFLAGS+set}
6105 ac_save_CXXFLAGS=$CXXFLAGS
6106 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6107 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_cxx_g+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6112 ac_cxx_werror_flag=yes
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6139 grep -v '^ *+' conftest.er1 >conftest.err
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_prog_cxx_g=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6200 { (case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_try") 2>&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest.$ac_objext'
6210 { (case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_try") 2>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6241 rm -f conftest.$ac_objext
6242 if { (ac_try="$ac_compile"
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_prog_cxx_g=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6292 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6293 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6294 if test "$ac_test_CXXFLAGS" = set; then
6295 CXXFLAGS=$ac_save_CXXFLAGS
6296 elif test $ac_cv_prog_cxx_g = yes; then
6297 if test "$GXX" = yes; then
6303 if test "$GXX" = yes; then
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6315 { echo "$as_me:$LINENO: checking " >&5
6316 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6317 if test "${ac_cv_has_flex+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 for ac_prog in flex lex
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_LEX+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 if test -n "$LEX"; then
6330 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_LEX="$ac_prog"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 if test -n "$LEX"; then
6351 { echo "$as_me:$LINENO: result: $LEX" >&5
6352 echo "${ECHO_T}$LEX" >&6; }
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6359 test -n "$LEX" && break
6361 test -n "$LEX" || LEX=":"
6363 if test -z "$LEXLIB"
6365 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6366 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6367 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_check_lib_save_LIBS=$LIBS
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6379 /* Override any GCC internal prototype to avoid an error.
6380 Use char because int might match the return type of a GCC
6381 builtin and then its argument prototype would still apply. */
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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
6428 ac_cv_lib_fl_yywrap=yes
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 ac_cv_lib_fl_yywrap=no
6436 rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6440 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6441 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6442 if test $ac_cv_lib_fl_yywrap = yes; then
6445 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6446 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6447 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_check_lib_save_LIBS=$LIBS
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 /* Override any GCC internal prototype to avoid an error.
6460 Use char because int might match the return type of a GCC
6461 builtin and then its argument prototype would still apply. */
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (ac_try="$ac_link"
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_link") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (case "(($ac_try" in
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494 (eval "$ac_try") 2>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_try") 2>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_cv_lib_l_yywrap=yes
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 ac_cv_lib_l_yywrap=no
6516 rm -f core conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6518 LIBS=$ac_check_lib_save_LIBS
6520 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6521 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6522 if test $ac_cv_lib_l_yywrap = yes; then
6530 if test "x$LEX" != "x:"; then
6531 { echo "$as_me:$LINENO: checking lex output file root" >&5
6532 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6533 if test "${ac_cv_prog_lex_root+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 # The minimal lex program is just a single line: %%. But some broken lexes
6537 # (Solaris, I think it was) want two %% lines, so accommodate them.
6538 cat >conftest.l <<_ACEOF
6542 { (ac_try="$LEX conftest.l"
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$LEX conftest.l") 2>&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }
6552 if test -f lex.yy.c; then
6553 ac_cv_prog_lex_root=lex.yy
6554 elif test -f lexyy.c; then
6555 ac_cv_prog_lex_root=lexyy
6557 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6558 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6559 { (exit 1); exit 1; }; }
6562 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6563 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6565 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6567 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6568 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 # POSIX says lex can declare yytext either as a pointer or an array; the
6573 # default is implementation-dependent. Figure out which it is, since
6574 # not all implementations provide the %pointer and %array declarations.
6575 ac_cv_prog_lex_yytext_pointer=no
6576 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6578 LIBS="$LIBS $LEXLIB"
6579 cat >conftest.$ac_ext <<_ACEOF
6580 `cat $LEX_OUTPUT_ROOT.c`
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (ac_try="$ac_link"
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_link") 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6597 { (case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_try") 2>&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_try") 2>&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_prog_lex_yytext_pointer=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6627 rm -f "${LEX_OUTPUT_ROOT}.c"
6630 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6631 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6632 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6634 cat >>confdefs.h <<\_ACEOF
6635 #define YYTEXT_POINTER 1
6643 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6644 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6645 if test "$LEX" != "flex"; then
6646 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6647 echo "$as_me: error: flex not found but required" >&2;}
6648 { (exit 1); exit 1; }; }
6654 { echo "$as_me:$LINENO: checking " >&5
6655 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6656 if test "${llvm_cv_has_bison+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 for ac_prog in 'bison -y' byacc
6661 # Extract the first word of "$ac_prog", so it can be a program name with args.
6662 set dummy $ac_prog; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_YACC+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 if test -n "$YACC"; then
6669 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_YACC="$ac_prog"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 YACC=$ac_cv_prog_YACC
6689 if test -n "$YACC"; then
6690 { echo "$as_me:$LINENO: result: $YACC" >&5
6691 echo "${ECHO_T}$YACC" >&6; }
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6698 test -n "$YACC" && break
6700 test -n "$YACC" || YACC="yacc"
6703 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6704 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6705 if test "$YACC" != "bison -y"; then
6707 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6708 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6714 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6715 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6716 if test "${lt_cv_path_NM+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 if test -n "$NM"; then
6720 # Let the user override the test.
6723 lt_nm_to_check="${ac_tool_prefix}nm"
6724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6725 lt_nm_to_check="$lt_nm_to_check nm"
6727 for lt_tmp_nm in $lt_nm_to_check; do
6728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6731 test -z "$ac_dir" && ac_dir=.
6732 tmp_nm="$ac_dir/$lt_tmp_nm"
6733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6734 # Check to see if the nm accepts a BSD-compat flag.
6735 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6736 # nm: unknown option "B" ignored
6737 # Tru64's nm complains that /dev/null is an invalid object file
6738 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6739 */dev/null* | *'Invalid file or object type'*)
6740 lt_cv_path_NM="$tmp_nm -B"
6744 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6746 lt_cv_path_NM="$tmp_nm -p"
6750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6751 continue # so that we can try to find one that supports BSD flags
6760 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6763 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6764 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6769 { echo "$as_me:$LINENO: checking for GNU make" >&5
6770 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6771 if test "${llvm_cv_gnu_make_command+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 llvm_cv_gnu_make_command=''
6775 for a in "$MAKE" make gmake gnumake ; do
6776 if test -z "$a" ; then continue ; fi ;
6777 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6779 llvm_cv_gnu_make_command=$a ;
6784 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6785 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6786 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6790 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6791 echo "${ECHO_T}\"Not found\"" >&6; };
6795 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6796 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6798 if test "$LN_S" = "ln -s"; then
6799 { echo "$as_me:$LINENO: result: yes" >&5
6800 echo "${ECHO_T}yes" >&6; }
6802 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6803 echo "${ECHO_T}no, using $LN_S" >&6; }
6806 # Extract the first word of "cmp", so it can be a program name with args.
6807 set dummy cmp; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_CMP+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6838 if test -n "$CMP"; then
6839 { echo "$as_me:$LINENO: result: $CMP" >&5
6840 echo "${ECHO_T}$CMP" >&6; }
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6847 # Extract the first word of "cp", so it can be a program name with args.
6848 set dummy cp; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_CP+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6879 if test -n "$CP"; then
6880 { echo "$as_me:$LINENO: result: $CP" >&5
6881 echo "${ECHO_T}$CP" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 # Extract the first word of "date", so it can be a program name with args.
6889 set dummy date; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_DATE+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6919 DATE=$ac_cv_path_DATE
6920 if test -n "$DATE"; then
6921 { echo "$as_me:$LINENO: result: $DATE" >&5
6922 echo "${ECHO_T}$DATE" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6929 # Extract the first word of "find", so it can be a program name with args.
6930 set dummy find; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_FIND+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6960 FIND=$ac_cv_path_FIND
6961 if test -n "$FIND"; then
6962 { echo "$as_me:$LINENO: result: $FIND" >&5
6963 echo "${ECHO_T}$FIND" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 # Extract the first word of "grep", so it can be a program name with args.
6971 set dummy grep; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_GREP+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7001 GREP=$ac_cv_path_GREP
7002 if test -n "$GREP"; then
7003 { echo "$as_me:$LINENO: result: $GREP" >&5
7004 echo "${ECHO_T}$GREP" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7011 # Extract the first word of "mkdir", so it can be a program name with args.
7012 set dummy mkdir; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_MKDIR+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7042 MKDIR=$ac_cv_path_MKDIR
7043 if test -n "$MKDIR"; then
7044 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7045 echo "${ECHO_T}$MKDIR" >&6; }
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7052 # Extract the first word of "mv", so it can be a program name with args.
7053 set dummy mv; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_MV+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7084 if test -n "$MV"; then
7085 { echo "$as_me:$LINENO: result: $MV" >&5
7086 echo "${ECHO_T}$MV" >&6; }
7088 { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 RANLIB=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124 echo "${ECHO_T}$RANLIB" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_RANLIB="ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7170 if test "x$ac_ct_RANLIB" = x; then
7173 case $cross_compiling:$ac_tool_warned in
7175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176 whose name does not start with the host triplet. If you think this
7177 configuration is useful to you, please write to autoconf@gnu.org." >&5
7178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179 whose name does not start with the host triplet. If you think this
7180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181 ac_tool_warned=yes ;;
7183 RANLIB=$ac_ct_RANLIB
7186 RANLIB="$ac_cv_prog_RANLIB"
7189 # Extract the first word of "rm", so it can be a program name with args.
7190 set dummy rm; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_RM+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7221 if test -n "$RM"; then
7222 { echo "$as_me:$LINENO: result: $RM" >&5
7223 echo "${ECHO_T}$RM" >&6; }
7225 { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7230 # Extract the first word of "sed", so it can be a program name with args.
7231 set dummy sed; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_SED+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7262 if test -n "$SED"; then
7263 { echo "$as_me:$LINENO: result: $SED" >&5
7264 echo "${ECHO_T}$SED" >&6; }
7266 { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7271 # Extract the first word of "tar", so it can be a program name with args.
7272 set dummy tar; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_TAR+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7303 if test -n "$TAR"; then
7304 { echo "$as_me:$LINENO: result: $TAR" >&5
7305 echo "${ECHO_T}$TAR" >&6; }
7307 { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7312 # Extract the first word of "pwd", so it can be a program name with args.
7313 set dummy pwd; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_BINPWD+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7343 BINPWD=$ac_cv_path_BINPWD
7344 if test -n "$BINPWD"; then
7345 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7346 echo "${ECHO_T}$BINPWD" >&6; }
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7354 # Extract the first word of "Graphviz", so it can be a program name with args.
7355 set dummy Graphviz; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7385 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7386 if test -n "$GRAPHVIZ"; then
7387 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7388 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7390 { echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6; }
7395 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_GRAPHVIZ 1
7401 if test "$llvm_cv_os_type" = "MingW" ; then
7402 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7405 cat >>confdefs.h <<_ACEOF
7406 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7410 # Extract the first word of "dot", so it can be a program name with args.
7411 set dummy dot; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_DOT+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7442 if test -n "$DOT"; then
7443 { echo "$as_me:$LINENO: result: $DOT" >&5
7444 echo "${ECHO_T}$DOT" >&6; }
7446 { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7451 if test "$DOT" != "echo dot" ; then
7453 cat >>confdefs.h <<\_ACEOF
7457 if test "$llvm_cv_os_type" = "MingW" ; then
7458 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7461 cat >>confdefs.h <<_ACEOF
7462 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7466 for ac_prog in gv gsview32
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy $ac_prog; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_GV+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 if test -n "$GV"; then
7500 { echo "$as_me:$LINENO: result: $GV" >&5
7501 echo "${ECHO_T}$GV" >&6; }
7503 { echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6; }
7508 test -n "$GV" && break
7510 test -n "$GV" || GV="echo gv"
7512 if test "$GV" != "echo gv" ; then
7514 cat >>confdefs.h <<\_ACEOF
7518 if test "$llvm_cv_os_type" = "MingW" ; then
7519 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7522 cat >>confdefs.h <<_ACEOF
7523 #define LLVM_PATH_GV "$GV${EXEEXT}"
7527 # Extract the first word of "dotty", so it can be a program name with args.
7528 set dummy dotty; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_DOTTY+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7558 DOTTY=$ac_cv_path_DOTTY
7559 if test -n "$DOTTY"; then
7560 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7561 echo "${ECHO_T}$DOTTY" >&6; }
7563 { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7568 if test "$DOTTY" != "echo dotty" ; then
7570 cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_DOTTY 1
7574 if test "$llvm_cv_os_type" = "MingW" ; then
7575 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7578 cat >>confdefs.h <<_ACEOF
7579 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7585 # Extract the first word of "perl", so it can be a program name with args.
7586 set dummy perl; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_PERL+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7616 PERL=$ac_cv_path_PERL
7617 if test -n "$PERL"; then
7618 { echo "$as_me:$LINENO: result: $PERL" >&5
7619 echo "${ECHO_T}$PERL" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 if test "$PERL" != "none"; then
7627 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7628 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7629 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7630 { echo "$as_me:$LINENO: result: yes" >&5
7631 echo "${ECHO_T}yes" >&6; }
7634 { echo "$as_me:$LINENO: result: not found" >&5
7635 echo "${ECHO_T}not found" >&6; }
7640 if test x"$PERL" = xnone; then
7643 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7644 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7645 { (exit 1); exit 1; }; }
7651 # Find a good install program. We prefer a C program (faster),
7652 # so one script is as good as another. But avoid the broken or
7653 # incompatible versions:
7654 # SysV /etc/install, /usr/sbin/install
7655 # SunOS /usr/etc/install
7656 # IRIX /sbin/install
7658 # AmigaOS /C/install, which installs bootblocks on floppy discs
7659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7662 # OS/2's system install, which has a completely different semantic
7663 # ./install, which can be erroneously created by make from ./install.sh.
7664 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7666 if test -z "$INSTALL"; then
7667 if test "${ac_cv_path_install+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 # Account for people who put trailing slashes in PATH elements.
7677 ./ | .// | /cC/* | \
7678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7682 # OSF1 and SCO ODT 3.0 have their own names for install.
7683 # Don't use installbsd from OSF since it installs stuff as root
7685 for ac_prog in ginstall scoinst install; do
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7688 if test $ac_prog = install &&
7689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7690 # AIX install. It has an incompatible calling convention.
7692 elif test $ac_prog = install &&
7693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7694 # program-specific install script used by HP pwplus--don't use.
7697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7710 if test "${ac_cv_path_install+set}" = set; then
7711 INSTALL=$ac_cv_path_install
7713 # As a last resort, use the slow shell script. Don't cache a
7714 # value for INSTALL within a source directory, because that will
7715 # break other packages using the cache if that directory is
7716 # removed, or if the value is a relative name.
7717 INSTALL=$ac_install_sh
7720 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7721 echo "${ECHO_T}$INSTALL" >&6; }
7723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7724 # It thinks the first close brace ends the variable substitution.
7725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7732 # Extract the first word of "bzip2", so it can be a program name with args.
7733 set dummy bzip2; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_path_BZIP2+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7751 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 BZIP2=$ac_cv_path_BZIP2
7763 if test -n "$BZIP2"; then
7764 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7765 echo "${ECHO_T}$BZIP2" >&6; }
7767 { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7772 # Extract the first word of "doxygen", so it can be a program name with args.
7773 set dummy doxygen; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 DOXYGEN=$ac_cv_path_DOXYGEN
7803 if test -n "$DOXYGEN"; then
7804 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7805 echo "${ECHO_T}$DOXYGEN" >&6; }
7807 { echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6; }
7812 # Extract the first word of "groff", so it can be a program name with args.
7813 set dummy groff; ac_word=$2
7814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816 if test "${ac_cv_path_GROFF+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 GROFF=$ac_cv_path_GROFF
7843 if test -n "$GROFF"; then
7844 { echo "$as_me:$LINENO: result: $GROFF" >&5
7845 echo "${ECHO_T}$GROFF" >&6; }
7847 { echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6; }
7852 # Extract the first word of "gzip", so it can be a program name with args.
7853 set dummy gzip; ac_word=$2
7854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7856 if test "${ac_cv_path_GZIP+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 GZIP=$ac_cv_path_GZIP
7883 if test -n "$GZIP"; then
7884 { echo "$as_me:$LINENO: result: $GZIP" >&5
7885 echo "${ECHO_T}$GZIP" >&6; }
7887 { echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6; }
7892 # Extract the first word of "pod2html", so it can be a program name with args.
7893 set dummy pod2html; ac_word=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_path_POD2HTML+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 POD2HTML=$ac_cv_path_POD2HTML
7923 if test -n "$POD2HTML"; then
7924 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7925 echo "${ECHO_T}$POD2HTML" >&6; }
7927 { echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6; }
7932 # Extract the first word of "pod2man", so it can be a program name with args.
7933 set dummy pod2man; ac_word=$2
7934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936 if test "${ac_cv_path_POD2MAN+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 POD2MAN=$ac_cv_path_POD2MAN
7963 if test -n "$POD2MAN"; then
7964 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7965 echo "${ECHO_T}$POD2MAN" >&6; }
7967 { echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6; }
7972 # Extract the first word of "runtest", so it can be a program name with args.
7973 set dummy runtest; ac_word=$2
7974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7976 if test "${ac_cv_path_RUNTEST+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7991 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 RUNTEST=$ac_cv_path_RUNTEST
8003 if test -n "$RUNTEST"; then
8004 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8005 echo "${ECHO_T}$RUNTEST" >&6; }
8007 { echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6; }
8014 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8015 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8017 # Check whether --with-tclinclude was given.
8018 if test "${with_tclinclude+set}" = set; then
8019 withval=$with_tclinclude; with_tclinclude=${withval}
8024 if test "${ac_cv_path_tclsh+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 if test x"${with_tclinclude}" != x ; then
8029 if test -f ${with_tclinclude}/tclsh ; then
8030 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8031 elif test -f ${with_tclinclude}/src/tclsh ; then
8032 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8034 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8035 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8036 { (exit 1); exit 1; }; }
8040 if test x"${ac_cv_path_tclsh}" = x ; then
8041 { echo "$as_me:$LINENO: result: none" >&5
8042 echo "${ECHO_T}none" >&6; }
8043 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
8045 # Extract the first word of "$ac_prog", so it can be a program name with args.
8046 set dummy $ac_prog; ac_word=$2
8047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_TCLSH+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 TCLSH=$ac_cv_path_TCLSH
8076 if test -n "$TCLSH"; then
8077 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8078 echo "${ECHO_T}$TCLSH" >&6; }
8080 { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8085 test -n "$TCLSH" && break
8088 if test x"${TCLSH}" = x ; then
8089 ac_cv_path_tclsh='';
8091 ac_cv_path_tclsh="${TCLSH}";
8094 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8095 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8096 TCLSH="${ac_cv_path_tclsh}"
8102 # Extract the first word of "zip", so it can be a program name with args.
8103 set dummy zip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_path_ZIP+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 if test -n "$ZIP"; then
8134 { echo "$as_me:$LINENO: result: $ZIP" >&5
8135 echo "${ECHO_T}$ZIP" >&6; }
8137 { echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6; }
8142 for ac_prog in ocamlc.opt ocamlc
8144 # Extract the first word of "$ac_prog", so it can be a program name with args.
8145 set dummy $ac_prog; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_path_OCAMLC+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 OCAMLC=$ac_cv_path_OCAMLC
8175 if test -n "$OCAMLC"; then
8176 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8177 echo "${ECHO_T}$OCAMLC" >&6; }
8179 { echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6; }
8184 test -n "$OCAMLC" && break
8187 for ac_prog in ocamlopt.opt ocamlopt
8189 # Extract the first word of "$ac_prog", so it can be a program name with args.
8190 set dummy $ac_prog; ac_word=$2
8191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8208 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 OCAMLOPT=$ac_cv_path_OCAMLOPT
8220 if test -n "$OCAMLOPT"; then
8221 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8222 echo "${ECHO_T}$OCAMLOPT" >&6; }
8224 { echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6; }
8229 test -n "$OCAMLOPT" && break
8232 for ac_prog in ocamldep.opt ocamldep
8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
8235 set dummy $ac_prog; ac_word=$2
8236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 OCAMLDEP=$ac_cv_path_OCAMLDEP
8265 if test -n "$OCAMLDEP"; then
8266 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8267 echo "${ECHO_T}$OCAMLDEP" >&6; }
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8274 test -n "$OCAMLDEP" && break
8277 for ac_prog in ocamldoc.opt ocamldoc
8279 # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 OCAMLDOC=$ac_cv_path_OCAMLDOC
8310 if test -n "$OCAMLDOC"; then
8311 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8312 echo "${ECHO_T}$OCAMLDOC" >&6; }
8314 { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8319 test -n "$OCAMLDOC" && break
8323 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8324 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8325 if test "${llvm_cv_link_use_r+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 ac_cpp='$CPP $CPPFLAGS'
8330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8335 CFLAGS="$CFLAGS -Wl,-R."
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8346 int main() { return 0; }
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (ac_try="$ac_link"
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_link") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest$ac_exeext'
8376 { (case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_try") 2>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 llvm_cv_link_use_r=yes
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 llvm_cv_link_use_r=no
8393 rm -f core conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
8397 ac_cpp='$CPP $CPPFLAGS'
8398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8404 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8405 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8406 if test "$llvm_cv_link_use_r" = yes ; then
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_LINK_R 1
8417 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8419 if test "${ac_cv_c_const+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8432 /* FIXME: Include the comments suggested by Paul. */
8434 /* Ultrix mips cc rejects this. */
8435 typedef int charset[2];
8437 /* SunOS 4.1.1 cc rejects this. */
8438 char const *const *ccp;
8440 /* NEC SVR4.0.2 mips cc rejects this. */
8441 struct point {int x, y;};
8442 static struct point const zero = {0,0};
8443 /* AIX XL C 1.02.0.0 rejects this.
8444 It does not let you subtract one const X* pointer from another in
8445 an arm of an if-expression whose if-part is not a constant
8447 const char *g = "string";
8448 ccp = &g + (g ? g-g : 0);
8449 /* HPUX 7.0 cc rejects these. */
8452 ccp = (char const *const *) p;
8453 { /* SCO 3.2v4 cc rejects this. */
8455 char const *s = 0 ? (char *) 0 : (char const *) 0;
8460 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8462 const int *foo = &x[0];
8465 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8466 typedef const int *iptr;
8470 { /* AIX XL C 1.02.0.0 rejects this saying
8471 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8472 struct s { int j; const int *ap[3]; };
8473 struct s *b; b->j = 5;
8475 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8479 return !x[0] && !zero.x;
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_try") 2>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8531 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8532 if test $ac_cv_c_const = no; then
8534 cat >>confdefs.h <<\_ACEOF
8546 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8547 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8548 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8549 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 #include <sys/types.h>
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 eval "$as_ac_Header=yes"
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 eval "$as_ac_Header=no"
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 ac_res=`eval echo '${'$as_ac_Header'}'`
8616 { echo "$as_me:$LINENO: result: $ac_res" >&5
8617 echo "${ECHO_T}$ac_res" >&6; }
8618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8623 ac_header_dirent=$ac_hdr; break
8627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8628 if test $ac_header_dirent = dirent.h; then
8629 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8630 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8631 if test "${ac_cv_search_opendir+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 ac_func_search_save_LIBS=$LIBS
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8642 /* Override any GCC internal prototype to avoid an error.
8643 Use char because int might match the return type of a GCC
8644 builtin and then its argument prototype would still apply. */
8657 for ac_lib in '' dir; do
8658 if test -z "$ac_lib"; then
8659 ac_res="none required"
8662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (ac_try="$ac_link"
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_link") 2>conftest.er1
8673 grep -v '^ *+' conftest.er1 >conftest.err
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_try") 2>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest$ac_exeext'
8689 { (case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_try") 2>&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_search_opendir=$ac_res
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8706 rm -f core conftest.err conftest.$ac_objext \
8708 if test "${ac_cv_search_opendir+set}" = set; then
8712 if test "${ac_cv_search_opendir+set}" = set; then
8715 ac_cv_search_opendir=no
8718 LIBS=$ac_func_search_save_LIBS
8720 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8721 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8722 ac_res=$ac_cv_search_opendir
8723 if test "$ac_res" != no; then
8724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8729 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8731 if test "${ac_cv_search_opendir+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 ac_func_search_save_LIBS=$LIBS
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8742 /* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8757 for ac_lib in '' x; do
8758 if test -z "$ac_lib"; then
8759 ac_res="none required"
8762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (ac_try="$ac_link"
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_link") 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779 { (case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_try") 2>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_try") 2>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 ac_cv_search_opendir=$ac_res
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8806 rm -f core conftest.err conftest.$ac_objext \
8808 if test "${ac_cv_search_opendir+set}" = set; then
8812 if test "${ac_cv_search_opendir+set}" = set; then
8815 ac_cv_search_opendir=no
8818 LIBS=$ac_func_search_save_LIBS
8820 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8821 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8822 ac_res=$ac_cv_search_opendir
8823 if test "$ac_res" != no; then
8824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8831 for ac_header in dlfcn.h
8833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 ac_res=`eval echo '${'$as_ac_Header'}'`
8841 { echo "$as_me:$LINENO: result: $ac_res" >&5
8842 echo "${ECHO_T}$ac_res" >&6; }
8844 # Is the header compilable?
8845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8847 cat >conftest.$ac_ext <<_ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 $ac_includes_default
8854 #include <$ac_header>
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_header_compiler=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_header_compiler=no
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8900 echo "${ECHO_T}$ac_header_compiler" >&6; }
8902 # Is the header present?
8903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 #include <$ac_header>
8913 if { (ac_try="$ac_cpp conftest.$ac_ext"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } >/dev/null; then
8926 if test -s conftest.err; then
8927 ac_cpp_err=$ac_c_preproc_warn_flag
8928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8935 if test -z "$ac_cpp_err"; then
8936 ac_header_preproc=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_header_preproc=no
8944 rm -f conftest.err conftest.$ac_ext
8945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8946 echo "${ECHO_T}$ac_header_preproc" >&6; }
8948 # So? What about this header?
8949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8955 ac_header_preproc=yes
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8971 ## ----------------------------------- ##
8972 ## Report this to llvmbugs@cs.uiuc.edu ##
8973 ## ----------------------------------- ##
8975 ) | sed "s/^/$as_me: WARNING: /" >&2
8978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 eval "$as_ac_Header=\$ac_header_preproc"
8985 ac_res=`eval echo '${'$as_ac_Header'}'`
8986 { echo "$as_me:$LINENO: result: $ac_res" >&5
8987 echo "${ECHO_T}$ac_res" >&6; }
8990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8991 cat >>confdefs.h <<_ACEOF
8992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8999 # Check whether --enable-ltdl-install was given.
9000 if test "${enable_ltdl_install+set}" = set; then
9001 enableval=$enable_ltdl_install;
9005 if test x"${enable_ltdl_install-no}" != xno; then
9007 INSTALL_LTDL_FALSE='#'
9009 INSTALL_LTDL_TRUE='#'
9013 if test x"${enable_ltdl_convenience-no}" != xno; then
9014 CONVENIENCE_LTDL_TRUE=
9015 CONVENIENCE_LTDL_FALSE='#'
9017 CONVENIENCE_LTDL_TRUE='#'
9018 CONVENIENCE_LTDL_FALSE=
9022 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9023 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9025 libname_spec='lib$name'
9033 shlibpath_overrides_runpath=unknown
9035 dynamic_linker="$host_os ld.so"
9036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9037 if test "$GCC" = yes; then
9038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9039 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9040 # if the path contains ";" then we assume it to be the separator
9041 # otherwise default to the standard path separator (i.e. ":") - it is
9042 # assumed that no part of a normal pathname contains ";" but that should
9043 # okay in the real world where ";" in dirpaths is itself problematic.
9044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9051 need_lib_prefix=unknown
9052 hardcode_into_libs=no
9054 # when you set need_version to no, make sure it does not cause -set_version
9055 # flags to be left without arguments
9056 need_version=unknown
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9062 shlibpath_var=LIBPATH
9064 # AIX 3 has no versioning support, so we append a major version to the name.
9065 soname_spec='${libname}${release}${shared_ext}$major'
9072 hardcode_into_libs=yes
9073 if test "$host_cpu" = ia64; then
9074 # AIX 5 supports IA64
9075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9076 shlibpath_var=LD_LIBRARY_PATH
9078 # With GCC up to 2.95.x, collect2 would create an import file
9079 # for dependence libraries. The import file would start with
9080 # the line `#! .'. This would cause the generated library to
9081 # depend on `.', always an invalid library. This was fixed in
9082 # development snapshots of GCC prior to 3.0.
9084 aix4 | aix4.[01] | aix4.[01].*)
9085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9087 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9095 # soname into executable. Probably we can add versioning support to
9096 # collect2, so additional links can be useful in future.
9097 if test "$aix_use_runtimelinking" = yes; then
9098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9099 # instead of lib<name>.a to let people know that these are not
9100 # typical AIX shared libraries.
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 # We preserve .a as extension for shared libraries through AIX4.2
9104 # and later when we are not doing run time linking.
9105 library_names_spec='${libname}${release}.a $libname.a'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9108 shlibpath_var=LIBPATH
9113 library_names_spec='$libname.ixlibrary $libname.a'
9114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9115 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'
9119 library_names_spec='${libname}${shared_ext}'
9120 dynamic_linker="$host_os ld.so"
9121 shlibpath_var=LIBRARY_PATH
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9133 # the default ld.so.conf also contains /usr/contrib/lib and
9134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9135 # libtool to hard-code these into programs
9138 cygwin* | mingw* | pw32*)
9139 version_type=windows
9144 case $GCC,$host_os in
9145 yes,cygwin* | yes,mingw* | yes,pw32*)
9146 library_names_spec='$libname.dll.a'
9147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9148 postinstall_cmds='base_file=`basename \${file}`~
9149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9150 dldir=$destdir/`dirname \$dlpath`~
9151 test -d \$dldir || mkdir -p \$dldir~
9152 $install_prog $dir/$dlname \$dldir/$dlname~
9153 chmod a+x \$dldir/$dlname'
9154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9155 dlpath=$dir/\$dldll~
9157 shlibpath_overrides_runpath=yes
9161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9163 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9166 # MinGW DLLs use traditional 'lib' prefix
9167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9169 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9170 # It is most probably a Windows format PATH printed by
9171 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9172 # path with ; separators, and with drive letters. We can handle the
9173 # drive letters (cygwin fileutils understands them), so leave them,
9174 # especially as we might pass files found there to a mingw objdump,
9175 # which wouldn't understand a cygwinified path. Ahh.
9176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9182 # pw32 DLLs use 'pw' prefix rather than 'lib'
9183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9192 dynamic_linker='Win32 ld.exe'
9193 # FIXME: first we should search . and the directory the executable is in
9197 darwin* | rhapsody*)
9198 dynamic_linker="$host_os dyld"
9202 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9203 soname_spec='${libname}${release}${major}$shared_ext'
9204 shlibpath_overrides_runpath=yes
9205 shlibpath_var=DYLD_LIBRARY_PATH
9206 shrext_cmds='.dylib'
9207 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9208 if test "$GCC" = yes; then
9209 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"`
9211 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 shlibpath_var=LD_LIBRARY_PATH
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=no
9237 hardcode_into_libs=yes
9238 dynamic_linker='GNU ld.so'
9241 freebsd* | dragonfly*)
9242 # DragonFly does not have aout. When/if they implement a new
9243 # versioning mechanism, adjust this.
9244 if test -x /usr/bin/objformat; then
9245 objformat=`/usr/bin/objformat`
9248 freebsd[123]*) objformat=aout ;;
9252 version_type=freebsd-$objformat
9253 case $version_type in
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9264 shlibpath_var=LD_LIBRARY_PATH
9267 shlibpath_overrides_runpath=yes
9269 freebsd3.[01]* | freebsdelf3.[01]*)
9270 shlibpath_overrides_runpath=yes
9271 hardcode_into_libs=yes
9273 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9274 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9275 shlibpath_overrides_runpath=no
9276 hardcode_into_libs=yes
9278 freebsd*) # from 4.6 on
9279 shlibpath_overrides_runpath=yes
9280 hardcode_into_libs=yes
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 hardcode_into_libs=yes
9295 hpux9* | hpux10* | hpux11*)
9296 # Give a soname corresponding to the major version so that dld.sl refuses to
9297 # link against other versions.
9304 hardcode_into_libs=yes
9305 dynamic_linker="$host_os dld.so"
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 if test "X$HPUX_IA64_MODE" = X32; then
9311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9319 hardcode_into_libs=yes
9320 dynamic_linker="$host_os dld.sl"
9321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9330 dynamic_linker="$host_os dld.sl"
9331 shlibpath_var=SHLIB_PATH
9332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9338 postinstall_cmds='chmod 555 $lib'
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 shlibpath_overrides_runpath=no
9350 hardcode_into_libs=yes
9353 irix5* | irix6* | nonstopux*)
9355 nonstopux*) version_type=nonstopux ;;
9357 if test "$lt_cv_prog_gnu_ld" = yes; then
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9368 irix5* | nonstopux*)
9372 case $LD in # libtool.m4 will add one of these switches to LD
9373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9374 libsuff= shlibsuff= libmagic=32-bit;;
9375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9376 libsuff=32 shlibsuff=N32 libmagic=N32;;
9377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9379 *) libsuff= shlibsuff= libmagic=never-match;;
9383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9384 shlibpath_overrides_runpath=no
9385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9387 hardcode_into_libs=yes
9390 # No shared lib support for Linux oldld, aout, or coff.
9391 linux*oldld* | linux*aout* | linux*coff*)
9395 # This must be Linux ELF.
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 # This implies no fast_install, which is unacceptable.
9406 # Some rework will be needed to allow for fast_install
9407 # before this can be enabled.
9408 hardcode_into_libs=yes
9410 # Append ld.so.conf contents to the search path
9411 if test -f /etc/ld.so.conf; then
9412 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' ' '`
9413 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9416 # We used to test for /lib/ld.so.1 and disable shared libraries on
9417 # powerpc, because MkLinux only supported shared libraries with the
9418 # GNU dynamic linker. Since this was broken with cross compilers,
9419 # most powerpc-linux boxes support dynamic linking these days and
9420 # people can always --disable-shared, the test was removed, and we
9421 # assume the GNU/Linux dynamic linker is in use.
9422 dynamic_linker='GNU/Linux ld.so'
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=no
9433 hardcode_into_libs=yes
9434 dynamic_linker='GNU ld.so'
9441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444 dynamic_linker='NetBSD (a.out) ld.so'
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 dynamic_linker='NetBSD ld.elf_so'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 shlibpath_overrides_runpath=yes
9452 hardcode_into_libs=yes
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=yes
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=yes
9474 sys_lib_dlsearch_path_spec="/usr/lib"
9476 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9478 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9479 *) need_version=no ;;
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9483 shlibpath_var=LD_LIBRARY_PATH
9484 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9486 openbsd2.[89] | openbsd2.[89].*)
9487 shlibpath_overrides_runpath=no
9490 shlibpath_overrides_runpath=yes
9494 shlibpath_overrides_runpath=yes
9499 libname_spec='$name'
9502 library_names_spec='$libname${shared_ext} $libname.a'
9503 dynamic_linker='OS/2 ld.exe'
9504 shlibpath_var=LIBPATH
9507 osf3* | osf4* | osf5*)
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9515 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 shlibpath_overrides_runpath=yes
9526 hardcode_into_libs=yes
9527 # ldd complains unless libraries are executable
9528 postinstall_cmds='chmod +x $lib'
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9535 shlibpath_var=LD_LIBRARY_PATH
9536 shlibpath_overrides_runpath=yes
9537 if test "$with_gnu_ld" = yes; then
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 case $host_vendor in
9550 shlibpath_overrides_runpath=no
9552 export_dynamic_flag_spec='${wl}-Blargedynsym'
9553 runpath_var=LD_RUN_PATH
9561 shlibpath_overrides_runpath=no
9562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9568 if test -d /usr/nec ;then
9570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9571 soname_spec='$libname${shared_ext}.$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9577 version_type=freebsd-elf
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 hardcode_into_libs=yes
9584 if test "$with_gnu_ld" = yes; then
9585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9586 shlibpath_overrides_runpath=no
9588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9589 shlibpath_overrides_runpath=yes
9592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9596 sys_lib_dlsearch_path_spec='/usr/lib'
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9610 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9611 echo "${ECHO_T}$dynamic_linker" >&6; }
9612 test "$dynamic_linker" = no && can_build_shared=no
9614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9615 if test "$GCC" = yes; then
9616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9620 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9621 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9622 if test "${libltdl_cv_shlibext+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 eval libltdl_cv_shlibext=$shrext_cmds
9630 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9631 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9632 if test -n "$libltdl_cv_shlibext"; then
9634 cat >>confdefs.h <<_ACEOF
9635 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9641 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9642 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9643 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 libltdl_cv_shlibpath_var="$shlibpath_var"
9648 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9649 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9650 if test -n "$libltdl_cv_shlibpath_var"; then
9652 cat >>confdefs.h <<_ACEOF
9653 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9659 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9660 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9661 if test "${libltdl_cv_sys_search_path+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9666 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9667 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9668 if test -n "$libltdl_cv_sys_search_path"; then
9670 for dir in $libltdl_cv_sys_search_path; do
9671 if test -z "$sys_search_path"; then
9672 sys_search_path="$dir"
9674 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9678 cat >>confdefs.h <<_ACEOF
9679 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9684 { echo "$as_me:$LINENO: checking for objdir" >&5
9685 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9686 if test "${libltdl_cv_objdir+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 libltdl_cv_objdir="$objdir"
9690 if test -n "$objdir"; then
9693 rm -f .libs 2>/dev/null
9694 mkdir .libs 2>/dev/null
9695 if test -d .libs; then
9696 libltdl_cv_objdir=.libs
9698 # MS-DOS does not allow filenames that begin with a dot.
9699 libltdl_cv_objdir=_libs
9701 rmdir .libs 2>/dev/null
9705 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9706 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9708 cat >>confdefs.h <<_ACEOF
9709 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9717 # Check for command to grab the raw symbol name followed by C symbol from nm.
9718 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9719 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9720 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 # These are sane defaults that work on at least a few old systems.
9725 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9727 # Character class describing NM global symbol codes.
9728 symcode='[BCDEGRST]'
9730 # Regexp to match symbols that can be accessed directly from C.
9731 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9733 # Transform an extracted symbol line into a proper C declaration
9734 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9736 # Transform an extracted symbol line into symbol name and symbol address
9737 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'"
9739 # Define system-specific variables.
9744 cygwin* | mingw* | pw32*)
9745 symcode='[ABCDGISTW]'
9747 hpux*) # Its linker distinguishes data from code symbols
9748 if test "$host_cpu" = ia64; then
9749 symcode='[ABCDEGRST]'
9751 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9752 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'"
9755 if test "$host_cpu" = ia64; then
9756 symcode='[ABCDGIRSTW]'
9757 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9758 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'"
9762 symcode='[BCDEGRST]'
9765 symcode='[BCDEGQRST]'
9776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9784 # Handle CRLF in mingw tool chain
9788 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9792 # If we're using GNU nm, then use its standard symbol codes.
9793 case `$NM -V 2>&1` in
9794 *GNU* | *'with BFD'*)
9795 symcode='[ABCDGIRSTW]' ;;
9798 # Try without a prefix undercore, then with it.
9799 for ac_symprfx in "" "_"; do
9801 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9802 symxfrm="\\1 $ac_symprfx\\2 \\2"
9804 # Write the raw and C identifiers.
9805 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9807 # Check to see that the pipe works correctly.
9811 cat > conftest.$ac_ext <<EOF
9816 void nm_test_func(){}
9820 int main(){nm_test_var='a';nm_test_func();return(0);}
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824 (eval $ac_compile) 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; then
9828 # Now try to grab the symbols.
9830 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9831 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && test -s "$nlist"; then
9835 # Try sorting and uniquifying the output.
9836 if sort "$nlist" | uniq > "$nlist"T; then
9837 mv -f "$nlist"T "$nlist"
9842 # Make sure that we snagged all the symbols we need.
9843 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9844 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9845 cat <<EOF > conftest.$ac_ext
9851 # Now generate the symbol file.
9852 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9854 cat <<EOF >> conftest.$ac_ext
9855 #if defined (__STDC__) && __STDC__
9856 # define lt_ptr_t void *
9858 # define lt_ptr_t char *
9862 /* The mapping between symbol names and symbols. */
9867 lt_preloaded_symbols[] =
9870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9871 cat <<\EOF >> conftest.$ac_ext
9879 # Now try linking the two files.
9880 mv conftest.$ac_objext conftstm.$ac_objext
9881 lt_save_LIBS="$LIBS"
9882 lt_save_CFLAGS="$CFLAGS"
9883 LIBS="conftstm.$ac_objext"
9884 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9886 (eval $ac_link) 2>&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9892 LIBS="$lt_save_LIBS"
9893 CFLAGS="$lt_save_CFLAGS"
9895 echo "cannot find nm_test_func in $nlist" >&5
9898 echo "cannot find nm_test_var in $nlist" >&5
9901 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9904 echo "$progname: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9907 rm -f conftest* conftst*
9909 # Do not use the global_symbol_pipe unless it works.
9910 if test "$pipe_works" = yes; then
9913 lt_cv_sys_global_symbol_pipe=
9919 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9920 lt_cv_sys_global_symbol_to_cdecl=
9922 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9923 { echo "$as_me:$LINENO: result: failed" >&5
9924 echo "${ECHO_T}failed" >&6; }
9926 { echo "$as_me:$LINENO: result: ok" >&5
9927 echo "${ECHO_T}ok" >&6; }
9931 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9932 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9933 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9937 libltdl_cv_preloaded_symbols=yes
9939 libltdl_cv_preloaded_symbols=no
9943 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9944 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9945 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9947 cat >>confdefs.h <<\_ACEOF
9948 #define HAVE_PRELOADED_SYMBOLS 1
9956 ac_cpp='$CPP $CPPFLAGS'
9957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9962 { echo "$as_me:$LINENO: checking for shl_load" >&5
9963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9964 if test "${ac_cv_func_shl_load+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9975 #define shl_load innocuous_shl_load
9977 /* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char shl_load (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
9983 # include <limits.h>
9985 # include <assert.h>
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9997 /* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000 #if defined __stub_shl_load || defined __stub___shl_load
10007 return shl_load ();
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_func_shl_load=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_func_shl_load=no
10054 rm -f core conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10057 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10058 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10059 if test $ac_cv_func_shl_load = yes; then
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_SHL_LOAD 1
10066 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10067 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 ac_check_lib_save_LIBS=$LIBS
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10090 return shl_load ();
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10104 grep -v '^ *+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_lib_dld_shl_load=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_lib_dld_shl_load=no
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10143 if test $ac_cv_lib_dld_shl_load = yes; then
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_SHL_LOAD 1
10149 LIBADD_DL="$LIBADD_DL -ldld"
10151 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10152 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_lib_dl_dlopen=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_lib_dl_dlopen=no
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10228 if test $ac_cv_lib_dl_dlopen = yes; then
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_LIBDL 1
10234 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 # include <dlfcn.h>
10254 rm -f conftest.$ac_objext conftest$ac_exeext
10255 if { (ac_try="$ac_link"
10256 case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_link") 2>conftest.er1
10263 grep -v '^ *+' conftest.er1 >conftest.err
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10269 { (case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_try") 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; } &&
10278 { ac_try='test -s conftest$ac_exeext'
10279 { (case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_try") 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_LIBDL 1
10292 libltdl_cv_func_dlopen="yes"
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10298 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lsvld $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest$ac_exeext'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_lib_svld_dlopen=yes
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_cv_lib_svld_dlopen=no
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 LIBS=$ac_check_lib_save_LIBS
10372 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10373 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10374 if test $ac_cv_lib_svld_dlopen = yes; then
10376 cat >>confdefs.h <<\_ACEOF
10377 #define HAVE_LIBDL 1
10380 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10382 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10383 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10384 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_check_lib_save_LIBS=$LIBS
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10406 return dld_link ();
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_lib_dld_dld_link=yes
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_cv_lib_dld_dld_link=no
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10457 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10458 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10459 if test $ac_cv_lib_dld_dld_link = yes; then
10461 cat >>confdefs.h <<\_ACEOF
10465 LIBADD_DL="$LIBADD_DL -ldld"
10467 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10468 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10469 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 cat >conftest.$ac_ext <<_ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10480 #define _dyld_func_lookup innocuous__dyld_func_lookup
10482 /* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char _dyld_func_lookup (); below.
10484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10485 <limits.h> exists even on freestanding compilers. */
10488 # include <limits.h>
10490 # include <assert.h>
10493 #undef _dyld_func_lookup
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10501 char _dyld_func_lookup ();
10502 /* The GNU C library defines this for functions which it implements
10503 to always fail with ENOSYS. Some functions are actually named
10504 something starting with __ and the normal name is an alias. */
10505 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10512 return _dyld_func_lookup ();
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_func__dyld_func_lookup=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_func__dyld_func_lookup=no
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10562 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10563 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10564 if test $ac_cv_func__dyld_func_lookup = yes; then
10566 cat >>confdefs.h <<\_ACEOF
10567 #define HAVE_DYLD 1
10581 rm -f core conftest.err conftest.$ac_objext \
10582 conftest$ac_exeext conftest.$ac_ext
10593 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10595 lt_save_LIBS="$LIBS"
10596 LIBS="$LIBS $LIBADD_DL"
10598 for ac_func in dlerror
10600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10614 #define $ac_func innocuous_$ac_func
10616 /* System header to define __stub macros and hopefully few prototypes,
10617 which can conflict with char $ac_func (); below.
10618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10619 <limits.h> exists even on freestanding compilers. */
10622 # include <limits.h>
10624 # include <assert.h>
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10636 /* The GNU C library defines this for functions which it implements
10637 to always fail with ENOSYS. Some functions are actually named
10638 something starting with __ and the normal name is an alias. */
10639 #if defined __stub_$ac_func || defined __stub___$ac_func
10646 return $ac_func ();
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (ac_try="$ac_link"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_link") 2>conftest.er1
10660 grep -v '^ *+' conftest.er1 >conftest.err
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10666 { (case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_try") 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest$ac_exeext'
10676 { (case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_try") 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 eval "$as_ac_var=yes"
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 eval "$as_ac_var=no"
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10696 ac_res=`eval echo '${'$as_ac_var'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10699 if test `eval echo '${'$as_ac_var'}'` = yes; then
10700 cat >>confdefs.h <<_ACEOF
10701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10707 LIBS="$lt_save_LIBS"
10710 ac_cpp='$CPP $CPPFLAGS'
10711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10717 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10718 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10719 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 ac_cv_sys_symbol_underscore=no
10723 cat > conftest.$ac_ext <<EOF
10724 void nm_test_func(){}
10725 int main(){nm_test_func;return 0;}
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; then
10732 # Now try to grab the symbols.
10733 ac_nlist=conftest.nm
10734 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10735 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } && test -s "$ac_nlist"; then
10739 # See whether the symbols have a leading underscore.
10740 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10741 ac_cv_sys_symbol_underscore=yes
10743 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10746 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10750 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10753 echo "configure: failed program was:" >&5
10759 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10760 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10763 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10764 if test x"$libltdl_cv_func_dlopen" = xyes ||
10765 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10766 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10767 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10768 if test "${libltdl_cv_need_uscore+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 libltdl_cv_need_uscore=unknown
10773 LIBS="$LIBS $LIBADD_DL"
10774 if test "$cross_compiling" = yes; then :
10775 libltdl_cv_need_uscore=cross
10777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10778 lt_status=$lt_dlunknown
10779 cat > conftest.$ac_ext <<EOF
10780 #line 10780 "configure"
10781 #include "confdefs.h"
10790 # define LT_DLGLOBAL RTLD_GLOBAL
10793 # define LT_DLGLOBAL DL_GLOBAL
10795 # define LT_DLGLOBAL 0
10799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10800 find out it does not work in some platform. */
10801 #ifndef LT_DLLAZY_OR_NOW
10803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10806 # define LT_DLLAZY_OR_NOW DL_LAZY
10809 # define LT_DLLAZY_OR_NOW RTLD_NOW
10812 # define LT_DLLAZY_OR_NOW DL_NOW
10814 # define LT_DLLAZY_OR_NOW 0
10822 extern "C" void exit (int);
10825 void fnord() { int i=42;}
10828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10829 int status = $lt_dlunknown;
10833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10835 /* dlclose (self); */
10843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844 (eval $ac_link) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10848 (./conftest; exit; ) >&5 2>/dev/null
10850 case x$lt_status in
10851 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10852 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10853 x$lt_dlunknown|x*) ;;
10856 # compilation failed
10865 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10866 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10870 if test x"$libltdl_cv_need_uscore" = xyes; then
10872 cat >>confdefs.h <<\_ACEOF
10873 #define NEED_USCORE 1
10879 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10880 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10881 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 # PORTME does your system automatically load deplibs for dlopen?
10885 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10886 # For now, we just catch OSes we know something about -- in the
10887 # future, we'll try test this programmatically.
10888 libltdl_cv_sys_dlopen_deplibs=unknown
10890 aix3*|aix4.1.*|aix4.2.*)
10891 # Unknown whether this is true for these versions of AIX, but
10892 # we want this `case' here to explicitly catch those versions.
10893 libltdl_cv_sys_dlopen_deplibs=unknown
10896 libltdl_cv_sys_dlopen_deplibs=yes
10899 # Assuming the user has installed a libdl from somewhere, this is true
10900 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10901 libltdl_cv_sys_dlopen_deplibs=yes
10903 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10904 # GNU and its variants, using gnu ld.so (Glibc)
10905 libltdl_cv_sys_dlopen_deplibs=yes
10908 libltdl_cv_sys_dlopen_deplibs=yes
10911 libltdl_cv_sys_dlopen_deplibs=yes
10913 irix[12345]*|irix6.[01]*)
10914 # Catch all versions of IRIX before 6.2, and indicate that we don't
10915 # know how it worked for any of those versions.
10916 libltdl_cv_sys_dlopen_deplibs=unknown
10919 # The case above catches anything before 6.2, and it's known that
10920 # at 6.2 and later dlopen does load deplibs.
10921 libltdl_cv_sys_dlopen_deplibs=yes
10924 libltdl_cv_sys_dlopen_deplibs=yes
10927 libltdl_cv_sys_dlopen_deplibs=yes
10930 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10931 # it did *not* use an RPATH in a shared library to find objects the
10932 # library depends on, so we explictly say `no'.
10933 libltdl_cv_sys_dlopen_deplibs=no
10935 osf5.0|osf5.0a|osf5.1)
10936 # dlopen *does* load deplibs and with the right loader patch applied
10937 # it even uses RPATH in a shared library to search for shared objects
10938 # that the library depends on, but there's no easy way to know if that
10939 # patch is installed. Since this is the case, all we can really
10940 # say is unknown -- it depends on the patch being installed. If
10941 # it is, this changes to `yes'. Without it, it would be `no'.
10942 libltdl_cv_sys_dlopen_deplibs=unknown
10945 # the two cases above should catch all versions of osf <= 5.1. Read
10946 # the comments above for what we know about them.
10947 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10948 # is used to find them so we can finally say `yes'.
10949 libltdl_cv_sys_dlopen_deplibs=yes
10952 libltdl_cv_sys_dlopen_deplibs=yes
10954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10955 libltdl_cv_sys_dlopen_deplibs=yes
10960 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10961 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10962 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10964 cat >>confdefs.h <<\_ACEOF
10965 #define LTDL_DLOPEN_DEPLIBS 1
10971 for ac_header in argz.h
10973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 ac_res=`eval echo '${'$as_ac_Header'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982 echo "${ECHO_T}$ac_res" >&6; }
10984 # Is the header compilable?
10985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10987 cat >conftest.$ac_ext <<_ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 $ac_includes_default
10994 #include <$ac_header>
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1 >conftest.err
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_header_compiler=yes
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_header_compiler=no
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11040 echo "${ECHO_T}$ac_header_compiler" >&6; }
11042 # Is the header present?
11043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11045 cat >conftest.$ac_ext <<_ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051 #include <$ac_header>
11053 if { (ac_try="$ac_cpp conftest.$ac_ext"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11061 grep -v '^ *+' conftest.er1 >conftest.err
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } >/dev/null; then
11066 if test -s conftest.err; then
11067 ac_cpp_err=$ac_c_preproc_warn_flag
11068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11075 if test -z "$ac_cpp_err"; then
11076 ac_header_preproc=yes
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11081 ac_header_preproc=no
11084 rm -f conftest.err conftest.$ac_ext
11085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11086 echo "${ECHO_T}$ac_header_preproc" >&6; }
11088 # So? What about this header?
11089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11095 ac_header_preproc=yes
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11111 ## ----------------------------------- ##
11112 ## Report this to llvmbugs@cs.uiuc.edu ##
11113 ## ----------------------------------- ##
11115 ) | sed "s/^/$as_me: WARNING: /" >&2
11118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 eval "$as_ac_Header=\$ac_header_preproc"
11125 ac_res=`eval echo '${'$as_ac_Header'}'`
11126 { echo "$as_me:$LINENO: result: $ac_res" >&5
11127 echo "${ECHO_T}$ac_res" >&6; }
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140 { echo "$as_me:$LINENO: checking for error_t" >&5
11141 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11142 if test "${ac_cv_type_error_t+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11155 typedef error_t ac__type_new_;
11159 if ((ac__type_new_ *) 0)
11161 if (sizeof (ac__type_new_))
11167 rm -f conftest.$ac_objext
11168 if { (ac_try="$ac_compile"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_compile") 2>conftest.er1
11176 grep -v '^ *+' conftest.er1 >conftest.err
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; } &&
11191 { ac_try='test -s conftest.$ac_objext'
11192 { (case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_try") 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_cv_type_error_t=yes
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 ac_cv_type_error_t=no
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11211 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11212 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11213 if test $ac_cv_type_error_t = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define HAVE_ERROR_T 1
11222 cat >>confdefs.h <<\_ACEOF
11223 #define error_t int
11234 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11250 #define $ac_func innocuous_$ac_func
11252 /* System header to define __stub macros and hopefully few prototypes,
11253 which can conflict with char $ac_func (); below.
11254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11255 <limits.h> exists even on freestanding compilers. */
11258 # include <limits.h>
11260 # include <assert.h>
11265 /* Override any GCC internal prototype to avoid an error.
11266 Use char because int might match the return type of a GCC
11267 builtin and then its argument prototype would still apply. */
11272 /* The GNU C library defines this for functions which it implements
11273 to always fail with ENOSYS. Some functions are actually named
11274 something starting with __ and the normal name is an alias. */
11275 #if defined __stub_$ac_func || defined __stub___$ac_func
11282 return $ac_func ();
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (ac_try="$ac_link"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_link") 2>conftest.er1
11296 grep -v '^ *+' conftest.er1 >conftest.err
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } &&
11301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11302 { (case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_try") 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest$ac_exeext'
11312 { (case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_try") 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 eval "$as_ac_var=yes"
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 eval "$as_ac_var=no"
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11332 ac_res=`eval echo '${'$as_ac_var'}'`
11333 { echo "$as_me:$LINENO: result: $ac_res" >&5
11334 echo "${ECHO_T}$ac_res" >&6; }
11335 if test `eval echo '${'$as_ac_var'}'` = yes; then
11336 cat >>confdefs.h <<_ACEOF
11337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 ac_res=`eval echo '${'$as_ac_Header'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382 echo "${ECHO_T}$ac_res" >&6; }
11384 # Is the header compilable?
11385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 $ac_includes_default
11394 #include <$ac_header>
11396 rm -f conftest.$ac_objext
11397 if { (ac_try="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
11421 { (case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_try") 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 ac_header_compiler=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 ac_header_compiler=no
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11440 echo "${ECHO_T}$ac_header_compiler" >&6; }
11442 # Is the header present?
11443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 #include <$ac_header>
11453 if { (ac_try="$ac_cpp conftest.$ac_ext"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } >/dev/null; then
11466 if test -s conftest.err; then
11467 ac_cpp_err=$ac_c_preproc_warn_flag
11468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11475 if test -z "$ac_cpp_err"; then
11476 ac_header_preproc=yes
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_header_preproc=no
11484 rm -f conftest.err conftest.$ac_ext
11485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11486 echo "${ECHO_T}$ac_header_preproc" >&6; }
11488 # So? What about this header?
11489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11495 ac_header_preproc=yes
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11511 ## ----------------------------------- ##
11512 ## Report this to llvmbugs@cs.uiuc.edu ##
11513 ## ----------------------------------- ##
11515 ) | sed "s/^/$as_me: WARNING: /" >&2
11518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 eval "$as_ac_Header=\$ac_header_preproc"
11525 ac_res=`eval echo '${'$as_ac_Header'}'`
11526 { echo "$as_me:$LINENO: result: $ac_res" >&5
11527 echo "${ECHO_T}$ac_res" >&6; }
11530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11543 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 ac_res=`eval echo '${'$as_ac_Header'}'`
11553 { echo "$as_me:$LINENO: result: $ac_res" >&5
11554 echo "${ECHO_T}$ac_res" >&6; }
11556 # Is the header compilable?
11557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 $ac_includes_default
11566 #include <$ac_header>
11568 rm -f conftest.$ac_objext
11569 if { (ac_try="$ac_compile"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_compile") 2>conftest.er1
11577 grep -v '^ *+' conftest.er1 >conftest.err
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_header_compiler=yes
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_header_compiler=no
11610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11612 echo "${ECHO_T}$ac_header_compiler" >&6; }
11614 # Is the header present?
11615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11617 cat >conftest.$ac_ext <<_ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 #include <$ac_header>
11625 if { (ac_try="$ac_cpp conftest.$ac_ext"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } >/dev/null; then
11638 if test -s conftest.err; then
11639 ac_cpp_err=$ac_c_preproc_warn_flag
11640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11647 if test -z "$ac_cpp_err"; then
11648 ac_header_preproc=yes
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_header_preproc=no
11656 rm -f conftest.err conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11658 echo "${ECHO_T}$ac_header_preproc" >&6; }
11660 # So? What about this header?
11661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11667 ac_header_preproc=yes
11670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11683 ## ----------------------------------- ##
11684 ## Report this to llvmbugs@cs.uiuc.edu ##
11685 ## ----------------------------------- ##
11687 ) | sed "s/^/$as_me: WARNING: /" >&2
11690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 eval "$as_ac_Header=\$ac_header_preproc"
11697 ac_res=`eval echo '${'$as_ac_Header'}'`
11698 { echo "$as_me:$LINENO: result: $ac_res" >&5
11699 echo "${ECHO_T}$ac_res" >&6; }
11702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11713 for ac_header in string.h strings.h
11715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 ac_res=`eval echo '${'$as_ac_Header'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11726 # Is the header compilable?
11727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 $ac_includes_default
11736 #include <$ac_header>
11738 rm -f conftest.$ac_objext
11739 if { (ac_try="$ac_compile"
11740 case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_compile") 2>conftest.er1
11747 grep -v '^ *+' conftest.er1 >conftest.err
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11753 { (case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_try") 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest.$ac_objext'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_header_compiler=no
11780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11782 echo "${ECHO_T}$ac_header_compiler" >&6; }
11784 # Is the header present?
11785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11787 cat >conftest.$ac_ext <<_ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 #include <$ac_header>
11795 if { (ac_try="$ac_cpp conftest.$ac_ext"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11803 grep -v '^ *+' conftest.er1 >conftest.err
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } >/dev/null; then
11808 if test -s conftest.err; then
11809 ac_cpp_err=$ac_c_preproc_warn_flag
11810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11817 if test -z "$ac_cpp_err"; then
11818 ac_header_preproc=yes
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 ac_header_preproc=no
11826 rm -f conftest.err conftest.$ac_ext
11827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11828 echo "${ECHO_T}$ac_header_preproc" >&6; }
11830 # So? What about this header?
11831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11837 ac_header_preproc=yes
11840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11853 ## ----------------------------------- ##
11854 ## Report this to llvmbugs@cs.uiuc.edu ##
11855 ## ----------------------------------- ##
11857 ) | sed "s/^/$as_me: WARNING: /" >&2
11860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 eval "$as_ac_Header=\$ac_header_preproc"
11867 ac_res=`eval echo '${'$as_ac_Header'}'`
11868 { echo "$as_me:$LINENO: result: $ac_res" >&5
11869 echo "${ECHO_T}$ac_res" >&6; }
11872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11873 cat >>confdefs.h <<_ACEOF
11874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11884 for ac_func in strchr index
11886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11900 #define $ac_func innocuous_$ac_func
11902 /* System header to define __stub macros and hopefully few prototypes,
11903 which can conflict with char $ac_func (); below.
11904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905 <limits.h> exists even on freestanding compilers. */
11908 # include <limits.h>
11910 # include <assert.h>
11915 /* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
11922 /* The GNU C library defines this for functions which it implements
11923 to always fail with ENOSYS. Some functions are actually named
11924 something starting with __ and the normal name is an alias. */
11925 #if defined __stub_$ac_func || defined __stub___$ac_func
11932 return $ac_func ();
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (ac_try="$ac_link"
11939 case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_link") 2>conftest.er1
11946 grep -v '^ *+' conftest.er1 >conftest.err
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
11961 { ac_try='test -s conftest$ac_exeext'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 eval "$as_ac_var=yes"
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 eval "$as_ac_var=no"
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11982 ac_res=`eval echo '${'$as_ac_var'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11985 if test `eval echo '${'$as_ac_var'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995 for ac_func in strrchr rindex
11997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12011 #define $ac_func innocuous_$ac_func
12013 /* System header to define __stub macros and hopefully few prototypes,
12014 which can conflict with char $ac_func (); below.
12015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016 <limits.h> exists even on freestanding compilers. */
12019 # include <limits.h>
12021 # include <assert.h>
12026 /* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
12033 /* The GNU C library defines this for functions which it implements
12034 to always fail with ENOSYS. Some functions are actually named
12035 something starting with __ and the normal name is an alias. */
12036 #if defined __stub_$ac_func || defined __stub___$ac_func
12043 return $ac_func ();
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_try") 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 eval "$as_ac_var=yes"
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 eval "$as_ac_var=no"
12090 rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12093 ac_res=`eval echo '${'$as_ac_var'}'`
12094 { echo "$as_me:$LINENO: result: $ac_res" >&5
12095 echo "${ECHO_T}$ac_res" >&6; }
12096 if test `eval echo '${'$as_ac_var'}'` = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12106 for ac_func in memcpy bcopy
12108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12122 #define $ac_func innocuous_$ac_func
12124 /* System header to define __stub macros and hopefully few prototypes,
12125 which can conflict with char $ac_func (); below.
12126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12127 <limits.h> exists even on freestanding compilers. */
12130 # include <limits.h>
12132 # include <assert.h>
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12144 /* The GNU C library defines this for functions which it implements
12145 to always fail with ENOSYS. Some functions are actually named
12146 something starting with __ and the normal name is an alias. */
12147 #if defined __stub_$ac_func || defined __stub___$ac_func
12154 return $ac_func ();
12159 rm -f conftest.$ac_objext conftest$ac_exeext
12160 if { (ac_try="$ac_link"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_link") 2>conftest.er1
12168 grep -v '^ *+' conftest.er1 >conftest.err
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 eval "$as_ac_var=yes"
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 eval "$as_ac_var=no"
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12204 ac_res=`eval echo '${'$as_ac_var'}'`
12205 { echo "$as_me:$LINENO: result: $ac_res" >&5
12206 echo "${ECHO_T}$ac_res" >&6; }
12207 if test `eval echo '${'$as_ac_var'}'` = yes; then
12208 cat >>confdefs.h <<_ACEOF
12209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12217 for ac_func in memmove strcmp
12219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define $ac_func innocuous_$ac_func
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12241 # include <limits.h>
12243 # include <assert.h>
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12255 /* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258 #if defined __stub_$ac_func || defined __stub___$ac_func
12265 return $ac_func ();
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12285 { (case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_try") 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 eval "$as_ac_var=yes"
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 eval "$as_ac_var=no"
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12315 ac_res=`eval echo '${'$as_ac_var'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317 echo "${ECHO_T}$ac_res" >&6; }
12318 if test `eval echo '${'$as_ac_var'}'` = yes; then
12319 cat >>confdefs.h <<_ACEOF
12320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12329 for ac_func in closedir opendir readdir
12331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12345 #define $ac_func innocuous_$ac_func
12347 /* System header to define __stub macros and hopefully few prototypes,
12348 which can conflict with char $ac_func (); below.
12349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12350 <limits.h> exists even on freestanding compilers. */
12353 # include <limits.h>
12355 # include <assert.h>
12360 /* Override any GCC internal prototype to avoid an error.
12361 Use char because int might match the return type of a GCC
12362 builtin and then its argument prototype would still apply. */
12367 /* The GNU C library defines this for functions which it implements
12368 to always fail with ENOSYS. Some functions are actually named
12369 something starting with __ and the normal name is an alias. */
12370 #if defined __stub_$ac_func || defined __stub___$ac_func
12377 return $ac_func ();
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (ac_try="$ac_link"
12384 case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_link") 2>conftest.er1
12391 grep -v '^ *+' conftest.er1 >conftest.err
12393 cat conftest.err >&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12397 { (case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_try") 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest$ac_exeext'
12407 { (case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_try") 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 eval "$as_ac_var=yes"
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 eval "$as_ac_var=no"
12424 rm -f core conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12427 ac_res=`eval echo '${'$as_ac_var'}'`
12428 { echo "$as_me:$LINENO: result: $ac_res" >&5
12429 echo "${ECHO_T}$ac_res" >&6; }
12430 if test `eval echo '${'$as_ac_var'}'` = yes; then
12431 cat >>confdefs.h <<_ACEOF
12432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439 # Check whether --enable-shared was given.
12440 if test "${enable_shared+set}" = set; then
12441 enableval=$enable_shared; p=${PACKAGE-default}
12443 yes) enable_shared=yes ;;
12444 no) enable_shared=no ;;
12447 # Look at the argument we got. We use all the common list separators.
12448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12449 for pkg in $enableval; do
12451 if test "X$pkg" = "X$p"; then
12463 # Check whether --enable-static was given.
12464 if test "${enable_static+set}" = set; then
12465 enableval=$enable_static; p=${PACKAGE-default}
12467 yes) enable_static=yes ;;
12468 no) enable_static=no ;;
12471 # Look at the argument we got. We use all the common list separators.
12472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12473 for pkg in $enableval; do
12475 if test "X$pkg" = "X$p"; then
12487 # Check whether --enable-fast-install was given.
12488 if test "${enable_fast_install+set}" = set; then
12489 enableval=$enable_fast_install; p=${PACKAGE-default}
12491 yes) enable_fast_install=yes ;;
12492 no) enable_fast_install=no ;;
12494 enable_fast_install=no
12495 # Look at the argument we got. We use all the common list separators.
12496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12497 for pkg in $enableval; do
12499 if test "X$pkg" = "X$p"; then
12500 enable_fast_install=yes
12507 enable_fast_install=yes
12511 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12512 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12513 if test "${lt_cv_path_SED+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 # Loop through the user's path and test for sed and gsed.
12517 # Then use that list of sed's as ones to test for truncation.
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12522 test -z "$as_dir" && as_dir=.
12523 for lt_ac_prog in sed gsed; do
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12526 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12533 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12534 # along with /bin/sed that truncates output.
12535 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12536 test ! -f $lt_ac_sed && continue
12537 cat /dev/null > conftest.in
12539 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12540 # Check for GNU sed and select it if it is found.
12541 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12542 lt_cv_path_SED=$lt_ac_sed
12546 cat conftest.in conftest.in >conftest.tmp
12547 mv conftest.tmp conftest.in
12548 cp conftest.in conftest.nl
12550 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12551 cmp -s conftest.out conftest.nl || break
12552 # 10000 chars as input seems more than enough
12553 test $lt_ac_count -gt 10 && break
12554 lt_ac_count=`expr $lt_ac_count + 1`
12555 if test $lt_ac_count -gt $lt_ac_max; then
12556 lt_ac_max=$lt_ac_count
12557 lt_cv_path_SED=$lt_ac_sed
12564 SED=$lt_cv_path_SED
12565 { echo "$as_me:$LINENO: result: $SED" >&5
12566 echo "${ECHO_T}$SED" >&6; }
12569 # Check whether --with-gnu-ld was given.
12570 if test "${with_gnu_ld+set}" = set; then
12571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12577 if test "$GCC" = yes; then
12578 # Check if gcc -print-prog-name=ld gives a path.
12579 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12580 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12583 # gcc leaves a trailing carriage return which upsets mingw
12584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12589 # Accept absolute paths.
12591 re_direlt='/[^/][^/]*/\.\./'
12592 # Canonicalize the pathname of ld
12593 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12594 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12595 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12597 test -z "$LD" && LD="$ac_prog"
12600 # If it fails, then pretend we aren't using GCC.
12604 # If it is relative, then search for the first ld in PATH.
12605 with_gnu_ld=unknown
12608 elif test "$with_gnu_ld" = yes; then
12609 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12610 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12612 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12613 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12615 if test "${lt_cv_path_LD+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 if test -z "$LD"; then
12619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12620 for ac_dir in $PATH; do
12622 test -z "$ac_dir" && ac_dir=.
12623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12624 lt_cv_path_LD="$ac_dir/$ac_prog"
12625 # Check to see if the program is GNU ld. I'd rather use --version,
12626 # but apparently some variants of GNU ld only accept -v.
12627 # Break only if it was the GNU/non-GNU ld that we prefer.
12628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12629 *GNU* | *'with BFD'*)
12630 test "$with_gnu_ld" != no && break
12633 test "$with_gnu_ld" != yes && break
12640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12644 LD="$lt_cv_path_LD"
12645 if test -n "$LD"; then
12646 { echo "$as_me:$LINENO: result: $LD" >&5
12647 echo "${ECHO_T}$LD" >&6; }
12649 { echo "$as_me:$LINENO: result: no" >&5
12650 echo "${ECHO_T}no" >&6; }
12652 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12653 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12654 { (exit 1); exit 1; }; }
12655 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12656 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12657 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12661 case `$LD -v 2>&1 </dev/null` in
12662 *GNU* | *'with BFD'*)
12663 lt_cv_prog_gnu_ld=yes
12666 lt_cv_prog_gnu_ld=no
12670 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12671 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12672 with_gnu_ld=$lt_cv_prog_gnu_ld
12675 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12676 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12677 if test "${lt_cv_ld_reload_flag+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 lt_cv_ld_reload_flag='-r'
12682 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12683 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12684 reload_flag=$lt_cv_ld_reload_flag
12685 case $reload_flag in
12687 *) reload_flag=" $reload_flag" ;;
12689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12692 if test "$GCC" = yes; then
12693 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12700 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12701 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12702 if test "${lt_cv_deplibs_check_method+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 lt_cv_file_magic_cmd='$MAGIC_CMD'
12706 lt_cv_file_magic_test_file=
12707 lt_cv_deplibs_check_method='unknown'
12708 # Need to set the preceding variable on all platforms that support
12709 # interlibrary dependencies.
12710 # 'none' -- dependencies not supported.
12711 # `unknown' -- same as none, but documents that we really don't know.
12712 # 'pass_all' -- all dependencies passed with no checks.
12713 # 'test_compile' -- check by making test program.
12714 # 'file_magic [[regex]]' -- check by looking for files in library path
12715 # which responds to the $file_magic_cmd with a given extended regex.
12716 # If you have `file' or equivalent on your system and you're not sure
12717 # whether `pass_all' will *always* work, you probably want this one.
12721 lt_cv_deplibs_check_method=pass_all
12725 lt_cv_deplibs_check_method=pass_all
12729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12730 lt_cv_file_magic_cmd='/usr/bin/file -L'
12731 lt_cv_file_magic_test_file=/shlib/libc.so
12735 # func_win32_libid is a shell function defined in ltmain.sh
12736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12737 lt_cv_file_magic_cmd='func_win32_libid'
12741 # Base MSYS/MinGW do not provide the 'file' command needed by
12742 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12743 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12744 lt_cv_file_magic_cmd='$OBJDUMP -f'
12747 darwin* | rhapsody*)
12748 lt_cv_deplibs_check_method=pass_all
12751 freebsd* | kfreebsd*-gnu | dragonfly*)
12752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12755 # Not sure whether the presence of OpenBSD here was a mistake.
12756 # Let's accept both of them until this is cleared up.
12757 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12758 lt_cv_file_magic_cmd=/usr/bin/file
12759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12763 lt_cv_deplibs_check_method=pass_all
12768 lt_cv_deplibs_check_method=pass_all
12771 hpux10.20* | hpux11*)
12772 lt_cv_file_magic_cmd=/usr/bin/file
12775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12776 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12779 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]'
12780 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12784 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12790 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12794 irix5* | irix6* | nonstopux*)
12796 *-32|*"-32 ") libmagic=32-bit;;
12797 *-n32|*"-n32 ") libmagic=N32;;
12798 *-64|*"-64 ") libmagic=64-bit;;
12799 *) libmagic=never-match;;
12801 lt_cv_deplibs_check_method=pass_all
12804 # This must be Linux ELF.
12806 lt_cv_deplibs_check_method=pass_all
12810 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12819 lt_cv_file_magic_cmd=/usr/bin/file
12820 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12824 lt_cv_deplibs_check_method=unknown
12828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12835 osf3* | osf4* | osf5*)
12836 lt_cv_deplibs_check_method=pass_all
12840 lt_cv_deplibs_check_method=pass_all
12844 case $host_vendor in
12846 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]'
12847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12850 lt_cv_deplibs_check_method=pass_all
12853 lt_cv_file_magic_cmd='/bin/file'
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12857 lt_cv_file_magic_cmd='/bin/file'
12858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12859 lt_cv_file_magic_test_file=/lib/libc.so
12862 lt_cv_deplibs_check_method=pass_all
12865 lt_cv_deplibs_check_method=pass_all
12870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12871 lt_cv_deplibs_check_method=pass_all
12876 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12877 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12878 file_magic_cmd=$lt_cv_file_magic_cmd
12879 deplibs_check_method=$lt_cv_deplibs_check_method
12880 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12884 # If no C compiler was specified, use CC.
12887 # If no C compiler flags were specified, use CFLAGS.
12888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12890 # Allow CC to be a program name with arguments.
12893 # Check whether --enable-libtool-lock was given.
12894 if test "${enable_libtool_lock+set}" = set; then
12895 enableval=$enable_libtool_lock;
12898 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12900 # Some flags need to be propagated to the compiler or linker for good
12904 # Find out which ABI we are using.
12905 echo 'int i;' > conftest.$ac_ext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; then
12911 case `/usr/bin/file conftest.$ac_objext` in
12913 HPUX_IA64_MODE="32"
12916 HPUX_IA64_MODE="64"
12923 # Find out which ABI we are using.
12924 echo '#line 12924 "configure"' > conftest.$ac_ext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; then
12930 if test "$lt_cv_prog_gnu_ld" = yes; then
12931 case `/usr/bin/file conftest.$ac_objext` in
12933 LD="${LD-ld} -melf32bsmip"
12936 LD="${LD-ld} -melf32bmipn32"
12939 LD="${LD-ld} -melf64bmip"
12943 case `/usr/bin/file conftest.$ac_objext` in
12959 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12960 # Find out which ABI we are using.
12961 echo 'int i;' > conftest.$ac_ext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; then
12967 case `/usr/bin/file conftest.o` in
12971 LD="${LD-ld} -m elf_i386"
12973 ppc64-*linux*|powerpc64-*linux*)
12974 LD="${LD-ld} -m elf32ppclinux"
12977 LD="${LD-ld} -m elf_s390"
12980 LD="${LD-ld} -m elf32_sparc"
12987 LD="${LD-ld} -m elf_x86_64"
12989 ppc*-*linux*|powerpc*-*linux*)
12990 LD="${LD-ld} -m elf64ppc"
12993 LD="${LD-ld} -m elf64_s390"
12996 LD="${LD-ld} -m elf64_sparc"
13006 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13007 SAVE_CFLAGS="$CFLAGS"
13008 CFLAGS="$CFLAGS -belf"
13009 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13010 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13011 if test "${lt_cv_cc_needs_belf+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 ac_cpp='$CPP $CPPFLAGS'
13016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13035 rm -f conftest.$ac_objext conftest$ac_exeext
13036 if { (ac_try="$ac_link"
13037 case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_link") 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 lt_cv_cc_needs_belf=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 lt_cv_cc_needs_belf=no
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13080 ac_cpp='$CPP $CPPFLAGS'
13081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13087 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13088 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13089 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13090 CFLAGS="$SAVE_CFLAGS"
13094 # Find out which ABI we are using.
13095 echo 'int i;' > conftest.$ac_ext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; then
13101 case `/usr/bin/file conftest.o` in
13103 case $lt_cv_prog_gnu_ld in
13104 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13105 *) LD="${LD-ld} -64" ;;
13116 need_locks="$enable_libtool_lock"
13121 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13122 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13123 (test "X$CXX" != "Xg++"))) ; then
13125 ac_cpp='$CXXCPP $CPPFLAGS'
13126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13129 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13130 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13131 if test -z "$CXXCPP"; then
13132 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 # Double quotes because CXXCPP needs to be expanded
13136 for CXXCPP in "$CXX -E" "/lib/cpp"
13138 ac_preproc_ok=false
13139 for ac_cxx_preproc_warn_flag in '' yes
13141 # Use a header file that comes with gcc, so configuring glibc
13142 # with a fresh cross-compiler works.
13143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13144 # <limits.h> exists even on freestanding compilers.
13145 # On the NeXT, cc -E runs the code through the compiler's parser,
13146 # not just through cpp. "Syntax error" is here to catch this case.
13147 cat >conftest.$ac_ext <<_ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13154 # include <limits.h>
13156 # include <assert.h>
13160 if { (ac_try="$ac_cpp conftest.$ac_ext"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13168 grep -v '^ *+' conftest.er1 >conftest.err
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } >/dev/null; then
13173 if test -s conftest.err; then
13174 ac_cpp_err=$ac_cxx_preproc_warn_flag
13175 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13182 if test -z "$ac_cpp_err"; then
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 # Broken: fails on valid input.
13192 rm -f conftest.err conftest.$ac_ext
13194 # OK, works on sane cases. Now check whether nonexistent headers
13195 # can be detected and how.
13196 cat >conftest.$ac_ext <<_ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 #include <ac_nonexistent.h>
13204 if { (ac_try="$ac_cpp conftest.$ac_ext"
13205 case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } >/dev/null; then
13217 if test -s conftest.err; then
13218 ac_cpp_err=$ac_cxx_preproc_warn_flag
13219 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13226 if test -z "$ac_cpp_err"; then
13227 # Broken: success on invalid input.
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 # Passes both tests.
13238 rm -f conftest.err conftest.$ac_ext
13241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13242 rm -f conftest.err conftest.$ac_ext
13243 if $ac_preproc_ok; then
13248 ac_cv_prog_CXXCPP=$CXXCPP
13251 CXXCPP=$ac_cv_prog_CXXCPP
13253 ac_cv_prog_CXXCPP=$CXXCPP
13255 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13256 echo "${ECHO_T}$CXXCPP" >&6; }
13257 ac_preproc_ok=false
13258 for ac_cxx_preproc_warn_flag in '' yes
13260 # Use a header file that comes with gcc, so configuring glibc
13261 # with a fresh cross-compiler works.
13262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13263 # <limits.h> exists even on freestanding compilers.
13264 # On the NeXT, cc -E runs the code through the compiler's parser,
13265 # not just through cpp. "Syntax error" is here to catch this case.
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13273 # include <limits.h>
13275 # include <assert.h>
13279 if { (ac_try="$ac_cpp conftest.$ac_ext"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev/null; then
13292 if test -s conftest.err; then
13293 ac_cpp_err=$ac_cxx_preproc_warn_flag
13294 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13301 if test -z "$ac_cpp_err"; then
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 # Broken: fails on valid input.
13311 rm -f conftest.err conftest.$ac_ext
13313 # OK, works on sane cases. Now check whether nonexistent headers
13314 # can be detected and how.
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <ac_nonexistent.h>
13323 if { (ac_try="$ac_cpp conftest.$ac_ext"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13331 grep -v '^ *+' conftest.er1 >conftest.err
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } >/dev/null; then
13336 if test -s conftest.err; then
13337 ac_cpp_err=$ac_cxx_preproc_warn_flag
13338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13345 if test -z "$ac_cpp_err"; then
13346 # Broken: success on invalid input.
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 # Passes both tests.
13357 rm -f conftest.err conftest.$ac_ext
13360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13361 rm -f conftest.err conftest.$ac_ext
13362 if $ac_preproc_ok; then
13365 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13366 See \`config.log' for more details." >&5
13367 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13368 See \`config.log' for more details." >&2;}
13369 { (exit 1); exit 1; }; }
13373 ac_cpp='$CXXCPP $CPPFLAGS'
13374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13382 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13383 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13384 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13385 if test -n "$ac_tool_prefix"; then
13386 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
13388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13392 if test "${ac_cv_prog_F77+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 if test -n "$F77"; then
13396 ac_cv_prog_F77="$F77" # Let the user override the test.
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13405 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13415 F77=$ac_cv_prog_F77
13416 if test -n "$F77"; then
13417 { echo "$as_me:$LINENO: result: $F77" >&5
13418 echo "${ECHO_T}$F77" >&6; }
13420 { echo "$as_me:$LINENO: result: no" >&5
13421 echo "${ECHO_T}no" >&6; }
13425 test -n "$F77" && break
13428 if test -z "$F77"; then
13430 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
13432 # Extract the first word of "$ac_prog", so it can be a program name with args.
13433 set dummy $ac_prog; ac_word=$2
13434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13436 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 if test -n "$ac_ct_F77"; then
13440 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13449 ac_cv_prog_ac_ct_F77="$ac_prog"
13450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13459 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13460 if test -n "$ac_ct_F77"; then
13461 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13462 echo "${ECHO_T}$ac_ct_F77" >&6; }
13464 { echo "$as_me:$LINENO: result: no" >&5
13465 echo "${ECHO_T}no" >&6; }
13469 test -n "$ac_ct_F77" && break
13472 if test "x$ac_ct_F77" = x; then
13475 case $cross_compiling:$ac_tool_warned in
13477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13478 whose name does not start with the host triplet. If you think this
13479 configuration is useful to you, please write to autoconf@gnu.org." >&5
13480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13481 whose name does not start with the host triplet. If you think this
13482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13483 ac_tool_warned=yes ;;
13490 # Provide some information about the compiler.
13491 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13492 ac_compiler=`set X $ac_compile; echo $2`
13493 { (ac_try="$ac_compiler --version >&5"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_compiler --version >&5") 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }
13503 { (ac_try="$ac_compiler -v >&5"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compiler -v >&5") 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }
13513 { (ac_try="$ac_compiler -V >&5"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_compiler -V >&5") 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }
13525 # If we don't use `.F' as extension, the preprocessor is not run on the
13526 # input file. (Note that this only needs to work for GNU compilers.)
13527 ac_save_ext=$ac_ext
13529 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13530 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13531 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 cat >conftest.$ac_ext <<_ACEOF
13542 rm -f conftest.$ac_objext
13543 if { (ac_try="$ac_compile"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compile") 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_compiler_gnu=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13588 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13589 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13590 ac_ext=$ac_save_ext
13591 ac_test_FFLAGS=${FFLAGS+set}
13592 ac_save_FFLAGS=$FFLAGS
13594 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13595 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13596 if test "${ac_cv_prog_f77_g+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 cat >conftest.$ac_ext <<_ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (ac_try="$ac_compile"
13607 case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_compile") 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_prog_f77_g=yes
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_cv_prog_f77_g=no
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13651 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13652 if test "$ac_test_FFLAGS" = set; then
13653 FFLAGS=$ac_save_FFLAGS
13654 elif test $ac_cv_prog_f77_g = yes; then
13655 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13661 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13668 G77=`test $ac_compiler_gnu = yes && echo yes`
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13677 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13679 # find the maximum length of command line arguments
13680 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13681 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13682 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 # On DJGPP, this test can blow up pretty badly due to problems in libc
13691 # (any single argument exceeding 2000 bytes causes a buffer overrun
13692 # during glob expansion). Even if it were fixed, the result of this
13693 # check would be larger than it should be.
13694 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13698 # Under GNU Hurd, this test is not required because there is
13699 # no limit to the length of command line arguments.
13700 # Libtool will interpret -1 as no limit whatsoever
13701 lt_cv_sys_max_cmd_len=-1;
13705 # On Win9x/ME, this test blows up -- it succeeds, but takes
13706 # about 5 minutes as the teststring grows exponentially.
13707 # Worse, since 9x/ME are not pre-emptively multitasking,
13708 # you end up with a "frozen" computer, even though with patience
13709 # the test eventually succeeds (with a max line length of 256k).
13710 # Instead, let's just punt: use the minimum linelength reported by
13711 # all of the supported platforms: 8192 (on NT/2K/XP).
13712 lt_cv_sys_max_cmd_len=8192;
13716 # On AmigaOS with pdksh, this test takes hours, literally.
13717 # So we just punt and use a minimum line length of 8192.
13718 lt_cv_sys_max_cmd_len=8192;
13721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13722 # This has been around since 386BSD, at least. Likely further.
13723 if test -x /sbin/sysctl; then
13724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13725 elif test -x /usr/sbin/sysctl; then
13726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13730 # And add a safety zone
13731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13736 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13737 lt_cv_sys_max_cmd_len=196608
13741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13743 # nice to cause kernel panics so lets avoid the loop below.
13744 # First set a reasonable default.
13745 lt_cv_sys_max_cmd_len=16384
13747 if test -x /sbin/sysconfig; then
13748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13749 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13754 lt_cv_sys_max_cmd_len=102400
13756 sysv5* | sco5v6* | sysv4.2uw2*)
13757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13758 if test -n "$kargmax"; then
13759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13761 lt_cv_sys_max_cmd_len=32768
13765 # If test is not a shell built-in, we'll probably end up computing a
13766 # maximum length that is only half of the actual maximum length, but
13768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13769 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13770 = "XX$teststring") >/dev/null 2>&1 &&
13771 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13772 lt_cv_sys_max_cmd_len=$new_result &&
13773 test $i != 17 # 1/2 MB should be enough
13776 teststring=$teststring$teststring
13779 # Add a significant safety factor because C++ compilers can tack on massive
13780 # amounts of additional arguments before passing them to the linker.
13781 # It appears as though 1/2 is a usable value.
13782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13788 if test -n $lt_cv_sys_max_cmd_len ; then
13789 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13790 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13792 { echo "$as_me:$LINENO: result: none" >&5
13793 echo "${ECHO_T}none" >&6; }
13799 # Check for command to grab the raw symbol name followed by C symbol from nm.
13800 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13801 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13802 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 # These are sane defaults that work on at least a few old systems.
13807 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13809 # Character class describing NM global symbol codes.
13810 symcode='[BCDEGRST]'
13812 # Regexp to match symbols that can be accessed directly from C.
13813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13815 # Transform an extracted symbol line into a proper C declaration
13816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13818 # Transform an extracted symbol line into symbol name and symbol address
13819 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'"
13821 # Define system-specific variables.
13826 cygwin* | mingw* | pw32*)
13827 symcode='[ABCDGISTW]'
13829 hpux*) # Its linker distinguishes data from code symbols
13830 if test "$host_cpu" = ia64; then
13831 symcode='[ABCDEGRST]'
13833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13834 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'"
13837 if test "$host_cpu" = ia64; then
13838 symcode='[ABCDGIRSTW]'
13839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13840 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'"
13843 irix* | nonstopux*)
13844 symcode='[BCDEGRST]'
13847 symcode='[BCDEGQRST]'
13858 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13866 # Handle CRLF in mingw tool chain
13870 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13874 # If we're using GNU nm, then use its standard symbol codes.
13875 case `$NM -V 2>&1` in
13876 *GNU* | *'with BFD'*)
13877 symcode='[ABCDGIRSTW]' ;;
13880 # Try without a prefix undercore, then with it.
13881 for ac_symprfx in "" "_"; do
13883 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13884 symxfrm="\\1 $ac_symprfx\\2 \\2"
13886 # Write the raw and C identifiers.
13887 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13889 # Check to see that the pipe works correctly.
13893 cat > conftest.$ac_ext <<EOF
13898 void nm_test_func(){}
13902 int main(){nm_test_var='a';nm_test_func();return(0);}
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; then
13910 # Now try to grab the symbols.
13912 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13913 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } && test -s "$nlist"; then
13917 # Try sorting and uniquifying the output.
13918 if sort "$nlist" | uniq > "$nlist"T; then
13919 mv -f "$nlist"T "$nlist"
13924 # Make sure that we snagged all the symbols we need.
13925 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13926 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13927 cat <<EOF > conftest.$ac_ext
13933 # Now generate the symbol file.
13934 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13936 cat <<EOF >> conftest.$ac_ext
13937 #if defined (__STDC__) && __STDC__
13938 # define lt_ptr_t void *
13940 # define lt_ptr_t char *
13944 /* The mapping between symbol names and symbols. */
13949 lt_preloaded_symbols[] =
13952 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13953 cat <<\EOF >> conftest.$ac_ext
13961 # Now try linking the two files.
13962 mv conftest.$ac_objext conftstm.$ac_objext
13963 lt_save_LIBS="$LIBS"
13964 lt_save_CFLAGS="$CFLAGS"
13965 LIBS="conftstm.$ac_objext"
13966 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13968 (eval $ac_link) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13974 LIBS="$lt_save_LIBS"
13975 CFLAGS="$lt_save_CFLAGS"
13977 echo "cannot find nm_test_func in $nlist" >&5
13980 echo "cannot find nm_test_var in $nlist" >&5
13983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13986 echo "$progname: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13989 rm -f conftest* conftst*
13991 # Do not use the global_symbol_pipe unless it works.
13992 if test "$pipe_works" = yes; then
13995 lt_cv_sys_global_symbol_pipe=
14001 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14002 lt_cv_sys_global_symbol_to_cdecl=
14004 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14005 { echo "$as_me:$LINENO: result: failed" >&5
14006 echo "${ECHO_T}failed" >&6; }
14008 { echo "$as_me:$LINENO: result: ok" >&5
14009 echo "${ECHO_T}ok" >&6; }
14012 { echo "$as_me:$LINENO: checking for objdir" >&5
14013 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14014 if test "${lt_cv_objdir+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 rm -f .libs 2>/dev/null
14018 mkdir .libs 2>/dev/null
14019 if test -d .libs; then
14022 # MS-DOS does not allow filenames that begin with a dot.
14025 rmdir .libs 2>/dev/null
14027 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14028 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14029 objdir=$lt_cv_objdir
14037 # AIX sometimes has problems with the GCC collect2 program. For some
14038 # reason, if we set the COLLECT_NAMES environment variable, the problems
14039 # vanish in a puff of smoke.
14040 if test "X${COLLECT_NAMES+set}" != Xset; then
14042 export COLLECT_NAMES
14047 # Sed substitution that helps us do robust quoting. It backslashifies
14048 # metacharacters that are still active within double-quoted strings.
14049 Xsed='sed -e 1s/^X//'
14050 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14052 # Same as above, but do not quote variable references.
14053 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14055 # Sed substitution to delay expansion of an escaped shell variable in a
14056 # double_quote_subst'ed string.
14057 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14059 # Sed substitution to avoid accidental globbing in evaled expressions
14060 no_glob_subst='s/\*/\\\*/g'
14065 # Global variables:
14066 default_ofile=mklib
14067 can_build_shared=yes
14069 # All known linkers require a `.a' archive for static linking (except MSVC,
14070 # which needs '.lib').
14072 ltmain="$ac_aux_dir/ltmain.sh"
14073 ofile="$default_ofile"
14074 with_gnu_ld="$lt_cv_prog_gnu_ld"
14076 if test -n "$ac_tool_prefix"; then
14077 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14078 set dummy ${ac_tool_prefix}ar; ac_word=$2
14079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14081 if test "${ac_cv_prog_AR+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 if test -n "$AR"; then
14085 ac_cv_prog_AR="$AR" # Let the user override the test.
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14094 ac_cv_prog_AR="${ac_tool_prefix}ar"
14095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14105 if test -n "$AR"; then
14106 { echo "$as_me:$LINENO: result: $AR" >&5
14107 echo "${ECHO_T}$AR" >&6; }
14109 { echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6; }
14115 if test -z "$ac_cv_prog_AR"; then
14117 # Extract the first word of "ar", so it can be a program name with args.
14118 set dummy ar; ac_word=$2
14119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 if test -n "$ac_ct_AR"; then
14125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128 for as_dir in $PATH
14131 test -z "$as_dir" && as_dir=.
14132 for ac_exec_ext in '' $ac_executable_extensions; do
14133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14134 ac_cv_prog_ac_ct_AR="ar"
14135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14145 if test -n "$ac_ct_AR"; then
14146 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14147 echo "${ECHO_T}$ac_ct_AR" >&6; }
14149 { echo "$as_me:$LINENO: result: no" >&5
14150 echo "${ECHO_T}no" >&6; }
14153 if test "x$ac_ct_AR" = x; then
14156 case $cross_compiling:$ac_tool_warned in
14158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14159 whose name does not start with the host triplet. If you think this
14160 configuration is useful to you, please write to autoconf@gnu.org." >&5
14161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14162 whose name does not start with the host triplet. If you think this
14163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14164 ac_tool_warned=yes ;;
14169 AR="$ac_cv_prog_AR"
14172 if test -n "$ac_tool_prefix"; then
14173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14177 if test "${ac_cv_prog_RANLIB+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 if test -n "$RANLIB"; then
14181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 RANLIB=$ac_cv_prog_RANLIB
14201 if test -n "$RANLIB"; then
14202 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14203 echo "${ECHO_T}$RANLIB" >&6; }
14205 { echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6; }
14211 if test -z "$ac_cv_prog_RANLIB"; then
14212 ac_ct_RANLIB=$RANLIB
14213 # Extract the first word of "ranlib", so it can be a program name with args.
14214 set dummy ranlib; ac_word=$2
14215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 if test -n "$ac_ct_RANLIB"; then
14221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14230 ac_cv_prog_ac_ct_RANLIB="ranlib"
14231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14241 if test -n "$ac_ct_RANLIB"; then
14242 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14243 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14245 { echo "$as_me:$LINENO: result: no" >&5
14246 echo "${ECHO_T}no" >&6; }
14249 if test "x$ac_ct_RANLIB" = x; then
14252 case $cross_compiling:$ac_tool_warned in
14254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14255 whose name does not start with the host triplet. If you think this
14256 configuration is useful to you, please write to autoconf@gnu.org." >&5
14257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14258 whose name does not start with the host triplet. If you think this
14259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14260 ac_tool_warned=yes ;;
14262 RANLIB=$ac_ct_RANLIB
14265 RANLIB="$ac_cv_prog_RANLIB"
14268 if test -n "$ac_tool_prefix"; then
14269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14270 set dummy ${ac_tool_prefix}strip; ac_word=$2
14271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14273 if test "${ac_cv_prog_STRIP+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 if test -n "$STRIP"; then
14277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14296 STRIP=$ac_cv_prog_STRIP
14297 if test -n "$STRIP"; then
14298 { echo "$as_me:$LINENO: result: $STRIP" >&5
14299 echo "${ECHO_T}$STRIP" >&6; }
14301 { echo "$as_me:$LINENO: result: no" >&5
14302 echo "${ECHO_T}no" >&6; }
14307 if test -z "$ac_cv_prog_STRIP"; then
14309 # Extract the first word of "strip", so it can be a program name with args.
14310 set dummy strip; ac_word=$2
14311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 if test -n "$ac_ct_STRIP"; then
14317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14326 ac_cv_prog_ac_ct_STRIP="strip"
14327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14337 if test -n "$ac_ct_STRIP"; then
14338 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14339 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14341 { echo "$as_me:$LINENO: result: no" >&5
14342 echo "${ECHO_T}no" >&6; }
14345 if test "x$ac_ct_STRIP" = x; then
14348 case $cross_compiling:$ac_tool_warned in
14350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14351 whose name does not start with the host triplet. If you think this
14352 configuration is useful to you, please write to autoconf@gnu.org." >&5
14353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14354 whose name does not start with the host triplet. If you think this
14355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14356 ac_tool_warned=yes ;;
14361 STRIP="$ac_cv_prog_STRIP"
14366 old_CFLAGS="$CFLAGS"
14368 # Set sane defaults for various variables
14369 test -z "$AR" && AR=ar
14370 test -z "$AR_FLAGS" && AR_FLAGS=cru
14371 test -z "$AS" && AS=as
14372 test -z "$CC" && CC=cc
14373 test -z "$LTCC" && LTCC=$CC
14374 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14375 test -z "$DLLTOOL" && DLLTOOL=dlltool
14376 test -z "$LD" && LD=ld
14377 test -z "$LN_S" && LN_S="ln -s"
14378 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14379 test -z "$NM" && NM=nm
14380 test -z "$SED" && SED=sed
14381 test -z "$OBJDUMP" && OBJDUMP=objdump
14382 test -z "$RANLIB" && RANLIB=:
14383 test -z "$STRIP" && STRIP=:
14384 test -z "$ac_objext" && ac_objext=o
14386 # Determine commands to create old-style static archives.
14387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14388 old_postinstall_cmds='chmod 644 $oldlib'
14389 old_postuninstall_cmds=
14391 if test -n "$RANLIB"; then
14394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14403 for cc_temp in $compiler""; do
14405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14411 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14414 # Only perform the check for file, if the check method requires it
14415 case $deplibs_check_method in
14417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14418 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14419 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14420 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14428 lt_save_MAGIC_CMD="$MAGIC_CMD"
14429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14431 for ac_dir in $ac_dummy; do
14433 test -z "$ac_dir" && ac_dir=.
14434 if test -f $ac_dir/${ac_tool_prefix}file; then
14435 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14436 if test -n "$file_magic_test_file"; then
14437 case $deplibs_check_method in
14439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14442 $EGREP "$file_magic_regex" > /dev/null; then
14447 *** Warning: the command libtool uses to detect shared libraries,
14448 *** $file_magic_cmd, produces output that libtool cannot recognize.
14449 *** The result is that libtool may fail to recognize shared libraries
14450 *** as such. This will affect the creation of libtool libraries that
14451 *** depend on shared libraries, but programs linked with such libtool
14452 *** libraries will work regardless of this problem. Nevertheless, you
14453 *** may want to report the problem to your system manager and/or to
14454 *** bug-libtool@gnu.org
14464 MAGIC_CMD="$lt_save_MAGIC_CMD"
14469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14470 if test -n "$MAGIC_CMD"; then
14471 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14472 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14474 { echo "$as_me:$LINENO: result: no" >&5
14475 echo "${ECHO_T}no" >&6; }
14478 if test -z "$lt_cv_path_MAGIC_CMD"; then
14479 if test -n "$ac_tool_prefix"; then
14480 { echo "$as_me:$LINENO: checking for file" >&5
14481 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14490 lt_save_MAGIC_CMD="$MAGIC_CMD"
14491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14493 for ac_dir in $ac_dummy; do
14495 test -z "$ac_dir" && ac_dir=.
14496 if test -f $ac_dir/file; then
14497 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14498 if test -n "$file_magic_test_file"; then
14499 case $deplibs_check_method in
14501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14504 $EGREP "$file_magic_regex" > /dev/null; then
14509 *** Warning: the command libtool uses to detect shared libraries,
14510 *** $file_magic_cmd, produces output that libtool cannot recognize.
14511 *** The result is that libtool may fail to recognize shared libraries
14512 *** as such. This will affect the creation of libtool libraries that
14513 *** depend on shared libraries, but programs linked with such libtool
14514 *** libraries will work regardless of this problem. Nevertheless, you
14515 *** may want to report the problem to your system manager and/or to
14516 *** bug-libtool@gnu.org
14526 MAGIC_CMD="$lt_save_MAGIC_CMD"
14531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14532 if test -n "$MAGIC_CMD"; then
14533 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14534 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14536 { echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6; }
14550 enable_win32_dll=no
14552 # Check whether --enable-libtool-lock was given.
14553 if test "${enable_libtool_lock+set}" = set; then
14554 enableval=$enable_libtool_lock;
14557 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14560 # Check whether --with-pic was given.
14561 if test "${with_pic+set}" = set; then
14562 withval=$with_pic; pic_mode="$withval"
14567 test -z "$pic_mode" && pic_mode=default
14569 # Use C for the default configuration in the libtool script
14573 ac_cpp='$CPP $CPPFLAGS'
14574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14579 # Source file extension for C test sources.
14582 # Object file extension for compiled C test sources.
14586 # Code to be used in simple compile tests
14587 lt_simple_compile_test_code="int some_variable = 0;\n"
14589 # Code to be used in simple link tests
14590 lt_simple_link_test_code='int main(){return(0);}\n'
14593 # If no C compiler was specified, use CC.
14596 # If no C compiler flags were specified, use CFLAGS.
14597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14599 # Allow CC to be a program name with arguments.
14603 # save warnings/boilerplate of simple test code
14604 ac_outfile=conftest.$ac_objext
14605 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14607 _lt_compiler_boilerplate=`cat conftest.err`
14610 ac_outfile=conftest.$ac_objext
14611 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14613 _lt_linker_boilerplate=`cat conftest.err`
14618 lt_prog_compiler_no_builtin_flag=
14620 if test "$GCC" = yes; then
14621 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14624 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14625 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14626 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14629 lt_cv_prog_compiler_rtti_exceptions=no
14630 ac_outfile=conftest.$ac_objext
14631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14632 lt_compiler_flag="-fno-rtti -fno-exceptions"
14633 # Insert the option either (1) after the last *FLAGS variable, or
14634 # (2) before a word containing "conftest.", or (3) at the end.
14635 # Note that $ac_compile itself does not contain backslashes and begins
14636 # with a dollar sign (not a hyphen), so the echo should work correctly.
14637 # The option is referenced via a variable to avoid confusing sed.
14638 lt_compile=`echo "$ac_compile" | $SED \
14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
14642 (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
14643 (eval "$lt_compile" 2>conftest.err)
14645 cat conftest.err >&5
14646 echo "$as_me:14646: \$? = $ac_status" >&5
14647 if (exit $ac_status) && test -s "$ac_outfile"; then
14648 # The compiler can only warn and ignore the option if not recognized
14649 # So say no if there are warnings other than the usual output.
14650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14653 lt_cv_prog_compiler_rtti_exceptions=yes
14659 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14660 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14670 lt_prog_compiler_wl=
14671 lt_prog_compiler_pic=
14672 lt_prog_compiler_static=
14674 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14675 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14677 if test "$GCC" = yes; then
14678 lt_prog_compiler_wl='-Wl,'
14679 lt_prog_compiler_static='-static'
14683 # All AIX code is PIC.
14684 if test "$host_cpu" = ia64; then
14685 # AIX 5 now supports IA64 processor
14686 lt_prog_compiler_static='-Bstatic'
14691 # FIXME: we need at least 68020 code to build shared libraries, but
14692 # adding the `-m68020' flag to GCC prevents building anything better,
14694 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14697 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14698 # PIC is the default for these OSes.
14701 mingw* | pw32* | os2*)
14702 # This hack is so that the source file can tell whether it is being
14703 # built for inclusion in a dll (and should export symbols for example).
14704 lt_prog_compiler_pic='-DDLL_EXPORT'
14707 darwin* | rhapsody*)
14708 # PIC is the default on this platform
14709 # Common symbols not allowed in MH_DYLIB files
14710 lt_prog_compiler_pic='-fno-common'
14714 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14715 # Instead, we relocate shared libraries at runtime.
14719 # Just because we use GCC doesn't mean we suddenly get shared libraries
14720 # on systems that don't support them.
14721 lt_prog_compiler_can_build_shared=no
14726 if test -d /usr/nec; then
14727 lt_prog_compiler_pic=-Kconform_pic
14732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14733 # not for PA HP-UX.
14739 lt_prog_compiler_pic='-fPIC'
14745 lt_prog_compiler_pic='-fPIC'
14749 # PORTME Check for flag to pass linker flags through the system compiler.
14752 lt_prog_compiler_wl='-Wl,'
14753 if test "$host_cpu" = ia64; then
14754 # AIX 5 now supports IA64 processor
14755 lt_prog_compiler_static='-Bstatic'
14757 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14761 # PIC is the default on this platform
14762 # Common symbols not allowed in MH_DYLIB files
14763 case $cc_basename in
14765 lt_prog_compiler_pic='-qnocommon'
14766 lt_prog_compiler_wl='-Wl,'
14771 mingw* | pw32* | os2*)
14772 # This hack is so that the source file can tell whether it is being
14773 # built for inclusion in a dll (and should export symbols for example).
14774 lt_prog_compiler_pic='-DDLL_EXPORT'
14777 hpux9* | hpux10* | hpux11*)
14778 lt_prog_compiler_wl='-Wl,'
14779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14780 # not for PA HP-UX.
14786 lt_prog_compiler_pic='+Z'
14789 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14790 lt_prog_compiler_static='${wl}-a ${wl}archive'
14793 irix5* | irix6* | nonstopux*)
14794 lt_prog_compiler_wl='-Wl,'
14795 # PIC (with -KPIC) is the default.
14796 lt_prog_compiler_static='-non_shared'
14800 lt_prog_compiler_pic='-KPIC'
14801 lt_prog_compiler_static='-Bstatic'
14805 case $cc_basename in
14807 lt_prog_compiler_wl='-Wl,'
14808 lt_prog_compiler_pic='-KPIC'
14809 lt_prog_compiler_static='-static'
14811 pgcc* | pgf77* | pgf90* | pgf95*)
14812 # Portland Group compilers (*not* the Pentium gcc compiler,
14813 # which looks to be a dead project)
14814 lt_prog_compiler_wl='-Wl,'
14815 lt_prog_compiler_pic='-fpic'
14816 lt_prog_compiler_static='-Bstatic'
14819 lt_prog_compiler_wl='-Wl,'
14820 # All Alpha code is PIC.
14821 lt_prog_compiler_static='-non_shared'
14826 osf3* | osf4* | osf5*)
14827 lt_prog_compiler_wl='-Wl,'
14828 # All OSF/1 code is PIC.
14829 lt_prog_compiler_static='-non_shared'
14833 lt_prog_compiler_pic='-KPIC'
14834 lt_prog_compiler_static='-Bstatic'
14835 case $cc_basename in
14836 f77* | f90* | f95*)
14837 lt_prog_compiler_wl='-Qoption ld ';;
14839 lt_prog_compiler_wl='-Wl,';;
14844 lt_prog_compiler_wl='-Qoption ld '
14845 lt_prog_compiler_pic='-PIC'
14846 lt_prog_compiler_static='-Bstatic'
14849 sysv4 | sysv4.2uw2* | sysv4.3*)
14850 lt_prog_compiler_wl='-Wl,'
14851 lt_prog_compiler_pic='-KPIC'
14852 lt_prog_compiler_static='-Bstatic'
14856 if test -d /usr/nec ;then
14857 lt_prog_compiler_pic='-Kconform_pic'
14858 lt_prog_compiler_static='-Bstatic'
14862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14863 lt_prog_compiler_wl='-Wl,'
14864 lt_prog_compiler_pic='-KPIC'
14865 lt_prog_compiler_static='-Bstatic'
14869 lt_prog_compiler_wl='-Wl,'
14870 lt_prog_compiler_can_build_shared=no
14874 lt_prog_compiler_pic='-pic'
14875 lt_prog_compiler_static='-Bstatic'
14879 lt_prog_compiler_can_build_shared=no
14884 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14885 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14888 # Check to make sure the PIC flag actually works.
14890 if test -n "$lt_prog_compiler_pic"; then
14892 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14893 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14894 if test "${lt_prog_compiler_pic_works+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 lt_prog_compiler_pic_works=no
14898 ac_outfile=conftest.$ac_objext
14899 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14900 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14901 # Insert the option either (1) after the last *FLAGS variable, or
14902 # (2) before a word containing "conftest.", or (3) at the end.
14903 # Note that $ac_compile itself does not contain backslashes and begins
14904 # with a dollar sign (not a hyphen), so the echo should work correctly.
14905 # The option is referenced via a variable to avoid confusing sed.
14906 lt_compile=`echo "$ac_compile" | $SED \
14907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14909 -e 's:$: $lt_compiler_flag:'`
14910 (eval echo "\"\$as_me:14910: $lt_compile\"" >&5)
14911 (eval "$lt_compile" 2>conftest.err)
14913 cat conftest.err >&5
14914 echo "$as_me:14914: \$? = $ac_status" >&5
14915 if (exit $ac_status) && test -s "$ac_outfile"; then
14916 # The compiler can only warn and ignore the option if not recognized
14917 # So say no if there are warnings other than the usual output.
14918 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14921 lt_prog_compiler_pic_works=yes
14927 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14928 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14930 if test x"$lt_prog_compiler_pic_works" = xyes; then
14931 case $lt_prog_compiler_pic in
14933 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14936 lt_prog_compiler_pic=
14937 lt_prog_compiler_can_build_shared=no
14942 # For platforms which do not support PIC, -DPIC is meaningless:
14944 lt_prog_compiler_pic=
14947 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14952 # Check to make sure the static flag actually works.
14954 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14955 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14956 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14957 if test "${lt_prog_compiler_static_works+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 lt_prog_compiler_static_works=no
14961 save_LDFLAGS="$LDFLAGS"
14962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14963 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14965 # The linker can only warn and ignore the option if not recognized
14966 # So say no if there are warnings
14967 if test -s conftest.err; then
14968 # Append any errors to the config.log.
14969 cat conftest.err 1>&5
14970 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14972 if diff conftest.exp conftest.er2 >/dev/null; then
14973 lt_prog_compiler_static_works=yes
14976 lt_prog_compiler_static_works=yes
14980 LDFLAGS="$save_LDFLAGS"
14983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14984 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14986 if test x"$lt_prog_compiler_static_works" = xyes; then
14989 lt_prog_compiler_static=
14993 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14994 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14995 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 lt_cv_prog_compiler_c_o=no
14999 $rm -r conftest 2>/dev/null
15003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15005 lt_compiler_flag="-o out/conftest2.$ac_objext"
15006 # Insert the option either (1) after the last *FLAGS variable, or
15007 # (2) before a word containing "conftest.", or (3) at the end.
15008 # Note that $ac_compile itself does not contain backslashes and begins
15009 # with a dollar sign (not a hyphen), so the echo should work correctly.
15010 lt_compile=`echo "$ac_compile" | $SED \
15011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15013 -e 's:$: $lt_compiler_flag:'`
15014 (eval echo "\"\$as_me:15014: $lt_compile\"" >&5)
15015 (eval "$lt_compile" 2>out/conftest.err)
15017 cat out/conftest.err >&5
15018 echo "$as_me:15018: \$? = $ac_status" >&5
15019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15021 # The compiler can only warn and ignore the option if not recognized
15022 # So say no if there are warnings
15023 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15026 lt_cv_prog_compiler_c_o=yes
15031 # SGI C++ compiler will create directory out/ii_files/ for
15032 # template instantiation
15033 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15034 $rm out/* && rmdir out
15040 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15041 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15044 hard_links="nottested"
15045 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15046 # do not overwrite the value of need_locks provided by the user
15047 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15048 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15053 ln conftest.a conftest.b 2>&5 || hard_links=no
15054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15055 { echo "$as_me:$LINENO: result: $hard_links" >&5
15056 echo "${ECHO_T}$hard_links" >&6; }
15057 if test "$hard_links" = no; then
15058 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15059 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15066 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15067 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15070 allow_undefined_flag=
15071 enable_shared_with_static_runtimes=no
15073 archive_expsym_cmds=
15074 old_archive_From_new_cmds=
15075 old_archive_from_expsyms_cmds=
15076 export_dynamic_flag_spec=
15077 whole_archive_flag_spec=
15078 thread_safe_flag_spec=
15079 hardcode_libdir_flag_spec=
15080 hardcode_libdir_flag_spec_ld=
15081 hardcode_libdir_separator=
15083 hardcode_minus_L=no
15084 hardcode_shlibpath_var=unsupported
15085 link_all_deplibs=unknown
15086 hardcode_automatic=no
15088 module_expsym_cmds=
15089 always_export_symbols=no
15090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15091 # include_expsyms should be a list of space-separated symbols to be *always*
15092 # included in the symbol list
15094 # exclude_expsyms can be an extended regexp of symbols to exclude
15095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15097 # as well as any symbol that contains `d'.
15098 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15100 # platforms (ab)use it in PIC code, but their linkers get confused if
15101 # the symbol is explicitly referenced. Since portable code cannot
15102 # rely on this symbol name, it's probably fine to never include it in
15103 # preloaded symbol tables.
15104 extract_expsyms_cmds=
15105 # Just being paranoid about ensuring that cc_basename is set.
15106 for cc_temp in $compiler""; do
15108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15117 cygwin* | mingw* | pw32*)
15118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15119 # When not using gcc, we currently assume that we are using
15120 # Microsoft Visual C++.
15121 if test "$GCC" != yes; then
15126 # we just hope/assume this is gcc and not c89 (= MSVC++)
15135 if test "$with_gnu_ld" = yes; then
15136 # If archive_cmds runs LD, not CC, wlarc should be empty
15139 # Set some defaults for GNU ld with shared library support. These
15140 # are reset later if shared libraries are not supported. Putting them
15141 # here allows them to be overridden if necessary.
15142 runpath_var=LD_RUN_PATH
15143 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15144 export_dynamic_flag_spec='${wl}--export-dynamic'
15145 # ancient GNU ld didn't support --whole-archive et. al.
15146 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15147 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15149 whole_archive_flag_spec=
15151 supports_anon_versioning=no
15152 case `$LD -v 2>/dev/null` in
15153 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15154 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15155 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15156 *\ 2.11.*) ;; # other 2.11 versions
15157 *) supports_anon_versioning=yes ;;
15160 # See if GNU ld supports shared libraries.
15162 aix3* | aix4* | aix5*)
15163 # On AIX/PPC, the GNU linker is very broken
15164 if test "$host_cpu" != ia64; then
15168 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15169 *** to be unable to reliably create shared libraries on AIX.
15170 *** Therefore, libtool is disabling shared libraries support. If you
15171 *** really care for shared libraries, you may want to modify your PATH
15172 *** so that a non-GNU linker is found, and then restart.
15179 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)'
15180 hardcode_libdir_flag_spec='-L$libdir'
15181 hardcode_minus_L=yes
15183 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15184 # that the semantics of dynamic libraries on AmigaOS, at least up
15185 # to version 4, is to share data among multiple programs linked
15186 # with the same dynamic library. Since this doesn't match the
15187 # behavior of shared libraries on other platforms, we can't use
15193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194 allow_undefined_flag=unsupported
15195 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15196 # support --undefined. This deserves some investigation. FIXME
15197 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15203 cygwin* | mingw* | pw32*)
15204 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15205 # as there is no search path for DLLs.
15206 hardcode_libdir_flag_spec='-L$libdir'
15207 allow_undefined_flag=unsupported
15208 always_export_symbols=no
15209 enable_shared_with_static_runtimes=yes
15210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15212 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15214 # If the export-symbols file already is a .def file (1st line
15215 # is EXPORTS), use it as is; otherwise, prepend...
15216 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15217 cp $export_symbols $output_objdir/$soname.def;
15219 echo EXPORTS > $output_objdir/$soname.def;
15220 cat $export_symbols >> $output_objdir/$soname.def;
15222 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15230 hardcode_shlibpath_var=no
15231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15232 export_dynamic_flag_spec='${wl}-E'
15233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15234 # Instead, shared libraries are loaded at an image base (0x10000000 by
15235 # default) and relocated if they conflict, which is a slow very memory
15236 # consuming and fragmenting process. To avoid this, we pick a random,
15237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15240 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'
15244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15246 case $cc_basename,$host_cpu in
15247 pgcc*) # Portland Group C compiler
15248 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'
15249 tmp_addflag=' $pic_flag'
15251 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15252 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'
15253 tmp_addflag=' $pic_flag -Mnomain' ;;
15254 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15255 tmp_addflag=' -i_dynamic' ;;
15256 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15257 tmp_addflag=' -i_dynamic -nofor_main' ;;
15258 ifc* | ifort*) # Intel Fortran compiler
15259 tmp_addflag=' -nofor_main' ;;
15261 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15263 if test $supports_anon_versioning = yes; then
15264 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15266 $echo "local: *; };" >> $output_objdir/$libname.ver~
15267 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15276 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15285 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15290 *** create shared libraries on Solaris systems. Therefore, libtool
15291 *** is disabling shared libraries support. We urge you to upgrade GNU
15292 *** binutils to release 2.9.1 or newer. Another option is to modify
15293 *** your PATH or compiler configuration so that the native linker is
15294 *** used, and then restart.
15297 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15306 case `$LD -v 2>&1` in
15307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15311 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15312 *** reliably create shared libraries on SCO systems. Therefore, libtool
15313 *** is disabling shared libraries support. We urge you to upgrade GNU
15314 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15315 *** your PATH or compiler configuration so that the native linker is
15316 *** used, and then restart.
15321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15322 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15335 hardcode_direct=yes
15336 hardcode_shlibpath_var=no
15340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15349 if test "$ld_shlibs" = no; then
15351 hardcode_libdir_flag_spec=
15352 export_dynamic_flag_spec=
15353 whole_archive_flag_spec=
15356 # PORTME fill in a description of your system's linker (not GNU ld)
15359 allow_undefined_flag=unsupported
15360 always_export_symbols=yes
15361 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'
15362 # Note: this linker hardcodes the directories in LIBPATH if there
15363 # are no directories specified by -L.
15364 hardcode_minus_L=yes
15365 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15366 # Neither direct hardcoding nor static linking is supported with a
15368 hardcode_direct=unsupported
15373 if test "$host_cpu" = ia64; then
15374 # On IA64, the linker does run time linking by default, so we don't
15375 # have to do anything special.
15376 aix_use_runtimelinking=no
15377 exp_sym_flag='-Bexport'
15380 # If we're using GNU nm, then we don't want the "-C" option.
15381 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15382 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15383 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'
15385 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'
15387 aix_use_runtimelinking=no
15389 # Test if we are trying to use run time linking or normal
15390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15391 # need to do runtime linking.
15392 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15393 for ld_flag in $LDFLAGS; do
15394 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15395 aix_use_runtimelinking=yes
15402 exp_sym_flag='-bexport'
15403 no_entry_flag='-bnoentry'
15406 # When large executables or shared objects are built, AIX ld can
15407 # have problems creating the table of contents. If linking a library
15408 # or program results in "error TOC overflow" add -mminimal-toc to
15409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15413 hardcode_direct=yes
15414 hardcode_libdir_separator=':'
15415 link_all_deplibs=yes
15417 if test "$GCC" = yes; then
15418 case $host_os in aix4.[012]|aix4.[012].*)
15419 # We only want to do this on AIX 4.2 and lower, the check
15420 # below for broken collect2 doesn't work under 4.3+
15421 collect2name=`${CC} -print-prog-name=collect2`
15422 if test -f "$collect2name" && \
15423 strings "$collect2name" | grep resolve_lib_name >/dev/null
15425 # We have reworked collect2
15426 hardcode_direct=yes
15428 # We have old collect2
15429 hardcode_direct=unsupported
15430 # It fails to find uninstalled libraries when the uninstalled
15431 # path is not listed in the libpath. Setting hardcode_minus_L
15432 # to unsupported forces relinking
15433 hardcode_minus_L=yes
15434 hardcode_libdir_flag_spec='-L$libdir'
15435 hardcode_libdir_separator=
15439 shared_flag='-shared'
15440 if test "$aix_use_runtimelinking" = yes; then
15441 shared_flag="$shared_flag "'${wl}-G'
15445 if test "$host_cpu" = ia64; then
15446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15447 # chokes on -Wl,-G. The following line is correct:
15450 if test "$aix_use_runtimelinking" = yes; then
15451 shared_flag='${wl}-G'
15453 shared_flag='${wl}-bM:SRE'
15458 # It seems that -bexpall does not export symbols beginning with
15459 # underscore (_), so it is better to generate a list of symbols to export.
15460 always_export_symbols=yes
15461 if test "$aix_use_runtimelinking" = yes; then
15462 # Warning - without using the other runtime loading flags (-brtl),
15463 # -berok will link without error, but may produce a broken library.
15464 allow_undefined_flag='-berok'
15465 # Determine the default libpath from the value encoded in an empty executable.
15466 cat >conftest.$ac_ext <<_ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15481 rm -f conftest.$ac_objext conftest$ac_exeext
15482 if { (ac_try="$ac_link"
15483 case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_link") 2>conftest.er1
15490 grep -v '^ *+' conftest.er1 >conftest.err
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496 { (case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_try") 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } &&
15505 { ac_try='test -s conftest$ac_exeext'
15506 { (case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_try") 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15518 # Check for a 64-bit object if we didn't find anything.
15519 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; }
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15528 rm -f core conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15533 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"
15535 if test "$host_cpu" = ia64; then
15536 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15537 allow_undefined_flag="-z nodefs"
15538 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"
15540 # Determine the default libpath from the value encoded in an empty executable.
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_link") 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15571 { (case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_try") 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; } &&
15580 { ac_try='test -s conftest$ac_exeext'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15593 # Check for a 64-bit object if we didn't find anything.
15594 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; }
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15603 rm -f core conftest.err conftest.$ac_objext \
15604 conftest$ac_exeext conftest.$ac_ext
15605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15607 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15608 # Warning - without using the other run time loading flags,
15609 # -berok will link without error, but may produce a broken library.
15610 no_undefined_flag=' ${wl}-bernotok'
15611 allow_undefined_flag=' ${wl}-berok'
15612 # Exported symbols can be pulled into shared objects from archives
15613 whole_archive_flag_spec='$convenience'
15614 archive_cmds_need_lc=yes
15615 # This is similar to how AIX traditionally builds its shared libraries.
15616 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'
15622 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)'
15623 hardcode_libdir_flag_spec='-L$libdir'
15624 hardcode_minus_L=yes
15625 # see comment about different semantics on the GNU ld section
15630 export_dynamic_flag_spec=-rdynamic
15633 cygwin* | mingw* | pw32*)
15634 # When not using gcc, we currently assume that we are using
15635 # Microsoft Visual C++.
15636 # hardcode_libdir_flag_spec is actually meaningless, as there is
15637 # no search path for DLLs.
15638 hardcode_libdir_flag_spec=' '
15639 allow_undefined_flag=unsupported
15640 # Tell ltmain to make .lib files, not .a files.
15642 # Tell ltmain to make .dll files, not .so files.
15644 # FIXME: Setting linknames here is a bad hack.
15645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15646 # The linker will automatically build a .lib file if we build a DLL.
15647 old_archive_From_new_cmds='true'
15648 # FIXME: Should let the user specify the lib program.
15649 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15650 fix_srcfile_path='`cygpath -w "$srcfile"`'
15651 enable_shared_with_static_runtimes=yes
15654 darwin* | rhapsody*)
15656 rhapsody* | darwin1.[012])
15657 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15660 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15661 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15663 case ${MACOSX_DEPLOYMENT_TARGET} in
15665 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15668 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15674 archive_cmds_need_lc=no
15676 hardcode_automatic=yes
15677 hardcode_shlibpath_var=unsupported
15678 whole_archive_flag_spec=''
15679 link_all_deplibs=yes
15680 if test "$GCC" = yes ; then
15681 output_verbose_link_cmd='echo'
15682 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15683 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15684 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15685 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}'
15686 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}'
15688 case $cc_basename in
15690 output_verbose_link_cmd='echo'
15691 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15692 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15693 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15694 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}'
15695 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}'
15705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 hardcode_libdir_flag_spec='-L$libdir'
15707 hardcode_shlibpath_var=no
15714 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15715 # support. Future versions do this automatically, but an explicit c++rt0.o
15716 # does not break anything, and helps significantly (at the cost of a little
15719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15720 hardcode_libdir_flag_spec='-R$libdir'
15721 hardcode_direct=yes
15722 hardcode_shlibpath_var=no
15725 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_direct=yes
15729 hardcode_minus_L=yes
15730 hardcode_shlibpath_var=no
15733 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15734 freebsd* | kfreebsd*-gnu | dragonfly*)
15735 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15736 hardcode_libdir_flag_spec='-R$libdir'
15737 hardcode_direct=yes
15738 hardcode_shlibpath_var=no
15742 if test "$GCC" = yes; then
15743 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'
15745 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'
15747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15748 hardcode_libdir_separator=:
15749 hardcode_direct=yes
15751 # hardcode_minus_L: Not really in the search PATH,
15752 # but as the default location of the library.
15753 hardcode_minus_L=yes
15754 export_dynamic_flag_spec='${wl}-E'
15758 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15761 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15763 if test "$with_gnu_ld" = no; then
15764 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15765 hardcode_libdir_separator=:
15767 hardcode_direct=yes
15768 export_dynamic_flag_spec='${wl}-E'
15770 # hardcode_minus_L: Not really in the search PATH,
15771 # but as the default location of the library.
15772 hardcode_minus_L=yes
15777 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15780 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15786 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15792 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15798 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15802 if test "$with_gnu_ld" = no; then
15803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15804 hardcode_libdir_separator=:
15808 hardcode_libdir_flag_spec_ld='+b $libdir'
15810 hardcode_shlibpath_var=no
15813 hardcode_direct=yes
15814 export_dynamic_flag_spec='${wl}-E'
15816 # hardcode_minus_L: Not really in the search PATH,
15817 # but as the default location of the library.
15818 hardcode_minus_L=yes
15824 irix5* | irix6* | nonstopux*)
15825 if test "$GCC" = yes; then
15826 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'
15828 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'
15829 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15832 hardcode_libdir_separator=:
15833 link_all_deplibs=yes
15837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15840 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15842 hardcode_libdir_flag_spec='-R$libdir'
15843 hardcode_direct=yes
15844 hardcode_shlibpath_var=no
15848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_direct=yes
15850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15851 hardcode_libdir_separator=:
15852 hardcode_shlibpath_var=no
15856 hardcode_direct=yes
15857 hardcode_shlibpath_var=no
15858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15860 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15862 export_dynamic_flag_spec='${wl}-E'
15865 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_libdir_flag_spec='-R$libdir'
15870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15878 hardcode_libdir_flag_spec='-L$libdir'
15879 hardcode_minus_L=yes
15880 allow_undefined_flag=unsupported
15881 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'
15882 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15886 if test "$GCC" = yes; then
15887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15888 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'
15890 allow_undefined_flag=' -expect_unresolved \*'
15891 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'
15893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15894 hardcode_libdir_separator=:
15897 osf4* | osf5*) # as osf3* with the addition of -msym flag
15898 if test "$GCC" = yes; then
15899 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15900 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'
15901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15903 allow_undefined_flag=' -expect_unresolved \*'
15904 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'
15905 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15906 $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'
15908 # Both c and cxx compiler support -rpath directly
15909 hardcode_libdir_flag_spec='-rpath $libdir'
15911 hardcode_libdir_separator=:
15915 no_undefined_flag=' -z text'
15916 if test "$GCC" = yes; then
15918 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15920 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15923 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15927 hardcode_libdir_flag_spec='-R$libdir'
15928 hardcode_shlibpath_var=no
15930 solaris2.[0-5] | solaris2.[0-5].*) ;;
15932 # The compiler driver will combine linker options so we
15933 # cannot just pass the convience library names through
15934 # without $wl, iff we do not link with $LD.
15935 # Luckily, gcc supports the same syntax we need for Sun Studio.
15936 # Supported since Solaris 2.6 (maybe 2.5.1?)
15939 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15941 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' ;;
15944 link_all_deplibs=yes
15948 if test "x$host_vendor" = xsequent; then
15949 # Use $CC to link under sequent, because it throws in some extra .o
15950 # files that make .init and .fini sections work.
15951 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15953 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15955 hardcode_libdir_flag_spec='-L$libdir'
15956 hardcode_direct=yes
15957 hardcode_minus_L=yes
15958 hardcode_shlibpath_var=no
15962 case $host_vendor in
15964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965 hardcode_direct=yes # is this really true???
15968 ## LD is ld it makes a PLAMLIB
15969 ## CC just makes a GrossModule.
15970 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15971 reload_cmds='$CC -r -o $output$reload_objs'
15975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15976 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15979 runpath_var='LD_RUN_PATH'
15980 hardcode_shlibpath_var=no
15984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_shlibpath_var=no
15986 export_dynamic_flag_spec='-Bexport'
15990 if test -d /usr/nec; then
15991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15992 hardcode_shlibpath_var=no
15993 runpath_var=LD_RUN_PATH
15994 hardcode_runpath_var=yes
15999 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16000 no_undefined_flag='${wl}-z,text'
16001 archive_cmds_need_lc=no
16002 hardcode_shlibpath_var=no
16003 runpath_var='LD_RUN_PATH'
16005 if test "$GCC" = yes; then
16006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16007 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 sysv5* | sco3.2v5* | sco5v6*)
16015 # Note: We can NOT use -z defs as we might desire, because we do not
16016 # link with -lc, and that would cause any symbols used from libc to
16017 # always be unresolved, which means just about no library would
16018 # ever link correctly. If we're not using GNU ld we use -z text
16019 # though, which does catch some bad symbols but isn't as heavy-handed
16021 no_undefined_flag='${wl}-z,text'
16022 allow_undefined_flag='${wl}-z,nodefs'
16023 archive_cmds_need_lc=no
16024 hardcode_shlibpath_var=no
16025 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16026 hardcode_libdir_separator=':'
16027 link_all_deplibs=yes
16028 export_dynamic_flag_spec='${wl}-Bexport'
16029 runpath_var='LD_RUN_PATH'
16031 if test "$GCC" = yes; then
16032 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16035 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_libdir_flag_spec='-L$libdir'
16043 hardcode_shlibpath_var=no
16052 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16053 echo "${ECHO_T}$ld_shlibs" >&6; }
16054 test "$ld_shlibs" = no && can_build_shared=no
16057 # Do we need to explicitly link libc?
16059 case "x$archive_cmds_need_lc" in
16061 # Assume -lc should be added
16062 archive_cmds_need_lc=yes
16064 if test "$enable_shared" = yes && test "$GCC" = yes; then
16065 case $archive_cmds in
16067 # FIXME: we may have to deal with multi-command sequences.
16070 # Test whether the compiler implicitly links with -lc since on some
16071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16072 # to ld, don't add -lc before -lgcc.
16073 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16074 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } 2>conftest.err; then
16085 libobjs=conftest.$ac_objext
16087 wl=$lt_prog_compiler_wl
16088 pic_flag=$lt_prog_compiler_pic
16094 lt_save_allow_undefined_flag=$allow_undefined_flag
16095 allow_undefined_flag=
16096 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16097 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }
16102 archive_cmds_need_lc=no
16104 archive_cmds_need_lc=yes
16106 allow_undefined_flag=$lt_save_allow_undefined_flag
16108 cat conftest.err 1>&5
16111 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16112 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16119 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16120 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16121 library_names_spec=
16122 libname_spec='lib$name'
16126 postuninstall_cmds=
16130 shlibpath_overrides_runpath=unknown
16132 dynamic_linker="$host_os ld.so"
16133 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16134 if test "$GCC" = yes; then
16135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16136 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16137 # if the path contains ";" then we assume it to be the separator
16138 # otherwise default to the standard path separator (i.e. ":") - it is
16139 # assumed that no part of a normal pathname contains ";" but that should
16140 # okay in the real world where ";" in dirpaths is itself problematic.
16141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16148 need_lib_prefix=unknown
16149 hardcode_into_libs=no
16151 # when you set need_version to no, make sure it does not cause -set_version
16152 # flags to be left without arguments
16153 need_version=unknown
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16159 shlibpath_var=LIBPATH
16161 # AIX 3 has no versioning support, so we append a major version to the name.
16162 soname_spec='${libname}${release}${shared_ext}$major'
16169 hardcode_into_libs=yes
16170 if test "$host_cpu" = ia64; then
16171 # AIX 5 supports IA64
16172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16173 shlibpath_var=LD_LIBRARY_PATH
16175 # With GCC up to 2.95.x, collect2 would create an import file
16176 # for dependence libraries. The import file would start with
16177 # the line `#! .'. This would cause the generated library to
16178 # depend on `.', always an invalid library. This was fixed in
16179 # development snapshots of GCC prior to 3.0.
16181 aix4 | aix4.[01] | aix4.[01].*)
16182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16184 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16187 can_build_shared=no
16191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16192 # soname into executable. Probably we can add versioning support to
16193 # collect2, so additional links can be useful in future.
16194 if test "$aix_use_runtimelinking" = yes; then
16195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16196 # instead of lib<name>.a to let people know that these are not
16197 # typical AIX shared libraries.
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16200 # We preserve .a as extension for shared libraries through AIX4.2
16201 # and later when we are not doing run time linking.
16202 library_names_spec='${libname}${release}.a $libname.a'
16203 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LIBPATH
16210 library_names_spec='$libname.ixlibrary $libname.a'
16211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16212 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'
16216 library_names_spec='${libname}${shared_ext}'
16217 dynamic_linker="$host_os ld.so"
16218 shlibpath_var=LIBRARY_PATH
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 soname_spec='${libname}${release}${shared_ext}$major'
16226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16230 # the default ld.so.conf also contains /usr/contrib/lib and
16231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16232 # libtool to hard-code these into programs
16235 cygwin* | mingw* | pw32*)
16236 version_type=windows
16241 case $GCC,$host_os in
16242 yes,cygwin* | yes,mingw* | yes,pw32*)
16243 library_names_spec='$libname.dll.a'
16244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16245 postinstall_cmds='base_file=`basename \${file}`~
16246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16247 dldir=$destdir/`dirname \$dlpath`~
16248 test -d \$dldir || mkdir -p \$dldir~
16249 $install_prog $dir/$dlname \$dldir/$dlname~
16250 chmod a+x \$dldir/$dlname'
16251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16252 dlpath=$dir/\$dldll~
16254 shlibpath_overrides_runpath=yes
16258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16263 # MinGW DLLs use traditional 'lib' prefix
16264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16267 # It is most probably a Windows format PATH printed by
16268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16269 # path with ; separators, and with drive letters. We can handle the
16270 # drive letters (cygwin fileutils understands them), so leave them,
16271 # especially as we might pass files found there to a mingw objdump,
16272 # which wouldn't understand a cygwinified path. Ahh.
16273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16279 # pw32 DLLs use 'pw' prefix rather than 'lib'
16280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16289 dynamic_linker='Win32 ld.exe'
16290 # FIXME: first we should search . and the directory the executable is in
16294 darwin* | rhapsody*)
16295 dynamic_linker="$host_os dyld"
16296 version_type=darwin
16299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16300 soname_spec='${libname}${release}${major}$shared_ext'
16301 shlibpath_overrides_runpath=yes
16302 shlibpath_var=DYLD_LIBRARY_PATH
16303 shrext_cmds='.dylib'
16304 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16305 if test "$GCC" = yes; then
16306 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"`
16308 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 shlibpath_var=LD_LIBRARY_PATH
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=no
16334 hardcode_into_libs=yes
16335 dynamic_linker='GNU ld.so'
16338 freebsd* | dragonfly*)
16339 # DragonFly does not have aout. When/if they implement a new
16340 # versioning mechanism, adjust this.
16341 if test -x /usr/bin/objformat; then
16342 objformat=`/usr/bin/objformat`
16345 freebsd[123]*) objformat=aout ;;
16346 *) objformat=elf ;;
16349 version_type=freebsd-$objformat
16350 case $version_type in
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16361 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=yes
16366 freebsd3.[01]* | freebsdelf3.[01]*)
16367 shlibpath_overrides_runpath=yes
16368 hardcode_into_libs=yes
16370 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16371 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16372 shlibpath_overrides_runpath=no
16373 hardcode_into_libs=yes
16375 freebsd*) # from 4.6 on
16376 shlibpath_overrides_runpath=yes
16377 hardcode_into_libs=yes
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 hardcode_into_libs=yes
16392 hpux9* | hpux10* | hpux11*)
16393 # Give a soname corresponding to the major version so that dld.sl refuses to
16394 # link against other versions.
16401 hardcode_into_libs=yes
16402 dynamic_linker="$host_os dld.so"
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 if test "X$HPUX_IA64_MODE" = X32; then
16408 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16410 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16416 hardcode_into_libs=yes
16417 dynamic_linker="$host_os dld.sl"
16418 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16427 dynamic_linker="$host_os dld.sl"
16428 shlibpath_var=SHLIB_PATH
16429 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16434 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16435 postinstall_cmds='chmod 555 $lib'
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 shlibpath_overrides_runpath=no
16447 hardcode_into_libs=yes
16450 irix5* | irix6* | nonstopux*)
16452 nonstopux*) version_type=nonstopux ;;
16454 if test "$lt_cv_prog_gnu_ld" = yes; then
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16465 irix5* | nonstopux*)
16466 libsuff= shlibsuff=
16469 case $LD in # libtool.m4 will add one of these switches to LD
16470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16471 libsuff= shlibsuff= libmagic=32-bit;;
16472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16473 libsuff=32 shlibsuff=N32 libmagic=N32;;
16474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16476 *) libsuff= shlibsuff= libmagic=never-match;;
16480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16481 shlibpath_overrides_runpath=no
16482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16484 hardcode_into_libs=yes
16487 # No shared lib support for Linux oldld, aout, or coff.
16488 linux*oldld* | linux*aout* | linux*coff*)
16492 # This must be Linux ELF.
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=no
16502 # This implies no fast_install, which is unacceptable.
16503 # Some rework will be needed to allow for fast_install
16504 # before this can be enabled.
16505 hardcode_into_libs=yes
16507 # Append ld.so.conf contents to the search path
16508 if test -f /etc/ld.so.conf; then
16509 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' ' '`
16510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16513 # We used to test for /lib/ld.so.1 and disable shared libraries on
16514 # powerpc, because MkLinux only supported shared libraries with the
16515 # GNU dynamic linker. Since this was broken with cross compilers,
16516 # most powerpc-linux boxes support dynamic linking these days and
16517 # people can always --disable-shared, the test was removed, and we
16518 # assume the GNU/Linux dynamic linker is in use.
16519 dynamic_linker='GNU/Linux ld.so'
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=no
16530 hardcode_into_libs=yes
16531 dynamic_linker='GNU ld.so'
16538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16541 dynamic_linker='NetBSD (a.out) ld.so'
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16544 soname_spec='${libname}${release}${shared_ext}$major'
16545 dynamic_linker='NetBSD ld.elf_so'
16547 shlibpath_var=LD_LIBRARY_PATH
16548 shlibpath_overrides_runpath=yes
16549 hardcode_into_libs=yes
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=yes
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 shlibpath_var=LD_LIBRARY_PATH
16566 shlibpath_overrides_runpath=yes
16571 sys_lib_dlsearch_path_spec="/usr/lib"
16573 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16575 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16576 *) need_version=no ;;
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16583 openbsd2.[89] | openbsd2.[89].*)
16584 shlibpath_overrides_runpath=no
16587 shlibpath_overrides_runpath=yes
16591 shlibpath_overrides_runpath=yes
16596 libname_spec='$name'
16599 library_names_spec='$libname${shared_ext} $libname.a'
16600 dynamic_linker='OS/2 ld.exe'
16601 shlibpath_var=LIBPATH
16604 osf3* | osf4* | osf5*)
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=yes
16623 hardcode_into_libs=yes
16624 # ldd complains unless libraries are executable
16625 postinstall_cmds='chmod +x $lib'
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 if test "$with_gnu_ld" = yes; then
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 case $host_vendor in
16647 shlibpath_overrides_runpath=no
16649 export_dynamic_flag_spec='${wl}-Blargedynsym'
16650 runpath_var=LD_RUN_PATH
16658 shlibpath_overrides_runpath=no
16659 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16665 if test -d /usr/nec ;then
16667 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16668 soname_spec='$libname${shared_ext}.$major'
16669 shlibpath_var=LD_LIBRARY_PATH
16673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16674 version_type=freebsd-elf
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 hardcode_into_libs=yes
16681 if test "$with_gnu_ld" = yes; then
16682 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16683 shlibpath_overrides_runpath=no
16685 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16686 shlibpath_overrides_runpath=yes
16689 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16693 sys_lib_dlsearch_path_spec='/usr/lib'
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699 soname_spec='${libname}${release}${shared_ext}$major'
16700 shlibpath_var=LD_LIBRARY_PATH
16707 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16708 echo "${ECHO_T}$dynamic_linker" >&6; }
16709 test "$dynamic_linker" = no && can_build_shared=no
16711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16712 if test "$GCC" = yes; then
16713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16716 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16717 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16719 if test -n "$hardcode_libdir_flag_spec" || \
16720 test -n "$runpath_var" || \
16721 test "X$hardcode_automatic" = "Xyes" ; then
16723 # We can hardcode non-existant directories.
16724 if test "$hardcode_direct" != no &&
16725 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16726 # have to relink, otherwise we might link with an installed library
16727 # when we should be linking with a yet-to-be-installed one
16728 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16729 test "$hardcode_minus_L" != no; then
16730 # Linking always hardcodes the temporary library directory.
16731 hardcode_action=relink
16733 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16734 hardcode_action=immediate
16737 # We cannot hardcode anything, or else we can only hardcode existing
16739 hardcode_action=unsupported
16741 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16742 echo "${ECHO_T}$hardcode_action" >&6; }
16744 if test "$hardcode_action" = relink; then
16745 # Fast installation is not supported
16746 enable_fast_install=no
16747 elif test "$shlibpath_overrides_runpath" = yes ||
16748 test "$enable_shared" = no; then
16749 # Fast installation is not necessary
16750 enable_fast_install=needless
16755 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16756 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16757 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16760 { echo "$as_me:$LINENO: result: yes" >&5
16761 echo "${ECHO_T}yes" >&6; }
16763 # FIXME - insert some real tests, host_os isn't really good enough
16766 if test -n "$STRIP" ; then
16767 striplib="$STRIP -x"
16768 { echo "$as_me:$LINENO: result: yes" >&5
16769 echo "${ECHO_T}yes" >&6; }
16771 { echo "$as_me:$LINENO: result: no" >&5
16772 echo "${ECHO_T}no" >&6; }
16776 { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16782 if test "x$enable_dlopen" != xyes; then
16783 enable_dlopen=unknown
16784 enable_dlopen_self=unknown
16785 enable_dlopen_self_static=unknown
16792 lt_cv_dlopen="load_add_on"
16794 lt_cv_dlopen_self=yes
16798 lt_cv_dlopen="LoadLibrary"
16803 lt_cv_dlopen="dlopen"
16808 # if libdl is installed we need to link against it
16809 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16810 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_check_lib_save_LIBS=$LIBS
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16823 /* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16838 rm -f conftest.$ac_objext conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>conftest.er1
16847 grep -v '^ *+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_try") 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_lib_dl_dlopen=yes
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 ac_cv_lib_dl_dlopen=no
16880 rm -f core conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16884 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16886 if test $ac_cv_lib_dl_dlopen = yes; then
16887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16890 lt_cv_dlopen="dyld"
16892 lt_cv_dlopen_self=yes
16899 { echo "$as_me:$LINENO: checking for shl_load" >&5
16900 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16901 if test "${ac_cv_func_shl_load+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912 #define shl_load innocuous_shl_load
16914 /* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char shl_load (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16920 # include <limits.h>
16922 # include <assert.h>
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined __stub_shl_load || defined __stub___shl_load
16944 return shl_load ();
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_link") 2>conftest.er1
16958 grep -v '^ *+' conftest.er1 >conftest.err
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_try") 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 ac_cv_func_shl_load=yes
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 ac_cv_func_shl_load=no
16991 rm -f core conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16994 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16995 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16996 if test $ac_cv_func_shl_load = yes; then
16997 lt_cv_dlopen="shl_load"
16999 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17000 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17004 ac_check_lib_save_LIBS=$LIBS
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17013 /* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
17023 return shl_load ();
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest$ac_exeext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_lib_dld_shl_load=yes
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_cv_lib_dld_shl_load=no
17070 rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17076 if test $ac_cv_lib_dld_shl_load = yes; then
17077 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17079 { echo "$as_me:$LINENO: checking for dlopen" >&5
17080 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17081 if test "${ac_cv_func_dlopen+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17092 #define dlopen innocuous_dlopen
17094 /* System header to define __stub macros and hopefully few prototypes,
17095 which can conflict with char dlopen (); below.
17096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097 <limits.h> exists even on freestanding compilers. */
17100 # include <limits.h>
17102 # include <assert.h>
17107 /* Override any GCC internal prototype to avoid an error.
17108 Use char because int might match the return type of a GCC
17109 builtin and then its argument prototype would still apply. */
17114 /* The GNU C library defines this for functions which it implements
17115 to always fail with ENOSYS. Some functions are actually named
17116 something starting with __ and the normal name is an alias. */
17117 #if defined __stub_dlopen || defined __stub___dlopen
17129 rm -f conftest.$ac_objext conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_link") 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144 { (case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_try") 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
17163 ac_cv_func_dlopen=yes
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17168 ac_cv_func_dlopen=no
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17174 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17175 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17176 if test $ac_cv_func_dlopen = yes; then
17177 lt_cv_dlopen="dlopen"
17179 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17180 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 ac_check_lib_save_LIBS=$LIBS
17186 cat >conftest.$ac_ext <<_ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17193 /* Override any GCC internal prototype to avoid an error.
17194 Use char because int might match the return type of a GCC
17195 builtin and then its argument prototype would still apply. */
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17217 grep -v '^ *+' conftest.er1 >conftest.err
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_lib_dl_dlopen=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_lib_dl_dlopen=no
17250 rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17252 LIBS=$ac_check_lib_save_LIBS
17254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17256 if test $ac_cv_lib_dl_dlopen = yes; then
17257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17259 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17260 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17261 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 ac_check_lib_save_LIBS=$LIBS
17265 LIBS="-lsvld $LIBS"
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17273 /* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17297 grep -v '^ *+' conftest.er1 >conftest.err
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17303 { (case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_try") 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest$ac_exeext'
17313 { (case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_try") 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_cv_lib_svld_dlopen=yes
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 ac_cv_lib_svld_dlopen=no
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17334 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17335 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17336 if test $ac_cv_lib_svld_dlopen = yes; then
17337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17339 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17340 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 ac_check_lib_save_LIBS=$LIBS
17346 cat >conftest.$ac_ext <<_ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17353 /* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17363 return dld_link ();
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
17377 grep -v '^ *+' conftest.er1 >conftest.err
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
17382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17383 { (case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_try") 2>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest$ac_exeext'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_lib_dld_dld_link=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_lib_dld_dld_link=no
17410 rm -f core conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17415 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17416 if test $ac_cv_lib_dld_dld_link = yes; then
17417 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17438 if test "x$lt_cv_dlopen" != xno; then
17444 case $lt_cv_dlopen in
17446 save_CPPFLAGS="$CPPFLAGS"
17447 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17449 save_LDFLAGS="$LDFLAGS"
17450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17453 LIBS="$lt_cv_dlopen_libs $LIBS"
17455 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17456 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17457 if test "${lt_cv_dlopen_self+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 if test "$cross_compiling" = yes; then :
17461 lt_cv_dlopen_self=cross
17463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17464 lt_status=$lt_dlunknown
17465 cat > conftest.$ac_ext <<EOF
17466 #line 17466 "configure"
17467 #include "confdefs.h"
17476 # define LT_DLGLOBAL RTLD_GLOBAL
17479 # define LT_DLGLOBAL DL_GLOBAL
17481 # define LT_DLGLOBAL 0
17485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17486 find out it does not work in some platform. */
17487 #ifndef LT_DLLAZY_OR_NOW
17489 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17492 # define LT_DLLAZY_OR_NOW DL_LAZY
17495 # define LT_DLLAZY_OR_NOW RTLD_NOW
17498 # define LT_DLLAZY_OR_NOW DL_NOW
17500 # define LT_DLLAZY_OR_NOW 0
17508 extern "C" void exit (int);
17511 void fnord() { int i=42;}
17514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17515 int status = $lt_dlunknown;
17519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17521 /* dlclose (self); */
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17534 (./conftest; exit; ) >&5 2>/dev/null
17536 case x$lt_status in
17537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17539 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17542 # compilation failed
17543 lt_cv_dlopen_self=no
17550 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17551 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17553 if test "x$lt_cv_dlopen_self" = xyes; then
17554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17555 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17556 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17557 if test "${lt_cv_dlopen_self_static+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 if test "$cross_compiling" = yes; then :
17561 lt_cv_dlopen_self_static=cross
17563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17564 lt_status=$lt_dlunknown
17565 cat > conftest.$ac_ext <<EOF
17566 #line 17566 "configure"
17567 #include "confdefs.h"
17576 # define LT_DLGLOBAL RTLD_GLOBAL
17579 # define LT_DLGLOBAL DL_GLOBAL
17581 # define LT_DLGLOBAL 0
17585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17586 find out it does not work in some platform. */
17587 #ifndef LT_DLLAZY_OR_NOW
17589 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17592 # define LT_DLLAZY_OR_NOW DL_LAZY
17595 # define LT_DLLAZY_OR_NOW RTLD_NOW
17598 # define LT_DLLAZY_OR_NOW DL_NOW
17600 # define LT_DLLAZY_OR_NOW 0
17608 extern "C" void exit (int);
17611 void fnord() { int i=42;}
17614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17615 int status = $lt_dlunknown;
17619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17620 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17621 /* dlclose (self); */
17629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17630 (eval $ac_link) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17634 (./conftest; exit; ) >&5 2>/dev/null
17636 case x$lt_status in
17637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17639 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17642 # compilation failed
17643 lt_cv_dlopen_self_static=no
17650 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17651 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17654 CPPFLAGS="$save_CPPFLAGS"
17655 LDFLAGS="$save_LDFLAGS"
17660 case $lt_cv_dlopen_self in
17661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17662 *) enable_dlopen_self=unknown ;;
17665 case $lt_cv_dlopen_self_static in
17666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17667 *) enable_dlopen_self_static=unknown ;;
17672 # Report which library types will actually be built
17673 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17674 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17675 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17676 echo "${ECHO_T}$can_build_shared" >&6; }
17678 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17679 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17680 test "$can_build_shared" = "no" && enable_shared=no
17682 # On AIX, shared libraries and static libraries use the same namespace, and
17683 # are all built from PIC.
17686 test "$enable_shared" = yes && enable_static=no
17687 if test -n "$RANLIB"; then
17688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17689 postinstall_cmds='$RANLIB $lib'
17694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17695 test "$enable_shared" = yes && enable_static=no
17699 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17700 echo "${ECHO_T}$enable_shared" >&6; }
17702 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17704 # Make sure either enable_shared or enable_static is yes.
17705 test "$enable_shared" = yes || enable_static=yes
17706 { echo "$as_me:$LINENO: result: $enable_static" >&5
17707 echo "${ECHO_T}$enable_static" >&6; }
17709 # The else clause should only fire when bootstrapping the
17710 # libtool distribution, otherwise you forgot to ship ltmain.sh
17711 # with your package, and you will get complaints that there are
17712 # no rules to generate ltmain.sh.
17713 if test -f "$ltmain"; then
17714 # See if we are running on zsh, and set the options which allow our commands through
17715 # without removal of \ escapes.
17716 if test -n "${ZSH_VERSION+set}" ; then
17717 setopt NO_GLOB_SUBST
17719 # Now quote all the things that may contain metacharacters while being
17720 # careful not to overquote the AC_SUBSTed values. We take copies of the
17721 # variables and quote the copies for generation of the libtool script.
17722 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17724 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17725 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17726 deplibs_check_method reload_flag reload_cmds need_locks \
17727 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17728 lt_cv_sys_global_symbol_to_c_name_address \
17729 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17730 old_postinstall_cmds old_postuninstall_cmds \
17734 lt_prog_compiler_wl \
17735 lt_prog_compiler_pic \
17736 lt_prog_compiler_static \
17737 lt_prog_compiler_no_builtin_flag \
17738 export_dynamic_flag_spec \
17739 thread_safe_flag_spec \
17740 whole_archive_flag_spec \
17741 enable_shared_with_static_runtimes \
17743 old_archive_from_new_cmds \
17748 compiler_lib_search_path \
17750 archive_expsym_cmds \
17752 postuninstall_cmds \
17753 old_archive_from_expsyms_cmds \
17754 allow_undefined_flag \
17755 no_undefined_flag \
17756 export_symbols_cmds \
17757 hardcode_libdir_flag_spec \
17758 hardcode_libdir_flag_spec_ld \
17759 hardcode_libdir_separator \
17760 hardcode_automatic \
17762 module_expsym_cmds \
17763 lt_cv_prog_compiler_c_o \
17765 include_expsyms; do
17768 old_archive_cmds | \
17769 old_archive_from_new_cmds | \
17771 archive_expsym_cmds | \
17773 module_expsym_cmds | \
17774 old_archive_from_expsyms_cmds | \
17775 export_symbols_cmds | \
17776 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17777 postinstall_cmds | postuninstall_cmds | \
17778 old_postinstall_cmds | old_postuninstall_cmds | \
17779 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17780 # Double-quote double-evaled strings.
17781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17790 *'\$0 --fallback-echo"')
17791 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17795 cfgfile="${ofile}T"
17796 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17798 { echo "$as_me:$LINENO: creating $ofile" >&5
17799 echo "$as_me: creating $ofile" >&6;}
17801 cat <<__EOF__ >> "$cfgfile"
17804 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17805 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17806 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17808 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17809 # Free Software Foundation, Inc.
17811 # This file is part of GNU Libtool:
17812 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17814 # This program is free software; you can redistribute it and/or modify
17815 # it under the terms of the GNU General Public License as published by
17816 # the Free Software Foundation; either version 2 of the License, or
17817 # (at your option) any later version.
17819 # This program is distributed in the hope that it will be useful, but
17820 # WITHOUT ANY WARRANTY; without even the implied warranty of
17821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17822 # General Public License for more details.
17824 # You should have received a copy of the GNU General Public License
17825 # along with this program; if not, write to the Free Software
17826 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17828 # As a special exception to the GNU General Public License, if you
17829 # distribute this file as part of a program that contains a
17830 # configuration script generated by Autoconf, you may include it under
17831 # the same distribution terms that you use for the rest of that program.
17833 # A sed program that does not truncate output.
17836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17837 Xsed="$SED -e 1s/^X//"
17839 # The HP-UX ksh and POSIX shell print the target directory to stdout
17840 # if CDPATH is set.
17841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17843 # The names of the tagged configurations supported by this script.
17846 # ### BEGIN LIBTOOL CONFIG
17848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17850 # Shell to use when invoking shell scripts.
17853 # Whether or not to build shared libraries.
17854 build_libtool_libs=$enable_shared
17856 # Whether or not to build static libraries.
17857 build_old_libs=$enable_static
17859 # Whether or not to add -lc for building shared libraries.
17860 build_libtool_need_lc=$archive_cmds_need_lc
17862 # Whether or not to disallow shared libs when runtime libs are static
17863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17865 # Whether or not to optimize for fast installation.
17866 fast_install=$enable_fast_install
17869 host_alias=$host_alias
17873 # The build system.
17874 build_alias=$build_alias
17878 # An echo program that does not interpret backslashes.
17883 AR_FLAGS=$lt_AR_FLAGS
17888 # LTCC compiler flags.
17889 LTCFLAGS=$lt_LTCFLAGS
17891 # A language-specific compiler.
17894 # Is the compiler the GNU C compiler?
17900 # The linker used to build libraries.
17903 # Whether we need hard or soft links.
17906 # A BSD-compatible nm program.
17909 # A symbol stripping program
17912 # Used to examine libraries when file_magic_cmd begins "file"
17913 MAGIC_CMD=$MAGIC_CMD
17915 # Used on cygwin: DLL creation program.
17918 # Used on cygwin: object dumper.
17921 # Used on cygwin: assembler.
17924 # The name of the directory that contains temporary libtool files.
17927 # How to create reloadable object files.
17928 reload_flag=$lt_reload_flag
17929 reload_cmds=$lt_reload_cmds
17931 # How to pass a linker flag through the compiler.
17932 wl=$lt_lt_prog_compiler_wl
17934 # Object file suffix (normally "o").
17935 objext="$ac_objext"
17937 # Old archive suffix (normally "a").
17940 # Shared library suffix (normally ".so").
17941 shrext_cmds='$shrext_cmds'
17943 # Executable file suffix (normally "").
17946 # Additional compiler flags for building library objects.
17947 pic_flag=$lt_lt_prog_compiler_pic
17950 # What is the maximum length of a command?
17951 max_cmd_len=$lt_cv_sys_max_cmd_len
17953 # Does compiler simultaneously support -c and -o options?
17954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17956 # Must we lock files when doing compilation?
17957 need_locks=$lt_need_locks
17959 # Do we need the lib prefix for modules?
17960 need_lib_prefix=$need_lib_prefix
17962 # Do we need a version for libraries?
17963 need_version=$need_version
17965 # Whether dlopen is supported.
17966 dlopen_support=$enable_dlopen
17968 # Whether dlopen of programs is supported.
17969 dlopen_self=$enable_dlopen_self
17971 # Whether dlopen of statically linked programs is supported.
17972 dlopen_self_static=$enable_dlopen_self_static
17974 # Compiler flag to prevent dynamic linking.
17975 link_static_flag=$lt_lt_prog_compiler_static
17977 # Compiler flag to turn off builtin functions.
17978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17980 # Compiler flag to allow reflexive dlopens.
17981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17983 # Compiler flag to generate shared objects directly from archives.
17984 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17986 # Compiler flag to generate thread-safe objects.
17987 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17989 # Library versioning type.
17990 version_type=$version_type
17992 # Format of library name prefix.
17993 libname_spec=$lt_libname_spec
17995 # List of archive names. First name is the real one, the rest are links.
17996 # The last name is the one that the linker finds with -lNAME.
17997 library_names_spec=$lt_library_names_spec
17999 # The coded name of the library, if different from the real name.
18000 soname_spec=$lt_soname_spec
18002 # Commands used to build and install an old-style archive.
18004 old_archive_cmds=$lt_old_archive_cmds
18005 old_postinstall_cmds=$lt_old_postinstall_cmds
18006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18008 # Create an old-style archive from a shared archive.
18009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18011 # Create a temporary old-style archive to link instead of a shared archive.
18012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18014 # Commands used to build and install a shared archive.
18015 archive_cmds=$lt_archive_cmds
18016 archive_expsym_cmds=$lt_archive_expsym_cmds
18017 postinstall_cmds=$lt_postinstall_cmds
18018 postuninstall_cmds=$lt_postuninstall_cmds
18020 # Commands used to build a loadable module (assumed same as above if empty)
18021 module_cmds=$lt_module_cmds
18022 module_expsym_cmds=$lt_module_expsym_cmds
18024 # Commands to strip libraries.
18025 old_striplib=$lt_old_striplib
18026 striplib=$lt_striplib
18028 # Dependencies to place before the objects being linked to create a
18030 predep_objects=$lt_predep_objects
18032 # Dependencies to place after the objects being linked to create a
18034 postdep_objects=$lt_postdep_objects
18036 # Dependencies to place before the objects being linked to create a
18038 predeps=$lt_predeps
18040 # Dependencies to place after the objects being linked to create a
18042 postdeps=$lt_postdeps
18044 # The library search path used internally by the compiler when linking
18045 # a shared library.
18046 compiler_lib_search_path=$lt_compiler_lib_search_path
18048 # Method to check whether dependent libraries are shared objects.
18049 deplibs_check_method=$lt_deplibs_check_method
18051 # Command to use when deplibs_check_method == file_magic.
18052 file_magic_cmd=$lt_file_magic_cmd
18054 # Flag that allows shared libraries with undefined symbols to be built.
18055 allow_undefined_flag=$lt_allow_undefined_flag
18057 # Flag that forces no undefined symbols.
18058 no_undefined_flag=$lt_no_undefined_flag
18060 # Commands used to finish a libtool library installation in a directory.
18061 finish_cmds=$lt_finish_cmds
18063 # Same as above, but a single script fragment to be evaled but not shown.
18064 finish_eval=$lt_finish_eval
18066 # Take the output of nm and produce a listing of raw symbols and C names.
18067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18069 # Transform the output of nm in a proper C declaration
18070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18072 # Transform the output of nm in a C name address pair
18073 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18075 # This is the shared library runtime path variable.
18076 runpath_var=$runpath_var
18078 # This is the shared library path variable.
18079 shlibpath_var=$shlibpath_var
18081 # Is shlibpath searched before the hard-coded library search path?
18082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18084 # How to hardcode a shared library path into an executable.
18085 hardcode_action=$hardcode_action
18087 # Whether we should hardcode library paths into libraries.
18088 hardcode_into_libs=$hardcode_into_libs
18090 # Flag to hardcode \$libdir into a binary during linking.
18091 # This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18094 # If ld is used when linking, flag to hardcode \$libdir into
18095 # a binary during linking. This must work even if \$libdir does
18097 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18099 # Whether we need a single -rpath flag with a separated argument.
18100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18102 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18103 # resulting binary.
18104 hardcode_direct=$hardcode_direct
18106 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18107 # resulting binary.
18108 hardcode_minus_L=$hardcode_minus_L
18110 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18111 # the resulting binary.
18112 hardcode_shlibpath_var=$hardcode_shlibpath_var
18114 # Set to yes if building a shared library automatically hardcodes DIR into the library
18115 # and all subsequent libraries and executables linked against it.
18116 hardcode_automatic=$hardcode_automatic
18118 # Variables whose values should be saved in libtool wrapper scripts and
18119 # restored at relink time.
18120 variables_saved_for_relink="$variables_saved_for_relink"
18122 # Whether libtool must link a program against all its dependency libraries.
18123 link_all_deplibs=$link_all_deplibs
18125 # Compile-time system search path for libraries
18126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18128 # Run-time system search path for libraries
18129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18131 # Fix the shell variable \$srcfile for the compiler.
18132 fix_srcfile_path="$fix_srcfile_path"
18134 # Set to yes if exported symbols are required.
18135 always_export_symbols=$always_export_symbols
18137 # The commands to list exported symbols.
18138 export_symbols_cmds=$lt_export_symbols_cmds
18140 # The commands to extract the exported symbol list from a shared archive.
18141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18143 # Symbols that should not be listed in the preloaded symbols.
18144 exclude_expsyms=$lt_exclude_expsyms
18146 # Symbols that must always be exported.
18147 include_expsyms=$lt_include_expsyms
18149 # ### END LIBTOOL CONFIG
18156 cat <<\EOF >> "$cfgfile"
18158 # AIX sometimes has problems with the GCC collect2 program. For some
18159 # reason, if we set the COLLECT_NAMES environment variable, the problems
18160 # vanish in a puff of smoke.
18161 if test "X${COLLECT_NAMES+set}" != Xset; then
18163 export COLLECT_NAMES
18169 # We use sed instead of cat because bash on DJGPP gets confused if
18170 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18171 # text mode, it properly converts lines to CR/LF. This bash problem
18172 # is reportedly fixed, but why not run on old versions too?
18173 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18175 mv -f "$cfgfile" "$ofile" || \
18176 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18180 # If there is no Makefile yet, we rely on a make rule to execute
18181 # `config.status --recheck' to rerun these tests and create the
18182 # libtool script then.
18183 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18184 if test -f "$ltmain_in"; then
18185 test -f Makefile && make "$ltmain"
18191 ac_cpp='$CPP $CPPFLAGS'
18192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18199 # Check whether --with-tags was given.
18200 if test "${with_tags+set}" = set; then
18201 withval=$with_tags; tagnames="$withval"
18205 if test -f "$ltmain" && test -n "$tagnames"; then
18206 if test ! -f "${ofile}"; then
18207 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18208 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18211 if test -z "$LTCC"; then
18212 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18213 if test -z "$LTCC"; then
18214 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18215 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18217 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18218 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18221 if test -z "$LTCFLAGS"; then
18222 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18225 # Extract list of available tagged configurations in $ofile.
18226 # Note that this assumes the entire list is on one line.
18227 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18230 for tagname in $tagnames; do
18232 # Check whether tagname contains only valid characters
18233 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18235 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18236 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18237 { (exit 1); exit 1; }; }
18241 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18243 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18244 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18245 { (exit 1); exit 1; }; }
18248 # Update the list of available tags.
18249 if test -n "$tagname"; then
18250 echo appending configuration tag \"$tagname\" to $ofile
18254 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18255 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18256 (test "X$CXX" != "Xg++"))) ; then
18258 ac_cpp='$CXXCPP $CPPFLAGS'
18259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18266 archive_cmds_need_lc_CXX=no
18267 allow_undefined_flag_CXX=
18268 always_export_symbols_CXX=no
18269 archive_expsym_cmds_CXX=
18270 export_dynamic_flag_spec_CXX=
18271 hardcode_direct_CXX=no
18272 hardcode_libdir_flag_spec_CXX=
18273 hardcode_libdir_flag_spec_ld_CXX=
18274 hardcode_libdir_separator_CXX=
18275 hardcode_minus_L_CXX=no
18276 hardcode_shlibpath_var_CXX=unsupported
18277 hardcode_automatic_CXX=no
18279 module_expsym_cmds_CXX=
18280 link_all_deplibs_CXX=unknown
18281 old_archive_cmds_CXX=$old_archive_cmds
18282 no_undefined_flag_CXX=
18283 whole_archive_flag_spec_CXX=
18284 enable_shared_with_static_runtimes_CXX=no
18286 # Dependencies to place before and after the object being linked:
18287 predep_objects_CXX=
18288 postdep_objects_CXX=
18291 compiler_lib_search_path_CXX=
18293 # Source file extension for C++ test sources.
18296 # Object file extension for compiled C++ test sources.
18300 # Code to be used in simple compile tests
18301 lt_simple_compile_test_code="int some_variable = 0;\n"
18303 # Code to be used in simple link tests
18304 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18306 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18308 # If no C compiler was specified, use CC.
18311 # If no C compiler flags were specified, use CFLAGS.
18312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18314 # Allow CC to be a program name with arguments.
18318 # save warnings/boilerplate of simple test code
18319 ac_outfile=conftest.$ac_objext
18320 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18321 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18322 _lt_compiler_boilerplate=`cat conftest.err`
18325 ac_outfile=conftest.$ac_objext
18326 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18327 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18328 _lt_linker_boilerplate=`cat conftest.err`
18332 # Allow CC to be a program name with arguments.
18337 lt_save_with_gnu_ld=$with_gnu_ld
18338 lt_save_path_LD=$lt_cv_path_LD
18339 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18340 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18342 $as_unset lt_cv_prog_gnu_ld
18344 if test -n "${lt_cv_path_LDCXX+set}"; then
18345 lt_cv_path_LD=$lt_cv_path_LDCXX
18347 $as_unset lt_cv_path_LD
18349 test -z "${LDCXX+set}" || LD=$LDCXX
18353 for cc_temp in $compiler""; do
18355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18361 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18364 # We don't want -fno-exception wen compiling C++ code, so set the
18365 # no_builtin_flag separately
18366 if test "$GXX" = yes; then
18367 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18369 lt_prog_compiler_no_builtin_flag_CXX=
18372 if test "$GXX" = yes; then
18373 # Set up default GNU C++ configuration
18376 # Check whether --with-gnu-ld was given.
18377 if test "${with_gnu_ld+set}" = set; then
18378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18384 if test "$GCC" = yes; then
18385 # Check if gcc -print-prog-name=ld gives a path.
18386 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18387 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18390 # gcc leaves a trailing carriage return which upsets mingw
18391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18396 # Accept absolute paths.
18398 re_direlt='/[^/][^/]*/\.\./'
18399 # Canonicalize the pathname of ld
18400 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18401 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18402 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18404 test -z "$LD" && LD="$ac_prog"
18407 # If it fails, then pretend we aren't using GCC.
18411 # If it is relative, then search for the first ld in PATH.
18412 with_gnu_ld=unknown
18415 elif test "$with_gnu_ld" = yes; then
18416 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18417 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18419 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18420 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18422 if test "${lt_cv_path_LD+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 if test -z "$LD"; then
18426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18427 for ac_dir in $PATH; do
18429 test -z "$ac_dir" && ac_dir=.
18430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18431 lt_cv_path_LD="$ac_dir/$ac_prog"
18432 # Check to see if the program is GNU ld. I'd rather use --version,
18433 # but apparently some variants of GNU ld only accept -v.
18434 # Break only if it was the GNU/non-GNU ld that we prefer.
18435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18436 *GNU* | *'with BFD'*)
18437 test "$with_gnu_ld" != no && break
18440 test "$with_gnu_ld" != yes && break
18447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18451 LD="$lt_cv_path_LD"
18452 if test -n "$LD"; then
18453 { echo "$as_me:$LINENO: result: $LD" >&5
18454 echo "${ECHO_T}$LD" >&6; }
18456 { echo "$as_me:$LINENO: result: no" >&5
18457 echo "${ECHO_T}no" >&6; }
18459 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18460 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18461 { (exit 1); exit 1; }; }
18462 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18463 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18464 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18468 case `$LD -v 2>&1 </dev/null` in
18469 *GNU* | *'with BFD'*)
18470 lt_cv_prog_gnu_ld=yes
18473 lt_cv_prog_gnu_ld=no
18477 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18478 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18479 with_gnu_ld=$lt_cv_prog_gnu_ld
18483 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18484 # archiving commands below assume that GNU ld is being used.
18485 if test "$with_gnu_ld" = yes; then
18486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18487 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'
18489 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18492 # If archive_cmds runs LD, not CC, wlarc should be empty
18493 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18494 # investigate it a little bit more. (MM)
18497 # ancient GNU ld didn't support --whole-archive et. al.
18498 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18499 grep 'no-whole-archive' > /dev/null; then
18500 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18502 whole_archive_flag_spec_CXX=
18508 # A generic and very simple default shared library creation
18509 # command for GNU C++ for the case where it uses the native
18510 # linker, instead of GNU ld. If possible, this setting should
18511 # overridden to take advantage of the native linker features on
18512 # the platform it is being used on.
18513 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18516 # Commands to make compiler produce verbose output that lists
18517 # what "hidden" libraries, object files and flags are used when
18518 # linking a shared library.
18519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18527 # PORTME: fill in a description of your system's C++ link characteristics
18528 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18533 # FIXME: insert proper C++ library support
18537 if test "$host_cpu" = ia64; then
18538 # On IA64, the linker does run time linking by default, so we don't
18539 # have to do anything special.
18540 aix_use_runtimelinking=no
18541 exp_sym_flag='-Bexport'
18544 aix_use_runtimelinking=no
18546 # Test if we are trying to use run time linking or normal
18547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18548 # need to do runtime linking.
18549 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18550 for ld_flag in $LDFLAGS; do
18553 aix_use_runtimelinking=yes
18561 exp_sym_flag='-bexport'
18562 no_entry_flag='-bnoentry'
18565 # When large executables or shared objects are built, AIX ld can
18566 # have problems creating the table of contents. If linking a library
18567 # or program results in "error TOC overflow" add -mminimal-toc to
18568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18571 archive_cmds_CXX=''
18572 hardcode_direct_CXX=yes
18573 hardcode_libdir_separator_CXX=':'
18574 link_all_deplibs_CXX=yes
18576 if test "$GXX" = yes; then
18577 case $host_os in aix4.[012]|aix4.[012].*)
18578 # We only want to do this on AIX 4.2 and lower, the check
18579 # below for broken collect2 doesn't work under 4.3+
18580 collect2name=`${CC} -print-prog-name=collect2`
18581 if test -f "$collect2name" && \
18582 strings "$collect2name" | grep resolve_lib_name >/dev/null
18584 # We have reworked collect2
18585 hardcode_direct_CXX=yes
18587 # We have old collect2
18588 hardcode_direct_CXX=unsupported
18589 # It fails to find uninstalled libraries when the uninstalled
18590 # path is not listed in the libpath. Setting hardcode_minus_L
18591 # to unsupported forces relinking
18592 hardcode_minus_L_CXX=yes
18593 hardcode_libdir_flag_spec_CXX='-L$libdir'
18594 hardcode_libdir_separator_CXX=
18598 shared_flag='-shared'
18599 if test "$aix_use_runtimelinking" = yes; then
18600 shared_flag="$shared_flag "'${wl}-G'
18604 if test "$host_cpu" = ia64; then
18605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18606 # chokes on -Wl,-G. The following line is correct:
18609 if test "$aix_use_runtimelinking" = yes; then
18610 shared_flag='${wl}-G'
18612 shared_flag='${wl}-bM:SRE'
18617 # It seems that -bexpall does not export symbols beginning with
18618 # underscore (_), so it is better to generate a list of symbols to export.
18619 always_export_symbols_CXX=yes
18620 if test "$aix_use_runtimelinking" = yes; then
18621 # Warning - without using the other runtime loading flags (-brtl),
18622 # -berok will link without error, but may produce a broken library.
18623 allow_undefined_flag_CXX='-berok'
18624 # Determine the default libpath from the value encoded in an empty executable.
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18649 grep -v '^ *+' conftest.er1 >conftest.err
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18677 # Check for a 64-bit object if we didn't find anything.
18678 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; }
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18687 rm -f core conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
18689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18691 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18693 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"
18695 if test "$host_cpu" = ia64; then
18696 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18697 allow_undefined_flag_CXX="-z nodefs"
18698 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"
18700 # Determine the default libpath from the value encoded in an empty executable.
18701 cat >conftest.$ac_ext <<_ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (ac_try="$ac_link"
18718 case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_link") 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
18730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18731 { (case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_try") 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest$ac_exeext'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18753 # Check for a 64-bit object if we didn't find anything.
18754 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; }
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18763 rm -f core conftest.err conftest.$ac_objext \
18764 conftest$ac_exeext conftest.$ac_ext
18765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18767 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18768 # Warning - without using the other run time loading flags,
18769 # -berok will link without error, but may produce a broken library.
18770 no_undefined_flag_CXX=' ${wl}-bernotok'
18771 allow_undefined_flag_CXX=' ${wl}-berok'
18772 # Exported symbols can be pulled into shared objects from archives
18773 whole_archive_flag_spec_CXX='$convenience'
18774 archive_cmds_need_lc_CXX=yes
18775 # This is similar to how AIX traditionally builds its shared libraries.
18776 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'
18782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18783 allow_undefined_flag_CXX=unsupported
18784 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18785 # support --undefined. This deserves some investigation. FIXME
18786 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18793 case $cc_basename in
18795 # FIXME: insert proper C++ library support
18801 cygwin* | mingw* | pw32*)
18802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18803 # as there is no search path for DLLs.
18804 hardcode_libdir_flag_spec_CXX='-L$libdir'
18805 allow_undefined_flag_CXX=unsupported
18806 always_export_symbols_CXX=no
18807 enable_shared_with_static_runtimes_CXX=yes
18809 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18810 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'
18811 # If the export-symbols file already is a .def file (1st line
18812 # is EXPORTS), use it as is; otherwise, prepend...
18813 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18814 cp $export_symbols $output_objdir/$soname.def;
18816 echo EXPORTS > $output_objdir/$soname.def;
18817 cat $export_symbols >> $output_objdir/$soname.def;
18819 $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'
18824 darwin* | rhapsody*)
18826 rhapsody* | darwin1.[012])
18827 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18830 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18831 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18833 case ${MACOSX_DEPLOYMENT_TARGET} in
18835 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18838 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18844 archive_cmds_need_lc_CXX=no
18845 hardcode_direct_CXX=no
18846 hardcode_automatic_CXX=yes
18847 hardcode_shlibpath_var_CXX=unsupported
18848 whole_archive_flag_spec_CXX=''
18849 link_all_deplibs_CXX=yes
18851 if test "$GXX" = yes ; then
18852 lt_int_apple_cc_single_mod=no
18853 output_verbose_link_cmd='echo'
18854 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18855 lt_int_apple_cc_single_mod=yes
18857 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18858 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18860 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'
18862 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18864 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18865 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}'
18867 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}'
18869 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}'
18871 case $cc_basename in
18873 output_verbose_link_cmd='echo'
18874 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'
18875 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18877 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}'
18878 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}'
18888 case $cc_basename in
18890 # FIXME: insert proper C++ library support
18894 # Green Hills C++ Compiler
18895 # FIXME: insert proper C++ library support
18899 # FIXME: insert proper C++ library support
18905 # C++ shared libraries reported to be fairly broken before switch to ELF
18909 archive_cmds_need_lc_CXX=no
18911 freebsd* | kfreebsd*-gnu | dragonfly*)
18912 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18919 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18920 hardcode_libdir_separator_CXX=:
18921 export_dynamic_flag_spec_CXX='${wl}-E'
18922 hardcode_direct_CXX=yes
18923 hardcode_minus_L_CXX=yes # Not in the search PATH,
18924 # but as the default
18925 # location of the library.
18927 case $cc_basename in
18929 # FIXME: insert proper C++ library support
18933 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'
18934 # Commands to make compiler produce verbose output that lists
18935 # what "hidden" libraries, object files and flags are used when
18936 # linking a shared library.
18938 # There doesn't appear to be a way to prevent this compiler from
18939 # explicitly linking system object files so we need to strip them
18940 # from the output so that they don't get included in the library
18942 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'
18945 if test "$GXX" = yes; then
18946 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'
18948 # FIXME: insert proper C++ library support
18955 if test $with_gnu_ld = no; then
18956 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18957 hardcode_libdir_separator_CXX=:
18961 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18964 export_dynamic_flag_spec_CXX='${wl}-E'
18970 hardcode_direct_CXX=no
18971 hardcode_shlibpath_var_CXX=no
18974 hardcode_direct_CXX=yes
18975 hardcode_minus_L_CXX=yes # Not in the search PATH,
18976 # but as the default
18977 # location of the library.
18981 case $cc_basename in
18983 # FIXME: insert proper C++ library support
18989 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18992 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18995 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18998 # Commands to make compiler produce verbose output that lists
18999 # what "hidden" libraries, object files and flags are used when
19000 # linking a shared library.
19002 # There doesn't appear to be a way to prevent this compiler from
19003 # explicitly linking system object files so we need to strip them
19004 # from the output so that they don't get included in the library
19006 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'
19009 if test "$GXX" = yes; then
19010 if test $with_gnu_ld = no; then
19013 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19016 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19019 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'
19024 # FIXME: insert proper C++ library support
19031 hardcode_direct_CXX=no
19032 hardcode_shlibpath_var_CXX=no
19033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19034 export_dynamic_flag_spec_CXX='${wl}-E'
19035 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19036 # Instead, shared libraries are loaded at an image base (0x10000000 by
19037 # default) and relocated if they conflict, which is a slow very memory
19038 # consuming and fragmenting process. To avoid this, we pick a random,
19039 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19040 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19041 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'
19042 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'
19045 case $cc_basename in
19048 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'
19050 # Archives containing C++ object files must be created using
19051 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19052 # necessary to make sure instantiated templates are included
19054 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19057 if test "$GXX" = yes; then
19058 if test "$with_gnu_ld" = no; then
19059 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'
19061 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'
19064 link_all_deplibs_CXX=yes
19067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19068 hardcode_libdir_separator_CXX=:
19071 case $cc_basename in
19073 # Kuck and Associates, Inc. (KAI) C++ Compiler
19075 # KCC will only create a shared library if the output file
19076 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19077 # to its proper name (with version) after linking.
19078 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'
19079 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'
19080 # Commands to make compiler produce verbose output that lists
19081 # what "hidden" libraries, object files and flags are used when
19082 # linking a shared library.
19084 # There doesn't appear to be a way to prevent this compiler from
19085 # explicitly linking system object files so we need to strip them
19086 # from the output so that they don't get included in the library
19088 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'
19090 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19093 # Archives containing C++ object files must be created using
19094 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19095 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19100 # version 8.0 and above of icpc choke on multiply defined symbols
19101 # if we add $predep_objects and $postdep_objects, however 7.1 and
19102 # earlier do not add the objects themselves.
19103 case `$CC -V 2>&1` in
19105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19106 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'
19108 *) # Version 8.0 or newer
19111 ia64*) tmp_idyn=' -i_dynamic';;
19113 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 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'
19117 archive_cmds_need_lc_CXX=no
19118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19120 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19123 # Portland Group C++ compiler
19124 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19125 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'
19127 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19129 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'
19133 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134 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'
19136 runpath_var=LD_RUN_PATH
19137 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19138 hardcode_libdir_separator_CXX=:
19140 # Commands to make compiler produce verbose output that lists
19141 # what "hidden" libraries, object files and flags are used when
19142 # linking a shared library.
19144 # There doesn't appear to be a way to prevent this compiler from
19145 # explicitly linking system object files so we need to strip them
19146 # from the output so that they don't get included in the library
19148 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'
19153 # FIXME: insert proper C++ library support
19157 # FIXME: insert proper C++ library support
19161 case $cc_basename in
19163 # FIXME: insert proper C++ library support
19167 # FIXME: insert proper C++ library support
19173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19174 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19176 hardcode_libdir_flag_spec_CXX='-R$libdir'
19177 hardcode_direct_CXX=yes
19178 hardcode_shlibpath_var_CXX=no
19180 # Workaround some broken pre-1.5 toolchains
19181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19184 # C++ shared libraries are fairly broken
19188 hardcode_direct_CXX=yes
19189 hardcode_shlibpath_var_CXX=no
19190 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19191 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19193 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19194 export_dynamic_flag_spec_CXX='${wl}-E'
19195 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19197 output_verbose_link_cmd='echo'
19200 case $cc_basename in
19202 # Kuck and Associates, Inc. (KAI) C++ Compiler
19204 # KCC will only create a shared library if the output file
19205 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19206 # to its proper name (with version) after linking.
19207 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'
19209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19210 hardcode_libdir_separator_CXX=:
19212 # Archives containing C++ object files must be created using
19213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19218 # Rational C++ 2.4.1
19219 # FIXME: insert proper C++ library support
19223 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19224 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'
19226 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19227 hardcode_libdir_separator_CXX=:
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19233 # There doesn't appear to be a way to prevent this compiler from
19234 # explicitly linking system object files so we need to strip them
19235 # from the output so that they don't get included in the library
19237 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'
19240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19242 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'
19244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19245 hardcode_libdir_separator_CXX=:
19247 # Commands to make compiler produce verbose output that lists
19248 # what "hidden" libraries, object files and flags are used when
19249 # linking a shared library.
19250 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19253 # FIXME: insert proper C++ library support
19260 case $cc_basename in
19262 # Kuck and Associates, Inc. (KAI) C++ Compiler
19264 # KCC will only create a shared library if the output file
19265 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19266 # to its proper name (with version) after linking.
19267 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'
19269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19270 hardcode_libdir_separator_CXX=:
19272 # Archives containing C++ object files must be created using
19273 # the KAI C++ compiler.
19274 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19277 # Rational C++ 2.4.1
19278 # FIXME: insert proper C++ library support
19282 allow_undefined_flag_CXX=' -expect_unresolved \*'
19283 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'
19284 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19285 echo "-hidden">> $lib.exp~
19286 $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~
19289 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19290 hardcode_libdir_separator_CXX=:
19292 # Commands to make compiler produce verbose output that lists
19293 # what "hidden" libraries, object files and flags are used when
19294 # linking a shared library.
19296 # There doesn't appear to be a way to prevent this compiler from
19297 # explicitly linking system object files so we need to strip them
19298 # from the output so that they don't get included in the library
19300 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'
19303 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19304 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19305 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'
19307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19308 hardcode_libdir_separator_CXX=:
19310 # Commands to make compiler produce verbose output that lists
19311 # what "hidden" libraries, object files and flags are used when
19312 # linking a shared library.
19313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19316 # FIXME: insert proper C++ library support
19323 # FIXME: insert proper C++ library support
19327 case $cc_basename in
19330 # FIXME: insert proper C++ library support
19335 # FIXME: insert proper C++ library support
19339 # FIXME: insert proper C++ library support
19345 case $cc_basename in
19347 # Sun C++ 4.2, 5.x and Centerline C++
19348 archive_cmds_need_lc_CXX=yes
19349 no_undefined_flag_CXX=' -zdefs'
19350 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19352 $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'
19354 hardcode_libdir_flag_spec_CXX='-R$libdir'
19355 hardcode_shlibpath_var_CXX=no
19357 solaris2.[0-5] | solaris2.[0-5].*) ;;
19359 # The C++ compiler is used as linker so we must use $wl
19360 # flag to pass the commands to the underlying system
19361 # linker. We must also pass each convience library through
19362 # to the system linker between allextract/defaultextract.
19363 # The C++ compiler will combine linker options so we
19364 # cannot just pass the convience library names through
19366 # Supported since Solaris 2.6 (maybe 2.5.1?)
19367 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'
19370 link_all_deplibs_CXX=yes
19372 output_verbose_link_cmd='echo'
19374 # Archives containing C++ object files must be created using
19375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19376 # necessary to make sure instantiated templates are included
19378 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19381 # Green Hills C++ Compiler
19382 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19384 # The C++ compiler must be used to create the archive.
19385 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19388 # GNU C++ compiler with Solaris linker
19389 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19390 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19391 if $CC --version | grep -v '^2\.7' > /dev/null; then
19392 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19393 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19394 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19396 # Commands to make compiler produce verbose output that lists
19397 # what "hidden" libraries, object files and flags are used when
19398 # linking a shared library.
19399 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19401 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19403 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19404 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19405 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19407 # Commands to make compiler produce verbose output that lists
19408 # what "hidden" libraries, object files and flags are used when
19409 # linking a shared library.
19410 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19413 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19418 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19419 no_undefined_flag_CXX='${wl}-z,text'
19420 archive_cmds_need_lc_CXX=no
19421 hardcode_shlibpath_var_CXX=no
19422 runpath_var='LD_RUN_PATH'
19424 case $cc_basename in
19426 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19427 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19430 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19435 sysv5* | sco3.2v5* | sco5v6*)
19436 # Note: We can NOT use -z defs as we might desire, because we do not
19437 # link with -lc, and that would cause any symbols used from libc to
19438 # always be unresolved, which means just about no library would
19439 # ever link correctly. If we're not using GNU ld we use -z text
19440 # though, which does catch some bad symbols but isn't as heavy-handed
19442 # For security reasons, it is highly recommended that you always
19443 # use absolute paths for naming shared libraries, and exclude the
19444 # DT_RUNPATH tag from executables and libraries. But doing so
19445 # requires that you compile everything twice, which is a pain.
19446 # So that behaviour is only enabled if SCOABSPATH is set to a
19447 # non-empty value in the environment. Most likely only useful for
19448 # creating official distributions of packages.
19449 # This is a hack until libtool officially supports absolute path
19450 # names for shared libraries.
19451 no_undefined_flag_CXX='${wl}-z,text'
19452 allow_undefined_flag_CXX='${wl}-z,nodefs'
19453 archive_cmds_need_lc_CXX=no
19454 hardcode_shlibpath_var_CXX=no
19455 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19456 hardcode_libdir_separator_CXX=':'
19457 link_all_deplibs_CXX=yes
19458 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19459 runpath_var='LD_RUN_PATH'
19461 case $cc_basename in
19463 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19464 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19467 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19473 case $cc_basename in
19475 # NonStop-UX NCC 3.20
19476 # FIXME: insert proper C++ library support
19480 # FIXME: insert proper C++ library support
19486 # FIXME: insert proper C++ library support
19490 # FIXME: insert proper C++ library support
19494 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19495 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19496 test "$ld_shlibs_CXX" = no && can_build_shared=no
19502 cat > conftest.$ac_ext <<EOF
19506 Foo (void) { a = 0; }
19512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513 (eval $ac_compile) 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; then
19517 # Parse the compiler output and extract the necessary
19518 # objects, libraries and library flags.
19520 # Sentinel used to keep track of whether or not we are before
19521 # the conftest object file.
19522 pre_test_object_deps_done=no
19524 # The `*' in the case matches for architectures that use `case' in
19525 # $output_verbose_cmd can trigger glob expansion during the loop
19526 # eval without this substitution.
19527 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19529 for p in `eval $output_verbose_link_cmd`; do
19533 # Some compilers place space between "-{L,R}" and the path.
19534 # Remove the space.
19535 if test $p = "-L" \
19536 || test $p = "-R"; then
19543 if test "$pre_test_object_deps_done" = no; then
19546 # Internal compiler library paths should come after those
19547 # provided the user. The postdeps already come after the
19548 # user supplied libs so there is no need to process them.
19549 if test -z "$compiler_lib_search_path_CXX"; then
19550 compiler_lib_search_path_CXX="${prev}${p}"
19552 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19555 # The "-l" case would never come before the object being
19556 # linked, so don't bother handling this case.
19559 if test -z "$postdeps_CXX"; then
19560 postdeps_CXX="${prev}${p}"
19562 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19568 # This assumes that the test object file only shows up
19569 # once in the compiler output.
19570 if test "$p" = "conftest.$objext"; then
19571 pre_test_object_deps_done=yes
19575 if test "$pre_test_object_deps_done" = no; then
19576 if test -z "$predep_objects_CXX"; then
19577 predep_objects_CXX="$p"
19579 predep_objects_CXX="$predep_objects_CXX $p"
19582 if test -z "$postdep_objects_CXX"; then
19583 postdep_objects_CXX="$p"
19585 postdep_objects_CXX="$postdep_objects_CXX $p"
19590 *) ;; # Ignore the rest.
19598 echo "libtool.m4: error: problem compiling CXX test program"
19601 $rm -f confest.$objext
19603 # PORTME: override above test on systems where it is broken
19606 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19607 # hack all around it, let's just trust "g++" to DTRT.
19608 predep_objects_CXX=
19609 postdep_objects_CXX=
19614 case $cc_basename in
19616 # Adding this requires a known-good setup of shared libraries for
19617 # Sun compiler versions before 5.6, else PIC objects from an old
19618 # archive will be linked into the output, leading to subtle bugs.
19619 postdeps_CXX='-lCstd -lCrun'
19626 case " $postdeps_CXX " in
19627 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19630 lt_prog_compiler_wl_CXX=
19631 lt_prog_compiler_pic_CXX=
19632 lt_prog_compiler_static_CXX=
19634 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19637 # C++ specific cases for pic, static, wl, etc.
19638 if test "$GXX" = yes; then
19639 lt_prog_compiler_wl_CXX='-Wl,'
19640 lt_prog_compiler_static_CXX='-static'
19644 # All AIX code is PIC.
19645 if test "$host_cpu" = ia64; then
19646 # AIX 5 now supports IA64 processor
19647 lt_prog_compiler_static_CXX='-Bstatic'
19651 # FIXME: we need at least 68020 code to build shared libraries, but
19652 # adding the `-m68020' flag to GCC prevents building anything better,
19654 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19656 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19657 # PIC is the default for these OSes.
19659 mingw* | os2* | pw32*)
19660 # This hack is so that the source file can tell whether it is being
19661 # built for inclusion in a dll (and should export symbols for example).
19662 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19664 darwin* | rhapsody*)
19665 # PIC is the default on this platform
19666 # Common symbols not allowed in MH_DYLIB files
19667 lt_prog_compiler_pic_CXX='-fno-common'
19670 # DJGPP does not support shared libraries at all
19671 lt_prog_compiler_pic_CXX=
19674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19675 # Instead, we relocate shared libraries at runtime.
19678 if test -d /usr/nec; then
19679 lt_prog_compiler_pic_CXX=-Kconform_pic
19683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19684 # not for PA HP-UX.
19689 lt_prog_compiler_pic_CXX='-fPIC'
19694 lt_prog_compiler_pic_CXX='-fPIC'
19700 # All AIX code is PIC.
19701 if test "$host_cpu" = ia64; then
19702 # AIX 5 now supports IA64 processor
19703 lt_prog_compiler_static_CXX='-Bstatic'
19705 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19709 case $cc_basename in
19711 # Green Hills C++ Compiler
19712 # _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"
19717 # PIC is the default on this platform
19718 # Common symbols not allowed in MH_DYLIB files
19719 case $cc_basename in
19721 lt_prog_compiler_pic_CXX='-qnocommon'
19722 lt_prog_compiler_wl_CXX='-Wl,'
19727 case $cc_basename in
19729 lt_prog_compiler_pic_CXX='-KPIC'
19732 # Green Hills C++ Compiler
19733 lt_prog_compiler_pic_CXX='-pic'
19739 freebsd* | kfreebsd*-gnu | dragonfly*)
19740 # FreeBSD uses GNU C++
19742 hpux9* | hpux10* | hpux11*)
19743 case $cc_basename in
19745 lt_prog_compiler_wl_CXX='-Wl,'
19746 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19747 if test "$host_cpu" != ia64; then
19748 lt_prog_compiler_pic_CXX='+Z'
19752 lt_prog_compiler_wl_CXX='-Wl,'
19753 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19759 lt_prog_compiler_pic_CXX='+Z'
19768 # This is c89, which is MS Visual C++ (no shared libs)
19769 # Anyone wants to do a port?
19771 irix5* | irix6* | nonstopux*)
19772 case $cc_basename in
19774 lt_prog_compiler_wl_CXX='-Wl,'
19775 lt_prog_compiler_static_CXX='-non_shared'
19776 # CC pic flag -KPIC is the default.
19783 case $cc_basename in
19786 lt_prog_compiler_wl_CXX='--backend -Wl,'
19787 lt_prog_compiler_pic_CXX='-fPIC'
19791 lt_prog_compiler_wl_CXX='-Wl,'
19792 lt_prog_compiler_pic_CXX='-KPIC'
19793 lt_prog_compiler_static_CXX='-static'
19796 # Portland Group C++ compiler.
19797 lt_prog_compiler_wl_CXX='-Wl,'
19798 lt_prog_compiler_pic_CXX='-fpic'
19799 lt_prog_compiler_static_CXX='-Bstatic'
19803 # Make sure the PIC flag is empty. It appears that all Alpha
19804 # Linux and Compaq Tru64 Unix objects are PIC.
19805 lt_prog_compiler_pic_CXX=
19806 lt_prog_compiler_static_CXX='-non_shared'
19817 case $cc_basename in
19819 lt_prog_compiler_pic_CXX='-W c,exportall'
19827 osf3* | osf4* | osf5*)
19828 case $cc_basename in
19830 lt_prog_compiler_wl_CXX='--backend -Wl,'
19833 # Rational C++ 2.4.1
19834 lt_prog_compiler_pic_CXX='-pic'
19837 # Digital/Compaq C++
19838 lt_prog_compiler_wl_CXX='-Wl,'
19839 # Make sure the PIC flag is empty. It appears that all Alpha
19840 # Linux and Compaq Tru64 Unix objects are PIC.
19841 lt_prog_compiler_pic_CXX=
19842 lt_prog_compiler_static_CXX='-non_shared'
19851 case $cc_basename in
19853 # Sun C++ 4.2, 5.x and Centerline C++
19854 lt_prog_compiler_pic_CXX='-KPIC'
19855 lt_prog_compiler_static_CXX='-Bstatic'
19856 lt_prog_compiler_wl_CXX='-Qoption ld '
19859 # Green Hills C++ Compiler
19860 lt_prog_compiler_pic_CXX='-PIC'
19867 case $cc_basename in
19870 lt_prog_compiler_pic_CXX='-pic'
19871 lt_prog_compiler_static_CXX='-Bstatic'
19875 lt_prog_compiler_pic_CXX='-pic'
19882 case $cc_basename in
19884 # NonStop-UX NCC 3.20
19885 lt_prog_compiler_pic_CXX='-KPIC'
19891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19892 case $cc_basename in
19894 lt_prog_compiler_wl_CXX='-Wl,'
19895 lt_prog_compiler_pic_CXX='-KPIC'
19896 lt_prog_compiler_static_CXX='-Bstatic'
19903 lt_prog_compiler_can_build_shared_CXX=no
19908 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19909 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19912 # Check to make sure the PIC flag actually works.
19914 if test -n "$lt_prog_compiler_pic_CXX"; then
19916 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19917 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19918 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 lt_prog_compiler_pic_works_CXX=no
19922 ac_outfile=conftest.$ac_objext
19923 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19924 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19925 # Insert the option either (1) after the last *FLAGS variable, or
19926 # (2) before a word containing "conftest.", or (3) at the end.
19927 # Note that $ac_compile itself does not contain backslashes and begins
19928 # with a dollar sign (not a hyphen), so the echo should work correctly.
19929 # The option is referenced via a variable to avoid confusing sed.
19930 lt_compile=`echo "$ac_compile" | $SED \
19931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19933 -e 's:$: $lt_compiler_flag:'`
19934 (eval echo "\"\$as_me:19934: $lt_compile\"" >&5)
19935 (eval "$lt_compile" 2>conftest.err)
19937 cat conftest.err >&5
19938 echo "$as_me:19938: \$? = $ac_status" >&5
19939 if (exit $ac_status) && test -s "$ac_outfile"; then
19940 # The compiler can only warn and ignore the option if not recognized
19941 # So say no if there are warnings other than the usual output.
19942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19945 lt_prog_compiler_pic_works_CXX=yes
19951 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19952 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19954 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19955 case $lt_prog_compiler_pic_CXX in
19957 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19960 lt_prog_compiler_pic_CXX=
19961 lt_prog_compiler_can_build_shared_CXX=no
19966 # For platforms which do not support PIC, -DPIC is meaningless:
19968 lt_prog_compiler_pic_CXX=
19971 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19976 # Check to make sure the static flag actually works.
19978 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19979 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19980 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19981 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 lt_prog_compiler_static_works_CXX=no
19985 save_LDFLAGS="$LDFLAGS"
19986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19987 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19989 # The linker can only warn and ignore the option if not recognized
19990 # So say no if there are warnings
19991 if test -s conftest.err; then
19992 # Append any errors to the config.log.
19993 cat conftest.err 1>&5
19994 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19996 if diff conftest.exp conftest.er2 >/dev/null; then
19997 lt_prog_compiler_static_works_CXX=yes
20000 lt_prog_compiler_static_works_CXX=yes
20004 LDFLAGS="$save_LDFLAGS"
20007 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20008 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20010 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20013 lt_prog_compiler_static_CXX=
20017 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20018 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20019 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 lt_cv_prog_compiler_c_o_CXX=no
20023 $rm -r conftest 2>/dev/null
20027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20029 lt_compiler_flag="-o out/conftest2.$ac_objext"
20030 # Insert the option either (1) after the last *FLAGS variable, or
20031 # (2) before a word containing "conftest.", or (3) at the end.
20032 # Note that $ac_compile itself does not contain backslashes and begins
20033 # with a dollar sign (not a hyphen), so the echo should work correctly.
20034 lt_compile=`echo "$ac_compile" | $SED \
20035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20037 -e 's:$: $lt_compiler_flag:'`
20038 (eval echo "\"\$as_me:20038: $lt_compile\"" >&5)
20039 (eval "$lt_compile" 2>out/conftest.err)
20041 cat out/conftest.err >&5
20042 echo "$as_me:20042: \$? = $ac_status" >&5
20043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20045 # The compiler can only warn and ignore the option if not recognized
20046 # So say no if there are warnings
20047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20050 lt_cv_prog_compiler_c_o_CXX=yes
20055 # SGI C++ compiler will create directory out/ii_files/ for
20056 # template instantiation
20057 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20058 $rm out/* && rmdir out
20064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20065 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20068 hard_links="nottested"
20069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20070 # do not overwrite the value of need_locks provided by the user
20071 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20072 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20077 ln conftest.a conftest.b 2>&5 || hard_links=no
20078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20079 { echo "$as_me:$LINENO: result: $hard_links" >&5
20080 echo "${ECHO_T}$hard_links" >&6; }
20081 if test "$hard_links" = no; then
20082 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20083 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20090 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20091 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20093 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20096 # If we're using GNU nm, then we don't want the "-C" option.
20097 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20098 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20099 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'
20101 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'
20105 export_symbols_cmds_CXX="$ltdll_cmds"
20108 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'
20111 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20115 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20116 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20117 test "$ld_shlibs_CXX" = no && can_build_shared=no
20120 # Do we need to explicitly link libc?
20122 case "x$archive_cmds_need_lc_CXX" in
20124 # Assume -lc should be added
20125 archive_cmds_need_lc_CXX=yes
20127 if test "$enable_shared" = yes && test "$GCC" = yes; then
20128 case $archive_cmds_CXX in
20130 # FIXME: we may have to deal with multi-command sequences.
20133 # Test whether the compiler implicitly links with -lc since on some
20134 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20135 # to ld, don't add -lc before -lgcc.
20136 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20137 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } 2>conftest.err; then
20148 libobjs=conftest.$ac_objext
20150 wl=$lt_prog_compiler_wl_CXX
20151 pic_flag=$lt_prog_compiler_pic_CXX
20157 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20158 allow_undefined_flag_CXX=
20159 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20160 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }
20165 archive_cmds_need_lc_CXX=no
20167 archive_cmds_need_lc_CXX=yes
20169 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20171 cat conftest.err 1>&5
20174 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20175 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20182 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20183 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20184 library_names_spec=
20185 libname_spec='lib$name'
20189 postuninstall_cmds=
20193 shlibpath_overrides_runpath=unknown
20195 dynamic_linker="$host_os ld.so"
20196 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20197 if test "$GCC" = yes; then
20198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20199 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20200 # if the path contains ";" then we assume it to be the separator
20201 # otherwise default to the standard path separator (i.e. ":") - it is
20202 # assumed that no part of a normal pathname contains ";" but that should
20203 # okay in the real world where ";" in dirpaths is itself problematic.
20204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20211 need_lib_prefix=unknown
20212 hardcode_into_libs=no
20214 # when you set need_version to no, make sure it does not cause -set_version
20215 # flags to be left without arguments
20216 need_version=unknown
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20222 shlibpath_var=LIBPATH
20224 # AIX 3 has no versioning support, so we append a major version to the name.
20225 soname_spec='${libname}${release}${shared_ext}$major'
20232 hardcode_into_libs=yes
20233 if test "$host_cpu" = ia64; then
20234 # AIX 5 supports IA64
20235 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20236 shlibpath_var=LD_LIBRARY_PATH
20238 # With GCC up to 2.95.x, collect2 would create an import file
20239 # for dependence libraries. The import file would start with
20240 # the line `#! .'. This would cause the generated library to
20241 # depend on `.', always an invalid library. This was fixed in
20242 # development snapshots of GCC prior to 3.0.
20244 aix4 | aix4.[01] | aix4.[01].*)
20245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20247 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20250 can_build_shared=no
20254 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20255 # soname into executable. Probably we can add versioning support to
20256 # collect2, so additional links can be useful in future.
20257 if test "$aix_use_runtimelinking" = yes; then
20258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20259 # instead of lib<name>.a to let people know that these are not
20260 # typical AIX shared libraries.
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 # We preserve .a as extension for shared libraries through AIX4.2
20264 # and later when we are not doing run time linking.
20265 library_names_spec='${libname}${release}.a $libname.a'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LIBPATH
20273 library_names_spec='$libname.ixlibrary $libname.a'
20274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20275 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'
20279 library_names_spec='${libname}${shared_ext}'
20280 dynamic_linker="$host_os ld.so"
20281 shlibpath_var=LIBRARY_PATH
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20293 # the default ld.so.conf also contains /usr/contrib/lib and
20294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20295 # libtool to hard-code these into programs
20298 cygwin* | mingw* | pw32*)
20299 version_type=windows
20304 case $GCC,$host_os in
20305 yes,cygwin* | yes,mingw* | yes,pw32*)
20306 library_names_spec='$libname.dll.a'
20307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20308 postinstall_cmds='base_file=`basename \${file}`~
20309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20310 dldir=$destdir/`dirname \$dlpath`~
20311 test -d \$dldir || mkdir -p \$dldir~
20312 $install_prog $dir/$dlname \$dldir/$dlname~
20313 chmod a+x \$dldir/$dlname'
20314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20315 dlpath=$dir/\$dldll~
20317 shlibpath_overrides_runpath=yes
20321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20326 # MinGW DLLs use traditional 'lib' prefix
20327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20329 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20330 # It is most probably a Windows format PATH printed by
20331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20332 # path with ; separators, and with drive letters. We can handle the
20333 # drive letters (cygwin fileutils understands them), so leave them,
20334 # especially as we might pass files found there to a mingw objdump,
20335 # which wouldn't understand a cygwinified path. Ahh.
20336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20342 # pw32 DLLs use 'pw' prefix rather than 'lib'
20343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20352 dynamic_linker='Win32 ld.exe'
20353 # FIXME: first we should search . and the directory the executable is in
20357 darwin* | rhapsody*)
20358 dynamic_linker="$host_os dyld"
20359 version_type=darwin
20362 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20363 soname_spec='${libname}${release}${major}$shared_ext'
20364 shlibpath_overrides_runpath=yes
20365 shlibpath_var=DYLD_LIBRARY_PATH
20366 shrext_cmds='.dylib'
20367 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20368 if test "$GCC" = yes; then
20369 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"`
20371 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 shlibpath_var=LD_LIBRARY_PATH
20393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=no
20397 hardcode_into_libs=yes
20398 dynamic_linker='GNU ld.so'
20401 freebsd* | dragonfly*)
20402 # DragonFly does not have aout. When/if they implement a new
20403 # versioning mechanism, adjust this.
20404 if test -x /usr/bin/objformat; then
20405 objformat=`/usr/bin/objformat`
20408 freebsd[123]*) objformat=aout ;;
20409 *) objformat=elf ;;
20412 version_type=freebsd-$objformat
20413 case $version_type in
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20424 shlibpath_var=LD_LIBRARY_PATH
20427 shlibpath_overrides_runpath=yes
20429 freebsd3.[01]* | freebsdelf3.[01]*)
20430 shlibpath_overrides_runpath=yes
20431 hardcode_into_libs=yes
20433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20435 shlibpath_overrides_runpath=no
20436 hardcode_into_libs=yes
20438 freebsd*) # from 4.6 on
20439 shlibpath_overrides_runpath=yes
20440 hardcode_into_libs=yes
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 hardcode_into_libs=yes
20455 hpux9* | hpux10* | hpux11*)
20456 # Give a soname corresponding to the major version so that dld.sl refuses to
20457 # link against other versions.
20464 hardcode_into_libs=yes
20465 dynamic_linker="$host_os dld.so"
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469 soname_spec='${libname}${release}${shared_ext}$major'
20470 if test "X$HPUX_IA64_MODE" = X32; then
20471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20479 hardcode_into_libs=yes
20480 dynamic_linker="$host_os dld.sl"
20481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20490 dynamic_linker="$host_os dld.sl"
20491 shlibpath_var=SHLIB_PATH
20492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20498 postinstall_cmds='chmod 555 $lib'
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20508 shlibpath_var=LD_LIBRARY_PATH
20509 shlibpath_overrides_runpath=no
20510 hardcode_into_libs=yes
20513 irix5* | irix6* | nonstopux*)
20515 nonstopux*) version_type=nonstopux ;;
20517 if test "$lt_cv_prog_gnu_ld" = yes; then
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20528 irix5* | nonstopux*)
20529 libsuff= shlibsuff=
20532 case $LD in # libtool.m4 will add one of these switches to LD
20533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20534 libsuff= shlibsuff= libmagic=32-bit;;
20535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20536 libsuff=32 shlibsuff=N32 libmagic=N32;;
20537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20539 *) libsuff= shlibsuff= libmagic=never-match;;
20543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20544 shlibpath_overrides_runpath=no
20545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20547 hardcode_into_libs=yes
20550 # No shared lib support for Linux oldld, aout, or coff.
20551 linux*oldld* | linux*aout* | linux*coff*)
20555 # This must be Linux ELF.
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 shlibpath_overrides_runpath=no
20565 # This implies no fast_install, which is unacceptable.
20566 # Some rework will be needed to allow for fast_install
20567 # before this can be enabled.
20568 hardcode_into_libs=yes
20570 # Append ld.so.conf contents to the search path
20571 if test -f /etc/ld.so.conf; then
20572 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' ' '`
20573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20576 # We used to test for /lib/ld.so.1 and disable shared libraries on
20577 # powerpc, because MkLinux only supported shared libraries with the
20578 # GNU dynamic linker. Since this was broken with cross compilers,
20579 # most powerpc-linux boxes support dynamic linking these days and
20580 # people can always --disable-shared, the test was removed, and we
20581 # assume the GNU/Linux dynamic linker is in use.
20582 dynamic_linker='GNU/Linux ld.so'
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20591 shlibpath_var=LD_LIBRARY_PATH
20592 shlibpath_overrides_runpath=no
20593 hardcode_into_libs=yes
20594 dynamic_linker='GNU ld.so'
20601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20604 dynamic_linker='NetBSD (a.out) ld.so'
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20607 soname_spec='${libname}${release}${shared_ext}$major'
20608 dynamic_linker='NetBSD ld.elf_so'
20610 shlibpath_var=LD_LIBRARY_PATH
20611 shlibpath_overrides_runpath=yes
20612 hardcode_into_libs=yes
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 shlibpath_var=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath=yes
20626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20627 soname_spec='${libname}${release}${shared_ext}$major'
20628 shlibpath_var=LD_LIBRARY_PATH
20629 shlibpath_overrides_runpath=yes
20634 sys_lib_dlsearch_path_spec="/usr/lib"
20636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20638 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20639 *) need_version=no ;;
20641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20643 shlibpath_var=LD_LIBRARY_PATH
20644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20646 openbsd2.[89] | openbsd2.[89].*)
20647 shlibpath_overrides_runpath=no
20650 shlibpath_overrides_runpath=yes
20654 shlibpath_overrides_runpath=yes
20659 libname_spec='$name'
20662 library_names_spec='$libname${shared_ext} $libname.a'
20663 dynamic_linker='OS/2 ld.exe'
20664 shlibpath_var=LIBPATH
20667 osf3* | osf4* | osf5*)
20671 soname_spec='${libname}${release}${shared_ext}$major'
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 shlibpath_overrides_runpath=yes
20686 hardcode_into_libs=yes
20687 # ldd complains unless libraries are executable
20688 postinstall_cmds='chmod +x $lib'
20693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20695 shlibpath_var=LD_LIBRARY_PATH
20696 shlibpath_overrides_runpath=yes
20697 if test "$with_gnu_ld" = yes; then
20705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20706 soname_spec='${libname}${release}${shared_ext}$major'
20707 shlibpath_var=LD_LIBRARY_PATH
20708 case $host_vendor in
20710 shlibpath_overrides_runpath=no
20712 export_dynamic_flag_spec='${wl}-Blargedynsym'
20713 runpath_var=LD_RUN_PATH
20721 shlibpath_overrides_runpath=no
20722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20728 if test -d /usr/nec ;then
20730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20731 soname_spec='$libname${shared_ext}.$major'
20732 shlibpath_var=LD_LIBRARY_PATH
20736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20737 version_type=freebsd-elf
20740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20741 soname_spec='${libname}${release}${shared_ext}$major'
20742 shlibpath_var=LD_LIBRARY_PATH
20743 hardcode_into_libs=yes
20744 if test "$with_gnu_ld" = yes; then
20745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20746 shlibpath_overrides_runpath=no
20748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20749 shlibpath_overrides_runpath=yes
20752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20756 sys_lib_dlsearch_path_spec='/usr/lib'
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 soname_spec='${libname}${release}${shared_ext}$major'
20763 shlibpath_var=LD_LIBRARY_PATH
20770 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20771 echo "${ECHO_T}$dynamic_linker" >&6; }
20772 test "$dynamic_linker" = no && can_build_shared=no
20774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20775 if test "$GCC" = yes; then
20776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20779 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20781 hardcode_action_CXX=
20782 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20783 test -n "$runpath_var_CXX" || \
20784 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20786 # We can hardcode non-existant directories.
20787 if test "$hardcode_direct_CXX" != no &&
20788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20789 # have to relink, otherwise we might link with an installed library
20790 # when we should be linking with a yet-to-be-installed one
20791 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20792 test "$hardcode_minus_L_CXX" != no; then
20793 # Linking always hardcodes the temporary library directory.
20794 hardcode_action_CXX=relink
20796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20797 hardcode_action_CXX=immediate
20800 # We cannot hardcode anything, or else we can only hardcode existing
20802 hardcode_action_CXX=unsupported
20804 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20805 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20807 if test "$hardcode_action_CXX" = relink; then
20808 # Fast installation is not supported
20809 enable_fast_install=no
20810 elif test "$shlibpath_overrides_runpath" = yes ||
20811 test "$enable_shared" = no; then
20812 # Fast installation is not necessary
20813 enable_fast_install=needless
20817 # The else clause should only fire when bootstrapping the
20818 # libtool distribution, otherwise you forgot to ship ltmain.sh
20819 # with your package, and you will get complaints that there are
20820 # no rules to generate ltmain.sh.
20821 if test -f "$ltmain"; then
20822 # See if we are running on zsh, and set the options which allow our commands through
20823 # without removal of \ escapes.
20824 if test -n "${ZSH_VERSION+set}" ; then
20825 setopt NO_GLOB_SUBST
20827 # Now quote all the things that may contain metacharacters while being
20828 # careful not to overquote the AC_SUBSTed values. We take copies of the
20829 # variables and quote the copies for generation of the libtool script.
20830 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20832 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20833 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20834 deplibs_check_method reload_flag reload_cmds need_locks \
20835 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20836 lt_cv_sys_global_symbol_to_c_name_address \
20837 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20838 old_postinstall_cmds old_postuninstall_cmds \
20842 lt_prog_compiler_wl_CXX \
20843 lt_prog_compiler_pic_CXX \
20844 lt_prog_compiler_static_CXX \
20845 lt_prog_compiler_no_builtin_flag_CXX \
20846 export_dynamic_flag_spec_CXX \
20847 thread_safe_flag_spec_CXX \
20848 whole_archive_flag_spec_CXX \
20849 enable_shared_with_static_runtimes_CXX \
20850 old_archive_cmds_CXX \
20851 old_archive_from_new_cmds_CXX \
20852 predep_objects_CXX \
20853 postdep_objects_CXX \
20856 compiler_lib_search_path_CXX \
20858 archive_expsym_cmds_CXX \
20859 postinstall_cmds_CXX \
20860 postuninstall_cmds_CXX \
20861 old_archive_from_expsyms_cmds_CXX \
20862 allow_undefined_flag_CXX \
20863 no_undefined_flag_CXX \
20864 export_symbols_cmds_CXX \
20865 hardcode_libdir_flag_spec_CXX \
20866 hardcode_libdir_flag_spec_ld_CXX \
20867 hardcode_libdir_separator_CXX \
20868 hardcode_automatic_CXX \
20870 module_expsym_cmds_CXX \
20871 lt_cv_prog_compiler_c_o_CXX \
20872 exclude_expsyms_CXX \
20873 include_expsyms_CXX; do
20876 old_archive_cmds_CXX | \
20877 old_archive_from_new_cmds_CXX | \
20878 archive_cmds_CXX | \
20879 archive_expsym_cmds_CXX | \
20880 module_cmds_CXX | \
20881 module_expsym_cmds_CXX | \
20882 old_archive_from_expsyms_cmds_CXX | \
20883 export_symbols_cmds_CXX | \
20884 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20885 postinstall_cmds | postuninstall_cmds | \
20886 old_postinstall_cmds | old_postuninstall_cmds | \
20887 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20888 # Double-quote double-evaled strings.
20889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20898 *'\$0 --fallback-echo"')
20899 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20905 cat <<__EOF__ >> "$cfgfile"
20906 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20910 # Shell to use when invoking shell scripts.
20913 # Whether or not to build shared libraries.
20914 build_libtool_libs=$enable_shared
20916 # Whether or not to build static libraries.
20917 build_old_libs=$enable_static
20919 # Whether or not to add -lc for building shared libraries.
20920 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20922 # Whether or not to disallow shared libs when runtime libs are static
20923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20925 # Whether or not to optimize for fast installation.
20926 fast_install=$enable_fast_install
20929 host_alias=$host_alias
20933 # The build system.
20934 build_alias=$build_alias
20938 # An echo program that does not interpret backslashes.
20943 AR_FLAGS=$lt_AR_FLAGS
20948 # LTCC compiler flags.
20949 LTCFLAGS=$lt_LTCFLAGS
20951 # A language-specific compiler.
20952 CC=$lt_compiler_CXX
20954 # Is the compiler the GNU C compiler?
20960 # The linker used to build libraries.
20963 # Whether we need hard or soft links.
20966 # A BSD-compatible nm program.
20969 # A symbol stripping program
20972 # Used to examine libraries when file_magic_cmd begins "file"
20973 MAGIC_CMD=$MAGIC_CMD
20975 # Used on cygwin: DLL creation program.
20978 # Used on cygwin: object dumper.
20981 # Used on cygwin: assembler.
20984 # The name of the directory that contains temporary libtool files.
20987 # How to create reloadable object files.
20988 reload_flag=$lt_reload_flag
20989 reload_cmds=$lt_reload_cmds
20991 # How to pass a linker flag through the compiler.
20992 wl=$lt_lt_prog_compiler_wl_CXX
20994 # Object file suffix (normally "o").
20995 objext="$ac_objext"
20997 # Old archive suffix (normally "a").
21000 # Shared library suffix (normally ".so").
21001 shrext_cmds='$shrext_cmds'
21003 # Executable file suffix (normally "").
21006 # Additional compiler flags for building library objects.
21007 pic_flag=$lt_lt_prog_compiler_pic_CXX
21010 # What is the maximum length of a command?
21011 max_cmd_len=$lt_cv_sys_max_cmd_len
21013 # Does compiler simultaneously support -c and -o options?
21014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21016 # Must we lock files when doing compilation?
21017 need_locks=$lt_need_locks
21019 # Do we need the lib prefix for modules?
21020 need_lib_prefix=$need_lib_prefix
21022 # Do we need a version for libraries?
21023 need_version=$need_version
21025 # Whether dlopen is supported.
21026 dlopen_support=$enable_dlopen
21028 # Whether dlopen of programs is supported.
21029 dlopen_self=$enable_dlopen_self
21031 # Whether dlopen of statically linked programs is supported.
21032 dlopen_self_static=$enable_dlopen_self_static
21034 # Compiler flag to prevent dynamic linking.
21035 link_static_flag=$lt_lt_prog_compiler_static_CXX
21037 # Compiler flag to turn off builtin functions.
21038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21040 # Compiler flag to allow reflexive dlopens.
21041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21043 # Compiler flag to generate shared objects directly from archives.
21044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21046 # Compiler flag to generate thread-safe objects.
21047 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21049 # Library versioning type.
21050 version_type=$version_type
21052 # Format of library name prefix.
21053 libname_spec=$lt_libname_spec
21055 # List of archive names. First name is the real one, the rest are links.
21056 # The last name is the one that the linker finds with -lNAME.
21057 library_names_spec=$lt_library_names_spec
21059 # The coded name of the library, if different from the real name.
21060 soname_spec=$lt_soname_spec
21062 # Commands used to build and install an old-style archive.
21064 old_archive_cmds=$lt_old_archive_cmds_CXX
21065 old_postinstall_cmds=$lt_old_postinstall_cmds
21066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21068 # Create an old-style archive from a shared archive.
21069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21071 # Create a temporary old-style archive to link instead of a shared archive.
21072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21074 # Commands used to build and install a shared archive.
21075 archive_cmds=$lt_archive_cmds_CXX
21076 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21077 postinstall_cmds=$lt_postinstall_cmds
21078 postuninstall_cmds=$lt_postuninstall_cmds
21080 # Commands used to build a loadable module (assumed same as above if empty)
21081 module_cmds=$lt_module_cmds_CXX
21082 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21084 # Commands to strip libraries.
21085 old_striplib=$lt_old_striplib
21086 striplib=$lt_striplib
21088 # Dependencies to place before the objects being linked to create a
21090 predep_objects=$lt_predep_objects_CXX
21092 # Dependencies to place after the objects being linked to create a
21094 postdep_objects=$lt_postdep_objects_CXX
21096 # Dependencies to place before the objects being linked to create a
21098 predeps=$lt_predeps_CXX
21100 # Dependencies to place after the objects being linked to create a
21102 postdeps=$lt_postdeps_CXX
21104 # The library search path used internally by the compiler when linking
21105 # a shared library.
21106 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21108 # Method to check whether dependent libraries are shared objects.
21109 deplibs_check_method=$lt_deplibs_check_method
21111 # Command to use when deplibs_check_method == file_magic.
21112 file_magic_cmd=$lt_file_magic_cmd
21114 # Flag that allows shared libraries with undefined symbols to be built.
21115 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21117 # Flag that forces no undefined symbols.
21118 no_undefined_flag=$lt_no_undefined_flag_CXX
21120 # Commands used to finish a libtool library installation in a directory.
21121 finish_cmds=$lt_finish_cmds
21123 # Same as above, but a single script fragment to be evaled but not shown.
21124 finish_eval=$lt_finish_eval
21126 # Take the output of nm and produce a listing of raw symbols and C names.
21127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21129 # Transform the output of nm in a proper C declaration
21130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21132 # Transform the output of nm in a C name address pair
21133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21135 # This is the shared library runtime path variable.
21136 runpath_var=$runpath_var
21138 # This is the shared library path variable.
21139 shlibpath_var=$shlibpath_var
21141 # Is shlibpath searched before the hard-coded library search path?
21142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21144 # How to hardcode a shared library path into an executable.
21145 hardcode_action=$hardcode_action_CXX
21147 # Whether we should hardcode library paths into libraries.
21148 hardcode_into_libs=$hardcode_into_libs
21150 # Flag to hardcode \$libdir into a binary during linking.
21151 # This must work even if \$libdir does not exist.
21152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21154 # If ld is used when linking, flag to hardcode \$libdir into
21155 # a binary during linking. This must work even if \$libdir does
21157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21159 # Whether we need a single -rpath flag with a separated argument.
21160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21162 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21163 # resulting binary.
21164 hardcode_direct=$hardcode_direct_CXX
21166 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21167 # resulting binary.
21168 hardcode_minus_L=$hardcode_minus_L_CXX
21170 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21171 # the resulting binary.
21172 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21174 # Set to yes if building a shared library automatically hardcodes DIR into the library
21175 # and all subsequent libraries and executables linked against it.
21176 hardcode_automatic=$hardcode_automatic_CXX
21178 # Variables whose values should be saved in libtool wrapper scripts and
21179 # restored at relink time.
21180 variables_saved_for_relink="$variables_saved_for_relink"
21182 # Whether libtool must link a program against all its dependency libraries.
21183 link_all_deplibs=$link_all_deplibs_CXX
21185 # Compile-time system search path for libraries
21186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21188 # Run-time system search path for libraries
21189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21191 # Fix the shell variable \$srcfile for the compiler.
21192 fix_srcfile_path="$fix_srcfile_path_CXX"
21194 # Set to yes if exported symbols are required.
21195 always_export_symbols=$always_export_symbols_CXX
21197 # The commands to list exported symbols.
21198 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21200 # The commands to extract the exported symbol list from a shared archive.
21201 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21203 # Symbols that should not be listed in the preloaded symbols.
21204 exclude_expsyms=$lt_exclude_expsyms_CXX
21206 # Symbols that must always be exported.
21207 include_expsyms=$lt_include_expsyms_CXX
21209 # ### END LIBTOOL TAG CONFIG: $tagname
21215 # If there is no Makefile yet, we rely on a make rule to execute
21216 # `config.status --recheck' to rerun these tests and create the
21217 # libtool script then.
21218 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21219 if test -f "$ltmain_in"; then
21220 test -f Makefile && make "$ltmain"
21226 ac_cpp='$CPP $CPPFLAGS'
21227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21235 with_gnu_ldcxx=$with_gnu_ld
21236 with_gnu_ld=$lt_save_with_gnu_ld
21237 lt_cv_path_LDCXX=$lt_cv_path_LD
21238 lt_cv_path_LD=$lt_save_path_LD
21239 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21240 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21248 if test -n "$F77" && test "X$F77" != "Xno"; then
21251 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21252 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21256 archive_cmds_need_lc_F77=no
21257 allow_undefined_flag_F77=
21258 always_export_symbols_F77=no
21259 archive_expsym_cmds_F77=
21260 export_dynamic_flag_spec_F77=
21261 hardcode_direct_F77=no
21262 hardcode_libdir_flag_spec_F77=
21263 hardcode_libdir_flag_spec_ld_F77=
21264 hardcode_libdir_separator_F77=
21265 hardcode_minus_L_F77=no
21266 hardcode_automatic_F77=no
21268 module_expsym_cmds_F77=
21269 link_all_deplibs_F77=unknown
21270 old_archive_cmds_F77=$old_archive_cmds
21271 no_undefined_flag_F77=
21272 whole_archive_flag_spec_F77=
21273 enable_shared_with_static_runtimes_F77=no
21275 # Source file extension for f77 test sources.
21278 # Object file extension for compiled f77 test sources.
21282 # Code to be used in simple compile tests
21283 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21285 # Code to be used in simple link tests
21286 lt_simple_link_test_code=" program t\n end\n"
21288 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21290 # If no C compiler was specified, use CC.
21293 # If no C compiler flags were specified, use CFLAGS.
21294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21296 # Allow CC to be a program name with arguments.
21300 # save warnings/boilerplate of simple test code
21301 ac_outfile=conftest.$ac_objext
21302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21304 _lt_compiler_boilerplate=`cat conftest.err`
21307 ac_outfile=conftest.$ac_objext
21308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21310 _lt_linker_boilerplate=`cat conftest.err`
21314 # Allow CC to be a program name with arguments.
21319 for cc_temp in $compiler""; do
21321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21330 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21332 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21333 echo "${ECHO_T}$can_build_shared" >&6; }
21335 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21337 test "$can_build_shared" = "no" && enable_shared=no
21339 # On AIX, shared libraries and static libraries use the same namespace, and
21340 # are all built from PIC.
21343 test "$enable_shared" = yes && enable_static=no
21344 if test -n "$RANLIB"; then
21345 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21346 postinstall_cmds='$RANLIB $lib'
21350 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21351 test "$enable_shared" = yes && enable_static=no
21355 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21356 echo "${ECHO_T}$enable_shared" >&6; }
21358 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21359 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21360 # Make sure either enable_shared or enable_static is yes.
21361 test "$enable_shared" = yes || enable_static=yes
21362 { echo "$as_me:$LINENO: result: $enable_static" >&5
21363 echo "${ECHO_T}$enable_static" >&6; }
21368 lt_prog_compiler_wl_F77=
21369 lt_prog_compiler_pic_F77=
21370 lt_prog_compiler_static_F77=
21372 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21375 if test "$GCC" = yes; then
21376 lt_prog_compiler_wl_F77='-Wl,'
21377 lt_prog_compiler_static_F77='-static'
21381 # All AIX code is PIC.
21382 if test "$host_cpu" = ia64; then
21383 # AIX 5 now supports IA64 processor
21384 lt_prog_compiler_static_F77='-Bstatic'
21389 # FIXME: we need at least 68020 code to build shared libraries, but
21390 # adding the `-m68020' flag to GCC prevents building anything better,
21392 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21395 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21396 # PIC is the default for these OSes.
21399 mingw* | pw32* | os2*)
21400 # This hack is so that the source file can tell whether it is being
21401 # built for inclusion in a dll (and should export symbols for example).
21402 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21405 darwin* | rhapsody*)
21406 # PIC is the default on this platform
21407 # Common symbols not allowed in MH_DYLIB files
21408 lt_prog_compiler_pic_F77='-fno-common'
21412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21413 # Instead, we relocate shared libraries at runtime.
21417 # Just because we use GCC doesn't mean we suddenly get shared libraries
21418 # on systems that don't support them.
21419 lt_prog_compiler_can_build_shared_F77=no
21424 if test -d /usr/nec; then
21425 lt_prog_compiler_pic_F77=-Kconform_pic
21430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21431 # not for PA HP-UX.
21437 lt_prog_compiler_pic_F77='-fPIC'
21443 lt_prog_compiler_pic_F77='-fPIC'
21447 # PORTME Check for flag to pass linker flags through the system compiler.
21450 lt_prog_compiler_wl_F77='-Wl,'
21451 if test "$host_cpu" = ia64; then
21452 # AIX 5 now supports IA64 processor
21453 lt_prog_compiler_static_F77='-Bstatic'
21455 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21459 # PIC is the default on this platform
21460 # Common symbols not allowed in MH_DYLIB files
21461 case $cc_basename in
21463 lt_prog_compiler_pic_F77='-qnocommon'
21464 lt_prog_compiler_wl_F77='-Wl,'
21469 mingw* | pw32* | os2*)
21470 # This hack is so that the source file can tell whether it is being
21471 # built for inclusion in a dll (and should export symbols for example).
21472 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21475 hpux9* | hpux10* | hpux11*)
21476 lt_prog_compiler_wl_F77='-Wl,'
21477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21478 # not for PA HP-UX.
21484 lt_prog_compiler_pic_F77='+Z'
21487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21488 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21491 irix5* | irix6* | nonstopux*)
21492 lt_prog_compiler_wl_F77='-Wl,'
21493 # PIC (with -KPIC) is the default.
21494 lt_prog_compiler_static_F77='-non_shared'
21498 lt_prog_compiler_pic_F77='-KPIC'
21499 lt_prog_compiler_static_F77='-Bstatic'
21503 case $cc_basename in
21505 lt_prog_compiler_wl_F77='-Wl,'
21506 lt_prog_compiler_pic_F77='-KPIC'
21507 lt_prog_compiler_static_F77='-static'
21509 pgcc* | pgf77* | pgf90* | pgf95*)
21510 # Portland Group compilers (*not* the Pentium gcc compiler,
21511 # which looks to be a dead project)
21512 lt_prog_compiler_wl_F77='-Wl,'
21513 lt_prog_compiler_pic_F77='-fpic'
21514 lt_prog_compiler_static_F77='-Bstatic'
21517 lt_prog_compiler_wl_F77='-Wl,'
21518 # All Alpha code is PIC.
21519 lt_prog_compiler_static_F77='-non_shared'
21524 osf3* | osf4* | osf5*)
21525 lt_prog_compiler_wl_F77='-Wl,'
21526 # All OSF/1 code is PIC.
21527 lt_prog_compiler_static_F77='-non_shared'
21531 lt_prog_compiler_pic_F77='-KPIC'
21532 lt_prog_compiler_static_F77='-Bstatic'
21533 case $cc_basename in
21534 f77* | f90* | f95*)
21535 lt_prog_compiler_wl_F77='-Qoption ld ';;
21537 lt_prog_compiler_wl_F77='-Wl,';;
21542 lt_prog_compiler_wl_F77='-Qoption ld '
21543 lt_prog_compiler_pic_F77='-PIC'
21544 lt_prog_compiler_static_F77='-Bstatic'
21547 sysv4 | sysv4.2uw2* | sysv4.3*)
21548 lt_prog_compiler_wl_F77='-Wl,'
21549 lt_prog_compiler_pic_F77='-KPIC'
21550 lt_prog_compiler_static_F77='-Bstatic'
21554 if test -d /usr/nec ;then
21555 lt_prog_compiler_pic_F77='-Kconform_pic'
21556 lt_prog_compiler_static_F77='-Bstatic'
21560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21561 lt_prog_compiler_wl_F77='-Wl,'
21562 lt_prog_compiler_pic_F77='-KPIC'
21563 lt_prog_compiler_static_F77='-Bstatic'
21567 lt_prog_compiler_wl_F77='-Wl,'
21568 lt_prog_compiler_can_build_shared_F77=no
21572 lt_prog_compiler_pic_F77='-pic'
21573 lt_prog_compiler_static_F77='-Bstatic'
21577 lt_prog_compiler_can_build_shared_F77=no
21582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21583 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21586 # Check to make sure the PIC flag actually works.
21588 if test -n "$lt_prog_compiler_pic_F77"; then
21590 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21592 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 lt_prog_compiler_pic_works_F77=no
21596 ac_outfile=conftest.$ac_objext
21597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21598 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21599 # Insert the option either (1) after the last *FLAGS variable, or
21600 # (2) before a word containing "conftest.", or (3) at the end.
21601 # Note that $ac_compile itself does not contain backslashes and begins
21602 # with a dollar sign (not a hyphen), so the echo should work correctly.
21603 # The option is referenced via a variable to avoid confusing sed.
21604 lt_compile=`echo "$ac_compile" | $SED \
21605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21607 -e 's:$: $lt_compiler_flag:'`
21608 (eval echo "\"\$as_me:21608: $lt_compile\"" >&5)
21609 (eval "$lt_compile" 2>conftest.err)
21611 cat conftest.err >&5
21612 echo "$as_me:21612: \$? = $ac_status" >&5
21613 if (exit $ac_status) && test -s "$ac_outfile"; then
21614 # The compiler can only warn and ignore the option if not recognized
21615 # So say no if there are warnings other than the usual output.
21616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21619 lt_prog_compiler_pic_works_F77=yes
21625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21626 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21628 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21629 case $lt_prog_compiler_pic_F77 in
21631 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21634 lt_prog_compiler_pic_F77=
21635 lt_prog_compiler_can_build_shared_F77=no
21640 # For platforms which do not support PIC, -DPIC is meaningless:
21642 lt_prog_compiler_pic_F77=
21645 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21650 # Check to make sure the static flag actually works.
21652 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21653 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21654 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21655 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 lt_prog_compiler_static_works_F77=no
21659 save_LDFLAGS="$LDFLAGS"
21660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21661 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21663 # The linker can only warn and ignore the option if not recognized
21664 # So say no if there are warnings
21665 if test -s conftest.err; then
21666 # Append any errors to the config.log.
21667 cat conftest.err 1>&5
21668 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21670 if diff conftest.exp conftest.er2 >/dev/null; then
21671 lt_prog_compiler_static_works_F77=yes
21674 lt_prog_compiler_static_works_F77=yes
21678 LDFLAGS="$save_LDFLAGS"
21681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21682 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21684 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21687 lt_prog_compiler_static_F77=
21691 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21692 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21693 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 lt_cv_prog_compiler_c_o_F77=no
21697 $rm -r conftest 2>/dev/null
21701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21703 lt_compiler_flag="-o out/conftest2.$ac_objext"
21704 # Insert the option either (1) after the last *FLAGS variable, or
21705 # (2) before a word containing "conftest.", or (3) at the end.
21706 # Note that $ac_compile itself does not contain backslashes and begins
21707 # with a dollar sign (not a hyphen), so the echo should work correctly.
21708 lt_compile=`echo "$ac_compile" | $SED \
21709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21711 -e 's:$: $lt_compiler_flag:'`
21712 (eval echo "\"\$as_me:21712: $lt_compile\"" >&5)
21713 (eval "$lt_compile" 2>out/conftest.err)
21715 cat out/conftest.err >&5
21716 echo "$as_me:21716: \$? = $ac_status" >&5
21717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21719 # The compiler can only warn and ignore the option if not recognized
21720 # So say no if there are warnings
21721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21724 lt_cv_prog_compiler_c_o_F77=yes
21729 # SGI C++ compiler will create directory out/ii_files/ for
21730 # template instantiation
21731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21732 $rm out/* && rmdir out
21738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21742 hard_links="nottested"
21743 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21744 # do not overwrite the value of need_locks provided by the user
21745 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21751 ln conftest.a conftest.b 2>&5 || hard_links=no
21752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21753 { echo "$as_me:$LINENO: result: $hard_links" >&5
21754 echo "${ECHO_T}$hard_links" >&6; }
21755 if test "$hard_links" = no; then
21756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21764 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21768 allow_undefined_flag_F77=
21769 enable_shared_with_static_runtimes_F77=no
21771 archive_expsym_cmds_F77=
21772 old_archive_From_new_cmds_F77=
21773 old_archive_from_expsyms_cmds_F77=
21774 export_dynamic_flag_spec_F77=
21775 whole_archive_flag_spec_F77=
21776 thread_safe_flag_spec_F77=
21777 hardcode_libdir_flag_spec_F77=
21778 hardcode_libdir_flag_spec_ld_F77=
21779 hardcode_libdir_separator_F77=
21780 hardcode_direct_F77=no
21781 hardcode_minus_L_F77=no
21782 hardcode_shlibpath_var_F77=unsupported
21783 link_all_deplibs_F77=unknown
21784 hardcode_automatic_F77=no
21786 module_expsym_cmds_F77=
21787 always_export_symbols_F77=no
21788 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21789 # include_expsyms should be a list of space-separated symbols to be *always*
21790 # included in the symbol list
21791 include_expsyms_F77=
21792 # exclude_expsyms can be an extended regexp of symbols to exclude
21793 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21795 # as well as any symbol that contains `d'.
21796 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21798 # platforms (ab)use it in PIC code, but their linkers get confused if
21799 # the symbol is explicitly referenced. Since portable code cannot
21800 # rely on this symbol name, it's probably fine to never include it in
21801 # preloaded symbol tables.
21802 extract_expsyms_cmds=
21803 # Just being paranoid about ensuring that cc_basename is set.
21804 for cc_temp in $compiler""; do
21806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21812 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21815 cygwin* | mingw* | pw32*)
21816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21817 # When not using gcc, we currently assume that we are using
21818 # Microsoft Visual C++.
21819 if test "$GCC" != yes; then
21824 # we just hope/assume this is gcc and not c89 (= MSVC++)
21833 if test "$with_gnu_ld" = yes; then
21834 # If archive_cmds runs LD, not CC, wlarc should be empty
21837 # Set some defaults for GNU ld with shared library support. These
21838 # are reset later if shared libraries are not supported. Putting them
21839 # here allows them to be overridden if necessary.
21840 runpath_var=LD_RUN_PATH
21841 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21842 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21843 # ancient GNU ld didn't support --whole-archive et. al.
21844 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21845 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21847 whole_archive_flag_spec_F77=
21849 supports_anon_versioning=no
21850 case `$LD -v 2>/dev/null` in
21851 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21854 *\ 2.11.*) ;; # other 2.11 versions
21855 *) supports_anon_versioning=yes ;;
21858 # See if GNU ld supports shared libraries.
21860 aix3* | aix4* | aix5*)
21861 # On AIX/PPC, the GNU linker is very broken
21862 if test "$host_cpu" != ia64; then
21866 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21867 *** to be unable to reliably create shared libraries on AIX.
21868 *** Therefore, libtool is disabling shared libraries support. If you
21869 *** really care for shared libraries, you may want to modify your PATH
21870 *** so that a non-GNU linker is found, and then restart.
21877 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)'
21878 hardcode_libdir_flag_spec_F77='-L$libdir'
21879 hardcode_minus_L_F77=yes
21881 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21882 # that the semantics of dynamic libraries on AmigaOS, at least up
21883 # to version 4, is to share data among multiple programs linked
21884 # with the same dynamic library. Since this doesn't match the
21885 # behavior of shared libraries on other platforms, we can't use
21891 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21892 allow_undefined_flag_F77=unsupported
21893 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21894 # support --undefined. This deserves some investigation. FIXME
21895 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21901 cygwin* | mingw* | pw32*)
21902 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21903 # as there is no search path for DLLs.
21904 hardcode_libdir_flag_spec_F77='-L$libdir'
21905 allow_undefined_flag_F77=unsupported
21906 always_export_symbols_F77=no
21907 enable_shared_with_static_runtimes_F77=yes
21908 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21910 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21911 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21912 # If the export-symbols file already is a .def file (1st line
21913 # is EXPORTS), use it as is; otherwise, prepend...
21914 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21915 cp $export_symbols $output_objdir/$soname.def;
21917 echo EXPORTS > $output_objdir/$soname.def;
21918 cat $export_symbols >> $output_objdir/$soname.def;
21920 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21927 hardcode_direct_F77=no
21928 hardcode_shlibpath_var_F77=no
21929 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21930 export_dynamic_flag_spec_F77='${wl}-E'
21931 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21932 # Instead, shared libraries are loaded at an image base (0x10000000 by
21933 # default) and relocated if they conflict, which is a slow very memory
21934 # consuming and fragmenting process. To avoid this, we pick a random,
21935 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21936 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21937 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'
21938 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'
21942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21944 case $cc_basename,$host_cpu in
21945 pgcc*) # Portland Group C compiler
21946 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'
21947 tmp_addflag=' $pic_flag'
21949 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21950 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'
21951 tmp_addflag=' $pic_flag -Mnomain' ;;
21952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21953 tmp_addflag=' -i_dynamic' ;;
21954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21955 tmp_addflag=' -i_dynamic -nofor_main' ;;
21956 ifc* | ifort*) # Intel Fortran compiler
21957 tmp_addflag=' -nofor_main' ;;
21959 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21961 if test $supports_anon_versioning = yes; then
21962 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21964 $echo "local: *; };" >> $output_objdir/$libname.ver~
21965 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21974 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21977 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21978 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21988 *** create shared libraries on Solaris systems. Therefore, libtool
21989 *** is disabling shared libraries support. We urge you to upgrade GNU
21990 *** binutils to release 2.9.1 or newer. Another option is to modify
21991 *** your PATH or compiler configuration so that the native linker is
21992 *** used, and then restart.
21995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21996 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21997 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22004 case `$LD -v 2>&1` in
22005 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22010 *** reliably create shared libraries on SCO systems. Therefore, libtool
22011 *** is disabling shared libraries support. We urge you to upgrade GNU
22012 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22013 *** your PATH or compiler configuration so that the native linker is
22014 *** used, and then restart.
22019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22020 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22031 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22033 hardcode_direct_F77=yes
22034 hardcode_shlibpath_var_F77=no
22038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22039 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22040 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22047 if test "$ld_shlibs_F77" = no; then
22049 hardcode_libdir_flag_spec_F77=
22050 export_dynamic_flag_spec_F77=
22051 whole_archive_flag_spec_F77=
22054 # PORTME fill in a description of your system's linker (not GNU ld)
22057 allow_undefined_flag_F77=unsupported
22058 always_export_symbols_F77=yes
22059 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'
22060 # Note: this linker hardcodes the directories in LIBPATH if there
22061 # are no directories specified by -L.
22062 hardcode_minus_L_F77=yes
22063 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22064 # Neither direct hardcoding nor static linking is supported with a
22066 hardcode_direct_F77=unsupported
22071 if test "$host_cpu" = ia64; then
22072 # On IA64, the linker does run time linking by default, so we don't
22073 # have to do anything special.
22074 aix_use_runtimelinking=no
22075 exp_sym_flag='-Bexport'
22078 # If we're using GNU nm, then we don't want the "-C" option.
22079 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22080 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22081 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'
22083 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'
22085 aix_use_runtimelinking=no
22087 # Test if we are trying to use run time linking or normal
22088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22089 # need to do runtime linking.
22090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22091 for ld_flag in $LDFLAGS; do
22092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22093 aix_use_runtimelinking=yes
22100 exp_sym_flag='-bexport'
22101 no_entry_flag='-bnoentry'
22104 # When large executables or shared objects are built, AIX ld can
22105 # have problems creating the table of contents. If linking a library
22106 # or program results in "error TOC overflow" add -mminimal-toc to
22107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22110 archive_cmds_F77=''
22111 hardcode_direct_F77=yes
22112 hardcode_libdir_separator_F77=':'
22113 link_all_deplibs_F77=yes
22115 if test "$GCC" = yes; then
22116 case $host_os in aix4.[012]|aix4.[012].*)
22117 # We only want to do this on AIX 4.2 and lower, the check
22118 # below for broken collect2 doesn't work under 4.3+
22119 collect2name=`${CC} -print-prog-name=collect2`
22120 if test -f "$collect2name" && \
22121 strings "$collect2name" | grep resolve_lib_name >/dev/null
22123 # We have reworked collect2
22124 hardcode_direct_F77=yes
22126 # We have old collect2
22127 hardcode_direct_F77=unsupported
22128 # It fails to find uninstalled libraries when the uninstalled
22129 # path is not listed in the libpath. Setting hardcode_minus_L
22130 # to unsupported forces relinking
22131 hardcode_minus_L_F77=yes
22132 hardcode_libdir_flag_spec_F77='-L$libdir'
22133 hardcode_libdir_separator_F77=
22137 shared_flag='-shared'
22138 if test "$aix_use_runtimelinking" = yes; then
22139 shared_flag="$shared_flag "'${wl}-G'
22143 if test "$host_cpu" = ia64; then
22144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22145 # chokes on -Wl,-G. The following line is correct:
22148 if test "$aix_use_runtimelinking" = yes; then
22149 shared_flag='${wl}-G'
22151 shared_flag='${wl}-bM:SRE'
22156 # It seems that -bexpall does not export symbols beginning with
22157 # underscore (_), so it is better to generate a list of symbols to export.
22158 always_export_symbols_F77=yes
22159 if test "$aix_use_runtimelinking" = yes; then
22160 # Warning - without using the other runtime loading flags (-brtl),
22161 # -berok will link without error, but may produce a broken library.
22162 allow_undefined_flag_F77='-berok'
22163 # Determine the default libpath from the value encoded in an empty executable.
22164 cat >conftest.$ac_ext <<_ACEOF
22169 rm -f conftest.$ac_objext conftest$ac_exeext
22170 if { (ac_try="$ac_link"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_link") 2>conftest.er1
22178 grep -v '^ *+' conftest.er1 >conftest.err
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } &&
22183 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22184 { (case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_try") 2>&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); }; } &&
22193 { ac_try='test -s conftest$ac_exeext'
22194 { (case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_try") 2>&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; }; then
22204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22206 # Check for a 64-bit object if we didn't find anything.
22207 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; }
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22216 rm -f core conftest.err conftest.$ac_objext \
22217 conftest$ac_exeext conftest.$ac_ext
22218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22220 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22221 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"
22223 if test "$host_cpu" = ia64; then
22224 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22225 allow_undefined_flag_F77="-z nodefs"
22226 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"
22228 # Determine the default libpath from the value encoded in an empty executable.
22229 cat >conftest.$ac_ext <<_ACEOF
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_link") 2>conftest.er1
22243 grep -v '^ *+' conftest.er1 >conftest.err
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } &&
22248 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22249 { (case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_try") 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; } &&
22258 { ac_try='test -s conftest$ac_exeext'
22259 { (case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_try") 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22271 # Check for a 64-bit object if we didn't find anything.
22272 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; }
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22281 rm -f core conftest.err conftest.$ac_objext \
22282 conftest$ac_exeext conftest.$ac_ext
22283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22285 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22286 # Warning - without using the other run time loading flags,
22287 # -berok will link without error, but may produce a broken library.
22288 no_undefined_flag_F77=' ${wl}-bernotok'
22289 allow_undefined_flag_F77=' ${wl}-berok'
22290 # Exported symbols can be pulled into shared objects from archives
22291 whole_archive_flag_spec_F77='$convenience'
22292 archive_cmds_need_lc_F77=yes
22293 # This is similar to how AIX traditionally builds its shared libraries.
22294 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'
22300 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)'
22301 hardcode_libdir_flag_spec_F77='-L$libdir'
22302 hardcode_minus_L_F77=yes
22303 # see comment about different semantics on the GNU ld section
22308 export_dynamic_flag_spec_F77=-rdynamic
22311 cygwin* | mingw* | pw32*)
22312 # When not using gcc, we currently assume that we are using
22313 # Microsoft Visual C++.
22314 # hardcode_libdir_flag_spec is actually meaningless, as there is
22315 # no search path for DLLs.
22316 hardcode_libdir_flag_spec_F77=' '
22317 allow_undefined_flag_F77=unsupported
22318 # Tell ltmain to make .lib files, not .a files.
22320 # Tell ltmain to make .dll files, not .so files.
22322 # FIXME: Setting linknames here is a bad hack.
22323 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22324 # The linker will automatically build a .lib file if we build a DLL.
22325 old_archive_From_new_cmds_F77='true'
22326 # FIXME: Should let the user specify the lib program.
22327 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22328 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22329 enable_shared_with_static_runtimes_F77=yes
22332 darwin* | rhapsody*)
22334 rhapsody* | darwin1.[012])
22335 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22338 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22339 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22341 case ${MACOSX_DEPLOYMENT_TARGET} in
22343 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22346 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22352 archive_cmds_need_lc_F77=no
22353 hardcode_direct_F77=no
22354 hardcode_automatic_F77=yes
22355 hardcode_shlibpath_var_F77=unsupported
22356 whole_archive_flag_spec_F77=''
22357 link_all_deplibs_F77=yes
22358 if test "$GCC" = yes ; then
22359 output_verbose_link_cmd='echo'
22360 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22361 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22362 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22363 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}'
22364 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}'
22366 case $cc_basename in
22368 output_verbose_link_cmd='echo'
22369 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22370 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22372 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}'
22373 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}'
22383 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22384 hardcode_libdir_flag_spec_F77='-L$libdir'
22385 hardcode_shlibpath_var_F77=no
22392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22393 # support. Future versions do this automatically, but an explicit c++rt0.o
22394 # does not break anything, and helps significantly (at the cost of a little
22397 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22398 hardcode_libdir_flag_spec_F77='-R$libdir'
22399 hardcode_direct_F77=yes
22400 hardcode_shlibpath_var_F77=no
22403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22406 hardcode_direct_F77=yes
22407 hardcode_minus_L_F77=yes
22408 hardcode_shlibpath_var_F77=no
22411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22412 freebsd* | kfreebsd*-gnu | dragonfly*)
22413 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22414 hardcode_libdir_flag_spec_F77='-R$libdir'
22415 hardcode_direct_F77=yes
22416 hardcode_shlibpath_var_F77=no
22420 if test "$GCC" = yes; then
22421 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'
22423 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'
22425 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22426 hardcode_libdir_separator_F77=:
22427 hardcode_direct_F77=yes
22429 # hardcode_minus_L: Not really in the search PATH,
22430 # but as the default location of the library.
22431 hardcode_minus_L_F77=yes
22432 export_dynamic_flag_spec_F77='${wl}-E'
22436 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22437 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22439 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22441 if test "$with_gnu_ld" = no; then
22442 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22443 hardcode_libdir_separator_F77=:
22445 hardcode_direct_F77=yes
22446 export_dynamic_flag_spec_F77='${wl}-E'
22448 # hardcode_minus_L: Not really in the search PATH,
22449 # but as the default location of the library.
22450 hardcode_minus_L_F77=yes
22455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22458 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22464 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22470 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22473 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22476 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22480 if test "$with_gnu_ld" = no; then
22481 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22482 hardcode_libdir_separator_F77=:
22486 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22487 hardcode_direct_F77=no
22488 hardcode_shlibpath_var_F77=no
22491 hardcode_direct_F77=yes
22492 export_dynamic_flag_spec_F77='${wl}-E'
22494 # hardcode_minus_L: Not really in the search PATH,
22495 # but as the default location of the library.
22496 hardcode_minus_L_F77=yes
22502 irix5* | irix6* | nonstopux*)
22503 if test "$GCC" = yes; then
22504 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'
22506 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'
22507 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22509 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22510 hardcode_libdir_separator_F77=:
22511 link_all_deplibs_F77=yes
22515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22516 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22518 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22520 hardcode_libdir_flag_spec_F77='-R$libdir'
22521 hardcode_direct_F77=yes
22522 hardcode_shlibpath_var_F77=no
22526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527 hardcode_direct_F77=yes
22528 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22529 hardcode_libdir_separator_F77=:
22530 hardcode_shlibpath_var_F77=no
22534 hardcode_direct_F77=yes
22535 hardcode_shlibpath_var_F77=no
22536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22537 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22538 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22539 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22540 export_dynamic_flag_spec_F77='${wl}-E'
22543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22544 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22545 hardcode_libdir_flag_spec_F77='-R$libdir'
22548 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22549 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22556 hardcode_libdir_flag_spec_F77='-L$libdir'
22557 hardcode_minus_L_F77=yes
22558 allow_undefined_flag_F77=unsupported
22559 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'
22560 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22564 if test "$GCC" = yes; then
22565 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22566 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'
22568 allow_undefined_flag_F77=' -expect_unresolved \*'
22569 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'
22571 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22572 hardcode_libdir_separator_F77=:
22575 osf4* | osf5*) # as osf3* with the addition of -msym flag
22576 if test "$GCC" = yes; then
22577 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22578 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'
22579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22581 allow_undefined_flag_F77=' -expect_unresolved \*'
22582 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'
22583 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~
22584 $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'
22586 # Both c and cxx compiler support -rpath directly
22587 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22589 hardcode_libdir_separator_F77=:
22593 no_undefined_flag_F77=' -z text'
22594 if test "$GCC" = yes; then
22596 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22597 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22601 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22602 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22605 hardcode_libdir_flag_spec_F77='-R$libdir'
22606 hardcode_shlibpath_var_F77=no
22608 solaris2.[0-5] | solaris2.[0-5].*) ;;
22610 # The compiler driver will combine linker options so we
22611 # cannot just pass the convience library names through
22612 # without $wl, iff we do not link with $LD.
22613 # Luckily, gcc supports the same syntax we need for Sun Studio.
22614 # Supported since Solaris 2.6 (maybe 2.5.1?)
22617 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22619 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' ;;
22622 link_all_deplibs_F77=yes
22626 if test "x$host_vendor" = xsequent; then
22627 # Use $CC to link under sequent, because it throws in some extra .o
22628 # files that make .init and .fini sections work.
22629 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22631 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22633 hardcode_libdir_flag_spec_F77='-L$libdir'
22634 hardcode_direct_F77=yes
22635 hardcode_minus_L_F77=yes
22636 hardcode_shlibpath_var_F77=no
22640 case $host_vendor in
22642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643 hardcode_direct_F77=yes # is this really true???
22646 ## LD is ld it makes a PLAMLIB
22647 ## CC just makes a GrossModule.
22648 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22649 reload_cmds_F77='$CC -r -o $output$reload_objs'
22650 hardcode_direct_F77=no
22653 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22657 runpath_var='LD_RUN_PATH'
22658 hardcode_shlibpath_var_F77=no
22662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663 hardcode_shlibpath_var_F77=no
22664 export_dynamic_flag_spec_F77='-Bexport'
22668 if test -d /usr/nec; then
22669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22670 hardcode_shlibpath_var_F77=no
22671 runpath_var=LD_RUN_PATH
22672 hardcode_runpath_var=yes
22677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22678 no_undefined_flag_F77='${wl}-z,text'
22679 archive_cmds_need_lc_F77=no
22680 hardcode_shlibpath_var_F77=no
22681 runpath_var='LD_RUN_PATH'
22683 if test "$GCC" = yes; then
22684 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22685 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22687 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22688 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22692 sysv5* | sco3.2v5* | sco5v6*)
22693 # Note: We can NOT use -z defs as we might desire, because we do not
22694 # link with -lc, and that would cause any symbols used from libc to
22695 # always be unresolved, which means just about no library would
22696 # ever link correctly. If we're not using GNU ld we use -z text
22697 # though, which does catch some bad symbols but isn't as heavy-handed
22699 no_undefined_flag_F77='${wl}-z,text'
22700 allow_undefined_flag_F77='${wl}-z,nodefs'
22701 archive_cmds_need_lc_F77=no
22702 hardcode_shlibpath_var_F77=no
22703 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22704 hardcode_libdir_separator_F77=':'
22705 link_all_deplibs_F77=yes
22706 export_dynamic_flag_spec_F77='${wl}-Bexport'
22707 runpath_var='LD_RUN_PATH'
22709 if test "$GCC" = yes; then
22710 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22711 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22713 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22714 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22720 hardcode_libdir_flag_spec_F77='-L$libdir'
22721 hardcode_shlibpath_var_F77=no
22730 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22731 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22732 test "$ld_shlibs_F77" = no && can_build_shared=no
22735 # Do we need to explicitly link libc?
22737 case "x$archive_cmds_need_lc_F77" in
22739 # Assume -lc should be added
22740 archive_cmds_need_lc_F77=yes
22742 if test "$enable_shared" = yes && test "$GCC" = yes; then
22743 case $archive_cmds_F77 in
22745 # FIXME: we may have to deal with multi-command sequences.
22748 # Test whether the compiler implicitly links with -lc since on some
22749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22750 # to ld, don't add -lc before -lgcc.
22751 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757 (eval $ac_compile) 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } 2>conftest.err; then
22763 libobjs=conftest.$ac_objext
22765 wl=$lt_prog_compiler_wl_F77
22766 pic_flag=$lt_prog_compiler_pic_F77
22772 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22773 allow_undefined_flag_F77=
22774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22775 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }
22780 archive_cmds_need_lc_F77=no
22782 archive_cmds_need_lc_F77=yes
22784 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22786 cat conftest.err 1>&5
22789 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22790 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22799 library_names_spec=
22800 libname_spec='lib$name'
22804 postuninstall_cmds=
22808 shlibpath_overrides_runpath=unknown
22810 dynamic_linker="$host_os ld.so"
22811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22812 if test "$GCC" = yes; then
22813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22814 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22815 # if the path contains ";" then we assume it to be the separator
22816 # otherwise default to the standard path separator (i.e. ":") - it is
22817 # assumed that no part of a normal pathname contains ";" but that should
22818 # okay in the real world where ";" in dirpaths is itself problematic.
22819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22826 need_lib_prefix=unknown
22827 hardcode_into_libs=no
22829 # when you set need_version to no, make sure it does not cause -set_version
22830 # flags to be left without arguments
22831 need_version=unknown
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22837 shlibpath_var=LIBPATH
22839 # AIX 3 has no versioning support, so we append a major version to the name.
22840 soname_spec='${libname}${release}${shared_ext}$major'
22847 hardcode_into_libs=yes
22848 if test "$host_cpu" = ia64; then
22849 # AIX 5 supports IA64
22850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22851 shlibpath_var=LD_LIBRARY_PATH
22853 # With GCC up to 2.95.x, collect2 would create an import file
22854 # for dependence libraries. The import file would start with
22855 # the line `#! .'. This would cause the generated library to
22856 # depend on `.', always an invalid library. This was fixed in
22857 # development snapshots of GCC prior to 3.0.
22859 aix4 | aix4.[01] | aix4.[01].*)
22860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22862 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22865 can_build_shared=no
22869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22870 # soname into executable. Probably we can add versioning support to
22871 # collect2, so additional links can be useful in future.
22872 if test "$aix_use_runtimelinking" = yes; then
22873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22874 # instead of lib<name>.a to let people know that these are not
22875 # typical AIX shared libraries.
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878 # We preserve .a as extension for shared libraries through AIX4.2
22879 # and later when we are not doing run time linking.
22880 library_names_spec='${libname}${release}.a $libname.a'
22881 soname_spec='${libname}${release}${shared_ext}$major'
22883 shlibpath_var=LIBPATH
22888 library_names_spec='$libname.ixlibrary $libname.a'
22889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22890 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'
22894 library_names_spec='${libname}${shared_ext}'
22895 dynamic_linker="$host_os ld.so"
22896 shlibpath_var=LIBRARY_PATH
22902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22903 soname_spec='${libname}${release}${shared_ext}$major'
22904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22905 shlibpath_var=LD_LIBRARY_PATH
22906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22908 # the default ld.so.conf also contains /usr/contrib/lib and
22909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22910 # libtool to hard-code these into programs
22913 cygwin* | mingw* | pw32*)
22914 version_type=windows
22919 case $GCC,$host_os in
22920 yes,cygwin* | yes,mingw* | yes,pw32*)
22921 library_names_spec='$libname.dll.a'
22922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22923 postinstall_cmds='base_file=`basename \${file}`~
22924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22925 dldir=$destdir/`dirname \$dlpath`~
22926 test -d \$dldir || mkdir -p \$dldir~
22927 $install_prog $dir/$dlname \$dldir/$dlname~
22928 chmod a+x \$dldir/$dlname'
22929 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22930 dlpath=$dir/\$dldll~
22932 shlibpath_overrides_runpath=yes
22936 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22937 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22938 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22941 # MinGW DLLs use traditional 'lib' prefix
22942 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22944 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22945 # It is most probably a Windows format PATH printed by
22946 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22947 # path with ; separators, and with drive letters. We can handle the
22948 # drive letters (cygwin fileutils understands them), so leave them,
22949 # especially as we might pass files found there to a mingw objdump,
22950 # which wouldn't understand a cygwinified path. Ahh.
22951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22957 # pw32 DLLs use 'pw' prefix rather than 'lib'
22958 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22967 dynamic_linker='Win32 ld.exe'
22968 # FIXME: first we should search . and the directory the executable is in
22972 darwin* | rhapsody*)
22973 dynamic_linker="$host_os dyld"
22974 version_type=darwin
22977 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22978 soname_spec='${libname}${release}${major}$shared_ext'
22979 shlibpath_overrides_runpath=yes
22980 shlibpath_var=DYLD_LIBRARY_PATH
22981 shrext_cmds='.dylib'
22982 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22983 if test "$GCC" = yes; then
22984 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"`
22986 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22988 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 shlibpath_var=LD_LIBRARY_PATH
23008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 shlibpath_overrides_runpath=no
23012 hardcode_into_libs=yes
23013 dynamic_linker='GNU ld.so'
23016 freebsd* | dragonfly*)
23017 # DragonFly does not have aout. When/if they implement a new
23018 # versioning mechanism, adjust this.
23019 if test -x /usr/bin/objformat; then
23020 objformat=`/usr/bin/objformat`
23023 freebsd[123]*) objformat=aout ;;
23024 *) objformat=elf ;;
23027 version_type=freebsd-$objformat
23028 case $version_type in
23030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23039 shlibpath_var=LD_LIBRARY_PATH
23042 shlibpath_overrides_runpath=yes
23044 freebsd3.[01]* | freebsdelf3.[01]*)
23045 shlibpath_overrides_runpath=yes
23046 hardcode_into_libs=yes
23048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23050 shlibpath_overrides_runpath=no
23051 hardcode_into_libs=yes
23053 freebsd*) # from 4.6 on
23054 shlibpath_overrides_runpath=yes
23055 hardcode_into_libs=yes
23064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23065 soname_spec='${libname}${release}${shared_ext}$major'
23066 shlibpath_var=LD_LIBRARY_PATH
23067 hardcode_into_libs=yes
23070 hpux9* | hpux10* | hpux11*)
23071 # Give a soname corresponding to the major version so that dld.sl refuses to
23072 # link against other versions.
23079 hardcode_into_libs=yes
23080 dynamic_linker="$host_os dld.so"
23081 shlibpath_var=LD_LIBRARY_PATH
23082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23084 soname_spec='${libname}${release}${shared_ext}$major'
23085 if test "X$HPUX_IA64_MODE" = X32; then
23086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23094 hardcode_into_libs=yes
23095 dynamic_linker="$host_os dld.sl"
23096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23099 soname_spec='${libname}${release}${shared_ext}$major'
23100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23105 dynamic_linker="$host_os dld.sl"
23106 shlibpath_var=SHLIB_PATH
23107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23109 soname_spec='${libname}${release}${shared_ext}$major'
23112 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23113 postinstall_cmds='chmod 555 $lib'
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23123 shlibpath_var=LD_LIBRARY_PATH
23124 shlibpath_overrides_runpath=no
23125 hardcode_into_libs=yes
23128 irix5* | irix6* | nonstopux*)
23130 nonstopux*) version_type=nonstopux ;;
23132 if test "$lt_cv_prog_gnu_ld" = yes; then
23140 soname_spec='${libname}${release}${shared_ext}$major'
23141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23143 irix5* | nonstopux*)
23144 libsuff= shlibsuff=
23147 case $LD in # libtool.m4 will add one of these switches to LD
23148 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23149 libsuff= shlibsuff= libmagic=32-bit;;
23150 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23151 libsuff=32 shlibsuff=N32 libmagic=N32;;
23152 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23153 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23154 *) libsuff= shlibsuff= libmagic=never-match;;
23158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23159 shlibpath_overrides_runpath=no
23160 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23161 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23162 hardcode_into_libs=yes
23165 # No shared lib support for Linux oldld, aout, or coff.
23166 linux*oldld* | linux*aout* | linux*coff*)
23170 # This must be Linux ELF.
23175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23176 soname_spec='${libname}${release}${shared_ext}$major'
23177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 shlibpath_overrides_runpath=no
23180 # This implies no fast_install, which is unacceptable.
23181 # Some rework will be needed to allow for fast_install
23182 # before this can be enabled.
23183 hardcode_into_libs=yes
23185 # Append ld.so.conf contents to the search path
23186 if test -f /etc/ld.so.conf; then
23187 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' ' '`
23188 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23191 # We used to test for /lib/ld.so.1 and disable shared libraries on
23192 # powerpc, because MkLinux only supported shared libraries with the
23193 # GNU dynamic linker. Since this was broken with cross compilers,
23194 # most powerpc-linux boxes support dynamic linking these days and
23195 # people can always --disable-shared, the test was removed, and we
23196 # assume the GNU/Linux dynamic linker is in use.
23197 dynamic_linker='GNU/Linux ld.so'
23204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23205 soname_spec='${libname}${release}${shared_ext}$major'
23206 shlibpath_var=LD_LIBRARY_PATH
23207 shlibpath_overrides_runpath=no
23208 hardcode_into_libs=yes
23209 dynamic_linker='GNU ld.so'
23216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23219 dynamic_linker='NetBSD (a.out) ld.so'
23221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23222 soname_spec='${libname}${release}${shared_ext}$major'
23223 dynamic_linker='NetBSD ld.elf_so'
23225 shlibpath_var=LD_LIBRARY_PATH
23226 shlibpath_overrides_runpath=yes
23227 hardcode_into_libs=yes
23232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23233 shlibpath_var=LD_LIBRARY_PATH
23234 shlibpath_overrides_runpath=yes
23241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23242 soname_spec='${libname}${release}${shared_ext}$major'
23243 shlibpath_var=LD_LIBRARY_PATH
23244 shlibpath_overrides_runpath=yes
23249 sys_lib_dlsearch_path_spec="/usr/lib"
23251 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23253 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23254 *) need_version=no ;;
23256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23258 shlibpath_var=LD_LIBRARY_PATH
23259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23261 openbsd2.[89] | openbsd2.[89].*)
23262 shlibpath_overrides_runpath=no
23265 shlibpath_overrides_runpath=yes
23269 shlibpath_overrides_runpath=yes
23274 libname_spec='$name'
23277 library_names_spec='$libname${shared_ext} $libname.a'
23278 dynamic_linker='OS/2 ld.exe'
23279 shlibpath_var=LIBPATH
23282 osf3* | osf4* | osf5*)
23286 soname_spec='${libname}${release}${shared_ext}$major'
23287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23288 shlibpath_var=LD_LIBRARY_PATH
23289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 shlibpath_var=LD_LIBRARY_PATH
23300 shlibpath_overrides_runpath=yes
23301 hardcode_into_libs=yes
23302 # ldd complains unless libraries are executable
23303 postinstall_cmds='chmod +x $lib'
23308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23309 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23310 shlibpath_var=LD_LIBRARY_PATH
23311 shlibpath_overrides_runpath=yes
23312 if test "$with_gnu_ld" = yes; then
23320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23321 soname_spec='${libname}${release}${shared_ext}$major'
23322 shlibpath_var=LD_LIBRARY_PATH
23323 case $host_vendor in
23325 shlibpath_overrides_runpath=no
23327 export_dynamic_flag_spec='${wl}-Blargedynsym'
23328 runpath_var=LD_RUN_PATH
23336 shlibpath_overrides_runpath=no
23337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23343 if test -d /usr/nec ;then
23345 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23346 soname_spec='$libname${shared_ext}.$major'
23347 shlibpath_var=LD_LIBRARY_PATH
23351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23352 version_type=freebsd-elf
23355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23356 soname_spec='${libname}${release}${shared_ext}$major'
23357 shlibpath_var=LD_LIBRARY_PATH
23358 hardcode_into_libs=yes
23359 if test "$with_gnu_ld" = yes; then
23360 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23361 shlibpath_overrides_runpath=no
23363 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23364 shlibpath_overrides_runpath=yes
23367 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23371 sys_lib_dlsearch_path_spec='/usr/lib'
23376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23377 soname_spec='${libname}${release}${shared_ext}$major'
23378 shlibpath_var=LD_LIBRARY_PATH
23385 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23386 echo "${ECHO_T}$dynamic_linker" >&6; }
23387 test "$dynamic_linker" = no && can_build_shared=no
23389 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23390 if test "$GCC" = yes; then
23391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23394 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23395 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23396 hardcode_action_F77=
23397 if test -n "$hardcode_libdir_flag_spec_F77" || \
23398 test -n "$runpath_var_F77" || \
23399 test "X$hardcode_automatic_F77" = "Xyes" ; then
23401 # We can hardcode non-existant directories.
23402 if test "$hardcode_direct_F77" != no &&
23403 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23404 # have to relink, otherwise we might link with an installed library
23405 # when we should be linking with a yet-to-be-installed one
23406 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23407 test "$hardcode_minus_L_F77" != no; then
23408 # Linking always hardcodes the temporary library directory.
23409 hardcode_action_F77=relink
23411 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23412 hardcode_action_F77=immediate
23415 # We cannot hardcode anything, or else we can only hardcode existing
23417 hardcode_action_F77=unsupported
23419 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23420 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23422 if test "$hardcode_action_F77" = relink; then
23423 # Fast installation is not supported
23424 enable_fast_install=no
23425 elif test "$shlibpath_overrides_runpath" = yes ||
23426 test "$enable_shared" = no; then
23427 # Fast installation is not necessary
23428 enable_fast_install=needless
23432 # The else clause should only fire when bootstrapping the
23433 # libtool distribution, otherwise you forgot to ship ltmain.sh
23434 # with your package, and you will get complaints that there are
23435 # no rules to generate ltmain.sh.
23436 if test -f "$ltmain"; then
23437 # See if we are running on zsh, and set the options which allow our commands through
23438 # without removal of \ escapes.
23439 if test -n "${ZSH_VERSION+set}" ; then
23440 setopt NO_GLOB_SUBST
23442 # Now quote all the things that may contain metacharacters while being
23443 # careful not to overquote the AC_SUBSTed values. We take copies of the
23444 # variables and quote the copies for generation of the libtool script.
23445 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23449 deplibs_check_method reload_flag reload_cmds need_locks \
23450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23451 lt_cv_sys_global_symbol_to_c_name_address \
23452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23453 old_postinstall_cmds old_postuninstall_cmds \
23457 lt_prog_compiler_wl_F77 \
23458 lt_prog_compiler_pic_F77 \
23459 lt_prog_compiler_static_F77 \
23460 lt_prog_compiler_no_builtin_flag_F77 \
23461 export_dynamic_flag_spec_F77 \
23462 thread_safe_flag_spec_F77 \
23463 whole_archive_flag_spec_F77 \
23464 enable_shared_with_static_runtimes_F77 \
23465 old_archive_cmds_F77 \
23466 old_archive_from_new_cmds_F77 \
23467 predep_objects_F77 \
23468 postdep_objects_F77 \
23471 compiler_lib_search_path_F77 \
23473 archive_expsym_cmds_F77 \
23474 postinstall_cmds_F77 \
23475 postuninstall_cmds_F77 \
23476 old_archive_from_expsyms_cmds_F77 \
23477 allow_undefined_flag_F77 \
23478 no_undefined_flag_F77 \
23479 export_symbols_cmds_F77 \
23480 hardcode_libdir_flag_spec_F77 \
23481 hardcode_libdir_flag_spec_ld_F77 \
23482 hardcode_libdir_separator_F77 \
23483 hardcode_automatic_F77 \
23485 module_expsym_cmds_F77 \
23486 lt_cv_prog_compiler_c_o_F77 \
23487 exclude_expsyms_F77 \
23488 include_expsyms_F77; do
23491 old_archive_cmds_F77 | \
23492 old_archive_from_new_cmds_F77 | \
23493 archive_cmds_F77 | \
23494 archive_expsym_cmds_F77 | \
23495 module_cmds_F77 | \
23496 module_expsym_cmds_F77 | \
23497 old_archive_from_expsyms_cmds_F77 | \
23498 export_symbols_cmds_F77 | \
23499 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23500 postinstall_cmds | postuninstall_cmds | \
23501 old_postinstall_cmds | old_postuninstall_cmds | \
23502 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23503 # Double-quote double-evaled strings.
23504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23507 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23513 *'\$0 --fallback-echo"')
23514 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23520 cat <<__EOF__ >> "$cfgfile"
23521 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23525 # Shell to use when invoking shell scripts.
23528 # Whether or not to build shared libraries.
23529 build_libtool_libs=$enable_shared
23531 # Whether or not to build static libraries.
23532 build_old_libs=$enable_static
23534 # Whether or not to add -lc for building shared libraries.
23535 build_libtool_need_lc=$archive_cmds_need_lc_F77
23537 # Whether or not to disallow shared libs when runtime libs are static
23538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23540 # Whether or not to optimize for fast installation.
23541 fast_install=$enable_fast_install
23544 host_alias=$host_alias
23548 # The build system.
23549 build_alias=$build_alias
23553 # An echo program that does not interpret backslashes.
23558 AR_FLAGS=$lt_AR_FLAGS
23563 # LTCC compiler flags.
23564 LTCFLAGS=$lt_LTCFLAGS
23566 # A language-specific compiler.
23567 CC=$lt_compiler_F77
23569 # Is the compiler the GNU C compiler?
23575 # The linker used to build libraries.
23578 # Whether we need hard or soft links.
23581 # A BSD-compatible nm program.
23584 # A symbol stripping program
23587 # Used to examine libraries when file_magic_cmd begins "file"
23588 MAGIC_CMD=$MAGIC_CMD
23590 # Used on cygwin: DLL creation program.
23593 # Used on cygwin: object dumper.
23596 # Used on cygwin: assembler.
23599 # The name of the directory that contains temporary libtool files.
23602 # How to create reloadable object files.
23603 reload_flag=$lt_reload_flag
23604 reload_cmds=$lt_reload_cmds
23606 # How to pass a linker flag through the compiler.
23607 wl=$lt_lt_prog_compiler_wl_F77
23609 # Object file suffix (normally "o").
23610 objext="$ac_objext"
23612 # Old archive suffix (normally "a").
23615 # Shared library suffix (normally ".so").
23616 shrext_cmds='$shrext_cmds'
23618 # Executable file suffix (normally "").
23621 # Additional compiler flags for building library objects.
23622 pic_flag=$lt_lt_prog_compiler_pic_F77
23625 # What is the maximum length of a command?
23626 max_cmd_len=$lt_cv_sys_max_cmd_len
23628 # Does compiler simultaneously support -c and -o options?
23629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23631 # Must we lock files when doing compilation?
23632 need_locks=$lt_need_locks
23634 # Do we need the lib prefix for modules?
23635 need_lib_prefix=$need_lib_prefix
23637 # Do we need a version for libraries?
23638 need_version=$need_version
23640 # Whether dlopen is supported.
23641 dlopen_support=$enable_dlopen
23643 # Whether dlopen of programs is supported.
23644 dlopen_self=$enable_dlopen_self
23646 # Whether dlopen of statically linked programs is supported.
23647 dlopen_self_static=$enable_dlopen_self_static
23649 # Compiler flag to prevent dynamic linking.
23650 link_static_flag=$lt_lt_prog_compiler_static_F77
23652 # Compiler flag to turn off builtin functions.
23653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23655 # Compiler flag to allow reflexive dlopens.
23656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23658 # Compiler flag to generate shared objects directly from archives.
23659 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23661 # Compiler flag to generate thread-safe objects.
23662 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23664 # Library versioning type.
23665 version_type=$version_type
23667 # Format of library name prefix.
23668 libname_spec=$lt_libname_spec
23670 # List of archive names. First name is the real one, the rest are links.
23671 # The last name is the one that the linker finds with -lNAME.
23672 library_names_spec=$lt_library_names_spec
23674 # The coded name of the library, if different from the real name.
23675 soname_spec=$lt_soname_spec
23677 # Commands used to build and install an old-style archive.
23679 old_archive_cmds=$lt_old_archive_cmds_F77
23680 old_postinstall_cmds=$lt_old_postinstall_cmds
23681 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23683 # Create an old-style archive from a shared archive.
23684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23686 # Create a temporary old-style archive to link instead of a shared archive.
23687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23689 # Commands used to build and install a shared archive.
23690 archive_cmds=$lt_archive_cmds_F77
23691 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23692 postinstall_cmds=$lt_postinstall_cmds
23693 postuninstall_cmds=$lt_postuninstall_cmds
23695 # Commands used to build a loadable module (assumed same as above if empty)
23696 module_cmds=$lt_module_cmds_F77
23697 module_expsym_cmds=$lt_module_expsym_cmds_F77
23699 # Commands to strip libraries.
23700 old_striplib=$lt_old_striplib
23701 striplib=$lt_striplib
23703 # Dependencies to place before the objects being linked to create a
23705 predep_objects=$lt_predep_objects_F77
23707 # Dependencies to place after the objects being linked to create a
23709 postdep_objects=$lt_postdep_objects_F77
23711 # Dependencies to place before the objects being linked to create a
23713 predeps=$lt_predeps_F77
23715 # Dependencies to place after the objects being linked to create a
23717 postdeps=$lt_postdeps_F77
23719 # The library search path used internally by the compiler when linking
23720 # a shared library.
23721 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23723 # Method to check whether dependent libraries are shared objects.
23724 deplibs_check_method=$lt_deplibs_check_method
23726 # Command to use when deplibs_check_method == file_magic.
23727 file_magic_cmd=$lt_file_magic_cmd
23729 # Flag that allows shared libraries with undefined symbols to be built.
23730 allow_undefined_flag=$lt_allow_undefined_flag_F77
23732 # Flag that forces no undefined symbols.
23733 no_undefined_flag=$lt_no_undefined_flag_F77
23735 # Commands used to finish a libtool library installation in a directory.
23736 finish_cmds=$lt_finish_cmds
23738 # Same as above, but a single script fragment to be evaled but not shown.
23739 finish_eval=$lt_finish_eval
23741 # Take the output of nm and produce a listing of raw symbols and C names.
23742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23744 # Transform the output of nm in a proper C declaration
23745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23747 # Transform the output of nm in a C name address pair
23748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23750 # This is the shared library runtime path variable.
23751 runpath_var=$runpath_var
23753 # This is the shared library path variable.
23754 shlibpath_var=$shlibpath_var
23756 # Is shlibpath searched before the hard-coded library search path?
23757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23759 # How to hardcode a shared library path into an executable.
23760 hardcode_action=$hardcode_action_F77
23762 # Whether we should hardcode library paths into libraries.
23763 hardcode_into_libs=$hardcode_into_libs
23765 # Flag to hardcode \$libdir into a binary during linking.
23766 # This must work even if \$libdir does not exist.
23767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23769 # If ld is used when linking, flag to hardcode \$libdir into
23770 # a binary during linking. This must work even if \$libdir does
23772 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23774 # Whether we need a single -rpath flag with a separated argument.
23775 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23777 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23778 # resulting binary.
23779 hardcode_direct=$hardcode_direct_F77
23781 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23782 # resulting binary.
23783 hardcode_minus_L=$hardcode_minus_L_F77
23785 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23786 # the resulting binary.
23787 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23789 # Set to yes if building a shared library automatically hardcodes DIR into the library
23790 # and all subsequent libraries and executables linked against it.
23791 hardcode_automatic=$hardcode_automatic_F77
23793 # Variables whose values should be saved in libtool wrapper scripts and
23794 # restored at relink time.
23795 variables_saved_for_relink="$variables_saved_for_relink"
23797 # Whether libtool must link a program against all its dependency libraries.
23798 link_all_deplibs=$link_all_deplibs_F77
23800 # Compile-time system search path for libraries
23801 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23803 # Run-time system search path for libraries
23804 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23806 # Fix the shell variable \$srcfile for the compiler.
23807 fix_srcfile_path="$fix_srcfile_path_F77"
23809 # Set to yes if exported symbols are required.
23810 always_export_symbols=$always_export_symbols_F77
23812 # The commands to list exported symbols.
23813 export_symbols_cmds=$lt_export_symbols_cmds_F77
23815 # The commands to extract the exported symbol list from a shared archive.
23816 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23818 # Symbols that should not be listed in the preloaded symbols.
23819 exclude_expsyms=$lt_exclude_expsyms_F77
23821 # Symbols that must always be exported.
23822 include_expsyms=$lt_include_expsyms_F77
23824 # ### END LIBTOOL TAG CONFIG: $tagname
23830 # If there is no Makefile yet, we rely on a make rule to execute
23831 # `config.status --recheck' to rerun these tests and create the
23832 # libtool script then.
23833 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23834 if test -f "$ltmain_in"; then
23835 test -f Makefile && make "$ltmain"
23841 ac_cpp='$CPP $CPPFLAGS'
23842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23854 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23856 ac_cpp='$CPP $CPPFLAGS'
23857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23862 # Source file extension for Java test sources.
23865 # Object file extension for compiled Java test sources.
23869 # Code to be used in simple compile tests
23870 lt_simple_compile_test_code="class foo {}\n"
23872 # Code to be used in simple link tests
23873 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23875 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23877 # If no C compiler was specified, use CC.
23880 # If no C compiler flags were specified, use CFLAGS.
23881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23883 # Allow CC to be a program name with arguments.
23887 # save warnings/boilerplate of simple test code
23888 ac_outfile=conftest.$ac_objext
23889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23891 _lt_compiler_boilerplate=`cat conftest.err`
23894 ac_outfile=conftest.$ac_objext
23895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23897 _lt_linker_boilerplate=`cat conftest.err`
23901 # Allow CC to be a program name with arguments.
23906 for cc_temp in $compiler""; do
23908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23917 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23918 archive_cmds_need_lc_GCJ=no
23920 old_archive_cmds_GCJ=$old_archive_cmds
23923 lt_prog_compiler_no_builtin_flag_GCJ=
23925 if test "$GCC" = yes; then
23926 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23929 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23930 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23931 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 lt_cv_prog_compiler_rtti_exceptions=no
23935 ac_outfile=conftest.$ac_objext
23936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23937 lt_compiler_flag="-fno-rtti -fno-exceptions"
23938 # Insert the option either (1) after the last *FLAGS variable, or
23939 # (2) before a word containing "conftest.", or (3) at the end.
23940 # Note that $ac_compile itself does not contain backslashes and begins
23941 # with a dollar sign (not a hyphen), so the echo should work correctly.
23942 # The option is referenced via a variable to avoid confusing sed.
23943 lt_compile=`echo "$ac_compile" | $SED \
23944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23946 -e 's:$: $lt_compiler_flag:'`
23947 (eval echo "\"\$as_me:23947: $lt_compile\"" >&5)
23948 (eval "$lt_compile" 2>conftest.err)
23950 cat conftest.err >&5
23951 echo "$as_me:23951: \$? = $ac_status" >&5
23952 if (exit $ac_status) && test -s "$ac_outfile"; then
23953 # The compiler can only warn and ignore the option if not recognized
23954 # So say no if there are warnings other than the usual output.
23955 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23958 lt_cv_prog_compiler_rtti_exceptions=yes
23964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23965 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23967 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23968 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23975 lt_prog_compiler_wl_GCJ=
23976 lt_prog_compiler_pic_GCJ=
23977 lt_prog_compiler_static_GCJ=
23979 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23980 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23982 if test "$GCC" = yes; then
23983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 lt_prog_compiler_static_GCJ='-static'
23988 # All AIX code is PIC.
23989 if test "$host_cpu" = ia64; then
23990 # AIX 5 now supports IA64 processor
23991 lt_prog_compiler_static_GCJ='-Bstatic'
23996 # FIXME: we need at least 68020 code to build shared libraries, but
23997 # adding the `-m68020' flag to GCC prevents building anything better,
23999 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24002 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24003 # PIC is the default for these OSes.
24006 mingw* | pw32* | os2*)
24007 # This hack is so that the source file can tell whether it is being
24008 # built for inclusion in a dll (and should export symbols for example).
24009 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24012 darwin* | rhapsody*)
24013 # PIC is the default on this platform
24014 # Common symbols not allowed in MH_DYLIB files
24015 lt_prog_compiler_pic_GCJ='-fno-common'
24019 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24020 # Instead, we relocate shared libraries at runtime.
24024 # Just because we use GCC doesn't mean we suddenly get shared libraries
24025 # on systems that don't support them.
24026 lt_prog_compiler_can_build_shared_GCJ=no
24031 if test -d /usr/nec; then
24032 lt_prog_compiler_pic_GCJ=-Kconform_pic
24037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24038 # not for PA HP-UX.
24044 lt_prog_compiler_pic_GCJ='-fPIC'
24050 lt_prog_compiler_pic_GCJ='-fPIC'
24054 # PORTME Check for flag to pass linker flags through the system compiler.
24057 lt_prog_compiler_wl_GCJ='-Wl,'
24058 if test "$host_cpu" = ia64; then
24059 # AIX 5 now supports IA64 processor
24060 lt_prog_compiler_static_GCJ='-Bstatic'
24062 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24066 # PIC is the default on this platform
24067 # Common symbols not allowed in MH_DYLIB files
24068 case $cc_basename in
24070 lt_prog_compiler_pic_GCJ='-qnocommon'
24071 lt_prog_compiler_wl_GCJ='-Wl,'
24076 mingw* | pw32* | os2*)
24077 # This hack is so that the source file can tell whether it is being
24078 # built for inclusion in a dll (and should export symbols for example).
24079 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24082 hpux9* | hpux10* | hpux11*)
24083 lt_prog_compiler_wl_GCJ='-Wl,'
24084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24085 # not for PA HP-UX.
24091 lt_prog_compiler_pic_GCJ='+Z'
24094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24095 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24098 irix5* | irix6* | nonstopux*)
24099 lt_prog_compiler_wl_GCJ='-Wl,'
24100 # PIC (with -KPIC) is the default.
24101 lt_prog_compiler_static_GCJ='-non_shared'
24105 lt_prog_compiler_pic_GCJ='-KPIC'
24106 lt_prog_compiler_static_GCJ='-Bstatic'
24110 case $cc_basename in
24112 lt_prog_compiler_wl_GCJ='-Wl,'
24113 lt_prog_compiler_pic_GCJ='-KPIC'
24114 lt_prog_compiler_static_GCJ='-static'
24116 pgcc* | pgf77* | pgf90* | pgf95*)
24117 # Portland Group compilers (*not* the Pentium gcc compiler,
24118 # which looks to be a dead project)
24119 lt_prog_compiler_wl_GCJ='-Wl,'
24120 lt_prog_compiler_pic_GCJ='-fpic'
24121 lt_prog_compiler_static_GCJ='-Bstatic'
24124 lt_prog_compiler_wl_GCJ='-Wl,'
24125 # All Alpha code is PIC.
24126 lt_prog_compiler_static_GCJ='-non_shared'
24131 osf3* | osf4* | osf5*)
24132 lt_prog_compiler_wl_GCJ='-Wl,'
24133 # All OSF/1 code is PIC.
24134 lt_prog_compiler_static_GCJ='-non_shared'
24138 lt_prog_compiler_pic_GCJ='-KPIC'
24139 lt_prog_compiler_static_GCJ='-Bstatic'
24140 case $cc_basename in
24141 f77* | f90* | f95*)
24142 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24144 lt_prog_compiler_wl_GCJ='-Wl,';;
24149 lt_prog_compiler_wl_GCJ='-Qoption ld '
24150 lt_prog_compiler_pic_GCJ='-PIC'
24151 lt_prog_compiler_static_GCJ='-Bstatic'
24154 sysv4 | sysv4.2uw2* | sysv4.3*)
24155 lt_prog_compiler_wl_GCJ='-Wl,'
24156 lt_prog_compiler_pic_GCJ='-KPIC'
24157 lt_prog_compiler_static_GCJ='-Bstatic'
24161 if test -d /usr/nec ;then
24162 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24163 lt_prog_compiler_static_GCJ='-Bstatic'
24167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24168 lt_prog_compiler_wl_GCJ='-Wl,'
24169 lt_prog_compiler_pic_GCJ='-KPIC'
24170 lt_prog_compiler_static_GCJ='-Bstatic'
24174 lt_prog_compiler_wl_GCJ='-Wl,'
24175 lt_prog_compiler_can_build_shared_GCJ=no
24179 lt_prog_compiler_pic_GCJ='-pic'
24180 lt_prog_compiler_static_GCJ='-Bstatic'
24184 lt_prog_compiler_can_build_shared_GCJ=no
24189 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24190 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24193 # Check to make sure the PIC flag actually works.
24195 if test -n "$lt_prog_compiler_pic_GCJ"; then
24197 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24198 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24199 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24200 echo $ECHO_N "(cached) $ECHO_C" >&6
24202 lt_prog_compiler_pic_works_GCJ=no
24203 ac_outfile=conftest.$ac_objext
24204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24205 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24206 # Insert the option either (1) after the last *FLAGS variable, or
24207 # (2) before a word containing "conftest.", or (3) at the end.
24208 # Note that $ac_compile itself does not contain backslashes and begins
24209 # with a dollar sign (not a hyphen), so the echo should work correctly.
24210 # The option is referenced via a variable to avoid confusing sed.
24211 lt_compile=`echo "$ac_compile" | $SED \
24212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24214 -e 's:$: $lt_compiler_flag:'`
24215 (eval echo "\"\$as_me:24215: $lt_compile\"" >&5)
24216 (eval "$lt_compile" 2>conftest.err)
24218 cat conftest.err >&5
24219 echo "$as_me:24219: \$? = $ac_status" >&5
24220 if (exit $ac_status) && test -s "$ac_outfile"; then
24221 # The compiler can only warn and ignore the option if not recognized
24222 # So say no if there are warnings other than the usual output.
24223 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24226 lt_prog_compiler_pic_works_GCJ=yes
24232 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24233 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24235 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24236 case $lt_prog_compiler_pic_GCJ in
24238 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24241 lt_prog_compiler_pic_GCJ=
24242 lt_prog_compiler_can_build_shared_GCJ=no
24247 # For platforms which do not support PIC, -DPIC is meaningless:
24249 lt_prog_compiler_pic_GCJ=
24252 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24257 # Check to make sure the static flag actually works.
24259 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24260 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24261 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24262 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24265 lt_prog_compiler_static_works_GCJ=no
24266 save_LDFLAGS="$LDFLAGS"
24267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24268 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24270 # The linker can only warn and ignore the option if not recognized
24271 # So say no if there are warnings
24272 if test -s conftest.err; then
24273 # Append any errors to the config.log.
24274 cat conftest.err 1>&5
24275 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24277 if diff conftest.exp conftest.er2 >/dev/null; then
24278 lt_prog_compiler_static_works_GCJ=yes
24281 lt_prog_compiler_static_works_GCJ=yes
24285 LDFLAGS="$save_LDFLAGS"
24288 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24289 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24291 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24294 lt_prog_compiler_static_GCJ=
24298 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24299 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24300 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 lt_cv_prog_compiler_c_o_GCJ=no
24304 $rm -r conftest 2>/dev/null
24308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24310 lt_compiler_flag="-o out/conftest2.$ac_objext"
24311 # Insert the option either (1) after the last *FLAGS variable, or
24312 # (2) before a word containing "conftest.", or (3) at the end.
24313 # Note that $ac_compile itself does not contain backslashes and begins
24314 # with a dollar sign (not a hyphen), so the echo should work correctly.
24315 lt_compile=`echo "$ac_compile" | $SED \
24316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24318 -e 's:$: $lt_compiler_flag:'`
24319 (eval echo "\"\$as_me:24319: $lt_compile\"" >&5)
24320 (eval "$lt_compile" 2>out/conftest.err)
24322 cat out/conftest.err >&5
24323 echo "$as_me:24323: \$? = $ac_status" >&5
24324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24326 # The compiler can only warn and ignore the option if not recognized
24327 # So say no if there are warnings
24328 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24331 lt_cv_prog_compiler_c_o_GCJ=yes
24336 # SGI C++ compiler will create directory out/ii_files/ for
24337 # template instantiation
24338 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24339 $rm out/* && rmdir out
24345 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24346 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24349 hard_links="nottested"
24350 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24351 # do not overwrite the value of need_locks provided by the user
24352 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24353 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24358 ln conftest.a conftest.b 2>&5 || hard_links=no
24359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24360 { echo "$as_me:$LINENO: result: $hard_links" >&5
24361 echo "${ECHO_T}$hard_links" >&6; }
24362 if test "$hard_links" = no; then
24363 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24364 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24371 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24375 allow_undefined_flag_GCJ=
24376 enable_shared_with_static_runtimes_GCJ=no
24378 archive_expsym_cmds_GCJ=
24379 old_archive_From_new_cmds_GCJ=
24380 old_archive_from_expsyms_cmds_GCJ=
24381 export_dynamic_flag_spec_GCJ=
24382 whole_archive_flag_spec_GCJ=
24383 thread_safe_flag_spec_GCJ=
24384 hardcode_libdir_flag_spec_GCJ=
24385 hardcode_libdir_flag_spec_ld_GCJ=
24386 hardcode_libdir_separator_GCJ=
24387 hardcode_direct_GCJ=no
24388 hardcode_minus_L_GCJ=no
24389 hardcode_shlibpath_var_GCJ=unsupported
24390 link_all_deplibs_GCJ=unknown
24391 hardcode_automatic_GCJ=no
24393 module_expsym_cmds_GCJ=
24394 always_export_symbols_GCJ=no
24395 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24396 # include_expsyms should be a list of space-separated symbols to be *always*
24397 # included in the symbol list
24398 include_expsyms_GCJ=
24399 # exclude_expsyms can be an extended regexp of symbols to exclude
24400 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24402 # as well as any symbol that contains `d'.
24403 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24405 # platforms (ab)use it in PIC code, but their linkers get confused if
24406 # the symbol is explicitly referenced. Since portable code cannot
24407 # rely on this symbol name, it's probably fine to never include it in
24408 # preloaded symbol tables.
24409 extract_expsyms_cmds=
24410 # Just being paranoid about ensuring that cc_basename is set.
24411 for cc_temp in $compiler""; do
24413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24419 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24422 cygwin* | mingw* | pw32*)
24423 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24424 # When not using gcc, we currently assume that we are using
24425 # Microsoft Visual C++.
24426 if test "$GCC" != yes; then
24431 # we just hope/assume this is gcc and not c89 (= MSVC++)
24440 if test "$with_gnu_ld" = yes; then
24441 # If archive_cmds runs LD, not CC, wlarc should be empty
24444 # Set some defaults for GNU ld with shared library support. These
24445 # are reset later if shared libraries are not supported. Putting them
24446 # here allows them to be overridden if necessary.
24447 runpath_var=LD_RUN_PATH
24448 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24449 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24450 # ancient GNU ld didn't support --whole-archive et. al.
24451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24452 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24454 whole_archive_flag_spec_GCJ=
24456 supports_anon_versioning=no
24457 case `$LD -v 2>/dev/null` in
24458 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24459 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24460 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24461 *\ 2.11.*) ;; # other 2.11 versions
24462 *) supports_anon_versioning=yes ;;
24465 # See if GNU ld supports shared libraries.
24467 aix3* | aix4* | aix5*)
24468 # On AIX/PPC, the GNU linker is very broken
24469 if test "$host_cpu" != ia64; then
24473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24474 *** to be unable to reliably create shared libraries on AIX.
24475 *** Therefore, libtool is disabling shared libraries support. If you
24476 *** really care for shared libraries, you may want to modify your PATH
24477 *** so that a non-GNU linker is found, and then restart.
24484 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)'
24485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24486 hardcode_minus_L_GCJ=yes
24488 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24489 # that the semantics of dynamic libraries on AmigaOS, at least up
24490 # to version 4, is to share data among multiple programs linked
24491 # with the same dynamic library. Since this doesn't match the
24492 # behavior of shared libraries on other platforms, we can't use
24498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24499 allow_undefined_flag_GCJ=unsupported
24500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24501 # support --undefined. This deserves some investigation. FIXME
24502 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24508 cygwin* | mingw* | pw32*)
24509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24510 # as there is no search path for DLLs.
24511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24512 allow_undefined_flag_GCJ=unsupported
24513 always_export_symbols_GCJ=no
24514 enable_shared_with_static_runtimes_GCJ=yes
24515 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24518 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24519 # If the export-symbols file already is a .def file (1st line
24520 # is EXPORTS), use it as is; otherwise, prepend...
24521 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24522 cp $export_symbols $output_objdir/$soname.def;
24524 echo EXPORTS > $output_objdir/$soname.def;
24525 cat $export_symbols >> $output_objdir/$soname.def;
24527 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24534 hardcode_direct_GCJ=no
24535 hardcode_shlibpath_var_GCJ=no
24536 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24537 export_dynamic_flag_spec_GCJ='${wl}-E'
24538 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24539 # Instead, shared libraries are loaded at an image base (0x10000000 by
24540 # default) and relocated if they conflict, which is a slow very memory
24541 # consuming and fragmenting process. To avoid this, we pick a random,
24542 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24543 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24544 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'
24545 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'
24549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24551 case $cc_basename,$host_cpu in
24552 pgcc*) # Portland Group C compiler
24553 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'
24554 tmp_addflag=' $pic_flag'
24556 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24557 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'
24558 tmp_addflag=' $pic_flag -Mnomain' ;;
24559 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24560 tmp_addflag=' -i_dynamic' ;;
24561 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24562 tmp_addflag=' -i_dynamic -nofor_main' ;;
24563 ifc* | ifort*) # Intel Fortran compiler
24564 tmp_addflag=' -nofor_main' ;;
24566 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24568 if test $supports_anon_versioning = yes; then
24569 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24571 $echo "local: *; };" >> $output_objdir/$libname.ver~
24572 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24581 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24585 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24590 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24595 *** create shared libraries on Solaris systems. Therefore, libtool
24596 *** is disabling shared libraries support. We urge you to upgrade GNU
24597 *** binutils to release 2.9.1 or newer. Another option is to modify
24598 *** your PATH or compiler configuration so that the native linker is
24599 *** used, and then restart.
24602 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24611 case `$LD -v 2>&1` in
24612 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24616 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24617 *** reliably create shared libraries on SCO systems. Therefore, libtool
24618 *** is disabling shared libraries support. We urge you to upgrade GNU
24619 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24620 *** your PATH or compiler configuration so that the native linker is
24621 *** used, and then restart.
24626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24627 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24638 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24640 hardcode_direct_GCJ=yes
24641 hardcode_shlibpath_var_GCJ=no
24645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24646 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24647 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24654 if test "$ld_shlibs_GCJ" = no; then
24656 hardcode_libdir_flag_spec_GCJ=
24657 export_dynamic_flag_spec_GCJ=
24658 whole_archive_flag_spec_GCJ=
24661 # PORTME fill in a description of your system's linker (not GNU ld)
24664 allow_undefined_flag_GCJ=unsupported
24665 always_export_symbols_GCJ=yes
24666 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'
24667 # Note: this linker hardcodes the directories in LIBPATH if there
24668 # are no directories specified by -L.
24669 hardcode_minus_L_GCJ=yes
24670 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24671 # Neither direct hardcoding nor static linking is supported with a
24673 hardcode_direct_GCJ=unsupported
24678 if test "$host_cpu" = ia64; then
24679 # On IA64, the linker does run time linking by default, so we don't
24680 # have to do anything special.
24681 aix_use_runtimelinking=no
24682 exp_sym_flag='-Bexport'
24685 # If we're using GNU nm, then we don't want the "-C" option.
24686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24688 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'
24690 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'
24692 aix_use_runtimelinking=no
24694 # Test if we are trying to use run time linking or normal
24695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24696 # need to do runtime linking.
24697 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24698 for ld_flag in $LDFLAGS; do
24699 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24700 aix_use_runtimelinking=yes
24707 exp_sym_flag='-bexport'
24708 no_entry_flag='-bnoentry'
24711 # When large executables or shared objects are built, AIX ld can
24712 # have problems creating the table of contents. If linking a library
24713 # or program results in "error TOC overflow" add -mminimal-toc to
24714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24717 archive_cmds_GCJ=''
24718 hardcode_direct_GCJ=yes
24719 hardcode_libdir_separator_GCJ=':'
24720 link_all_deplibs_GCJ=yes
24722 if test "$GCC" = yes; then
24723 case $host_os in aix4.[012]|aix4.[012].*)
24724 # We only want to do this on AIX 4.2 and lower, the check
24725 # below for broken collect2 doesn't work under 4.3+
24726 collect2name=`${CC} -print-prog-name=collect2`
24727 if test -f "$collect2name" && \
24728 strings "$collect2name" | grep resolve_lib_name >/dev/null
24730 # We have reworked collect2
24731 hardcode_direct_GCJ=yes
24733 # We have old collect2
24734 hardcode_direct_GCJ=unsupported
24735 # It fails to find uninstalled libraries when the uninstalled
24736 # path is not listed in the libpath. Setting hardcode_minus_L
24737 # to unsupported forces relinking
24738 hardcode_minus_L_GCJ=yes
24739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24740 hardcode_libdir_separator_GCJ=
24744 shared_flag='-shared'
24745 if test "$aix_use_runtimelinking" = yes; then
24746 shared_flag="$shared_flag "'${wl}-G'
24750 if test "$host_cpu" = ia64; then
24751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24752 # chokes on -Wl,-G. The following line is correct:
24755 if test "$aix_use_runtimelinking" = yes; then
24756 shared_flag='${wl}-G'
24758 shared_flag='${wl}-bM:SRE'
24763 # It seems that -bexpall does not export symbols beginning with
24764 # underscore (_), so it is better to generate a list of symbols to export.
24765 always_export_symbols_GCJ=yes
24766 if test "$aix_use_runtimelinking" = yes; then
24767 # Warning - without using the other runtime loading flags (-brtl),
24768 # -berok will link without error, but may produce a broken library.
24769 allow_undefined_flag_GCJ='-berok'
24770 # Determine the default libpath from the value encoded in an empty executable.
24771 cat >conftest.$ac_ext <<_ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h. */
24786 rm -f conftest.$ac_objext conftest$ac_exeext
24787 if { (ac_try="$ac_link"
24788 case "(($ac_try" in
24789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790 *) ac_try_echo=$ac_try;;
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793 (eval "$ac_link") 2>conftest.er1
24795 grep -v '^ *+' conftest.er1 >conftest.err
24797 cat conftest.err >&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); } &&
24800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24801 { (case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806 (eval "$ac_try") 2>&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; } &&
24810 { ac_try='test -s conftest$ac_exeext'
24811 { (case "(($ac_try" in
24812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813 *) ac_try_echo=$ac_try;;
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816 (eval "$ac_try") 2>&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; }; then
24821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24823 # Check for a 64-bit object if we didn't find anything.
24824 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; }
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24833 rm -f core conftest.err conftest.$ac_objext \
24834 conftest$ac_exeext conftest.$ac_ext
24835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24837 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24838 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"
24840 if test "$host_cpu" = ia64; then
24841 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24842 allow_undefined_flag_GCJ="-z nodefs"
24843 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"
24845 # Determine the default libpath from the value encoded in an empty executable.
24846 cat >conftest.$ac_ext <<_ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h. */
24861 rm -f conftest.$ac_objext conftest$ac_exeext
24862 if { (ac_try="$ac_link"
24863 case "(($ac_try" in
24864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865 *) ac_try_echo=$ac_try;;
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868 (eval "$ac_link") 2>conftest.er1
24870 grep -v '^ *+' conftest.er1 >conftest.err
24872 cat conftest.err >&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } &&
24875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24876 { (case "(($ac_try" in
24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878 *) ac_try_echo=$ac_try;;
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881 (eval "$ac_try") 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; } &&
24885 { ac_try='test -s conftest$ac_exeext'
24886 { (case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_try") 2>&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; }; then
24896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24898 # Check for a 64-bit object if we didn't find anything.
24899 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; }
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24908 rm -f core conftest.err conftest.$ac_objext \
24909 conftest$ac_exeext conftest.$ac_ext
24910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24912 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24913 # Warning - without using the other run time loading flags,
24914 # -berok will link without error, but may produce a broken library.
24915 no_undefined_flag_GCJ=' ${wl}-bernotok'
24916 allow_undefined_flag_GCJ=' ${wl}-berok'
24917 # Exported symbols can be pulled into shared objects from archives
24918 whole_archive_flag_spec_GCJ='$convenience'
24919 archive_cmds_need_lc_GCJ=yes
24920 # This is similar to how AIX traditionally builds its shared libraries.
24921 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'
24927 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)'
24928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24929 hardcode_minus_L_GCJ=yes
24930 # see comment about different semantics on the GNU ld section
24935 export_dynamic_flag_spec_GCJ=-rdynamic
24938 cygwin* | mingw* | pw32*)
24939 # When not using gcc, we currently assume that we are using
24940 # Microsoft Visual C++.
24941 # hardcode_libdir_flag_spec is actually meaningless, as there is
24942 # no search path for DLLs.
24943 hardcode_libdir_flag_spec_GCJ=' '
24944 allow_undefined_flag_GCJ=unsupported
24945 # Tell ltmain to make .lib files, not .a files.
24947 # Tell ltmain to make .dll files, not .so files.
24949 # FIXME: Setting linknames here is a bad hack.
24950 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24951 # The linker will automatically build a .lib file if we build a DLL.
24952 old_archive_From_new_cmds_GCJ='true'
24953 # FIXME: Should let the user specify the lib program.
24954 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24955 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24956 enable_shared_with_static_runtimes_GCJ=yes
24959 darwin* | rhapsody*)
24961 rhapsody* | darwin1.[012])
24962 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24966 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24968 case ${MACOSX_DEPLOYMENT_TARGET} in
24970 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24973 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24979 archive_cmds_need_lc_GCJ=no
24980 hardcode_direct_GCJ=no
24981 hardcode_automatic_GCJ=yes
24982 hardcode_shlibpath_var_GCJ=unsupported
24983 whole_archive_flag_spec_GCJ=''
24984 link_all_deplibs_GCJ=yes
24985 if test "$GCC" = yes ; then
24986 output_verbose_link_cmd='echo'
24987 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24988 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24989 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24990 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}'
24991 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}'
24993 case $cc_basename in
24995 output_verbose_link_cmd='echo'
24996 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24997 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24999 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}'
25000 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}'
25010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25012 hardcode_shlibpath_var_GCJ=no
25019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25020 # support. Future versions do this automatically, but an explicit c++rt0.o
25021 # does not break anything, and helps significantly (at the cost of a little
25024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026 hardcode_direct_GCJ=yes
25027 hardcode_shlibpath_var_GCJ=no
25030 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25032 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25033 hardcode_direct_GCJ=yes
25034 hardcode_minus_L_GCJ=yes
25035 hardcode_shlibpath_var_GCJ=no
25038 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25039 freebsd* | kfreebsd*-gnu | dragonfly*)
25040 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25042 hardcode_direct_GCJ=yes
25043 hardcode_shlibpath_var_GCJ=no
25047 if test "$GCC" = yes; then
25048 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'
25050 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'
25052 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25053 hardcode_libdir_separator_GCJ=:
25054 hardcode_direct_GCJ=yes
25056 # hardcode_minus_L: Not really in the search PATH,
25057 # but as the default location of the library.
25058 hardcode_minus_L_GCJ=yes
25059 export_dynamic_flag_spec_GCJ='${wl}-E'
25063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25064 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25066 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25068 if test "$with_gnu_ld" = no; then
25069 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25070 hardcode_libdir_separator_GCJ=:
25072 hardcode_direct_GCJ=yes
25073 export_dynamic_flag_spec_GCJ='${wl}-E'
25075 # hardcode_minus_L: Not really in the search PATH,
25076 # but as the default location of the library.
25077 hardcode_minus_L_GCJ=yes
25082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25085 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25088 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25091 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25097 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25100 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25103 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25107 if test "$with_gnu_ld" = no; then
25108 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25109 hardcode_libdir_separator_GCJ=:
25113 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25114 hardcode_direct_GCJ=no
25115 hardcode_shlibpath_var_GCJ=no
25118 hardcode_direct_GCJ=yes
25119 export_dynamic_flag_spec_GCJ='${wl}-E'
25121 # hardcode_minus_L: Not really in the search PATH,
25122 # but as the default location of the library.
25123 hardcode_minus_L_GCJ=yes
25129 irix5* | irix6* | nonstopux*)
25130 if test "$GCC" = yes; then
25131 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'
25133 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'
25134 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25137 hardcode_libdir_separator_GCJ=:
25138 link_all_deplibs_GCJ=yes
25142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25143 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25145 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25148 hardcode_direct_GCJ=yes
25149 hardcode_shlibpath_var_GCJ=no
25153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154 hardcode_direct_GCJ=yes
25155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25156 hardcode_libdir_separator_GCJ=:
25157 hardcode_shlibpath_var_GCJ=no
25161 hardcode_direct_GCJ=yes
25162 hardcode_shlibpath_var_GCJ=no
25163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25164 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25165 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25166 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25167 export_dynamic_flag_spec_GCJ='${wl}-E'
25170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25175 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25176 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25183 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25184 hardcode_minus_L_GCJ=yes
25185 allow_undefined_flag_GCJ=unsupported
25186 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'
25187 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25191 if test "$GCC" = yes; then
25192 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25193 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'
25195 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25196 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'
25198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25199 hardcode_libdir_separator_GCJ=:
25202 osf4* | osf5*) # as osf3* with the addition of -msym flag
25203 if test "$GCC" = yes; then
25204 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25205 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'
25206 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25208 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25209 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'
25210 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~
25211 $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'
25213 # Both c and cxx compiler support -rpath directly
25214 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25216 hardcode_libdir_separator_GCJ=:
25220 no_undefined_flag_GCJ=' -z text'
25221 if test "$GCC" = yes; then
25223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25224 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25228 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25229 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25232 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25233 hardcode_shlibpath_var_GCJ=no
25235 solaris2.[0-5] | solaris2.[0-5].*) ;;
25237 # The compiler driver will combine linker options so we
25238 # cannot just pass the convience library names through
25239 # without $wl, iff we do not link with $LD.
25240 # Luckily, gcc supports the same syntax we need for Sun Studio.
25241 # Supported since Solaris 2.6 (maybe 2.5.1?)
25244 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25246 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' ;;
25249 link_all_deplibs_GCJ=yes
25253 if test "x$host_vendor" = xsequent; then
25254 # Use $CC to link under sequent, because it throws in some extra .o
25255 # files that make .init and .fini sections work.
25256 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25258 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25261 hardcode_direct_GCJ=yes
25262 hardcode_minus_L_GCJ=yes
25263 hardcode_shlibpath_var_GCJ=no
25267 case $host_vendor in
25269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25270 hardcode_direct_GCJ=yes # is this really true???
25273 ## LD is ld it makes a PLAMLIB
25274 ## CC just makes a GrossModule.
25275 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25276 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25277 hardcode_direct_GCJ=no
25280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25281 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25284 runpath_var='LD_RUN_PATH'
25285 hardcode_shlibpath_var_GCJ=no
25289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25290 hardcode_shlibpath_var_GCJ=no
25291 export_dynamic_flag_spec_GCJ='-Bexport'
25295 if test -d /usr/nec; then
25296 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25297 hardcode_shlibpath_var_GCJ=no
25298 runpath_var=LD_RUN_PATH
25299 hardcode_runpath_var=yes
25304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25305 no_undefined_flag_GCJ='${wl}-z,text'
25306 archive_cmds_need_lc_GCJ=no
25307 hardcode_shlibpath_var_GCJ=no
25308 runpath_var='LD_RUN_PATH'
25310 if test "$GCC" = yes; then
25311 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25312 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25314 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25315 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25319 sysv5* | sco3.2v5* | sco5v6*)
25320 # Note: We can NOT use -z defs as we might desire, because we do not
25321 # link with -lc, and that would cause any symbols used from libc to
25322 # always be unresolved, which means just about no library would
25323 # ever link correctly. If we're not using GNU ld we use -z text
25324 # though, which does catch some bad symbols but isn't as heavy-handed
25326 no_undefined_flag_GCJ='${wl}-z,text'
25327 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25328 archive_cmds_need_lc_GCJ=no
25329 hardcode_shlibpath_var_GCJ=no
25330 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25331 hardcode_libdir_separator_GCJ=':'
25332 link_all_deplibs_GCJ=yes
25333 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25334 runpath_var='LD_RUN_PATH'
25336 if test "$GCC" = yes; then
25337 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25338 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25340 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25341 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25348 hardcode_shlibpath_var_GCJ=no
25357 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25358 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25359 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25362 # Do we need to explicitly link libc?
25364 case "x$archive_cmds_need_lc_GCJ" in
25366 # Assume -lc should be added
25367 archive_cmds_need_lc_GCJ=yes
25369 if test "$enable_shared" = yes && test "$GCC" = yes; then
25370 case $archive_cmds_GCJ in
25372 # FIXME: we may have to deal with multi-command sequences.
25375 # Test whether the compiler implicitly links with -lc since on some
25376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25377 # to ld, don't add -lc before -lgcc.
25378 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25379 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25384 (eval $ac_compile) 2>&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } 2>conftest.err; then
25390 libobjs=conftest.$ac_objext
25392 wl=$lt_prog_compiler_wl_GCJ
25393 pic_flag=$lt_prog_compiler_pic_GCJ
25399 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25400 allow_undefined_flag_GCJ=
25401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25402 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }
25407 archive_cmds_need_lc_GCJ=no
25409 archive_cmds_need_lc_GCJ=yes
25411 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25413 cat conftest.err 1>&5
25416 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25417 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25424 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25426 library_names_spec=
25427 libname_spec='lib$name'
25431 postuninstall_cmds=
25435 shlibpath_overrides_runpath=unknown
25437 dynamic_linker="$host_os ld.so"
25438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25439 if test "$GCC" = yes; then
25440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25442 # if the path contains ";" then we assume it to be the separator
25443 # otherwise default to the standard path separator (i.e. ":") - it is
25444 # assumed that no part of a normal pathname contains ";" but that should
25445 # okay in the real world where ";" in dirpaths is itself problematic.
25446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25453 need_lib_prefix=unknown
25454 hardcode_into_libs=no
25456 # when you set need_version to no, make sure it does not cause -set_version
25457 # flags to be left without arguments
25458 need_version=unknown
25463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25464 shlibpath_var=LIBPATH
25466 # AIX 3 has no versioning support, so we append a major version to the name.
25467 soname_spec='${libname}${release}${shared_ext}$major'
25474 hardcode_into_libs=yes
25475 if test "$host_cpu" = ia64; then
25476 # AIX 5 supports IA64
25477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25478 shlibpath_var=LD_LIBRARY_PATH
25480 # With GCC up to 2.95.x, collect2 would create an import file
25481 # for dependence libraries. The import file would start with
25482 # the line `#! .'. This would cause the generated library to
25483 # depend on `.', always an invalid library. This was fixed in
25484 # development snapshots of GCC prior to 3.0.
25486 aix4 | aix4.[01] | aix4.[01].*)
25487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25492 can_build_shared=no
25496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25497 # soname into executable. Probably we can add versioning support to
25498 # collect2, so additional links can be useful in future.
25499 if test "$aix_use_runtimelinking" = yes; then
25500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25501 # instead of lib<name>.a to let people know that these are not
25502 # typical AIX shared libraries.
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25505 # We preserve .a as extension for shared libraries through AIX4.2
25506 # and later when we are not doing run time linking.
25507 library_names_spec='${libname}${release}.a $libname.a'
25508 soname_spec='${libname}${release}${shared_ext}$major'
25510 shlibpath_var=LIBPATH
25515 library_names_spec='$libname.ixlibrary $libname.a'
25516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25517 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'
25521 library_names_spec='${libname}${shared_ext}'
25522 dynamic_linker="$host_os ld.so"
25523 shlibpath_var=LIBRARY_PATH
25529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25530 soname_spec='${libname}${release}${shared_ext}$major'
25531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25532 shlibpath_var=LD_LIBRARY_PATH
25533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25535 # the default ld.so.conf also contains /usr/contrib/lib and
25536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25537 # libtool to hard-code these into programs
25540 cygwin* | mingw* | pw32*)
25541 version_type=windows
25546 case $GCC,$host_os in
25547 yes,cygwin* | yes,mingw* | yes,pw32*)
25548 library_names_spec='$libname.dll.a'
25549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25550 postinstall_cmds='base_file=`basename \${file}`~
25551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25552 dldir=$destdir/`dirname \$dlpath`~
25553 test -d \$dldir || mkdir -p \$dldir~
25554 $install_prog $dir/$dlname \$dldir/$dlname~
25555 chmod a+x \$dldir/$dlname'
25556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25557 dlpath=$dir/\$dldll~
25559 shlibpath_overrides_runpath=yes
25563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25568 # MinGW DLLs use traditional 'lib' prefix
25569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25572 # It is most probably a Windows format PATH printed by
25573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25574 # path with ; separators, and with drive letters. We can handle the
25575 # drive letters (cygwin fileutils understands them), so leave them,
25576 # especially as we might pass files found there to a mingw objdump,
25577 # which wouldn't understand a cygwinified path. Ahh.
25578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25584 # pw32 DLLs use 'pw' prefix rather than 'lib'
25585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25594 dynamic_linker='Win32 ld.exe'
25595 # FIXME: first we should search . and the directory the executable is in
25599 darwin* | rhapsody*)
25600 dynamic_linker="$host_os dyld"
25601 version_type=darwin
25604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25605 soname_spec='${libname}${release}${major}$shared_ext'
25606 shlibpath_overrides_runpath=yes
25607 shlibpath_var=DYLD_LIBRARY_PATH
25608 shrext_cmds='.dylib'
25609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25610 if test "$GCC" = yes; then
25611 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"`
25613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25623 soname_spec='${libname}${release}${shared_ext}$major'
25624 shlibpath_var=LD_LIBRARY_PATH
25635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 shlibpath_overrides_runpath=no
25639 hardcode_into_libs=yes
25640 dynamic_linker='GNU ld.so'
25643 freebsd* | dragonfly*)
25644 # DragonFly does not have aout. When/if they implement a new
25645 # versioning mechanism, adjust this.
25646 if test -x /usr/bin/objformat; then
25647 objformat=`/usr/bin/objformat`
25650 freebsd[123]*) objformat=aout ;;
25651 *) objformat=elf ;;
25654 version_type=freebsd-$objformat
25655 case $version_type in
25657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25666 shlibpath_var=LD_LIBRARY_PATH
25669 shlibpath_overrides_runpath=yes
25671 freebsd3.[01]* | freebsdelf3.[01]*)
25672 shlibpath_overrides_runpath=yes
25673 hardcode_into_libs=yes
25675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25677 shlibpath_overrides_runpath=no
25678 hardcode_into_libs=yes
25680 freebsd*) # from 4.6 on
25681 shlibpath_overrides_runpath=yes
25682 hardcode_into_libs=yes
25691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25692 soname_spec='${libname}${release}${shared_ext}$major'
25693 shlibpath_var=LD_LIBRARY_PATH
25694 hardcode_into_libs=yes
25697 hpux9* | hpux10* | hpux11*)
25698 # Give a soname corresponding to the major version so that dld.sl refuses to
25699 # link against other versions.
25706 hardcode_into_libs=yes
25707 dynamic_linker="$host_os dld.so"
25708 shlibpath_var=LD_LIBRARY_PATH
25709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25711 soname_spec='${libname}${release}${shared_ext}$major'
25712 if test "X$HPUX_IA64_MODE" = X32; then
25713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25721 hardcode_into_libs=yes
25722 dynamic_linker="$host_os dld.sl"
25723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25726 soname_spec='${libname}${release}${shared_ext}$major'
25727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25732 dynamic_linker="$host_os dld.sl"
25733 shlibpath_var=SHLIB_PATH
25734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25736 soname_spec='${libname}${release}${shared_ext}$major'
25739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25740 postinstall_cmds='chmod 555 $lib'
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25748 soname_spec='${libname}${release}${shared_ext}$major'
25749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25750 shlibpath_var=LD_LIBRARY_PATH
25751 shlibpath_overrides_runpath=no
25752 hardcode_into_libs=yes
25755 irix5* | irix6* | nonstopux*)
25757 nonstopux*) version_type=nonstopux ;;
25759 if test "$lt_cv_prog_gnu_ld" = yes; then
25767 soname_spec='${libname}${release}${shared_ext}$major'
25768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25770 irix5* | nonstopux*)
25771 libsuff= shlibsuff=
25774 case $LD in # libtool.m4 will add one of these switches to LD
25775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25776 libsuff= shlibsuff= libmagic=32-bit;;
25777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25778 libsuff=32 shlibsuff=N32 libmagic=N32;;
25779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25781 *) libsuff= shlibsuff= libmagic=never-match;;
25785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25786 shlibpath_overrides_runpath=no
25787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25789 hardcode_into_libs=yes
25792 # No shared lib support for Linux oldld, aout, or coff.
25793 linux*oldld* | linux*aout* | linux*coff*)
25797 # This must be Linux ELF.
25802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25803 soname_spec='${libname}${release}${shared_ext}$major'
25804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 shlibpath_overrides_runpath=no
25807 # This implies no fast_install, which is unacceptable.
25808 # Some rework will be needed to allow for fast_install
25809 # before this can be enabled.
25810 hardcode_into_libs=yes
25812 # Append ld.so.conf contents to the search path
25813 if test -f /etc/ld.so.conf; then
25814 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' ' '`
25815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25818 # We used to test for /lib/ld.so.1 and disable shared libraries on
25819 # powerpc, because MkLinux only supported shared libraries with the
25820 # GNU dynamic linker. Since this was broken with cross compilers,
25821 # most powerpc-linux boxes support dynamic linking these days and
25822 # people can always --disable-shared, the test was removed, and we
25823 # assume the GNU/Linux dynamic linker is in use.
25824 dynamic_linker='GNU/Linux ld.so'
25831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25832 soname_spec='${libname}${release}${shared_ext}$major'
25833 shlibpath_var=LD_LIBRARY_PATH
25834 shlibpath_overrides_runpath=no
25835 hardcode_into_libs=yes
25836 dynamic_linker='GNU ld.so'
25843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25846 dynamic_linker='NetBSD (a.out) ld.so'
25848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25849 soname_spec='${libname}${release}${shared_ext}$major'
25850 dynamic_linker='NetBSD ld.elf_so'
25852 shlibpath_var=LD_LIBRARY_PATH
25853 shlibpath_overrides_runpath=yes
25854 hardcode_into_libs=yes
25859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860 shlibpath_var=LD_LIBRARY_PATH
25861 shlibpath_overrides_runpath=yes
25868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25869 soname_spec='${libname}${release}${shared_ext}$major'
25870 shlibpath_var=LD_LIBRARY_PATH
25871 shlibpath_overrides_runpath=yes
25876 sys_lib_dlsearch_path_spec="/usr/lib"
25878 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25880 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25881 *) need_version=no ;;
25883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25885 shlibpath_var=LD_LIBRARY_PATH
25886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25888 openbsd2.[89] | openbsd2.[89].*)
25889 shlibpath_overrides_runpath=no
25892 shlibpath_overrides_runpath=yes
25896 shlibpath_overrides_runpath=yes
25901 libname_spec='$name'
25904 library_names_spec='$libname${shared_ext} $libname.a'
25905 dynamic_linker='OS/2 ld.exe'
25906 shlibpath_var=LIBPATH
25909 osf3* | osf4* | osf5*)
25913 soname_spec='${libname}${release}${shared_ext}$major'
25914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25915 shlibpath_var=LD_LIBRARY_PATH
25916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 shlibpath_var=LD_LIBRARY_PATH
25927 shlibpath_overrides_runpath=yes
25928 hardcode_into_libs=yes
25929 # ldd complains unless libraries are executable
25930 postinstall_cmds='chmod +x $lib'
25935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25937 shlibpath_var=LD_LIBRARY_PATH
25938 shlibpath_overrides_runpath=yes
25939 if test "$with_gnu_ld" = yes; then
25947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25948 soname_spec='${libname}${release}${shared_ext}$major'
25949 shlibpath_var=LD_LIBRARY_PATH
25950 case $host_vendor in
25952 shlibpath_overrides_runpath=no
25954 export_dynamic_flag_spec='${wl}-Blargedynsym'
25955 runpath_var=LD_RUN_PATH
25963 shlibpath_overrides_runpath=no
25964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25970 if test -d /usr/nec ;then
25972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25973 soname_spec='$libname${shared_ext}.$major'
25974 shlibpath_var=LD_LIBRARY_PATH
25978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25979 version_type=freebsd-elf
25982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25983 soname_spec='${libname}${release}${shared_ext}$major'
25984 shlibpath_var=LD_LIBRARY_PATH
25985 hardcode_into_libs=yes
25986 if test "$with_gnu_ld" = yes; then
25987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25988 shlibpath_overrides_runpath=no
25990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25991 shlibpath_overrides_runpath=yes
25994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25998 sys_lib_dlsearch_path_spec='/usr/lib'
26003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26004 soname_spec='${libname}${release}${shared_ext}$major'
26005 shlibpath_var=LD_LIBRARY_PATH
26012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26013 echo "${ECHO_T}$dynamic_linker" >&6; }
26014 test "$dynamic_linker" = no && can_build_shared=no
26016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26017 if test "$GCC" = yes; then
26018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26021 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26022 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26023 hardcode_action_GCJ=
26024 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26025 test -n "$runpath_var_GCJ" || \
26026 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26028 # We can hardcode non-existant directories.
26029 if test "$hardcode_direct_GCJ" != no &&
26030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26031 # have to relink, otherwise we might link with an installed library
26032 # when we should be linking with a yet-to-be-installed one
26033 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26034 test "$hardcode_minus_L_GCJ" != no; then
26035 # Linking always hardcodes the temporary library directory.
26036 hardcode_action_GCJ=relink
26038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26039 hardcode_action_GCJ=immediate
26042 # We cannot hardcode anything, or else we can only hardcode existing
26044 hardcode_action_GCJ=unsupported
26046 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26047 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26049 if test "$hardcode_action_GCJ" = relink; then
26050 # Fast installation is not supported
26051 enable_fast_install=no
26052 elif test "$shlibpath_overrides_runpath" = yes ||
26053 test "$enable_shared" = no; then
26054 # Fast installation is not necessary
26055 enable_fast_install=needless
26059 # The else clause should only fire when bootstrapping the
26060 # libtool distribution, otherwise you forgot to ship ltmain.sh
26061 # with your package, and you will get complaints that there are
26062 # no rules to generate ltmain.sh.
26063 if test -f "$ltmain"; then
26064 # See if we are running on zsh, and set the options which allow our commands through
26065 # without removal of \ escapes.
26066 if test -n "${ZSH_VERSION+set}" ; then
26067 setopt NO_GLOB_SUBST
26069 # Now quote all the things that may contain metacharacters while being
26070 # careful not to overquote the AC_SUBSTed values. We take copies of the
26071 # variables and quote the copies for generation of the libtool script.
26072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26076 deplibs_check_method reload_flag reload_cmds need_locks \
26077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26078 lt_cv_sys_global_symbol_to_c_name_address \
26079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26080 old_postinstall_cmds old_postuninstall_cmds \
26084 lt_prog_compiler_wl_GCJ \
26085 lt_prog_compiler_pic_GCJ \
26086 lt_prog_compiler_static_GCJ \
26087 lt_prog_compiler_no_builtin_flag_GCJ \
26088 export_dynamic_flag_spec_GCJ \
26089 thread_safe_flag_spec_GCJ \
26090 whole_archive_flag_spec_GCJ \
26091 enable_shared_with_static_runtimes_GCJ \
26092 old_archive_cmds_GCJ \
26093 old_archive_from_new_cmds_GCJ \
26094 predep_objects_GCJ \
26095 postdep_objects_GCJ \
26098 compiler_lib_search_path_GCJ \
26100 archive_expsym_cmds_GCJ \
26101 postinstall_cmds_GCJ \
26102 postuninstall_cmds_GCJ \
26103 old_archive_from_expsyms_cmds_GCJ \
26104 allow_undefined_flag_GCJ \
26105 no_undefined_flag_GCJ \
26106 export_symbols_cmds_GCJ \
26107 hardcode_libdir_flag_spec_GCJ \
26108 hardcode_libdir_flag_spec_ld_GCJ \
26109 hardcode_libdir_separator_GCJ \
26110 hardcode_automatic_GCJ \
26112 module_expsym_cmds_GCJ \
26113 lt_cv_prog_compiler_c_o_GCJ \
26114 exclude_expsyms_GCJ \
26115 include_expsyms_GCJ; do
26118 old_archive_cmds_GCJ | \
26119 old_archive_from_new_cmds_GCJ | \
26120 archive_cmds_GCJ | \
26121 archive_expsym_cmds_GCJ | \
26122 module_cmds_GCJ | \
26123 module_expsym_cmds_GCJ | \
26124 old_archive_from_expsyms_cmds_GCJ | \
26125 export_symbols_cmds_GCJ | \
26126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26127 postinstall_cmds | postuninstall_cmds | \
26128 old_postinstall_cmds | old_postuninstall_cmds | \
26129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26130 # Double-quote double-evaled strings.
26131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26140 *'\$0 --fallback-echo"')
26141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26147 cat <<__EOF__ >> "$cfgfile"
26148 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26152 # Shell to use when invoking shell scripts.
26155 # Whether or not to build shared libraries.
26156 build_libtool_libs=$enable_shared
26158 # Whether or not to build static libraries.
26159 build_old_libs=$enable_static
26161 # Whether or not to add -lc for building shared libraries.
26162 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26164 # Whether or not to disallow shared libs when runtime libs are static
26165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26167 # Whether or not to optimize for fast installation.
26168 fast_install=$enable_fast_install
26171 host_alias=$host_alias
26175 # The build system.
26176 build_alias=$build_alias
26180 # An echo program that does not interpret backslashes.
26185 AR_FLAGS=$lt_AR_FLAGS
26190 # LTCC compiler flags.
26191 LTCFLAGS=$lt_LTCFLAGS
26193 # A language-specific compiler.
26194 CC=$lt_compiler_GCJ
26196 # Is the compiler the GNU C compiler?
26202 # The linker used to build libraries.
26205 # Whether we need hard or soft links.
26208 # A BSD-compatible nm program.
26211 # A symbol stripping program
26214 # Used to examine libraries when file_magic_cmd begins "file"
26215 MAGIC_CMD=$MAGIC_CMD
26217 # Used on cygwin: DLL creation program.
26220 # Used on cygwin: object dumper.
26223 # Used on cygwin: assembler.
26226 # The name of the directory that contains temporary libtool files.
26229 # How to create reloadable object files.
26230 reload_flag=$lt_reload_flag
26231 reload_cmds=$lt_reload_cmds
26233 # How to pass a linker flag through the compiler.
26234 wl=$lt_lt_prog_compiler_wl_GCJ
26236 # Object file suffix (normally "o").
26237 objext="$ac_objext"
26239 # Old archive suffix (normally "a").
26242 # Shared library suffix (normally ".so").
26243 shrext_cmds='$shrext_cmds'
26245 # Executable file suffix (normally "").
26248 # Additional compiler flags for building library objects.
26249 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26252 # What is the maximum length of a command?
26253 max_cmd_len=$lt_cv_sys_max_cmd_len
26255 # Does compiler simultaneously support -c and -o options?
26256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26258 # Must we lock files when doing compilation?
26259 need_locks=$lt_need_locks
26261 # Do we need the lib prefix for modules?
26262 need_lib_prefix=$need_lib_prefix
26264 # Do we need a version for libraries?
26265 need_version=$need_version
26267 # Whether dlopen is supported.
26268 dlopen_support=$enable_dlopen
26270 # Whether dlopen of programs is supported.
26271 dlopen_self=$enable_dlopen_self
26273 # Whether dlopen of statically linked programs is supported.
26274 dlopen_self_static=$enable_dlopen_self_static
26276 # Compiler flag to prevent dynamic linking.
26277 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26279 # Compiler flag to turn off builtin functions.
26280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26282 # Compiler flag to allow reflexive dlopens.
26283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26285 # Compiler flag to generate shared objects directly from archives.
26286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26288 # Compiler flag to generate thread-safe objects.
26289 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26291 # Library versioning type.
26292 version_type=$version_type
26294 # Format of library name prefix.
26295 libname_spec=$lt_libname_spec
26297 # List of archive names. First name is the real one, the rest are links.
26298 # The last name is the one that the linker finds with -lNAME.
26299 library_names_spec=$lt_library_names_spec
26301 # The coded name of the library, if different from the real name.
26302 soname_spec=$lt_soname_spec
26304 # Commands used to build and install an old-style archive.
26306 old_archive_cmds=$lt_old_archive_cmds_GCJ
26307 old_postinstall_cmds=$lt_old_postinstall_cmds
26308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26310 # Create an old-style archive from a shared archive.
26311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26313 # Create a temporary old-style archive to link instead of a shared archive.
26314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26316 # Commands used to build and install a shared archive.
26317 archive_cmds=$lt_archive_cmds_GCJ
26318 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26319 postinstall_cmds=$lt_postinstall_cmds
26320 postuninstall_cmds=$lt_postuninstall_cmds
26322 # Commands used to build a loadable module (assumed same as above if empty)
26323 module_cmds=$lt_module_cmds_GCJ
26324 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26326 # Commands to strip libraries.
26327 old_striplib=$lt_old_striplib
26328 striplib=$lt_striplib
26330 # Dependencies to place before the objects being linked to create a
26332 predep_objects=$lt_predep_objects_GCJ
26334 # Dependencies to place after the objects being linked to create a
26336 postdep_objects=$lt_postdep_objects_GCJ
26338 # Dependencies to place before the objects being linked to create a
26340 predeps=$lt_predeps_GCJ
26342 # Dependencies to place after the objects being linked to create a
26344 postdeps=$lt_postdeps_GCJ
26346 # The library search path used internally by the compiler when linking
26347 # a shared library.
26348 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26350 # Method to check whether dependent libraries are shared objects.
26351 deplibs_check_method=$lt_deplibs_check_method
26353 # Command to use when deplibs_check_method == file_magic.
26354 file_magic_cmd=$lt_file_magic_cmd
26356 # Flag that allows shared libraries with undefined symbols to be built.
26357 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26359 # Flag that forces no undefined symbols.
26360 no_undefined_flag=$lt_no_undefined_flag_GCJ
26362 # Commands used to finish a libtool library installation in a directory.
26363 finish_cmds=$lt_finish_cmds
26365 # Same as above, but a single script fragment to be evaled but not shown.
26366 finish_eval=$lt_finish_eval
26368 # Take the output of nm and produce a listing of raw symbols and C names.
26369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26371 # Transform the output of nm in a proper C declaration
26372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26374 # Transform the output of nm in a C name address pair
26375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26377 # This is the shared library runtime path variable.
26378 runpath_var=$runpath_var
26380 # This is the shared library path variable.
26381 shlibpath_var=$shlibpath_var
26383 # Is shlibpath searched before the hard-coded library search path?
26384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26386 # How to hardcode a shared library path into an executable.
26387 hardcode_action=$hardcode_action_GCJ
26389 # Whether we should hardcode library paths into libraries.
26390 hardcode_into_libs=$hardcode_into_libs
26392 # Flag to hardcode \$libdir into a binary during linking.
26393 # This must work even if \$libdir does not exist.
26394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26396 # If ld is used when linking, flag to hardcode \$libdir into
26397 # a binary during linking. This must work even if \$libdir does
26399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26401 # Whether we need a single -rpath flag with a separated argument.
26402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26405 # resulting binary.
26406 hardcode_direct=$hardcode_direct_GCJ
26408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26409 # resulting binary.
26410 hardcode_minus_L=$hardcode_minus_L_GCJ
26412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26413 # the resulting binary.
26414 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26416 # Set to yes if building a shared library automatically hardcodes DIR into the library
26417 # and all subsequent libraries and executables linked against it.
26418 hardcode_automatic=$hardcode_automatic_GCJ
26420 # Variables whose values should be saved in libtool wrapper scripts and
26421 # restored at relink time.
26422 variables_saved_for_relink="$variables_saved_for_relink"
26424 # Whether libtool must link a program against all its dependency libraries.
26425 link_all_deplibs=$link_all_deplibs_GCJ
26427 # Compile-time system search path for libraries
26428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26430 # Run-time system search path for libraries
26431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26433 # Fix the shell variable \$srcfile for the compiler.
26434 fix_srcfile_path="$fix_srcfile_path_GCJ"
26436 # Set to yes if exported symbols are required.
26437 always_export_symbols=$always_export_symbols_GCJ
26439 # The commands to list exported symbols.
26440 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26442 # The commands to extract the exported symbol list from a shared archive.
26443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26445 # Symbols that should not be listed in the preloaded symbols.
26446 exclude_expsyms=$lt_exclude_expsyms_GCJ
26448 # Symbols that must always be exported.
26449 include_expsyms=$lt_include_expsyms_GCJ
26451 # ### END LIBTOOL TAG CONFIG: $tagname
26457 # If there is no Makefile yet, we rely on a make rule to execute
26458 # `config.status --recheck' to rerun these tests and create the
26459 # libtool script then.
26460 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26461 if test -f "$ltmain_in"; then
26462 test -f Makefile && make "$ltmain"
26468 ac_cpp='$CPP $CPPFLAGS'
26469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26482 ac_cpp='$CPP $CPPFLAGS'
26483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26488 # Source file extension for RC test sources.
26491 # Object file extension for compiled RC test sources.
26495 # Code to be used in simple compile tests
26496 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26498 # Code to be used in simple link tests
26499 lt_simple_link_test_code="$lt_simple_compile_test_code"
26501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26503 # If no C compiler was specified, use CC.
26506 # If no C compiler flags were specified, use CFLAGS.
26507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26509 # Allow CC to be a program name with arguments.
26513 # save warnings/boilerplate of simple test code
26514 ac_outfile=conftest.$ac_objext
26515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26517 _lt_compiler_boilerplate=`cat conftest.err`
26520 ac_outfile=conftest.$ac_objext
26521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26523 _lt_linker_boilerplate=`cat conftest.err`
26527 # Allow CC to be a program name with arguments.
26532 for cc_temp in $compiler""; do
26534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26540 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26542 lt_cv_prog_compiler_c_o_RC=yes
26544 # The else clause should only fire when bootstrapping the
26545 # libtool distribution, otherwise you forgot to ship ltmain.sh
26546 # with your package, and you will get complaints that there are
26547 # no rules to generate ltmain.sh.
26548 if test -f "$ltmain"; then
26549 # See if we are running on zsh, and set the options which allow our commands through
26550 # without removal of \ escapes.
26551 if test -n "${ZSH_VERSION+set}" ; then
26552 setopt NO_GLOB_SUBST
26554 # Now quote all the things that may contain metacharacters while being
26555 # careful not to overquote the AC_SUBSTed values. We take copies of the
26556 # variables and quote the copies for generation of the libtool script.
26557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26561 deplibs_check_method reload_flag reload_cmds need_locks \
26562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26563 lt_cv_sys_global_symbol_to_c_name_address \
26564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26565 old_postinstall_cmds old_postuninstall_cmds \
26569 lt_prog_compiler_wl_RC \
26570 lt_prog_compiler_pic_RC \
26571 lt_prog_compiler_static_RC \
26572 lt_prog_compiler_no_builtin_flag_RC \
26573 export_dynamic_flag_spec_RC \
26574 thread_safe_flag_spec_RC \
26575 whole_archive_flag_spec_RC \
26576 enable_shared_with_static_runtimes_RC \
26577 old_archive_cmds_RC \
26578 old_archive_from_new_cmds_RC \
26579 predep_objects_RC \
26580 postdep_objects_RC \
26583 compiler_lib_search_path_RC \
26585 archive_expsym_cmds_RC \
26586 postinstall_cmds_RC \
26587 postuninstall_cmds_RC \
26588 old_archive_from_expsyms_cmds_RC \
26589 allow_undefined_flag_RC \
26590 no_undefined_flag_RC \
26591 export_symbols_cmds_RC \
26592 hardcode_libdir_flag_spec_RC \
26593 hardcode_libdir_flag_spec_ld_RC \
26594 hardcode_libdir_separator_RC \
26595 hardcode_automatic_RC \
26597 module_expsym_cmds_RC \
26598 lt_cv_prog_compiler_c_o_RC \
26599 exclude_expsyms_RC \
26600 include_expsyms_RC; do
26603 old_archive_cmds_RC | \
26604 old_archive_from_new_cmds_RC | \
26605 archive_cmds_RC | \
26606 archive_expsym_cmds_RC | \
26608 module_expsym_cmds_RC | \
26609 old_archive_from_expsyms_cmds_RC | \
26610 export_symbols_cmds_RC | \
26611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26612 postinstall_cmds | postuninstall_cmds | \
26613 old_postinstall_cmds | old_postuninstall_cmds | \
26614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26615 # Double-quote double-evaled strings.
26616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26625 *'\$0 --fallback-echo"')
26626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26632 cat <<__EOF__ >> "$cfgfile"
26633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26637 # Shell to use when invoking shell scripts.
26640 # Whether or not to build shared libraries.
26641 build_libtool_libs=$enable_shared
26643 # Whether or not to build static libraries.
26644 build_old_libs=$enable_static
26646 # Whether or not to add -lc for building shared libraries.
26647 build_libtool_need_lc=$archive_cmds_need_lc_RC
26649 # Whether or not to disallow shared libs when runtime libs are static
26650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26652 # Whether or not to optimize for fast installation.
26653 fast_install=$enable_fast_install
26656 host_alias=$host_alias
26660 # The build system.
26661 build_alias=$build_alias
26665 # An echo program that does not interpret backslashes.
26670 AR_FLAGS=$lt_AR_FLAGS
26675 # LTCC compiler flags.
26676 LTCFLAGS=$lt_LTCFLAGS
26678 # A language-specific compiler.
26681 # Is the compiler the GNU C compiler?
26687 # The linker used to build libraries.
26690 # Whether we need hard or soft links.
26693 # A BSD-compatible nm program.
26696 # A symbol stripping program
26699 # Used to examine libraries when file_magic_cmd begins "file"
26700 MAGIC_CMD=$MAGIC_CMD
26702 # Used on cygwin: DLL creation program.
26705 # Used on cygwin: object dumper.
26708 # Used on cygwin: assembler.
26711 # The name of the directory that contains temporary libtool files.
26714 # How to create reloadable object files.
26715 reload_flag=$lt_reload_flag
26716 reload_cmds=$lt_reload_cmds
26718 # How to pass a linker flag through the compiler.
26719 wl=$lt_lt_prog_compiler_wl_RC
26721 # Object file suffix (normally "o").
26722 objext="$ac_objext"
26724 # Old archive suffix (normally "a").
26727 # Shared library suffix (normally ".so").
26728 shrext_cmds='$shrext_cmds'
26730 # Executable file suffix (normally "").
26733 # Additional compiler flags for building library objects.
26734 pic_flag=$lt_lt_prog_compiler_pic_RC
26737 # What is the maximum length of a command?
26738 max_cmd_len=$lt_cv_sys_max_cmd_len
26740 # Does compiler simultaneously support -c and -o options?
26741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26743 # Must we lock files when doing compilation?
26744 need_locks=$lt_need_locks
26746 # Do we need the lib prefix for modules?
26747 need_lib_prefix=$need_lib_prefix
26749 # Do we need a version for libraries?
26750 need_version=$need_version
26752 # Whether dlopen is supported.
26753 dlopen_support=$enable_dlopen
26755 # Whether dlopen of programs is supported.
26756 dlopen_self=$enable_dlopen_self
26758 # Whether dlopen of statically linked programs is supported.
26759 dlopen_self_static=$enable_dlopen_self_static
26761 # Compiler flag to prevent dynamic linking.
26762 link_static_flag=$lt_lt_prog_compiler_static_RC
26764 # Compiler flag to turn off builtin functions.
26765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26767 # Compiler flag to allow reflexive dlopens.
26768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26770 # Compiler flag to generate shared objects directly from archives.
26771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26773 # Compiler flag to generate thread-safe objects.
26774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26776 # Library versioning type.
26777 version_type=$version_type
26779 # Format of library name prefix.
26780 libname_spec=$lt_libname_spec
26782 # List of archive names. First name is the real one, the rest are links.
26783 # The last name is the one that the linker finds with -lNAME.
26784 library_names_spec=$lt_library_names_spec
26786 # The coded name of the library, if different from the real name.
26787 soname_spec=$lt_soname_spec
26789 # Commands used to build and install an old-style archive.
26791 old_archive_cmds=$lt_old_archive_cmds_RC
26792 old_postinstall_cmds=$lt_old_postinstall_cmds
26793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26795 # Create an old-style archive from a shared archive.
26796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26798 # Create a temporary old-style archive to link instead of a shared archive.
26799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26801 # Commands used to build and install a shared archive.
26802 archive_cmds=$lt_archive_cmds_RC
26803 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26804 postinstall_cmds=$lt_postinstall_cmds
26805 postuninstall_cmds=$lt_postuninstall_cmds
26807 # Commands used to build a loadable module (assumed same as above if empty)
26808 module_cmds=$lt_module_cmds_RC
26809 module_expsym_cmds=$lt_module_expsym_cmds_RC
26811 # Commands to strip libraries.
26812 old_striplib=$lt_old_striplib
26813 striplib=$lt_striplib
26815 # Dependencies to place before the objects being linked to create a
26817 predep_objects=$lt_predep_objects_RC
26819 # Dependencies to place after the objects being linked to create a
26821 postdep_objects=$lt_postdep_objects_RC
26823 # Dependencies to place before the objects being linked to create a
26825 predeps=$lt_predeps_RC
26827 # Dependencies to place after the objects being linked to create a
26829 postdeps=$lt_postdeps_RC
26831 # The library search path used internally by the compiler when linking
26832 # a shared library.
26833 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26835 # Method to check whether dependent libraries are shared objects.
26836 deplibs_check_method=$lt_deplibs_check_method
26838 # Command to use when deplibs_check_method == file_magic.
26839 file_magic_cmd=$lt_file_magic_cmd
26841 # Flag that allows shared libraries with undefined symbols to be built.
26842 allow_undefined_flag=$lt_allow_undefined_flag_RC
26844 # Flag that forces no undefined symbols.
26845 no_undefined_flag=$lt_no_undefined_flag_RC
26847 # Commands used to finish a libtool library installation in a directory.
26848 finish_cmds=$lt_finish_cmds
26850 # Same as above, but a single script fragment to be evaled but not shown.
26851 finish_eval=$lt_finish_eval
26853 # Take the output of nm and produce a listing of raw symbols and C names.
26854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26856 # Transform the output of nm in a proper C declaration
26857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26859 # Transform the output of nm in a C name address pair
26860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26862 # This is the shared library runtime path variable.
26863 runpath_var=$runpath_var
26865 # This is the shared library path variable.
26866 shlibpath_var=$shlibpath_var
26868 # Is shlibpath searched before the hard-coded library search path?
26869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26871 # How to hardcode a shared library path into an executable.
26872 hardcode_action=$hardcode_action_RC
26874 # Whether we should hardcode library paths into libraries.
26875 hardcode_into_libs=$hardcode_into_libs
26877 # Flag to hardcode \$libdir into a binary during linking.
26878 # This must work even if \$libdir does not exist.
26879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26881 # If ld is used when linking, flag to hardcode \$libdir into
26882 # a binary during linking. This must work even if \$libdir does
26884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26886 # Whether we need a single -rpath flag with a separated argument.
26887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26890 # resulting binary.
26891 hardcode_direct=$hardcode_direct_RC
26893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26894 # resulting binary.
26895 hardcode_minus_L=$hardcode_minus_L_RC
26897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26898 # the resulting binary.
26899 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26901 # Set to yes if building a shared library automatically hardcodes DIR into the library
26902 # and all subsequent libraries and executables linked against it.
26903 hardcode_automatic=$hardcode_automatic_RC
26905 # Variables whose values should be saved in libtool wrapper scripts and
26906 # restored at relink time.
26907 variables_saved_for_relink="$variables_saved_for_relink"
26909 # Whether libtool must link a program against all its dependency libraries.
26910 link_all_deplibs=$link_all_deplibs_RC
26912 # Compile-time system search path for libraries
26913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26915 # Run-time system search path for libraries
26916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26918 # Fix the shell variable \$srcfile for the compiler.
26919 fix_srcfile_path="$fix_srcfile_path_RC"
26921 # Set to yes if exported symbols are required.
26922 always_export_symbols=$always_export_symbols_RC
26924 # The commands to list exported symbols.
26925 export_symbols_cmds=$lt_export_symbols_cmds_RC
26927 # The commands to extract the exported symbol list from a shared archive.
26928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26930 # Symbols that should not be listed in the preloaded symbols.
26931 exclude_expsyms=$lt_exclude_expsyms_RC
26933 # Symbols that must always be exported.
26934 include_expsyms=$lt_include_expsyms_RC
26936 # ### END LIBTOOL TAG CONFIG: $tagname
26942 # If there is no Makefile yet, we rely on a make rule to execute
26943 # `config.status --recheck' to rerun these tests and create the
26944 # libtool script then.
26945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26946 if test -f "$ltmain_in"; then
26947 test -f Makefile && make "$ltmain"
26953 ac_cpp='$CPP $CPPFLAGS'
26954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26963 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26964 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26965 { (exit 1); exit 1; }; }
26969 # Append the new tag name to the list of available tags.
26970 if test -n "$tagname" ; then
26971 available_tags="$available_tags $tagname"
26977 # Now substitute the updated list of available tags.
26978 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26979 mv "${ofile}T" "$ofile"
26983 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26984 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26985 { (exit 1); exit 1; }; }
26991 # This can be used to rebuild libtool when needed
26992 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26994 # Always use our own libtool.
26995 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26997 # Prevent multiple expansion
27019 if test "$lt_cv_dlopen_self" = "yes" ; then
27021 cat >>confdefs.h <<\_ACEOF
27022 #define CAN_DLOPEN_SELF 1
27027 if test "$WITH_LLVMGCCDIR" = "default" ; then
27028 LLVMGCC="llvm-gcc${EXEEXT}"
27029 LLVMGXX="llvm-g++${EXEEXT}"
27030 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27031 set dummy $LLVMGCC; ac_word=$2
27032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27034 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27039 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27043 for as_dir in $PATH
27046 test -z "$as_dir" && as_dir=.
27047 for ac_exec_ext in '' $ac_executable_extensions; do
27048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27049 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27060 LLVMGCC=$ac_cv_path_LLVMGCC
27061 if test -n "$LLVMGCC"; then
27062 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27063 echo "${ECHO_T}$LLVMGCC" >&6; }
27065 { echo "$as_me:$LINENO: result: no" >&5
27066 echo "${ECHO_T}no" >&6; }
27070 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27071 set dummy $LLVMGXX; ac_word=$2
27072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27074 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27079 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27083 for as_dir in $PATH
27086 test -z "$as_dir" && as_dir=.
27087 for ac_exec_ext in '' $ac_executable_extensions; do
27088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27089 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27100 LLVMGXX=$ac_cv_path_LLVMGXX
27101 if test -n "$LLVMGXX"; then
27102 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27103 echo "${ECHO_T}$LLVMGXX" >&6; }
27105 { echo "$as_me:$LINENO: result: no" >&5
27106 echo "${ECHO_T}no" >&6; }
27111 if test -z "$LLVMGCC"; then
27112 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27114 if test -z "$LLVMGXX"; then
27115 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27123 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27124 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27137 if test "$GCC" != "yes" && test "$ICC" != "yes"
27139 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27140 echo "$as_me: error: gcc|icc required but not found" >&2;}
27141 { (exit 1); exit 1; }; }
27144 if test "$GXX" != "yes" && test "$IXX" != "yes"
27146 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27147 echo "$as_me: error: g++|icc required but not found" >&2;}
27148 { (exit 1); exit 1; }; }
27151 if test "$GCC" = "yes"
27153 cat >conftest.$ac_ext <<_ACEOF
27154 #if !defined(__GNUC__) || __GNUC__ < 3
27155 #error Unsupported GCC version
27159 rm -f conftest.$ac_objext
27160 if { (ac_try="$ac_compile"
27161 case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_compile") 2>conftest.er1
27168 grep -v '^ *+' conftest.er1 >conftest.err
27170 cat conftest.err >&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } &&
27173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27174 { (case "(($ac_try" in
27175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_try") 2>&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; } &&
27183 { ac_try='test -s conftest.$ac_objext'
27184 { (case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_try") 2>&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27199 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27200 { (exit 1); exit 1; }; }
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27206 if test -z "$llvm_cv_gnu_make_command"
27208 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27209 echo "$as_me: error: GNU Make required but not found" >&2;}
27210 { (exit 1); exit 1; }; }
27213 { echo "$as_me:$LINENO: result: ok" >&5
27214 echo "${ECHO_T}ok" >&6; }
27218 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27219 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27220 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27223 ac_check_lib_save_LIBS=$LIBS
27225 cat >conftest.$ac_ext <<_ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h. */
27232 /* Override any GCC internal prototype to avoid an error.
27233 Use char because int might match the return type of a GCC
27234 builtin and then its argument prototype would still apply. */
27242 return elf_begin ();
27247 rm -f conftest.$ac_objext conftest$ac_exeext
27248 if { (ac_try="$ac_link"
27249 case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_link") 2>conftest.er1
27256 grep -v '^ *+' conftest.er1 >conftest.err
27258 cat conftest.err >&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } &&
27261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27262 { (case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_try") 2>&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); }; } &&
27271 { ac_try='test -s conftest$ac_exeext'
27272 { (case "(($ac_try" in
27273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274 *) ac_try_echo=$ac_try;;
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277 (eval "$ac_try") 2>&5
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); }; }; then
27281 ac_cv_lib_elf_elf_begin=yes
27283 echo "$as_me: failed program was:" >&5
27284 sed 's/^/| /' conftest.$ac_ext >&5
27286 ac_cv_lib_elf_elf_begin=no
27289 rm -f core conftest.err conftest.$ac_objext \
27290 conftest$ac_exeext conftest.$ac_ext
27291 LIBS=$ac_check_lib_save_LIBS
27293 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27294 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27295 if test $ac_cv_lib_elf_elf_begin = yes; then
27296 cat >>confdefs.h <<_ACEOF
27297 #define HAVE_LIBELF 1
27305 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27306 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27307 if test "${ac_cv_lib_m_sin+set}" = set; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 ac_check_lib_save_LIBS=$LIBS
27312 cat >conftest.$ac_ext <<_ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h. */
27319 /* Override any GCC internal prototype to avoid an error.
27320 Use char because int might match the return type of a GCC
27321 builtin and then its argument prototype would still apply. */
27334 rm -f conftest.$ac_objext conftest$ac_exeext
27335 if { (ac_try="$ac_link"
27336 case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_link") 2>conftest.er1
27343 grep -v '^ *+' conftest.er1 >conftest.err
27345 cat conftest.err >&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } &&
27348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27349 { (case "(($ac_try" in
27350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351 *) ac_try_echo=$ac_try;;
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_try") 2>&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest$ac_exeext'
27359 { (case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_try") 2>&5
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; }; then
27368 ac_cv_lib_m_sin=yes
27370 echo "$as_me: failed program was:" >&5
27371 sed 's/^/| /' conftest.$ac_ext >&5
27376 rm -f core conftest.err conftest.$ac_objext \
27377 conftest$ac_exeext conftest.$ac_ext
27378 LIBS=$ac_check_lib_save_LIBS
27380 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27381 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27382 if test $ac_cv_lib_m_sin = yes; then
27383 cat >>confdefs.h <<_ACEOF
27384 #define HAVE_LIBM 1
27391 if test "$llvm_cv_os_type" = "MingW" ; then
27393 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27394 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27395 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27396 echo $ECHO_N "(cached) $ECHO_C" >&6
27398 ac_check_lib_save_LIBS=$LIBS
27399 LIBS="-limagehlp $LIBS"
27400 cat >conftest.$ac_ext <<_ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h. */
27416 rm -f conftest.$ac_objext conftest$ac_exeext
27417 if { (ac_try="$ac_link"
27418 case "(($ac_try" in
27419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420 *) ac_try_echo=$ac_try;;
27422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423 (eval "$ac_link") 2>conftest.er1
27425 grep -v '^ *+' conftest.er1 >conftest.err
27427 cat conftest.err >&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); } &&
27430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27431 { (case "(($ac_try" in
27432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433 *) ac_try_echo=$ac_try;;
27435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436 (eval "$ac_try") 2>&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; } &&
27440 { ac_try='test -s conftest$ac_exeext'
27441 { (case "(($ac_try" in
27442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27443 *) ac_try_echo=$ac_try;;
27445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27446 (eval "$ac_try") 2>&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; }; then
27450 ac_cv_lib_imagehlp_main=yes
27452 echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27455 ac_cv_lib_imagehlp_main=no
27458 rm -f core conftest.err conftest.$ac_objext \
27459 conftest$ac_exeext conftest.$ac_ext
27460 LIBS=$ac_check_lib_save_LIBS
27462 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27463 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27464 if test $ac_cv_lib_imagehlp_main = yes; then
27465 cat >>confdefs.h <<_ACEOF
27466 #define HAVE_LIBIMAGEHLP 1
27469 LIBS="-limagehlp $LIBS"
27474 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27475 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27476 if test "${ac_cv_lib_psapi_main+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 ac_check_lib_save_LIBS=$LIBS
27480 LIBS="-lpsapi $LIBS"
27481 cat >conftest.$ac_ext <<_ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (ac_try="$ac_link"
27499 case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_link") 2>conftest.er1
27506 grep -v '^ *+' conftest.er1 >conftest.err
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } &&
27511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27512 { (case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_try") 2>&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; } &&
27521 { ac_try='test -s conftest$ac_exeext'
27522 { (case "(($ac_try" in
27523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524 *) ac_try_echo=$ac_try;;
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527 (eval "$ac_try") 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
27531 ac_cv_lib_psapi_main=yes
27533 echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27536 ac_cv_lib_psapi_main=no
27539 rm -f core conftest.err conftest.$ac_objext \
27540 conftest$ac_exeext conftest.$ac_ext
27541 LIBS=$ac_check_lib_save_LIBS
27543 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27544 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27545 if test $ac_cv_lib_psapi_main = yes; then
27546 cat >>confdefs.h <<_ACEOF
27547 #define HAVE_LIBPSAPI 1
27550 LIBS="-lpsapi $LIBS"
27556 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27557 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27558 if test "${ac_cv_search_dlopen+set}" = set; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27561 ac_func_search_save_LIBS=$LIBS
27562 cat >conftest.$ac_ext <<_ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27569 /* Override any GCC internal prototype to avoid an error.
27570 Use char because int might match the return type of a GCC
27571 builtin and then its argument prototype would still apply. */
27584 for ac_lib in '' dl; do
27585 if test -z "$ac_lib"; then
27586 ac_res="none required"
27589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27591 rm -f conftest.$ac_objext conftest$ac_exeext
27592 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27600 grep -v '^ *+' conftest.er1 >conftest.err
27602 cat conftest.err >&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); } &&
27605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27606 { (case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; } &&
27615 { ac_try='test -s conftest$ac_exeext'
27616 { (case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_try") 2>&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; }; then
27625 ac_cv_search_dlopen=$ac_res
27627 echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27633 rm -f core conftest.err conftest.$ac_objext \
27635 if test "${ac_cv_search_dlopen+set}" = set; then
27639 if test "${ac_cv_search_dlopen+set}" = set; then
27642 ac_cv_search_dlopen=no
27644 rm conftest.$ac_ext
27645 LIBS=$ac_func_search_save_LIBS
27647 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27648 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27649 ac_res=$ac_cv_search_dlopen
27650 if test "$ac_res" != no; then
27651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27653 cat >>confdefs.h <<\_ACEOF
27654 #define HAVE_DLOPEN 1
27658 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27659 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27663 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27664 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27665 if test "${ac_cv_search_mallinfo+set}" = set; then
27666 echo $ECHO_N "(cached) $ECHO_C" >&6
27668 ac_func_search_save_LIBS=$LIBS
27669 cat >conftest.$ac_ext <<_ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h. */
27676 /* Override any GCC internal prototype to avoid an error.
27677 Use char because int might match the return type of a GCC
27678 builtin and then its argument prototype would still apply. */
27686 return mallinfo ();
27691 for ac_lib in '' malloc; do
27692 if test -z "$ac_lib"; then
27693 ac_res="none required"
27696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27698 rm -f conftest.$ac_objext conftest$ac_exeext
27699 if { (ac_try="$ac_link"
27700 case "(($ac_try" in
27701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702 *) ac_try_echo=$ac_try;;
27704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705 (eval "$ac_link") 2>conftest.er1
27707 grep -v '^ *+' conftest.er1 >conftest.err
27709 cat conftest.err >&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); } &&
27712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27713 { (case "(($ac_try" in
27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718 (eval "$ac_try") 2>&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; } &&
27722 { ac_try='test -s conftest$ac_exeext'
27723 { (case "(($ac_try" in
27724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725 *) ac_try_echo=$ac_try;;
27727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728 (eval "$ac_try") 2>&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732 ac_cv_search_mallinfo=$ac_res
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27740 rm -f core conftest.err conftest.$ac_objext \
27742 if test "${ac_cv_search_mallinfo+set}" = set; then
27746 if test "${ac_cv_search_mallinfo+set}" = set; then
27749 ac_cv_search_mallinfo=no
27751 rm conftest.$ac_ext
27752 LIBS=$ac_func_search_save_LIBS
27754 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27755 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27756 ac_res=$ac_cv_search_mallinfo
27757 if test "$ac_res" != no; then
27758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27760 cat >>confdefs.h <<\_ACEOF
27761 #define HAVE_MALLINFO 1
27767 if test "$ENABLE_THREADS" -eq 1 ; then
27769 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27770 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27771 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27772 echo $ECHO_N "(cached) $ECHO_C" >&6
27774 ac_check_lib_save_LIBS=$LIBS
27775 LIBS="-lpthread $LIBS"
27776 cat >conftest.$ac_ext <<_ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h. */
27783 /* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27789 char pthread_mutex_init ();
27793 return pthread_mutex_init ();
27798 rm -f conftest.$ac_objext conftest$ac_exeext
27799 if { (ac_try="$ac_link"
27800 case "(($ac_try" in
27801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27802 *) ac_try_echo=$ac_try;;
27804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27805 (eval "$ac_link") 2>conftest.er1
27807 grep -v '^ *+' conftest.er1 >conftest.err
27809 cat conftest.err >&5
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); } &&
27812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27813 { (case "(($ac_try" in
27814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27815 *) ac_try_echo=$ac_try;;
27817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27818 (eval "$ac_try") 2>&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; } &&
27822 { ac_try='test -s conftest$ac_exeext'
27823 { (case "(($ac_try" in
27824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825 *) ac_try_echo=$ac_try;;
27827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828 (eval "$ac_try") 2>&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); }; }; then
27832 ac_cv_lib_pthread_pthread_mutex_init=yes
27834 echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27837 ac_cv_lib_pthread_pthread_mutex_init=no
27840 rm -f core conftest.err conftest.$ac_objext \
27841 conftest$ac_exeext conftest.$ac_ext
27842 LIBS=$ac_check_lib_save_LIBS
27844 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27845 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27846 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27847 cat >>confdefs.h <<_ACEOF
27848 #define HAVE_LIBPTHREAD 1
27851 LIBS="-lpthread $LIBS"
27855 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27856 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27857 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27858 echo $ECHO_N "(cached) $ECHO_C" >&6
27860 ac_func_search_save_LIBS=$LIBS
27861 cat >conftest.$ac_ext <<_ACEOF
27864 cat confdefs.h >>conftest.$ac_ext
27865 cat >>conftest.$ac_ext <<_ACEOF
27866 /* end confdefs.h. */
27868 /* Override any GCC internal prototype to avoid an error.
27869 Use char because int might match the return type of a GCC
27870 builtin and then its argument prototype would still apply. */
27874 char pthread_mutex_lock ();
27878 return pthread_mutex_lock ();
27883 for ac_lib in '' pthread; do
27884 if test -z "$ac_lib"; then
27885 ac_res="none required"
27888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (ac_try="$ac_link"
27892 case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_link") 2>conftest.er1
27899 grep -v '^ *+' conftest.er1 >conftest.err
27901 cat conftest.err >&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); } &&
27904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27905 { (case "(($ac_try" in
27906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_try") 2>&5
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; } &&
27914 { ac_try='test -s conftest$ac_exeext'
27915 { (case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_try") 2>&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; }; then
27924 ac_cv_search_pthread_mutex_lock=$ac_res
27926 echo "$as_me: failed program was:" >&5
27927 sed 's/^/| /' conftest.$ac_ext >&5
27932 rm -f core conftest.err conftest.$ac_objext \
27934 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27938 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27941 ac_cv_search_pthread_mutex_lock=no
27943 rm conftest.$ac_ext
27944 LIBS=$ac_func_search_save_LIBS
27946 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27947 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27948 ac_res=$ac_cv_search_pthread_mutex_lock
27949 if test "$ac_res" != no; then
27950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27952 cat >>confdefs.h <<\_ACEOF
27953 #define HAVE_PTHREAD_MUTEX_LOCK 1
27961 # Check whether --with-udis86 was given.
27962 if test "${with_udis86+set}" = set; then
27963 withval=$with_udis86;
27968 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27971 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27972 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27973 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27974 echo $ECHO_N "(cached) $ECHO_C" >&6
27976 ac_check_lib_save_LIBS=$LIBS
27977 LIBS="-ludis86 $LIBS"
27978 cat >conftest.$ac_ext <<_ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h. */
27985 /* Override any GCC internal prototype to avoid an error.
27986 Use char because int might match the return type of a GCC
27987 builtin and then its argument prototype would still apply. */
28000 rm -f conftest.$ac_objext conftest$ac_exeext
28001 if { (ac_try="$ac_link"
28002 case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_link") 2>conftest.er1
28009 grep -v '^ *+' conftest.er1 >conftest.err
28011 cat conftest.err >&5
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013 (exit $ac_status); } &&
28014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28015 { (case "(($ac_try" in
28016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017 *) ac_try_echo=$ac_try;;
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020 (eval "$ac_try") 2>&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; } &&
28024 { ac_try='test -s conftest$ac_exeext'
28025 { (case "(($ac_try" in
28026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027 *) ac_try_echo=$ac_try;;
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030 (eval "$ac_try") 2>&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; }; then
28034 ac_cv_lib_udis86_ud_init=yes
28036 echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28039 ac_cv_lib_udis86_ud_init=no
28042 rm -f core conftest.err conftest.$ac_objext \
28043 conftest$ac_exeext conftest.$ac_ext
28044 LIBS=$ac_check_lib_save_LIBS
28046 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28047 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28048 if test $ac_cv_lib_udis86_ud_init = yes; then
28049 cat >>confdefs.h <<_ACEOF
28050 #define HAVE_LIBUDIS86 1
28053 LIBS="-ludis86 $LIBS"
28057 echo "Error! You need to have libudis86 around."
28069 cat >>confdefs.h <<_ACEOF
28070 #define USE_UDIS86 $USE_UDIS86
28080 ac_header_dirent=no
28081 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28082 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28083 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28084 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28088 cat >conftest.$ac_ext <<_ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h. */
28094 #include <sys/types.h>
28106 rm -f conftest.$ac_objext
28107 if { (ac_try="$ac_compile"
28108 case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113 (eval "$ac_compile") 2>conftest.er1
28115 grep -v '^ *+' conftest.er1 >conftest.err
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } &&
28120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28121 { (case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_try") 2>&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; } &&
28130 { ac_try='test -s conftest.$ac_objext'
28131 { (case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_try") 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 eval "$as_ac_Header=yes"
28142 echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28145 eval "$as_ac_Header=no"
28148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28150 ac_res=`eval echo '${'$as_ac_Header'}'`
28151 { echo "$as_me:$LINENO: result: $ac_res" >&5
28152 echo "${ECHO_T}$ac_res" >&6; }
28153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28154 cat >>confdefs.h <<_ACEOF
28155 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28158 ac_header_dirent=$ac_hdr; break
28162 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28163 if test $ac_header_dirent = dirent.h; then
28164 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28165 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28166 if test "${ac_cv_search_opendir+set}" = set; then
28167 echo $ECHO_N "(cached) $ECHO_C" >&6
28169 ac_func_search_save_LIBS=$LIBS
28170 cat >conftest.$ac_ext <<_ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h. */
28177 /* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
28192 for ac_lib in '' dir; do
28193 if test -z "$ac_lib"; then
28194 ac_res="none required"
28197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_link") 2>conftest.er1
28208 grep -v '^ *+' conftest.er1 >conftest.err
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } &&
28213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28214 { (case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_try") 2>&5
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; } &&
28223 { ac_try='test -s conftest$ac_exeext'
28224 { (case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_try") 2>&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; }; then
28233 ac_cv_search_opendir=$ac_res
28235 echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28241 rm -f core conftest.err conftest.$ac_objext \
28243 if test "${ac_cv_search_opendir+set}" = set; then
28247 if test "${ac_cv_search_opendir+set}" = set; then
28250 ac_cv_search_opendir=no
28252 rm conftest.$ac_ext
28253 LIBS=$ac_func_search_save_LIBS
28255 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28256 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28257 ac_res=$ac_cv_search_opendir
28258 if test "$ac_res" != no; then
28259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28264 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28265 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28266 if test "${ac_cv_search_opendir+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 ac_func_search_save_LIBS=$LIBS
28270 cat >conftest.$ac_ext <<_ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28277 /* Override any GCC internal prototype to avoid an error.
28278 Use char because int might match the return type of a GCC
28279 builtin and then its argument prototype would still apply. */
28292 for ac_lib in '' x; do
28293 if test -z "$ac_lib"; then
28294 ac_res="none required"
28297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28299 rm -f conftest.$ac_objext conftest$ac_exeext
28300 if { (ac_try="$ac_link"
28301 case "(($ac_try" in
28302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303 *) ac_try_echo=$ac_try;;
28305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306 (eval "$ac_link") 2>conftest.er1
28308 grep -v '^ *+' conftest.er1 >conftest.err
28310 cat conftest.err >&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); } &&
28313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28314 { (case "(($ac_try" in
28315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316 *) ac_try_echo=$ac_try;;
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319 (eval "$ac_try") 2>&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; } &&
28323 { ac_try='test -s conftest$ac_exeext'
28324 { (case "(($ac_try" in
28325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326 *) ac_try_echo=$ac_try;;
28328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28329 (eval "$ac_try") 2>&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; }; then
28333 ac_cv_search_opendir=$ac_res
28335 echo "$as_me: failed program was:" >&5
28336 sed 's/^/| /' conftest.$ac_ext >&5
28341 rm -f core conftest.err conftest.$ac_objext \
28343 if test "${ac_cv_search_opendir+set}" = set; then
28347 if test "${ac_cv_search_opendir+set}" = set; then
28350 ac_cv_search_opendir=no
28352 rm conftest.$ac_ext
28353 LIBS=$ac_func_search_save_LIBS
28355 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28356 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28357 ac_res=$ac_cv_search_opendir
28358 if test "$ac_res" != no; then
28359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28365 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28366 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28367 if test "${ac_cv_header_mmap_anon+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ac_cpp='$CPP $CPPFLAGS'
28372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28376 cat >conftest.$ac_ext <<_ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28382 #include <sys/mman.h>
28383 #include <unistd.h>
28388 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28393 rm -f conftest.$ac_objext
28394 if { (ac_try="$ac_compile"
28395 case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28400 (eval "$ac_compile") 2>conftest.er1
28402 grep -v '^ *+' conftest.er1 >conftest.err
28404 cat conftest.err >&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); } &&
28407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28408 { (case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_try") 2>&5
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; } &&
28417 { ac_try='test -s conftest.$ac_objext'
28418 { (case "(($ac_try" in
28419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420 *) ac_try_echo=$ac_try;;
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423 (eval "$ac_try") 2>&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28427 ac_cv_header_mmap_anon=yes
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28432 ac_cv_header_mmap_anon=no
28435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28437 ac_cpp='$CPP $CPPFLAGS'
28438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28444 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28445 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28446 if test "$ac_cv_header_mmap_anon" = yes; then
28448 cat >>confdefs.h <<\_ACEOF
28449 #define HAVE_MMAP_ANONYMOUS 1
28454 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28455 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28456 if test "${ac_cv_header_stat_broken+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28465 #include <sys/types.h>
28466 #include <sys/stat.h>
28468 #if defined S_ISBLK && defined S_IFDIR
28469 # if S_ISBLK (S_IFDIR)
28474 #if defined S_ISBLK && defined S_IFCHR
28475 # if S_ISBLK (S_IFCHR)
28480 #if defined S_ISLNK && defined S_IFREG
28481 # if S_ISLNK (S_IFREG)
28486 #if defined S_ISSOCK && defined S_IFREG
28487 # if S_ISSOCK (S_IFREG)
28493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28494 $EGREP "You lose" >/dev/null 2>&1; then
28495 ac_cv_header_stat_broken=yes
28497 ac_cv_header_stat_broken=no
28502 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28503 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28504 if test $ac_cv_header_stat_broken = yes; then
28506 cat >>confdefs.h <<\_ACEOF
28507 #define STAT_MACROS_BROKEN 1
28512 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28514 if test "${ac_cv_header_stdc+set}" = set; then
28515 echo $ECHO_N "(cached) $ECHO_C" >&6
28517 cat >conftest.$ac_ext <<_ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h. */
28523 #include <stdlib.h>
28524 #include <stdarg.h>
28525 #include <string.h>
28536 rm -f conftest.$ac_objext
28537 if { (ac_try="$ac_compile"
28538 case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_compile") 2>conftest.er1
28545 grep -v '^ *+' conftest.er1 >conftest.err
28547 cat conftest.err >&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } &&
28550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; } &&
28560 { ac_try='test -s conftest.$ac_objext'
28561 { (case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_try") 2>&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
28570 ac_cv_header_stdc=yes
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28575 ac_cv_header_stdc=no
28578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580 if test $ac_cv_header_stdc = yes; then
28581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28582 cat >conftest.$ac_ext <<_ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h. */
28588 #include <string.h>
28591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28592 $EGREP "memchr" >/dev/null 2>&1; then
28595 ac_cv_header_stdc=no
28601 if test $ac_cv_header_stdc = yes; then
28602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28603 cat >conftest.$ac_ext <<_ACEOF
28606 cat confdefs.h >>conftest.$ac_ext
28607 cat >>conftest.$ac_ext <<_ACEOF
28608 /* end confdefs.h. */
28609 #include <stdlib.h>
28612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28613 $EGREP "free" >/dev/null 2>&1; then
28616 ac_cv_header_stdc=no
28622 if test $ac_cv_header_stdc = yes; then
28623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28624 if test "$cross_compiling" = yes; then
28627 cat >conftest.$ac_ext <<_ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h. */
28634 #include <stdlib.h>
28635 #if ((' ' & 0x0FF) == 0x020)
28636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28639 # define ISLOWER(c) \
28640 (('a' <= (c) && (c) <= 'i') \
28641 || ('j' <= (c) && (c) <= 'r') \
28642 || ('s' <= (c) && (c) <= 'z'))
28643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28651 for (i = 0; i < 256; i++)
28652 if (XOR (islower (i), ISLOWER (i))
28653 || toupper (i) != TOUPPER (i))
28658 rm -f conftest$ac_exeext
28659 if { (ac_try="$ac_link"
28660 case "(($ac_try" in
28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665 (eval "$ac_link") 2>&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28669 { (case "(($ac_try" in
28670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671 *) ac_try_echo=$ac_try;;
28673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28674 (eval "$ac_try") 2>&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); }; }; then
28680 echo "$as_me: program exited with status $ac_status" >&5
28681 echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28684 ( exit $ac_status )
28685 ac_cv_header_stdc=no
28687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28693 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28694 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28695 if test $ac_cv_header_stdc = yes; then
28697 cat >>confdefs.h <<\_ACEOF
28698 #define STDC_HEADERS 1
28703 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28704 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28705 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28706 echo $ECHO_N "(cached) $ECHO_C" >&6
28708 cat >conftest.$ac_ext <<_ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h. */
28714 #include <sys/types.h>
28715 #include <sys/wait.h>
28716 #ifndef WEXITSTATUS
28717 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28720 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28728 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28733 rm -f conftest.$ac_objext
28734 if { (ac_try="$ac_compile"
28735 case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740 (eval "$ac_compile") 2>conftest.er1
28742 grep -v '^ *+' conftest.er1 >conftest.err
28744 cat conftest.err >&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } &&
28747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28748 { (case "(($ac_try" in
28749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750 *) ac_try_echo=$ac_try;;
28752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753 (eval "$ac_try") 2>&5
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; } &&
28757 { ac_try='test -s conftest.$ac_objext'
28758 { (case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_try") 2>&5
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); }; }; then
28767 ac_cv_header_sys_wait_h=yes
28769 echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28772 ac_cv_header_sys_wait_h=no
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28777 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28778 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28779 if test $ac_cv_header_sys_wait_h = yes; then
28781 cat >>confdefs.h <<\_ACEOF
28782 #define HAVE_SYS_WAIT_H 1
28787 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28788 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28789 if test "${ac_cv_header_time+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28792 cat >conftest.$ac_ext <<_ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h. */
28798 #include <sys/types.h>
28799 #include <sys/time.h>
28805 if ((struct tm *) 0)
28811 rm -f conftest.$ac_objext
28812 if { (ac_try="$ac_compile"
28813 case "(($ac_try" in
28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 *) ac_try_echo=$ac_try;;
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_compile") 2>conftest.er1
28820 grep -v '^ *+' conftest.er1 >conftest.err
28822 cat conftest.err >&5
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); } &&
28825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28826 { (case "(($ac_try" in
28827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828 *) ac_try_echo=$ac_try;;
28830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831 (eval "$ac_try") 2>&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; } &&
28835 { ac_try='test -s conftest.$ac_objext'
28836 { (case "(($ac_try" in
28837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838 *) ac_try_echo=$ac_try;;
28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841 (eval "$ac_try") 2>&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
28845 ac_cv_header_time=yes
28847 echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28850 ac_cv_header_time=no
28853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28856 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28857 if test $ac_cv_header_time = yes; then
28859 cat >>confdefs.h <<\_ACEOF
28860 #define TIME_WITH_SYS_TIME 1
28872 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28879 echo $ECHO_N "(cached) $ECHO_C" >&6
28881 ac_res=`eval echo '${'$as_ac_Header'}'`
28882 { echo "$as_me:$LINENO: result: $ac_res" >&5
28883 echo "${ECHO_T}$ac_res" >&6; }
28885 # Is the header compilable?
28886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28888 cat >conftest.$ac_ext <<_ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h. */
28894 $ac_includes_default
28895 #include <$ac_header>
28897 rm -f conftest.$ac_objext
28898 if { (ac_try="$ac_compile"
28899 case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_compile") 2>conftest.er1
28906 grep -v '^ *+' conftest.er1 >conftest.err
28908 cat conftest.err >&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } &&
28911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28912 { (case "(($ac_try" in
28913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914 *) ac_try_echo=$ac_try;;
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917 (eval "$ac_try") 2>&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); }; } &&
28921 { ac_try='test -s conftest.$ac_objext'
28922 { (case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_try") 2>&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; }; then
28931 ac_header_compiler=yes
28933 echo "$as_me: failed program was:" >&5
28934 sed 's/^/| /' conftest.$ac_ext >&5
28936 ac_header_compiler=no
28939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28941 echo "${ECHO_T}$ac_header_compiler" >&6; }
28943 # Is the header present?
28944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28946 cat >conftest.$ac_ext <<_ACEOF
28949 cat confdefs.h >>conftest.$ac_ext
28950 cat >>conftest.$ac_ext <<_ACEOF
28951 /* end confdefs.h. */
28952 #include <$ac_header>
28954 if { (ac_try="$ac_cpp conftest.$ac_ext"
28955 case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28962 grep -v '^ *+' conftest.er1 >conftest.err
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } >/dev/null; then
28967 if test -s conftest.err; then
28968 ac_cpp_err=$ac_c_preproc_warn_flag
28969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28976 if test -z "$ac_cpp_err"; then
28977 ac_header_preproc=yes
28979 echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28982 ac_header_preproc=no
28985 rm -f conftest.err conftest.$ac_ext
28986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28987 echo "${ECHO_T}$ac_header_preproc" >&6; }
28989 # So? What about this header?
28990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28996 ac_header_preproc=yes
28999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29012 ## ----------------------------------- ##
29013 ## Report this to llvmbugs@cs.uiuc.edu ##
29014 ## ----------------------------------- ##
29016 ) | sed "s/^/$as_me: WARNING: /" >&2
29019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29024 eval "$as_ac_Header=\$ac_header_preproc"
29026 ac_res=`eval echo '${'$as_ac_Header'}'`
29027 { echo "$as_me:$LINENO: result: $ac_res" >&5
29028 echo "${ECHO_T}$ac_res" >&6; }
29031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29032 cat >>confdefs.h <<_ACEOF
29033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29046 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 ac_res=`eval echo '${'$as_ac_Header'}'`
29056 { echo "$as_me:$LINENO: result: $ac_res" >&5
29057 echo "${ECHO_T}$ac_res" >&6; }
29059 # Is the header compilable?
29060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29062 cat >conftest.$ac_ext <<_ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h. */
29068 $ac_includes_default
29069 #include <$ac_header>
29071 rm -f conftest.$ac_objext
29072 if { (ac_try="$ac_compile"
29073 case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_compile") 2>conftest.er1
29080 grep -v '^ *+' conftest.er1 >conftest.err
29082 cat conftest.err >&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); } &&
29085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29086 { (case "(($ac_try" in
29087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29088 *) ac_try_echo=$ac_try;;
29090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29091 (eval "$ac_try") 2>&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); }; } &&
29095 { ac_try='test -s conftest.$ac_objext'
29096 { (case "(($ac_try" in
29097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_try") 2>&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; }; then
29105 ac_header_compiler=yes
29107 echo "$as_me: failed program was:" >&5
29108 sed 's/^/| /' conftest.$ac_ext >&5
29110 ac_header_compiler=no
29113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29115 echo "${ECHO_T}$ac_header_compiler" >&6; }
29117 # Is the header present?
29118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29120 cat >conftest.$ac_ext <<_ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h. */
29126 #include <$ac_header>
29128 if { (ac_try="$ac_cpp conftest.$ac_ext"
29129 case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29136 grep -v '^ *+' conftest.er1 >conftest.err
29138 cat conftest.err >&5
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); } >/dev/null; then
29141 if test -s conftest.err; then
29142 ac_cpp_err=$ac_c_preproc_warn_flag
29143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29150 if test -z "$ac_cpp_err"; then
29151 ac_header_preproc=yes
29153 echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29156 ac_header_preproc=no
29159 rm -f conftest.err conftest.$ac_ext
29160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29161 echo "${ECHO_T}$ac_header_preproc" >&6; }
29163 # So? What about this header?
29164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29170 ac_header_preproc=yes
29173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29186 ## ----------------------------------- ##
29187 ## Report this to llvmbugs@cs.uiuc.edu ##
29188 ## ----------------------------------- ##
29190 ) | sed "s/^/$as_me: WARNING: /" >&2
29193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 eval "$as_ac_Header=\$ac_header_preproc"
29200 ac_res=`eval echo '${'$as_ac_Header'}'`
29201 { echo "$as_me:$LINENO: result: $ac_res" >&5
29202 echo "${ECHO_T}$ac_res" >&6; }
29205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29206 cat >>confdefs.h <<_ACEOF
29207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29215 for ac_header in windows.h
29217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29224 ac_res=`eval echo '${'$as_ac_Header'}'`
29225 { echo "$as_me:$LINENO: result: $ac_res" >&5
29226 echo "${ECHO_T}$ac_res" >&6; }
29228 # Is the header compilable?
29229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29231 cat >conftest.$ac_ext <<_ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h. */
29237 $ac_includes_default
29238 #include <$ac_header>
29240 rm -f conftest.$ac_objext
29241 if { (ac_try="$ac_compile"
29242 case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_compile") 2>conftest.er1
29249 grep -v '^ *+' conftest.er1 >conftest.err
29251 cat conftest.err >&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); } &&
29254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29255 { (case "(($ac_try" in
29256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29257 *) ac_try_echo=$ac_try;;
29259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29260 (eval "$ac_try") 2>&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; } &&
29264 { ac_try='test -s conftest.$ac_objext'
29265 { (case "(($ac_try" in
29266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267 *) ac_try_echo=$ac_try;;
29269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270 (eval "$ac_try") 2>&5
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; }; then
29274 ac_header_compiler=yes
29276 echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.$ac_ext >&5
29279 ac_header_compiler=no
29282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29284 echo "${ECHO_T}$ac_header_compiler" >&6; }
29286 # Is the header present?
29287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29289 cat >conftest.$ac_ext <<_ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h. */
29295 #include <$ac_header>
29297 if { (ac_try="$ac_cpp conftest.$ac_ext"
29298 case "(($ac_try" in
29299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300 *) ac_try_echo=$ac_try;;
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29305 grep -v '^ *+' conftest.er1 >conftest.err
29307 cat conftest.err >&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); } >/dev/null; then
29310 if test -s conftest.err; then
29311 ac_cpp_err=$ac_c_preproc_warn_flag
29312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29319 if test -z "$ac_cpp_err"; then
29320 ac_header_preproc=yes
29322 echo "$as_me: failed program was:" >&5
29323 sed 's/^/| /' conftest.$ac_ext >&5
29325 ac_header_preproc=no
29328 rm -f conftest.err conftest.$ac_ext
29329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29330 echo "${ECHO_T}$ac_header_preproc" >&6; }
29332 # So? What about this header?
29333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29339 ac_header_preproc=yes
29342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29355 ## ----------------------------------- ##
29356 ## Report this to llvmbugs@cs.uiuc.edu ##
29357 ## ----------------------------------- ##
29359 ) | sed "s/^/$as_me: WARNING: /" >&2
29362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 eval "$as_ac_Header=\$ac_header_preproc"
29369 ac_res=`eval echo '${'$as_ac_Header'}'`
29370 { echo "$as_me:$LINENO: result: $ac_res" >&5
29371 echo "${ECHO_T}$ac_res" >&6; }
29374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29375 cat >>confdefs.h <<_ACEOF
29376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29387 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29396 ac_res=`eval echo '${'$as_ac_Header'}'`
29397 { echo "$as_me:$LINENO: result: $ac_res" >&5
29398 echo "${ECHO_T}$ac_res" >&6; }
29400 # Is the header compilable?
29401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29403 cat >conftest.$ac_ext <<_ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h. */
29409 $ac_includes_default
29410 #include <$ac_header>
29412 rm -f conftest.$ac_objext
29413 if { (ac_try="$ac_compile"
29414 case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_compile") 2>conftest.er1
29421 grep -v '^ *+' conftest.er1 >conftest.err
29423 cat conftest.err >&5
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } &&
29426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29432 (eval "$ac_try") 2>&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest.$ac_objext'
29437 { (case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_try") 2>&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ac_header_compiler=yes
29448 echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29451 ac_header_compiler=no
29454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29456 echo "${ECHO_T}$ac_header_compiler" >&6; }
29458 # Is the header present?
29459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29461 cat >conftest.$ac_ext <<_ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29467 #include <$ac_header>
29469 if { (ac_try="$ac_cpp conftest.$ac_ext"
29470 case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29477 grep -v '^ *+' conftest.er1 >conftest.err
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } >/dev/null; then
29482 if test -s conftest.err; then
29483 ac_cpp_err=$ac_c_preproc_warn_flag
29484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29491 if test -z "$ac_cpp_err"; then
29492 ac_header_preproc=yes
29494 echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29497 ac_header_preproc=no
29500 rm -f conftest.err conftest.$ac_ext
29501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29502 echo "${ECHO_T}$ac_header_preproc" >&6; }
29504 # So? What about this header?
29505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29511 ac_header_preproc=yes
29514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29527 ## ----------------------------------- ##
29528 ## Report this to llvmbugs@cs.uiuc.edu ##
29529 ## ----------------------------------- ##
29531 ) | sed "s/^/$as_me: WARNING: /" >&2
29534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29537 echo $ECHO_N "(cached) $ECHO_C" >&6
29539 eval "$as_ac_Header=\$ac_header_preproc"
29541 ac_res=`eval echo '${'$as_ac_Header'}'`
29542 { echo "$as_me:$LINENO: result: $ac_res" >&5
29543 echo "${ECHO_T}$ac_res" >&6; }
29546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29547 cat >>confdefs.h <<_ACEOF
29548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29558 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29565 echo $ECHO_N "(cached) $ECHO_C" >&6
29567 ac_res=`eval echo '${'$as_ac_Header'}'`
29568 { echo "$as_me:$LINENO: result: $ac_res" >&5
29569 echo "${ECHO_T}$ac_res" >&6; }
29571 # Is the header compilable?
29572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29574 cat >conftest.$ac_ext <<_ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h. */
29580 $ac_includes_default
29581 #include <$ac_header>
29583 rm -f conftest.$ac_objext
29584 if { (ac_try="$ac_compile"
29585 case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_compile") 2>conftest.er1
29592 grep -v '^ *+' conftest.er1 >conftest.err
29594 cat conftest.err >&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); } &&
29597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29598 { (case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_try") 2>&5
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest.$ac_objext'
29608 { (case "(($ac_try" in
29609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610 *) ac_try_echo=$ac_try;;
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613 (eval "$ac_try") 2>&5
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; }; then
29617 ac_header_compiler=yes
29619 echo "$as_me: failed program was:" >&5
29620 sed 's/^/| /' conftest.$ac_ext >&5
29622 ac_header_compiler=no
29625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29627 echo "${ECHO_T}$ac_header_compiler" >&6; }
29629 # Is the header present?
29630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29632 cat >conftest.$ac_ext <<_ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h. */
29638 #include <$ac_header>
29640 if { (ac_try="$ac_cpp conftest.$ac_ext"
29641 case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29648 grep -v '^ *+' conftest.er1 >conftest.err
29650 cat conftest.err >&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } >/dev/null; then
29653 if test -s conftest.err; then
29654 ac_cpp_err=$ac_c_preproc_warn_flag
29655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29662 if test -z "$ac_cpp_err"; then
29663 ac_header_preproc=yes
29665 echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.$ac_ext >&5
29668 ac_header_preproc=no
29671 rm -f conftest.err conftest.$ac_ext
29672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29673 echo "${ECHO_T}$ac_header_preproc" >&6; }
29675 # So? What about this header?
29676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29682 ac_header_preproc=yes
29685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29698 ## ----------------------------------- ##
29699 ## Report this to llvmbugs@cs.uiuc.edu ##
29700 ## ----------------------------------- ##
29702 ) | sed "s/^/$as_me: WARNING: /" >&2
29705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29708 echo $ECHO_N "(cached) $ECHO_C" >&6
29710 eval "$as_ac_Header=\$ac_header_preproc"
29712 ac_res=`eval echo '${'$as_ac_Header'}'`
29713 { echo "$as_me:$LINENO: result: $ac_res" >&5
29714 echo "${ECHO_T}$ac_res" >&6; }
29717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29718 cat >>confdefs.h <<_ACEOF
29719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29726 if test "$ENABLE_THREADS" -eq 1 ; then
29728 for ac_header in pthread.h
29730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29735 echo $ECHO_N "(cached) $ECHO_C" >&6
29737 ac_res=`eval echo '${'$as_ac_Header'}'`
29738 { echo "$as_me:$LINENO: result: $ac_res" >&5
29739 echo "${ECHO_T}$ac_res" >&6; }
29741 # Is the header compilable?
29742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29744 cat >conftest.$ac_ext <<_ACEOF
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h. */
29750 $ac_includes_default
29751 #include <$ac_header>
29753 rm -f conftest.$ac_objext
29754 if { (ac_try="$ac_compile"
29755 case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_compile") 2>conftest.er1
29762 grep -v '^ *+' conftest.er1 >conftest.err
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); } &&
29767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768 { (case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_try") 2>&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; } &&
29777 { ac_try='test -s conftest.$ac_objext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_header_compiler=yes
29789 echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29792 ac_header_compiler=no
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29797 echo "${ECHO_T}$ac_header_compiler" >&6; }
29799 # Is the header present?
29800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29802 cat >conftest.$ac_ext <<_ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h. */
29808 #include <$ac_header>
29810 if { (ac_try="$ac_cpp conftest.$ac_ext"
29811 case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29818 grep -v '^ *+' conftest.er1 >conftest.err
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } >/dev/null; then
29823 if test -s conftest.err; then
29824 ac_cpp_err=$ac_c_preproc_warn_flag
29825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29832 if test -z "$ac_cpp_err"; then
29833 ac_header_preproc=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_header_preproc=no
29841 rm -f conftest.err conftest.$ac_ext
29842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29843 echo "${ECHO_T}$ac_header_preproc" >&6; }
29845 # So? What about this header?
29846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29852 ac_header_preproc=yes
29855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29868 ## ----------------------------------- ##
29869 ## Report this to llvmbugs@cs.uiuc.edu ##
29870 ## ----------------------------------- ##
29872 ) | sed "s/^/$as_me: WARNING: /" >&2
29875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29878 echo $ECHO_N "(cached) $ECHO_C" >&6
29880 eval "$as_ac_Header=\$ac_header_preproc"
29882 ac_res=`eval echo '${'$as_ac_Header'}'`
29883 { echo "$as_me:$LINENO: result: $ac_res" >&5
29884 echo "${ECHO_T}$ac_res" >&6; }
29887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29888 cat >>confdefs.h <<_ACEOF
29889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29907 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29908 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29909 if test "${ac_cv_huge_val_sanity+set}" = set; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 ac_cpp='$CXXCPP $CPPFLAGS'
29915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29920 if test "$cross_compiling" = yes; then
29921 ac_cv_huge_val_sanity=yes
29923 cat >conftest.$ac_ext <<_ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h. */
29933 double x = HUGE_VAL; return x != x;
29938 rm -f conftest$ac_exeext
29939 if { (ac_try="$ac_link"
29940 case "(($ac_try" in
29941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942 *) ac_try_echo=$ac_try;;
29944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945 (eval "$ac_link") 2>&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29949 { (case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_try") 2>&5
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; }; then
29958 ac_cv_huge_val_sanity=yes
29960 echo "$as_me: program exited with status $ac_status" >&5
29961 echo "$as_me: failed program was:" >&5
29962 sed 's/^/| /' conftest.$ac_ext >&5
29964 ( exit $ac_status )
29965 ac_cv_huge_val_sanity=no
29967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29972 ac_cpp='$CPP $CPPFLAGS'
29973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29979 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29980 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29981 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29984 { echo "$as_me:$LINENO: checking for pid_t" >&5
29985 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29986 if test "${ac_cv_type_pid_t+set}" = set; then
29987 echo $ECHO_N "(cached) $ECHO_C" >&6
29989 cat >conftest.$ac_ext <<_ACEOF
29992 cat confdefs.h >>conftest.$ac_ext
29993 cat >>conftest.$ac_ext <<_ACEOF
29994 /* end confdefs.h. */
29995 $ac_includes_default
29996 typedef pid_t ac__type_new_;
30000 if ((ac__type_new_ *) 0)
30002 if (sizeof (ac__type_new_))
30008 rm -f conftest.$ac_objext
30009 if { (ac_try="$ac_compile"
30010 case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_compile") 2>conftest.er1
30017 grep -v '^ *+' conftest.er1 >conftest.err
30019 cat conftest.err >&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } &&
30022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30023 { (case "(($ac_try" in
30024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025 *) ac_try_echo=$ac_try;;
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028 (eval "$ac_try") 2>&5
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; } &&
30032 { ac_try='test -s conftest.$ac_objext'
30033 { (case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_try") 2>&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042 ac_cv_type_pid_t=yes
30044 echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.$ac_ext >&5
30047 ac_cv_type_pid_t=no
30050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30052 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30053 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30054 if test $ac_cv_type_pid_t = yes; then
30058 cat >>confdefs.h <<_ACEOF
30064 { echo "$as_me:$LINENO: checking for size_t" >&5
30065 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30066 if test "${ac_cv_type_size_t+set}" = set; then
30067 echo $ECHO_N "(cached) $ECHO_C" >&6
30069 cat >conftest.$ac_ext <<_ACEOF
30072 cat confdefs.h >>conftest.$ac_ext
30073 cat >>conftest.$ac_ext <<_ACEOF
30074 /* end confdefs.h. */
30075 $ac_includes_default
30076 typedef size_t ac__type_new_;
30080 if ((ac__type_new_ *) 0)
30082 if (sizeof (ac__type_new_))
30088 rm -f conftest.$ac_objext
30089 if { (ac_try="$ac_compile"
30090 case "(($ac_try" in
30091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092 *) ac_try_echo=$ac_try;;
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095 (eval "$ac_compile") 2>conftest.er1
30097 grep -v '^ *+' conftest.er1 >conftest.err
30099 cat conftest.err >&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); } &&
30102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30103 { (case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_try") 2>&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; } &&
30112 { ac_try='test -s conftest.$ac_objext'
30113 { (case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_try") 2>&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
30122 ac_cv_type_size_t=yes
30124 echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30127 ac_cv_type_size_t=no
30130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30132 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30133 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30134 if test $ac_cv_type_size_t = yes; then
30138 cat >>confdefs.h <<_ACEOF
30139 #define size_t unsigned int
30144 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30145 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30146 if test "${ac_cv_type_signal+set}" = set; then
30147 echo $ECHO_N "(cached) $ECHO_C" >&6
30149 cat >conftest.$ac_ext <<_ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h. */
30155 #include <sys/types.h>
30156 #include <signal.h>
30161 return *(signal (0, 0)) (0) == 1;
30166 rm -f conftest.$ac_objext
30167 if { (ac_try="$ac_compile"
30168 case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_compile") 2>conftest.er1
30175 grep -v '^ *+' conftest.er1 >conftest.err
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } &&
30180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181 { (case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_try") 2>&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 ac_cv_type_signal=int
30202 echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30205 ac_cv_type_signal=void
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30210 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30211 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30213 cat >>confdefs.h <<_ACEOF
30214 #define RETSIGTYPE $ac_cv_type_signal
30218 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30219 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30220 if test "${ac_cv_struct_tm+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30223 cat >conftest.$ac_ext <<_ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h. */
30229 #include <sys/types.h>
30235 struct tm *tp; tp->tm_sec;
30240 rm -f conftest.$ac_objext
30241 if { (ac_try="$ac_compile"
30242 case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_compile") 2>conftest.er1
30249 grep -v '^ *+' conftest.er1 >conftest.err
30251 cat conftest.err >&5
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); } &&
30254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30255 { (case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_try") 2>&5
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; } &&
30264 { ac_try='test -s conftest.$ac_objext'
30265 { (case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_try") 2>&5
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; }; then
30274 ac_cv_struct_tm=time.h
30276 echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30279 ac_cv_struct_tm=sys/time.h
30282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30284 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30285 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30286 if test $ac_cv_struct_tm = sys/time.h; then
30288 cat >>confdefs.h <<\_ACEOF
30289 #define TM_IN_SYS_TIME 1
30294 { echo "$as_me:$LINENO: checking for int64_t" >&5
30295 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30296 if test "${ac_cv_type_int64_t+set}" = set; then
30297 echo $ECHO_N "(cached) $ECHO_C" >&6
30299 cat >conftest.$ac_ext <<_ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h. */
30305 $ac_includes_default
30306 typedef int64_t ac__type_new_;
30310 if ((ac__type_new_ *) 0)
30312 if (sizeof (ac__type_new_))
30318 rm -f conftest.$ac_objext
30319 if { (ac_try="$ac_compile"
30320 case "(($ac_try" in
30321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322 *) ac_try_echo=$ac_try;;
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325 (eval "$ac_compile") 2>conftest.er1
30327 grep -v '^ *+' conftest.er1 >conftest.err
30329 cat conftest.err >&5
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); } &&
30332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30333 { (case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_try") 2>&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; } &&
30342 { ac_try='test -s conftest.$ac_objext'
30343 { (case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_try") 2>&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; }; then
30352 ac_cv_type_int64_t=yes
30354 echo "$as_me: failed program was:" >&5
30355 sed 's/^/| /' conftest.$ac_ext >&5
30357 ac_cv_type_int64_t=no
30360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30362 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30363 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30364 if test $ac_cv_type_int64_t = yes; then
30366 cat >>confdefs.h <<_ACEOF
30367 #define HAVE_INT64_T 1
30372 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30373 echo "$as_me: error: Type int64_t required but not found" >&2;}
30374 { (exit 1); exit 1; }; }
30377 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30378 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30379 if test "${ac_cv_type_uint64_t+set}" = set; then
30380 echo $ECHO_N "(cached) $ECHO_C" >&6
30382 cat >conftest.$ac_ext <<_ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h. */
30388 $ac_includes_default
30389 typedef uint64_t ac__type_new_;
30393 if ((ac__type_new_ *) 0)
30395 if (sizeof (ac__type_new_))
30401 rm -f conftest.$ac_objext
30402 if { (ac_try="$ac_compile"
30403 case "(($ac_try" in
30404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30405 *) ac_try_echo=$ac_try;;
30407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30408 (eval "$ac_compile") 2>conftest.er1
30410 grep -v '^ *+' conftest.er1 >conftest.err
30412 cat conftest.err >&5
30413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414 (exit $ac_status); } &&
30415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30416 { (case "(($ac_try" in
30417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418 *) ac_try_echo=$ac_try;;
30420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421 (eval "$ac_try") 2>&5
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); }; } &&
30425 { ac_try='test -s conftest.$ac_objext'
30426 { (case "(($ac_try" in
30427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428 *) ac_try_echo=$ac_try;;
30430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431 (eval "$ac_try") 2>&5
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 ac_cv_type_uint64_t=yes
30437 echo "$as_me: failed program was:" >&5
30438 sed 's/^/| /' conftest.$ac_ext >&5
30440 ac_cv_type_uint64_t=no
30443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30445 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30446 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30447 if test $ac_cv_type_uint64_t = yes; then
30449 cat >>confdefs.h <<_ACEOF
30450 #define HAVE_UINT64_T 1
30455 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30456 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30457 if test "${ac_cv_type_u_int64_t+set}" = set; then
30458 echo $ECHO_N "(cached) $ECHO_C" >&6
30460 cat >conftest.$ac_ext <<_ACEOF
30463 cat confdefs.h >>conftest.$ac_ext
30464 cat >>conftest.$ac_ext <<_ACEOF
30465 /* end confdefs.h. */
30466 $ac_includes_default
30467 typedef u_int64_t ac__type_new_;
30471 if ((ac__type_new_ *) 0)
30473 if (sizeof (ac__type_new_))
30479 rm -f conftest.$ac_objext
30480 if { (ac_try="$ac_compile"
30481 case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_compile") 2>conftest.er1
30488 grep -v '^ *+' conftest.er1 >conftest.err
30490 cat conftest.err >&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); } &&
30493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30494 { (case "(($ac_try" in
30495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30496 *) ac_try_echo=$ac_try;;
30498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30499 (eval "$ac_try") 2>&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; } &&
30503 { ac_try='test -s conftest.$ac_objext'
30504 { (case "(($ac_try" in
30505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506 *) ac_try_echo=$ac_try;;
30508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509 (eval "$ac_try") 2>&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; }; then
30513 ac_cv_type_u_int64_t=yes
30515 echo "$as_me: failed program was:" >&5
30516 sed 's/^/| /' conftest.$ac_ext >&5
30518 ac_cv_type_u_int64_t=no
30521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30523 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30524 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30525 if test $ac_cv_type_u_int64_t = yes; then
30527 cat >>confdefs.h <<_ACEOF
30528 #define HAVE_U_INT64_T 1
30533 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30534 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30535 { (exit 1); exit 1; }; }
30549 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30552 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30557 cat >conftest.$ac_ext <<_ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h. */
30563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30565 #define $ac_func innocuous_$ac_func
30567 /* System header to define __stub macros and hopefully few prototypes,
30568 which can conflict with char $ac_func (); below.
30569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30570 <limits.h> exists even on freestanding compilers. */
30573 # include <limits.h>
30575 # include <assert.h>
30580 /* Override any GCC internal prototype to avoid an error.
30581 Use char because int might match the return type of a GCC
30582 builtin and then its argument prototype would still apply. */
30587 /* The GNU C library defines this for functions which it implements
30588 to always fail with ENOSYS. Some functions are actually named
30589 something starting with __ and the normal name is an alias. */
30590 #if defined __stub_$ac_func || defined __stub___$ac_func
30597 return $ac_func ();
30602 rm -f conftest.$ac_objext conftest$ac_exeext
30603 if { (ac_try="$ac_link"
30604 case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_link") 2>conftest.er1
30611 grep -v '^ *+' conftest.er1 >conftest.err
30613 cat conftest.err >&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); } &&
30616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30617 { (case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_try") 2>&5
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; } &&
30626 { ac_try='test -s conftest$ac_exeext'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 eval "$as_ac_var=yes"
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30641 eval "$as_ac_var=no"
30644 rm -f core conftest.err conftest.$ac_objext \
30645 conftest$ac_exeext conftest.$ac_ext
30647 ac_res=`eval echo '${'$as_ac_var'}'`
30648 { echo "$as_me:$LINENO: result: $ac_res" >&5
30649 echo "${ECHO_T}$ac_res" >&6; }
30650 if test `eval echo '${'$as_ac_var'}'` = yes; then
30651 cat >>confdefs.h <<_ACEOF
30652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30662 for ac_func in powf fmodf strtof round
30664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30668 echo $ECHO_N "(cached) $ECHO_C" >&6
30670 cat >conftest.$ac_ext <<_ACEOF
30673 cat confdefs.h >>conftest.$ac_ext
30674 cat >>conftest.$ac_ext <<_ACEOF
30675 /* end confdefs.h. */
30676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30678 #define $ac_func innocuous_$ac_func
30680 /* System header to define __stub macros and hopefully few prototypes,
30681 which can conflict with char $ac_func (); below.
30682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30683 <limits.h> exists even on freestanding compilers. */
30686 # include <limits.h>
30688 # include <assert.h>
30693 /* Override any GCC internal prototype to avoid an error.
30694 Use char because int might match the return type of a GCC
30695 builtin and then its argument prototype would still apply. */
30700 /* The GNU C library defines this for functions which it implements
30701 to always fail with ENOSYS. Some functions are actually named
30702 something starting with __ and the normal name is an alias. */
30703 #if defined __stub_$ac_func || defined __stub___$ac_func
30710 return $ac_func ();
30715 rm -f conftest.$ac_objext conftest$ac_exeext
30716 if { (ac_try="$ac_link"
30717 case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_link") 2>conftest.er1
30724 grep -v '^ *+' conftest.er1 >conftest.err
30726 cat conftest.err >&5
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); } &&
30729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30730 { (case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_try") 2>&5
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; } &&
30739 { ac_try='test -s conftest$ac_exeext'
30740 { (case "(($ac_try" in
30741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742 *) ac_try_echo=$ac_try;;
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745 (eval "$ac_try") 2>&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; }; then
30749 eval "$as_ac_var=yes"
30751 echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30754 eval "$as_ac_var=no"
30757 rm -f core conftest.err conftest.$ac_objext \
30758 conftest$ac_exeext conftest.$ac_ext
30760 ac_res=`eval echo '${'$as_ac_var'}'`
30761 { echo "$as_me:$LINENO: result: $ac_res" >&5
30762 echo "${ECHO_T}$ac_res" >&6; }
30763 if test `eval echo '${'$as_ac_var'}'` = yes; then
30764 cat >>confdefs.h <<_ACEOF
30765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30776 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30782 echo $ECHO_N "(cached) $ECHO_C" >&6
30784 cat >conftest.$ac_ext <<_ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h. */
30790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30792 #define $ac_func innocuous_$ac_func
30794 /* System header to define __stub macros and hopefully few prototypes,
30795 which can conflict with char $ac_func (); below.
30796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30797 <limits.h> exists even on freestanding compilers. */
30800 # include <limits.h>
30802 # include <assert.h>
30807 /* Override any GCC internal prototype to avoid an error.
30808 Use char because int might match the return type of a GCC
30809 builtin and then its argument prototype would still apply. */
30814 /* The GNU C library defines this for functions which it implements
30815 to always fail with ENOSYS. Some functions are actually named
30816 something starting with __ and the normal name is an alias. */
30817 #if defined __stub_$ac_func || defined __stub___$ac_func
30824 return $ac_func ();
30829 rm -f conftest.$ac_objext conftest$ac_exeext
30830 if { (ac_try="$ac_link"
30831 case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_link") 2>conftest.er1
30838 grep -v '^ *+' conftest.er1 >conftest.err
30840 cat conftest.err >&5
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842 (exit $ac_status); } &&
30843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30844 { (case "(($ac_try" in
30845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846 *) ac_try_echo=$ac_try;;
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849 (eval "$ac_try") 2>&5
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); }; } &&
30853 { ac_try='test -s conftest$ac_exeext'
30854 { (case "(($ac_try" in
30855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30856 *) ac_try_echo=$ac_try;;
30858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30859 (eval "$ac_try") 2>&5
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); }; }; then
30863 eval "$as_ac_var=yes"
30865 echo "$as_me: failed program was:" >&5
30866 sed 's/^/| /' conftest.$ac_ext >&5
30868 eval "$as_ac_var=no"
30871 rm -f core conftest.err conftest.$ac_objext \
30872 conftest$ac_exeext conftest.$ac_ext
30874 ac_res=`eval echo '${'$as_ac_var'}'`
30875 { echo "$as_me:$LINENO: result: $ac_res" >&5
30876 echo "${ECHO_T}$ac_res" >&6; }
30877 if test `eval echo '${'$as_ac_var'}'` = yes; then
30878 cat >>confdefs.h <<_ACEOF
30879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30888 for ac_func in isatty mkdtemp mkstemp
30890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30894 echo $ECHO_N "(cached) $ECHO_C" >&6
30896 cat >conftest.$ac_ext <<_ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h. */
30902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30904 #define $ac_func innocuous_$ac_func
30906 /* System header to define __stub macros and hopefully few prototypes,
30907 which can conflict with char $ac_func (); below.
30908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30909 <limits.h> exists even on freestanding compilers. */
30912 # include <limits.h>
30914 # include <assert.h>
30919 /* Override any GCC internal prototype to avoid an error.
30920 Use char because int might match the return type of a GCC
30921 builtin and then its argument prototype would still apply. */
30926 /* The GNU C library defines this for functions which it implements
30927 to always fail with ENOSYS. Some functions are actually named
30928 something starting with __ and the normal name is an alias. */
30929 #if defined __stub_$ac_func || defined __stub___$ac_func
30936 return $ac_func ();
30941 rm -f conftest.$ac_objext conftest$ac_exeext
30942 if { (ac_try="$ac_link"
30943 case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_link") 2>conftest.er1
30950 grep -v '^ *+' conftest.er1 >conftest.err
30952 cat conftest.err >&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); } &&
30955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30956 { (case "(($ac_try" in
30957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958 *) ac_try_echo=$ac_try;;
30960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30961 (eval "$ac_try") 2>&5
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); }; } &&
30965 { ac_try='test -s conftest$ac_exeext'
30966 { (case "(($ac_try" in
30967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30968 *) ac_try_echo=$ac_try;;
30970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30971 (eval "$ac_try") 2>&5
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; }; then
30975 eval "$as_ac_var=yes"
30977 echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30980 eval "$as_ac_var=no"
30983 rm -f core conftest.err conftest.$ac_objext \
30984 conftest$ac_exeext conftest.$ac_ext
30986 ac_res=`eval echo '${'$as_ac_var'}'`
30987 { echo "$as_me:$LINENO: result: $ac_res" >&5
30988 echo "${ECHO_T}$ac_res" >&6; }
30989 if test `eval echo '${'$as_ac_var'}'` = yes; then
30990 cat >>confdefs.h <<_ACEOF
30991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31004 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31012 cat >conftest.$ac_ext <<_ACEOF
31015 cat confdefs.h >>conftest.$ac_ext
31016 cat >>conftest.$ac_ext <<_ACEOF
31017 /* end confdefs.h. */
31018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31020 #define $ac_func innocuous_$ac_func
31022 /* System header to define __stub macros and hopefully few prototypes,
31023 which can conflict with char $ac_func (); below.
31024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31025 <limits.h> exists even on freestanding compilers. */
31028 # include <limits.h>
31030 # include <assert.h>
31035 /* Override any GCC internal prototype to avoid an error.
31036 Use char because int might match the return type of a GCC
31037 builtin and then its argument prototype would still apply. */
31042 /* The GNU C library defines this for functions which it implements
31043 to always fail with ENOSYS. Some functions are actually named
31044 something starting with __ and the normal name is an alias. */
31045 #if defined __stub_$ac_func || defined __stub___$ac_func
31052 return $ac_func ();
31057 rm -f conftest.$ac_objext conftest$ac_exeext
31058 if { (ac_try="$ac_link"
31059 case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_link") 2>conftest.er1
31066 grep -v '^ *+' conftest.er1 >conftest.err
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
31071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31081 { ac_try='test -s conftest$ac_exeext'
31082 { (case "(($ac_try" in
31083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_try") 2>&5
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; }; then
31091 eval "$as_ac_var=yes"
31093 echo "$as_me: failed program was:" >&5
31094 sed 's/^/| /' conftest.$ac_ext >&5
31096 eval "$as_ac_var=no"
31099 rm -f core conftest.err conftest.$ac_objext \
31100 conftest$ac_exeext conftest.$ac_ext
31102 ac_res=`eval echo '${'$as_ac_var'}'`
31103 { echo "$as_me:$LINENO: result: $ac_res" >&5
31104 echo "${ECHO_T}$ac_res" >&6; }
31105 if test `eval echo '${'$as_ac_var'}'` = yes; then
31106 cat >>confdefs.h <<_ACEOF
31107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31117 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31125 cat >conftest.$ac_ext <<_ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h. */
31131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31133 #define $ac_func innocuous_$ac_func
31135 /* System header to define __stub macros and hopefully few prototypes,
31136 which can conflict with char $ac_func (); below.
31137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31138 <limits.h> exists even on freestanding compilers. */
31141 # include <limits.h>
31143 # include <assert.h>
31148 /* Override any GCC internal prototype to avoid an error.
31149 Use char because int might match the return type of a GCC
31150 builtin and then its argument prototype would still apply. */
31155 /* The GNU C library defines this for functions which it implements
31156 to always fail with ENOSYS. Some functions are actually named
31157 something starting with __ and the normal name is an alias. */
31158 #if defined __stub_$ac_func || defined __stub___$ac_func
31165 return $ac_func ();
31170 rm -f conftest.$ac_objext conftest$ac_exeext
31171 if { (ac_try="$ac_link"
31172 case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_link") 2>conftest.er1
31179 grep -v '^ *+' conftest.er1 >conftest.err
31181 cat conftest.err >&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); } &&
31184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_try") 2>&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; } &&
31194 { ac_try='test -s conftest$ac_exeext'
31195 { (case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_try") 2>&5
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); }; }; then
31204 eval "$as_ac_var=yes"
31206 echo "$as_me: failed program was:" >&5
31207 sed 's/^/| /' conftest.$ac_ext >&5
31209 eval "$as_ac_var=no"
31212 rm -f core conftest.err conftest.$ac_objext \
31213 conftest$ac_exeext conftest.$ac_ext
31215 ac_res=`eval echo '${'$as_ac_var'}'`
31216 { echo "$as_me:$LINENO: result: $ac_res" >&5
31217 echo "${ECHO_T}$ac_res" >&6; }
31218 if test `eval echo '${'$as_ac_var'}'` = yes; then
31219 cat >>confdefs.h <<_ACEOF
31220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31230 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31236 echo $ECHO_N "(cached) $ECHO_C" >&6
31238 cat >conftest.$ac_ext <<_ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h. */
31244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31246 #define $ac_func innocuous_$ac_func
31248 /* System header to define __stub macros and hopefully few prototypes,
31249 which can conflict with char $ac_func (); below.
31250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31251 <limits.h> exists even on freestanding compilers. */
31254 # include <limits.h>
31256 # include <assert.h>
31261 /* Override any GCC internal prototype to avoid an error.
31262 Use char because int might match the return type of a GCC
31263 builtin and then its argument prototype would still apply. */
31268 /* The GNU C library defines this for functions which it implements
31269 to always fail with ENOSYS. Some functions are actually named
31270 something starting with __ and the normal name is an alias. */
31271 #if defined __stub_$ac_func || defined __stub___$ac_func
31278 return $ac_func ();
31283 rm -f conftest.$ac_objext conftest$ac_exeext
31284 if { (ac_try="$ac_link"
31285 case "(($ac_try" in
31286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287 *) ac_try_echo=$ac_try;;
31289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290 (eval "$ac_link") 2>conftest.er1
31292 grep -v '^ *+' conftest.er1 >conftest.err
31294 cat conftest.err >&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); } &&
31297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31298 { (case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_try") 2>&5
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; } &&
31307 { ac_try='test -s conftest$ac_exeext'
31308 { (case "(($ac_try" in
31309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310 *) ac_try_echo=$ac_try;;
31312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31313 (eval "$ac_try") 2>&5
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; }; then
31317 eval "$as_ac_var=yes"
31319 echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31322 eval "$as_ac_var=no"
31325 rm -f core conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
31328 ac_res=`eval echo '${'$as_ac_var'}'`
31329 { echo "$as_me:$LINENO: result: $ac_res" >&5
31330 echo "${ECHO_T}$ac_res" >&6; }
31331 if test `eval echo '${'$as_ac_var'}'` = yes; then
31332 cat >>confdefs.h <<_ACEOF
31333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31339 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31340 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31341 if test "${llvm_cv_c_printf_a+set}" = set; then
31342 echo $ECHO_N "(cached) $ECHO_C" >&6
31345 ac_cpp='$CPP $CPPFLAGS'
31346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31350 if test "$cross_compiling" = yes; then
31351 llvmac_cv_c_printf_a=no
31353 cat >conftest.$ac_ext <<_ACEOF
31357 cat confdefs.h >>conftest.$ac_ext
31358 cat >>conftest.$ac_ext <<_ACEOF
31359 /* end confdefs.h. */
31362 #include <stdlib.h>
31368 volatile double A, B;
31372 sprintf(Buffer, "%a", A);
31376 if (A != 0x1.999999999999ap-4)
31383 rm -f conftest$ac_exeext
31384 if { (ac_try="$ac_link"
31385 case "(($ac_try" in
31386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31387 *) ac_try_echo=$ac_try;;
31389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31390 (eval "$ac_link") 2>&5
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31394 { (case "(($ac_try" in
31395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31396 *) ac_try_echo=$ac_try;;
31398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31399 (eval "$ac_try") 2>&5
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); }; }; then
31403 llvm_cv_c_printf_a=yes
31405 echo "$as_me: program exited with status $ac_status" >&5
31406 echo "$as_me: failed program was:" >&5
31407 sed 's/^/| /' conftest.$ac_ext >&5
31409 ( exit $ac_status )
31410 llvmac_cv_c_printf_a=no
31412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31417 ac_cpp='$CPP $CPPFLAGS'
31418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31423 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31424 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31425 if test "$llvm_cv_c_printf_a" = "yes"; then
31427 cat >>confdefs.h <<\_ACEOF
31428 #define HAVE_PRINTF_A 1
31433 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31434 # for constant arguments. Useless!
31435 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31436 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31437 if test "${ac_cv_working_alloca_h+set}" = set; then
31438 echo $ECHO_N "(cached) $ECHO_C" >&6
31440 cat >conftest.$ac_ext <<_ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h. */
31446 #include <alloca.h>
31450 char *p = (char *) alloca (2 * sizeof (int));
31456 rm -f conftest.$ac_objext conftest$ac_exeext
31457 if { (ac_try="$ac_link"
31458 case "(($ac_try" in
31459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460 *) ac_try_echo=$ac_try;;
31462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463 (eval "$ac_link") 2>conftest.er1
31465 grep -v '^ *+' conftest.er1 >conftest.err
31467 cat conftest.err >&5
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); } &&
31470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31471 { (case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_try") 2>&5
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; } &&
31480 { ac_try='test -s conftest$ac_exeext'
31481 { (case "(($ac_try" in
31482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483 *) ac_try_echo=$ac_try;;
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486 (eval "$ac_try") 2>&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
31490 ac_cv_working_alloca_h=yes
31492 echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.$ac_ext >&5
31495 ac_cv_working_alloca_h=no
31498 rm -f core conftest.err conftest.$ac_objext \
31499 conftest$ac_exeext conftest.$ac_ext
31501 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31502 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31503 if test $ac_cv_working_alloca_h = yes; then
31505 cat >>confdefs.h <<\_ACEOF
31506 #define HAVE_ALLOCA_H 1
31511 { echo "$as_me:$LINENO: checking for alloca" >&5
31512 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31513 if test "${ac_cv_func_alloca_works+set}" = set; then
31514 echo $ECHO_N "(cached) $ECHO_C" >&6
31516 cat >conftest.$ac_ext <<_ACEOF
31519 cat confdefs.h >>conftest.$ac_ext
31520 cat >>conftest.$ac_ext <<_ACEOF
31521 /* end confdefs.h. */
31523 # define alloca __builtin_alloca
31526 # include <malloc.h>
31527 # define alloca _alloca
31530 # include <alloca.h>
31535 # ifndef alloca /* predefined by HP cc +Olibcalls */
31546 char *p = (char *) alloca (1);
31552 rm -f conftest.$ac_objext conftest$ac_exeext
31553 if { (ac_try="$ac_link"
31554 case "(($ac_try" in
31555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31556 *) ac_try_echo=$ac_try;;
31558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31559 (eval "$ac_link") 2>conftest.er1
31561 grep -v '^ *+' conftest.er1 >conftest.err
31563 cat conftest.err >&5
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); } &&
31566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31567 { (case "(($ac_try" in
31568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569 *) ac_try_echo=$ac_try;;
31571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572 (eval "$ac_try") 2>&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; } &&
31576 { ac_try='test -s conftest$ac_exeext'
31577 { (case "(($ac_try" in
31578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31579 *) ac_try_echo=$ac_try;;
31581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31582 (eval "$ac_try") 2>&5
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; }; then
31586 ac_cv_func_alloca_works=yes
31588 echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31591 ac_cv_func_alloca_works=no
31594 rm -f core conftest.err conftest.$ac_objext \
31595 conftest$ac_exeext conftest.$ac_ext
31597 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31598 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31600 if test $ac_cv_func_alloca_works = yes; then
31602 cat >>confdefs.h <<\_ACEOF
31603 #define HAVE_ALLOCA 1
31607 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31608 # that cause trouble. Some versions do not even contain alloca or
31609 # contain a buggy version. If you still want to use their alloca,
31610 # use ar to extract alloca.o from them instead of compiling alloca.c.
31612 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31614 cat >>confdefs.h <<\_ACEOF
31619 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31620 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31621 if test "${ac_cv_os_cray+set}" = set; then
31622 echo $ECHO_N "(cached) $ECHO_C" >&6
31624 cat >conftest.$ac_ext <<_ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h. */
31630 #if defined CRAY && ! defined CRAY2
31637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31638 $EGREP "webecray" >/dev/null 2>&1; then
31646 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31647 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31648 if test $ac_cv_os_cray = yes; then
31649 for ac_func in _getb67 GETB67 getb67; do
31650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31654 echo $ECHO_N "(cached) $ECHO_C" >&6
31656 cat >conftest.$ac_ext <<_ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h. */
31662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31664 #define $ac_func innocuous_$ac_func
31666 /* System header to define __stub macros and hopefully few prototypes,
31667 which can conflict with char $ac_func (); below.
31668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31669 <limits.h> exists even on freestanding compilers. */
31672 # include <limits.h>
31674 # include <assert.h>
31679 /* Override any GCC internal prototype to avoid an error.
31680 Use char because int might match the return type of a GCC
31681 builtin and then its argument prototype would still apply. */
31686 /* The GNU C library defines this for functions which it implements
31687 to always fail with ENOSYS. Some functions are actually named
31688 something starting with __ and the normal name is an alias. */
31689 #if defined __stub_$ac_func || defined __stub___$ac_func
31696 return $ac_func ();
31701 rm -f conftest.$ac_objext conftest$ac_exeext
31702 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31710 grep -v '^ *+' conftest.er1 >conftest.err
31712 cat conftest.err >&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); } &&
31715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31716 { (case "(($ac_try" in
31717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_try") 2>&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; } &&
31725 { ac_try='test -s conftest$ac_exeext'
31726 { (case "(($ac_try" in
31727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728 *) ac_try_echo=$ac_try;;
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_try") 2>&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); }; }; then
31735 eval "$as_ac_var=yes"
31737 echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31740 eval "$as_ac_var=no"
31743 rm -f core conftest.err conftest.$ac_objext \
31744 conftest$ac_exeext conftest.$ac_ext
31746 ac_res=`eval echo '${'$as_ac_var'}'`
31747 { echo "$as_me:$LINENO: result: $ac_res" >&5
31748 echo "${ECHO_T}$ac_res" >&6; }
31749 if test `eval echo '${'$as_ac_var'}'` = yes; then
31751 cat >>confdefs.h <<_ACEOF
31752 #define CRAY_STACKSEG_END $ac_func
31761 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31762 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31763 if test "${ac_cv_c_stack_direction+set}" = set; then
31764 echo $ECHO_N "(cached) $ECHO_C" >&6
31766 if test "$cross_compiling" = yes; then
31767 ac_cv_c_stack_direction=0
31769 cat >conftest.$ac_ext <<_ACEOF
31772 cat confdefs.h >>conftest.$ac_ext
31773 cat >>conftest.$ac_ext <<_ACEOF
31774 /* end confdefs.h. */
31775 $ac_includes_default
31777 find_stack_direction ()
31779 static char *addr = 0;
31784 return find_stack_direction ();
31787 return (&dummy > addr) ? 1 : -1;
31793 return find_stack_direction () < 0;
31796 rm -f conftest$ac_exeext
31797 if { (ac_try="$ac_link"
31798 case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_link") 2>&5
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31807 { (case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_try") 2>&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; }; then
31816 ac_cv_c_stack_direction=1
31818 echo "$as_me: program exited with status $ac_status" >&5
31819 echo "$as_me: failed program was:" >&5
31820 sed 's/^/| /' conftest.$ac_ext >&5
31822 ( exit $ac_status )
31823 ac_cv_c_stack_direction=-1
31825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31830 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31831 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31833 cat >>confdefs.h <<_ACEOF
31834 #define STACK_DIRECTION $ac_cv_c_stack_direction
31841 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31842 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31843 if test "${ac_cv_func_rand48+set}" = set; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31847 ac_cpp='$CXXCPP $CPPFLAGS'
31848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31852 cat >conftest.$ac_ext <<_ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 #include <stdlib.h>
31862 srand48(0);lrand48();drand48();
31867 rm -f conftest.$ac_objext
31868 if { (ac_try="$ac_compile"
31869 case "(($ac_try" in
31870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_compile") 2>conftest.er1
31876 grep -v '^ *+' conftest.er1 >conftest.err
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882 { (case "(($ac_try" in
31883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884 *) ac_try_echo=$ac_try;;
31886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_try") 2>&5
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); }; } &&
31891 { ac_try='test -s conftest.$ac_objext'
31892 { (case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_try") 2>&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
31901 ac_cv_func_rand48=yes
31903 echo "$as_me: failed program was:" >&5
31904 sed 's/^/| /' conftest.$ac_ext >&5
31906 ac_cv_func_rand48=no
31909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31911 ac_cpp='$CPP $CPPFLAGS'
31912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31917 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31918 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31920 if test "$ac_cv_func_rand48" = "yes" ; then
31922 cat >>confdefs.h <<\_ACEOF
31923 #define HAVE_RAND48 1
31929 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31930 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31931 if test "${ac_cv_cxx_namespaces+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31935 ac_cpp='$CXXCPP $CPPFLAGS'
31936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31940 cat >conftest.$ac_ext <<_ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h. */
31946 namespace Outer { namespace Inner { int i = 0; }}
31950 using namespace Outer::Inner; return i;
31955 rm -f conftest.$ac_objext
31956 if { (ac_try="$ac_compile"
31957 case "(($ac_try" in
31958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959 *) ac_try_echo=$ac_try;;
31961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962 (eval "$ac_compile") 2>conftest.er1
31964 grep -v '^ *+' conftest.er1 >conftest.err
31966 cat conftest.err >&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); } &&
31969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31970 { (case "(($ac_try" in
31971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972 *) ac_try_echo=$ac_try;;
31974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975 (eval "$ac_try") 2>&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; } &&
31979 { ac_try='test -s conftest.$ac_objext'
31980 { (case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_try") 2>&5
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; }; then
31989 ac_cv_cxx_namespaces=yes
31991 echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31994 ac_cv_cxx_namespaces=no
31997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31999 ac_cpp='$CPP $CPPFLAGS'
32000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32006 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32007 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32008 if test "$ac_cv_cxx_namespaces" = yes; then
32010 cat >>confdefs.h <<\_ACEOF
32011 #define HAVE_NAMESPACES
32016 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32017 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32018 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32023 ac_cpp='$CXXCPP $CPPFLAGS'
32024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32028 cat >conftest.$ac_ext <<_ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h. */
32034 #include <ext/hash_map>
32035 #ifdef HAVE_NAMESPACES
32036 using namespace std;
32041 hash_map<int, int> t;
32046 rm -f conftest.$ac_objext
32047 if { (ac_try="$ac_compile"
32048 case "(($ac_try" in
32049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050 *) ac_try_echo=$ac_try;;
32052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32053 (eval "$ac_compile") 2>conftest.er1
32055 grep -v '^ *+' conftest.er1 >conftest.err
32057 cat conftest.err >&5
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); } &&
32060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32061 { (case "(($ac_try" in
32062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063 *) ac_try_echo=$ac_try;;
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066 (eval "$ac_try") 2>&5
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; } &&
32070 { ac_try='test -s conftest.$ac_objext'
32071 { (case "(($ac_try" in
32072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32073 *) ac_try_echo=$ac_try;;
32075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32076 (eval "$ac_try") 2>&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); }; }; then
32080 ac_cv_cxx_have_std_ext_hash_map=yes
32082 echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32085 ac_cv_cxx_have_std_ext_hash_map=no
32088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32090 ac_cpp='$CPP $CPPFLAGS'
32091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32096 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32097 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32098 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32101 cat >>confdefs.h <<\_ACEOF
32102 #define HAVE_STD_EXT_HASH_MAP 1
32107 cat >>confdefs.h <<\_ACEOF
32108 #define HAVE_STD_EXT_HASH_MAP 0
32113 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32114 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32115 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32116 echo $ECHO_N "(cached) $ECHO_C" >&6
32120 ac_cpp='$CXXCPP $CPPFLAGS'
32121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32125 cat >conftest.$ac_ext <<_ACEOF
32128 cat confdefs.h >>conftest.$ac_ext
32129 cat >>conftest.$ac_ext <<_ACEOF
32130 /* end confdefs.h. */
32131 #include <ext/hash_map>
32132 #ifdef HAVE_NAMESPACES
32133 using namespace __gnu_cxx;
32138 hash_map<int,int> t;
32143 rm -f conftest.$ac_objext
32144 if { (ac_try="$ac_compile"
32145 case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_compile") 2>conftest.er1
32152 grep -v '^ *+' conftest.er1 >conftest.err
32154 cat conftest.err >&5
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); } &&
32157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32158 { (case "(($ac_try" in
32159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160 *) ac_try_echo=$ac_try;;
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_try") 2>&5
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; } &&
32167 { ac_try='test -s conftest.$ac_objext'
32168 { (case "(($ac_try" in
32169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170 *) ac_try_echo=$ac_try;;
32172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32173 (eval "$ac_try") 2>&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; }; then
32177 ac_cv_cxx_have_gnu_ext_hash_map=yes
32179 echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32182 ac_cv_cxx_have_gnu_ext_hash_map=no
32185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32187 ac_cpp='$CPP $CPPFLAGS'
32188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32193 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32194 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32195 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32198 cat >>confdefs.h <<\_ACEOF
32199 #define HAVE_GNU_EXT_HASH_MAP 1
32204 cat >>confdefs.h <<\_ACEOF
32205 #define HAVE_GNU_EXT_HASH_MAP 0
32210 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32211 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32212 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32213 echo $ECHO_N "(cached) $ECHO_C" >&6
32217 ac_cpp='$CXXCPP $CPPFLAGS'
32218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32222 cat >conftest.$ac_ext <<_ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h. */
32228 #include <hash_map>
32232 hash_map<int,int> t;
32237 rm -f conftest.$ac_objext
32238 if { (ac_try="$ac_compile"
32239 case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_compile") 2>conftest.er1
32246 grep -v '^ *+' conftest.er1 >conftest.err
32248 cat conftest.err >&5
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); } &&
32251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32252 { (case "(($ac_try" in
32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254 *) ac_try_echo=$ac_try;;
32256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257 (eval "$ac_try") 2>&5
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; } &&
32261 { ac_try='test -s conftest.$ac_objext'
32262 { (case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_try") 2>&5
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; }; then
32271 ac_cv_cxx_have_global_hash_map=yes
32273 echo "$as_me: failed program was:" >&5
32274 sed 's/^/| /' conftest.$ac_ext >&5
32276 ac_cv_cxx_have_global_hash_map=no
32279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32281 ac_cpp='$CPP $CPPFLAGS'
32282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32287 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32288 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32289 if test "$ac_cv_cxx_have_global_hash_map" = yes
32292 cat >>confdefs.h <<\_ACEOF
32293 #define HAVE_GLOBAL_HASH_MAP 1
32298 cat >>confdefs.h <<\_ACEOF
32299 #define HAVE_GLOBAL_HASH_MAP 0
32304 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32305 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32306 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32307 echo $ECHO_N "(cached) $ECHO_C" >&6
32311 ac_cpp='$CXXCPP $CPPFLAGS'
32312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32316 cat >conftest.$ac_ext <<_ACEOF
32319 cat confdefs.h >>conftest.$ac_ext
32320 cat >>conftest.$ac_ext <<_ACEOF
32321 /* end confdefs.h. */
32322 #include <ext/hash_set>
32323 #ifdef HAVE_NAMESPACES
32324 using namespace std;
32334 rm -f conftest.$ac_objext
32335 if { (ac_try="$ac_compile"
32336 case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_compile") 2>conftest.er1
32343 grep -v '^ *+' conftest.er1 >conftest.err
32345 cat conftest.err >&5
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); } &&
32348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32349 { (case "(($ac_try" in
32350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351 *) ac_try_echo=$ac_try;;
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354 (eval "$ac_try") 2>&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; } &&
32358 { ac_try='test -s conftest.$ac_objext'
32359 { (case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_try") 2>&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
32368 ac_cv_cxx_have_std_ext_hash_set=yes
32370 echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32373 ac_cv_cxx_have_std_ext_hash_set=no
32376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32378 ac_cpp='$CPP $CPPFLAGS'
32379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32384 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32385 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32386 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32389 cat >>confdefs.h <<\_ACEOF
32390 #define HAVE_STD_EXT_HASH_SET 1
32395 cat >>confdefs.h <<\_ACEOF
32396 #define HAVE_STD_EXT_HASH_SET 0
32401 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32402 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32403 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32404 echo $ECHO_N "(cached) $ECHO_C" >&6
32408 ac_cpp='$CXXCPP $CPPFLAGS'
32409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32413 cat >conftest.$ac_ext <<_ACEOF
32416 cat confdefs.h >>conftest.$ac_ext
32417 cat >>conftest.$ac_ext <<_ACEOF
32418 /* end confdefs.h. */
32419 #include <ext/hash_set>
32420 #ifdef HAVE_NAMESPACES
32421 using namespace __gnu_cxx;
32431 rm -f conftest.$ac_objext
32432 if { (ac_try="$ac_compile"
32433 case "(($ac_try" in
32434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435 *) ac_try_echo=$ac_try;;
32437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_compile") 2>conftest.er1
32440 grep -v '^ *+' conftest.er1 >conftest.err
32442 cat conftest.err >&5
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); } &&
32445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32446 { (case "(($ac_try" in
32447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32448 *) ac_try_echo=$ac_try;;
32450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32451 (eval "$ac_try") 2>&5
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); }; } &&
32455 { ac_try='test -s conftest.$ac_objext'
32456 { (case "(($ac_try" in
32457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458 *) ac_try_echo=$ac_try;;
32460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461 (eval "$ac_try") 2>&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; }; then
32465 ac_cv_cxx_have_gnu_ext_hash_set=yes
32467 echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32470 ac_cv_cxx_have_gnu_ext_hash_set=no
32473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32475 ac_cpp='$CPP $CPPFLAGS'
32476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32481 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32482 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32483 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32486 cat >>confdefs.h <<\_ACEOF
32487 #define HAVE_GNU_EXT_HASH_SET 1
32492 cat >>confdefs.h <<\_ACEOF
32493 #define HAVE_GNU_EXT_HASH_SET 0
32498 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32499 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32500 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32505 ac_cpp='$CXXCPP $CPPFLAGS'
32506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32510 cat >conftest.$ac_ext <<_ACEOF
32513 cat confdefs.h >>conftest.$ac_ext
32514 cat >>conftest.$ac_ext <<_ACEOF
32515 /* end confdefs.h. */
32516 #include <hash_set>
32520 hash_set<int> t; return 0;
32525 rm -f conftest.$ac_objext
32526 if { (ac_try="$ac_compile"
32527 case "(($ac_try" in
32528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529 *) ac_try_echo=$ac_try;;
32531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532 (eval "$ac_compile") 2>conftest.er1
32534 grep -v '^ *+' conftest.er1 >conftest.err
32536 cat conftest.err >&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); } &&
32539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32540 { (case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_try") 2>&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; } &&
32549 { ac_try='test -s conftest.$ac_objext'
32550 { (case "(($ac_try" in
32551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32552 *) ac_try_echo=$ac_try;;
32554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32555 (eval "$ac_try") 2>&5
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
32559 ac_cv_cxx_have_global_hash_set=yes
32561 echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32564 ac_cv_cxx_have_global_hash_set=no
32567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 ac_cpp='$CPP $CPPFLAGS'
32570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32575 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32576 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32577 if test "$ac_cv_cxx_have_global_hash_set" = yes
32580 cat >>confdefs.h <<\_ACEOF
32581 #define HAVE_GLOBAL_HASH_SET 1
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_GLOBAL_HASH_SET 0
32592 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32593 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32594 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32595 echo $ECHO_N "(cached) $ECHO_C" >&6
32599 ac_cpp='$CXXCPP $CPPFLAGS'
32600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32604 cat >conftest.$ac_ext <<_ACEOF
32607 cat confdefs.h >>conftest.$ac_ext
32608 cat >>conftest.$ac_ext <<_ACEOF
32609 /* end confdefs.h. */
32610 #include <iterator>
32611 #ifdef HAVE_NAMESPACES
32612 using namespace std;
32617 iterator<int,int,int> t; return 0;
32622 rm -f conftest.$ac_objext
32623 if { (ac_try="$ac_compile"
32624 case "(($ac_try" in
32625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626 *) ac_try_echo=$ac_try;;
32628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629 (eval "$ac_compile") 2>conftest.er1
32631 grep -v '^ *+' conftest.er1 >conftest.err
32633 cat conftest.err >&5
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
32636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32637 { (case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_try") 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.$ac_objext'
32647 { (case "(($ac_try" in
32648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649 *) ac_try_echo=$ac_try;;
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652 (eval "$ac_try") 2>&5
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; }; then
32656 ac_cv_cxx_have_std_iterator=yes
32658 echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32661 ac_cv_cxx_have_std_iterator=no
32664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32666 ac_cpp='$CPP $CPPFLAGS'
32667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32673 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32674 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32675 if test "$ac_cv_cxx_have_std_iterator" = yes
32678 cat >>confdefs.h <<\_ACEOF
32679 #define HAVE_STD_ITERATOR 1
32684 cat >>confdefs.h <<\_ACEOF
32685 #define HAVE_STD_ITERATOR 0
32690 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32691 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32692 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32697 ac_cpp='$CXXCPP $CPPFLAGS'
32698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32702 cat >conftest.$ac_ext <<_ACEOF
32705 cat confdefs.h >>conftest.$ac_ext
32706 cat >>conftest.$ac_ext <<_ACEOF
32707 /* end confdefs.h. */
32708 #include <iterator>
32709 #ifdef HAVE_NAMESPACES
32710 using namespace std;
32715 bidirectional_iterator<int,int> t; return 0;
32720 rm -f conftest.$ac_objext
32721 if { (ac_try="$ac_compile"
32722 case "(($ac_try" in
32723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724 *) ac_try_echo=$ac_try;;
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727 (eval "$ac_compile") 2>conftest.er1
32729 grep -v '^ *+' conftest.er1 >conftest.err
32731 cat conftest.err >&5
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); } &&
32734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32735 { (case "(($ac_try" in
32736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737 *) ac_try_echo=$ac_try;;
32739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740 (eval "$ac_try") 2>&5
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); }; } &&
32744 { ac_try='test -s conftest.$ac_objext'
32745 { (case "(($ac_try" in
32746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747 *) ac_try_echo=$ac_try;;
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750 (eval "$ac_try") 2>&5
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; }; then
32754 ac_cv_cxx_have_bi_iterator=yes
32756 echo "$as_me: failed program was:" >&5
32757 sed 's/^/| /' conftest.$ac_ext >&5
32759 ac_cv_cxx_have_bi_iterator=no
32762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32764 ac_cpp='$CPP $CPPFLAGS'
32765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32771 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32772 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32773 if test "$ac_cv_cxx_have_bi_iterator" = yes
32776 cat >>confdefs.h <<\_ACEOF
32777 #define HAVE_BI_ITERATOR 1
32782 cat >>confdefs.h <<\_ACEOF
32783 #define HAVE_BI_ITERATOR 0
32788 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32789 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32790 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32795 ac_cpp='$CXXCPP $CPPFLAGS'
32796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32800 cat >conftest.$ac_ext <<_ACEOF
32803 cat confdefs.h >>conftest.$ac_ext
32804 cat >>conftest.$ac_ext <<_ACEOF
32805 /* end confdefs.h. */
32806 #include <iterator>
32807 #ifdef HAVE_NAMESPACES
32808 using namespace std;
32813 forward_iterator<int,int> t; return 0;
32818 rm -f conftest.$ac_objext
32819 if { (ac_try="$ac_compile"
32820 case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_compile") 2>conftest.er1
32827 grep -v '^ *+' conftest.er1 >conftest.err
32829 cat conftest.err >&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); } &&
32832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32833 { (case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_try") 2>&5
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest.$ac_objext'
32843 { (case "(($ac_try" in
32844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845 *) ac_try_echo=$ac_try;;
32847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848 (eval "$ac_try") 2>&5
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; }; then
32852 ac_cv_cxx_have_fwd_iterator=yes
32854 echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32857 ac_cv_cxx_have_fwd_iterator=no
32860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32862 ac_cpp='$CPP $CPPFLAGS'
32863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32869 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32870 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32871 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32874 cat >>confdefs.h <<\_ACEOF
32875 #define HAVE_FWD_ITERATOR 1
32880 cat >>confdefs.h <<\_ACEOF
32881 #define HAVE_FWD_ITERATOR 0
32887 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32888 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32889 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32890 echo $ECHO_N "(cached) $ECHO_C" >&6
32893 ac_cpp='$CXXCPP $CPPFLAGS'
32894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32898 cat >conftest.$ac_ext <<_ACEOF
32901 cat confdefs.h >>conftest.$ac_ext
32902 cat >>conftest.$ac_ext <<_ACEOF
32903 /* end confdefs.h. */
32913 rm -f conftest.$ac_objext
32914 if { (ac_try="$ac_compile"
32915 case "(($ac_try" in
32916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32917 *) ac_try_echo=$ac_try;;
32919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32920 (eval "$ac_compile") 2>conftest.er1
32922 grep -v '^ *+' conftest.er1 >conftest.err
32924 cat conftest.err >&5
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); } &&
32927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32928 { (case "(($ac_try" in
32929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_try") 2>&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); }; } &&
32937 { ac_try='test -s conftest.$ac_objext'
32938 { (case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_try") 2>&5
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
32947 ac_cv_func_isnan_in_math_h=yes
32949 echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32952 ac_cv_func_isnan_in_math_h=no
32955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32957 ac_cpp='$CPP $CPPFLAGS'
32958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32963 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32964 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32967 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32969 cat >>confdefs.h <<\_ACEOF
32970 #define HAVE_ISNAN_IN_MATH_H 1
32975 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32976 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32977 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32978 echo $ECHO_N "(cached) $ECHO_C" >&6
32981 ac_cpp='$CXXCPP $CPPFLAGS'
32982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32986 cat >conftest.$ac_ext <<_ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h. */
33001 rm -f conftest.$ac_objext
33002 if { (ac_try="$ac_compile"
33003 case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_compile") 2>conftest.er1
33010 grep -v '^ *+' conftest.er1 >conftest.err
33012 cat conftest.err >&5
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } &&
33015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33016 { (case "(($ac_try" in
33017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018 *) ac_try_echo=$ac_try;;
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021 (eval "$ac_try") 2>&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; } &&
33025 { ac_try='test -s conftest.$ac_objext'
33026 { (case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_try") 2>&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; }; then
33035 ac_cv_func_isnan_in_cmath=yes
33037 echo "$as_me: failed program was:" >&5
33038 sed 's/^/| /' conftest.$ac_ext >&5
33040 ac_cv_func_isnan_in_cmath=no
33043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33045 ac_cpp='$CPP $CPPFLAGS'
33046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33051 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33052 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33054 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33056 cat >>confdefs.h <<\_ACEOF
33057 #define HAVE_ISNAN_IN_CMATH 1
33062 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33063 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33064 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33068 ac_cpp='$CXXCPP $CPPFLAGS'
33069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33073 cat >conftest.$ac_ext <<_ACEOF
33076 cat confdefs.h >>conftest.$ac_ext
33077 cat >>conftest.$ac_ext <<_ACEOF
33078 /* end confdefs.h. */
33083 float f; std::isnan(f);
33088 rm -f conftest.$ac_objext
33089 if { (ac_try="$ac_compile"
33090 case "(($ac_try" in
33091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33092 *) ac_try_echo=$ac_try;;
33094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33095 (eval "$ac_compile") 2>conftest.er1
33097 grep -v '^ *+' conftest.er1 >conftest.err
33099 cat conftest.err >&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); } &&
33102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33103 { (case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_try") 2>&5
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; } &&
33112 { ac_try='test -s conftest.$ac_objext'
33113 { (case "(($ac_try" in
33114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115 *) ac_try_echo=$ac_try;;
33117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33118 (eval "$ac_try") 2>&5
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); }; }; then
33122 ac_cv_func_std_isnan_in_cmath=yes
33124 echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33127 ac_cv_func_std_isnan_in_cmath=no
33130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33132 ac_cpp='$CPP $CPPFLAGS'
33133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33138 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33139 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33141 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33143 cat >>confdefs.h <<\_ACEOF
33144 #define HAVE_STD_ISNAN_IN_CMATH 1
33150 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33151 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33152 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33156 ac_cpp='$CXXCPP $CPPFLAGS'
33157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33161 cat >conftest.$ac_ext <<_ACEOF
33164 cat confdefs.h >>conftest.$ac_ext
33165 cat >>conftest.$ac_ext <<_ACEOF
33166 /* end confdefs.h. */
33176 rm -f conftest.$ac_objext
33177 if { (ac_try="$ac_compile"
33178 case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_compile") 2>conftest.er1
33185 grep -v '^ *+' conftest.er1 >conftest.err
33187 cat conftest.err >&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); } &&
33190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33191 { (case "(($ac_try" in
33192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193 *) ac_try_echo=$ac_try;;
33195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196 (eval "$ac_try") 2>&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; } &&
33200 { ac_try='test -s conftest.$ac_objext'
33201 { (case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_try") 2>&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
33210 ac_cv_func_isinf_in_math_h=yes
33212 echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33215 ac_cv_func_isinf_in_math_h=no
33218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33220 ac_cpp='$CPP $CPPFLAGS'
33221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33226 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33227 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33229 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33231 cat >>confdefs.h <<\_ACEOF
33232 #define HAVE_ISINF_IN_MATH_H 1
33237 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33238 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33239 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33240 echo $ECHO_N "(cached) $ECHO_C" >&6
33243 ac_cpp='$CXXCPP $CPPFLAGS'
33244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33248 cat >conftest.$ac_ext <<_ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h. */
33263 rm -f conftest.$ac_objext
33264 if { (ac_try="$ac_compile"
33265 case "(($ac_try" in
33266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33267 *) ac_try_echo=$ac_try;;
33269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33270 (eval "$ac_compile") 2>conftest.er1
33272 grep -v '^ *+' conftest.er1 >conftest.err
33274 cat conftest.err >&5
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } &&
33277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33278 { (case "(($ac_try" in
33279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280 *) ac_try_echo=$ac_try;;
33282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33283 (eval "$ac_try") 2>&5
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); }; } &&
33287 { ac_try='test -s conftest.$ac_objext'
33288 { (case "(($ac_try" in
33289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290 *) ac_try_echo=$ac_try;;
33292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293 (eval "$ac_try") 2>&5
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; }; then
33297 ac_cv_func_isinf_in_cmath=yes
33299 echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33302 ac_cv_func_isinf_in_cmath=no
33305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33307 ac_cpp='$CPP $CPPFLAGS'
33308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33313 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33314 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33316 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33318 cat >>confdefs.h <<\_ACEOF
33319 #define HAVE_ISINF_IN_CMATH 1
33324 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33325 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33326 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33330 ac_cpp='$CXXCPP $CPPFLAGS'
33331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33335 cat >conftest.$ac_ext <<_ACEOF
33338 cat confdefs.h >>conftest.$ac_ext
33339 cat >>conftest.$ac_ext <<_ACEOF
33340 /* end confdefs.h. */
33345 float f; std::isinf(f)}
33350 rm -f conftest.$ac_objext
33351 if { (ac_try="$ac_compile"
33352 case "(($ac_try" in
33353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33354 *) ac_try_echo=$ac_try;;
33356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33357 (eval "$ac_compile") 2>conftest.er1
33359 grep -v '^ *+' conftest.er1 >conftest.err
33361 cat conftest.err >&5
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); } &&
33364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33365 { (case "(($ac_try" in
33366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367 *) ac_try_echo=$ac_try;;
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 (eval "$ac_try") 2>&5
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); }; } &&
33374 { ac_try='test -s conftest.$ac_objext'
33375 { (case "(($ac_try" in
33376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33377 *) ac_try_echo=$ac_try;;
33379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33380 (eval "$ac_try") 2>&5
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
33384 ac_cv_func_std_isinf_in_cmath=yes
33386 echo "$as_me: failed program was:" >&5
33387 sed 's/^/| /' conftest.$ac_ext >&5
33389 ac_cv_func_std_isinf_in_cmath=no
33392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33394 ac_cpp='$CPP $CPPFLAGS'
33395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33400 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33401 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33403 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33405 cat >>confdefs.h <<\_ACEOF
33406 #define HAVE_STD_ISINF_IN_CMATH 1
33411 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33412 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33413 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33414 echo $ECHO_N "(cached) $ECHO_C" >&6
33417 ac_cpp='$CXXCPP $CPPFLAGS'
33418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33422 cat >conftest.$ac_ext <<_ACEOF
33425 cat confdefs.h >>conftest.$ac_ext
33426 cat >>conftest.$ac_ext <<_ACEOF
33427 /* end confdefs.h. */
33428 #include <ieeefp.h>
33432 float f; finite(f);
33437 rm -f conftest.$ac_objext
33438 if { (ac_try="$ac_compile"
33439 case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_compile") 2>conftest.er1
33446 grep -v '^ *+' conftest.er1 >conftest.err
33448 cat conftest.err >&5
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); } &&
33451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33452 { (case "(($ac_try" in
33453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454 *) ac_try_echo=$ac_try;;
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457 (eval "$ac_try") 2>&5
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); }; } &&
33461 { ac_try='test -s conftest.$ac_objext'
33462 { (case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_try") 2>&5
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; }; then
33471 ac_cv_func_finite_in_ieeefp_h=yes
33473 echo "$as_me: failed program was:" >&5
33474 sed 's/^/| /' conftest.$ac_ext >&5
33476 ac_cv_func_finite_in_ieeefp_h=no
33479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33481 ac_cpp='$CPP $CPPFLAGS'
33482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33487 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33488 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33490 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33492 cat >>confdefs.h <<\_ACEOF
33493 #define HAVE_FINITE_IN_IEEEFP_H 1
33500 if test "$llvm_cv_platform_type" = "Unix" ; then
33503 for ac_header in stdlib.h unistd.h
33505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33510 echo $ECHO_N "(cached) $ECHO_C" >&6
33512 ac_res=`eval echo '${'$as_ac_Header'}'`
33513 { echo "$as_me:$LINENO: result: $ac_res" >&5
33514 echo "${ECHO_T}$ac_res" >&6; }
33516 # Is the header compilable?
33517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33519 cat >conftest.$ac_ext <<_ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h. */
33525 $ac_includes_default
33526 #include <$ac_header>
33528 rm -f conftest.$ac_objext
33529 if { (ac_try="$ac_compile"
33530 case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_compile") 2>conftest.er1
33537 grep -v '^ *+' conftest.er1 >conftest.err
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33543 { (case "(($ac_try" in
33544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33545 *) ac_try_echo=$ac_try;;
33547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33548 (eval "$ac_try") 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; } &&
33552 { ac_try='test -s conftest.$ac_objext'
33553 { (case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_try") 2>&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 ac_header_compiler=yes
33564 echo "$as_me: failed program was:" >&5
33565 sed 's/^/| /' conftest.$ac_ext >&5
33567 ac_header_compiler=no
33570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33572 echo "${ECHO_T}$ac_header_compiler" >&6; }
33574 # Is the header present?
33575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33577 cat >conftest.$ac_ext <<_ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h. */
33583 #include <$ac_header>
33585 if { (ac_try="$ac_cpp conftest.$ac_ext"
33586 case "(($ac_try" in
33587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588 *) ac_try_echo=$ac_try;;
33590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33593 grep -v '^ *+' conftest.er1 >conftest.err
33595 cat conftest.err >&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); } >/dev/null; then
33598 if test -s conftest.err; then
33599 ac_cpp_err=$ac_c_preproc_warn_flag
33600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33607 if test -z "$ac_cpp_err"; then
33608 ac_header_preproc=yes
33610 echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33613 ac_header_preproc=no
33616 rm -f conftest.err conftest.$ac_ext
33617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33618 echo "${ECHO_T}$ac_header_preproc" >&6; }
33620 # So? What about this header?
33621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33627 ac_header_preproc=yes
33630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33643 ## ----------------------------------- ##
33644 ## Report this to llvmbugs@cs.uiuc.edu ##
33645 ## ----------------------------------- ##
33647 ) | sed "s/^/$as_me: WARNING: /" >&2
33650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33653 echo $ECHO_N "(cached) $ECHO_C" >&6
33655 eval "$as_ac_Header=\$ac_header_preproc"
33657 ac_res=`eval echo '${'$as_ac_Header'}'`
33658 { echo "$as_me:$LINENO: result: $ac_res" >&5
33659 echo "${ECHO_T}$ac_res" >&6; }
33662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33663 cat >>confdefs.h <<_ACEOF
33664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33672 for ac_func in getpagesize
33674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33678 echo $ECHO_N "(cached) $ECHO_C" >&6
33680 cat >conftest.$ac_ext <<_ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h. */
33686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33688 #define $ac_func innocuous_$ac_func
33690 /* System header to define __stub macros and hopefully few prototypes,
33691 which can conflict with char $ac_func (); below.
33692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33693 <limits.h> exists even on freestanding compilers. */
33696 # include <limits.h>
33698 # include <assert.h>
33703 /* Override any GCC internal prototype to avoid an error.
33704 Use char because int might match the return type of a GCC
33705 builtin and then its argument prototype would still apply. */
33710 /* The GNU C library defines this for functions which it implements
33711 to always fail with ENOSYS. Some functions are actually named
33712 something starting with __ and the normal name is an alias. */
33713 #if defined __stub_$ac_func || defined __stub___$ac_func
33720 return $ac_func ();
33725 rm -f conftest.$ac_objext conftest$ac_exeext
33726 if { (ac_try="$ac_link"
33727 case "(($ac_try" in
33728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33729 *) ac_try_echo=$ac_try;;
33731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33732 (eval "$ac_link") 2>conftest.er1
33734 grep -v '^ *+' conftest.er1 >conftest.err
33736 cat conftest.err >&5
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); } &&
33739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33740 { (case "(($ac_try" in
33741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742 *) ac_try_echo=$ac_try;;
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_try") 2>&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; } &&
33749 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33759 eval "$as_ac_var=yes"
33761 echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33764 eval "$as_ac_var=no"
33767 rm -f core conftest.err conftest.$ac_objext \
33768 conftest$ac_exeext conftest.$ac_ext
33770 ac_res=`eval echo '${'$as_ac_var'}'`
33771 { echo "$as_me:$LINENO: result: $ac_res" >&5
33772 echo "${ECHO_T}$ac_res" >&6; }
33773 if test `eval echo '${'$as_ac_var'}'` = yes; then
33774 cat >>confdefs.h <<_ACEOF
33775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33781 { echo "$as_me:$LINENO: checking for working mmap" >&5
33782 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33783 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33784 echo $ECHO_N "(cached) $ECHO_C" >&6
33786 if test "$cross_compiling" = yes; then
33787 ac_cv_func_mmap_fixed_mapped=no
33789 cat >conftest.$ac_ext <<_ACEOF
33792 cat confdefs.h >>conftest.$ac_ext
33793 cat >>conftest.$ac_ext <<_ACEOF
33794 /* end confdefs.h. */
33795 $ac_includes_default
33796 /* malloc might have been renamed as rpl_malloc. */
33799 /* Thanks to Mike Haertel and Jim Avera for this test.
33800 Here is a matrix of mmap possibilities:
33801 mmap private not fixed
33802 mmap private fixed at somewhere currently unmapped
33803 mmap private fixed at somewhere already mapped
33804 mmap shared not fixed
33805 mmap shared fixed at somewhere currently unmapped
33806 mmap shared fixed at somewhere already mapped
33807 For private mappings, we should verify that changes cannot be read()
33808 back from the file, nor mmap's back from the file at a different
33809 address. (There have been systems where private was not correctly
33810 implemented like the infamous i386 svr4.0, and systems where the
33811 VM page cache was not coherent with the file system buffer cache
33812 like early versions of FreeBSD and possibly contemporary NetBSD.)
33813 For shared mappings, we should conversely verify that changes get
33814 propagated back to all the places they're supposed to be.
33816 Grep wants private fixed already mapped.
33817 The main things grep needs to know about mmap are:
33818 * does it exist and is it safe to write into the mmap'd area
33819 * how to use it (BSD variants) */
33822 #include <sys/mman.h>
33824 #if !STDC_HEADERS && !HAVE_STDLIB_H
33828 /* This mess was copied from the GNU getpagesize.h. */
33829 #if !HAVE_GETPAGESIZE
33830 /* Assume that all systems that can run configure have sys/param.h. */
33831 # if !HAVE_SYS_PARAM_H
33832 # define HAVE_SYS_PARAM_H 1
33835 # ifdef _SC_PAGESIZE
33836 # define getpagesize() sysconf(_SC_PAGESIZE)
33837 # else /* no _SC_PAGESIZE */
33838 # if HAVE_SYS_PARAM_H
33839 # include <sys/param.h>
33840 # ifdef EXEC_PAGESIZE
33841 # define getpagesize() EXEC_PAGESIZE
33842 # else /* no EXEC_PAGESIZE */
33844 # define getpagesize() NBPG * CLSIZE
33847 # endif /* no CLSIZE */
33848 # else /* no NBPG */
33850 # define getpagesize() NBPC
33851 # else /* no NBPC */
33853 # define getpagesize() PAGESIZE
33854 # endif /* PAGESIZE */
33855 # endif /* no NBPC */
33856 # endif /* no NBPG */
33857 # endif /* no EXEC_PAGESIZE */
33858 # else /* no HAVE_SYS_PARAM_H */
33859 # define getpagesize() 8192 /* punt totally */
33860 # endif /* no HAVE_SYS_PARAM_H */
33861 # endif /* no _SC_PAGESIZE */
33863 #endif /* no HAVE_GETPAGESIZE */
33868 char *data, *data2, *data3;
33872 pagesize = getpagesize ();
33874 /* First, make a file with some known garbage in it. */
33875 data = (char *) malloc (pagesize);
33878 for (i = 0; i < pagesize; ++i)
33879 *(data + i) = rand ();
33881 fd = creat ("conftest.mmap", 0600);
33884 if (write (fd, data, pagesize) != pagesize)
33888 /* Next, try to mmap the file at a fixed address which already has
33889 something else allocated at it. If we can, also make sure that
33890 we see the same garbage. */
33891 fd = open ("conftest.mmap", O_RDWR);
33894 data2 = (char *) malloc (2 * pagesize);
33897 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33901 for (i = 0; i < pagesize; ++i)
33902 if (*(data + i) != *(data2 + i))
33905 /* Finally, make sure that changes to the mapped area do not
33906 percolate back to the file as seen by read(). (This is a bug on
33907 some variants of i386 svr4.0.) */
33908 for (i = 0; i < pagesize; ++i)
33909 *(data2 + i) = *(data2 + i) + 1;
33910 data3 = (char *) malloc (pagesize);
33913 if (read (fd, data3, pagesize) != pagesize)
33915 for (i = 0; i < pagesize; ++i)
33916 if (*(data + i) != *(data3 + i))
33922 rm -f conftest$ac_exeext
33923 if { (ac_try="$ac_link"
33924 case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_link") 2>&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33933 { (case "(($ac_try" in
33934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33935 *) ac_try_echo=$ac_try;;
33937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33938 (eval "$ac_try") 2>&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; }; then
33942 ac_cv_func_mmap_fixed_mapped=yes
33944 echo "$as_me: program exited with status $ac_status" >&5
33945 echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33948 ( exit $ac_status )
33949 ac_cv_func_mmap_fixed_mapped=no
33951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33956 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33957 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33958 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33960 cat >>confdefs.h <<\_ACEOF
33961 #define HAVE_MMAP 1
33965 rm -f conftest.mmap
33967 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33968 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33969 if test "${ac_cv_func_mmap_file+set}" = set; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33973 ac_cpp='$CPP $CPPFLAGS'
33974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33978 if test "$cross_compiling" = yes; then
33979 ac_cv_func_mmap_file=no
33981 cat >conftest.$ac_ext <<_ACEOF
33985 cat confdefs.h >>conftest.$ac_ext
33986 cat >>conftest.$ac_ext <<_ACEOF
33987 /* end confdefs.h. */
33989 #include <sys/types.h>
33990 #include <sys/mman.h>
33998 fd = creat ("foo",0777);
33999 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34001 return (fd != (int) MAP_FAILED);
34006 rm -f conftest$ac_exeext
34007 if { (ac_try="$ac_link"
34008 case "(($ac_try" in
34009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_link") 2>&5
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; }; then
34026 ac_cv_func_mmap_file=yes
34028 echo "$as_me: program exited with status $ac_status" >&5
34029 echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34032 ( exit $ac_status )
34033 ac_cv_func_mmap_file=no
34035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34040 ac_cpp='$CPP $CPPFLAGS'
34041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34047 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34048 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34049 if test "$ac_cv_func_mmap_file" = yes; then
34051 cat >>confdefs.h <<\_ACEOF
34052 #define HAVE_MMAP_FILE
34059 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34060 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34061 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34064 if test "$llvm_cv_os_type" = "Interix" ; then
34065 ac_cv_need_dev_zero_for_mmap=yes
34067 ac_cv_need_dev_zero_for_mmap=no
34071 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34072 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34073 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34075 cat >>confdefs.h <<\_ACEOF
34076 #define NEED_DEV_ZERO_FOR_MMAP 1
34081 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34083 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34084 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34086 if test "$ac_cv_func_mmap_file" = "no"
34088 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34089 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34095 for ac_func in __dso_handle
34097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34101 echo $ECHO_N "(cached) $ECHO_C" >&6
34103 cat >conftest.$ac_ext <<_ACEOF
34106 cat confdefs.h >>conftest.$ac_ext
34107 cat >>conftest.$ac_ext <<_ACEOF
34108 /* end confdefs.h. */
34109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34111 #define $ac_func innocuous_$ac_func
34113 /* System header to define __stub macros and hopefully few prototypes,
34114 which can conflict with char $ac_func (); below.
34115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34116 <limits.h> exists even on freestanding compilers. */
34119 # include <limits.h>
34121 # include <assert.h>
34126 /* Override any GCC internal prototype to avoid an error.
34127 Use char because int might match the return type of a GCC
34128 builtin and then its argument prototype would still apply. */
34133 /* The GNU C library defines this for functions which it implements
34134 to always fail with ENOSYS. Some functions are actually named
34135 something starting with __ and the normal name is an alias. */
34136 #if defined __stub_$ac_func || defined __stub___$ac_func
34143 return $ac_func ();
34148 rm -f conftest.$ac_objext conftest$ac_exeext
34149 if { (ac_try="$ac_link"
34150 case "(($ac_try" in
34151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34152 *) ac_try_echo=$ac_try;;
34154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34155 (eval "$ac_link") 2>conftest.er1
34157 grep -v '^ *+' conftest.er1 >conftest.err
34159 cat conftest.err >&5
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); } &&
34162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34163 { (case "(($ac_try" in
34164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165 *) ac_try_echo=$ac_try;;
34167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168 (eval "$ac_try") 2>&5
34170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); }; } &&
34172 { ac_try='test -s conftest$ac_exeext'
34173 { (case "(($ac_try" in
34174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175 *) ac_try_echo=$ac_try;;
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178 (eval "$ac_try") 2>&5
34180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181 (exit $ac_status); }; }; then
34182 eval "$as_ac_var=yes"
34184 echo "$as_me: failed program was:" >&5
34185 sed 's/^/| /' conftest.$ac_ext >&5
34187 eval "$as_ac_var=no"
34190 rm -f core conftest.err conftest.$ac_objext \
34191 conftest$ac_exeext conftest.$ac_ext
34193 ac_res=`eval echo '${'$as_ac_var'}'`
34194 { echo "$as_me:$LINENO: result: $ac_res" >&5
34195 echo "${ECHO_T}$ac_res" >&6; }
34196 if test `eval echo '${'$as_ac_var'}'` = yes; then
34197 cat >>confdefs.h <<_ACEOF
34198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34205 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34206 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34207 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34208 echo $ECHO_N "(cached) $ECHO_C" >&6
34210 llvm_cv_llvmgcc_sanity="no"
34211 if test -x "$LLVMGCC" ; then
34212 cp /dev/null conftest.c
34213 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34214 grep 'target datalayout =' > /dev/null 2>&1
34215 if test $? -eq 0 ; then
34216 llvm_cv_llvmgcc_sanity="yes"
34221 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34222 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34224 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34225 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34226 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34227 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34228 LLVMCC1=$llvmcc1path
34230 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34231 LLVMCC1PLUS=$llvmcc1pluspath
34233 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34234 LLVMGCCDIR=$llvmgccdir
34236 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34237 LLVMGCCLIBEXEC=$llvmgcclibexec
34239 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34240 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34241 LLVMGCC_VERSION=$llvmgccversion
34243 LLVMGCC_MAJVERS=$llvmgccmajvers
34245 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34246 LLVMGCC_LANGS=$llvmgcclangs
34248 { echo "$as_me:$LINENO: result: ok" >&5
34249 echo "${ECHO_T}ok" >&6; }
34252 SHLIBEXT=$libltdl_cv_shlibext
34255 # Translate the various configuration directories and other basic
34256 # information into substitutions that will end up in Makefile.config.in
34257 # that these configured values can be used by the makefiles
34258 if test "${prefix}" = "NONE" ; then
34259 prefix="/usr/local"
34261 eval LLVM_PREFIX="${prefix}";
34262 eval LLVM_BINDIR="${prefix}/bin";
34263 eval LLVM_LIBDIR="${prefix}/lib";
34264 eval LLVM_DATADIR="${prefix}/share/llvm";
34265 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34266 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34267 eval LLVM_INCLUDEDIR="${prefix}/include";
34268 eval LLVM_INFODIR="${prefix}/info";
34269 eval LLVM_MANDIR="${prefix}/man";
34270 LLVM_CONFIGTIME=`date`
34282 # Place the various directores into the config.h file as #defines so that we
34283 # can know about the installation paths within LLVM.
34285 cat >>confdefs.h <<_ACEOF
34286 #define LLVM_PREFIX "$LLVM_PREFIX"
34290 cat >>confdefs.h <<_ACEOF
34291 #define LLVM_BINDIR "$LLVM_BINDIR"
34295 cat >>confdefs.h <<_ACEOF
34296 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34300 cat >>confdefs.h <<_ACEOF
34301 #define LLVM_DATADIR "$LLVM_DATADIR"
34305 cat >>confdefs.h <<_ACEOF
34306 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34310 cat >>confdefs.h <<_ACEOF
34311 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34315 cat >>confdefs.h <<_ACEOF
34316 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34320 cat >>confdefs.h <<_ACEOF
34321 #define LLVM_INFODIR "$LLVM_INFODIR"
34325 cat >>confdefs.h <<_ACEOF
34326 #define LLVM_MANDIR "$LLVM_MANDIR"
34330 cat >>confdefs.h <<_ACEOF
34331 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34335 cat >>confdefs.h <<_ACEOF
34336 #define LLVM_HOSTTRIPLE "$host"
34340 # Determine which bindings to build.
34341 if test "$BINDINGS_TO_BUILD" = auto ; then
34342 BINDINGS_TO_BUILD=""
34343 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34344 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34347 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34350 # This isn't really configurey, but it avoids having to repeat the list in
34355 # Do any work necessary to ensure that bindings have what they need.
34356 binding_prereqs_failed=0
34357 for a_binding in $BINDINGS_TO_BUILD ; do
34358 case "$a_binding" in
34360 if test "x$OCAMLC" = x ; then
34361 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34362 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34363 binding_prereqs_failed=1
34365 if test "x$OCAMLDEP" = x ; then
34366 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34367 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34368 binding_prereqs_failed=1
34370 if test "x$OCAMLOPT" = x ; then
34371 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34372 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34374 if test "x$with_ocaml_libdir" != xauto ; then
34375 OCAML_LIBDIR=$with_ocaml_libdir
34378 ocaml_stdlib="`"$OCAMLC" -where`"
34379 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34381 # ocaml stdlib is beneath our prefix; use stdlib
34382 OCAML_LIBDIR=$ocaml_stdlib
34385 # ocaml stdlib is outside our prefix; use libdir/ocaml
34386 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34393 if test "$binding_prereqs_failed" = 1 ; then
34394 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34395 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34396 { (exit 1); exit 1; }; }
34399 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34400 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34401 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34402 echo $ECHO_N "(cached) $ECHO_C" >&6
34405 ac_cpp='$CXXCPP $CPPFLAGS'
34406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34410 oldcxxflags="$CXXFLAGS"
34411 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34412 cat >conftest.$ac_ext <<_ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h. */
34427 rm -f conftest.$ac_objext
34428 if { (ac_try="$ac_compile"
34429 case "(($ac_try" in
34430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34431 *) ac_try_echo=$ac_try;;
34433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34434 (eval "$ac_compile") 2>conftest.er1
34436 grep -v '^ *+' conftest.er1 >conftest.err
34438 cat conftest.err >&5
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } &&
34441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34442 { (case "(($ac_try" in
34443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34444 *) ac_try_echo=$ac_try;;
34446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34447 (eval "$ac_try") 2>&5
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); }; } &&
34451 { ac_try='test -s conftest.$ac_objext'
34452 { (case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_try") 2>&5
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); }; }; then
34461 llvm_cv_cxx_visibility_inlines_hidden=yes
34463 echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34466 llvm_cv_cxx_visibility_inlines_hidden=no
34469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34470 CXXFLAGS="$oldcxxflags"
34472 ac_cpp='$CPP $CPPFLAGS'
34473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34479 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34480 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34481 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34482 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34485 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34491 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34493 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34495 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34497 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34499 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34502 ac_config_files="$ac_config_files Makefile.config"
34505 ac_config_files="$ac_config_files llvm.spec"
34508 ac_config_files="$ac_config_files docs/doxygen.cfg"
34511 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34514 ac_config_commands="$ac_config_commands setup"
34516 ac_config_commands="$ac_config_commands Makefile"
34519 ac_config_commands="$ac_config_commands Makefile.common"
34522 ac_config_commands="$ac_config_commands examples/Makefile"
34525 ac_config_commands="$ac_config_commands lib/Makefile"
34528 ac_config_commands="$ac_config_commands runtime/Makefile"
34531 ac_config_commands="$ac_config_commands test/Makefile"
34534 ac_config_commands="$ac_config_commands test/Makefile.tests"
34537 ac_config_commands="$ac_config_commands tools/Makefile"
34540 ac_config_commands="$ac_config_commands utils/Makefile"
34543 ac_config_commands="$ac_config_commands projects/Makefile"
34546 ac_config_commands="$ac_config_commands bindings/Makefile"
34549 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34553 cat >confcache <<\_ACEOF
34554 # This file is a shell script that caches the results of configure
34555 # tests run on this system so they can be shared between configure
34556 # scripts and configure runs, see configure's option --config-cache.
34557 # It is not useful on other systems. If it contains results you don't
34558 # want to keep, you may remove or edit it.
34560 # config.status only pays attention to the cache file if you give it
34561 # the --recheck option to rerun configure.
34563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34565 # following values.
34569 # The following way of writing the cache mishandles newlines in values,
34570 # but we know of no workaround that is simple, portable, and efficient.
34571 # So, we kill variables containing newlines.
34572 # Ultrix sh set writes to stderr and can't be redirected directly,
34573 # and sets the high bit in the cache file unless we assign to the vars.
34575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34576 eval ac_val=\$$ac_var
34580 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34581 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34584 _ | IFS | as_nl) ;; #(
34585 *) $as_unset $ac_var ;;
34591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34592 *${as_nl}ac_space=\ *)
34593 # `set' does not quote correctly, so add quotes (double-quote
34594 # substitution turns \\\\ into \\, and sed turns \\ into \).
34597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34600 # `set' quotes correctly as required by POSIX, so do not add quotes.
34601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34615 if test -w "$cache_file"; then
34616 test "x$cache_file" != "x/dev/null" &&
34617 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34618 echo "$as_me: updating cache $cache_file" >&6;}
34619 cat confcache >$cache_file
34621 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34622 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34628 # Let make expand exec_prefix.
34629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34631 DEFS=-DHAVE_CONFIG_H
34635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34636 # 1. Remove the extension, and $U if already installed.
34637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34638 ac_i=`echo "$ac_i" | sed "$ac_script"`
34639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34640 # will be set to the directory where LIBOBJS objects are built.
34641 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34642 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34644 LIBOBJS=$ac_libobjs
34646 LTLIBOBJS=$ac_ltlibobjs
34649 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34650 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34651 Usually this means the macro was only invoked conditionally." >&5
34652 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34653 Usually this means the macro was only invoked conditionally." >&2;}
34654 { (exit 1); exit 1; }; }
34656 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34657 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34658 Usually this means the macro was only invoked conditionally." >&5
34659 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34660 Usually this means the macro was only invoked conditionally." >&2;}
34661 { (exit 1); exit 1; }; }
34664 : ${CONFIG_STATUS=./config.status}
34665 ac_clean_files_save=$ac_clean_files
34666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34669 cat >$CONFIG_STATUS <<_ACEOF
34671 # Generated by $as_me.
34672 # Run this file to recreate the current configuration.
34673 # Compiler output produced by configure, useful for debugging
34674 # configure, is in config.log if it exists.
34677 ac_cs_recheck=false
34679 SHELL=\${CONFIG_SHELL-$SHELL}
34682 cat >>$CONFIG_STATUS <<\_ACEOF
34683 ## --------------------- ##
34684 ## M4sh Initialization. ##
34685 ## --------------------- ##
34687 # Be Bourne compatible
34688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34692 # is contrary to our usage. Disable this feature.
34693 alias -g '${1+"$@"}'='"$@"'
34694 setopt NO_GLOB_SUBST
34696 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34698 BIN_SH=xpg4; export BIN_SH # for Tru64
34699 DUALCASE=1; export DUALCASE # for MKS sh
34703 # Avoid depending upon Character Ranges.
34704 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34705 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34706 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34707 as_cr_digits='0123456789'
34708 as_cr_alnum=$as_cr_Letters$as_cr_digits
34710 # The user is always right.
34711 if test "${PATH_SEPARATOR+set}" != set; then
34712 echo "#! /bin/sh" >conf$$.sh
34713 echo "exit 0" >>conf$$.sh
34715 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34723 # Support unset when possible.
34724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34732 # We need space, tab and new line, in precisely that order. Quoting is
34733 # there to prevent editors from complaining about space-tab.
34734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34735 # splitting by setting IFS to empty value.)
34740 # Find who we are. Look in the path if we contain no directory separator.
34742 *[\\/]* ) as_myself=$0 ;;
34743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34744 for as_dir in $PATH
34747 test -z "$as_dir" && as_dir=.
34748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34754 # We did not find ourselves, most probably we were run as `sh COMMAND'
34755 # in which case we are not to be found in the path.
34756 if test "x$as_myself" = x; then
34759 if test ! -f "$as_myself"; then
34760 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34761 { (exit 1); exit 1; }
34764 # Work around bugs in pre-3.0 UWIN ksh.
34765 for as_var in ENV MAIL MAILPATH
34766 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34774 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34775 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34776 LC_TELEPHONE LC_TIME
34778 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34779 eval $as_var=C; export $as_var
34781 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34785 # Required to use basename.
34786 if expr a : '\(a\)' >/dev/null 2>&1 &&
34787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34793 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34794 as_basename=basename
34800 # Name of the executable.
34801 as_me=`$as_basename -- "$0" ||
34802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34803 X"$0" : 'X\(//\)$' \| \
34804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34806 sed '/^.*\/\([^/][^/]*\)\/*$/{
34825 as_lineno_1=$LINENO
34826 as_lineno_2=$LINENO
34827 test "x$as_lineno_1" != "x$as_lineno_2" &&
34828 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34830 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34831 # uniformly replaced by the line number. The first 'sed' inserts a
34832 # line-number line after each line using $LINENO; the second 'sed'
34833 # does the real work. The second script uses 'N' to pair each
34834 # line-number line with the line containing $LINENO, and appends
34835 # trailing '-' during substitution so that $LINENO is not a special
34836 # case at line end.
34837 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34838 # scripts with optimization help from Paolo Bonzini. Blame Lee
34839 # E. McMahon (1931-1989) for sed's syntax. :-)
34851 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34854 ' >$as_me.lineno &&
34855 chmod +x "$as_me.lineno" ||
34856 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34857 { (exit 1); exit 1; }; }
34859 # Don't try to exec as it changes $[0], causing all sort of problems
34860 # (the dirname of $[0] is not the place where we might find the
34861 # original and so on. Autoconf is especially sensitive to this).
34862 . "./$as_me.lineno"
34863 # Exit status is that of the last command.
34868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34874 ECHO_C= ECHO_N= ECHO_T=
34875 case `echo -n x` in
34877 case `echo 'x\c'` in
34878 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34885 if expr a : '\(a\)' >/dev/null 2>&1 &&
34886 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34892 rm -f conf$$ conf$$.exe conf$$.file
34893 if test -d conf$$.dir; then
34894 rm -f conf$$.dir/conf$$.file
34900 if ln -s conf$$.file conf$$ 2>/dev/null; then
34902 # ... but there are two gotchas:
34903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34905 # In both cases, we have to default to `cp -p'.
34906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34908 elif ln conf$$.file conf$$ 2>/dev/null; then
34913 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34914 rmdir conf$$.dir 2>/dev/null
34916 if mkdir -p . 2>/dev/null; then
34919 test -d ./-p && rmdir ./-p
34923 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34924 # systems may use methods other than mode bits to determine executability.
34925 cat >conf$$.file <<_ASEOF
34929 chmod +x conf$$.file
34930 if test -x conf$$.file >/dev/null 2>&1; then
34931 as_executable_p="test -x"
34937 # Sed expression to map a string onto a valid CPP name.
34938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34940 # Sed expression to map a string onto a valid variable name.
34941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34946 # Save the log message, to keep $[0] and so on meaningful, and to
34947 # report actual input values of CONFIG_FILES etc. instead of their
34948 # values after options handling.
34950 This file was extended by llvm $as_me 2.4svn, which was
34951 generated by GNU Autoconf 2.60. Invocation command line was
34953 CONFIG_FILES = $CONFIG_FILES
34954 CONFIG_HEADERS = $CONFIG_HEADERS
34955 CONFIG_LINKS = $CONFIG_LINKS
34956 CONFIG_COMMANDS = $CONFIG_COMMANDS
34959 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34964 cat >>$CONFIG_STATUS <<_ACEOF
34965 # Files that config.status was made for.
34966 config_files="$ac_config_files"
34967 config_headers="$ac_config_headers"
34968 config_commands="$ac_config_commands"
34972 cat >>$CONFIG_STATUS <<\_ACEOF
34974 \`$as_me' instantiates files from templates according to the
34975 current configuration.
34977 Usage: $0 [OPTIONS] [FILE]...
34979 -h, --help print this help, then exit
34980 -V, --version print version number, then exit
34981 -q, --quiet do not print progress messages
34982 -d, --debug don't remove temporary files
34983 --recheck update $as_me by reconfiguring in the same conditions
34984 --file=FILE[:TEMPLATE]
34985 instantiate the configuration file FILE
34986 --header=FILE[:TEMPLATE]
34987 instantiate the configuration header FILE
34989 Configuration files:
34992 Configuration headers:
34995 Configuration commands:
34998 Report bugs to <bug-autoconf@gnu.org>."
35001 cat >>$CONFIG_STATUS <<_ACEOF
35003 llvm config.status 2.4svn
35004 configured by $0, generated by GNU Autoconf 2.60,
35005 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35007 Copyright (C) 2006 Free Software Foundation, Inc.
35008 This config.status script is free software; the Free Software Foundation
35009 gives unlimited permission to copy, distribute and modify it."
35016 cat >>$CONFIG_STATUS <<\_ACEOF
35017 # If no file are specified by the user, then we need to provide default
35018 # value. By we need to know if files were specified by the user.
35024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35036 # Handling of the options.
35037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35039 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35040 echo "$ac_cs_version"; exit ;;
35041 --debug | --debu | --deb | --de | --d | -d )
35043 --file | --fil | --fi | --f )
35045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35046 ac_need_defaults=false;;
35047 --header | --heade | --head | --hea )
35049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35050 ac_need_defaults=false;;
35052 # Conflict between --help and --header
35053 { echo "$as_me: error: ambiguous option: $1
35054 Try \`$0 --help' for more information." >&2
35055 { (exit 1); exit 1; }; };;
35056 --help | --hel | -h )
35057 echo "$ac_cs_usage"; exit ;;
35058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35062 # This is an error.
35063 -*) { echo "$as_me: error: unrecognized option: $1
35064 Try \`$0 --help' for more information." >&2
35065 { (exit 1); exit 1; }; } ;;
35067 *) ac_config_targets="$ac_config_targets $1"
35068 ac_need_defaults=false ;;
35074 ac_configure_extra_args=
35076 if $ac_cs_silent; then
35078 ac_configure_extra_args="$ac_configure_extra_args --silent"
35082 cat >>$CONFIG_STATUS <<_ACEOF
35083 if \$ac_cs_recheck; then
35084 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35085 CONFIG_SHELL=$SHELL
35086 export CONFIG_SHELL
35087 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35091 cat >>$CONFIG_STATUS <<\_ACEOF
35095 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35096 ## Running $as_me. ##
35102 cat >>$CONFIG_STATUS <<_ACEOF
35106 llvm_src="${srcdir}"
35110 cat >>$CONFIG_STATUS <<\_ACEOF
35112 # Handling of arguments.
35113 for ac_config_target in $ac_config_targets
35115 case $ac_config_target in
35116 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35117 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35118 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35119 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35120 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35121 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35122 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35123 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35124 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35125 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35126 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35127 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35128 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35129 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35130 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35131 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35132 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35133 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35134 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35135 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35136 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35137 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35141 { (exit 1); exit 1; }; };;
35146 # If the user did not use the arguments to specify the items to instantiate,
35147 # then the envvar interface is used. Set only those that are not.
35148 # We use the long form for the default assignment because of an extremely
35149 # bizarre bug on SunOS 4.1.3.
35150 if $ac_need_defaults; then
35151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35156 # Have a temporary directory for convenience. Make it in the build tree
35157 # simply because there is no reason against having it here, and in addition,
35158 # creating and moving files from /tmp can sometimes cause problems.
35159 # Hook for its removal unless debugging.
35160 # Note that there is a small window in which the directory will not be cleaned:
35161 # after its creation but before its name has been assigned to `$tmp'.
35165 trap 'exit_status=$?
35166 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35168 trap '{ (exit 1); exit 1; }' 1 2 13 15
35170 # Create a (secure) tmp directory for tmp files.
35173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35174 test -n "$tmp" && test -d "$tmp"
35177 tmp=./conf$$-$RANDOM
35178 (umask 077 && mkdir "$tmp")
35181 echo "$me: cannot create a temporary directory in ." >&2
35182 { (exit 1); exit 1; }
35186 # Set up the sed scripts for CONFIG_FILES section.
35189 # No need to generate the scripts if there are no CONFIG_FILES.
35190 # This happens for instance when ./config.status config.h
35191 if test -n "$CONFIG_FILES"; then
35198 for ac_last_try in false false false false false :; do
35199 cat >conf$$subs.sed <<_ACEOF
35200 SHELL!$SHELL$ac_delim
35201 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35202 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35203 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35204 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35205 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35206 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35207 exec_prefix!$exec_prefix$ac_delim
35208 prefix!$prefix$ac_delim
35209 program_transform_name!$program_transform_name$ac_delim
35210 bindir!$bindir$ac_delim
35211 sbindir!$sbindir$ac_delim
35212 libexecdir!$libexecdir$ac_delim
35213 datarootdir!$datarootdir$ac_delim
35214 datadir!$datadir$ac_delim
35215 sysconfdir!$sysconfdir$ac_delim
35216 sharedstatedir!$sharedstatedir$ac_delim
35217 localstatedir!$localstatedir$ac_delim
35218 includedir!$includedir$ac_delim
35219 oldincludedir!$oldincludedir$ac_delim
35220 docdir!$docdir$ac_delim
35221 infodir!$infodir$ac_delim
35222 htmldir!$htmldir$ac_delim
35223 dvidir!$dvidir$ac_delim
35224 pdfdir!$pdfdir$ac_delim
35225 psdir!$psdir$ac_delim
35226 libdir!$libdir$ac_delim
35227 localedir!$localedir$ac_delim
35228 mandir!$mandir$ac_delim
35229 DEFS!$DEFS$ac_delim
35230 ECHO_C!$ECHO_C$ac_delim
35231 ECHO_N!$ECHO_N$ac_delim
35232 ECHO_T!$ECHO_T$ac_delim
35233 LIBS!$LIBS$ac_delim
35234 build_alias!$build_alias$ac_delim
35235 host_alias!$host_alias$ac_delim
35236 target_alias!$target_alias$ac_delim
35237 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35238 subdirs!$subdirs$ac_delim
35239 build!$build$ac_delim
35240 build_cpu!$build_cpu$ac_delim
35241 build_vendor!$build_vendor$ac_delim
35242 build_os!$build_os$ac_delim
35243 host!$host$ac_delim
35244 host_cpu!$host_cpu$ac_delim
35245 host_vendor!$host_vendor$ac_delim
35246 host_os!$host_os$ac_delim
35247 target!$target$ac_delim
35248 target_cpu!$target_cpu$ac_delim
35249 target_vendor!$target_vendor$ac_delim
35250 target_os!$target_os$ac_delim
35252 LINKALL!$LINKALL$ac_delim
35253 NOLINKALL!$NOLINKALL$ac_delim
35254 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35255 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35256 ARCH!$ARCH$ac_delim
35257 ENDIAN!$ENDIAN$ac_delim
35259 CFLAGS!$CFLAGS$ac_delim
35260 LDFLAGS!$LDFLAGS$ac_delim
35261 CPPFLAGS!$CPPFLAGS$ac_delim
35262 ac_ct_CC!$ac_ct_CC$ac_delim
35263 EXEEXT!$EXEEXT$ac_delim
35264 OBJEXT!$OBJEXT$ac_delim
35266 GREP!$GREP$ac_delim
35267 EGREP!$EGREP$ac_delim
35268 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35269 BUILD_CC!$BUILD_CC$ac_delim
35270 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35271 BUILD_CXX!$BUILD_CXX$ac_delim
35272 CVSBUILD!$CVSBUILD$ac_delim
35273 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35274 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35275 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35276 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35277 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35279 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35280 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35281 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35282 ENABLE_PIC!$ENABLE_PIC$ac_delim
35283 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35284 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35285 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35287 CXXFLAGS!$CXXFLAGS$ac_delim
35288 ac_ct_CXX!$ac_ct_CXX$ac_delim
35290 LEXLIB!$LEXLIB$ac_delim
35291 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35292 FLEX!$FLEX$ac_delim
35293 YACC!$YACC$ac_delim
35294 YFLAGS!$YFLAGS$ac_delim
35295 BISON!$BISON$ac_delim
35299 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35301 elif $ac_last_try; then
35302 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35304 { (exit 1); exit 1; }; }
35306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35311 if test -n "$ac_eof"; then
35312 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35313 ac_eof=`expr $ac_eof + 1`
35316 cat >>$CONFIG_STATUS <<_ACEOF
35317 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35322 s/^/s,@/; s/!/@,|#_!!_#|/
35325 s/'"$ac_delim"'$/,g/; t
35327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35328 ' >>$CONFIG_STATUS <conf$$subs.sed
35329 rm -f conf$$subs.sed
35330 cat >>$CONFIG_STATUS <<_ACEOF
35336 for ac_last_try in false false false false false :; do
35337 cat >conf$$subs.sed <<_ACEOF
35338 ifGNUmake!$ifGNUmake$ac_delim
35339 LN_S!$LN_S$ac_delim
35342 DATE!$DATE$ac_delim
35343 FIND!$FIND$ac_delim
35344 MKDIR!$MKDIR$ac_delim
35346 RANLIB!$RANLIB$ac_delim
35350 BINPWD!$BINPWD$ac_delim
35351 GRAPHVIZ!$GRAPHVIZ$ac_delim
35354 DOTTY!$DOTTY$ac_delim
35355 PERL!$PERL$ac_delim
35356 HAVE_PERL!$HAVE_PERL$ac_delim
35357 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35358 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35359 INSTALL_DATA!$INSTALL_DATA$ac_delim
35360 BZIP2!$BZIP2$ac_delim
35361 DOXYGEN!$DOXYGEN$ac_delim
35362 GROFF!$GROFF$ac_delim
35363 GZIP!$GZIP$ac_delim
35364 POD2HTML!$POD2HTML$ac_delim
35365 POD2MAN!$POD2MAN$ac_delim
35366 RUNTEST!$RUNTEST$ac_delim
35367 TCLSH!$TCLSH$ac_delim
35369 OCAMLC!$OCAMLC$ac_delim
35370 OCAMLOPT!$OCAMLOPT$ac_delim
35371 OCAMLDEP!$OCAMLDEP$ac_delim
35372 OCAMLDOC!$OCAMLDOC$ac_delim
35373 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35374 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35375 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35376 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35377 LIBADD_DL!$LIBADD_DL$ac_delim
35378 ECHO!$ECHO$ac_delim
35380 STRIP!$STRIP$ac_delim
35381 CXXCPP!$CXXCPP$ac_delim
35383 FFLAGS!$FFLAGS$ac_delim
35384 ac_ct_F77!$ac_ct_F77$ac_delim
35385 LIBTOOL!$LIBTOOL$ac_delim
35386 LLVMGCC!$LLVMGCC$ac_delim
35387 LLVMGXX!$LLVMGXX$ac_delim
35388 USE_UDIS86!$USE_UDIS86$ac_delim
35389 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35390 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35391 ALLOCA!$ALLOCA$ac_delim
35392 MMAP_FILE!$MMAP_FILE$ac_delim
35393 LLVMCC1!$LLVMCC1$ac_delim
35394 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35395 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35396 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35397 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35398 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35399 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35400 SHLIBEXT!$SHLIBEXT$ac_delim
35401 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35402 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35403 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35404 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35405 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35406 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35407 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35408 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35409 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35410 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35411 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35412 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35413 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35414 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35415 LIBOBJS!$LIBOBJS$ac_delim
35416 LTLIBOBJS!$LTLIBOBJS$ac_delim
35419 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35421 elif $ac_last_try; then
35422 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35423 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35424 { (exit 1); exit 1; }; }
35426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35430 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35431 if test -n "$ac_eof"; then
35432 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35433 ac_eof=`expr $ac_eof + 1`
35436 cat >>$CONFIG_STATUS <<_ACEOF
35437 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35441 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35442 s/^/s,@/; s/!/@,|#_!!_#|/
35445 s/'"$ac_delim"'$/,g/; t
35447 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35448 ' >>$CONFIG_STATUS <conf$$subs.sed
35449 rm -f conf$$subs.sed
35450 cat >>$CONFIG_STATUS <<_ACEOF
35457 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35458 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35459 # trailing colons and then remove the whole line if VPATH becomes empty
35460 # (actually we leave an empty line to preserve line numbers).
35461 if test "x$srcdir" = x.; then
35462 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35463 s/:*\$(srcdir):*/:/
35464 s/:*\${srcdir}:*/:/
35466 s/^\([^=]*=[ ]*\):*/\1/
35472 cat >>$CONFIG_STATUS <<\_ACEOF
35473 fi # test -n "$CONFIG_FILES"
35476 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35479 :[FHLC]) ac_mode=$ac_tag; continue;;
35481 case $ac_mode$ac_tag in
35483 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35484 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35485 { (exit 1); exit 1; }; };;
35486 :[FH]-) ac_tag=-:-;;
35487 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35504 -) ac_f="$tmp/stdin";;
35505 *) # Look for the file first in the build tree, then in the source tree
35506 # (if the path is not absolute). The absolute path cannot be DOS-style,
35507 # because $ac_f cannot contain `:'.
35511 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35513 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35514 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35515 { (exit 1); exit 1; }; };;
35517 ac_file_inputs="$ac_file_inputs $ac_f"
35520 # Let's still pretend it is `configure' which instantiates (i.e., don't
35521 # use $as_me), people would be surprised to read:
35522 # /* config.h. Generated by config.status. */
35523 configure_input="Generated from "`IFS=:
35524 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35525 if test x"$ac_file" != x-; then
35526 configure_input="$ac_file. $configure_input"
35527 { echo "$as_me:$LINENO: creating $ac_file" >&5
35528 echo "$as_me: creating $ac_file" >&6;}
35532 *:-:* | *:-) cat >"$tmp/stdin";;
35537 ac_dir=`$as_dirname -- "$ac_file" ||
35538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35539 X"$ac_file" : 'X\(//\)[^/]' \| \
35540 X"$ac_file" : 'X\(//\)$' \| \
35541 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35547 /^X\(\/\/\)[^/].*/{
35562 -*) as_dir=./$as_dir;;
35564 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35568 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35569 *) as_qdir=$as_dir;;
35571 as_dirs="'$as_qdir' $as_dirs"
35572 as_dir=`$as_dirname -- "$as_dir" ||
35573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35574 X"$as_dir" : 'X\(//\)[^/]' \| \
35575 X"$as_dir" : 'X\(//\)$' \| \
35576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35582 /^X\(\/\/\)[^/].*/{
35595 test -d "$as_dir" && break
35597 test -z "$as_dirs" || eval "mkdir $as_dirs"
35598 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35599 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35600 { (exit 1); exit 1; }; }; }
35604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35607 # A ".." for each directory in $ac_dir_suffix.
35608 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35609 case $ac_top_builddir_sub in
35610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35614 ac_abs_top_builddir=$ac_pwd
35615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35616 # for backward compatibility:
35617 ac_top_builddir=$ac_top_build_prefix
35620 .) # We are building in place.
35622 ac_top_srcdir=$ac_top_builddir_sub
35623 ac_abs_top_srcdir=$ac_pwd ;;
35624 [\\/]* | ?:[\\/]* ) # Absolute name.
35625 ac_srcdir=$srcdir$ac_dir_suffix;
35626 ac_top_srcdir=$srcdir
35627 ac_abs_top_srcdir=$srcdir ;;
35628 *) # Relative name.
35629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35630 ac_top_srcdir=$ac_top_build_prefix$srcdir
35631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35643 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35644 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35648 cat >>$CONFIG_STATUS <<\_ACEOF
35649 # If the template does not know about datarootdir, expand it.
35650 # FIXME: This hack should be removed a few years after 2.60.
35651 ac_datarootdir_hack=; ac_datarootdir_seen=
35653 case `sed -n '/datarootdir/ {
35662 ' $ac_file_inputs` in
35663 *datarootdir*) ac_datarootdir_seen=yes;;
35664 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35665 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35666 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35668 cat >>$CONFIG_STATUS <<_ACEOF
35669 ac_datarootdir_hack='
35670 s&@datadir@&$datadir&g
35671 s&@docdir@&$docdir&g
35672 s&@infodir@&$infodir&g
35673 s&@localedir@&$localedir&g
35674 s&@mandir@&$mandir&g
35675 s&\\\${datarootdir}&$datarootdir&g' ;;
35679 # Neutralize VPATH when `$srcdir' = `.'.
35680 # Shell code in configure.ac might set extrasub.
35681 # FIXME: do we really want to maintain this feature?
35682 cat >>$CONFIG_STATUS <<_ACEOF
35686 cat >>$CONFIG_STATUS <<\_ACEOF
35688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35689 s&@configure_input@&$configure_input&;t t
35690 s&@top_builddir@&$ac_top_builddir_sub&;t t
35691 s&@srcdir@&$ac_srcdir&;t t
35692 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35693 s&@top_srcdir@&$ac_top_srcdir&;t t
35694 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35695 s&@builddir@&$ac_builddir&;t t
35696 s&@abs_builddir@&$ac_abs_builddir&;t t
35697 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35698 s&@INSTALL@&$ac_INSTALL&;t t
35699 $ac_datarootdir_hack
35700 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35702 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35703 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35704 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35705 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35706 which seems to be undefined. Please make sure it is defined." >&5
35707 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35708 which seems to be undefined. Please make sure it is defined." >&2;}
35712 -) cat "$tmp/out"; rm -f "$tmp/out";;
35713 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35722 # Transform confdefs.h into a sed script `conftest.defines', that
35723 # substitutes the proper values into config.h.in to produce config.h.
35724 rm -f conftest.defines conftest.tail
35725 # First, append a space to every undef/define line, to ease matching.
35726 echo 's/$/ /' >conftest.defines
35727 # Then, protect against being on the right side of a sed subst, or in
35728 # an unquoted here document, in config.status. If some macros were
35729 # called several times there might be several #defines for the same
35730 # symbol, which is useless. But do not sort them, since the last
35731 # AC_DEFINE must be honored.
35732 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35733 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35734 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35735 # PARAMS is the parameter list in the macro definition--in most cases, it's
35736 # just an empty string.
35737 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35738 ac_dB='\\)[ (].*,\\1define\\2'
35746 s/^[ ]*#[ ]*define[ ][ ]*//
35751 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35752 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35753 ' >>conftest.defines
35755 # Remove the space that was appended to ease matching.
35756 # Then replace #undef with comments. This is necessary, for
35757 # example, in the case of _POSIX_SOURCE, which is predefined and required
35758 # on some systems where configure will not decide to define it.
35759 # (The regexp can be short, since the line contains either #define or #undef.)
35761 s,^[ #]*u.*,/* & */,' >>conftest.defines
35763 # Break up conftest.defines:
35764 ac_max_sed_lines=50
35766 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35767 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35768 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35770 ac_in='$ac_file_inputs'
35771 ac_out='"$tmp/out1"'
35772 ac_nxt='"$tmp/out2"'
35776 # Write a here document:
35777 cat >>$CONFIG_STATUS <<_ACEOF
35778 # First, check the format of the line:
35779 cat >"\$tmp/defines.sed" <<\\CEOF
35780 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35781 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35785 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35787 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35788 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35789 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35790 grep . conftest.tail >/dev/null || break
35791 rm -f conftest.defines
35792 mv conftest.tail conftest.defines
35794 rm -f conftest.defines conftest.tail
35796 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35797 cat >>$CONFIG_STATUS <<\_ACEOF
35798 if test x"$ac_file" != x-; then
35799 echo "/* $configure_input */" >"$tmp/config.h"
35800 cat "$ac_result" >>"$tmp/config.h"
35801 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35802 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35803 echo "$as_me: $ac_file is unchanged" >&6;}
35806 mv "$tmp/config.h" $ac_file
35809 echo "/* $configure_input */"
35815 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35816 echo "$as_me: executing $ac_file commands" >&6;}
35821 case $ac_file$ac_mode in
35822 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35823 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35824 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35825 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35826 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35827 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35828 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35829 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35830 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35831 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35832 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35833 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35834 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35835 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35836 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35837 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35838 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35839 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35840 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35841 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35842 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35843 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35844 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35845 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35851 { (exit 0); exit 0; }
35853 chmod +x $CONFIG_STATUS
35854 ac_clean_files=$ac_clean_files_save
35857 # configure is writing to config.log, and then calls config.status.
35858 # config.status does its own redirection, appending to config.log.
35859 # Unfortunately, on DOS this fails, as config.log is still kept open
35860 # by configure, so config.status won't be able to write to it; its
35861 # output is simply discarded. So we exec the FD to /dev/null,
35862 # effectively closing config.log, so it can be properly (re)opened and
35863 # appended to by config.status. When coming back to configure, we
35864 # need to make the FD available again.
35865 if test "$no_create" != yes; then
35867 ac_config_status_args=
35868 test "$silent" = yes &&
35869 ac_config_status_args="$ac_config_status_args --quiet"
35871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35874 # would make configure fail if this is the last instruction.
35875 $ac_cs_success || { (exit 1); exit 1; }
35879 # CONFIG_SUBDIRS section.
35881 if test "$no_recursion" != yes; then
35883 # Remove --cache-file and --srcdir arguments so they do not pile up.
35884 ac_sub_configure_args=
35886 eval "set x $ac_configure_args"
35890 if test -n "$ac_prev"; then
35895 -cache-file | --cache-file | --cache-fil | --cache-fi \
35896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35897 ac_prev=cache_file ;;
35898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35902 --config-cache | -C)
35904 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35906 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35908 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35910 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35914 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35916 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35920 # Always prepend --prefix to ensure using the same prefix
35921 # in subdir configurations.
35922 ac_arg="--prefix=$prefix"
35924 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35926 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35929 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35931 # Do not complain, so a configure script can configure whichever
35932 # parts of a large source tree are present.
35933 test -d "$srcdir/$ac_dir" || continue
35935 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35936 echo "$as_me:$LINENO: $ac_msg" >&5
35940 -*) as_dir=./$as_dir;;
35942 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35946 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35947 *) as_qdir=$as_dir;;
35949 as_dirs="'$as_qdir' $as_dirs"
35950 as_dir=`$as_dirname -- "$as_dir" ||
35951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35952 X"$as_dir" : 'X\(//\)[^/]' \| \
35953 X"$as_dir" : 'X\(//\)$' \| \
35954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35960 /^X\(\/\/\)[^/].*/{
35973 test -d "$as_dir" && break
35975 test -z "$as_dirs" || eval "mkdir $as_dirs"
35976 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35977 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35978 { (exit 1); exit 1; }; }; }
35982 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35985 # A ".." for each directory in $ac_dir_suffix.
35986 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35987 case $ac_top_builddir_sub in
35988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35992 ac_abs_top_builddir=$ac_pwd
35993 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35994 # for backward compatibility:
35995 ac_top_builddir=$ac_top_build_prefix
35998 .) # We are building in place.
36000 ac_top_srcdir=$ac_top_builddir_sub
36001 ac_abs_top_srcdir=$ac_pwd ;;
36002 [\\/]* | ?:[\\/]* ) # Absolute name.
36003 ac_srcdir=$srcdir$ac_dir_suffix;
36004 ac_top_srcdir=$srcdir
36005 ac_abs_top_srcdir=$srcdir ;;
36006 *) # Relative name.
36007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36008 ac_top_srcdir=$ac_top_build_prefix$srcdir
36009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36011 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36016 # Check for guested configure; otherwise get Cygnus style configure.
36017 if test -f "$ac_srcdir/configure.gnu"; then
36018 ac_sub_configure=$ac_srcdir/configure.gnu
36019 elif test -f "$ac_srcdir/configure"; then
36020 ac_sub_configure=$ac_srcdir/configure
36021 elif test -f "$ac_srcdir/configure.in"; then
36022 # This should be Cygnus configure.
36023 ac_sub_configure=$ac_aux_dir/configure
36025 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36026 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36030 # The recursion is here.
36031 if test -n "$ac_sub_configure"; then
36032 # Make the cache file name correct relative to the subdirectory.
36033 case $cache_file in
36034 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36035 *) # Relative name.
36036 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36039 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36040 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36041 # The eval makes quoting arguments work.
36042 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36043 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36044 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36045 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36046 { (exit 1); exit 1; }; }