2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.5svn.
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.5svn'
719 PACKAGE_STRING='llvm 2.5svn'
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.5svn 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.5svn:";;
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.5svn
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.5svn, 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;
9007 if test x"${enable_ltdl_install-no}" != xno; then
9009 INSTALL_LTDL_FALSE='#'
9011 INSTALL_LTDL_TRUE='#'
9017 if test x"${enable_ltdl_convenience-no}" != xno; then
9018 CONVENIENCE_LTDL_TRUE=
9019 CONVENIENCE_LTDL_FALSE='#'
9021 CONVENIENCE_LTDL_TRUE='#'
9022 CONVENIENCE_LTDL_FALSE=
9026 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9029 libname_spec='lib$name'
9037 shlibpath_overrides_runpath=unknown
9039 dynamic_linker="$host_os ld.so"
9040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9041 if test "$GCC" = yes; then
9042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9044 # if the path contains ";" then we assume it to be the separator
9045 # otherwise default to the standard path separator (i.e. ":") - it is
9046 # assumed that no part of a normal pathname contains ";" but that should
9047 # okay in the real world where ";" in dirpaths is itself problematic.
9048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9055 need_lib_prefix=unknown
9056 hardcode_into_libs=no
9058 # when you set need_version to no, make sure it does not cause -set_version
9059 # flags to be left without arguments
9060 need_version=unknown
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9066 shlibpath_var=LIBPATH
9068 # AIX 3 has no versioning support, so we append a major version to the name.
9069 soname_spec='${libname}${release}${shared_ext}$major'
9076 hardcode_into_libs=yes
9077 if test "$host_cpu" = ia64; then
9078 # AIX 5 supports IA64
9079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9080 shlibpath_var=LD_LIBRARY_PATH
9082 # With GCC up to 2.95.x, collect2 would create an import file
9083 # for dependence libraries. The import file would start with
9084 # the line `#! .'. This would cause the generated library to
9085 # depend on `.', always an invalid library. This was fixed in
9086 # development snapshots of GCC prior to 3.0.
9088 aix4 | aix4.[01] | aix4.[01].*)
9089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9099 # soname into executable. Probably we can add versioning support to
9100 # collect2, so additional links can be useful in future.
9101 if test "$aix_use_runtimelinking" = yes; then
9102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9103 # instead of lib<name>.a to let people know that these are not
9104 # typical AIX shared libraries.
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 # We preserve .a as extension for shared libraries through AIX4.2
9108 # and later when we are not doing run time linking.
9109 library_names_spec='${libname}${release}.a $libname.a'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LIBPATH
9117 library_names_spec='$libname.ixlibrary $libname.a'
9118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9119 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'
9123 library_names_spec='${libname}${shared_ext}'
9124 dynamic_linker="$host_os ld.so"
9125 shlibpath_var=LIBRARY_PATH
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9137 # the default ld.so.conf also contains /usr/contrib/lib and
9138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9139 # libtool to hard-code these into programs
9142 cygwin* | mingw* | pw32*)
9143 version_type=windows
9148 case $GCC,$host_os in
9149 yes,cygwin* | yes,mingw* | yes,pw32*)
9150 library_names_spec='$libname.dll.a'
9151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9152 postinstall_cmds='base_file=`basename \${file}`~
9153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9154 dldir=$destdir/`dirname \$dlpath`~
9155 test -d \$dldir || mkdir -p \$dldir~
9156 $install_prog $dir/$dlname \$dldir/$dlname~
9157 chmod a+x \$dldir/$dlname'
9158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9159 dlpath=$dir/\$dldll~
9161 shlibpath_overrides_runpath=yes
9165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9167 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9170 # MinGW DLLs use traditional 'lib' prefix
9171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9173 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9174 # It is most probably a Windows format PATH printed by
9175 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9176 # path with ; separators, and with drive letters. We can handle the
9177 # drive letters (cygwin fileutils understands them), so leave them,
9178 # especially as we might pass files found there to a mingw objdump,
9179 # which wouldn't understand a cygwinified path. Ahh.
9180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9186 # pw32 DLLs use 'pw' prefix rather than 'lib'
9187 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9196 dynamic_linker='Win32 ld.exe'
9197 # FIXME: first we should search . and the directory the executable is in
9201 darwin* | rhapsody*)
9202 dynamic_linker="$host_os dyld"
9206 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9207 soname_spec='${libname}${release}${major}$shared_ext'
9208 shlibpath_overrides_runpath=yes
9209 shlibpath_var=DYLD_LIBRARY_PATH
9210 shrext_cmds='.dylib'
9211 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9212 if test "$GCC" = yes; then
9213 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"`
9215 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=no
9241 hardcode_into_libs=yes
9242 dynamic_linker='GNU ld.so'
9245 freebsd* | dragonfly*)
9246 # DragonFly does not have aout. When/if they implement a new
9247 # versioning mechanism, adjust this.
9248 if test -x /usr/bin/objformat; then
9249 objformat=`/usr/bin/objformat`
9252 freebsd[123]*) objformat=aout ;;
9256 version_type=freebsd-$objformat
9257 case $version_type in
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9268 shlibpath_var=LD_LIBRARY_PATH
9271 shlibpath_overrides_runpath=yes
9273 freebsd3.[01]* | freebsdelf3.[01]*)
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9279 shlibpath_overrides_runpath=no
9280 hardcode_into_libs=yes
9282 freebsd*) # from 4.6 on
9283 shlibpath_overrides_runpath=yes
9284 hardcode_into_libs=yes
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 hardcode_into_libs=yes
9299 hpux9* | hpux10* | hpux11*)
9300 # Give a soname corresponding to the major version so that dld.sl refuses to
9301 # link against other versions.
9308 hardcode_into_libs=yes
9309 dynamic_linker="$host_os dld.so"
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 if test "X$HPUX_IA64_MODE" = X32; then
9315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9323 hardcode_into_libs=yes
9324 dynamic_linker="$host_os dld.sl"
9325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9334 dynamic_linker="$host_os dld.sl"
9335 shlibpath_var=SHLIB_PATH
9336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9342 postinstall_cmds='chmod 555 $lib'
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=no
9354 hardcode_into_libs=yes
9357 irix5* | irix6* | nonstopux*)
9359 nonstopux*) version_type=nonstopux ;;
9361 if test "$lt_cv_prog_gnu_ld" = yes; then
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9372 irix5* | nonstopux*)
9376 case $LD in # libtool.m4 will add one of these switches to LD
9377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9378 libsuff= shlibsuff= libmagic=32-bit;;
9379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9380 libsuff=32 shlibsuff=N32 libmagic=N32;;
9381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9383 *) libsuff= shlibsuff= libmagic=never-match;;
9387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9388 shlibpath_overrides_runpath=no
9389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9391 hardcode_into_libs=yes
9394 # No shared lib support for Linux oldld, aout, or coff.
9395 linux*oldld* | linux*aout* | linux*coff*)
9399 # This must be Linux ELF.
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 shlibpath_overrides_runpath=no
9409 # This implies no fast_install, which is unacceptable.
9410 # Some rework will be needed to allow for fast_install
9411 # before this can be enabled.
9412 hardcode_into_libs=yes
9414 # Append ld.so.conf contents to the search path
9415 if test -f /etc/ld.so.conf; then
9416 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' ' '`
9417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9420 # We used to test for /lib/ld.so.1 and disable shared libraries on
9421 # powerpc, because MkLinux only supported shared libraries with the
9422 # GNU dynamic linker. Since this was broken with cross compilers,
9423 # most powerpc-linux boxes support dynamic linking these days and
9424 # people can always --disable-shared, the test was removed, and we
9425 # assume the GNU/Linux dynamic linker is in use.
9426 dynamic_linker='GNU/Linux ld.so'
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 shlibpath_overrides_runpath=no
9437 hardcode_into_libs=yes
9438 dynamic_linker='GNU ld.so'
9445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9448 dynamic_linker='NetBSD (a.out) ld.so'
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 dynamic_linker='NetBSD ld.elf_so'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 hardcode_into_libs=yes
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=yes
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 shlibpath_overrides_runpath=yes
9478 sys_lib_dlsearch_path_spec="/usr/lib"
9480 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9482 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9483 *) need_version=no ;;
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9490 openbsd2.[89] | openbsd2.[89].*)
9491 shlibpath_overrides_runpath=no
9494 shlibpath_overrides_runpath=yes
9498 shlibpath_overrides_runpath=yes
9503 libname_spec='$name'
9506 library_names_spec='$libname${shared_ext} $libname.a'
9507 dynamic_linker='OS/2 ld.exe'
9508 shlibpath_var=LIBPATH
9511 osf3* | osf4* | osf5*)
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=yes
9530 hardcode_into_libs=yes
9531 # ldd complains unless libraries are executable
9532 postinstall_cmds='chmod +x $lib'
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 shlibpath_overrides_runpath=yes
9541 if test "$with_gnu_ld" = yes; then
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9552 case $host_vendor in
9554 shlibpath_overrides_runpath=no
9556 export_dynamic_flag_spec='${wl}-Blargedynsym'
9557 runpath_var=LD_RUN_PATH
9565 shlibpath_overrides_runpath=no
9566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9572 if test -d /usr/nec ;then
9574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9575 soname_spec='$libname${shared_ext}.$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9581 version_type=freebsd-elf
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 hardcode_into_libs=yes
9588 if test "$with_gnu_ld" = yes; then
9589 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9590 shlibpath_overrides_runpath=no
9592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9593 shlibpath_overrides_runpath=yes
9596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9600 sys_lib_dlsearch_path_spec='/usr/lib'
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 shlibpath_var=LD_LIBRARY_PATH
9614 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9615 echo "${ECHO_T}$dynamic_linker" >&6; }
9616 test "$dynamic_linker" = no && can_build_shared=no
9618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9619 if test "$GCC" = yes; then
9620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9624 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9625 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9626 if test "${libltdl_cv_shlibext+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 eval libltdl_cv_shlibext=$shrext_cmds
9634 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9635 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9636 if test -n "$libltdl_cv_shlibext"; then
9638 cat >>confdefs.h <<_ACEOF
9639 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9645 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9646 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9647 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 libltdl_cv_shlibpath_var="$shlibpath_var"
9652 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9653 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9654 if test -n "$libltdl_cv_shlibpath_var"; then
9656 cat >>confdefs.h <<_ACEOF
9657 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9663 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9664 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9665 if test "${libltdl_cv_sys_search_path+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9670 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9671 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9672 if test -n "$libltdl_cv_sys_search_path"; then
9674 for dir in $libltdl_cv_sys_search_path; do
9675 if test -z "$sys_search_path"; then
9676 sys_search_path="$dir"
9678 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9682 cat >>confdefs.h <<_ACEOF
9683 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9688 { echo "$as_me:$LINENO: checking for objdir" >&5
9689 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9690 if test "${libltdl_cv_objdir+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 libltdl_cv_objdir="$objdir"
9694 if test -n "$objdir"; then
9697 rm -f .libs 2>/dev/null
9698 mkdir .libs 2>/dev/null
9699 if test -d .libs; then
9700 libltdl_cv_objdir=.libs
9702 # MS-DOS does not allow filenames that begin with a dot.
9703 libltdl_cv_objdir=_libs
9705 rmdir .libs 2>/dev/null
9709 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9710 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9712 cat >>confdefs.h <<_ACEOF
9713 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9721 # Check for command to grab the raw symbol name followed by C symbol from nm.
9722 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9723 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9724 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 # These are sane defaults that work on at least a few old systems.
9729 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9731 # Character class describing NM global symbol codes.
9732 symcode='[BCDEGRST]'
9734 # Regexp to match symbols that can be accessed directly from C.
9735 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9737 # Transform an extracted symbol line into a proper C declaration
9738 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9740 # Transform an extracted symbol line into symbol name and symbol address
9741 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'"
9743 # Define system-specific variables.
9748 cygwin* | mingw* | pw32*)
9749 symcode='[ABCDGISTW]'
9751 hpux*) # Its linker distinguishes data from code symbols
9752 if test "$host_cpu" = ia64; then
9753 symcode='[ABCDEGRST]'
9755 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9756 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'"
9759 if test "$host_cpu" = ia64; then
9760 symcode='[ABCDGIRSTW]'
9761 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9762 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'"
9766 symcode='[BCDEGRST]'
9769 symcode='[BCDEGQRST]'
9780 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9788 # Handle CRLF in mingw tool chain
9792 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9796 # If we're using GNU nm, then use its standard symbol codes.
9797 case `$NM -V 2>&1` in
9798 *GNU* | *'with BFD'*)
9799 symcode='[ABCDGIRSTW]' ;;
9802 # Try without a prefix undercore, then with it.
9803 for ac_symprfx in "" "_"; do
9805 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9806 symxfrm="\\1 $ac_symprfx\\2 \\2"
9808 # Write the raw and C identifiers.
9809 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9811 # Check to see that the pipe works correctly.
9815 cat > conftest.$ac_ext <<EOF
9820 void nm_test_func(){}
9824 int main(){nm_test_var='a';nm_test_func();return(0);}
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; then
9832 # Now try to grab the symbols.
9834 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9835 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && test -s "$nlist"; then
9839 # Try sorting and uniquifying the output.
9840 if sort "$nlist" | uniq > "$nlist"T; then
9841 mv -f "$nlist"T "$nlist"
9846 # Make sure that we snagged all the symbols we need.
9847 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9848 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9849 cat <<EOF > conftest.$ac_ext
9855 # Now generate the symbol file.
9856 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9858 cat <<EOF >> conftest.$ac_ext
9859 #if defined (__STDC__) && __STDC__
9860 # define lt_ptr_t void *
9862 # define lt_ptr_t char *
9866 /* The mapping between symbol names and symbols. */
9871 lt_preloaded_symbols[] =
9874 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9875 cat <<\EOF >> conftest.$ac_ext
9883 # Now try linking the two files.
9884 mv conftest.$ac_objext conftstm.$ac_objext
9885 lt_save_LIBS="$LIBS"
9886 lt_save_CFLAGS="$CFLAGS"
9887 LIBS="conftstm.$ac_objext"
9888 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890 (eval $ac_link) 2>&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9896 LIBS="$lt_save_LIBS"
9897 CFLAGS="$lt_save_CFLAGS"
9899 echo "cannot find nm_test_func in $nlist" >&5
9902 echo "cannot find nm_test_var in $nlist" >&5
9905 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9908 echo "$progname: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 rm -f conftest* conftst*
9913 # Do not use the global_symbol_pipe unless it works.
9914 if test "$pipe_works" = yes; then
9917 lt_cv_sys_global_symbol_pipe=
9923 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9924 lt_cv_sys_global_symbol_to_cdecl=
9926 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9927 { echo "$as_me:$LINENO: result: failed" >&5
9928 echo "${ECHO_T}failed" >&6; }
9930 { echo "$as_me:$LINENO: result: ok" >&5
9931 echo "${ECHO_T}ok" >&6; }
9935 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9936 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9937 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9941 libltdl_cv_preloaded_symbols=yes
9943 libltdl_cv_preloaded_symbols=no
9947 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9948 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9949 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_PRELOADED_SYMBOLS 1
9960 ac_cpp='$CPP $CPPFLAGS'
9961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9966 { echo "$as_me:$LINENO: checking for shl_load" >&5
9967 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9968 if test "${ac_cv_func_shl_load+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9979 #define shl_load innocuous_shl_load
9981 /* System header to define __stub macros and hopefully few prototypes,
9982 which can conflict with char shl_load (); below.
9983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9984 <limits.h> exists even on freestanding compilers. */
9987 # include <limits.h>
9989 # include <assert.h>
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
10001 /* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
10004 #if defined __stub_shl_load || defined __stub___shl_load
10011 return shl_load ();
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (ac_try="$ac_link"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_link") 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10031 { (case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_try") 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_try") 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_cv_func_shl_load=yes
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_cv_func_shl_load=no
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10061 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10062 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10063 if test $ac_cv_func_shl_load = yes; then
10065 cat >>confdefs.h <<\_ACEOF
10066 #define HAVE_SHL_LOAD 1
10070 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10071 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10072 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 ac_check_lib_save_LIBS=$LIBS
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10094 return shl_load ();
10099 rm -f conftest.$ac_objext conftest$ac_exeext
10100 if { (ac_try="$ac_link"
10101 case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_link") 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_lib_dld_shl_load=yes
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_cv_lib_dld_shl_load=no
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10146 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10147 if test $ac_cv_lib_dld_shl_load = yes; then
10149 cat >>confdefs.h <<\_ACEOF
10150 #define HAVE_SHL_LOAD 1
10153 LIBADD_DL="$LIBADD_DL -ldld"
10155 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10156 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 ac_check_lib_save_LIBS=$LIBS
10162 cat >conftest.$ac_ext <<_ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10169 /* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (ac_try="$ac_link"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_link") 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10199 { (case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_try") 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest$ac_exeext'
10209 { (case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_try") 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 ac_cv_lib_dl_dlopen=yes
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_lib_dl_dlopen=no
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10231 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10232 if test $ac_cv_lib_dl_dlopen = yes; then
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_LIBDL 1
10238 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10240 cat >conftest.$ac_ext <<_ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10247 # include <dlfcn.h>
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10267 grep -v '^ *+' conftest.er1 >conftest.err
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_LIBDL 1
10296 libltdl_cv_func_dlopen="yes"
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10302 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-lsvld $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10345 { (case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_try") 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try='test -s conftest$ac_exeext'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 ac_cv_lib_svld_dlopen=yes
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_lib_svld_dlopen=no
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10376 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10377 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10378 if test $ac_cv_lib_svld_dlopen = yes; then
10380 cat >>confdefs.h <<\_ACEOF
10381 #define HAVE_LIBDL 1
10384 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10386 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10387 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10388 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 ac_check_lib_save_LIBS=$LIBS
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10410 return dld_link ();
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1 >conftest.err
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10430 { (case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_try") 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest$ac_exeext'
10440 { (case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_try") 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_lib_dld_dld_link=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_cv_lib_dld_dld_link=no
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10461 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10462 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10463 if test $ac_cv_lib_dld_dld_link = yes; then
10465 cat >>confdefs.h <<\_ACEOF
10469 LIBADD_DL="$LIBADD_DL -ldld"
10471 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10472 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10473 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484 #define _dyld_func_lookup innocuous__dyld_func_lookup
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char _dyld_func_lookup (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10492 # include <limits.h>
10494 # include <assert.h>
10497 #undef _dyld_func_lookup
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10505 char _dyld_func_lookup ();
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10516 return _dyld_func_lookup ();
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_func__dyld_func_lookup=yes
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 ac_cv_func__dyld_func_lookup=no
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10566 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10567 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10568 if test $ac_cv_func__dyld_func_lookup = yes; then
10570 cat >>confdefs.h <<\_ACEOF
10571 #define HAVE_DYLD 1
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10597 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10599 lt_save_LIBS="$LIBS"
10600 LIBS="$LIBS $LIBADD_DL"
10602 for ac_func in dlerror
10604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10618 #define $ac_func innocuous_$ac_func
10620 /* System header to define __stub macros and hopefully few prototypes,
10621 which can conflict with char $ac_func (); below.
10622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623 <limits.h> exists even on freestanding compilers. */
10626 # include <limits.h>
10628 # include <assert.h>
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10640 /* The GNU C library defines this for functions which it implements
10641 to always fail with ENOSYS. Some functions are actually named
10642 something starting with __ and the normal name is an alias. */
10643 #if defined __stub_$ac_func || defined __stub___$ac_func
10650 return $ac_func ();
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_link") 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest$ac_exeext'
10680 { (case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_try") 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 eval "$as_ac_var=yes"
10691 echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10694 eval "$as_ac_var=no"
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10700 ac_res=`eval echo '${'$as_ac_var'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10703 if test `eval echo '${'$as_ac_var'}'` = yes; then
10704 cat >>confdefs.h <<_ACEOF
10705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10711 LIBS="$lt_save_LIBS"
10714 ac_cpp='$CPP $CPPFLAGS'
10715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10721 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10722 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10723 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 ac_cv_sys_symbol_underscore=no
10727 cat > conftest.$ac_ext <<EOF
10728 void nm_test_func(){}
10729 int main(){nm_test_func;return 0;}
10731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; then
10736 # Now try to grab the symbols.
10737 ac_nlist=conftest.nm
10738 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10739 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && test -s "$ac_nlist"; then
10743 # See whether the symbols have a leading underscore.
10744 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10745 ac_cv_sys_symbol_underscore=yes
10747 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10750 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10754 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10757 echo "configure: failed program was:" >&5
10763 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10764 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10767 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10768 if test x"$libltdl_cv_func_dlopen" = xyes ||
10769 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10770 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10771 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10772 if test "${libltdl_cv_need_uscore+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 libltdl_cv_need_uscore=unknown
10777 LIBS="$LIBS $LIBADD_DL"
10778 if test "$cross_compiling" = yes; then :
10779 libltdl_cv_need_uscore=cross
10781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10782 lt_status=$lt_dlunknown
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10784 "configure"
10785 #include "confdefs.h"
10794 # define LT_DLGLOBAL RTLD_GLOBAL
10797 # define LT_DLGLOBAL DL_GLOBAL
10799 # define LT_DLGLOBAL 0
10803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10804 find out it does not work in some platform. */
10805 #ifndef LT_DLLAZY_OR_NOW
10807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10810 # define LT_DLLAZY_OR_NOW DL_LAZY
10813 # define LT_DLLAZY_OR_NOW RTLD_NOW
10816 # define LT_DLLAZY_OR_NOW DL_NOW
10818 # define LT_DLLAZY_OR_NOW 0
10826 extern "C" void exit (int);
10829 void fnord() { int i=42;}
10832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10833 int status = $lt_dlunknown;
10837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10839 /* dlclose (self); */
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10852 (./conftest; exit; ) >&5 2>/dev/null
10854 case x$lt_status in
10855 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10856 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10857 x$lt_dlunknown|x*) ;;
10860 # compilation failed
10869 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10870 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10874 if test x"$libltdl_cv_need_uscore" = xyes; then
10876 cat >>confdefs.h <<\_ACEOF
10877 #define NEED_USCORE 1
10883 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10884 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10885 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 # PORTME does your system automatically load deplibs for dlopen?
10889 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10890 # For now, we just catch OSes we know something about -- in the
10891 # future, we'll try test this programmatically.
10892 libltdl_cv_sys_dlopen_deplibs=unknown
10894 aix3*|aix4.1.*|aix4.2.*)
10895 # Unknown whether this is true for these versions of AIX, but
10896 # we want this `case' here to explicitly catch those versions.
10897 libltdl_cv_sys_dlopen_deplibs=unknown
10900 libltdl_cv_sys_dlopen_deplibs=yes
10903 # Assuming the user has installed a libdl from somewhere, this is true
10904 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10905 libltdl_cv_sys_dlopen_deplibs=yes
10907 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10908 # GNU and its variants, using gnu ld.so (Glibc)
10909 libltdl_cv_sys_dlopen_deplibs=yes
10912 libltdl_cv_sys_dlopen_deplibs=yes
10915 libltdl_cv_sys_dlopen_deplibs=yes
10917 irix[12345]*|irix6.[01]*)
10918 # Catch all versions of IRIX before 6.2, and indicate that we don't
10919 # know how it worked for any of those versions.
10920 libltdl_cv_sys_dlopen_deplibs=unknown
10923 # The case above catches anything before 6.2, and it's known that
10924 # at 6.2 and later dlopen does load deplibs.
10925 libltdl_cv_sys_dlopen_deplibs=yes
10928 libltdl_cv_sys_dlopen_deplibs=yes
10931 libltdl_cv_sys_dlopen_deplibs=yes
10934 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10935 # it did *not* use an RPATH in a shared library to find objects the
10936 # library depends on, so we explictly say `no'.
10937 libltdl_cv_sys_dlopen_deplibs=no
10939 osf5.0|osf5.0a|osf5.1)
10940 # dlopen *does* load deplibs and with the right loader patch applied
10941 # it even uses RPATH in a shared library to search for shared objects
10942 # that the library depends on, but there's no easy way to know if that
10943 # patch is installed. Since this is the case, all we can really
10944 # say is unknown -- it depends on the patch being installed. If
10945 # it is, this changes to `yes'. Without it, it would be `no'.
10946 libltdl_cv_sys_dlopen_deplibs=unknown
10949 # the two cases above should catch all versions of osf <= 5.1. Read
10950 # the comments above for what we know about them.
10951 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10952 # is used to find them so we can finally say `yes'.
10953 libltdl_cv_sys_dlopen_deplibs=yes
10956 libltdl_cv_sys_dlopen_deplibs=yes
10958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10959 libltdl_cv_sys_dlopen_deplibs=yes
10964 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10965 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10966 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10968 cat >>confdefs.h <<\_ACEOF
10969 #define LTDL_DLOPEN_DEPLIBS 1
10975 for ac_header in argz.h
10977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 ac_res=`eval echo '${'$as_ac_Header'}'`
10985 { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10988 # Is the header compilable?
10989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 $ac_includes_default
10998 #include <$ac_header>
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest.$ac_objext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_header_compiler=yes
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_header_compiler=no
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11044 echo "${ECHO_T}$ac_header_compiler" >&6; }
11046 # Is the header present?
11047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <$ac_header>
11057 if { (ac_try="$ac_cpp conftest.$ac_ext"
11058 case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1 >conftest.err
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } >/dev/null; then
11070 if test -s conftest.err; then
11071 ac_cpp_err=$ac_c_preproc_warn_flag
11072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11079 if test -z "$ac_cpp_err"; then
11080 ac_header_preproc=yes
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_header_preproc=no
11088 rm -f conftest.err conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090 echo "${ECHO_T}$ac_header_preproc" >&6; }
11092 # So? What about this header?
11093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099 ac_header_preproc=yes
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11115 ## ----------------------------------- ##
11116 ## Report this to llvmbugs@cs.uiuc.edu ##
11117 ## ----------------------------------- ##
11119 ) | sed "s/^/$as_me: WARNING: /" >&2
11122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 eval "$as_ac_Header=\$ac_header_preproc"
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11135 cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11144 { echo "$as_me:$LINENO: checking for error_t" >&5
11145 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11146 if test "${ac_cv_type_error_t+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 cat >conftest.$ac_ext <<_ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11159 typedef error_t ac__type_new_;
11163 if ((ac__type_new_ *) 0)
11165 if (sizeof (ac__type_new_))
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_cv_type_error_t=yes
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_cv_type_error_t=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11216 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11217 if test $ac_cv_type_error_t = yes; then
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_ERROR_T 1
11226 cat >>confdefs.h <<\_ACEOF
11227 #define error_t int
11238 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11254 #define $ac_func innocuous_$ac_func
11256 /* System header to define __stub macros and hopefully few prototypes,
11257 which can conflict with char $ac_func (); below.
11258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11259 <limits.h> exists even on freestanding compilers. */
11262 # include <limits.h>
11264 # include <assert.h>
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11276 /* The GNU C library defines this for functions which it implements
11277 to always fail with ENOSYS. Some functions are actually named
11278 something starting with __ and the normal name is an alias. */
11279 #if defined __stub_$ac_func || defined __stub___$ac_func
11286 return $ac_func ();
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (ac_try="$ac_link"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_link") 2>conftest.er1
11300 grep -v '^ *+' conftest.er1 >conftest.err
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest$ac_exeext'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 eval "$as_ac_var=yes"
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 eval "$as_ac_var=no"
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11336 ac_res=`eval echo '${'$as_ac_var'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11339 if test `eval echo '${'$as_ac_var'}'` = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11374 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11388 # Is the header compilable?
11389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11391 cat >conftest.$ac_ext <<_ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 #include <$ac_header>
11400 rm -f conftest.$ac_objext
11401 if { (ac_try="$ac_compile"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11409 grep -v '^ *+' conftest.er1 >conftest.err
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_try") 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_header_compiler=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_header_compiler=no
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444 echo "${ECHO_T}$ac_header_compiler" >&6; }
11446 # Is the header present?
11447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 #include <$ac_header>
11457 if { (ac_try="$ac_cpp conftest.$ac_ext"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } >/dev/null; then
11470 if test -s conftest.err; then
11471 ac_cpp_err=$ac_c_preproc_warn_flag
11472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11479 if test -z "$ac_cpp_err"; then
11480 ac_header_preproc=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_header_preproc=no
11488 rm -f conftest.err conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490 echo "${ECHO_T}$ac_header_preproc" >&6; }
11492 # So? What about this header?
11493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11499 ac_header_preproc=yes
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11515 ## ----------------------------------- ##
11516 ## Report this to llvmbugs@cs.uiuc.edu ##
11517 ## ----------------------------------- ##
11519 ) | sed "s/^/$as_me: WARNING: /" >&2
11522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 eval "$as_ac_Header=\$ac_header_preproc"
11529 ac_res=`eval echo '${'$as_ac_Header'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11547 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11560 # Is the header compilable?
11561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 $ac_includes_default
11570 #include <$ac_header>
11572 rm -f conftest.$ac_objext
11573 if { (ac_try="$ac_compile"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_compile") 2>conftest.er1
11581 grep -v '^ *+' conftest.er1 >conftest.err
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try='test -s conftest.$ac_objext'
11597 { (case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_try") 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 ac_header_compiler=yes
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11611 ac_header_compiler=no
11614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11616 echo "${ECHO_T}$ac_header_compiler" >&6; }
11618 # Is the header present?
11619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 #include <$ac_header>
11629 if { (ac_try="$ac_cpp conftest.$ac_ext"
11630 case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11637 grep -v '^ *+' conftest.er1 >conftest.err
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } >/dev/null; then
11642 if test -s conftest.err; then
11643 ac_cpp_err=$ac_c_preproc_warn_flag
11644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11651 if test -z "$ac_cpp_err"; then
11652 ac_header_preproc=yes
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 ac_header_preproc=no
11660 rm -f conftest.err conftest.$ac_ext
11661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11662 echo "${ECHO_T}$ac_header_preproc" >&6; }
11664 # So? What about this header?
11665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11671 ac_header_preproc=yes
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11687 ## ----------------------------------- ##
11688 ## Report this to llvmbugs@cs.uiuc.edu ##
11689 ## ----------------------------------- ##
11691 ) | sed "s/^/$as_me: WARNING: /" >&2
11694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 eval "$as_ac_Header=\$ac_header_preproc"
11701 ac_res=`eval echo '${'$as_ac_Header'}'`
11702 { echo "$as_me:$LINENO: result: $ac_res" >&5
11703 echo "${ECHO_T}$ac_res" >&6; }
11706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11707 cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11717 for ac_header in string.h strings.h
11719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11730 # Is the header compilable?
11731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11733 cat >conftest.$ac_ext <<_ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 $ac_includes_default
11740 #include <$ac_header>
11742 rm -f conftest.$ac_objext
11743 if { (ac_try="$ac_compile"
11744 case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_compile") 2>conftest.er1
11751 grep -v '^ *+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11757 { (case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_try") 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_try") 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 ac_header_compiler=yes
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 ac_header_compiler=no
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11786 echo "${ECHO_T}$ac_header_compiler" >&6; }
11788 # Is the header present?
11789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 #include <$ac_header>
11799 if { (ac_try="$ac_cpp conftest.$ac_ext"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11807 grep -v '^ *+' conftest.er1 >conftest.err
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } >/dev/null; then
11812 if test -s conftest.err; then
11813 ac_cpp_err=$ac_c_preproc_warn_flag
11814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11821 if test -z "$ac_cpp_err"; then
11822 ac_header_preproc=yes
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_header_preproc=no
11830 rm -f conftest.err conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11832 echo "${ECHO_T}$ac_header_preproc" >&6; }
11834 # So? What about this header?
11835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11841 ac_header_preproc=yes
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11857 ## ----------------------------------- ##
11858 ## Report this to llvmbugs@cs.uiuc.edu ##
11859 ## ----------------------------------- ##
11861 ) | sed "s/^/$as_me: WARNING: /" >&2
11864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 eval "$as_ac_Header=\$ac_header_preproc"
11871 ac_res=`eval echo '${'$as_ac_Header'}'`
11872 { echo "$as_me:$LINENO: result: $ac_res" >&5
11873 echo "${ECHO_T}$ac_res" >&6; }
11876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11877 cat >>confdefs.h <<_ACEOF
11878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11888 for ac_func in strchr index
11890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11904 #define $ac_func innocuous_$ac_func
11906 /* System header to define __stub macros and hopefully few prototypes,
11907 which can conflict with char $ac_func (); below.
11908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11909 <limits.h> exists even on freestanding compilers. */
11912 # include <limits.h>
11914 # include <assert.h>
11919 /* Override any GCC internal prototype to avoid an error.
11920 Use char because int might match the return type of a GCC
11921 builtin and then its argument prototype would still apply. */
11926 /* The GNU C library defines this for functions which it implements
11927 to always fail with ENOSYS. Some functions are actually named
11928 something starting with __ and the normal name is an alias. */
11929 #if defined __stub_$ac_func || defined __stub___$ac_func
11936 return $ac_func ();
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (ac_try="$ac_link"
11943 case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_link") 2>conftest.er1
11950 grep -v '^ *+' conftest.er1 >conftest.err
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11956 { (case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_try") 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest$ac_exeext'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 eval "$as_ac_var=yes"
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 eval "$as_ac_var=no"
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11986 ac_res=`eval echo '${'$as_ac_var'}'`
11987 { echo "$as_me:$LINENO: result: $ac_res" >&5
11988 echo "${ECHO_T}$ac_res" >&6; }
11989 if test `eval echo '${'$as_ac_var'}'` = yes; then
11990 cat >>confdefs.h <<_ACEOF
11991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 for ac_func in strrchr rindex
12001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 cat >conftest.$ac_ext <<_ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12015 #define $ac_func innocuous_$ac_func
12017 /* System header to define __stub macros and hopefully few prototypes,
12018 which can conflict with char $ac_func (); below.
12019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12020 <limits.h> exists even on freestanding compilers. */
12023 # include <limits.h>
12025 # include <assert.h>
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12037 /* The GNU C library defines this for functions which it implements
12038 to always fail with ENOSYS. Some functions are actually named
12039 something starting with __ and the normal name is an alias. */
12040 #if defined __stub_$ac_func || defined __stub___$ac_func
12047 return $ac_func ();
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 eval "$as_ac_var=yes"
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 eval "$as_ac_var=no"
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12097 ac_res=`eval echo '${'$as_ac_var'}'`
12098 { echo "$as_me:$LINENO: result: $ac_res" >&5
12099 echo "${ECHO_T}$ac_res" >&6; }
12100 if test `eval echo '${'$as_ac_var'}'` = yes; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12110 for ac_func in memcpy bcopy
12112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12126 #define $ac_func innocuous_$ac_func
12128 /* System header to define __stub macros and hopefully few prototypes,
12129 which can conflict with char $ac_func (); below.
12130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 <limits.h> exists even on freestanding compilers. */
12134 # include <limits.h>
12136 # include <assert.h>
12141 /* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
12148 /* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151 #if defined __stub_$ac_func || defined __stub___$ac_func
12158 return $ac_func ();
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_link") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_try") 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest$ac_exeext'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 eval "$as_ac_var=yes"
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 eval "$as_ac_var=no"
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12208 ac_res=`eval echo '${'$as_ac_var'}'`
12209 { echo "$as_me:$LINENO: result: $ac_res" >&5
12210 echo "${ECHO_T}$ac_res" >&6; }
12211 if test `eval echo '${'$as_ac_var'}'` = yes; then
12212 cat >>confdefs.h <<_ACEOF
12213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12221 for ac_func in memmove strcmp
12223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define $ac_func innocuous_$ac_func
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12245 # include <limits.h>
12247 # include <assert.h>
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_$ac_func || defined __stub___$ac_func
12269 return $ac_func ();
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 eval "$as_ac_var=yes"
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 eval "$as_ac_var=no"
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12319 ac_res=`eval echo '${'$as_ac_var'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12322 if test `eval echo '${'$as_ac_var'}'` = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12333 for ac_func in closedir opendir readdir
12335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12349 #define $ac_func innocuous_$ac_func
12351 /* System header to define __stub macros and hopefully few prototypes,
12352 which can conflict with char $ac_func (); below.
12353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354 <limits.h> exists even on freestanding compilers. */
12357 # include <limits.h>
12359 # include <assert.h>
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12371 /* The GNU C library defines this for functions which it implements
12372 to always fail with ENOSYS. Some functions are actually named
12373 something starting with __ and the normal name is an alias. */
12374 #if defined __stub_$ac_func || defined __stub___$ac_func
12381 return $ac_func ();
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (ac_try="$ac_link"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_link") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1 >conftest.err
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest$ac_exeext'
12411 { (case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_try") 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 eval "$as_ac_var=yes"
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 eval "$as_ac_var=no"
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12431 ac_res=`eval echo '${'$as_ac_var'}'`
12432 { echo "$as_me:$LINENO: result: $ac_res" >&5
12433 echo "${ECHO_T}$ac_res" >&6; }
12434 if test `eval echo '${'$as_ac_var'}'` = yes; then
12435 cat >>confdefs.h <<_ACEOF
12436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443 # Check whether --enable-shared was given.
12444 if test "${enable_shared+set}" = set; then
12445 enableval=$enable_shared; p=${PACKAGE-default}
12447 yes) enable_shared=yes ;;
12448 no) enable_shared=no ;;
12451 # Look at the argument we got. We use all the common list separators.
12452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12453 for pkg in $enableval; do
12455 if test "X$pkg" = "X$p"; then
12467 # Check whether --enable-static was given.
12468 if test "${enable_static+set}" = set; then
12469 enableval=$enable_static; p=${PACKAGE-default}
12471 yes) enable_static=yes ;;
12472 no) enable_static=no ;;
12475 # Look at the argument we got. We use all the common list separators.
12476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12477 for pkg in $enableval; do
12479 if test "X$pkg" = "X$p"; then
12491 # Check whether --enable-fast-install was given.
12492 if test "${enable_fast_install+set}" = set; then
12493 enableval=$enable_fast_install; p=${PACKAGE-default}
12495 yes) enable_fast_install=yes ;;
12496 no) enable_fast_install=no ;;
12498 enable_fast_install=no
12499 # Look at the argument we got. We use all the common list separators.
12500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12501 for pkg in $enableval; do
12503 if test "X$pkg" = "X$p"; then
12504 enable_fast_install=yes
12511 enable_fast_install=yes
12515 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12516 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12517 if test "${lt_cv_path_SED+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 # Loop through the user's path and test for sed and gsed.
12521 # Then use that list of sed's as ones to test for truncation.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12526 test -z "$as_dir" && as_dir=.
12527 for lt_ac_prog in sed gsed; do
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12530 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12537 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12538 # along with /bin/sed that truncates output.
12539 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12540 test ! -f $lt_ac_sed && continue
12541 cat /dev/null > conftest.in
12543 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12544 # Check for GNU sed and select it if it is found.
12545 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12546 lt_cv_path_SED=$lt_ac_sed
12550 cat conftest.in conftest.in >conftest.tmp
12551 mv conftest.tmp conftest.in
12552 cp conftest.in conftest.nl
12554 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12555 cmp -s conftest.out conftest.nl || break
12556 # 10000 chars as input seems more than enough
12557 test $lt_ac_count -gt 10 && break
12558 lt_ac_count=`expr $lt_ac_count + 1`
12559 if test $lt_ac_count -gt $lt_ac_max; then
12560 lt_ac_max=$lt_ac_count
12561 lt_cv_path_SED=$lt_ac_sed
12568 SED=$lt_cv_path_SED
12569 { echo "$as_me:$LINENO: result: $SED" >&5
12570 echo "${ECHO_T}$SED" >&6; }
12573 # Check whether --with-gnu-ld was given.
12574 if test "${with_gnu_ld+set}" = set; then
12575 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12581 if test "$GCC" = yes; then
12582 # Check if gcc -print-prog-name=ld gives a path.
12583 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12584 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12587 # gcc leaves a trailing carriage return which upsets mingw
12588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12593 # Accept absolute paths.
12595 re_direlt='/[^/][^/]*/\.\./'
12596 # Canonicalize the pathname of ld
12597 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12598 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12599 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12601 test -z "$LD" && LD="$ac_prog"
12604 # If it fails, then pretend we aren't using GCC.
12608 # If it is relative, then search for the first ld in PATH.
12609 with_gnu_ld=unknown
12612 elif test "$with_gnu_ld" = yes; then
12613 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12614 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12616 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12617 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12619 if test "${lt_cv_path_LD+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 if test -z "$LD"; then
12623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12624 for ac_dir in $PATH; do
12626 test -z "$ac_dir" && ac_dir=.
12627 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12628 lt_cv_path_LD="$ac_dir/$ac_prog"
12629 # Check to see if the program is GNU ld. I'd rather use --version,
12630 # but apparently some variants of GNU ld only accept -v.
12631 # Break only if it was the GNU/non-GNU ld that we prefer.
12632 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12633 *GNU* | *'with BFD'*)
12634 test "$with_gnu_ld" != no && break
12637 test "$with_gnu_ld" != yes && break
12644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12648 LD="$lt_cv_path_LD"
12649 if test -n "$LD"; then
12650 { echo "$as_me:$LINENO: result: $LD" >&5
12651 echo "${ECHO_T}$LD" >&6; }
12653 { echo "$as_me:$LINENO: result: no" >&5
12654 echo "${ECHO_T}no" >&6; }
12656 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12657 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12658 { (exit 1); exit 1; }; }
12659 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12660 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12661 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12665 case `$LD -v 2>&1 </dev/null` in
12666 *GNU* | *'with BFD'*)
12667 lt_cv_prog_gnu_ld=yes
12670 lt_cv_prog_gnu_ld=no
12674 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12675 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12676 with_gnu_ld=$lt_cv_prog_gnu_ld
12679 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12680 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12681 if test "${lt_cv_ld_reload_flag+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 lt_cv_ld_reload_flag='-r'
12686 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12687 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12688 reload_flag=$lt_cv_ld_reload_flag
12689 case $reload_flag in
12691 *) reload_flag=" $reload_flag" ;;
12693 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12696 if test "$GCC" = yes; then
12697 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12699 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12704 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12705 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12706 if test "${lt_cv_deplibs_check_method+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 lt_cv_file_magic_cmd='$MAGIC_CMD'
12710 lt_cv_file_magic_test_file=
12711 lt_cv_deplibs_check_method='unknown'
12712 # Need to set the preceding variable on all platforms that support
12713 # interlibrary dependencies.
12714 # 'none' -- dependencies not supported.
12715 # `unknown' -- same as none, but documents that we really don't know.
12716 # 'pass_all' -- all dependencies passed with no checks.
12717 # 'test_compile' -- check by making test program.
12718 # 'file_magic [[regex]]' -- check by looking for files in library path
12719 # which responds to the $file_magic_cmd with a given extended regex.
12720 # If you have `file' or equivalent on your system and you're not sure
12721 # whether `pass_all' will *always* work, you probably want this one.
12725 lt_cv_deplibs_check_method=pass_all
12729 lt_cv_deplibs_check_method=pass_all
12733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12734 lt_cv_file_magic_cmd='/usr/bin/file -L'
12735 lt_cv_file_magic_test_file=/shlib/libc.so
12739 # func_win32_libid is a shell function defined in ltmain.sh
12740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12741 lt_cv_file_magic_cmd='func_win32_libid'
12745 # Base MSYS/MinGW do not provide the 'file' command needed by
12746 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12748 lt_cv_file_magic_cmd='$OBJDUMP -f'
12751 darwin* | rhapsody*)
12752 lt_cv_deplibs_check_method=pass_all
12755 freebsd* | kfreebsd*-gnu | dragonfly*)
12756 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12759 # Not sure whether the presence of OpenBSD here was a mistake.
12760 # Let's accept both of them until this is cleared up.
12761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12762 lt_cv_file_magic_cmd=/usr/bin/file
12763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12767 lt_cv_deplibs_check_method=pass_all
12772 lt_cv_deplibs_check_method=pass_all
12775 hpux10.20* | hpux11*)
12776 lt_cv_file_magic_cmd=/usr/bin/file
12779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12780 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12783 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]'
12784 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12787 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12788 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12794 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12798 irix5* | irix6* | nonstopux*)
12800 *-32|*"-32 ") libmagic=32-bit;;
12801 *-n32|*"-n32 ") libmagic=N32;;
12802 *-64|*"-64 ") libmagic=64-bit;;
12803 *) libmagic=never-match;;
12805 lt_cv_deplibs_check_method=pass_all
12808 # This must be Linux ELF.
12810 lt_cv_deplibs_check_method=pass_all
12814 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12823 lt_cv_file_magic_cmd=/usr/bin/file
12824 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12828 lt_cv_deplibs_check_method=unknown
12832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12839 osf3* | osf4* | osf5*)
12840 lt_cv_deplibs_check_method=pass_all
12844 lt_cv_deplibs_check_method=pass_all
12848 case $host_vendor in
12850 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]'
12851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12854 lt_cv_deplibs_check_method=pass_all
12857 lt_cv_file_magic_cmd='/bin/file'
12858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12861 lt_cv_file_magic_cmd='/bin/file'
12862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12863 lt_cv_file_magic_test_file=/lib/libc.so
12866 lt_cv_deplibs_check_method=pass_all
12869 lt_cv_deplibs_check_method=pass_all
12874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12875 lt_cv_deplibs_check_method=pass_all
12880 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12881 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12882 file_magic_cmd=$lt_cv_file_magic_cmd
12883 deplibs_check_method=$lt_cv_deplibs_check_method
12884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12888 # If no C compiler was specified, use CC.
12891 # If no C compiler flags were specified, use CFLAGS.
12892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12894 # Allow CC to be a program name with arguments.
12897 # Check whether --enable-libtool-lock was given.
12898 if test "${enable_libtool_lock+set}" = set; then
12899 enableval=$enable_libtool_lock;
12902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12904 # Some flags need to be propagated to the compiler or linker for good
12908 # Find out which ABI we are using.
12909 echo 'int i;' > conftest.$ac_ext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; then
12915 case `/usr/bin/file conftest.$ac_objext` in
12917 HPUX_IA64_MODE="32"
12920 HPUX_IA64_MODE="64"
12927 # Find out which ABI we are using.
12928 echo '#line 12928 "configure"' > conftest.$ac_ext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; then
12934 if test "$lt_cv_prog_gnu_ld" = yes; then
12935 case `/usr/bin/file conftest.$ac_objext` in
12937 LD="${LD-ld} -melf32bsmip"
12940 LD="${LD-ld} -melf32bmipn32"
12943 LD="${LD-ld} -melf64bmip"
12947 case `/usr/bin/file conftest.$ac_objext` in
12963 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12964 # Find out which ABI we are using.
12965 echo 'int i;' > conftest.$ac_ext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; then
12971 case `/usr/bin/file conftest.o` in
12975 LD="${LD-ld} -m elf_i386"
12977 ppc64-*linux*|powerpc64-*linux*)
12978 LD="${LD-ld} -m elf32ppclinux"
12981 LD="${LD-ld} -m elf_s390"
12984 LD="${LD-ld} -m elf32_sparc"
12991 LD="${LD-ld} -m elf_x86_64"
12993 ppc*-*linux*|powerpc*-*linux*)
12994 LD="${LD-ld} -m elf64ppc"
12997 LD="${LD-ld} -m elf64_s390"
13000 LD="${LD-ld} -m elf64_sparc"
13010 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13011 SAVE_CFLAGS="$CFLAGS"
13012 CFLAGS="$CFLAGS -belf"
13013 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13014 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13015 if test "${lt_cv_cc_needs_belf+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 ac_cpp='$CPP $CPPFLAGS'
13020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13024 cat >conftest.$ac_ext <<_ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (ac_try="$ac_link"
13041 case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_link") 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest$ac_exeext'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 lt_cv_cc_needs_belf=yes
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 lt_cv_cc_needs_belf=no
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13090 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13091 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13092 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13093 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13094 CFLAGS="$SAVE_CFLAGS"
13098 # Find out which ABI we are using.
13099 echo 'int i;' > conftest.$ac_ext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; then
13105 case `/usr/bin/file conftest.o` in
13107 case $lt_cv_prog_gnu_ld in
13108 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13109 *) LD="${LD-ld} -64" ;;
13120 need_locks="$enable_libtool_lock"
13125 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13126 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13127 (test "X$CXX" != "Xg++"))) ; then
13129 ac_cpp='$CXXCPP $CPPFLAGS'
13130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13133 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13134 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13135 if test -z "$CXXCPP"; then
13136 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 # Double quotes because CXXCPP needs to be expanded
13140 for CXXCPP in "$CXX -E" "/lib/cpp"
13142 ac_preproc_ok=false
13143 for ac_cxx_preproc_warn_flag in '' yes
13145 # Use a header file that comes with gcc, so configuring glibc
13146 # with a fresh cross-compiler works.
13147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13148 # <limits.h> exists even on freestanding compilers.
13149 # On the NeXT, cc -E runs the code through the compiler's parser,
13150 # not just through cpp. "Syntax error" is here to catch this case.
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 # include <limits.h>
13160 # include <assert.h>
13164 if { (ac_try="$ac_cpp conftest.$ac_ext"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13172 grep -v '^ *+' conftest.er1 >conftest.err
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } >/dev/null; then
13177 if test -s conftest.err; then
13178 ac_cpp_err=$ac_cxx_preproc_warn_flag
13179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13186 if test -z "$ac_cpp_err"; then
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 # Broken: fails on valid input.
13196 rm -f conftest.err conftest.$ac_ext
13198 # OK, works on sane cases. Now check whether nonexistent headers
13199 # can be detected and how.
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <ac_nonexistent.h>
13208 if { (ac_try="$ac_cpp conftest.$ac_ext"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } >/dev/null; then
13221 if test -s conftest.err; then
13222 ac_cpp_err=$ac_cxx_preproc_warn_flag
13223 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13230 if test -z "$ac_cpp_err"; then
13231 # Broken: success on invalid input.
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 # Passes both tests.
13242 rm -f conftest.err conftest.$ac_ext
13245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13246 rm -f conftest.err conftest.$ac_ext
13247 if $ac_preproc_ok; then
13252 ac_cv_prog_CXXCPP=$CXXCPP
13255 CXXCPP=$ac_cv_prog_CXXCPP
13257 ac_cv_prog_CXXCPP=$CXXCPP
13259 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13260 echo "${ECHO_T}$CXXCPP" >&6; }
13261 ac_preproc_ok=false
13262 for ac_cxx_preproc_warn_flag in '' yes
13264 # Use a header file that comes with gcc, so configuring glibc
13265 # with a fresh cross-compiler works.
13266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267 # <limits.h> exists even on freestanding compilers.
13268 # On the NeXT, cc -E runs the code through the compiler's parser,
13269 # not just through cpp. "Syntax error" is here to catch this case.
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13277 # include <limits.h>
13279 # include <assert.h>
13283 if { (ac_try="$ac_cpp conftest.$ac_ext"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13291 grep -v '^ *+' conftest.er1 >conftest.err
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } >/dev/null; then
13296 if test -s conftest.err; then
13297 ac_cpp_err=$ac_cxx_preproc_warn_flag
13298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13305 if test -z "$ac_cpp_err"; then
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 # Broken: fails on valid input.
13315 rm -f conftest.err conftest.$ac_ext
13317 # OK, works on sane cases. Now check whether nonexistent headers
13318 # can be detected and how.
13319 cat >conftest.$ac_ext <<_ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 #include <ac_nonexistent.h>
13327 if { (ac_try="$ac_cpp conftest.$ac_ext"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13335 grep -v '^ *+' conftest.er1 >conftest.err
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } >/dev/null; then
13340 if test -s conftest.err; then
13341 ac_cpp_err=$ac_cxx_preproc_warn_flag
13342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13349 if test -z "$ac_cpp_err"; then
13350 # Broken: success on invalid input.
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 # Passes both tests.
13361 rm -f conftest.err conftest.$ac_ext
13364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13365 rm -f conftest.err conftest.$ac_ext
13366 if $ac_preproc_ok; then
13369 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13370 See \`config.log' for more details." >&5
13371 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13372 See \`config.log' for more details." >&2;}
13373 { (exit 1); exit 1; }; }
13377 ac_cpp='$CXXCPP $CPPFLAGS'
13378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13386 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13387 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13388 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13389 if test -n "$ac_tool_prefix"; then
13390 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
13392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13396 if test "${ac_cv_prog_F77+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 if test -n "$F77"; then
13400 ac_cv_prog_F77="$F77" # Let the user override the test.
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
13408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13409 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 F77=$ac_cv_prog_F77
13420 if test -n "$F77"; then
13421 { echo "$as_me:$LINENO: result: $F77" >&5
13422 echo "${ECHO_T}$F77" >&6; }
13424 { echo "$as_me:$LINENO: result: no" >&5
13425 echo "${ECHO_T}no" >&6; }
13429 test -n "$F77" && break
13432 if test -z "$F77"; then
13434 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
13436 # Extract the first word of "$ac_prog", so it can be a program name with args.
13437 set dummy $ac_prog; ac_word=$2
13438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13440 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 if test -n "$ac_ct_F77"; then
13444 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13453 ac_cv_prog_ac_ct_F77="$ac_prog"
13454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13464 if test -n "$ac_ct_F77"; then
13465 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13466 echo "${ECHO_T}$ac_ct_F77" >&6; }
13468 { echo "$as_me:$LINENO: result: no" >&5
13469 echo "${ECHO_T}no" >&6; }
13473 test -n "$ac_ct_F77" && break
13476 if test "x$ac_ct_F77" = x; then
13479 case $cross_compiling:$ac_tool_warned in
13481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13482 whose name does not start with the host triplet. If you think this
13483 configuration is useful to you, please write to autoconf@gnu.org." >&5
13484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13485 whose name does not start with the host triplet. If you think this
13486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13487 ac_tool_warned=yes ;;
13494 # Provide some information about the compiler.
13495 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13496 ac_compiler=`set X $ac_compile; echo $2`
13497 { (ac_try="$ac_compiler --version >&5"
13498 case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_compiler --version >&5") 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }
13507 { (ac_try="$ac_compiler -v >&5"
13508 case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_compiler -v >&5") 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }
13517 { (ac_try="$ac_compiler -V >&5"
13518 case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_compiler -V >&5") 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }
13529 # If we don't use `.F' as extension, the preprocessor is not run on the
13530 # input file. (Note that this only needs to work for GNU compilers.)
13531 ac_save_ext=$ac_ext
13533 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13534 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13535 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 cat >conftest.$ac_ext <<_ACEOF
13546 rm -f conftest.$ac_objext
13547 if { (ac_try="$ac_compile"
13548 case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13561 { (case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_try") 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_compiler_gnu=yes
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13592 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13593 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13594 ac_ext=$ac_save_ext
13595 ac_test_FFLAGS=${FFLAGS+set}
13596 ac_save_FFLAGS=$FFLAGS
13598 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13599 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13600 if test "${ac_cv_prog_f77_g+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 cat >conftest.$ac_ext <<_ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_compile") 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13624 { (case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_try") 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest.$ac_objext'
13634 { (case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_try") 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
13643 ac_cv_prog_f77_g=yes
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_cv_prog_f77_g=no
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13655 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13656 if test "$ac_test_FFLAGS" = set; then
13657 FFLAGS=$ac_save_FFLAGS
13658 elif test $ac_cv_prog_f77_g = yes; then
13659 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13665 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13672 G77=`test $ac_compiler_gnu = yes && echo yes`
13674 ac_cpp='$CPP $CPPFLAGS'
13675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13681 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13683 # find the maximum length of command line arguments
13684 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13685 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 # On DJGPP, this test can blow up pretty badly due to problems in libc
13695 # (any single argument exceeding 2000 bytes causes a buffer overrun
13696 # during glob expansion). Even if it were fixed, the result of this
13697 # check would be larger than it should be.
13698 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13702 # Under GNU Hurd, this test is not required because there is
13703 # no limit to the length of command line arguments.
13704 # Libtool will interpret -1 as no limit whatsoever
13705 lt_cv_sys_max_cmd_len=-1;
13709 # On Win9x/ME, this test blows up -- it succeeds, but takes
13710 # about 5 minutes as the teststring grows exponentially.
13711 # Worse, since 9x/ME are not pre-emptively multitasking,
13712 # you end up with a "frozen" computer, even though with patience
13713 # the test eventually succeeds (with a max line length of 256k).
13714 # Instead, let's just punt: use the minimum linelength reported by
13715 # all of the supported platforms: 8192 (on NT/2K/XP).
13716 lt_cv_sys_max_cmd_len=8192;
13720 # On AmigaOS with pdksh, this test takes hours, literally.
13721 # So we just punt and use a minimum line length of 8192.
13722 lt_cv_sys_max_cmd_len=8192;
13725 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13726 # This has been around since 386BSD, at least. Likely further.
13727 if test -x /sbin/sysctl; then
13728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13729 elif test -x /usr/sbin/sysctl; then
13730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13734 # And add a safety zone
13735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13741 lt_cv_sys_max_cmd_len=196608
13745 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13746 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13747 # nice to cause kernel panics so lets avoid the loop below.
13748 # First set a reasonable default.
13749 lt_cv_sys_max_cmd_len=16384
13751 if test -x /sbin/sysconfig; then
13752 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13753 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13758 lt_cv_sys_max_cmd_len=102400
13760 sysv5* | sco5v6* | sysv4.2uw2*)
13761 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13762 if test -n "$kargmax"; then
13763 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13765 lt_cv_sys_max_cmd_len=32768
13769 # If test is not a shell built-in, we'll probably end up computing a
13770 # maximum length that is only half of the actual maximum length, but
13772 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13773 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13774 = "XX$teststring") >/dev/null 2>&1 &&
13775 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13776 lt_cv_sys_max_cmd_len=$new_result &&
13777 test $i != 17 # 1/2 MB should be enough
13780 teststring=$teststring$teststring
13783 # Add a significant safety factor because C++ compilers can tack on massive
13784 # amounts of additional arguments before passing them to the linker.
13785 # It appears as though 1/2 is a usable value.
13786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13792 if test -n $lt_cv_sys_max_cmd_len ; then
13793 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13794 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13796 { echo "$as_me:$LINENO: result: none" >&5
13797 echo "${ECHO_T}none" >&6; }
13803 # Check for command to grab the raw symbol name followed by C symbol from nm.
13804 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13805 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13806 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 # These are sane defaults that work on at least a few old systems.
13811 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13813 # Character class describing NM global symbol codes.
13814 symcode='[BCDEGRST]'
13816 # Regexp to match symbols that can be accessed directly from C.
13817 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13819 # Transform an extracted symbol line into a proper C declaration
13820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13822 # Transform an extracted symbol line into symbol name and symbol address
13823 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'"
13825 # Define system-specific variables.
13830 cygwin* | mingw* | pw32*)
13831 symcode='[ABCDGISTW]'
13833 hpux*) # Its linker distinguishes data from code symbols
13834 if test "$host_cpu" = ia64; then
13835 symcode='[ABCDEGRST]'
13837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13838 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'"
13841 if test "$host_cpu" = ia64; then
13842 symcode='[ABCDGIRSTW]'
13843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13844 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'"
13847 irix* | nonstopux*)
13848 symcode='[BCDEGRST]'
13851 symcode='[BCDEGQRST]'
13862 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13870 # Handle CRLF in mingw tool chain
13874 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13878 # If we're using GNU nm, then use its standard symbol codes.
13879 case `$NM -V 2>&1` in
13880 *GNU* | *'with BFD'*)
13881 symcode='[ABCDGIRSTW]' ;;
13884 # Try without a prefix undercore, then with it.
13885 for ac_symprfx in "" "_"; do
13887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13888 symxfrm="\\1 $ac_symprfx\\2 \\2"
13890 # Write the raw and C identifiers.
13891 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13893 # Check to see that the pipe works correctly.
13897 cat > conftest.$ac_ext <<EOF
13902 void nm_test_func(){}
13906 int main(){nm_test_var='a';nm_test_func();return(0);}
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; then
13914 # Now try to grab the symbols.
13916 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13917 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && test -s "$nlist"; then
13921 # Try sorting and uniquifying the output.
13922 if sort "$nlist" | uniq > "$nlist"T; then
13923 mv -f "$nlist"T "$nlist"
13928 # Make sure that we snagged all the symbols we need.
13929 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13930 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13931 cat <<EOF > conftest.$ac_ext
13937 # Now generate the symbol file.
13938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13940 cat <<EOF >> conftest.$ac_ext
13941 #if defined (__STDC__) && __STDC__
13942 # define lt_ptr_t void *
13944 # define lt_ptr_t char *
13948 /* The mapping between symbol names and symbols. */
13953 lt_preloaded_symbols[] =
13956 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13957 cat <<\EOF >> conftest.$ac_ext
13965 # Now try linking the two files.
13966 mv conftest.$ac_objext conftstm.$ac_objext
13967 lt_save_LIBS="$LIBS"
13968 lt_save_CFLAGS="$CFLAGS"
13969 LIBS="conftstm.$ac_objext"
13970 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13978 LIBS="$lt_save_LIBS"
13979 CFLAGS="$lt_save_CFLAGS"
13981 echo "cannot find nm_test_func in $nlist" >&5
13984 echo "cannot find nm_test_var in $nlist" >&5
13987 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13990 echo "$progname: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13993 rm -f conftest* conftst*
13995 # Do not use the global_symbol_pipe unless it works.
13996 if test "$pipe_works" = yes; then
13999 lt_cv_sys_global_symbol_pipe=
14005 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14006 lt_cv_sys_global_symbol_to_cdecl=
14008 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14009 { echo "$as_me:$LINENO: result: failed" >&5
14010 echo "${ECHO_T}failed" >&6; }
14012 { echo "$as_me:$LINENO: result: ok" >&5
14013 echo "${ECHO_T}ok" >&6; }
14016 { echo "$as_me:$LINENO: checking for objdir" >&5
14017 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14018 if test "${lt_cv_objdir+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 rm -f .libs 2>/dev/null
14022 mkdir .libs 2>/dev/null
14023 if test -d .libs; then
14026 # MS-DOS does not allow filenames that begin with a dot.
14029 rmdir .libs 2>/dev/null
14031 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14032 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14033 objdir=$lt_cv_objdir
14041 # AIX sometimes has problems with the GCC collect2 program. For some
14042 # reason, if we set the COLLECT_NAMES environment variable, the problems
14043 # vanish in a puff of smoke.
14044 if test "X${COLLECT_NAMES+set}" != Xset; then
14046 export COLLECT_NAMES
14051 # Sed substitution that helps us do robust quoting. It backslashifies
14052 # metacharacters that are still active within double-quoted strings.
14053 Xsed='sed -e 1s/^X//'
14054 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14056 # Same as above, but do not quote variable references.
14057 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14059 # Sed substitution to delay expansion of an escaped shell variable in a
14060 # double_quote_subst'ed string.
14061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14063 # Sed substitution to avoid accidental globbing in evaled expressions
14064 no_glob_subst='s/\*/\\\*/g'
14069 # Global variables:
14070 default_ofile=mklib
14071 can_build_shared=yes
14073 # All known linkers require a `.a' archive for static linking (except MSVC,
14074 # which needs '.lib').
14076 ltmain="$ac_aux_dir/ltmain.sh"
14077 ofile="$default_ofile"
14078 with_gnu_ld="$lt_cv_prog_gnu_ld"
14080 if test -n "$ac_tool_prefix"; then
14081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14082 set dummy ${ac_tool_prefix}ar; ac_word=$2
14083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14085 if test "${ac_cv_prog_AR+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 if test -n "$AR"; then
14089 ac_cv_prog_AR="$AR" # Let the user override the test.
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
14097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14098 ac_cv_prog_AR="${ac_tool_prefix}ar"
14099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 if test -n "$AR"; then
14110 { echo "$as_me:$LINENO: result: $AR" >&5
14111 echo "${ECHO_T}$AR" >&6; }
14113 { echo "$as_me:$LINENO: result: no" >&5
14114 echo "${ECHO_T}no" >&6; }
14119 if test -z "$ac_cv_prog_AR"; then
14121 # Extract the first word of "ar", so it can be a program name with args.
14122 set dummy ar; ac_word=$2
14123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14125 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 if test -n "$ac_ct_AR"; then
14129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
14137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14138 ac_cv_prog_ac_ct_AR="ar"
14139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14148 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14149 if test -n "$ac_ct_AR"; then
14150 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14151 echo "${ECHO_T}$ac_ct_AR" >&6; }
14153 { echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6; }
14157 if test "x$ac_ct_AR" = x; then
14160 case $cross_compiling:$ac_tool_warned in
14162 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14163 whose name does not start with the host triplet. If you think this
14164 configuration is useful to you, please write to autoconf@gnu.org." >&5
14165 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14166 whose name does not start with the host triplet. If you think this
14167 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14168 ac_tool_warned=yes ;;
14173 AR="$ac_cv_prog_AR"
14176 if test -n "$ac_tool_prefix"; then
14177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14181 if test "${ac_cv_prog_RANLIB+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 if test -n "$RANLIB"; then
14185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14191 test -z "$as_dir" && as_dir=.
14192 for ac_exec_ext in '' $ac_executable_extensions; do
14193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14204 RANLIB=$ac_cv_prog_RANLIB
14205 if test -n "$RANLIB"; then
14206 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14207 echo "${ECHO_T}$RANLIB" >&6; }
14209 { echo "$as_me:$LINENO: result: no" >&5
14210 echo "${ECHO_T}no" >&6; }
14215 if test -z "$ac_cv_prog_RANLIB"; then
14216 ac_ct_RANLIB=$RANLIB
14217 # Extract the first word of "ranlib", so it can be a program name with args.
14218 set dummy ranlib; ac_word=$2
14219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 if test -n "$ac_ct_RANLIB"; then
14225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14234 ac_cv_prog_ac_ct_RANLIB="ranlib"
14235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14245 if test -n "$ac_ct_RANLIB"; then
14246 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14247 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14249 { echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6; }
14253 if test "x$ac_ct_RANLIB" = x; then
14256 case $cross_compiling:$ac_tool_warned in
14258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14259 whose name does not start with the host triplet. If you think this
14260 configuration is useful to you, please write to autoconf@gnu.org." >&5
14261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14262 whose name does not start with the host triplet. If you think this
14263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14264 ac_tool_warned=yes ;;
14266 RANLIB=$ac_ct_RANLIB
14269 RANLIB="$ac_cv_prog_RANLIB"
14272 if test -n "$ac_tool_prefix"; then
14273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14274 set dummy ${ac_tool_prefix}strip; ac_word=$2
14275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14277 if test "${ac_cv_prog_STRIP+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 if test -n "$STRIP"; then
14281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 STRIP=$ac_cv_prog_STRIP
14301 if test -n "$STRIP"; then
14302 { echo "$as_me:$LINENO: result: $STRIP" >&5
14303 echo "${ECHO_T}$STRIP" >&6; }
14305 { echo "$as_me:$LINENO: result: no" >&5
14306 echo "${ECHO_T}no" >&6; }
14311 if test -z "$ac_cv_prog_STRIP"; then
14313 # Extract the first word of "strip", so it can be a program name with args.
14314 set dummy strip; ac_word=$2
14315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14317 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 if test -n "$ac_ct_STRIP"; then
14321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14330 ac_cv_prog_ac_ct_STRIP="strip"
14331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14340 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14341 if test -n "$ac_ct_STRIP"; then
14342 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14343 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14345 { echo "$as_me:$LINENO: result: no" >&5
14346 echo "${ECHO_T}no" >&6; }
14349 if test "x$ac_ct_STRIP" = x; then
14352 case $cross_compiling:$ac_tool_warned in
14354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14355 whose name does not start with the host triplet. If you think this
14356 configuration is useful to you, please write to autoconf@gnu.org." >&5
14357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14358 whose name does not start with the host triplet. If you think this
14359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14360 ac_tool_warned=yes ;;
14365 STRIP="$ac_cv_prog_STRIP"
14370 old_CFLAGS="$CFLAGS"
14372 # Set sane defaults for various variables
14373 test -z "$AR" && AR=ar
14374 test -z "$AR_FLAGS" && AR_FLAGS=cru
14375 test -z "$AS" && AS=as
14376 test -z "$CC" && CC=cc
14377 test -z "$LTCC" && LTCC=$CC
14378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14379 test -z "$DLLTOOL" && DLLTOOL=dlltool
14380 test -z "$LD" && LD=ld
14381 test -z "$LN_S" && LN_S="ln -s"
14382 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14383 test -z "$NM" && NM=nm
14384 test -z "$SED" && SED=sed
14385 test -z "$OBJDUMP" && OBJDUMP=objdump
14386 test -z "$RANLIB" && RANLIB=:
14387 test -z "$STRIP" && STRIP=:
14388 test -z "$ac_objext" && ac_objext=o
14390 # Determine commands to create old-style static archives.
14391 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14392 old_postinstall_cmds='chmod 644 $oldlib'
14393 old_postuninstall_cmds=
14395 if test -n "$RANLIB"; then
14398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14407 for cc_temp in $compiler""; do
14409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14415 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14418 # Only perform the check for file, if the check method requires it
14419 case $deplibs_check_method in
14421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14422 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14423 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14432 lt_save_MAGIC_CMD="$MAGIC_CMD"
14433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14435 for ac_dir in $ac_dummy; do
14437 test -z "$ac_dir" && ac_dir=.
14438 if test -f $ac_dir/${ac_tool_prefix}file; then
14439 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14440 if test -n "$file_magic_test_file"; then
14441 case $deplibs_check_method in
14443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14446 $EGREP "$file_magic_regex" > /dev/null; then
14451 *** Warning: the command libtool uses to detect shared libraries,
14452 *** $file_magic_cmd, produces output that libtool cannot recognize.
14453 *** The result is that libtool may fail to recognize shared libraries
14454 *** as such. This will affect the creation of libtool libraries that
14455 *** depend on shared libraries, but programs linked with such libtool
14456 *** libraries will work regardless of this problem. Nevertheless, you
14457 *** may want to report the problem to your system manager and/or to
14458 *** bug-libtool@gnu.org
14468 MAGIC_CMD="$lt_save_MAGIC_CMD"
14473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14474 if test -n "$MAGIC_CMD"; then
14475 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14476 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14478 { echo "$as_me:$LINENO: result: no" >&5
14479 echo "${ECHO_T}no" >&6; }
14482 if test -z "$lt_cv_path_MAGIC_CMD"; then
14483 if test -n "$ac_tool_prefix"; then
14484 { echo "$as_me:$LINENO: checking for file" >&5
14485 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14486 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14494 lt_save_MAGIC_CMD="$MAGIC_CMD"
14495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14497 for ac_dir in $ac_dummy; do
14499 test -z "$ac_dir" && ac_dir=.
14500 if test -f $ac_dir/file; then
14501 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14502 if test -n "$file_magic_test_file"; then
14503 case $deplibs_check_method in
14505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14508 $EGREP "$file_magic_regex" > /dev/null; then
14513 *** Warning: the command libtool uses to detect shared libraries,
14514 *** $file_magic_cmd, produces output that libtool cannot recognize.
14515 *** The result is that libtool may fail to recognize shared libraries
14516 *** as such. This will affect the creation of libtool libraries that
14517 *** depend on shared libraries, but programs linked with such libtool
14518 *** libraries will work regardless of this problem. Nevertheless, you
14519 *** may want to report the problem to your system manager and/or to
14520 *** bug-libtool@gnu.org
14530 MAGIC_CMD="$lt_save_MAGIC_CMD"
14535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14536 if test -n "$MAGIC_CMD"; then
14537 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14538 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14540 { echo "$as_me:$LINENO: result: no" >&5
14541 echo "${ECHO_T}no" >&6; }
14554 enable_win32_dll=no
14556 # Check whether --enable-libtool-lock was given.
14557 if test "${enable_libtool_lock+set}" = set; then
14558 enableval=$enable_libtool_lock;
14561 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14564 # Check whether --with-pic was given.
14565 if test "${with_pic+set}" = set; then
14566 withval=$with_pic; pic_mode="$withval"
14571 test -z "$pic_mode" && pic_mode=default
14573 # Use C for the default configuration in the libtool script
14577 ac_cpp='$CPP $CPPFLAGS'
14578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14583 # Source file extension for C test sources.
14586 # Object file extension for compiled C test sources.
14590 # Code to be used in simple compile tests
14591 lt_simple_compile_test_code="int some_variable = 0;\n"
14593 # Code to be used in simple link tests
14594 lt_simple_link_test_code='int main(){return(0);}\n'
14597 # If no C compiler was specified, use CC.
14600 # If no C compiler flags were specified, use CFLAGS.
14601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14603 # Allow CC to be a program name with arguments.
14607 # save warnings/boilerplate of simple test code
14608 ac_outfile=conftest.$ac_objext
14609 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14610 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14611 _lt_compiler_boilerplate=`cat conftest.err`
14614 ac_outfile=conftest.$ac_objext
14615 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14616 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14617 _lt_linker_boilerplate=`cat conftest.err`
14622 lt_prog_compiler_no_builtin_flag=
14624 if test "$GCC" = yes; then
14625 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14628 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14629 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14630 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 lt_cv_prog_compiler_rtti_exceptions=no
14634 ac_outfile=conftest.$ac_objext
14635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14636 lt_compiler_flag="-fno-rtti -fno-exceptions"
14637 # Insert the option either (1) after the last *FLAGS variable, or
14638 # (2) before a word containing "conftest.", or (3) at the end.
14639 # Note that $ac_compile itself does not contain backslashes and begins
14640 # with a dollar sign (not a hyphen), so the echo should work correctly.
14641 # The option is referenced via a variable to avoid confusing sed.
14642 lt_compile=`echo "$ac_compile" | $SED \
14643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14645 -e 's:$: $lt_compiler_flag:'`
14646 (eval echo "\"\$as_me:14646: $lt_compile\"" >&5)
14647 (eval "$lt_compile" 2>conftest.err)
14649 cat conftest.err >&5
14650 echo "$as_me:14650: \$? = $ac_status" >&5
14651 if (exit $ac_status) && test -s "$ac_outfile"; then
14652 # The compiler can only warn and ignore the option if not recognized
14653 # So say no if there are warnings other than the usual output.
14654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14657 lt_cv_prog_compiler_rtti_exceptions=yes
14663 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14664 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14666 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14667 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14674 lt_prog_compiler_wl=
14675 lt_prog_compiler_pic=
14676 lt_prog_compiler_static=
14678 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14681 if test "$GCC" = yes; then
14682 lt_prog_compiler_wl='-Wl,'
14683 lt_prog_compiler_static='-static'
14687 # All AIX code is PIC.
14688 if test "$host_cpu" = ia64; then
14689 # AIX 5 now supports IA64 processor
14690 lt_prog_compiler_static='-Bstatic'
14695 # FIXME: we need at least 68020 code to build shared libraries, but
14696 # adding the `-m68020' flag to GCC prevents building anything better,
14698 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14701 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14702 # PIC is the default for these OSes.
14705 mingw* | pw32* | os2*)
14706 # This hack is so that the source file can tell whether it is being
14707 # built for inclusion in a dll (and should export symbols for example).
14708 lt_prog_compiler_pic='-DDLL_EXPORT'
14711 darwin* | rhapsody*)
14712 # PIC is the default on this platform
14713 # Common symbols not allowed in MH_DYLIB files
14714 lt_prog_compiler_pic='-fno-common'
14718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14719 # Instead, we relocate shared libraries at runtime.
14723 # Just because we use GCC doesn't mean we suddenly get shared libraries
14724 # on systems that don't support them.
14725 lt_prog_compiler_can_build_shared=no
14730 if test -d /usr/nec; then
14731 lt_prog_compiler_pic=-Kconform_pic
14736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14737 # not for PA HP-UX.
14743 lt_prog_compiler_pic='-fPIC'
14749 lt_prog_compiler_pic='-fPIC'
14753 # PORTME Check for flag to pass linker flags through the system compiler.
14756 lt_prog_compiler_wl='-Wl,'
14757 if test "$host_cpu" = ia64; then
14758 # AIX 5 now supports IA64 processor
14759 lt_prog_compiler_static='-Bstatic'
14761 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14765 # PIC is the default on this platform
14766 # Common symbols not allowed in MH_DYLIB files
14767 case $cc_basename in
14769 lt_prog_compiler_pic='-qnocommon'
14770 lt_prog_compiler_wl='-Wl,'
14775 mingw* | pw32* | os2*)
14776 # This hack is so that the source file can tell whether it is being
14777 # built for inclusion in a dll (and should export symbols for example).
14778 lt_prog_compiler_pic='-DDLL_EXPORT'
14781 hpux9* | hpux10* | hpux11*)
14782 lt_prog_compiler_wl='-Wl,'
14783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784 # not for PA HP-UX.
14790 lt_prog_compiler_pic='+Z'
14793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14794 lt_prog_compiler_static='${wl}-a ${wl}archive'
14797 irix5* | irix6* | nonstopux*)
14798 lt_prog_compiler_wl='-Wl,'
14799 # PIC (with -KPIC) is the default.
14800 lt_prog_compiler_static='-non_shared'
14804 lt_prog_compiler_pic='-KPIC'
14805 lt_prog_compiler_static='-Bstatic'
14809 case $cc_basename in
14811 lt_prog_compiler_wl='-Wl,'
14812 lt_prog_compiler_pic='-KPIC'
14813 lt_prog_compiler_static='-static'
14815 pgcc* | pgf77* | pgf90* | pgf95*)
14816 # Portland Group compilers (*not* the Pentium gcc compiler,
14817 # which looks to be a dead project)
14818 lt_prog_compiler_wl='-Wl,'
14819 lt_prog_compiler_pic='-fpic'
14820 lt_prog_compiler_static='-Bstatic'
14823 lt_prog_compiler_wl='-Wl,'
14824 # All Alpha code is PIC.
14825 lt_prog_compiler_static='-non_shared'
14830 osf3* | osf4* | osf5*)
14831 lt_prog_compiler_wl='-Wl,'
14832 # All OSF/1 code is PIC.
14833 lt_prog_compiler_static='-non_shared'
14837 lt_prog_compiler_pic='-KPIC'
14838 lt_prog_compiler_static='-Bstatic'
14839 case $cc_basename in
14840 f77* | f90* | f95*)
14841 lt_prog_compiler_wl='-Qoption ld ';;
14843 lt_prog_compiler_wl='-Wl,';;
14848 lt_prog_compiler_wl='-Qoption ld '
14849 lt_prog_compiler_pic='-PIC'
14850 lt_prog_compiler_static='-Bstatic'
14853 sysv4 | sysv4.2uw2* | sysv4.3*)
14854 lt_prog_compiler_wl='-Wl,'
14855 lt_prog_compiler_pic='-KPIC'
14856 lt_prog_compiler_static='-Bstatic'
14860 if test -d /usr/nec ;then
14861 lt_prog_compiler_pic='-Kconform_pic'
14862 lt_prog_compiler_static='-Bstatic'
14866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14867 lt_prog_compiler_wl='-Wl,'
14868 lt_prog_compiler_pic='-KPIC'
14869 lt_prog_compiler_static='-Bstatic'
14873 lt_prog_compiler_wl='-Wl,'
14874 lt_prog_compiler_can_build_shared=no
14878 lt_prog_compiler_pic='-pic'
14879 lt_prog_compiler_static='-Bstatic'
14883 lt_prog_compiler_can_build_shared=no
14888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14889 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14892 # Check to make sure the PIC flag actually works.
14894 if test -n "$lt_prog_compiler_pic"; then
14896 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14897 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14898 if test "${lt_prog_compiler_pic_works+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 lt_prog_compiler_pic_works=no
14902 ac_outfile=conftest.$ac_objext
14903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14905 # Insert the option either (1) after the last *FLAGS variable, or
14906 # (2) before a word containing "conftest.", or (3) at the end.
14907 # Note that $ac_compile itself does not contain backslashes and begins
14908 # with a dollar sign (not a hyphen), so the echo should work correctly.
14909 # The option is referenced via a variable to avoid confusing sed.
14910 lt_compile=`echo "$ac_compile" | $SED \
14911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14913 -e 's:$: $lt_compiler_flag:'`
14914 (eval echo "\"\$as_me:14914: $lt_compile\"" >&5)
14915 (eval "$lt_compile" 2>conftest.err)
14917 cat conftest.err >&5
14918 echo "$as_me:14918: \$? = $ac_status" >&5
14919 if (exit $ac_status) && test -s "$ac_outfile"; then
14920 # The compiler can only warn and ignore the option if not recognized
14921 # So say no if there are warnings other than the usual output.
14922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14925 lt_prog_compiler_pic_works=yes
14931 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14932 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14934 if test x"$lt_prog_compiler_pic_works" = xyes; then
14935 case $lt_prog_compiler_pic in
14937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14940 lt_prog_compiler_pic=
14941 lt_prog_compiler_can_build_shared=no
14946 # For platforms which do not support PIC, -DPIC is meaningless:
14948 lt_prog_compiler_pic=
14951 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14956 # Check to make sure the static flag actually works.
14958 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14959 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14960 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14961 if test "${lt_prog_compiler_static_works+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 lt_prog_compiler_static_works=no
14965 save_LDFLAGS="$LDFLAGS"
14966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14967 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14969 # The linker can only warn and ignore the option if not recognized
14970 # So say no if there are warnings
14971 if test -s conftest.err; then
14972 # Append any errors to the config.log.
14973 cat conftest.err 1>&5
14974 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14976 if diff conftest.exp conftest.er2 >/dev/null; then
14977 lt_prog_compiler_static_works=yes
14980 lt_prog_compiler_static_works=yes
14984 LDFLAGS="$save_LDFLAGS"
14987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14988 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14990 if test x"$lt_prog_compiler_static_works" = xyes; then
14993 lt_prog_compiler_static=
14997 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14999 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 lt_cv_prog_compiler_c_o=no
15003 $rm -r conftest 2>/dev/null
15007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15009 lt_compiler_flag="-o out/conftest2.$ac_objext"
15010 # Insert the option either (1) after the last *FLAGS variable, or
15011 # (2) before a word containing "conftest.", or (3) at the end.
15012 # Note that $ac_compile itself does not contain backslashes and begins
15013 # with a dollar sign (not a hyphen), so the echo should work correctly.
15014 lt_compile=`echo "$ac_compile" | $SED \
15015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15017 -e 's:$: $lt_compiler_flag:'`
15018 (eval echo "\"\$as_me:15018: $lt_compile\"" >&5)
15019 (eval "$lt_compile" 2>out/conftest.err)
15021 cat out/conftest.err >&5
15022 echo "$as_me:15022: \$? = $ac_status" >&5
15023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15025 # The compiler can only warn and ignore the option if not recognized
15026 # So say no if there are warnings
15027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15030 lt_cv_prog_compiler_c_o=yes
15035 # SGI C++ compiler will create directory out/ii_files/ for
15036 # template instantiation
15037 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15038 $rm out/* && rmdir out
15044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15045 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15048 hard_links="nottested"
15049 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15050 # do not overwrite the value of need_locks provided by the user
15051 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15052 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15057 ln conftest.a conftest.b 2>&5 || hard_links=no
15058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15059 { echo "$as_me:$LINENO: result: $hard_links" >&5
15060 echo "${ECHO_T}$hard_links" >&6; }
15061 if test "$hard_links" = no; then
15062 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15063 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15070 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15074 allow_undefined_flag=
15075 enable_shared_with_static_runtimes=no
15077 archive_expsym_cmds=
15078 old_archive_From_new_cmds=
15079 old_archive_from_expsyms_cmds=
15080 export_dynamic_flag_spec=
15081 whole_archive_flag_spec=
15082 thread_safe_flag_spec=
15083 hardcode_libdir_flag_spec=
15084 hardcode_libdir_flag_spec_ld=
15085 hardcode_libdir_separator=
15087 hardcode_minus_L=no
15088 hardcode_shlibpath_var=unsupported
15089 link_all_deplibs=unknown
15090 hardcode_automatic=no
15092 module_expsym_cmds=
15093 always_export_symbols=no
15094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15095 # include_expsyms should be a list of space-separated symbols to be *always*
15096 # included in the symbol list
15098 # exclude_expsyms can be an extended regexp of symbols to exclude
15099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15101 # as well as any symbol that contains `d'.
15102 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15104 # platforms (ab)use it in PIC code, but their linkers get confused if
15105 # the symbol is explicitly referenced. Since portable code cannot
15106 # rely on this symbol name, it's probably fine to never include it in
15107 # preloaded symbol tables.
15108 extract_expsyms_cmds=
15109 # Just being paranoid about ensuring that cc_basename is set.
15110 for cc_temp in $compiler""; do
15112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15121 cygwin* | mingw* | pw32*)
15122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15123 # When not using gcc, we currently assume that we are using
15124 # Microsoft Visual C++.
15125 if test "$GCC" != yes; then
15130 # we just hope/assume this is gcc and not c89 (= MSVC++)
15139 if test "$with_gnu_ld" = yes; then
15140 # If archive_cmds runs LD, not CC, wlarc should be empty
15143 # Set some defaults for GNU ld with shared library support. These
15144 # are reset later if shared libraries are not supported. Putting them
15145 # here allows them to be overridden if necessary.
15146 runpath_var=LD_RUN_PATH
15147 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15148 export_dynamic_flag_spec='${wl}--export-dynamic'
15149 # ancient GNU ld didn't support --whole-archive et. al.
15150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15151 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15153 whole_archive_flag_spec=
15155 supports_anon_versioning=no
15156 case `$LD -v 2>/dev/null` in
15157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15160 *\ 2.11.*) ;; # other 2.11 versions
15161 *) supports_anon_versioning=yes ;;
15164 # See if GNU ld supports shared libraries.
15166 aix3* | aix4* | aix5*)
15167 # On AIX/PPC, the GNU linker is very broken
15168 if test "$host_cpu" != ia64; then
15172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15173 *** to be unable to reliably create shared libraries on AIX.
15174 *** Therefore, libtool is disabling shared libraries support. If you
15175 *** really care for shared libraries, you may want to modify your PATH
15176 *** so that a non-GNU linker is found, and then restart.
15183 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)'
15184 hardcode_libdir_flag_spec='-L$libdir'
15185 hardcode_minus_L=yes
15187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15188 # that the semantics of dynamic libraries on AmigaOS, at least up
15189 # to version 4, is to share data among multiple programs linked
15190 # with the same dynamic library. Since this doesn't match the
15191 # behavior of shared libraries on other platforms, we can't use
15197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15198 allow_undefined_flag=unsupported
15199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15200 # support --undefined. This deserves some investigation. FIXME
15201 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15207 cygwin* | mingw* | pw32*)
15208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15209 # as there is no search path for DLLs.
15210 hardcode_libdir_flag_spec='-L$libdir'
15211 allow_undefined_flag=unsupported
15212 always_export_symbols=no
15213 enable_shared_with_static_runtimes=yes
15214 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15218 # If the export-symbols file already is a .def file (1st line
15219 # is EXPORTS), use it as is; otherwise, prepend...
15220 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15221 cp $export_symbols $output_objdir/$soname.def;
15223 echo EXPORTS > $output_objdir/$soname.def;
15224 cat $export_symbols >> $output_objdir/$soname.def;
15226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15234 hardcode_shlibpath_var=no
15235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15236 export_dynamic_flag_spec='${wl}-E'
15237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15238 # Instead, shared libraries are loaded at an image base (0x10000000 by
15239 # default) and relocated if they conflict, which is a slow very memory
15240 # consuming and fragmenting process. To avoid this, we pick a random,
15241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15244 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'
15248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15250 case $cc_basename,$host_cpu in
15251 pgcc*) # Portland Group C compiler
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'
15255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15256 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'
15257 tmp_addflag=' $pic_flag -Mnomain' ;;
15258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15259 tmp_addflag=' -i_dynamic' ;;
15260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15261 tmp_addflag=' -i_dynamic -nofor_main' ;;
15262 ifc* | ifort*) # Intel Fortran compiler
15263 tmp_addflag=' -nofor_main' ;;
15265 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15267 if test $supports_anon_versioning = yes; then
15268 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15270 $echo "local: *; };" >> $output_objdir/$libname.ver~
15271 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15280 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15289 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15294 *** create shared libraries on Solaris systems. Therefore, libtool
15295 *** is disabling shared libraries support. We urge you to upgrade GNU
15296 *** binutils to release 2.9.1 or newer. Another option is to modify
15297 *** your PATH or compiler configuration so that the native linker is
15298 *** used, and then restart.
15301 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15310 case `$LD -v 2>&1` in
15311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15316 *** reliably create shared libraries on SCO systems. Therefore, libtool
15317 *** is disabling shared libraries support. We urge you to upgrade GNU
15318 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15319 *** your PATH or compiler configuration so that the native linker is
15320 *** used, and then restart.
15325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15326 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_direct=yes
15340 hardcode_shlibpath_var=no
15344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15353 if test "$ld_shlibs" = no; then
15355 hardcode_libdir_flag_spec=
15356 export_dynamic_flag_spec=
15357 whole_archive_flag_spec=
15360 # PORTME fill in a description of your system's linker (not GNU ld)
15363 allow_undefined_flag=unsupported
15364 always_export_symbols=yes
15365 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'
15366 # Note: this linker hardcodes the directories in LIBPATH if there
15367 # are no directories specified by -L.
15368 hardcode_minus_L=yes
15369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15370 # Neither direct hardcoding nor static linking is supported with a
15372 hardcode_direct=unsupported
15377 if test "$host_cpu" = ia64; then
15378 # On IA64, the linker does run time linking by default, so we don't
15379 # have to do anything special.
15380 aix_use_runtimelinking=no
15381 exp_sym_flag='-Bexport'
15384 # If we're using GNU nm, then we don't want the "-C" option.
15385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15386 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15387 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'
15389 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'
15391 aix_use_runtimelinking=no
15393 # Test if we are trying to use run time linking or normal
15394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15395 # need to do runtime linking.
15396 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15397 for ld_flag in $LDFLAGS; do
15398 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15399 aix_use_runtimelinking=yes
15406 exp_sym_flag='-bexport'
15407 no_entry_flag='-bnoentry'
15410 # When large executables or shared objects are built, AIX ld can
15411 # have problems creating the table of contents. If linking a library
15412 # or program results in "error TOC overflow" add -mminimal-toc to
15413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15417 hardcode_direct=yes
15418 hardcode_libdir_separator=':'
15419 link_all_deplibs=yes
15421 if test "$GCC" = yes; then
15422 case $host_os in aix4.[012]|aix4.[012].*)
15423 # We only want to do this on AIX 4.2 and lower, the check
15424 # below for broken collect2 doesn't work under 4.3+
15425 collect2name=`${CC} -print-prog-name=collect2`
15426 if test -f "$collect2name" && \
15427 strings "$collect2name" | grep resolve_lib_name >/dev/null
15429 # We have reworked collect2
15430 hardcode_direct=yes
15432 # We have old collect2
15433 hardcode_direct=unsupported
15434 # It fails to find uninstalled libraries when the uninstalled
15435 # path is not listed in the libpath. Setting hardcode_minus_L
15436 # to unsupported forces relinking
15437 hardcode_minus_L=yes
15438 hardcode_libdir_flag_spec='-L$libdir'
15439 hardcode_libdir_separator=
15443 shared_flag='-shared'
15444 if test "$aix_use_runtimelinking" = yes; then
15445 shared_flag="$shared_flag "'${wl}-G'
15449 if test "$host_cpu" = ia64; then
15450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15451 # chokes on -Wl,-G. The following line is correct:
15454 if test "$aix_use_runtimelinking" = yes; then
15455 shared_flag='${wl}-G'
15457 shared_flag='${wl}-bM:SRE'
15462 # It seems that -bexpall does not export symbols beginning with
15463 # underscore (_), so it is better to generate a list of symbols to export.
15464 always_export_symbols=yes
15465 if test "$aix_use_runtimelinking" = yes; then
15466 # Warning - without using the other runtime loading flags (-brtl),
15467 # -berok will link without error, but may produce a broken library.
15468 allow_undefined_flag='-berok'
15469 # Determine the default libpath from the value encoded in an empty executable.
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15500 { (case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_try") 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_try") 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15522 # Check for a 64-bit object if we didn't find anything.
15523 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; }
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15532 rm -f core conftest.err conftest.$ac_objext \
15533 conftest$ac_exeext conftest.$ac_ext
15534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15537 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"
15539 if test "$host_cpu" = ia64; then
15540 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15541 allow_undefined_flag="-z nodefs"
15542 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"
15544 # Determine the default libpath from the value encoded in an empty executable.
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_link") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } &&
15574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15597 # Check for a 64-bit object if we didn't find anything.
15598 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; }
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15607 rm -f core conftest.err conftest.$ac_objext \
15608 conftest$ac_exeext conftest.$ac_ext
15609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15611 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15612 # Warning - without using the other run time loading flags,
15613 # -berok will link without error, but may produce a broken library.
15614 no_undefined_flag=' ${wl}-bernotok'
15615 allow_undefined_flag=' ${wl}-berok'
15616 # Exported symbols can be pulled into shared objects from archives
15617 whole_archive_flag_spec='$convenience'
15618 archive_cmds_need_lc=yes
15619 # This is similar to how AIX traditionally builds its shared libraries.
15620 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'
15626 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)'
15627 hardcode_libdir_flag_spec='-L$libdir'
15628 hardcode_minus_L=yes
15629 # see comment about different semantics on the GNU ld section
15634 export_dynamic_flag_spec=-rdynamic
15637 cygwin* | mingw* | pw32*)
15638 # When not using gcc, we currently assume that we are using
15639 # Microsoft Visual C++.
15640 # hardcode_libdir_flag_spec is actually meaningless, as there is
15641 # no search path for DLLs.
15642 hardcode_libdir_flag_spec=' '
15643 allow_undefined_flag=unsupported
15644 # Tell ltmain to make .lib files, not .a files.
15646 # Tell ltmain to make .dll files, not .so files.
15648 # FIXME: Setting linknames here is a bad hack.
15649 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15650 # The linker will automatically build a .lib file if we build a DLL.
15651 old_archive_From_new_cmds='true'
15652 # FIXME: Should let the user specify the lib program.
15653 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15654 fix_srcfile_path='`cygpath -w "$srcfile"`'
15655 enable_shared_with_static_runtimes=yes
15658 darwin* | rhapsody*)
15660 rhapsody* | darwin1.[012])
15661 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15664 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15665 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15667 case ${MACOSX_DEPLOYMENT_TARGET} in
15669 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15672 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15678 archive_cmds_need_lc=no
15680 hardcode_automatic=yes
15681 hardcode_shlibpath_var=unsupported
15682 whole_archive_flag_spec=''
15683 link_all_deplibs=yes
15684 if test "$GCC" = yes ; then
15685 output_verbose_link_cmd='echo'
15686 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15687 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15688 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15689 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}'
15690 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}'
15692 case $cc_basename in
15694 output_verbose_link_cmd='echo'
15695 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15696 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15698 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}'
15699 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}'
15709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710 hardcode_libdir_flag_spec='-L$libdir'
15711 hardcode_shlibpath_var=no
15718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15719 # support. Future versions do this automatically, but an explicit c++rt0.o
15720 # does not break anything, and helps significantly (at the cost of a little
15723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15724 hardcode_libdir_flag_spec='-R$libdir'
15725 hardcode_direct=yes
15726 hardcode_shlibpath_var=no
15729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732 hardcode_direct=yes
15733 hardcode_minus_L=yes
15734 hardcode_shlibpath_var=no
15737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15738 freebsd* | kfreebsd*-gnu | dragonfly*)
15739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15740 hardcode_libdir_flag_spec='-R$libdir'
15741 hardcode_direct=yes
15742 hardcode_shlibpath_var=no
15746 if test "$GCC" = yes; then
15747 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'
15749 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'
15751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15752 hardcode_libdir_separator=:
15753 hardcode_direct=yes
15755 # hardcode_minus_L: Not really in the search PATH,
15756 # but as the default location of the library.
15757 hardcode_minus_L=yes
15758 export_dynamic_flag_spec='${wl}-E'
15762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15767 if test "$with_gnu_ld" = no; then
15768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15769 hardcode_libdir_separator=:
15771 hardcode_direct=yes
15772 export_dynamic_flag_spec='${wl}-E'
15774 # hardcode_minus_L: Not really in the search PATH,
15775 # but as the default location of the library.
15776 hardcode_minus_L=yes
15781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15806 if test "$with_gnu_ld" = no; then
15807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15808 hardcode_libdir_separator=:
15812 hardcode_libdir_flag_spec_ld='+b $libdir'
15814 hardcode_shlibpath_var=no
15817 hardcode_direct=yes
15818 export_dynamic_flag_spec='${wl}-E'
15820 # hardcode_minus_L: Not really in the search PATH,
15821 # but as the default location of the library.
15822 hardcode_minus_L=yes
15828 irix5* | irix6* | nonstopux*)
15829 if test "$GCC" = yes; then
15830 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'
15832 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'
15833 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15836 hardcode_libdir_separator=:
15837 link_all_deplibs=yes
15841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15844 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15846 hardcode_libdir_flag_spec='-R$libdir'
15847 hardcode_direct=yes
15848 hardcode_shlibpath_var=no
15852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_direct=yes
15854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15855 hardcode_libdir_separator=:
15856 hardcode_shlibpath_var=no
15860 hardcode_direct=yes
15861 hardcode_shlibpath_var=no
15862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15866 export_dynamic_flag_spec='${wl}-E'
15869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_libdir_flag_spec='-R$libdir'
15874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15882 hardcode_libdir_flag_spec='-L$libdir'
15883 hardcode_minus_L=yes
15884 allow_undefined_flag=unsupported
15885 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'
15886 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15890 if test "$GCC" = yes; then
15891 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15892 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'
15894 allow_undefined_flag=' -expect_unresolved \*'
15895 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'
15897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15898 hardcode_libdir_separator=:
15901 osf4* | osf5*) # as osf3* with the addition of -msym flag
15902 if test "$GCC" = yes; then
15903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15904 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'
15905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15907 allow_undefined_flag=' -expect_unresolved \*'
15908 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'
15909 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15910 $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'
15912 # Both c and cxx compiler support -rpath directly
15913 hardcode_libdir_flag_spec='-rpath $libdir'
15915 hardcode_libdir_separator=:
15919 no_undefined_flag=' -z text'
15920 if test "$GCC" = yes; then
15922 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15924 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_shlibpath_var=no
15934 solaris2.[0-5] | solaris2.[0-5].*) ;;
15936 # The compiler driver will combine linker options so we
15937 # cannot just pass the convience library names through
15938 # without $wl, iff we do not link with $LD.
15939 # Luckily, gcc supports the same syntax we need for Sun Studio.
15940 # Supported since Solaris 2.6 (maybe 2.5.1?)
15943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15945 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' ;;
15948 link_all_deplibs=yes
15952 if test "x$host_vendor" = xsequent; then
15953 # Use $CC to link under sequent, because it throws in some extra .o
15954 # files that make .init and .fini sections work.
15955 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15957 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15959 hardcode_libdir_flag_spec='-L$libdir'
15960 hardcode_direct=yes
15961 hardcode_minus_L=yes
15962 hardcode_shlibpath_var=no
15966 case $host_vendor in
15968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15969 hardcode_direct=yes # is this really true???
15972 ## LD is ld it makes a PLAMLIB
15973 ## CC just makes a GrossModule.
15974 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15975 reload_cmds='$CC -r -o $output$reload_objs'
15979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15983 runpath_var='LD_RUN_PATH'
15984 hardcode_shlibpath_var=no
15988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15989 hardcode_shlibpath_var=no
15990 export_dynamic_flag_spec='-Bexport'
15994 if test -d /usr/nec; then
15995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996 hardcode_shlibpath_var=no
15997 runpath_var=LD_RUN_PATH
15998 hardcode_runpath_var=yes
16003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16004 no_undefined_flag='${wl}-z,text'
16005 archive_cmds_need_lc=no
16006 hardcode_shlibpath_var=no
16007 runpath_var='LD_RUN_PATH'
16009 if test "$GCC" = yes; then
16010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16018 sysv5* | sco3.2v5* | sco5v6*)
16019 # Note: We can NOT use -z defs as we might desire, because we do not
16020 # link with -lc, and that would cause any symbols used from libc to
16021 # always be unresolved, which means just about no library would
16022 # ever link correctly. If we're not using GNU ld we use -z text
16023 # though, which does catch some bad symbols but isn't as heavy-handed
16025 no_undefined_flag='${wl}-z,text'
16026 allow_undefined_flag='${wl}-z,nodefs'
16027 archive_cmds_need_lc=no
16028 hardcode_shlibpath_var=no
16029 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16030 hardcode_libdir_separator=':'
16031 link_all_deplibs=yes
16032 export_dynamic_flag_spec='${wl}-Bexport'
16033 runpath_var='LD_RUN_PATH'
16035 if test "$GCC" = yes; then
16036 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16039 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_libdir_flag_spec='-L$libdir'
16047 hardcode_shlibpath_var=no
16056 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16057 echo "${ECHO_T}$ld_shlibs" >&6; }
16058 test "$ld_shlibs" = no && can_build_shared=no
16061 # Do we need to explicitly link libc?
16063 case "x$archive_cmds_need_lc" in
16065 # Assume -lc should be added
16066 archive_cmds_need_lc=yes
16068 if test "$enable_shared" = yes && test "$GCC" = yes; then
16069 case $archive_cmds in
16071 # FIXME: we may have to deal with multi-command sequences.
16074 # Test whether the compiler implicitly links with -lc since on some
16075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16076 # to ld, don't add -lc before -lgcc.
16077 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } 2>conftest.err; then
16089 libobjs=conftest.$ac_objext
16091 wl=$lt_prog_compiler_wl
16092 pic_flag=$lt_prog_compiler_pic
16098 lt_save_allow_undefined_flag=$allow_undefined_flag
16099 allow_undefined_flag=
16100 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16101 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }
16106 archive_cmds_need_lc=no
16108 archive_cmds_need_lc=yes
16110 allow_undefined_flag=$lt_save_allow_undefined_flag
16112 cat conftest.err 1>&5
16115 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16116 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16123 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16124 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16125 library_names_spec=
16126 libname_spec='lib$name'
16130 postuninstall_cmds=
16134 shlibpath_overrides_runpath=unknown
16136 dynamic_linker="$host_os ld.so"
16137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16138 if test "$GCC" = yes; then
16139 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16140 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16141 # if the path contains ";" then we assume it to be the separator
16142 # otherwise default to the standard path separator (i.e. ":") - it is
16143 # assumed that no part of a normal pathname contains ";" but that should
16144 # okay in the real world where ";" in dirpaths is itself problematic.
16145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16150 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16152 need_lib_prefix=unknown
16153 hardcode_into_libs=no
16155 # when you set need_version to no, make sure it does not cause -set_version
16156 # flags to be left without arguments
16157 need_version=unknown
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16163 shlibpath_var=LIBPATH
16165 # AIX 3 has no versioning support, so we append a major version to the name.
16166 soname_spec='${libname}${release}${shared_ext}$major'
16173 hardcode_into_libs=yes
16174 if test "$host_cpu" = ia64; then
16175 # AIX 5 supports IA64
16176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16177 shlibpath_var=LD_LIBRARY_PATH
16179 # With GCC up to 2.95.x, collect2 would create an import file
16180 # for dependence libraries. The import file would start with
16181 # the line `#! .'. This would cause the generated library to
16182 # depend on `.', always an invalid library. This was fixed in
16183 # development snapshots of GCC prior to 3.0.
16185 aix4 | aix4.[01] | aix4.[01].*)
16186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16188 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16191 can_build_shared=no
16195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16196 # soname into executable. Probably we can add versioning support to
16197 # collect2, so additional links can be useful in future.
16198 if test "$aix_use_runtimelinking" = yes; then
16199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16200 # instead of lib<name>.a to let people know that these are not
16201 # typical AIX shared libraries.
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 # We preserve .a as extension for shared libraries through AIX4.2
16205 # and later when we are not doing run time linking.
16206 library_names_spec='${libname}${release}.a $libname.a'
16207 soname_spec='${libname}${release}${shared_ext}$major'
16209 shlibpath_var=LIBPATH
16214 library_names_spec='$libname.ixlibrary $libname.a'
16215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16216 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'
16220 library_names_spec='${libname}${shared_ext}'
16221 dynamic_linker="$host_os ld.so"
16222 shlibpath_var=LIBRARY_PATH
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16234 # the default ld.so.conf also contains /usr/contrib/lib and
16235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16236 # libtool to hard-code these into programs
16239 cygwin* | mingw* | pw32*)
16240 version_type=windows
16245 case $GCC,$host_os in
16246 yes,cygwin* | yes,mingw* | yes,pw32*)
16247 library_names_spec='$libname.dll.a'
16248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16249 postinstall_cmds='base_file=`basename \${file}`~
16250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16251 dldir=$destdir/`dirname \$dlpath`~
16252 test -d \$dldir || mkdir -p \$dldir~
16253 $install_prog $dir/$dlname \$dldir/$dlname~
16254 chmod a+x \$dldir/$dlname'
16255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16256 dlpath=$dir/\$dldll~
16258 shlibpath_overrides_runpath=yes
16262 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16264 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16267 # MinGW DLLs use traditional 'lib' prefix
16268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16269 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16270 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16271 # It is most probably a Windows format PATH printed by
16272 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16273 # path with ; separators, and with drive letters. We can handle the
16274 # drive letters (cygwin fileutils understands them), so leave them,
16275 # especially as we might pass files found there to a mingw objdump,
16276 # which wouldn't understand a cygwinified path. Ahh.
16277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16283 # pw32 DLLs use 'pw' prefix rather than 'lib'
16284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16293 dynamic_linker='Win32 ld.exe'
16294 # FIXME: first we should search . and the directory the executable is in
16298 darwin* | rhapsody*)
16299 dynamic_linker="$host_os dyld"
16300 version_type=darwin
16303 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16304 soname_spec='${libname}${release}${major}$shared_ext'
16305 shlibpath_overrides_runpath=yes
16306 shlibpath_var=DYLD_LIBRARY_PATH
16307 shrext_cmds='.dylib'
16308 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16309 if test "$GCC" = yes; then
16310 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"`
16312 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16314 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=no
16338 hardcode_into_libs=yes
16339 dynamic_linker='GNU ld.so'
16342 freebsd* | dragonfly*)
16343 # DragonFly does not have aout. When/if they implement a new
16344 # versioning mechanism, adjust this.
16345 if test -x /usr/bin/objformat; then
16346 objformat=`/usr/bin/objformat`
16349 freebsd[123]*) objformat=aout ;;
16350 *) objformat=elf ;;
16353 version_type=freebsd-$objformat
16354 case $version_type in
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16365 shlibpath_var=LD_LIBRARY_PATH
16368 shlibpath_overrides_runpath=yes
16370 freebsd3.[01]* | freebsdelf3.[01]*)
16371 shlibpath_overrides_runpath=yes
16372 hardcode_into_libs=yes
16374 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16375 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16376 shlibpath_overrides_runpath=no
16377 hardcode_into_libs=yes
16379 freebsd*) # from 4.6 on
16380 shlibpath_overrides_runpath=yes
16381 hardcode_into_libs=yes
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 hardcode_into_libs=yes
16396 hpux9* | hpux10* | hpux11*)
16397 # Give a soname corresponding to the major version so that dld.sl refuses to
16398 # link against other versions.
16405 hardcode_into_libs=yes
16406 dynamic_linker="$host_os dld.so"
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 if test "X$HPUX_IA64_MODE" = X32; then
16412 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16414 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16420 hardcode_into_libs=yes
16421 dynamic_linker="$host_os dld.sl"
16422 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 soname_spec='${libname}${release}${shared_ext}$major'
16426 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16431 dynamic_linker="$host_os dld.sl"
16432 shlibpath_var=SHLIB_PATH
16433 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 soname_spec='${libname}${release}${shared_ext}$major'
16438 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16439 postinstall_cmds='chmod 555 $lib'
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=no
16451 hardcode_into_libs=yes
16454 irix5* | irix6* | nonstopux*)
16456 nonstopux*) version_type=nonstopux ;;
16458 if test "$lt_cv_prog_gnu_ld" = yes; then
16466 soname_spec='${libname}${release}${shared_ext}$major'
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16469 irix5* | nonstopux*)
16470 libsuff= shlibsuff=
16473 case $LD in # libtool.m4 will add one of these switches to LD
16474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16475 libsuff= shlibsuff= libmagic=32-bit;;
16476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16477 libsuff=32 shlibsuff=N32 libmagic=N32;;
16478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16479 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16480 *) libsuff= shlibsuff= libmagic=never-match;;
16484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16485 shlibpath_overrides_runpath=no
16486 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16487 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16488 hardcode_into_libs=yes
16491 # No shared lib support for Linux oldld, aout, or coff.
16492 linux*oldld* | linux*aout* | linux*coff*)
16496 # This must be Linux ELF.
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=no
16506 # This implies no fast_install, which is unacceptable.
16507 # Some rework will be needed to allow for fast_install
16508 # before this can be enabled.
16509 hardcode_into_libs=yes
16511 # Append ld.so.conf contents to the search path
16512 if test -f /etc/ld.so.conf; then
16513 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' ' '`
16514 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16517 # We used to test for /lib/ld.so.1 and disable shared libraries on
16518 # powerpc, because MkLinux only supported shared libraries with the
16519 # GNU dynamic linker. Since this was broken with cross compilers,
16520 # most powerpc-linux boxes support dynamic linking these days and
16521 # people can always --disable-shared, the test was removed, and we
16522 # assume the GNU/Linux dynamic linker is in use.
16523 dynamic_linker='GNU/Linux ld.so'
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 shlibpath_overrides_runpath=no
16534 hardcode_into_libs=yes
16535 dynamic_linker='GNU ld.so'
16542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16545 dynamic_linker='NetBSD (a.out) ld.so'
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 dynamic_linker='NetBSD ld.elf_so'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553 hardcode_into_libs=yes
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=yes
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 shlibpath_overrides_runpath=yes
16575 sys_lib_dlsearch_path_spec="/usr/lib"
16577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16580 *) need_version=no ;;
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16584 shlibpath_var=LD_LIBRARY_PATH
16585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16587 openbsd2.[89] | openbsd2.[89].*)
16588 shlibpath_overrides_runpath=no
16591 shlibpath_overrides_runpath=yes
16595 shlibpath_overrides_runpath=yes
16600 libname_spec='$name'
16603 library_names_spec='$libname${shared_ext} $libname.a'
16604 dynamic_linker='OS/2 ld.exe'
16605 shlibpath_var=LIBPATH
16608 osf3* | osf4* | osf5*)
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614 shlibpath_var=LD_LIBRARY_PATH
16615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624 soname_spec='${libname}${release}${shared_ext}$major'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=yes
16627 hardcode_into_libs=yes
16628 # ldd complains unless libraries are executable
16629 postinstall_cmds='chmod +x $lib'
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=yes
16638 if test "$with_gnu_ld" = yes; then
16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647 soname_spec='${libname}${release}${shared_ext}$major'
16648 shlibpath_var=LD_LIBRARY_PATH
16649 case $host_vendor in
16651 shlibpath_overrides_runpath=no
16653 export_dynamic_flag_spec='${wl}-Blargedynsym'
16654 runpath_var=LD_RUN_PATH
16662 shlibpath_overrides_runpath=no
16663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16669 if test -d /usr/nec ;then
16671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16672 soname_spec='$libname${shared_ext}.$major'
16673 shlibpath_var=LD_LIBRARY_PATH
16677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16678 version_type=freebsd-elf
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 hardcode_into_libs=yes
16685 if test "$with_gnu_ld" = yes; then
16686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16687 shlibpath_overrides_runpath=no
16689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16690 shlibpath_overrides_runpath=yes
16693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16697 sys_lib_dlsearch_path_spec='/usr/lib'
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 soname_spec='${libname}${release}${shared_ext}$major'
16704 shlibpath_var=LD_LIBRARY_PATH
16711 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16712 echo "${ECHO_T}$dynamic_linker" >&6; }
16713 test "$dynamic_linker" = no && can_build_shared=no
16715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16716 if test "$GCC" = yes; then
16717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16720 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16723 if test -n "$hardcode_libdir_flag_spec" || \
16724 test -n "$runpath_var" || \
16725 test "X$hardcode_automatic" = "Xyes" ; then
16727 # We can hardcode non-existant directories.
16728 if test "$hardcode_direct" != no &&
16729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16730 # have to relink, otherwise we might link with an installed library
16731 # when we should be linking with a yet-to-be-installed one
16732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16733 test "$hardcode_minus_L" != no; then
16734 # Linking always hardcodes the temporary library directory.
16735 hardcode_action=relink
16737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16738 hardcode_action=immediate
16741 # We cannot hardcode anything, or else we can only hardcode existing
16743 hardcode_action=unsupported
16745 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16746 echo "${ECHO_T}$hardcode_action" >&6; }
16748 if test "$hardcode_action" = relink; then
16749 # Fast installation is not supported
16750 enable_fast_install=no
16751 elif test "$shlibpath_overrides_runpath" = yes ||
16752 test "$enable_shared" = no; then
16753 # Fast installation is not necessary
16754 enable_fast_install=needless
16759 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16764 { echo "$as_me:$LINENO: result: yes" >&5
16765 echo "${ECHO_T}yes" >&6; }
16767 # FIXME - insert some real tests, host_os isn't really good enough
16770 if test -n "$STRIP" ; then
16771 striplib="$STRIP -x"
16772 { echo "$as_me:$LINENO: result: yes" >&5
16773 echo "${ECHO_T}yes" >&6; }
16775 { echo "$as_me:$LINENO: result: no" >&5
16776 echo "${ECHO_T}no" >&6; }
16780 { echo "$as_me:$LINENO: result: no" >&5
16781 echo "${ECHO_T}no" >&6; }
16786 if test "x$enable_dlopen" != xyes; then
16787 enable_dlopen=unknown
16788 enable_dlopen_self=unknown
16789 enable_dlopen_self_static=unknown
16796 lt_cv_dlopen="load_add_on"
16798 lt_cv_dlopen_self=yes
16802 lt_cv_dlopen="LoadLibrary"
16807 lt_cv_dlopen="dlopen"
16812 # if libdl is installed we need to link against it
16813 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 ac_check_lib_save_LIBS=$LIBS
16820 cat >conftest.$ac_ext <<_ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16827 /* Override any GCC internal prototype to avoid an error.
16828 Use char because int might match the return type of a GCC
16829 builtin and then its argument prototype would still apply. */
16842 rm -f conftest.$ac_objext conftest$ac_exeext
16843 if { (ac_try="$ac_link"
16844 case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_link") 2>conftest.er1
16851 grep -v '^ *+' conftest.er1 >conftest.err
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857 { (case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_try") 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest$ac_exeext'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_lib_dl_dlopen=yes
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_cv_lib_dl_dlopen=no
16884 rm -f core conftest.err conftest.$ac_objext \
16885 conftest$ac_exeext conftest.$ac_ext
16886 LIBS=$ac_check_lib_save_LIBS
16888 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16890 if test $ac_cv_lib_dl_dlopen = yes; then
16891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16894 lt_cv_dlopen="dyld"
16896 lt_cv_dlopen_self=yes
16903 { echo "$as_me:$LINENO: checking for shl_load" >&5
16904 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16905 if test "${ac_cv_func_shl_load+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16916 #define shl_load innocuous_shl_load
16918 /* System header to define __stub macros and hopefully few prototypes,
16919 which can conflict with char shl_load (); below.
16920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16921 <limits.h> exists even on freestanding compilers. */
16924 # include <limits.h>
16926 # include <assert.h>
16931 /* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
16938 /* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
16941 #if defined __stub_shl_load || defined __stub___shl_load
16948 return shl_load ();
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>conftest.er1
16962 grep -v '^ *+' conftest.er1 >conftest.err
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } &&
16967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16968 { (case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_try") 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest$ac_exeext'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_func_shl_load=yes
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_cv_func_shl_load=no
16995 rm -f core conftest.err conftest.$ac_objext \
16996 conftest$ac_exeext conftest.$ac_ext
16998 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16999 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17000 if test $ac_cv_func_shl_load = yes; then
17001 lt_cv_dlopen="shl_load"
17003 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17004 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17005 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 ac_check_lib_save_LIBS=$LIBS
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17027 return shl_load ();
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_link") 2>conftest.er1
17041 grep -v '^ *+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_try") 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest$ac_exeext'
17057 { (case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_try") 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_lib_dld_shl_load=yes
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_cv_lib_dld_shl_load=no
17074 rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17079 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17080 if test $ac_cv_lib_dld_shl_load = yes; then
17081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17083 { echo "$as_me:$LINENO: checking for dlopen" >&5
17084 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17085 if test "${ac_cv_func_dlopen+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17096 #define dlopen innocuous_dlopen
17098 /* System header to define __stub macros and hopefully few prototypes,
17099 which can conflict with char dlopen (); below.
17100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101 <limits.h> exists even on freestanding compilers. */
17104 # include <limits.h>
17106 # include <assert.h>
17111 /* Override any GCC internal prototype to avoid an error.
17112 Use char because int might match the return type of a GCC
17113 builtin and then its argument prototype would still apply. */
17118 /* The GNU C library defines this for functions which it implements
17119 to always fail with ENOSYS. Some functions are actually named
17120 something starting with __ and the normal name is an alias. */
17121 #if defined __stub_dlopen || defined __stub___dlopen
17133 rm -f conftest.$ac_objext conftest$ac_exeext
17134 if { (ac_try="$ac_link"
17135 case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_link") 2>conftest.er1
17142 grep -v '^ *+' conftest.er1 >conftest.err
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; } &&
17157 { ac_try='test -s conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_func_dlopen=yes
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ac_cv_func_dlopen=no
17175 rm -f core conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17179 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17180 if test $ac_cv_func_dlopen = yes; then
17181 lt_cv_dlopen="dlopen"
17183 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17184 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 ac_check_lib_save_LIBS=$LIBS
17190 cat >conftest.$ac_ext <<_ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17197 /* Override any GCC internal prototype to avoid an error.
17198 Use char because int might match the return type of a GCC
17199 builtin and then its argument prototype would still apply. */
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (ac_try="$ac_link"
17214 case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_link") 2>conftest.er1
17221 grep -v '^ *+' conftest.er1 >conftest.err
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
17246 ac_cv_lib_dl_dlopen=yes
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ac_cv_lib_dl_dlopen=no
17254 rm -f core conftest.err conftest.$ac_objext \
17255 conftest$ac_exeext conftest.$ac_ext
17256 LIBS=$ac_check_lib_save_LIBS
17258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17260 if test $ac_cv_lib_dl_dlopen = yes; then
17261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17263 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17264 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 ac_check_lib_save_LIBS=$LIBS
17269 LIBS="-lsvld $LIBS"
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17277 /* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest$ac_exeext'
17317 { (case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_lib_svld_dlopen=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_lib_svld_dlopen=no
17334 rm -f core conftest.err conftest.$ac_objext \
17335 conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17338 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17339 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17340 if test $ac_cv_lib_svld_dlopen = yes; then
17341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17343 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17344 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 ac_check_lib_save_LIBS=$LIBS
17350 cat >conftest.$ac_ext <<_ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17357 /* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17367 return dld_link ();
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17381 grep -v '^ *+' conftest.er1 >conftest.err
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_cv_lib_dld_dld_link=yes
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_cv_lib_dld_dld_link=no
17414 rm -f core conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17419 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17420 if test $ac_cv_lib_dld_dld_link = yes; then
17421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17442 if test "x$lt_cv_dlopen" != xno; then
17448 case $lt_cv_dlopen in
17450 save_CPPFLAGS="$CPPFLAGS"
17451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17453 save_LDFLAGS="$LDFLAGS"
17454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17457 LIBS="$lt_cv_dlopen_libs $LIBS"
17459 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17460 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17461 if test "${lt_cv_dlopen_self+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 if test "$cross_compiling" = yes; then :
17465 lt_cv_dlopen_self=cross
17467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17468 lt_status=$lt_dlunknown
17469 cat > conftest.$ac_ext <<EOF
17470 #line 17470 "configure"
17471 #include "confdefs.h"
17480 # define LT_DLGLOBAL RTLD_GLOBAL
17483 # define LT_DLGLOBAL DL_GLOBAL
17485 # define LT_DLGLOBAL 0
17489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17490 find out it does not work in some platform. */
17491 #ifndef LT_DLLAZY_OR_NOW
17493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17496 # define LT_DLLAZY_OR_NOW DL_LAZY
17499 # define LT_DLLAZY_OR_NOW RTLD_NOW
17502 # define LT_DLLAZY_OR_NOW DL_NOW
17504 # define LT_DLLAZY_OR_NOW 0
17512 extern "C" void exit (int);
17515 void fnord() { int i=42;}
17518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17519 int status = $lt_dlunknown;
17523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17525 /* dlclose (self); */
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534 (eval $ac_link) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17538 (./conftest; exit; ) >&5 2>/dev/null
17540 case x$lt_status in
17541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17543 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17546 # compilation failed
17547 lt_cv_dlopen_self=no
17554 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17557 if test "x$lt_cv_dlopen_self" = xyes; then
17558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17559 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17561 if test "${lt_cv_dlopen_self_static+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 if test "$cross_compiling" = yes; then :
17565 lt_cv_dlopen_self_static=cross
17567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17568 lt_status=$lt_dlunknown
17569 cat > conftest.$ac_ext <<EOF
17570 #line 17570 "configure"
17571 #include "confdefs.h"
17580 # define LT_DLGLOBAL RTLD_GLOBAL
17583 # define LT_DLGLOBAL DL_GLOBAL
17585 # define LT_DLGLOBAL 0
17589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17590 find out it does not work in some platform. */
17591 #ifndef LT_DLLAZY_OR_NOW
17593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17596 # define LT_DLLAZY_OR_NOW DL_LAZY
17599 # define LT_DLLAZY_OR_NOW RTLD_NOW
17602 # define LT_DLLAZY_OR_NOW DL_NOW
17604 # define LT_DLLAZY_OR_NOW 0
17612 extern "C" void exit (int);
17615 void fnord() { int i=42;}
17618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17619 int status = $lt_dlunknown;
17623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17625 /* dlclose (self); */
17633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17634 (eval $ac_link) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17638 (./conftest; exit; ) >&5 2>/dev/null
17640 case x$lt_status in
17641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17646 # compilation failed
17647 lt_cv_dlopen_self_static=no
17654 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17655 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17658 CPPFLAGS="$save_CPPFLAGS"
17659 LDFLAGS="$save_LDFLAGS"
17664 case $lt_cv_dlopen_self in
17665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17666 *) enable_dlopen_self=unknown ;;
17669 case $lt_cv_dlopen_self_static in
17670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17671 *) enable_dlopen_self_static=unknown ;;
17676 # Report which library types will actually be built
17677 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17678 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17679 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17680 echo "${ECHO_T}$can_build_shared" >&6; }
17682 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17683 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17684 test "$can_build_shared" = "no" && enable_shared=no
17686 # On AIX, shared libraries and static libraries use the same namespace, and
17687 # are all built from PIC.
17690 test "$enable_shared" = yes && enable_static=no
17691 if test -n "$RANLIB"; then
17692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17693 postinstall_cmds='$RANLIB $lib'
17698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17699 test "$enable_shared" = yes && enable_static=no
17703 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17704 echo "${ECHO_T}$enable_shared" >&6; }
17706 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17707 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17708 # Make sure either enable_shared or enable_static is yes.
17709 test "$enable_shared" = yes || enable_static=yes
17710 { echo "$as_me:$LINENO: result: $enable_static" >&5
17711 echo "${ECHO_T}$enable_static" >&6; }
17713 # The else clause should only fire when bootstrapping the
17714 # libtool distribution, otherwise you forgot to ship ltmain.sh
17715 # with your package, and you will get complaints that there are
17716 # no rules to generate ltmain.sh.
17717 if test -f "$ltmain"; then
17718 # See if we are running on zsh, and set the options which allow our commands through
17719 # without removal of \ escapes.
17720 if test -n "${ZSH_VERSION+set}" ; then
17721 setopt NO_GLOB_SUBST
17723 # Now quote all the things that may contain metacharacters while being
17724 # careful not to overquote the AC_SUBSTed values. We take copies of the
17725 # variables and quote the copies for generation of the libtool script.
17726 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17728 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17729 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17730 deplibs_check_method reload_flag reload_cmds need_locks \
17731 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17732 lt_cv_sys_global_symbol_to_c_name_address \
17733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17734 old_postinstall_cmds old_postuninstall_cmds \
17738 lt_prog_compiler_wl \
17739 lt_prog_compiler_pic \
17740 lt_prog_compiler_static \
17741 lt_prog_compiler_no_builtin_flag \
17742 export_dynamic_flag_spec \
17743 thread_safe_flag_spec \
17744 whole_archive_flag_spec \
17745 enable_shared_with_static_runtimes \
17747 old_archive_from_new_cmds \
17752 compiler_lib_search_path \
17754 archive_expsym_cmds \
17756 postuninstall_cmds \
17757 old_archive_from_expsyms_cmds \
17758 allow_undefined_flag \
17759 no_undefined_flag \
17760 export_symbols_cmds \
17761 hardcode_libdir_flag_spec \
17762 hardcode_libdir_flag_spec_ld \
17763 hardcode_libdir_separator \
17764 hardcode_automatic \
17766 module_expsym_cmds \
17767 lt_cv_prog_compiler_c_o \
17769 include_expsyms; do
17772 old_archive_cmds | \
17773 old_archive_from_new_cmds | \
17775 archive_expsym_cmds | \
17777 module_expsym_cmds | \
17778 old_archive_from_expsyms_cmds | \
17779 export_symbols_cmds | \
17780 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17781 postinstall_cmds | postuninstall_cmds | \
17782 old_postinstall_cmds | old_postuninstall_cmds | \
17783 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17784 # Double-quote double-evaled strings.
17785 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17794 *'\$0 --fallback-echo"')
17795 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17799 cfgfile="${ofile}T"
17800 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17802 { echo "$as_me:$LINENO: creating $ofile" >&5
17803 echo "$as_me: creating $ofile" >&6;}
17805 cat <<__EOF__ >> "$cfgfile"
17808 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17809 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17810 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17812 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17813 # Free Software Foundation, Inc.
17815 # This file is part of GNU Libtool:
17816 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17818 # This program is free software; you can redistribute it and/or modify
17819 # it under the terms of the GNU General Public License as published by
17820 # the Free Software Foundation; either version 2 of the License, or
17821 # (at your option) any later version.
17823 # This program is distributed in the hope that it will be useful, but
17824 # WITHOUT ANY WARRANTY; without even the implied warranty of
17825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17826 # General Public License for more details.
17828 # You should have received a copy of the GNU General Public License
17829 # along with this program; if not, write to the Free Software
17830 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17832 # As a special exception to the GNU General Public License, if you
17833 # distribute this file as part of a program that contains a
17834 # configuration script generated by Autoconf, you may include it under
17835 # the same distribution terms that you use for the rest of that program.
17837 # A sed program that does not truncate output.
17840 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17841 Xsed="$SED -e 1s/^X//"
17843 # The HP-UX ksh and POSIX shell print the target directory to stdout
17844 # if CDPATH is set.
17845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17847 # The names of the tagged configurations supported by this script.
17850 # ### BEGIN LIBTOOL CONFIG
17852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17854 # Shell to use when invoking shell scripts.
17857 # Whether or not to build shared libraries.
17858 build_libtool_libs=$enable_shared
17860 # Whether or not to build static libraries.
17861 build_old_libs=$enable_static
17863 # Whether or not to add -lc for building shared libraries.
17864 build_libtool_need_lc=$archive_cmds_need_lc
17866 # Whether or not to disallow shared libs when runtime libs are static
17867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17869 # Whether or not to optimize for fast installation.
17870 fast_install=$enable_fast_install
17873 host_alias=$host_alias
17877 # The build system.
17878 build_alias=$build_alias
17882 # An echo program that does not interpret backslashes.
17887 AR_FLAGS=$lt_AR_FLAGS
17892 # LTCC compiler flags.
17893 LTCFLAGS=$lt_LTCFLAGS
17895 # A language-specific compiler.
17898 # Is the compiler the GNU C compiler?
17904 # The linker used to build libraries.
17907 # Whether we need hard or soft links.
17910 # A BSD-compatible nm program.
17913 # A symbol stripping program
17916 # Used to examine libraries when file_magic_cmd begins "file"
17917 MAGIC_CMD=$MAGIC_CMD
17919 # Used on cygwin: DLL creation program.
17922 # Used on cygwin: object dumper.
17925 # Used on cygwin: assembler.
17928 # The name of the directory that contains temporary libtool files.
17931 # How to create reloadable object files.
17932 reload_flag=$lt_reload_flag
17933 reload_cmds=$lt_reload_cmds
17935 # How to pass a linker flag through the compiler.
17936 wl=$lt_lt_prog_compiler_wl
17938 # Object file suffix (normally "o").
17939 objext="$ac_objext"
17941 # Old archive suffix (normally "a").
17944 # Shared library suffix (normally ".so").
17945 shrext_cmds='$shrext_cmds'
17947 # Executable file suffix (normally "").
17950 # Additional compiler flags for building library objects.
17951 pic_flag=$lt_lt_prog_compiler_pic
17954 # What is the maximum length of a command?
17955 max_cmd_len=$lt_cv_sys_max_cmd_len
17957 # Does compiler simultaneously support -c and -o options?
17958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17960 # Must we lock files when doing compilation?
17961 need_locks=$lt_need_locks
17963 # Do we need the lib prefix for modules?
17964 need_lib_prefix=$need_lib_prefix
17966 # Do we need a version for libraries?
17967 need_version=$need_version
17969 # Whether dlopen is supported.
17970 dlopen_support=$enable_dlopen
17972 # Whether dlopen of programs is supported.
17973 dlopen_self=$enable_dlopen_self
17975 # Whether dlopen of statically linked programs is supported.
17976 dlopen_self_static=$enable_dlopen_self_static
17978 # Compiler flag to prevent dynamic linking.
17979 link_static_flag=$lt_lt_prog_compiler_static
17981 # Compiler flag to turn off builtin functions.
17982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17984 # Compiler flag to allow reflexive dlopens.
17985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17987 # Compiler flag to generate shared objects directly from archives.
17988 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17990 # Compiler flag to generate thread-safe objects.
17991 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17993 # Library versioning type.
17994 version_type=$version_type
17996 # Format of library name prefix.
17997 libname_spec=$lt_libname_spec
17999 # List of archive names. First name is the real one, the rest are links.
18000 # The last name is the one that the linker finds with -lNAME.
18001 library_names_spec=$lt_library_names_spec
18003 # The coded name of the library, if different from the real name.
18004 soname_spec=$lt_soname_spec
18006 # Commands used to build and install an old-style archive.
18008 old_archive_cmds=$lt_old_archive_cmds
18009 old_postinstall_cmds=$lt_old_postinstall_cmds
18010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18012 # Create an old-style archive from a shared archive.
18013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18015 # Create a temporary old-style archive to link instead of a shared archive.
18016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18018 # Commands used to build and install a shared archive.
18019 archive_cmds=$lt_archive_cmds
18020 archive_expsym_cmds=$lt_archive_expsym_cmds
18021 postinstall_cmds=$lt_postinstall_cmds
18022 postuninstall_cmds=$lt_postuninstall_cmds
18024 # Commands used to build a loadable module (assumed same as above if empty)
18025 module_cmds=$lt_module_cmds
18026 module_expsym_cmds=$lt_module_expsym_cmds
18028 # Commands to strip libraries.
18029 old_striplib=$lt_old_striplib
18030 striplib=$lt_striplib
18032 # Dependencies to place before the objects being linked to create a
18034 predep_objects=$lt_predep_objects
18036 # Dependencies to place after the objects being linked to create a
18038 postdep_objects=$lt_postdep_objects
18040 # Dependencies to place before the objects being linked to create a
18042 predeps=$lt_predeps
18044 # Dependencies to place after the objects being linked to create a
18046 postdeps=$lt_postdeps
18048 # The library search path used internally by the compiler when linking
18049 # a shared library.
18050 compiler_lib_search_path=$lt_compiler_lib_search_path
18052 # Method to check whether dependent libraries are shared objects.
18053 deplibs_check_method=$lt_deplibs_check_method
18055 # Command to use when deplibs_check_method == file_magic.
18056 file_magic_cmd=$lt_file_magic_cmd
18058 # Flag that allows shared libraries with undefined symbols to be built.
18059 allow_undefined_flag=$lt_allow_undefined_flag
18061 # Flag that forces no undefined symbols.
18062 no_undefined_flag=$lt_no_undefined_flag
18064 # Commands used to finish a libtool library installation in a directory.
18065 finish_cmds=$lt_finish_cmds
18067 # Same as above, but a single script fragment to be evaled but not shown.
18068 finish_eval=$lt_finish_eval
18070 # Take the output of nm and produce a listing of raw symbols and C names.
18071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18073 # Transform the output of nm in a proper C declaration
18074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18076 # Transform the output of nm in a C name address pair
18077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18079 # This is the shared library runtime path variable.
18080 runpath_var=$runpath_var
18082 # This is the shared library path variable.
18083 shlibpath_var=$shlibpath_var
18085 # Is shlibpath searched before the hard-coded library search path?
18086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18088 # How to hardcode a shared library path into an executable.
18089 hardcode_action=$hardcode_action
18091 # Whether we should hardcode library paths into libraries.
18092 hardcode_into_libs=$hardcode_into_libs
18094 # Flag to hardcode \$libdir into a binary during linking.
18095 # This must work even if \$libdir does not exist.
18096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18098 # If ld is used when linking, flag to hardcode \$libdir into
18099 # a binary during linking. This must work even if \$libdir does
18101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18103 # Whether we need a single -rpath flag with a separated argument.
18104 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18107 # resulting binary.
18108 hardcode_direct=$hardcode_direct
18110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18111 # resulting binary.
18112 hardcode_minus_L=$hardcode_minus_L
18114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18115 # the resulting binary.
18116 hardcode_shlibpath_var=$hardcode_shlibpath_var
18118 # Set to yes if building a shared library automatically hardcodes DIR into the library
18119 # and all subsequent libraries and executables linked against it.
18120 hardcode_automatic=$hardcode_automatic
18122 # Variables whose values should be saved in libtool wrapper scripts and
18123 # restored at relink time.
18124 variables_saved_for_relink="$variables_saved_for_relink"
18126 # Whether libtool must link a program against all its dependency libraries.
18127 link_all_deplibs=$link_all_deplibs
18129 # Compile-time system search path for libraries
18130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18132 # Run-time system search path for libraries
18133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18135 # Fix the shell variable \$srcfile for the compiler.
18136 fix_srcfile_path="$fix_srcfile_path"
18138 # Set to yes if exported symbols are required.
18139 always_export_symbols=$always_export_symbols
18141 # The commands to list exported symbols.
18142 export_symbols_cmds=$lt_export_symbols_cmds
18144 # The commands to extract the exported symbol list from a shared archive.
18145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18147 # Symbols that should not be listed in the preloaded symbols.
18148 exclude_expsyms=$lt_exclude_expsyms
18150 # Symbols that must always be exported.
18151 include_expsyms=$lt_include_expsyms
18153 # ### END LIBTOOL CONFIG
18160 cat <<\EOF >> "$cfgfile"
18162 # AIX sometimes has problems with the GCC collect2 program. For some
18163 # reason, if we set the COLLECT_NAMES environment variable, the problems
18164 # vanish in a puff of smoke.
18165 if test "X${COLLECT_NAMES+set}" != Xset; then
18167 export COLLECT_NAMES
18173 # We use sed instead of cat because bash on DJGPP gets confused if
18174 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18175 # text mode, it properly converts lines to CR/LF. This bash problem
18176 # is reportedly fixed, but why not run on old versions too?
18177 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18179 mv -f "$cfgfile" "$ofile" || \
18180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18184 # If there is no Makefile yet, we rely on a make rule to execute
18185 # `config.status --recheck' to rerun these tests and create the
18186 # libtool script then.
18187 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18188 if test -f "$ltmain_in"; then
18189 test -f Makefile && make "$ltmain"
18195 ac_cpp='$CPP $CPPFLAGS'
18196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18203 # Check whether --with-tags was given.
18204 if test "${with_tags+set}" = set; then
18205 withval=$with_tags; tagnames="$withval"
18209 if test -f "$ltmain" && test -n "$tagnames"; then
18210 if test ! -f "${ofile}"; then
18211 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18212 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18215 if test -z "$LTCC"; then
18216 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18217 if test -z "$LTCC"; then
18218 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18219 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18222 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18225 if test -z "$LTCFLAGS"; then
18226 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18229 # Extract list of available tagged configurations in $ofile.
18230 # Note that this assumes the entire list is on one line.
18231 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18234 for tagname in $tagnames; do
18236 # Check whether tagname contains only valid characters
18237 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18239 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18240 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18241 { (exit 1); exit 1; }; }
18245 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18247 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18248 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18249 { (exit 1); exit 1; }; }
18252 # Update the list of available tags.
18253 if test -n "$tagname"; then
18254 echo appending configuration tag \"$tagname\" to $ofile
18258 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18259 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18260 (test "X$CXX" != "Xg++"))) ; then
18262 ac_cpp='$CXXCPP $CPPFLAGS'
18263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18270 archive_cmds_need_lc_CXX=no
18271 allow_undefined_flag_CXX=
18272 always_export_symbols_CXX=no
18273 archive_expsym_cmds_CXX=
18274 export_dynamic_flag_spec_CXX=
18275 hardcode_direct_CXX=no
18276 hardcode_libdir_flag_spec_CXX=
18277 hardcode_libdir_flag_spec_ld_CXX=
18278 hardcode_libdir_separator_CXX=
18279 hardcode_minus_L_CXX=no
18280 hardcode_shlibpath_var_CXX=unsupported
18281 hardcode_automatic_CXX=no
18283 module_expsym_cmds_CXX=
18284 link_all_deplibs_CXX=unknown
18285 old_archive_cmds_CXX=$old_archive_cmds
18286 no_undefined_flag_CXX=
18287 whole_archive_flag_spec_CXX=
18288 enable_shared_with_static_runtimes_CXX=no
18290 # Dependencies to place before and after the object being linked:
18291 predep_objects_CXX=
18292 postdep_objects_CXX=
18295 compiler_lib_search_path_CXX=
18297 # Source file extension for C++ test sources.
18300 # Object file extension for compiled C++ test sources.
18304 # Code to be used in simple compile tests
18305 lt_simple_compile_test_code="int some_variable = 0;\n"
18307 # Code to be used in simple link tests
18308 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18310 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18312 # If no C compiler was specified, use CC.
18315 # If no C compiler flags were specified, use CFLAGS.
18316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18318 # Allow CC to be a program name with arguments.
18322 # save warnings/boilerplate of simple test code
18323 ac_outfile=conftest.$ac_objext
18324 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18326 _lt_compiler_boilerplate=`cat conftest.err`
18329 ac_outfile=conftest.$ac_objext
18330 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18332 _lt_linker_boilerplate=`cat conftest.err`
18336 # Allow CC to be a program name with arguments.
18341 lt_save_with_gnu_ld=$with_gnu_ld
18342 lt_save_path_LD=$lt_cv_path_LD
18343 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18344 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18346 $as_unset lt_cv_prog_gnu_ld
18348 if test -n "${lt_cv_path_LDCXX+set}"; then
18349 lt_cv_path_LD=$lt_cv_path_LDCXX
18351 $as_unset lt_cv_path_LD
18353 test -z "${LDCXX+set}" || LD=$LDCXX
18357 for cc_temp in $compiler""; do
18359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18365 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18368 # We don't want -fno-exception wen compiling C++ code, so set the
18369 # no_builtin_flag separately
18370 if test "$GXX" = yes; then
18371 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18373 lt_prog_compiler_no_builtin_flag_CXX=
18376 if test "$GXX" = yes; then
18377 # Set up default GNU C++ configuration
18380 # Check whether --with-gnu-ld was given.
18381 if test "${with_gnu_ld+set}" = set; then
18382 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18388 if test "$GCC" = yes; then
18389 # Check if gcc -print-prog-name=ld gives a path.
18390 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18391 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18394 # gcc leaves a trailing carriage return which upsets mingw
18395 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18397 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18400 # Accept absolute paths.
18402 re_direlt='/[^/][^/]*/\.\./'
18403 # Canonicalize the pathname of ld
18404 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18405 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18406 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18408 test -z "$LD" && LD="$ac_prog"
18411 # If it fails, then pretend we aren't using GCC.
18415 # If it is relative, then search for the first ld in PATH.
18416 with_gnu_ld=unknown
18419 elif test "$with_gnu_ld" = yes; then
18420 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18421 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18423 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18424 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18426 if test "${lt_cv_path_LD+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 if test -z "$LD"; then
18430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18431 for ac_dir in $PATH; do
18433 test -z "$ac_dir" && ac_dir=.
18434 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18435 lt_cv_path_LD="$ac_dir/$ac_prog"
18436 # Check to see if the program is GNU ld. I'd rather use --version,
18437 # but apparently some variants of GNU ld only accept -v.
18438 # Break only if it was the GNU/non-GNU ld that we prefer.
18439 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18440 *GNU* | *'with BFD'*)
18441 test "$with_gnu_ld" != no && break
18444 test "$with_gnu_ld" != yes && break
18451 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18455 LD="$lt_cv_path_LD"
18456 if test -n "$LD"; then
18457 { echo "$as_me:$LINENO: result: $LD" >&5
18458 echo "${ECHO_T}$LD" >&6; }
18460 { echo "$as_me:$LINENO: result: no" >&5
18461 echo "${ECHO_T}no" >&6; }
18463 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18464 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18465 { (exit 1); exit 1; }; }
18466 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18467 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18468 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18472 case `$LD -v 2>&1 </dev/null` in
18473 *GNU* | *'with BFD'*)
18474 lt_cv_prog_gnu_ld=yes
18477 lt_cv_prog_gnu_ld=no
18481 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18482 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18483 with_gnu_ld=$lt_cv_prog_gnu_ld
18487 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18488 # archiving commands below assume that GNU ld is being used.
18489 if test "$with_gnu_ld" = yes; then
18490 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18491 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'
18493 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18496 # If archive_cmds runs LD, not CC, wlarc should be empty
18497 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18498 # investigate it a little bit more. (MM)
18501 # ancient GNU ld didn't support --whole-archive et. al.
18502 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18503 grep 'no-whole-archive' > /dev/null; then
18504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18506 whole_archive_flag_spec_CXX=
18512 # A generic and very simple default shared library creation
18513 # command for GNU C++ for the case where it uses the native
18514 # linker, instead of GNU ld. If possible, this setting should
18515 # overridden to take advantage of the native linker features on
18516 # the platform it is being used on.
18517 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18520 # Commands to make compiler produce verbose output that lists
18521 # what "hidden" libraries, object files and flags are used when
18522 # linking a shared library.
18523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18531 # PORTME: fill in a description of your system's C++ link characteristics
18532 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18537 # FIXME: insert proper C++ library support
18541 if test "$host_cpu" = ia64; then
18542 # On IA64, the linker does run time linking by default, so we don't
18543 # have to do anything special.
18544 aix_use_runtimelinking=no
18545 exp_sym_flag='-Bexport'
18548 aix_use_runtimelinking=no
18550 # Test if we are trying to use run time linking or normal
18551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18552 # need to do runtime linking.
18553 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18554 for ld_flag in $LDFLAGS; do
18557 aix_use_runtimelinking=yes
18565 exp_sym_flag='-bexport'
18566 no_entry_flag='-bnoentry'
18569 # When large executables or shared objects are built, AIX ld can
18570 # have problems creating the table of contents. If linking a library
18571 # or program results in "error TOC overflow" add -mminimal-toc to
18572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18575 archive_cmds_CXX=''
18576 hardcode_direct_CXX=yes
18577 hardcode_libdir_separator_CXX=':'
18578 link_all_deplibs_CXX=yes
18580 if test "$GXX" = yes; then
18581 case $host_os in aix4.[012]|aix4.[012].*)
18582 # We only want to do this on AIX 4.2 and lower, the check
18583 # below for broken collect2 doesn't work under 4.3+
18584 collect2name=`${CC} -print-prog-name=collect2`
18585 if test -f "$collect2name" && \
18586 strings "$collect2name" | grep resolve_lib_name >/dev/null
18588 # We have reworked collect2
18589 hardcode_direct_CXX=yes
18591 # We have old collect2
18592 hardcode_direct_CXX=unsupported
18593 # It fails to find uninstalled libraries when the uninstalled
18594 # path is not listed in the libpath. Setting hardcode_minus_L
18595 # to unsupported forces relinking
18596 hardcode_minus_L_CXX=yes
18597 hardcode_libdir_flag_spec_CXX='-L$libdir'
18598 hardcode_libdir_separator_CXX=
18602 shared_flag='-shared'
18603 if test "$aix_use_runtimelinking" = yes; then
18604 shared_flag="$shared_flag "'${wl}-G'
18608 if test "$host_cpu" = ia64; then
18609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18610 # chokes on -Wl,-G. The following line is correct:
18613 if test "$aix_use_runtimelinking" = yes; then
18614 shared_flag='${wl}-G'
18616 shared_flag='${wl}-bM:SRE'
18621 # It seems that -bexpall does not export symbols beginning with
18622 # underscore (_), so it is better to generate a list of symbols to export.
18623 always_export_symbols_CXX=yes
18624 if test "$aix_use_runtimelinking" = yes; then
18625 # Warning - without using the other runtime loading flags (-brtl),
18626 # -berok will link without error, but may produce a broken library.
18627 allow_undefined_flag_CXX='-berok'
18628 # Determine the default libpath from the value encoded in an empty executable.
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (ac_try="$ac_link"
18646 case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_link") 2>conftest.er1
18653 grep -v '^ *+' conftest.er1 >conftest.err
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest$ac_exeext'
18669 { (case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674 (eval "$ac_try") 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; }; then
18679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18681 # Check for a 64-bit object if we didn't find anything.
18682 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; }
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18691 rm -f core conftest.err conftest.$ac_objext \
18692 conftest$ac_exeext conftest.$ac_ext
18693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18695 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18697 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"
18699 if test "$host_cpu" = ia64; then
18700 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18701 allow_undefined_flag_CXX="-z nodefs"
18702 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"
18704 # Determine the default libpath from the value encoded in an empty executable.
18705 cat >conftest.$ac_ext <<_ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (ac_try="$ac_link"
18722 case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_link") 2>conftest.er1
18729 grep -v '^ *+' conftest.er1 >conftest.err
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest$ac_exeext'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18757 # Check for a 64-bit object if we didn't find anything.
18758 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; }
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18767 rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18772 # Warning - without using the other run time loading flags,
18773 # -berok will link without error, but may produce a broken library.
18774 no_undefined_flag_CXX=' ${wl}-bernotok'
18775 allow_undefined_flag_CXX=' ${wl}-berok'
18776 # Exported symbols can be pulled into shared objects from archives
18777 whole_archive_flag_spec_CXX='$convenience'
18778 archive_cmds_need_lc_CXX=yes
18779 # This is similar to how AIX traditionally builds its shared libraries.
18780 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'
18786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18787 allow_undefined_flag_CXX=unsupported
18788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18789 # support --undefined. This deserves some investigation. FIXME
18790 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18797 case $cc_basename in
18799 # FIXME: insert proper C++ library support
18805 cygwin* | mingw* | pw32*)
18806 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18807 # as there is no search path for DLLs.
18808 hardcode_libdir_flag_spec_CXX='-L$libdir'
18809 allow_undefined_flag_CXX=unsupported
18810 always_export_symbols_CXX=no
18811 enable_shared_with_static_runtimes_CXX=yes
18813 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18814 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'
18815 # If the export-symbols file already is a .def file (1st line
18816 # is EXPORTS), use it as is; otherwise, prepend...
18817 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18818 cp $export_symbols $output_objdir/$soname.def;
18820 echo EXPORTS > $output_objdir/$soname.def;
18821 cat $export_symbols >> $output_objdir/$soname.def;
18823 $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'
18828 darwin* | rhapsody*)
18830 rhapsody* | darwin1.[012])
18831 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18835 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18837 case ${MACOSX_DEPLOYMENT_TARGET} in
18839 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18842 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18848 archive_cmds_need_lc_CXX=no
18849 hardcode_direct_CXX=no
18850 hardcode_automatic_CXX=yes
18851 hardcode_shlibpath_var_CXX=unsupported
18852 whole_archive_flag_spec_CXX=''
18853 link_all_deplibs_CXX=yes
18855 if test "$GXX" = yes ; then
18856 lt_int_apple_cc_single_mod=no
18857 output_verbose_link_cmd='echo'
18858 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18859 lt_int_apple_cc_single_mod=yes
18861 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18862 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18864 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'
18866 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18868 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18869 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}'
18871 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}'
18873 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}'
18875 case $cc_basename in
18877 output_verbose_link_cmd='echo'
18878 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'
18879 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18880 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18881 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}'
18882 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}'
18892 case $cc_basename in
18894 # FIXME: insert proper C++ library support
18898 # Green Hills C++ Compiler
18899 # FIXME: insert proper C++ library support
18903 # FIXME: insert proper C++ library support
18909 # C++ shared libraries reported to be fairly broken before switch to ELF
18913 archive_cmds_need_lc_CXX=no
18915 freebsd* | kfreebsd*-gnu | dragonfly*)
18916 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18923 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18924 hardcode_libdir_separator_CXX=:
18925 export_dynamic_flag_spec_CXX='${wl}-E'
18926 hardcode_direct_CXX=yes
18927 hardcode_minus_L_CXX=yes # Not in the search PATH,
18928 # but as the default
18929 # location of the library.
18931 case $cc_basename in
18933 # FIXME: insert proper C++ library support
18937 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'
18938 # Commands to make compiler produce verbose output that lists
18939 # what "hidden" libraries, object files and flags are used when
18940 # linking a shared library.
18942 # There doesn't appear to be a way to prevent this compiler from
18943 # explicitly linking system object files so we need to strip them
18944 # from the output so that they don't get included in the library
18946 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'
18949 if test "$GXX" = yes; then
18950 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'
18952 # FIXME: insert proper C++ library support
18959 if test $with_gnu_ld = no; then
18960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18961 hardcode_libdir_separator_CXX=:
18965 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18968 export_dynamic_flag_spec_CXX='${wl}-E'
18974 hardcode_direct_CXX=no
18975 hardcode_shlibpath_var_CXX=no
18978 hardcode_direct_CXX=yes
18979 hardcode_minus_L_CXX=yes # Not in the search PATH,
18980 # but as the default
18981 # location of the library.
18985 case $cc_basename in
18987 # FIXME: insert proper C++ library support
18993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18999 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19002 # Commands to make compiler produce verbose output that lists
19003 # what "hidden" libraries, object files and flags are used when
19004 # linking a shared library.
19006 # There doesn't appear to be a way to prevent this compiler from
19007 # explicitly linking system object files so we need to strip them
19008 # from the output so that they don't get included in the library
19010 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'
19013 if test "$GXX" = yes; then
19014 if test $with_gnu_ld = no; then
19017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19020 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19023 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'
19028 # FIXME: insert proper C++ library support
19035 hardcode_direct_CXX=no
19036 hardcode_shlibpath_var_CXX=no
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19038 export_dynamic_flag_spec_CXX='${wl}-E'
19039 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19040 # Instead, shared libraries are loaded at an image base (0x10000000 by
19041 # default) and relocated if they conflict, which is a slow very memory
19042 # consuming and fragmenting process. To avoid this, we pick a random,
19043 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19044 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19045 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'
19046 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'
19049 case $cc_basename in
19052 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'
19054 # Archives containing C++ object files must be created using
19055 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19056 # necessary to make sure instantiated templates are included
19058 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19061 if test "$GXX" = yes; then
19062 if test "$with_gnu_ld" = no; then
19063 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'
19065 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'
19068 link_all_deplibs_CXX=yes
19071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19072 hardcode_libdir_separator_CXX=:
19075 case $cc_basename in
19077 # Kuck and Associates, Inc. (KAI) C++ Compiler
19079 # KCC will only create a shared library if the output file
19080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19081 # to its proper name (with version) after linking.
19082 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'
19083 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'
19084 # Commands to make compiler produce verbose output that lists
19085 # what "hidden" libraries, object files and flags are used when
19086 # linking a shared library.
19088 # There doesn't appear to be a way to prevent this compiler from
19089 # explicitly linking system object files so we need to strip them
19090 # from the output so that they don't get included in the library
19092 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'
19094 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19097 # Archives containing C++ object files must be created using
19098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19104 # version 8.0 and above of icpc choke on multiply defined symbols
19105 # if we add $predep_objects and $postdep_objects, however 7.1 and
19106 # earlier do not add the objects themselves.
19107 case `$CC -V 2>&1` in
19109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110 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'
19112 *) # Version 8.0 or newer
19115 ia64*) tmp_idyn=' -i_dynamic';;
19117 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19118 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'
19121 archive_cmds_need_lc_CXX=no
19122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19124 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19127 # Portland Group C++ compiler
19128 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19129 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'
19131 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19133 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'
19137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138 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'
19140 runpath_var=LD_RUN_PATH
19141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19142 hardcode_libdir_separator_CXX=:
19144 # Commands to make compiler produce verbose output that lists
19145 # what "hidden" libraries, object files and flags are used when
19146 # linking a shared library.
19148 # There doesn't appear to be a way to prevent this compiler from
19149 # explicitly linking system object files so we need to strip them
19150 # from the output so that they don't get included in the library
19152 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'
19157 # FIXME: insert proper C++ library support
19161 # FIXME: insert proper C++ library support
19165 case $cc_basename in
19167 # FIXME: insert proper C++ library support
19171 # FIXME: insert proper C++ library support
19177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19178 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19180 hardcode_libdir_flag_spec_CXX='-R$libdir'
19181 hardcode_direct_CXX=yes
19182 hardcode_shlibpath_var_CXX=no
19184 # Workaround some broken pre-1.5 toolchains
19185 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19188 # C++ shared libraries are fairly broken
19192 hardcode_direct_CXX=yes
19193 hardcode_shlibpath_var_CXX=no
19194 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19197 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19198 export_dynamic_flag_spec_CXX='${wl}-E'
19199 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19201 output_verbose_link_cmd='echo'
19204 case $cc_basename in
19206 # Kuck and Associates, Inc. (KAI) C++ Compiler
19208 # KCC will only create a shared library if the output file
19209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19210 # to its proper name (with version) after linking.
19211 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'
19213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19214 hardcode_libdir_separator_CXX=:
19216 # Archives containing C++ object files must be created using
19217 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19218 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19222 # Rational C++ 2.4.1
19223 # FIXME: insert proper C++ library support
19227 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19228 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'
19230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19231 hardcode_libdir_separator_CXX=:
19233 # Commands to make compiler produce verbose output that lists
19234 # what "hidden" libraries, object files and flags are used when
19235 # linking a shared library.
19237 # There doesn't appear to be a way to prevent this compiler from
19238 # explicitly linking system object files so we need to strip them
19239 # from the output so that they don't get included in the library
19241 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'
19244 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19245 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19246 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'
19248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19249 hardcode_libdir_separator_CXX=:
19251 # Commands to make compiler produce verbose output that lists
19252 # what "hidden" libraries, object files and flags are used when
19253 # linking a shared library.
19254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19257 # FIXME: insert proper C++ library support
19264 case $cc_basename in
19266 # Kuck and Associates, Inc. (KAI) C++ Compiler
19268 # KCC will only create a shared library if the output file
19269 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19270 # to its proper name (with version) after linking.
19271 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'
19273 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19274 hardcode_libdir_separator_CXX=:
19276 # Archives containing C++ object files must be created using
19277 # the KAI C++ compiler.
19278 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19281 # Rational C++ 2.4.1
19282 # FIXME: insert proper C++ library support
19286 allow_undefined_flag_CXX=' -expect_unresolved \*'
19287 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'
19288 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19289 echo "-hidden">> $lib.exp~
19290 $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~
19293 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19294 hardcode_libdir_separator_CXX=:
19296 # Commands to make compiler produce verbose output that lists
19297 # what "hidden" libraries, object files and flags are used when
19298 # linking a shared library.
19300 # There doesn't appear to be a way to prevent this compiler from
19301 # explicitly linking system object files so we need to strip them
19302 # from the output so that they don't get included in the library
19304 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'
19307 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19308 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19309 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'
19311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19312 hardcode_libdir_separator_CXX=:
19314 # Commands to make compiler produce verbose output that lists
19315 # what "hidden" libraries, object files and flags are used when
19316 # linking a shared library.
19317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19320 # FIXME: insert proper C++ library support
19327 # FIXME: insert proper C++ library support
19331 case $cc_basename in
19334 # FIXME: insert proper C++ library support
19339 # FIXME: insert proper C++ library support
19343 # FIXME: insert proper C++ library support
19349 case $cc_basename in
19351 # Sun C++ 4.2, 5.x and Centerline C++
19352 archive_cmds_need_lc_CXX=yes
19353 no_undefined_flag_CXX=' -zdefs'
19354 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19355 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19356 $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'
19358 hardcode_libdir_flag_spec_CXX='-R$libdir'
19359 hardcode_shlibpath_var_CXX=no
19361 solaris2.[0-5] | solaris2.[0-5].*) ;;
19363 # The C++ compiler is used as linker so we must use $wl
19364 # flag to pass the commands to the underlying system
19365 # linker. We must also pass each convience library through
19366 # to the system linker between allextract/defaultextract.
19367 # The C++ compiler will combine linker options so we
19368 # cannot just pass the convience library names through
19370 # Supported since Solaris 2.6 (maybe 2.5.1?)
19371 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'
19374 link_all_deplibs_CXX=yes
19376 output_verbose_link_cmd='echo'
19378 # Archives containing C++ object files must be created using
19379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19380 # necessary to make sure instantiated templates are included
19382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19385 # Green Hills C++ Compiler
19386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19388 # The C++ compiler must be used to create the archive.
19389 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19392 # GNU C++ compiler with Solaris linker
19393 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19394 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19395 if $CC --version | grep -v '^2\.7' > /dev/null; then
19396 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19397 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19398 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19400 # Commands to make compiler produce verbose output that lists
19401 # what "hidden" libraries, object files and flags are used when
19402 # linking a shared library.
19403 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19405 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19407 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19408 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19409 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19411 # Commands to make compiler produce verbose output that lists
19412 # what "hidden" libraries, object files and flags are used when
19413 # linking a shared library.
19414 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19417 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19423 no_undefined_flag_CXX='${wl}-z,text'
19424 archive_cmds_need_lc_CXX=no
19425 hardcode_shlibpath_var_CXX=no
19426 runpath_var='LD_RUN_PATH'
19428 case $cc_basename in
19430 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19434 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19435 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19439 sysv5* | sco3.2v5* | sco5v6*)
19440 # Note: We can NOT use -z defs as we might desire, because we do not
19441 # link with -lc, and that would cause any symbols used from libc to
19442 # always be unresolved, which means just about no library would
19443 # ever link correctly. If we're not using GNU ld we use -z text
19444 # though, which does catch some bad symbols but isn't as heavy-handed
19446 # For security reasons, it is highly recommended that you always
19447 # use absolute paths for naming shared libraries, and exclude the
19448 # DT_RUNPATH tag from executables and libraries. But doing so
19449 # requires that you compile everything twice, which is a pain.
19450 # So that behaviour is only enabled if SCOABSPATH is set to a
19451 # non-empty value in the environment. Most likely only useful for
19452 # creating official distributions of packages.
19453 # This is a hack until libtool officially supports absolute path
19454 # names for shared libraries.
19455 no_undefined_flag_CXX='${wl}-z,text'
19456 allow_undefined_flag_CXX='${wl}-z,nodefs'
19457 archive_cmds_need_lc_CXX=no
19458 hardcode_shlibpath_var_CXX=no
19459 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19460 hardcode_libdir_separator_CXX=':'
19461 link_all_deplibs_CXX=yes
19462 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19463 runpath_var='LD_RUN_PATH'
19465 case $cc_basename in
19467 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19471 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19472 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19477 case $cc_basename in
19479 # NonStop-UX NCC 3.20
19480 # FIXME: insert proper C++ library support
19484 # FIXME: insert proper C++ library support
19490 # FIXME: insert proper C++ library support
19494 # FIXME: insert proper C++ library support
19498 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19499 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19500 test "$ld_shlibs_CXX" = no && can_build_shared=no
19506 cat > conftest.$ac_ext <<EOF
19510 Foo (void) { a = 0; }
19516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19517 (eval $ac_compile) 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; then
19521 # Parse the compiler output and extract the necessary
19522 # objects, libraries and library flags.
19524 # Sentinel used to keep track of whether or not we are before
19525 # the conftest object file.
19526 pre_test_object_deps_done=no
19528 # The `*' in the case matches for architectures that use `case' in
19529 # $output_verbose_cmd can trigger glob expansion during the loop
19530 # eval without this substitution.
19531 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19533 for p in `eval $output_verbose_link_cmd`; do
19537 # Some compilers place space between "-{L,R}" and the path.
19538 # Remove the space.
19539 if test $p = "-L" \
19540 || test $p = "-R"; then
19547 if test "$pre_test_object_deps_done" = no; then
19550 # Internal compiler library paths should come after those
19551 # provided the user. The postdeps already come after the
19552 # user supplied libs so there is no need to process them.
19553 if test -z "$compiler_lib_search_path_CXX"; then
19554 compiler_lib_search_path_CXX="${prev}${p}"
19556 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19559 # The "-l" case would never come before the object being
19560 # linked, so don't bother handling this case.
19563 if test -z "$postdeps_CXX"; then
19564 postdeps_CXX="${prev}${p}"
19566 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19572 # This assumes that the test object file only shows up
19573 # once in the compiler output.
19574 if test "$p" = "conftest.$objext"; then
19575 pre_test_object_deps_done=yes
19579 if test "$pre_test_object_deps_done" = no; then
19580 if test -z "$predep_objects_CXX"; then
19581 predep_objects_CXX="$p"
19583 predep_objects_CXX="$predep_objects_CXX $p"
19586 if test -z "$postdep_objects_CXX"; then
19587 postdep_objects_CXX="$p"
19589 postdep_objects_CXX="$postdep_objects_CXX $p"
19594 *) ;; # Ignore the rest.
19602 echo "libtool.m4: error: problem compiling CXX test program"
19605 $rm -f confest.$objext
19607 # PORTME: override above test on systems where it is broken
19610 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19611 # hack all around it, let's just trust "g++" to DTRT.
19612 predep_objects_CXX=
19613 postdep_objects_CXX=
19618 case $cc_basename in
19620 # Adding this requires a known-good setup of shared libraries for
19621 # Sun compiler versions before 5.6, else PIC objects from an old
19622 # archive will be linked into the output, leading to subtle bugs.
19623 postdeps_CXX='-lCstd -lCrun'
19630 case " $postdeps_CXX " in
19631 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19634 lt_prog_compiler_wl_CXX=
19635 lt_prog_compiler_pic_CXX=
19636 lt_prog_compiler_static_CXX=
19638 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19639 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19641 # C++ specific cases for pic, static, wl, etc.
19642 if test "$GXX" = yes; then
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_static_CXX='-static'
19648 # All AIX code is PIC.
19649 if test "$host_cpu" = ia64; then
19650 # AIX 5 now supports IA64 processor
19651 lt_prog_compiler_static_CXX='-Bstatic'
19655 # FIXME: we need at least 68020 code to build shared libraries, but
19656 # adding the `-m68020' flag to GCC prevents building anything better,
19658 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19660 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19661 # PIC is the default for these OSes.
19663 mingw* | os2* | pw32*)
19664 # This hack is so that the source file can tell whether it is being
19665 # built for inclusion in a dll (and should export symbols for example).
19666 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19668 darwin* | rhapsody*)
19669 # PIC is the default on this platform
19670 # Common symbols not allowed in MH_DYLIB files
19671 lt_prog_compiler_pic_CXX='-fno-common'
19674 # DJGPP does not support shared libraries at all
19675 lt_prog_compiler_pic_CXX=
19678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19679 # Instead, we relocate shared libraries at runtime.
19682 if test -d /usr/nec; then
19683 lt_prog_compiler_pic_CXX=-Kconform_pic
19687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19688 # not for PA HP-UX.
19693 lt_prog_compiler_pic_CXX='-fPIC'
19698 lt_prog_compiler_pic_CXX='-fPIC'
19704 # All AIX code is PIC.
19705 if test "$host_cpu" = ia64; then
19706 # AIX 5 now supports IA64 processor
19707 lt_prog_compiler_static_CXX='-Bstatic'
19709 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19713 case $cc_basename in
19715 # Green Hills C++ Compiler
19716 # _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"
19721 # PIC is the default on this platform
19722 # Common symbols not allowed in MH_DYLIB files
19723 case $cc_basename in
19725 lt_prog_compiler_pic_CXX='-qnocommon'
19726 lt_prog_compiler_wl_CXX='-Wl,'
19731 case $cc_basename in
19733 lt_prog_compiler_pic_CXX='-KPIC'
19736 # Green Hills C++ Compiler
19737 lt_prog_compiler_pic_CXX='-pic'
19743 freebsd* | kfreebsd*-gnu | dragonfly*)
19744 # FreeBSD uses GNU C++
19746 hpux9* | hpux10* | hpux11*)
19747 case $cc_basename in
19749 lt_prog_compiler_wl_CXX='-Wl,'
19750 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19751 if test "$host_cpu" != ia64; then
19752 lt_prog_compiler_pic_CXX='+Z'
19756 lt_prog_compiler_wl_CXX='-Wl,'
19757 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19763 lt_prog_compiler_pic_CXX='+Z'
19772 # This is c89, which is MS Visual C++ (no shared libs)
19773 # Anyone wants to do a port?
19775 irix5* | irix6* | nonstopux*)
19776 case $cc_basename in
19778 lt_prog_compiler_wl_CXX='-Wl,'
19779 lt_prog_compiler_static_CXX='-non_shared'
19780 # CC pic flag -KPIC is the default.
19787 case $cc_basename in
19790 lt_prog_compiler_wl_CXX='--backend -Wl,'
19791 lt_prog_compiler_pic_CXX='-fPIC'
19795 lt_prog_compiler_wl_CXX='-Wl,'
19796 lt_prog_compiler_pic_CXX='-KPIC'
19797 lt_prog_compiler_static_CXX='-static'
19800 # Portland Group C++ compiler.
19801 lt_prog_compiler_wl_CXX='-Wl,'
19802 lt_prog_compiler_pic_CXX='-fpic'
19803 lt_prog_compiler_static_CXX='-Bstatic'
19807 # Make sure the PIC flag is empty. It appears that all Alpha
19808 # Linux and Compaq Tru64 Unix objects are PIC.
19809 lt_prog_compiler_pic_CXX=
19810 lt_prog_compiler_static_CXX='-non_shared'
19821 case $cc_basename in
19823 lt_prog_compiler_pic_CXX='-W c,exportall'
19831 osf3* | osf4* | osf5*)
19832 case $cc_basename in
19834 lt_prog_compiler_wl_CXX='--backend -Wl,'
19837 # Rational C++ 2.4.1
19838 lt_prog_compiler_pic_CXX='-pic'
19841 # Digital/Compaq C++
19842 lt_prog_compiler_wl_CXX='-Wl,'
19843 # Make sure the PIC flag is empty. It appears that all Alpha
19844 # Linux and Compaq Tru64 Unix objects are PIC.
19845 lt_prog_compiler_pic_CXX=
19846 lt_prog_compiler_static_CXX='-non_shared'
19855 case $cc_basename in
19857 # Sun C++ 4.2, 5.x and Centerline C++
19858 lt_prog_compiler_pic_CXX='-KPIC'
19859 lt_prog_compiler_static_CXX='-Bstatic'
19860 lt_prog_compiler_wl_CXX='-Qoption ld '
19863 # Green Hills C++ Compiler
19864 lt_prog_compiler_pic_CXX='-PIC'
19871 case $cc_basename in
19874 lt_prog_compiler_pic_CXX='-pic'
19875 lt_prog_compiler_static_CXX='-Bstatic'
19879 lt_prog_compiler_pic_CXX='-pic'
19886 case $cc_basename in
19888 # NonStop-UX NCC 3.20
19889 lt_prog_compiler_pic_CXX='-KPIC'
19895 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19896 case $cc_basename in
19898 lt_prog_compiler_wl_CXX='-Wl,'
19899 lt_prog_compiler_pic_CXX='-KPIC'
19900 lt_prog_compiler_static_CXX='-Bstatic'
19907 lt_prog_compiler_can_build_shared_CXX=no
19912 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19913 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19916 # Check to make sure the PIC flag actually works.
19918 if test -n "$lt_prog_compiler_pic_CXX"; then
19920 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19921 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19922 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 lt_prog_compiler_pic_works_CXX=no
19926 ac_outfile=conftest.$ac_objext
19927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19928 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19929 # Insert the option either (1) after the last *FLAGS variable, or
19930 # (2) before a word containing "conftest.", or (3) at the end.
19931 # Note that $ac_compile itself does not contain backslashes and begins
19932 # with a dollar sign (not a hyphen), so the echo should work correctly.
19933 # The option is referenced via a variable to avoid confusing sed.
19934 lt_compile=`echo "$ac_compile" | $SED \
19935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19937 -e 's:$: $lt_compiler_flag:'`
19938 (eval echo "\"\$as_me:19938: $lt_compile\"" >&5)
19939 (eval "$lt_compile" 2>conftest.err)
19941 cat conftest.err >&5
19942 echo "$as_me:19942: \$? = $ac_status" >&5
19943 if (exit $ac_status) && test -s "$ac_outfile"; then
19944 # The compiler can only warn and ignore the option if not recognized
19945 # So say no if there are warnings other than the usual output.
19946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19949 lt_prog_compiler_pic_works_CXX=yes
19955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19956 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19958 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19959 case $lt_prog_compiler_pic_CXX in
19961 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19964 lt_prog_compiler_pic_CXX=
19965 lt_prog_compiler_can_build_shared_CXX=no
19970 # For platforms which do not support PIC, -DPIC is meaningless:
19972 lt_prog_compiler_pic_CXX=
19975 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19980 # Check to make sure the static flag actually works.
19982 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19983 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19984 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19985 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 lt_prog_compiler_static_works_CXX=no
19989 save_LDFLAGS="$LDFLAGS"
19990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19991 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19993 # The linker can only warn and ignore the option if not recognized
19994 # So say no if there are warnings
19995 if test -s conftest.err; then
19996 # Append any errors to the config.log.
19997 cat conftest.err 1>&5
19998 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20000 if diff conftest.exp conftest.er2 >/dev/null; then
20001 lt_prog_compiler_static_works_CXX=yes
20004 lt_prog_compiler_static_works_CXX=yes
20008 LDFLAGS="$save_LDFLAGS"
20011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20012 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20014 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20017 lt_prog_compiler_static_CXX=
20021 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20022 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20023 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 lt_cv_prog_compiler_c_o_CXX=no
20027 $rm -r conftest 2>/dev/null
20031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20033 lt_compiler_flag="-o out/conftest2.$ac_objext"
20034 # Insert the option either (1) after the last *FLAGS variable, or
20035 # (2) before a word containing "conftest.", or (3) at the end.
20036 # Note that $ac_compile itself does not contain backslashes and begins
20037 # with a dollar sign (not a hyphen), so the echo should work correctly.
20038 lt_compile=`echo "$ac_compile" | $SED \
20039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20041 -e 's:$: $lt_compiler_flag:'`
20042 (eval echo "\"\$as_me:20042: $lt_compile\"" >&5)
20043 (eval "$lt_compile" 2>out/conftest.err)
20045 cat out/conftest.err >&5
20046 echo "$as_me:20046: \$? = $ac_status" >&5
20047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20049 # The compiler can only warn and ignore the option if not recognized
20050 # So say no if there are warnings
20051 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20054 lt_cv_prog_compiler_c_o_CXX=yes
20059 # SGI C++ compiler will create directory out/ii_files/ for
20060 # template instantiation
20061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20062 $rm out/* && rmdir out
20068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20069 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20072 hard_links="nottested"
20073 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20074 # do not overwrite the value of need_locks provided by the user
20075 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20076 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20081 ln conftest.a conftest.b 2>&5 || hard_links=no
20082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20083 { echo "$as_me:$LINENO: result: $hard_links" >&5
20084 echo "${ECHO_T}$hard_links" >&6; }
20085 if test "$hard_links" = no; then
20086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20087 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20097 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20100 # If we're using GNU nm, then we don't want the "-C" option.
20101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20102 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20103 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'
20105 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'
20109 export_symbols_cmds_CXX="$ltdll_cmds"
20112 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'
20115 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20119 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20120 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20121 test "$ld_shlibs_CXX" = no && can_build_shared=no
20124 # Do we need to explicitly link libc?
20126 case "x$archive_cmds_need_lc_CXX" in
20128 # Assume -lc should be added
20129 archive_cmds_need_lc_CXX=yes
20131 if test "$enable_shared" = yes && test "$GCC" = yes; then
20132 case $archive_cmds_CXX in
20134 # FIXME: we may have to deal with multi-command sequences.
20137 # Test whether the compiler implicitly links with -lc since on some
20138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20139 # to ld, don't add -lc before -lgcc.
20140 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146 (eval $ac_compile) 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } 2>conftest.err; then
20152 libobjs=conftest.$ac_objext
20154 wl=$lt_prog_compiler_wl_CXX
20155 pic_flag=$lt_prog_compiler_pic_CXX
20161 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20162 allow_undefined_flag_CXX=
20163 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20164 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }
20169 archive_cmds_need_lc_CXX=no
20171 archive_cmds_need_lc_CXX=yes
20173 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20175 cat conftest.err 1>&5
20178 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20179 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20186 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20187 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20188 library_names_spec=
20189 libname_spec='lib$name'
20193 postuninstall_cmds=
20197 shlibpath_overrides_runpath=unknown
20199 dynamic_linker="$host_os ld.so"
20200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20201 if test "$GCC" = yes; then
20202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20203 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20204 # if the path contains ";" then we assume it to be the separator
20205 # otherwise default to the standard path separator (i.e. ":") - it is
20206 # assumed that no part of a normal pathname contains ";" but that should
20207 # okay in the real world where ";" in dirpaths is itself problematic.
20208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20215 need_lib_prefix=unknown
20216 hardcode_into_libs=no
20218 # when you set need_version to no, make sure it does not cause -set_version
20219 # flags to be left without arguments
20220 need_version=unknown
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20226 shlibpath_var=LIBPATH
20228 # AIX 3 has no versioning support, so we append a major version to the name.
20229 soname_spec='${libname}${release}${shared_ext}$major'
20236 hardcode_into_libs=yes
20237 if test "$host_cpu" = ia64; then
20238 # AIX 5 supports IA64
20239 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20240 shlibpath_var=LD_LIBRARY_PATH
20242 # With GCC up to 2.95.x, collect2 would create an import file
20243 # for dependence libraries. The import file would start with
20244 # the line `#! .'. This would cause the generated library to
20245 # depend on `.', always an invalid library. This was fixed in
20246 # development snapshots of GCC prior to 3.0.
20248 aix4 | aix4.[01] | aix4.[01].*)
20249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20251 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20254 can_build_shared=no
20258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20259 # soname into executable. Probably we can add versioning support to
20260 # collect2, so additional links can be useful in future.
20261 if test "$aix_use_runtimelinking" = yes; then
20262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20263 # instead of lib<name>.a to let people know that these are not
20264 # typical AIX shared libraries.
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 # We preserve .a as extension for shared libraries through AIX4.2
20268 # and later when we are not doing run time linking.
20269 library_names_spec='${libname}${release}.a $libname.a'
20270 soname_spec='${libname}${release}${shared_ext}$major'
20272 shlibpath_var=LIBPATH
20277 library_names_spec='$libname.ixlibrary $libname.a'
20278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20279 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'
20283 library_names_spec='${libname}${shared_ext}'
20284 dynamic_linker="$host_os ld.so"
20285 shlibpath_var=LIBRARY_PATH
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292 soname_spec='${libname}${release}${shared_ext}$major'
20293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20294 shlibpath_var=LD_LIBRARY_PATH
20295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20297 # the default ld.so.conf also contains /usr/contrib/lib and
20298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20299 # libtool to hard-code these into programs
20302 cygwin* | mingw* | pw32*)
20303 version_type=windows
20308 case $GCC,$host_os in
20309 yes,cygwin* | yes,mingw* | yes,pw32*)
20310 library_names_spec='$libname.dll.a'
20311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20312 postinstall_cmds='base_file=`basename \${file}`~
20313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20314 dldir=$destdir/`dirname \$dlpath`~
20315 test -d \$dldir || mkdir -p \$dldir~
20316 $install_prog $dir/$dlname \$dldir/$dlname~
20317 chmod a+x \$dldir/$dlname'
20318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20319 dlpath=$dir/\$dldll~
20321 shlibpath_overrides_runpath=yes
20325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20327 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20330 # MinGW DLLs use traditional 'lib' prefix
20331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20333 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20334 # It is most probably a Windows format PATH printed by
20335 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20336 # path with ; separators, and with drive letters. We can handle the
20337 # drive letters (cygwin fileutils understands them), so leave them,
20338 # especially as we might pass files found there to a mingw objdump,
20339 # which wouldn't understand a cygwinified path. Ahh.
20340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20346 # pw32 DLLs use 'pw' prefix rather than 'lib'
20347 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20353 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20356 dynamic_linker='Win32 ld.exe'
20357 # FIXME: first we should search . and the directory the executable is in
20361 darwin* | rhapsody*)
20362 dynamic_linker="$host_os dyld"
20363 version_type=darwin
20366 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20367 soname_spec='${libname}${release}${major}$shared_ext'
20368 shlibpath_overrides_runpath=yes
20369 shlibpath_var=DYLD_LIBRARY_PATH
20370 shrext_cmds='.dylib'
20371 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20372 if test "$GCC" = yes; then
20373 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"`
20375 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20385 soname_spec='${libname}${release}${shared_ext}$major'
20386 shlibpath_var=LD_LIBRARY_PATH
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20398 soname_spec='${libname}${release}${shared_ext}$major'
20399 shlibpath_var=LD_LIBRARY_PATH
20400 shlibpath_overrides_runpath=no
20401 hardcode_into_libs=yes
20402 dynamic_linker='GNU ld.so'
20405 freebsd* | dragonfly*)
20406 # DragonFly does not have aout. When/if they implement a new
20407 # versioning mechanism, adjust this.
20408 if test -x /usr/bin/objformat; then
20409 objformat=`/usr/bin/objformat`
20412 freebsd[123]*) objformat=aout ;;
20413 *) objformat=elf ;;
20416 version_type=freebsd-$objformat
20417 case $version_type in
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20428 shlibpath_var=LD_LIBRARY_PATH
20431 shlibpath_overrides_runpath=yes
20433 freebsd3.[01]* | freebsdelf3.[01]*)
20434 shlibpath_overrides_runpath=yes
20435 hardcode_into_libs=yes
20437 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20438 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20439 shlibpath_overrides_runpath=no
20440 hardcode_into_libs=yes
20442 freebsd*) # from 4.6 on
20443 shlibpath_overrides_runpath=yes
20444 hardcode_into_libs=yes
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20454 soname_spec='${libname}${release}${shared_ext}$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20456 hardcode_into_libs=yes
20459 hpux9* | hpux10* | hpux11*)
20460 # Give a soname corresponding to the major version so that dld.sl refuses to
20461 # link against other versions.
20468 hardcode_into_libs=yes
20469 dynamic_linker="$host_os dld.so"
20470 shlibpath_var=LD_LIBRARY_PATH
20471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 soname_spec='${libname}${release}${shared_ext}$major'
20474 if test "X$HPUX_IA64_MODE" = X32; then
20475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20477 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20483 hardcode_into_libs=yes
20484 dynamic_linker="$host_os dld.sl"
20485 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 soname_spec='${libname}${release}${shared_ext}$major'
20489 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20494 dynamic_linker="$host_os dld.sl"
20495 shlibpath_var=SHLIB_PATH
20496 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20501 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20502 postinstall_cmds='chmod 555 $lib'
20509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20510 soname_spec='${libname}${release}${shared_ext}$major'
20511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 shlibpath_overrides_runpath=no
20514 hardcode_into_libs=yes
20517 irix5* | irix6* | nonstopux*)
20519 nonstopux*) version_type=nonstopux ;;
20521 if test "$lt_cv_prog_gnu_ld" = yes; then
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20532 irix5* | nonstopux*)
20533 libsuff= shlibsuff=
20536 case $LD in # libtool.m4 will add one of these switches to LD
20537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20538 libsuff= shlibsuff= libmagic=32-bit;;
20539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20540 libsuff=32 shlibsuff=N32 libmagic=N32;;
20541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20542 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20543 *) libsuff= shlibsuff= libmagic=never-match;;
20547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20548 shlibpath_overrides_runpath=no
20549 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20550 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20551 hardcode_into_libs=yes
20554 # No shared lib support for Linux oldld, aout, or coff.
20555 linux*oldld* | linux*aout* | linux*coff*)
20559 # This must be Linux ELF.
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20567 shlibpath_var=LD_LIBRARY_PATH
20568 shlibpath_overrides_runpath=no
20569 # This implies no fast_install, which is unacceptable.
20570 # Some rework will be needed to allow for fast_install
20571 # before this can be enabled.
20572 hardcode_into_libs=yes
20574 # Append ld.so.conf contents to the search path
20575 if test -f /etc/ld.so.conf; then
20576 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' ' '`
20577 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20580 # We used to test for /lib/ld.so.1 and disable shared libraries on
20581 # powerpc, because MkLinux only supported shared libraries with the
20582 # GNU dynamic linker. Since this was broken with cross compilers,
20583 # most powerpc-linux boxes support dynamic linking these days and
20584 # people can always --disable-shared, the test was removed, and we
20585 # assume the GNU/Linux dynamic linker is in use.
20586 dynamic_linker='GNU/Linux ld.so'
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 shlibpath_var=LD_LIBRARY_PATH
20596 shlibpath_overrides_runpath=no
20597 hardcode_into_libs=yes
20598 dynamic_linker='GNU ld.so'
20605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20608 dynamic_linker='NetBSD (a.out) ld.so'
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 dynamic_linker='NetBSD ld.elf_so'
20614 shlibpath_var=LD_LIBRARY_PATH
20615 shlibpath_overrides_runpath=yes
20616 hardcode_into_libs=yes
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622 shlibpath_var=LD_LIBRARY_PATH
20623 shlibpath_overrides_runpath=yes
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 shlibpath_var=LD_LIBRARY_PATH
20633 shlibpath_overrides_runpath=yes
20638 sys_lib_dlsearch_path_spec="/usr/lib"
20640 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20642 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20643 *) need_version=no ;;
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20647 shlibpath_var=LD_LIBRARY_PATH
20648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20650 openbsd2.[89] | openbsd2.[89].*)
20651 shlibpath_overrides_runpath=no
20654 shlibpath_overrides_runpath=yes
20658 shlibpath_overrides_runpath=yes
20663 libname_spec='$name'
20666 library_names_spec='$libname${shared_ext} $libname.a'
20667 dynamic_linker='OS/2 ld.exe'
20668 shlibpath_var=LIBPATH
20671 osf3* | osf4* | osf5*)
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677 shlibpath_var=LD_LIBRARY_PATH
20678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=yes
20690 hardcode_into_libs=yes
20691 # ldd complains unless libraries are executable
20692 postinstall_cmds='chmod +x $lib'
20697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20698 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20699 shlibpath_var=LD_LIBRARY_PATH
20700 shlibpath_overrides_runpath=yes
20701 if test "$with_gnu_ld" = yes; then
20709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710 soname_spec='${libname}${release}${shared_ext}$major'
20711 shlibpath_var=LD_LIBRARY_PATH
20712 case $host_vendor in
20714 shlibpath_overrides_runpath=no
20716 export_dynamic_flag_spec='${wl}-Blargedynsym'
20717 runpath_var=LD_RUN_PATH
20725 shlibpath_overrides_runpath=no
20726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20732 if test -d /usr/nec ;then
20734 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20735 soname_spec='$libname${shared_ext}.$major'
20736 shlibpath_var=LD_LIBRARY_PATH
20740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20741 version_type=freebsd-elf
20744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20745 soname_spec='${libname}${release}${shared_ext}$major'
20746 shlibpath_var=LD_LIBRARY_PATH
20747 hardcode_into_libs=yes
20748 if test "$with_gnu_ld" = yes; then
20749 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20750 shlibpath_overrides_runpath=no
20752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20753 shlibpath_overrides_runpath=yes
20756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20760 sys_lib_dlsearch_path_spec='/usr/lib'
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766 soname_spec='${libname}${release}${shared_ext}$major'
20767 shlibpath_var=LD_LIBRARY_PATH
20774 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20775 echo "${ECHO_T}$dynamic_linker" >&6; }
20776 test "$dynamic_linker" = no && can_build_shared=no
20778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20779 if test "$GCC" = yes; then
20780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20783 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20784 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20785 hardcode_action_CXX=
20786 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20787 test -n "$runpath_var_CXX" || \
20788 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20790 # We can hardcode non-existant directories.
20791 if test "$hardcode_direct_CXX" != no &&
20792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20793 # have to relink, otherwise we might link with an installed library
20794 # when we should be linking with a yet-to-be-installed one
20795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20796 test "$hardcode_minus_L_CXX" != no; then
20797 # Linking always hardcodes the temporary library directory.
20798 hardcode_action_CXX=relink
20800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20801 hardcode_action_CXX=immediate
20804 # We cannot hardcode anything, or else we can only hardcode existing
20806 hardcode_action_CXX=unsupported
20808 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20809 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20811 if test "$hardcode_action_CXX" = relink; then
20812 # Fast installation is not supported
20813 enable_fast_install=no
20814 elif test "$shlibpath_overrides_runpath" = yes ||
20815 test "$enable_shared" = no; then
20816 # Fast installation is not necessary
20817 enable_fast_install=needless
20821 # The else clause should only fire when bootstrapping the
20822 # libtool distribution, otherwise you forgot to ship ltmain.sh
20823 # with your package, and you will get complaints that there are
20824 # no rules to generate ltmain.sh.
20825 if test -f "$ltmain"; then
20826 # See if we are running on zsh, and set the options which allow our commands through
20827 # without removal of \ escapes.
20828 if test -n "${ZSH_VERSION+set}" ; then
20829 setopt NO_GLOB_SUBST
20831 # Now quote all the things that may contain metacharacters while being
20832 # careful not to overquote the AC_SUBSTed values. We take copies of the
20833 # variables and quote the copies for generation of the libtool script.
20834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20838 deplibs_check_method reload_flag reload_cmds need_locks \
20839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20840 lt_cv_sys_global_symbol_to_c_name_address \
20841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20842 old_postinstall_cmds old_postuninstall_cmds \
20846 lt_prog_compiler_wl_CXX \
20847 lt_prog_compiler_pic_CXX \
20848 lt_prog_compiler_static_CXX \
20849 lt_prog_compiler_no_builtin_flag_CXX \
20850 export_dynamic_flag_spec_CXX \
20851 thread_safe_flag_spec_CXX \
20852 whole_archive_flag_spec_CXX \
20853 enable_shared_with_static_runtimes_CXX \
20854 old_archive_cmds_CXX \
20855 old_archive_from_new_cmds_CXX \
20856 predep_objects_CXX \
20857 postdep_objects_CXX \
20860 compiler_lib_search_path_CXX \
20862 archive_expsym_cmds_CXX \
20863 postinstall_cmds_CXX \
20864 postuninstall_cmds_CXX \
20865 old_archive_from_expsyms_cmds_CXX \
20866 allow_undefined_flag_CXX \
20867 no_undefined_flag_CXX \
20868 export_symbols_cmds_CXX \
20869 hardcode_libdir_flag_spec_CXX \
20870 hardcode_libdir_flag_spec_ld_CXX \
20871 hardcode_libdir_separator_CXX \
20872 hardcode_automatic_CXX \
20874 module_expsym_cmds_CXX \
20875 lt_cv_prog_compiler_c_o_CXX \
20876 exclude_expsyms_CXX \
20877 include_expsyms_CXX; do
20880 old_archive_cmds_CXX | \
20881 old_archive_from_new_cmds_CXX | \
20882 archive_cmds_CXX | \
20883 archive_expsym_cmds_CXX | \
20884 module_cmds_CXX | \
20885 module_expsym_cmds_CXX | \
20886 old_archive_from_expsyms_cmds_CXX | \
20887 export_symbols_cmds_CXX | \
20888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20889 postinstall_cmds | postuninstall_cmds | \
20890 old_postinstall_cmds | old_postuninstall_cmds | \
20891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20892 # Double-quote double-evaled strings.
20893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20902 *'\$0 --fallback-echo"')
20903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20909 cat <<__EOF__ >> "$cfgfile"
20910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20914 # Shell to use when invoking shell scripts.
20917 # Whether or not to build shared libraries.
20918 build_libtool_libs=$enable_shared
20920 # Whether or not to build static libraries.
20921 build_old_libs=$enable_static
20923 # Whether or not to add -lc for building shared libraries.
20924 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20926 # Whether or not to disallow shared libs when runtime libs are static
20927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20929 # Whether or not to optimize for fast installation.
20930 fast_install=$enable_fast_install
20933 host_alias=$host_alias
20937 # The build system.
20938 build_alias=$build_alias
20942 # An echo program that does not interpret backslashes.
20947 AR_FLAGS=$lt_AR_FLAGS
20952 # LTCC compiler flags.
20953 LTCFLAGS=$lt_LTCFLAGS
20955 # A language-specific compiler.
20956 CC=$lt_compiler_CXX
20958 # Is the compiler the GNU C compiler?
20964 # The linker used to build libraries.
20967 # Whether we need hard or soft links.
20970 # A BSD-compatible nm program.
20973 # A symbol stripping program
20976 # Used to examine libraries when file_magic_cmd begins "file"
20977 MAGIC_CMD=$MAGIC_CMD
20979 # Used on cygwin: DLL creation program.
20982 # Used on cygwin: object dumper.
20985 # Used on cygwin: assembler.
20988 # The name of the directory that contains temporary libtool files.
20991 # How to create reloadable object files.
20992 reload_flag=$lt_reload_flag
20993 reload_cmds=$lt_reload_cmds
20995 # How to pass a linker flag through the compiler.
20996 wl=$lt_lt_prog_compiler_wl_CXX
20998 # Object file suffix (normally "o").
20999 objext="$ac_objext"
21001 # Old archive suffix (normally "a").
21004 # Shared library suffix (normally ".so").
21005 shrext_cmds='$shrext_cmds'
21007 # Executable file suffix (normally "").
21010 # Additional compiler flags for building library objects.
21011 pic_flag=$lt_lt_prog_compiler_pic_CXX
21014 # What is the maximum length of a command?
21015 max_cmd_len=$lt_cv_sys_max_cmd_len
21017 # Does compiler simultaneously support -c and -o options?
21018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21020 # Must we lock files when doing compilation?
21021 need_locks=$lt_need_locks
21023 # Do we need the lib prefix for modules?
21024 need_lib_prefix=$need_lib_prefix
21026 # Do we need a version for libraries?
21027 need_version=$need_version
21029 # Whether dlopen is supported.
21030 dlopen_support=$enable_dlopen
21032 # Whether dlopen of programs is supported.
21033 dlopen_self=$enable_dlopen_self
21035 # Whether dlopen of statically linked programs is supported.
21036 dlopen_self_static=$enable_dlopen_self_static
21038 # Compiler flag to prevent dynamic linking.
21039 link_static_flag=$lt_lt_prog_compiler_static_CXX
21041 # Compiler flag to turn off builtin functions.
21042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21044 # Compiler flag to allow reflexive dlopens.
21045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21047 # Compiler flag to generate shared objects directly from archives.
21048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21050 # Compiler flag to generate thread-safe objects.
21051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21053 # Library versioning type.
21054 version_type=$version_type
21056 # Format of library name prefix.
21057 libname_spec=$lt_libname_spec
21059 # List of archive names. First name is the real one, the rest are links.
21060 # The last name is the one that the linker finds with -lNAME.
21061 library_names_spec=$lt_library_names_spec
21063 # The coded name of the library, if different from the real name.
21064 soname_spec=$lt_soname_spec
21066 # Commands used to build and install an old-style archive.
21068 old_archive_cmds=$lt_old_archive_cmds_CXX
21069 old_postinstall_cmds=$lt_old_postinstall_cmds
21070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21072 # Create an old-style archive from a shared archive.
21073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21075 # Create a temporary old-style archive to link instead of a shared archive.
21076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21078 # Commands used to build and install a shared archive.
21079 archive_cmds=$lt_archive_cmds_CXX
21080 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21081 postinstall_cmds=$lt_postinstall_cmds
21082 postuninstall_cmds=$lt_postuninstall_cmds
21084 # Commands used to build a loadable module (assumed same as above if empty)
21085 module_cmds=$lt_module_cmds_CXX
21086 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21088 # Commands to strip libraries.
21089 old_striplib=$lt_old_striplib
21090 striplib=$lt_striplib
21092 # Dependencies to place before the objects being linked to create a
21094 predep_objects=$lt_predep_objects_CXX
21096 # Dependencies to place after the objects being linked to create a
21098 postdep_objects=$lt_postdep_objects_CXX
21100 # Dependencies to place before the objects being linked to create a
21102 predeps=$lt_predeps_CXX
21104 # Dependencies to place after the objects being linked to create a
21106 postdeps=$lt_postdeps_CXX
21108 # The library search path used internally by the compiler when linking
21109 # a shared library.
21110 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21112 # Method to check whether dependent libraries are shared objects.
21113 deplibs_check_method=$lt_deplibs_check_method
21115 # Command to use when deplibs_check_method == file_magic.
21116 file_magic_cmd=$lt_file_magic_cmd
21118 # Flag that allows shared libraries with undefined symbols to be built.
21119 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21121 # Flag that forces no undefined symbols.
21122 no_undefined_flag=$lt_no_undefined_flag_CXX
21124 # Commands used to finish a libtool library installation in a directory.
21125 finish_cmds=$lt_finish_cmds
21127 # Same as above, but a single script fragment to be evaled but not shown.
21128 finish_eval=$lt_finish_eval
21130 # Take the output of nm and produce a listing of raw symbols and C names.
21131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21133 # Transform the output of nm in a proper C declaration
21134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21136 # Transform the output of nm in a C name address pair
21137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21139 # This is the shared library runtime path variable.
21140 runpath_var=$runpath_var
21142 # This is the shared library path variable.
21143 shlibpath_var=$shlibpath_var
21145 # Is shlibpath searched before the hard-coded library search path?
21146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21148 # How to hardcode a shared library path into an executable.
21149 hardcode_action=$hardcode_action_CXX
21151 # Whether we should hardcode library paths into libraries.
21152 hardcode_into_libs=$hardcode_into_libs
21154 # Flag to hardcode \$libdir into a binary during linking.
21155 # This must work even if \$libdir does not exist.
21156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21158 # If ld is used when linking, flag to hardcode \$libdir into
21159 # a binary during linking. This must work even if \$libdir does
21161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21163 # Whether we need a single -rpath flag with a separated argument.
21164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21167 # resulting binary.
21168 hardcode_direct=$hardcode_direct_CXX
21170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21171 # resulting binary.
21172 hardcode_minus_L=$hardcode_minus_L_CXX
21174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21175 # the resulting binary.
21176 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21178 # Set to yes if building a shared library automatically hardcodes DIR into the library
21179 # and all subsequent libraries and executables linked against it.
21180 hardcode_automatic=$hardcode_automatic_CXX
21182 # Variables whose values should be saved in libtool wrapper scripts and
21183 # restored at relink time.
21184 variables_saved_for_relink="$variables_saved_for_relink"
21186 # Whether libtool must link a program against all its dependency libraries.
21187 link_all_deplibs=$link_all_deplibs_CXX
21189 # Compile-time system search path for libraries
21190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21192 # Run-time system search path for libraries
21193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21195 # Fix the shell variable \$srcfile for the compiler.
21196 fix_srcfile_path="$fix_srcfile_path_CXX"
21198 # Set to yes if exported symbols are required.
21199 always_export_symbols=$always_export_symbols_CXX
21201 # The commands to list exported symbols.
21202 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21204 # The commands to extract the exported symbol list from a shared archive.
21205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21207 # Symbols that should not be listed in the preloaded symbols.
21208 exclude_expsyms=$lt_exclude_expsyms_CXX
21210 # Symbols that must always be exported.
21211 include_expsyms=$lt_include_expsyms_CXX
21213 # ### END LIBTOOL TAG CONFIG: $tagname
21219 # If there is no Makefile yet, we rely on a make rule to execute
21220 # `config.status --recheck' to rerun these tests and create the
21221 # libtool script then.
21222 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21223 if test -f "$ltmain_in"; then
21224 test -f Makefile && make "$ltmain"
21230 ac_cpp='$CPP $CPPFLAGS'
21231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21239 with_gnu_ldcxx=$with_gnu_ld
21240 with_gnu_ld=$lt_save_with_gnu_ld
21241 lt_cv_path_LDCXX=$lt_cv_path_LD
21242 lt_cv_path_LD=$lt_save_path_LD
21243 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21244 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21252 if test -n "$F77" && test "X$F77" != "Xno"; then
21255 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21256 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21260 archive_cmds_need_lc_F77=no
21261 allow_undefined_flag_F77=
21262 always_export_symbols_F77=no
21263 archive_expsym_cmds_F77=
21264 export_dynamic_flag_spec_F77=
21265 hardcode_direct_F77=no
21266 hardcode_libdir_flag_spec_F77=
21267 hardcode_libdir_flag_spec_ld_F77=
21268 hardcode_libdir_separator_F77=
21269 hardcode_minus_L_F77=no
21270 hardcode_automatic_F77=no
21272 module_expsym_cmds_F77=
21273 link_all_deplibs_F77=unknown
21274 old_archive_cmds_F77=$old_archive_cmds
21275 no_undefined_flag_F77=
21276 whole_archive_flag_spec_F77=
21277 enable_shared_with_static_runtimes_F77=no
21279 # Source file extension for f77 test sources.
21282 # Object file extension for compiled f77 test sources.
21286 # Code to be used in simple compile tests
21287 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21289 # Code to be used in simple link tests
21290 lt_simple_link_test_code=" program t\n end\n"
21292 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21294 # If no C compiler was specified, use CC.
21297 # If no C compiler flags were specified, use CFLAGS.
21298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21300 # Allow CC to be a program name with arguments.
21304 # save warnings/boilerplate of simple test code
21305 ac_outfile=conftest.$ac_objext
21306 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21308 _lt_compiler_boilerplate=`cat conftest.err`
21311 ac_outfile=conftest.$ac_objext
21312 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21314 _lt_linker_boilerplate=`cat conftest.err`
21318 # Allow CC to be a program name with arguments.
21323 for cc_temp in $compiler""; do
21325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21334 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21335 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21336 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21337 echo "${ECHO_T}$can_build_shared" >&6; }
21339 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21340 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21341 test "$can_build_shared" = "no" && enable_shared=no
21343 # On AIX, shared libraries and static libraries use the same namespace, and
21344 # are all built from PIC.
21347 test "$enable_shared" = yes && enable_static=no
21348 if test -n "$RANLIB"; then
21349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21350 postinstall_cmds='$RANLIB $lib'
21354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21355 test "$enable_shared" = yes && enable_static=no
21359 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21360 echo "${ECHO_T}$enable_shared" >&6; }
21362 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21363 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21364 # Make sure either enable_shared or enable_static is yes.
21365 test "$enable_shared" = yes || enable_static=yes
21366 { echo "$as_me:$LINENO: result: $enable_static" >&5
21367 echo "${ECHO_T}$enable_static" >&6; }
21372 lt_prog_compiler_wl_F77=
21373 lt_prog_compiler_pic_F77=
21374 lt_prog_compiler_static_F77=
21376 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21377 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21379 if test "$GCC" = yes; then
21380 lt_prog_compiler_wl_F77='-Wl,'
21381 lt_prog_compiler_static_F77='-static'
21385 # All AIX code is PIC.
21386 if test "$host_cpu" = ia64; then
21387 # AIX 5 now supports IA64 processor
21388 lt_prog_compiler_static_F77='-Bstatic'
21393 # FIXME: we need at least 68020 code to build shared libraries, but
21394 # adding the `-m68020' flag to GCC prevents building anything better,
21396 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21399 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21400 # PIC is the default for these OSes.
21403 mingw* | pw32* | os2*)
21404 # This hack is so that the source file can tell whether it is being
21405 # built for inclusion in a dll (and should export symbols for example).
21406 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21409 darwin* | rhapsody*)
21410 # PIC is the default on this platform
21411 # Common symbols not allowed in MH_DYLIB files
21412 lt_prog_compiler_pic_F77='-fno-common'
21416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21417 # Instead, we relocate shared libraries at runtime.
21421 # Just because we use GCC doesn't mean we suddenly get shared libraries
21422 # on systems that don't support them.
21423 lt_prog_compiler_can_build_shared_F77=no
21428 if test -d /usr/nec; then
21429 lt_prog_compiler_pic_F77=-Kconform_pic
21434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21435 # not for PA HP-UX.
21441 lt_prog_compiler_pic_F77='-fPIC'
21447 lt_prog_compiler_pic_F77='-fPIC'
21451 # PORTME Check for flag to pass linker flags through the system compiler.
21454 lt_prog_compiler_wl_F77='-Wl,'
21455 if test "$host_cpu" = ia64; then
21456 # AIX 5 now supports IA64 processor
21457 lt_prog_compiler_static_F77='-Bstatic'
21459 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21463 # PIC is the default on this platform
21464 # Common symbols not allowed in MH_DYLIB files
21465 case $cc_basename in
21467 lt_prog_compiler_pic_F77='-qnocommon'
21468 lt_prog_compiler_wl_F77='-Wl,'
21473 mingw* | pw32* | os2*)
21474 # This hack is so that the source file can tell whether it is being
21475 # built for inclusion in a dll (and should export symbols for example).
21476 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21479 hpux9* | hpux10* | hpux11*)
21480 lt_prog_compiler_wl_F77='-Wl,'
21481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21482 # not for PA HP-UX.
21488 lt_prog_compiler_pic_F77='+Z'
21491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21492 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21495 irix5* | irix6* | nonstopux*)
21496 lt_prog_compiler_wl_F77='-Wl,'
21497 # PIC (with -KPIC) is the default.
21498 lt_prog_compiler_static_F77='-non_shared'
21502 lt_prog_compiler_pic_F77='-KPIC'
21503 lt_prog_compiler_static_F77='-Bstatic'
21507 case $cc_basename in
21509 lt_prog_compiler_wl_F77='-Wl,'
21510 lt_prog_compiler_pic_F77='-KPIC'
21511 lt_prog_compiler_static_F77='-static'
21513 pgcc* | pgf77* | pgf90* | pgf95*)
21514 # Portland Group compilers (*not* the Pentium gcc compiler,
21515 # which looks to be a dead project)
21516 lt_prog_compiler_wl_F77='-Wl,'
21517 lt_prog_compiler_pic_F77='-fpic'
21518 lt_prog_compiler_static_F77='-Bstatic'
21521 lt_prog_compiler_wl_F77='-Wl,'
21522 # All Alpha code is PIC.
21523 lt_prog_compiler_static_F77='-non_shared'
21528 osf3* | osf4* | osf5*)
21529 lt_prog_compiler_wl_F77='-Wl,'
21530 # All OSF/1 code is PIC.
21531 lt_prog_compiler_static_F77='-non_shared'
21535 lt_prog_compiler_pic_F77='-KPIC'
21536 lt_prog_compiler_static_F77='-Bstatic'
21537 case $cc_basename in
21538 f77* | f90* | f95*)
21539 lt_prog_compiler_wl_F77='-Qoption ld ';;
21541 lt_prog_compiler_wl_F77='-Wl,';;
21546 lt_prog_compiler_wl_F77='-Qoption ld '
21547 lt_prog_compiler_pic_F77='-PIC'
21548 lt_prog_compiler_static_F77='-Bstatic'
21551 sysv4 | sysv4.2uw2* | sysv4.3*)
21552 lt_prog_compiler_wl_F77='-Wl,'
21553 lt_prog_compiler_pic_F77='-KPIC'
21554 lt_prog_compiler_static_F77='-Bstatic'
21558 if test -d /usr/nec ;then
21559 lt_prog_compiler_pic_F77='-Kconform_pic'
21560 lt_prog_compiler_static_F77='-Bstatic'
21564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21565 lt_prog_compiler_wl_F77='-Wl,'
21566 lt_prog_compiler_pic_F77='-KPIC'
21567 lt_prog_compiler_static_F77='-Bstatic'
21571 lt_prog_compiler_wl_F77='-Wl,'
21572 lt_prog_compiler_can_build_shared_F77=no
21576 lt_prog_compiler_pic_F77='-pic'
21577 lt_prog_compiler_static_F77='-Bstatic'
21581 lt_prog_compiler_can_build_shared_F77=no
21586 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21587 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21590 # Check to make sure the PIC flag actually works.
21592 if test -n "$lt_prog_compiler_pic_F77"; then
21594 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21595 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21596 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 lt_prog_compiler_pic_works_F77=no
21600 ac_outfile=conftest.$ac_objext
21601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21602 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21603 # Insert the option either (1) after the last *FLAGS variable, or
21604 # (2) before a word containing "conftest.", or (3) at the end.
21605 # Note that $ac_compile itself does not contain backslashes and begins
21606 # with a dollar sign (not a hyphen), so the echo should work correctly.
21607 # The option is referenced via a variable to avoid confusing sed.
21608 lt_compile=`echo "$ac_compile" | $SED \
21609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21611 -e 's:$: $lt_compiler_flag:'`
21612 (eval echo "\"\$as_me:21612: $lt_compile\"" >&5)
21613 (eval "$lt_compile" 2>conftest.err)
21615 cat conftest.err >&5
21616 echo "$as_me:21616: \$? = $ac_status" >&5
21617 if (exit $ac_status) && test -s "$ac_outfile"; then
21618 # The compiler can only warn and ignore the option if not recognized
21619 # So say no if there are warnings other than the usual output.
21620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21622 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21623 lt_prog_compiler_pic_works_F77=yes
21629 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21630 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21632 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21633 case $lt_prog_compiler_pic_F77 in
21635 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21638 lt_prog_compiler_pic_F77=
21639 lt_prog_compiler_can_build_shared_F77=no
21644 # For platforms which do not support PIC, -DPIC is meaningless:
21646 lt_prog_compiler_pic_F77=
21649 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21654 # Check to make sure the static flag actually works.
21656 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21657 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21658 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21659 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 lt_prog_compiler_static_works_F77=no
21663 save_LDFLAGS="$LDFLAGS"
21664 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21665 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21667 # The linker can only warn and ignore the option if not recognized
21668 # So say no if there are warnings
21669 if test -s conftest.err; then
21670 # Append any errors to the config.log.
21671 cat conftest.err 1>&5
21672 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21674 if diff conftest.exp conftest.er2 >/dev/null; then
21675 lt_prog_compiler_static_works_F77=yes
21678 lt_prog_compiler_static_works_F77=yes
21682 LDFLAGS="$save_LDFLAGS"
21685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21686 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21688 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21691 lt_prog_compiler_static_F77=
21695 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21697 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 lt_cv_prog_compiler_c_o_F77=no
21701 $rm -r conftest 2>/dev/null
21705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21707 lt_compiler_flag="-o out/conftest2.$ac_objext"
21708 # Insert the option either (1) after the last *FLAGS variable, or
21709 # (2) before a word containing "conftest.", or (3) at the end.
21710 # Note that $ac_compile itself does not contain backslashes and begins
21711 # with a dollar sign (not a hyphen), so the echo should work correctly.
21712 lt_compile=`echo "$ac_compile" | $SED \
21713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21715 -e 's:$: $lt_compiler_flag:'`
21716 (eval echo "\"\$as_me:21716: $lt_compile\"" >&5)
21717 (eval "$lt_compile" 2>out/conftest.err)
21719 cat out/conftest.err >&5
21720 echo "$as_me:21720: \$? = $ac_status" >&5
21721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21723 # The compiler can only warn and ignore the option if not recognized
21724 # So say no if there are warnings
21725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21728 lt_cv_prog_compiler_c_o_F77=yes
21733 # SGI C++ compiler will create directory out/ii_files/ for
21734 # template instantiation
21735 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21736 $rm out/* && rmdir out
21742 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21743 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21746 hard_links="nottested"
21747 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21748 # do not overwrite the value of need_locks provided by the user
21749 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21750 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21755 ln conftest.a conftest.b 2>&5 || hard_links=no
21756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21757 { echo "$as_me:$LINENO: result: $hard_links" >&5
21758 echo "${ECHO_T}$hard_links" >&6; }
21759 if test "$hard_links" = no; then
21760 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21761 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21768 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21769 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21772 allow_undefined_flag_F77=
21773 enable_shared_with_static_runtimes_F77=no
21775 archive_expsym_cmds_F77=
21776 old_archive_From_new_cmds_F77=
21777 old_archive_from_expsyms_cmds_F77=
21778 export_dynamic_flag_spec_F77=
21779 whole_archive_flag_spec_F77=
21780 thread_safe_flag_spec_F77=
21781 hardcode_libdir_flag_spec_F77=
21782 hardcode_libdir_flag_spec_ld_F77=
21783 hardcode_libdir_separator_F77=
21784 hardcode_direct_F77=no
21785 hardcode_minus_L_F77=no
21786 hardcode_shlibpath_var_F77=unsupported
21787 link_all_deplibs_F77=unknown
21788 hardcode_automatic_F77=no
21790 module_expsym_cmds_F77=
21791 always_export_symbols_F77=no
21792 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21793 # include_expsyms should be a list of space-separated symbols to be *always*
21794 # included in the symbol list
21795 include_expsyms_F77=
21796 # exclude_expsyms can be an extended regexp of symbols to exclude
21797 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21798 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21799 # as well as any symbol that contains `d'.
21800 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21802 # platforms (ab)use it in PIC code, but their linkers get confused if
21803 # the symbol is explicitly referenced. Since portable code cannot
21804 # rely on this symbol name, it's probably fine to never include it in
21805 # preloaded symbol tables.
21806 extract_expsyms_cmds=
21807 # Just being paranoid about ensuring that cc_basename is set.
21808 for cc_temp in $compiler""; do
21810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21816 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21819 cygwin* | mingw* | pw32*)
21820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21821 # When not using gcc, we currently assume that we are using
21822 # Microsoft Visual C++.
21823 if test "$GCC" != yes; then
21828 # we just hope/assume this is gcc and not c89 (= MSVC++)
21837 if test "$with_gnu_ld" = yes; then
21838 # If archive_cmds runs LD, not CC, wlarc should be empty
21841 # Set some defaults for GNU ld with shared library support. These
21842 # are reset later if shared libraries are not supported. Putting them
21843 # here allows them to be overridden if necessary.
21844 runpath_var=LD_RUN_PATH
21845 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21846 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21847 # ancient GNU ld didn't support --whole-archive et. al.
21848 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21849 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21851 whole_archive_flag_spec_F77=
21853 supports_anon_versioning=no
21854 case `$LD -v 2>/dev/null` in
21855 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21856 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21857 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21858 *\ 2.11.*) ;; # other 2.11 versions
21859 *) supports_anon_versioning=yes ;;
21862 # See if GNU ld supports shared libraries.
21864 aix3* | aix4* | aix5*)
21865 # On AIX/PPC, the GNU linker is very broken
21866 if test "$host_cpu" != ia64; then
21870 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21871 *** to be unable to reliably create shared libraries on AIX.
21872 *** Therefore, libtool is disabling shared libraries support. If you
21873 *** really care for shared libraries, you may want to modify your PATH
21874 *** so that a non-GNU linker is found, and then restart.
21881 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)'
21882 hardcode_libdir_flag_spec_F77='-L$libdir'
21883 hardcode_minus_L_F77=yes
21885 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21886 # that the semantics of dynamic libraries on AmigaOS, at least up
21887 # to version 4, is to share data among multiple programs linked
21888 # with the same dynamic library. Since this doesn't match the
21889 # behavior of shared libraries on other platforms, we can't use
21895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21896 allow_undefined_flag_F77=unsupported
21897 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21898 # support --undefined. This deserves some investigation. FIXME
21899 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21905 cygwin* | mingw* | pw32*)
21906 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21907 # as there is no search path for DLLs.
21908 hardcode_libdir_flag_spec_F77='-L$libdir'
21909 allow_undefined_flag_F77=unsupported
21910 always_export_symbols_F77=no
21911 enable_shared_with_static_runtimes_F77=yes
21912 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21914 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21916 # If the export-symbols file already is a .def file (1st line
21917 # is EXPORTS), use it as is; otherwise, prepend...
21918 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21919 cp $export_symbols $output_objdir/$soname.def;
21921 echo EXPORTS > $output_objdir/$soname.def;
21922 cat $export_symbols >> $output_objdir/$soname.def;
21924 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21931 hardcode_direct_F77=no
21932 hardcode_shlibpath_var_F77=no
21933 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21934 export_dynamic_flag_spec_F77='${wl}-E'
21935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21936 # Instead, shared libraries are loaded at an image base (0x10000000 by
21937 # default) and relocated if they conflict, which is a slow very memory
21938 # consuming and fragmenting process. To avoid this, we pick a random,
21939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21941 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'
21942 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'
21946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21948 case $cc_basename,$host_cpu in
21949 pgcc*) # Portland Group C compiler
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'
21953 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21954 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'
21955 tmp_addflag=' $pic_flag -Mnomain' ;;
21956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21957 tmp_addflag=' -i_dynamic' ;;
21958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21959 tmp_addflag=' -i_dynamic -nofor_main' ;;
21960 ifc* | ifort*) # Intel Fortran compiler
21961 tmp_addflag=' -nofor_main' ;;
21963 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21965 if test $supports_anon_versioning = yes; then
21966 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21968 $echo "local: *; };" >> $output_objdir/$libname.ver~
21969 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21978 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21981 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21982 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21992 *** create shared libraries on Solaris systems. Therefore, libtool
21993 *** is disabling shared libraries support. We urge you to upgrade GNU
21994 *** binutils to release 2.9.1 or newer. Another option is to modify
21995 *** your PATH or compiler configuration so that the native linker is
21996 *** used, and then restart.
21999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22000 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22001 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22008 case `$LD -v 2>&1` in
22009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22014 *** reliably create shared libraries on SCO systems. Therefore, libtool
22015 *** is disabling shared libraries support. We urge you to upgrade GNU
22016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22017 *** your PATH or compiler configuration so that the native linker is
22018 *** used, and then restart.
22023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22024 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22025 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22026 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22035 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22037 hardcode_direct_F77=yes
22038 hardcode_shlibpath_var_F77=no
22042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22043 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22044 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22051 if test "$ld_shlibs_F77" = no; then
22053 hardcode_libdir_flag_spec_F77=
22054 export_dynamic_flag_spec_F77=
22055 whole_archive_flag_spec_F77=
22058 # PORTME fill in a description of your system's linker (not GNU ld)
22061 allow_undefined_flag_F77=unsupported
22062 always_export_symbols_F77=yes
22063 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'
22064 # Note: this linker hardcodes the directories in LIBPATH if there
22065 # are no directories specified by -L.
22066 hardcode_minus_L_F77=yes
22067 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22068 # Neither direct hardcoding nor static linking is supported with a
22070 hardcode_direct_F77=unsupported
22075 if test "$host_cpu" = ia64; then
22076 # On IA64, the linker does run time linking by default, so we don't
22077 # have to do anything special.
22078 aix_use_runtimelinking=no
22079 exp_sym_flag='-Bexport'
22082 # If we're using GNU nm, then we don't want the "-C" option.
22083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22084 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22085 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'
22087 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'
22089 aix_use_runtimelinking=no
22091 # Test if we are trying to use run time linking or normal
22092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22093 # need to do runtime linking.
22094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22095 for ld_flag in $LDFLAGS; do
22096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22097 aix_use_runtimelinking=yes
22104 exp_sym_flag='-bexport'
22105 no_entry_flag='-bnoentry'
22108 # When large executables or shared objects are built, AIX ld can
22109 # have problems creating the table of contents. If linking a library
22110 # or program results in "error TOC overflow" add -mminimal-toc to
22111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22114 archive_cmds_F77=''
22115 hardcode_direct_F77=yes
22116 hardcode_libdir_separator_F77=':'
22117 link_all_deplibs_F77=yes
22119 if test "$GCC" = yes; then
22120 case $host_os in aix4.[012]|aix4.[012].*)
22121 # We only want to do this on AIX 4.2 and lower, the check
22122 # below for broken collect2 doesn't work under 4.3+
22123 collect2name=`${CC} -print-prog-name=collect2`
22124 if test -f "$collect2name" && \
22125 strings "$collect2name" | grep resolve_lib_name >/dev/null
22127 # We have reworked collect2
22128 hardcode_direct_F77=yes
22130 # We have old collect2
22131 hardcode_direct_F77=unsupported
22132 # It fails to find uninstalled libraries when the uninstalled
22133 # path is not listed in the libpath. Setting hardcode_minus_L
22134 # to unsupported forces relinking
22135 hardcode_minus_L_F77=yes
22136 hardcode_libdir_flag_spec_F77='-L$libdir'
22137 hardcode_libdir_separator_F77=
22141 shared_flag='-shared'
22142 if test "$aix_use_runtimelinking" = yes; then
22143 shared_flag="$shared_flag "'${wl}-G'
22147 if test "$host_cpu" = ia64; then
22148 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22149 # chokes on -Wl,-G. The following line is correct:
22152 if test "$aix_use_runtimelinking" = yes; then
22153 shared_flag='${wl}-G'
22155 shared_flag='${wl}-bM:SRE'
22160 # It seems that -bexpall does not export symbols beginning with
22161 # underscore (_), so it is better to generate a list of symbols to export.
22162 always_export_symbols_F77=yes
22163 if test "$aix_use_runtimelinking" = yes; then
22164 # Warning - without using the other runtime loading flags (-brtl),
22165 # -berok will link without error, but may produce a broken library.
22166 allow_undefined_flag_F77='-berok'
22167 # Determine the default libpath from the value encoded in an empty executable.
22168 cat >conftest.$ac_ext <<_ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_link") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } &&
22187 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22188 { (case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_try") 2>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; } &&
22197 { ac_try='test -s conftest$ac_exeext'
22198 { (case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_try") 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22210 # Check for a 64-bit object if we didn't find anything.
22211 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; }
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22220 rm -f core conftest.err conftest.$ac_objext \
22221 conftest$ac_exeext conftest.$ac_ext
22222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22224 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22225 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"
22227 if test "$host_cpu" = ia64; then
22228 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22229 allow_undefined_flag_F77="-z nodefs"
22230 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"
22232 # Determine the default libpath from the value encoded in an empty executable.
22233 cat >conftest.$ac_ext <<_ACEOF
22238 rm -f conftest.$ac_objext conftest$ac_exeext
22239 if { (ac_try="$ac_link"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_link") 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22253 { (case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_try") 2>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest$ac_exeext'
22263 { (case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_try") 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22275 # Check for a 64-bit object if we didn't find anything.
22276 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; }
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22285 rm -f core conftest.err conftest.$ac_objext \
22286 conftest$ac_exeext conftest.$ac_ext
22287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22289 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22290 # Warning - without using the other run time loading flags,
22291 # -berok will link without error, but may produce a broken library.
22292 no_undefined_flag_F77=' ${wl}-bernotok'
22293 allow_undefined_flag_F77=' ${wl}-berok'
22294 # Exported symbols can be pulled into shared objects from archives
22295 whole_archive_flag_spec_F77='$convenience'
22296 archive_cmds_need_lc_F77=yes
22297 # This is similar to how AIX traditionally builds its shared libraries.
22298 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'
22304 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)'
22305 hardcode_libdir_flag_spec_F77='-L$libdir'
22306 hardcode_minus_L_F77=yes
22307 # see comment about different semantics on the GNU ld section
22312 export_dynamic_flag_spec_F77=-rdynamic
22315 cygwin* | mingw* | pw32*)
22316 # When not using gcc, we currently assume that we are using
22317 # Microsoft Visual C++.
22318 # hardcode_libdir_flag_spec is actually meaningless, as there is
22319 # no search path for DLLs.
22320 hardcode_libdir_flag_spec_F77=' '
22321 allow_undefined_flag_F77=unsupported
22322 # Tell ltmain to make .lib files, not .a files.
22324 # Tell ltmain to make .dll files, not .so files.
22326 # FIXME: Setting linknames here is a bad hack.
22327 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22328 # The linker will automatically build a .lib file if we build a DLL.
22329 old_archive_From_new_cmds_F77='true'
22330 # FIXME: Should let the user specify the lib program.
22331 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22332 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22333 enable_shared_with_static_runtimes_F77=yes
22336 darwin* | rhapsody*)
22338 rhapsody* | darwin1.[012])
22339 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22342 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22343 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22345 case ${MACOSX_DEPLOYMENT_TARGET} in
22347 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22350 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22356 archive_cmds_need_lc_F77=no
22357 hardcode_direct_F77=no
22358 hardcode_automatic_F77=yes
22359 hardcode_shlibpath_var_F77=unsupported
22360 whole_archive_flag_spec_F77=''
22361 link_all_deplibs_F77=yes
22362 if test "$GCC" = yes ; then
22363 output_verbose_link_cmd='echo'
22364 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22365 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22367 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}'
22368 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}'
22370 case $cc_basename in
22372 output_verbose_link_cmd='echo'
22373 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22374 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22376 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}'
22377 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}'
22387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22388 hardcode_libdir_flag_spec_F77='-L$libdir'
22389 hardcode_shlibpath_var_F77=no
22396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22397 # support. Future versions do this automatically, but an explicit c++rt0.o
22398 # does not break anything, and helps significantly (at the cost of a little
22401 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22402 hardcode_libdir_flag_spec_F77='-R$libdir'
22403 hardcode_direct_F77=yes
22404 hardcode_shlibpath_var_F77=no
22407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22409 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22410 hardcode_direct_F77=yes
22411 hardcode_minus_L_F77=yes
22412 hardcode_shlibpath_var_F77=no
22415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22416 freebsd* | kfreebsd*-gnu | dragonfly*)
22417 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22418 hardcode_libdir_flag_spec_F77='-R$libdir'
22419 hardcode_direct_F77=yes
22420 hardcode_shlibpath_var_F77=no
22424 if test "$GCC" = yes; then
22425 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'
22427 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'
22429 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22430 hardcode_libdir_separator_F77=:
22431 hardcode_direct_F77=yes
22433 # hardcode_minus_L: Not really in the search PATH,
22434 # but as the default location of the library.
22435 hardcode_minus_L_F77=yes
22436 export_dynamic_flag_spec_F77='${wl}-E'
22440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22441 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22443 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22445 if test "$with_gnu_ld" = no; then
22446 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22447 hardcode_libdir_separator_F77=:
22449 hardcode_direct_F77=yes
22450 export_dynamic_flag_spec_F77='${wl}-E'
22452 # hardcode_minus_L: Not really in the search PATH,
22453 # but as the default location of the library.
22454 hardcode_minus_L_F77=yes
22459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22462 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22465 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22468 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22474 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22477 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22480 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22484 if test "$with_gnu_ld" = no; then
22485 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22486 hardcode_libdir_separator_F77=:
22490 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22491 hardcode_direct_F77=no
22492 hardcode_shlibpath_var_F77=no
22495 hardcode_direct_F77=yes
22496 export_dynamic_flag_spec_F77='${wl}-E'
22498 # hardcode_minus_L: Not really in the search PATH,
22499 # but as the default location of the library.
22500 hardcode_minus_L_F77=yes
22506 irix5* | irix6* | nonstopux*)
22507 if test "$GCC" = yes; then
22508 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'
22510 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'
22511 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22513 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22514 hardcode_libdir_separator_F77=:
22515 link_all_deplibs_F77=yes
22519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22520 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22522 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22524 hardcode_libdir_flag_spec_F77='-R$libdir'
22525 hardcode_direct_F77=yes
22526 hardcode_shlibpath_var_F77=no
22530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22531 hardcode_direct_F77=yes
22532 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22533 hardcode_libdir_separator_F77=:
22534 hardcode_shlibpath_var_F77=no
22538 hardcode_direct_F77=yes
22539 hardcode_shlibpath_var_F77=no
22540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22541 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22542 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22543 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22544 export_dynamic_flag_spec_F77='${wl}-E'
22547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22548 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22549 hardcode_libdir_flag_spec_F77='-R$libdir'
22552 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22553 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22560 hardcode_libdir_flag_spec_F77='-L$libdir'
22561 hardcode_minus_L_F77=yes
22562 allow_undefined_flag_F77=unsupported
22563 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'
22564 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22568 if test "$GCC" = yes; then
22569 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22570 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'
22572 allow_undefined_flag_F77=' -expect_unresolved \*'
22573 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'
22575 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22576 hardcode_libdir_separator_F77=:
22579 osf4* | osf5*) # as osf3* with the addition of -msym flag
22580 if test "$GCC" = yes; then
22581 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22582 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'
22583 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22585 allow_undefined_flag_F77=' -expect_unresolved \*'
22586 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'
22587 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~
22588 $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'
22590 # Both c and cxx compiler support -rpath directly
22591 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22593 hardcode_libdir_separator_F77=:
22597 no_undefined_flag_F77=' -z text'
22598 if test "$GCC" = yes; then
22600 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22601 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22605 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22606 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22609 hardcode_libdir_flag_spec_F77='-R$libdir'
22610 hardcode_shlibpath_var_F77=no
22612 solaris2.[0-5] | solaris2.[0-5].*) ;;
22614 # The compiler driver will combine linker options so we
22615 # cannot just pass the convience library names through
22616 # without $wl, iff we do not link with $LD.
22617 # Luckily, gcc supports the same syntax we need for Sun Studio.
22618 # Supported since Solaris 2.6 (maybe 2.5.1?)
22621 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22623 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' ;;
22626 link_all_deplibs_F77=yes
22630 if test "x$host_vendor" = xsequent; then
22631 # Use $CC to link under sequent, because it throws in some extra .o
22632 # files that make .init and .fini sections work.
22633 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22635 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22637 hardcode_libdir_flag_spec_F77='-L$libdir'
22638 hardcode_direct_F77=yes
22639 hardcode_minus_L_F77=yes
22640 hardcode_shlibpath_var_F77=no
22644 case $host_vendor in
22646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22647 hardcode_direct_F77=yes # is this really true???
22650 ## LD is ld it makes a PLAMLIB
22651 ## CC just makes a GrossModule.
22652 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22653 reload_cmds_F77='$CC -r -o $output$reload_objs'
22654 hardcode_direct_F77=no
22657 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22658 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22661 runpath_var='LD_RUN_PATH'
22662 hardcode_shlibpath_var_F77=no
22666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22667 hardcode_shlibpath_var_F77=no
22668 export_dynamic_flag_spec_F77='-Bexport'
22672 if test -d /usr/nec; then
22673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22674 hardcode_shlibpath_var_F77=no
22675 runpath_var=LD_RUN_PATH
22676 hardcode_runpath_var=yes
22681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22682 no_undefined_flag_F77='${wl}-z,text'
22683 archive_cmds_need_lc_F77=no
22684 hardcode_shlibpath_var_F77=no
22685 runpath_var='LD_RUN_PATH'
22687 if test "$GCC" = yes; then
22688 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22689 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22691 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22692 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22696 sysv5* | sco3.2v5* | sco5v6*)
22697 # Note: We can NOT use -z defs as we might desire, because we do not
22698 # link with -lc, and that would cause any symbols used from libc to
22699 # always be unresolved, which means just about no library would
22700 # ever link correctly. If we're not using GNU ld we use -z text
22701 # though, which does catch some bad symbols but isn't as heavy-handed
22703 no_undefined_flag_F77='${wl}-z,text'
22704 allow_undefined_flag_F77='${wl}-z,nodefs'
22705 archive_cmds_need_lc_F77=no
22706 hardcode_shlibpath_var_F77=no
22707 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22708 hardcode_libdir_separator_F77=':'
22709 link_all_deplibs_F77=yes
22710 export_dynamic_flag_spec_F77='${wl}-Bexport'
22711 runpath_var='LD_RUN_PATH'
22713 if test "$GCC" = yes; then
22714 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22715 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22717 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22718 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22724 hardcode_libdir_flag_spec_F77='-L$libdir'
22725 hardcode_shlibpath_var_F77=no
22734 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22735 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22736 test "$ld_shlibs_F77" = no && can_build_shared=no
22739 # Do we need to explicitly link libc?
22741 case "x$archive_cmds_need_lc_F77" in
22743 # Assume -lc should be added
22744 archive_cmds_need_lc_F77=yes
22746 if test "$enable_shared" = yes && test "$GCC" = yes; then
22747 case $archive_cmds_F77 in
22749 # FIXME: we may have to deal with multi-command sequences.
22752 # Test whether the compiler implicitly links with -lc since on some
22753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22754 # to ld, don't add -lc before -lgcc.
22755 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22761 (eval $ac_compile) 2>&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } 2>conftest.err; then
22767 libobjs=conftest.$ac_objext
22769 wl=$lt_prog_compiler_wl_F77
22770 pic_flag=$lt_prog_compiler_pic_F77
22776 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22777 allow_undefined_flag_F77=
22778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22779 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }
22784 archive_cmds_need_lc_F77=no
22786 archive_cmds_need_lc_F77=yes
22788 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22790 cat conftest.err 1>&5
22793 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22794 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22803 library_names_spec=
22804 libname_spec='lib$name'
22808 postuninstall_cmds=
22812 shlibpath_overrides_runpath=unknown
22814 dynamic_linker="$host_os ld.so"
22815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22816 if test "$GCC" = yes; then
22817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22818 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22819 # if the path contains ";" then we assume it to be the separator
22820 # otherwise default to the standard path separator (i.e. ":") - it is
22821 # assumed that no part of a normal pathname contains ";" but that should
22822 # okay in the real world where ";" in dirpaths is itself problematic.
22823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22830 need_lib_prefix=unknown
22831 hardcode_into_libs=no
22833 # when you set need_version to no, make sure it does not cause -set_version
22834 # flags to be left without arguments
22835 need_version=unknown
22840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22841 shlibpath_var=LIBPATH
22843 # AIX 3 has no versioning support, so we append a major version to the name.
22844 soname_spec='${libname}${release}${shared_ext}$major'
22851 hardcode_into_libs=yes
22852 if test "$host_cpu" = ia64; then
22853 # AIX 5 supports IA64
22854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22855 shlibpath_var=LD_LIBRARY_PATH
22857 # With GCC up to 2.95.x, collect2 would create an import file
22858 # for dependence libraries. The import file would start with
22859 # the line `#! .'. This would cause the generated library to
22860 # depend on `.', always an invalid library. This was fixed in
22861 # development snapshots of GCC prior to 3.0.
22863 aix4 | aix4.[01] | aix4.[01].*)
22864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22869 can_build_shared=no
22873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22874 # soname into executable. Probably we can add versioning support to
22875 # collect2, so additional links can be useful in future.
22876 if test "$aix_use_runtimelinking" = yes; then
22877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22878 # instead of lib<name>.a to let people know that these are not
22879 # typical AIX shared libraries.
22880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22882 # We preserve .a as extension for shared libraries through AIX4.2
22883 # and later when we are not doing run time linking.
22884 library_names_spec='${libname}${release}.a $libname.a'
22885 soname_spec='${libname}${release}${shared_ext}$major'
22887 shlibpath_var=LIBPATH
22892 library_names_spec='$libname.ixlibrary $libname.a'
22893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22894 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'
22898 library_names_spec='${libname}${shared_ext}'
22899 dynamic_linker="$host_os ld.so"
22900 shlibpath_var=LIBRARY_PATH
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907 soname_spec='${libname}${release}${shared_ext}$major'
22908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22909 shlibpath_var=LD_LIBRARY_PATH
22910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22912 # the default ld.so.conf also contains /usr/contrib/lib and
22913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22914 # libtool to hard-code these into programs
22917 cygwin* | mingw* | pw32*)
22918 version_type=windows
22923 case $GCC,$host_os in
22924 yes,cygwin* | yes,mingw* | yes,pw32*)
22925 library_names_spec='$libname.dll.a'
22926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22927 postinstall_cmds='base_file=`basename \${file}`~
22928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22929 dldir=$destdir/`dirname \$dlpath`~
22930 test -d \$dldir || mkdir -p \$dldir~
22931 $install_prog $dir/$dlname \$dldir/$dlname~
22932 chmod a+x \$dldir/$dlname'
22933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22934 dlpath=$dir/\$dldll~
22936 shlibpath_overrides_runpath=yes
22940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22945 # MinGW DLLs use traditional 'lib' prefix
22946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22949 # It is most probably a Windows format PATH printed by
22950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22951 # path with ; separators, and with drive letters. We can handle the
22952 # drive letters (cygwin fileutils understands them), so leave them,
22953 # especially as we might pass files found there to a mingw objdump,
22954 # which wouldn't understand a cygwinified path. Ahh.
22955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22961 # pw32 DLLs use 'pw' prefix rather than 'lib'
22962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22971 dynamic_linker='Win32 ld.exe'
22972 # FIXME: first we should search . and the directory the executable is in
22976 darwin* | rhapsody*)
22977 dynamic_linker="$host_os dyld"
22978 version_type=darwin
22981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22982 soname_spec='${libname}${release}${major}$shared_ext'
22983 shlibpath_overrides_runpath=yes
22984 shlibpath_var=DYLD_LIBRARY_PATH
22985 shrext_cmds='.dylib'
22986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22987 if test "$GCC" = yes; then
22988 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"`
22990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23000 soname_spec='${libname}${release}${shared_ext}$major'
23001 shlibpath_var=LD_LIBRARY_PATH
23012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23013 soname_spec='${libname}${release}${shared_ext}$major'
23014 shlibpath_var=LD_LIBRARY_PATH
23015 shlibpath_overrides_runpath=no
23016 hardcode_into_libs=yes
23017 dynamic_linker='GNU ld.so'
23020 freebsd* | dragonfly*)
23021 # DragonFly does not have aout. When/if they implement a new
23022 # versioning mechanism, adjust this.
23023 if test -x /usr/bin/objformat; then
23024 objformat=`/usr/bin/objformat`
23027 freebsd[123]*) objformat=aout ;;
23028 *) objformat=elf ;;
23031 version_type=freebsd-$objformat
23032 case $version_type in
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23043 shlibpath_var=LD_LIBRARY_PATH
23046 shlibpath_overrides_runpath=yes
23048 freebsd3.[01]* | freebsdelf3.[01]*)
23049 shlibpath_overrides_runpath=yes
23050 hardcode_into_libs=yes
23052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23054 shlibpath_overrides_runpath=no
23055 hardcode_into_libs=yes
23057 freebsd*) # from 4.6 on
23058 shlibpath_overrides_runpath=yes
23059 hardcode_into_libs=yes
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 hardcode_into_libs=yes
23074 hpux9* | hpux10* | hpux11*)
23075 # Give a soname corresponding to the major version so that dld.sl refuses to
23076 # link against other versions.
23083 hardcode_into_libs=yes
23084 dynamic_linker="$host_os dld.so"
23085 shlibpath_var=LD_LIBRARY_PATH
23086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 soname_spec='${libname}${release}${shared_ext}$major'
23089 if test "X$HPUX_IA64_MODE" = X32; then
23090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23098 hardcode_into_libs=yes
23099 dynamic_linker="$host_os dld.sl"
23100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23103 soname_spec='${libname}${release}${shared_ext}$major'
23104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23109 dynamic_linker="$host_os dld.sl"
23110 shlibpath_var=SHLIB_PATH
23111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23113 soname_spec='${libname}${release}${shared_ext}$major'
23116 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23117 postinstall_cmds='chmod 555 $lib'
23124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23125 soname_spec='${libname}${release}${shared_ext}$major'
23126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 shlibpath_overrides_runpath=no
23129 hardcode_into_libs=yes
23132 irix5* | irix6* | nonstopux*)
23134 nonstopux*) version_type=nonstopux ;;
23136 if test "$lt_cv_prog_gnu_ld" = yes; then
23144 soname_spec='${libname}${release}${shared_ext}$major'
23145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23147 irix5* | nonstopux*)
23148 libsuff= shlibsuff=
23151 case $LD in # libtool.m4 will add one of these switches to LD
23152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23153 libsuff= shlibsuff= libmagic=32-bit;;
23154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23155 libsuff=32 shlibsuff=N32 libmagic=N32;;
23156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23157 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23158 *) libsuff= shlibsuff= libmagic=never-match;;
23162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23163 shlibpath_overrides_runpath=no
23164 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23165 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23166 hardcode_into_libs=yes
23169 # No shared lib support for Linux oldld, aout, or coff.
23170 linux*oldld* | linux*aout* | linux*coff*)
23174 # This must be Linux ELF.
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23182 shlibpath_var=LD_LIBRARY_PATH
23183 shlibpath_overrides_runpath=no
23184 # This implies no fast_install, which is unacceptable.
23185 # Some rework will be needed to allow for fast_install
23186 # before this can be enabled.
23187 hardcode_into_libs=yes
23189 # Append ld.so.conf contents to the search path
23190 if test -f /etc/ld.so.conf; then
23191 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' ' '`
23192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23195 # We used to test for /lib/ld.so.1 and disable shared libraries on
23196 # powerpc, because MkLinux only supported shared libraries with the
23197 # GNU dynamic linker. Since this was broken with cross compilers,
23198 # most powerpc-linux boxes support dynamic linking these days and
23199 # people can always --disable-shared, the test was removed, and we
23200 # assume the GNU/Linux dynamic linker is in use.
23201 dynamic_linker='GNU/Linux ld.so'
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 shlibpath_var=LD_LIBRARY_PATH
23211 shlibpath_overrides_runpath=no
23212 hardcode_into_libs=yes
23213 dynamic_linker='GNU ld.so'
23220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23223 dynamic_linker='NetBSD (a.out) ld.so'
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 dynamic_linker='NetBSD ld.elf_so'
23229 shlibpath_var=LD_LIBRARY_PATH
23230 shlibpath_overrides_runpath=yes
23231 hardcode_into_libs=yes
23236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23237 shlibpath_var=LD_LIBRARY_PATH
23238 shlibpath_overrides_runpath=yes
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 shlibpath_var=LD_LIBRARY_PATH
23248 shlibpath_overrides_runpath=yes
23253 sys_lib_dlsearch_path_spec="/usr/lib"
23255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23258 *) need_version=no ;;
23260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23262 shlibpath_var=LD_LIBRARY_PATH
23263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23265 openbsd2.[89] | openbsd2.[89].*)
23266 shlibpath_overrides_runpath=no
23269 shlibpath_overrides_runpath=yes
23273 shlibpath_overrides_runpath=yes
23278 libname_spec='$name'
23281 library_names_spec='$libname${shared_ext} $libname.a'
23282 dynamic_linker='OS/2 ld.exe'
23283 shlibpath_var=LIBPATH
23286 osf3* | osf4* | osf5*)
23290 soname_spec='${libname}${release}${shared_ext}$major'
23291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23292 shlibpath_var=LD_LIBRARY_PATH
23293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23302 soname_spec='${libname}${release}${shared_ext}$major'
23303 shlibpath_var=LD_LIBRARY_PATH
23304 shlibpath_overrides_runpath=yes
23305 hardcode_into_libs=yes
23306 # ldd complains unless libraries are executable
23307 postinstall_cmds='chmod +x $lib'
23312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23314 shlibpath_var=LD_LIBRARY_PATH
23315 shlibpath_overrides_runpath=yes
23316 if test "$with_gnu_ld" = yes; then
23324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23325 soname_spec='${libname}${release}${shared_ext}$major'
23326 shlibpath_var=LD_LIBRARY_PATH
23327 case $host_vendor in
23329 shlibpath_overrides_runpath=no
23331 export_dynamic_flag_spec='${wl}-Blargedynsym'
23332 runpath_var=LD_RUN_PATH
23340 shlibpath_overrides_runpath=no
23341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23347 if test -d /usr/nec ;then
23349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23350 soname_spec='$libname${shared_ext}.$major'
23351 shlibpath_var=LD_LIBRARY_PATH
23355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23356 version_type=freebsd-elf
23359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23360 soname_spec='${libname}${release}${shared_ext}$major'
23361 shlibpath_var=LD_LIBRARY_PATH
23362 hardcode_into_libs=yes
23363 if test "$with_gnu_ld" = yes; then
23364 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23365 shlibpath_overrides_runpath=no
23367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23368 shlibpath_overrides_runpath=yes
23371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23375 sys_lib_dlsearch_path_spec='/usr/lib'
23380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23381 soname_spec='${libname}${release}${shared_ext}$major'
23382 shlibpath_var=LD_LIBRARY_PATH
23389 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23390 echo "${ECHO_T}$dynamic_linker" >&6; }
23391 test "$dynamic_linker" = no && can_build_shared=no
23393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23394 if test "$GCC" = yes; then
23395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23398 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23399 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23400 hardcode_action_F77=
23401 if test -n "$hardcode_libdir_flag_spec_F77" || \
23402 test -n "$runpath_var_F77" || \
23403 test "X$hardcode_automatic_F77" = "Xyes" ; then
23405 # We can hardcode non-existant directories.
23406 if test "$hardcode_direct_F77" != no &&
23407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23408 # have to relink, otherwise we might link with an installed library
23409 # when we should be linking with a yet-to-be-installed one
23410 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23411 test "$hardcode_minus_L_F77" != no; then
23412 # Linking always hardcodes the temporary library directory.
23413 hardcode_action_F77=relink
23415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23416 hardcode_action_F77=immediate
23419 # We cannot hardcode anything, or else we can only hardcode existing
23421 hardcode_action_F77=unsupported
23423 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23424 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23426 if test "$hardcode_action_F77" = relink; then
23427 # Fast installation is not supported
23428 enable_fast_install=no
23429 elif test "$shlibpath_overrides_runpath" = yes ||
23430 test "$enable_shared" = no; then
23431 # Fast installation is not necessary
23432 enable_fast_install=needless
23436 # The else clause should only fire when bootstrapping the
23437 # libtool distribution, otherwise you forgot to ship ltmain.sh
23438 # with your package, and you will get complaints that there are
23439 # no rules to generate ltmain.sh.
23440 if test -f "$ltmain"; then
23441 # See if we are running on zsh, and set the options which allow our commands through
23442 # without removal of \ escapes.
23443 if test -n "${ZSH_VERSION+set}" ; then
23444 setopt NO_GLOB_SUBST
23446 # Now quote all the things that may contain metacharacters while being
23447 # careful not to overquote the AC_SUBSTed values. We take copies of the
23448 # variables and quote the copies for generation of the libtool script.
23449 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23453 deplibs_check_method reload_flag reload_cmds need_locks \
23454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23455 lt_cv_sys_global_symbol_to_c_name_address \
23456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23457 old_postinstall_cmds old_postuninstall_cmds \
23461 lt_prog_compiler_wl_F77 \
23462 lt_prog_compiler_pic_F77 \
23463 lt_prog_compiler_static_F77 \
23464 lt_prog_compiler_no_builtin_flag_F77 \
23465 export_dynamic_flag_spec_F77 \
23466 thread_safe_flag_spec_F77 \
23467 whole_archive_flag_spec_F77 \
23468 enable_shared_with_static_runtimes_F77 \
23469 old_archive_cmds_F77 \
23470 old_archive_from_new_cmds_F77 \
23471 predep_objects_F77 \
23472 postdep_objects_F77 \
23475 compiler_lib_search_path_F77 \
23477 archive_expsym_cmds_F77 \
23478 postinstall_cmds_F77 \
23479 postuninstall_cmds_F77 \
23480 old_archive_from_expsyms_cmds_F77 \
23481 allow_undefined_flag_F77 \
23482 no_undefined_flag_F77 \
23483 export_symbols_cmds_F77 \
23484 hardcode_libdir_flag_spec_F77 \
23485 hardcode_libdir_flag_spec_ld_F77 \
23486 hardcode_libdir_separator_F77 \
23487 hardcode_automatic_F77 \
23489 module_expsym_cmds_F77 \
23490 lt_cv_prog_compiler_c_o_F77 \
23491 exclude_expsyms_F77 \
23492 include_expsyms_F77; do
23495 old_archive_cmds_F77 | \
23496 old_archive_from_new_cmds_F77 | \
23497 archive_cmds_F77 | \
23498 archive_expsym_cmds_F77 | \
23499 module_cmds_F77 | \
23500 module_expsym_cmds_F77 | \
23501 old_archive_from_expsyms_cmds_F77 | \
23502 export_symbols_cmds_F77 | \
23503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23504 postinstall_cmds | postuninstall_cmds | \
23505 old_postinstall_cmds | old_postuninstall_cmds | \
23506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23507 # Double-quote double-evaled strings.
23508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23517 *'\$0 --fallback-echo"')
23518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23524 cat <<__EOF__ >> "$cfgfile"
23525 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23527 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23529 # Shell to use when invoking shell scripts.
23532 # Whether or not to build shared libraries.
23533 build_libtool_libs=$enable_shared
23535 # Whether or not to build static libraries.
23536 build_old_libs=$enable_static
23538 # Whether or not to add -lc for building shared libraries.
23539 build_libtool_need_lc=$archive_cmds_need_lc_F77
23541 # Whether or not to disallow shared libs when runtime libs are static
23542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23544 # Whether or not to optimize for fast installation.
23545 fast_install=$enable_fast_install
23548 host_alias=$host_alias
23552 # The build system.
23553 build_alias=$build_alias
23557 # An echo program that does not interpret backslashes.
23562 AR_FLAGS=$lt_AR_FLAGS
23567 # LTCC compiler flags.
23568 LTCFLAGS=$lt_LTCFLAGS
23570 # A language-specific compiler.
23571 CC=$lt_compiler_F77
23573 # Is the compiler the GNU C compiler?
23579 # The linker used to build libraries.
23582 # Whether we need hard or soft links.
23585 # A BSD-compatible nm program.
23588 # A symbol stripping program
23591 # Used to examine libraries when file_magic_cmd begins "file"
23592 MAGIC_CMD=$MAGIC_CMD
23594 # Used on cygwin: DLL creation program.
23597 # Used on cygwin: object dumper.
23600 # Used on cygwin: assembler.
23603 # The name of the directory that contains temporary libtool files.
23606 # How to create reloadable object files.
23607 reload_flag=$lt_reload_flag
23608 reload_cmds=$lt_reload_cmds
23610 # How to pass a linker flag through the compiler.
23611 wl=$lt_lt_prog_compiler_wl_F77
23613 # Object file suffix (normally "o").
23614 objext="$ac_objext"
23616 # Old archive suffix (normally "a").
23619 # Shared library suffix (normally ".so").
23620 shrext_cmds='$shrext_cmds'
23622 # Executable file suffix (normally "").
23625 # Additional compiler flags for building library objects.
23626 pic_flag=$lt_lt_prog_compiler_pic_F77
23629 # What is the maximum length of a command?
23630 max_cmd_len=$lt_cv_sys_max_cmd_len
23632 # Does compiler simultaneously support -c and -o options?
23633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23635 # Must we lock files when doing compilation?
23636 need_locks=$lt_need_locks
23638 # Do we need the lib prefix for modules?
23639 need_lib_prefix=$need_lib_prefix
23641 # Do we need a version for libraries?
23642 need_version=$need_version
23644 # Whether dlopen is supported.
23645 dlopen_support=$enable_dlopen
23647 # Whether dlopen of programs is supported.
23648 dlopen_self=$enable_dlopen_self
23650 # Whether dlopen of statically linked programs is supported.
23651 dlopen_self_static=$enable_dlopen_self_static
23653 # Compiler flag to prevent dynamic linking.
23654 link_static_flag=$lt_lt_prog_compiler_static_F77
23656 # Compiler flag to turn off builtin functions.
23657 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23659 # Compiler flag to allow reflexive dlopens.
23660 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23662 # Compiler flag to generate shared objects directly from archives.
23663 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23665 # Compiler flag to generate thread-safe objects.
23666 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23668 # Library versioning type.
23669 version_type=$version_type
23671 # Format of library name prefix.
23672 libname_spec=$lt_libname_spec
23674 # List of archive names. First name is the real one, the rest are links.
23675 # The last name is the one that the linker finds with -lNAME.
23676 library_names_spec=$lt_library_names_spec
23678 # The coded name of the library, if different from the real name.
23679 soname_spec=$lt_soname_spec
23681 # Commands used to build and install an old-style archive.
23683 old_archive_cmds=$lt_old_archive_cmds_F77
23684 old_postinstall_cmds=$lt_old_postinstall_cmds
23685 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23687 # Create an old-style archive from a shared archive.
23688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23690 # Create a temporary old-style archive to link instead of a shared archive.
23691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23693 # Commands used to build and install a shared archive.
23694 archive_cmds=$lt_archive_cmds_F77
23695 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23696 postinstall_cmds=$lt_postinstall_cmds
23697 postuninstall_cmds=$lt_postuninstall_cmds
23699 # Commands used to build a loadable module (assumed same as above if empty)
23700 module_cmds=$lt_module_cmds_F77
23701 module_expsym_cmds=$lt_module_expsym_cmds_F77
23703 # Commands to strip libraries.
23704 old_striplib=$lt_old_striplib
23705 striplib=$lt_striplib
23707 # Dependencies to place before the objects being linked to create a
23709 predep_objects=$lt_predep_objects_F77
23711 # Dependencies to place after the objects being linked to create a
23713 postdep_objects=$lt_postdep_objects_F77
23715 # Dependencies to place before the objects being linked to create a
23717 predeps=$lt_predeps_F77
23719 # Dependencies to place after the objects being linked to create a
23721 postdeps=$lt_postdeps_F77
23723 # The library search path used internally by the compiler when linking
23724 # a shared library.
23725 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23727 # Method to check whether dependent libraries are shared objects.
23728 deplibs_check_method=$lt_deplibs_check_method
23730 # Command to use when deplibs_check_method == file_magic.
23731 file_magic_cmd=$lt_file_magic_cmd
23733 # Flag that allows shared libraries with undefined symbols to be built.
23734 allow_undefined_flag=$lt_allow_undefined_flag_F77
23736 # Flag that forces no undefined symbols.
23737 no_undefined_flag=$lt_no_undefined_flag_F77
23739 # Commands used to finish a libtool library installation in a directory.
23740 finish_cmds=$lt_finish_cmds
23742 # Same as above, but a single script fragment to be evaled but not shown.
23743 finish_eval=$lt_finish_eval
23745 # Take the output of nm and produce a listing of raw symbols and C names.
23746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23748 # Transform the output of nm in a proper C declaration
23749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23751 # Transform the output of nm in a C name address pair
23752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23754 # This is the shared library runtime path variable.
23755 runpath_var=$runpath_var
23757 # This is the shared library path variable.
23758 shlibpath_var=$shlibpath_var
23760 # Is shlibpath searched before the hard-coded library search path?
23761 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23763 # How to hardcode a shared library path into an executable.
23764 hardcode_action=$hardcode_action_F77
23766 # Whether we should hardcode library paths into libraries.
23767 hardcode_into_libs=$hardcode_into_libs
23769 # Flag to hardcode \$libdir into a binary during linking.
23770 # This must work even if \$libdir does not exist.
23771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23773 # If ld is used when linking, flag to hardcode \$libdir into
23774 # a binary during linking. This must work even if \$libdir does
23776 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23778 # Whether we need a single -rpath flag with a separated argument.
23779 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23781 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23782 # resulting binary.
23783 hardcode_direct=$hardcode_direct_F77
23785 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23786 # resulting binary.
23787 hardcode_minus_L=$hardcode_minus_L_F77
23789 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23790 # the resulting binary.
23791 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23793 # Set to yes if building a shared library automatically hardcodes DIR into the library
23794 # and all subsequent libraries and executables linked against it.
23795 hardcode_automatic=$hardcode_automatic_F77
23797 # Variables whose values should be saved in libtool wrapper scripts and
23798 # restored at relink time.
23799 variables_saved_for_relink="$variables_saved_for_relink"
23801 # Whether libtool must link a program against all its dependency libraries.
23802 link_all_deplibs=$link_all_deplibs_F77
23804 # Compile-time system search path for libraries
23805 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23807 # Run-time system search path for libraries
23808 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23810 # Fix the shell variable \$srcfile for the compiler.
23811 fix_srcfile_path="$fix_srcfile_path_F77"
23813 # Set to yes if exported symbols are required.
23814 always_export_symbols=$always_export_symbols_F77
23816 # The commands to list exported symbols.
23817 export_symbols_cmds=$lt_export_symbols_cmds_F77
23819 # The commands to extract the exported symbol list from a shared archive.
23820 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23822 # Symbols that should not be listed in the preloaded symbols.
23823 exclude_expsyms=$lt_exclude_expsyms_F77
23825 # Symbols that must always be exported.
23826 include_expsyms=$lt_include_expsyms_F77
23828 # ### END LIBTOOL TAG CONFIG: $tagname
23834 # If there is no Makefile yet, we rely on a make rule to execute
23835 # `config.status --recheck' to rerun these tests and create the
23836 # libtool script then.
23837 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23838 if test -f "$ltmain_in"; then
23839 test -f Makefile && make "$ltmain"
23845 ac_cpp='$CPP $CPPFLAGS'
23846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23858 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23860 ac_cpp='$CPP $CPPFLAGS'
23861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23866 # Source file extension for Java test sources.
23869 # Object file extension for compiled Java test sources.
23873 # Code to be used in simple compile tests
23874 lt_simple_compile_test_code="class foo {}\n"
23876 # Code to be used in simple link tests
23877 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23879 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23881 # If no C compiler was specified, use CC.
23884 # If no C compiler flags were specified, use CFLAGS.
23885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23887 # Allow CC to be a program name with arguments.
23891 # save warnings/boilerplate of simple test code
23892 ac_outfile=conftest.$ac_objext
23893 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23895 _lt_compiler_boilerplate=`cat conftest.err`
23898 ac_outfile=conftest.$ac_objext
23899 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23901 _lt_linker_boilerplate=`cat conftest.err`
23905 # Allow CC to be a program name with arguments.
23910 for cc_temp in $compiler""; do
23912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23921 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23922 archive_cmds_need_lc_GCJ=no
23924 old_archive_cmds_GCJ=$old_archive_cmds
23927 lt_prog_compiler_no_builtin_flag_GCJ=
23929 if test "$GCC" = yes; then
23930 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23933 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23934 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23935 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 lt_cv_prog_compiler_rtti_exceptions=no
23939 ac_outfile=conftest.$ac_objext
23940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23941 lt_compiler_flag="-fno-rtti -fno-exceptions"
23942 # Insert the option either (1) after the last *FLAGS variable, or
23943 # (2) before a word containing "conftest.", or (3) at the end.
23944 # Note that $ac_compile itself does not contain backslashes and begins
23945 # with a dollar sign (not a hyphen), so the echo should work correctly.
23946 # The option is referenced via a variable to avoid confusing sed.
23947 lt_compile=`echo "$ac_compile" | $SED \
23948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23950 -e 's:$: $lt_compiler_flag:'`
23951 (eval echo "\"\$as_me:23951: $lt_compile\"" >&5)
23952 (eval "$lt_compile" 2>conftest.err)
23954 cat conftest.err >&5
23955 echo "$as_me:23955: \$? = $ac_status" >&5
23956 if (exit $ac_status) && test -s "$ac_outfile"; then
23957 # The compiler can only warn and ignore the option if not recognized
23958 # So say no if there are warnings other than the usual output.
23959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23962 lt_cv_prog_compiler_rtti_exceptions=yes
23968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23969 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23971 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23972 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23979 lt_prog_compiler_wl_GCJ=
23980 lt_prog_compiler_pic_GCJ=
23981 lt_prog_compiler_static_GCJ=
23983 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23984 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23986 if test "$GCC" = yes; then
23987 lt_prog_compiler_wl_GCJ='-Wl,'
23988 lt_prog_compiler_static_GCJ='-static'
23992 # All AIX code is PIC.
23993 if test "$host_cpu" = ia64; then
23994 # AIX 5 now supports IA64 processor
23995 lt_prog_compiler_static_GCJ='-Bstatic'
24000 # FIXME: we need at least 68020 code to build shared libraries, but
24001 # adding the `-m68020' flag to GCC prevents building anything better,
24003 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24006 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24007 # PIC is the default for these OSes.
24010 mingw* | pw32* | os2*)
24011 # This hack is so that the source file can tell whether it is being
24012 # built for inclusion in a dll (and should export symbols for example).
24013 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24016 darwin* | rhapsody*)
24017 # PIC is the default on this platform
24018 # Common symbols not allowed in MH_DYLIB files
24019 lt_prog_compiler_pic_GCJ='-fno-common'
24023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24024 # Instead, we relocate shared libraries at runtime.
24028 # Just because we use GCC doesn't mean we suddenly get shared libraries
24029 # on systems that don't support them.
24030 lt_prog_compiler_can_build_shared_GCJ=no
24035 if test -d /usr/nec; then
24036 lt_prog_compiler_pic_GCJ=-Kconform_pic
24041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24042 # not for PA HP-UX.
24048 lt_prog_compiler_pic_GCJ='-fPIC'
24054 lt_prog_compiler_pic_GCJ='-fPIC'
24058 # PORTME Check for flag to pass linker flags through the system compiler.
24061 lt_prog_compiler_wl_GCJ='-Wl,'
24062 if test "$host_cpu" = ia64; then
24063 # AIX 5 now supports IA64 processor
24064 lt_prog_compiler_static_GCJ='-Bstatic'
24066 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24070 # PIC is the default on this platform
24071 # Common symbols not allowed in MH_DYLIB files
24072 case $cc_basename in
24074 lt_prog_compiler_pic_GCJ='-qnocommon'
24075 lt_prog_compiler_wl_GCJ='-Wl,'
24080 mingw* | pw32* | os2*)
24081 # This hack is so that the source file can tell whether it is being
24082 # built for inclusion in a dll (and should export symbols for example).
24083 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24086 hpux9* | hpux10* | hpux11*)
24087 lt_prog_compiler_wl_GCJ='-Wl,'
24088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24089 # not for PA HP-UX.
24095 lt_prog_compiler_pic_GCJ='+Z'
24098 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24099 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24102 irix5* | irix6* | nonstopux*)
24103 lt_prog_compiler_wl_GCJ='-Wl,'
24104 # PIC (with -KPIC) is the default.
24105 lt_prog_compiler_static_GCJ='-non_shared'
24109 lt_prog_compiler_pic_GCJ='-KPIC'
24110 lt_prog_compiler_static_GCJ='-Bstatic'
24114 case $cc_basename in
24116 lt_prog_compiler_wl_GCJ='-Wl,'
24117 lt_prog_compiler_pic_GCJ='-KPIC'
24118 lt_prog_compiler_static_GCJ='-static'
24120 pgcc* | pgf77* | pgf90* | pgf95*)
24121 # Portland Group compilers (*not* the Pentium gcc compiler,
24122 # which looks to be a dead project)
24123 lt_prog_compiler_wl_GCJ='-Wl,'
24124 lt_prog_compiler_pic_GCJ='-fpic'
24125 lt_prog_compiler_static_GCJ='-Bstatic'
24128 lt_prog_compiler_wl_GCJ='-Wl,'
24129 # All Alpha code is PIC.
24130 lt_prog_compiler_static_GCJ='-non_shared'
24135 osf3* | osf4* | osf5*)
24136 lt_prog_compiler_wl_GCJ='-Wl,'
24137 # All OSF/1 code is PIC.
24138 lt_prog_compiler_static_GCJ='-non_shared'
24142 lt_prog_compiler_pic_GCJ='-KPIC'
24143 lt_prog_compiler_static_GCJ='-Bstatic'
24144 case $cc_basename in
24145 f77* | f90* | f95*)
24146 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24148 lt_prog_compiler_wl_GCJ='-Wl,';;
24153 lt_prog_compiler_wl_GCJ='-Qoption ld '
24154 lt_prog_compiler_pic_GCJ='-PIC'
24155 lt_prog_compiler_static_GCJ='-Bstatic'
24158 sysv4 | sysv4.2uw2* | sysv4.3*)
24159 lt_prog_compiler_wl_GCJ='-Wl,'
24160 lt_prog_compiler_pic_GCJ='-KPIC'
24161 lt_prog_compiler_static_GCJ='-Bstatic'
24165 if test -d /usr/nec ;then
24166 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24167 lt_prog_compiler_static_GCJ='-Bstatic'
24171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24172 lt_prog_compiler_wl_GCJ='-Wl,'
24173 lt_prog_compiler_pic_GCJ='-KPIC'
24174 lt_prog_compiler_static_GCJ='-Bstatic'
24178 lt_prog_compiler_wl_GCJ='-Wl,'
24179 lt_prog_compiler_can_build_shared_GCJ=no
24183 lt_prog_compiler_pic_GCJ='-pic'
24184 lt_prog_compiler_static_GCJ='-Bstatic'
24188 lt_prog_compiler_can_build_shared_GCJ=no
24193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24194 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24197 # Check to make sure the PIC flag actually works.
24199 if test -n "$lt_prog_compiler_pic_GCJ"; then
24201 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24202 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24203 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24204 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 lt_prog_compiler_pic_works_GCJ=no
24207 ac_outfile=conftest.$ac_objext
24208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24209 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24210 # Insert the option either (1) after the last *FLAGS variable, or
24211 # (2) before a word containing "conftest.", or (3) at the end.
24212 # Note that $ac_compile itself does not contain backslashes and begins
24213 # with a dollar sign (not a hyphen), so the echo should work correctly.
24214 # The option is referenced via a variable to avoid confusing sed.
24215 lt_compile=`echo "$ac_compile" | $SED \
24216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24218 -e 's:$: $lt_compiler_flag:'`
24219 (eval echo "\"\$as_me:24219: $lt_compile\"" >&5)
24220 (eval "$lt_compile" 2>conftest.err)
24222 cat conftest.err >&5
24223 echo "$as_me:24223: \$? = $ac_status" >&5
24224 if (exit $ac_status) && test -s "$ac_outfile"; then
24225 # The compiler can only warn and ignore the option if not recognized
24226 # So say no if there are warnings other than the usual output.
24227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24230 lt_prog_compiler_pic_works_GCJ=yes
24236 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24237 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24239 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24240 case $lt_prog_compiler_pic_GCJ in
24242 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24245 lt_prog_compiler_pic_GCJ=
24246 lt_prog_compiler_can_build_shared_GCJ=no
24251 # For platforms which do not support PIC, -DPIC is meaningless:
24253 lt_prog_compiler_pic_GCJ=
24256 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24261 # Check to make sure the static flag actually works.
24263 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24264 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24265 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24266 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24269 lt_prog_compiler_static_works_GCJ=no
24270 save_LDFLAGS="$LDFLAGS"
24271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24272 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24274 # The linker can only warn and ignore the option if not recognized
24275 # So say no if there are warnings
24276 if test -s conftest.err; then
24277 # Append any errors to the config.log.
24278 cat conftest.err 1>&5
24279 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24281 if diff conftest.exp conftest.er2 >/dev/null; then
24282 lt_prog_compiler_static_works_GCJ=yes
24285 lt_prog_compiler_static_works_GCJ=yes
24289 LDFLAGS="$save_LDFLAGS"
24292 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24293 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24295 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24298 lt_prog_compiler_static_GCJ=
24302 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24304 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24305 echo $ECHO_N "(cached) $ECHO_C" >&6
24307 lt_cv_prog_compiler_c_o_GCJ=no
24308 $rm -r conftest 2>/dev/null
24312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24314 lt_compiler_flag="-o out/conftest2.$ac_objext"
24315 # Insert the option either (1) after the last *FLAGS variable, or
24316 # (2) before a word containing "conftest.", or (3) at the end.
24317 # Note that $ac_compile itself does not contain backslashes and begins
24318 # with a dollar sign (not a hyphen), so the echo should work correctly.
24319 lt_compile=`echo "$ac_compile" | $SED \
24320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24322 -e 's:$: $lt_compiler_flag:'`
24323 (eval echo "\"\$as_me:24323: $lt_compile\"" >&5)
24324 (eval "$lt_compile" 2>out/conftest.err)
24326 cat out/conftest.err >&5
24327 echo "$as_me:24327: \$? = $ac_status" >&5
24328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24330 # The compiler can only warn and ignore the option if not recognized
24331 # So say no if there are warnings
24332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24335 lt_cv_prog_compiler_c_o_GCJ=yes
24340 # SGI C++ compiler will create directory out/ii_files/ for
24341 # template instantiation
24342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24343 $rm out/* && rmdir out
24349 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24353 hard_links="nottested"
24354 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24355 # do not overwrite the value of need_locks provided by the user
24356 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24357 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24362 ln conftest.a conftest.b 2>&5 || hard_links=no
24363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24364 { echo "$as_me:$LINENO: result: $hard_links" >&5
24365 echo "${ECHO_T}$hard_links" >&6; }
24366 if test "$hard_links" = no; then
24367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24368 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24375 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24376 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24379 allow_undefined_flag_GCJ=
24380 enable_shared_with_static_runtimes_GCJ=no
24382 archive_expsym_cmds_GCJ=
24383 old_archive_From_new_cmds_GCJ=
24384 old_archive_from_expsyms_cmds_GCJ=
24385 export_dynamic_flag_spec_GCJ=
24386 whole_archive_flag_spec_GCJ=
24387 thread_safe_flag_spec_GCJ=
24388 hardcode_libdir_flag_spec_GCJ=
24389 hardcode_libdir_flag_spec_ld_GCJ=
24390 hardcode_libdir_separator_GCJ=
24391 hardcode_direct_GCJ=no
24392 hardcode_minus_L_GCJ=no
24393 hardcode_shlibpath_var_GCJ=unsupported
24394 link_all_deplibs_GCJ=unknown
24395 hardcode_automatic_GCJ=no
24397 module_expsym_cmds_GCJ=
24398 always_export_symbols_GCJ=no
24399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24400 # include_expsyms should be a list of space-separated symbols to be *always*
24401 # included in the symbol list
24402 include_expsyms_GCJ=
24403 # exclude_expsyms can be an extended regexp of symbols to exclude
24404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24406 # as well as any symbol that contains `d'.
24407 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24409 # platforms (ab)use it in PIC code, but their linkers get confused if
24410 # the symbol is explicitly referenced. Since portable code cannot
24411 # rely on this symbol name, it's probably fine to never include it in
24412 # preloaded symbol tables.
24413 extract_expsyms_cmds=
24414 # Just being paranoid about ensuring that cc_basename is set.
24415 for cc_temp in $compiler""; do
24417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24423 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24426 cygwin* | mingw* | pw32*)
24427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24428 # When not using gcc, we currently assume that we are using
24429 # Microsoft Visual C++.
24430 if test "$GCC" != yes; then
24435 # we just hope/assume this is gcc and not c89 (= MSVC++)
24444 if test "$with_gnu_ld" = yes; then
24445 # If archive_cmds runs LD, not CC, wlarc should be empty
24448 # Set some defaults for GNU ld with shared library support. These
24449 # are reset later if shared libraries are not supported. Putting them
24450 # here allows them to be overridden if necessary.
24451 runpath_var=LD_RUN_PATH
24452 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24453 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24454 # ancient GNU ld didn't support --whole-archive et. al.
24455 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24456 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24458 whole_archive_flag_spec_GCJ=
24460 supports_anon_versioning=no
24461 case `$LD -v 2>/dev/null` in
24462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24465 *\ 2.11.*) ;; # other 2.11 versions
24466 *) supports_anon_versioning=yes ;;
24469 # See if GNU ld supports shared libraries.
24471 aix3* | aix4* | aix5*)
24472 # On AIX/PPC, the GNU linker is very broken
24473 if test "$host_cpu" != ia64; then
24477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24478 *** to be unable to reliably create shared libraries on AIX.
24479 *** Therefore, libtool is disabling shared libraries support. If you
24480 *** really care for shared libraries, you may want to modify your PATH
24481 *** so that a non-GNU linker is found, and then restart.
24488 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)'
24489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24490 hardcode_minus_L_GCJ=yes
24492 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24493 # that the semantics of dynamic libraries on AmigaOS, at least up
24494 # to version 4, is to share data among multiple programs linked
24495 # with the same dynamic library. Since this doesn't match the
24496 # behavior of shared libraries on other platforms, we can't use
24502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24503 allow_undefined_flag_GCJ=unsupported
24504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24505 # support --undefined. This deserves some investigation. FIXME
24506 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24512 cygwin* | mingw* | pw32*)
24513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24514 # as there is no search path for DLLs.
24515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24516 allow_undefined_flag_GCJ=unsupported
24517 always_export_symbols_GCJ=no
24518 enable_shared_with_static_runtimes_GCJ=yes
24519 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24523 # If the export-symbols file already is a .def file (1st line
24524 # is EXPORTS), use it as is; otherwise, prepend...
24525 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24526 cp $export_symbols $output_objdir/$soname.def;
24528 echo EXPORTS > $output_objdir/$soname.def;
24529 cat $export_symbols >> $output_objdir/$soname.def;
24531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24538 hardcode_direct_GCJ=no
24539 hardcode_shlibpath_var_GCJ=no
24540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24541 export_dynamic_flag_spec_GCJ='${wl}-E'
24542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24543 # Instead, shared libraries are loaded at an image base (0x10000000 by
24544 # default) and relocated if they conflict, which is a slow very memory
24545 # consuming and fragmenting process. To avoid this, we pick a random,
24546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24548 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'
24549 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'
24553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24555 case $cc_basename,$host_cpu in
24556 pgcc*) # Portland Group C compiler
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'
24560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24561 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'
24562 tmp_addflag=' $pic_flag -Mnomain' ;;
24563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24564 tmp_addflag=' -i_dynamic' ;;
24565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24566 tmp_addflag=' -i_dynamic -nofor_main' ;;
24567 ifc* | ifort*) # Intel Fortran compiler
24568 tmp_addflag=' -nofor_main' ;;
24570 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24572 if test $supports_anon_versioning = yes; then
24573 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24575 $echo "local: *; };" >> $output_objdir/$libname.ver~
24576 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24599 *** create shared libraries on Solaris systems. Therefore, libtool
24600 *** is disabling shared libraries support. We urge you to upgrade GNU
24601 *** binutils to release 2.9.1 or newer. Another option is to modify
24602 *** your PATH or compiler configuration so that the native linker is
24603 *** used, and then restart.
24606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24615 case `$LD -v 2>&1` in
24616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24620 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24621 *** reliably create shared libraries on SCO systems. Therefore, libtool
24622 *** is disabling shared libraries support. We urge you to upgrade GNU
24623 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24624 *** your PATH or compiler configuration so that the native linker is
24625 *** used, and then restart.
24630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24631 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24632 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24633 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24642 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24644 hardcode_direct_GCJ=yes
24645 hardcode_shlibpath_var_GCJ=no
24649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24658 if test "$ld_shlibs_GCJ" = no; then
24660 hardcode_libdir_flag_spec_GCJ=
24661 export_dynamic_flag_spec_GCJ=
24662 whole_archive_flag_spec_GCJ=
24665 # PORTME fill in a description of your system's linker (not GNU ld)
24668 allow_undefined_flag_GCJ=unsupported
24669 always_export_symbols_GCJ=yes
24670 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'
24671 # Note: this linker hardcodes the directories in LIBPATH if there
24672 # are no directories specified by -L.
24673 hardcode_minus_L_GCJ=yes
24674 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24675 # Neither direct hardcoding nor static linking is supported with a
24677 hardcode_direct_GCJ=unsupported
24682 if test "$host_cpu" = ia64; then
24683 # On IA64, the linker does run time linking by default, so we don't
24684 # have to do anything special.
24685 aix_use_runtimelinking=no
24686 exp_sym_flag='-Bexport'
24689 # If we're using GNU nm, then we don't want the "-C" option.
24690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24692 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'
24694 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'
24696 aix_use_runtimelinking=no
24698 # Test if we are trying to use run time linking or normal
24699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24700 # need to do runtime linking.
24701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24702 for ld_flag in $LDFLAGS; do
24703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24704 aix_use_runtimelinking=yes
24711 exp_sym_flag='-bexport'
24712 no_entry_flag='-bnoentry'
24715 # When large executables or shared objects are built, AIX ld can
24716 # have problems creating the table of contents. If linking a library
24717 # or program results in "error TOC overflow" add -mminimal-toc to
24718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24721 archive_cmds_GCJ=''
24722 hardcode_direct_GCJ=yes
24723 hardcode_libdir_separator_GCJ=':'
24724 link_all_deplibs_GCJ=yes
24726 if test "$GCC" = yes; then
24727 case $host_os in aix4.[012]|aix4.[012].*)
24728 # We only want to do this on AIX 4.2 and lower, the check
24729 # below for broken collect2 doesn't work under 4.3+
24730 collect2name=`${CC} -print-prog-name=collect2`
24731 if test -f "$collect2name" && \
24732 strings "$collect2name" | grep resolve_lib_name >/dev/null
24734 # We have reworked collect2
24735 hardcode_direct_GCJ=yes
24737 # We have old collect2
24738 hardcode_direct_GCJ=unsupported
24739 # It fails to find uninstalled libraries when the uninstalled
24740 # path is not listed in the libpath. Setting hardcode_minus_L
24741 # to unsupported forces relinking
24742 hardcode_minus_L_GCJ=yes
24743 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24744 hardcode_libdir_separator_GCJ=
24748 shared_flag='-shared'
24749 if test "$aix_use_runtimelinking" = yes; then
24750 shared_flag="$shared_flag "'${wl}-G'
24754 if test "$host_cpu" = ia64; then
24755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24756 # chokes on -Wl,-G. The following line is correct:
24759 if test "$aix_use_runtimelinking" = yes; then
24760 shared_flag='${wl}-G'
24762 shared_flag='${wl}-bM:SRE'
24767 # It seems that -bexpall does not export symbols beginning with
24768 # underscore (_), so it is better to generate a list of symbols to export.
24769 always_export_symbols_GCJ=yes
24770 if test "$aix_use_runtimelinking" = yes; then
24771 # Warning - without using the other runtime loading flags (-brtl),
24772 # -berok will link without error, but may produce a broken library.
24773 allow_undefined_flag_GCJ='-berok'
24774 # Determine the default libpath from the value encoded in an empty executable.
24775 cat >conftest.$ac_ext <<_ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24790 rm -f conftest.$ac_objext conftest$ac_exeext
24791 if { (ac_try="$ac_link"
24792 case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_link") 2>conftest.er1
24799 grep -v '^ *+' conftest.er1 >conftest.err
24801 cat conftest.err >&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); } &&
24804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24805 { (case "(($ac_try" in
24806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807 *) ac_try_echo=$ac_try;;
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810 (eval "$ac_try") 2>&5
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; } &&
24814 { ac_try='test -s conftest$ac_exeext'
24815 { (case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820 (eval "$ac_try") 2>&5
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); }; }; then
24825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24827 # Check for a 64-bit object if we didn't find anything.
24828 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; }
24831 echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24837 rm -f core conftest.err conftest.$ac_objext \
24838 conftest$ac_exeext conftest.$ac_ext
24839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24841 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24842 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"
24844 if test "$host_cpu" = ia64; then
24845 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24846 allow_undefined_flag_GCJ="-z nodefs"
24847 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"
24849 # Determine the default libpath from the value encoded in an empty executable.
24850 cat >conftest.$ac_ext <<_ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h. */
24865 rm -f conftest.$ac_objext conftest$ac_exeext
24866 if { (ac_try="$ac_link"
24867 case "(($ac_try" in
24868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869 *) ac_try_echo=$ac_try;;
24871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24872 (eval "$ac_link") 2>conftest.er1
24874 grep -v '^ *+' conftest.er1 >conftest.err
24876 cat conftest.err >&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } &&
24879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24880 { (case "(($ac_try" in
24881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885 (eval "$ac_try") 2>&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; } &&
24889 { ac_try='test -s conftest$ac_exeext'
24890 { (case "(($ac_try" in
24891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895 (eval "$ac_try") 2>&5
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
24900 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24902 # Check for a 64-bit object if we didn't find anything.
24903 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; }
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24912 rm -f core conftest.err conftest.$ac_objext \
24913 conftest$ac_exeext conftest.$ac_ext
24914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24916 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24917 # Warning - without using the other run time loading flags,
24918 # -berok will link without error, but may produce a broken library.
24919 no_undefined_flag_GCJ=' ${wl}-bernotok'
24920 allow_undefined_flag_GCJ=' ${wl}-berok'
24921 # Exported symbols can be pulled into shared objects from archives
24922 whole_archive_flag_spec_GCJ='$convenience'
24923 archive_cmds_need_lc_GCJ=yes
24924 # This is similar to how AIX traditionally builds its shared libraries.
24925 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'
24931 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)'
24932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24933 hardcode_minus_L_GCJ=yes
24934 # see comment about different semantics on the GNU ld section
24939 export_dynamic_flag_spec_GCJ=-rdynamic
24942 cygwin* | mingw* | pw32*)
24943 # When not using gcc, we currently assume that we are using
24944 # Microsoft Visual C++.
24945 # hardcode_libdir_flag_spec is actually meaningless, as there is
24946 # no search path for DLLs.
24947 hardcode_libdir_flag_spec_GCJ=' '
24948 allow_undefined_flag_GCJ=unsupported
24949 # Tell ltmain to make .lib files, not .a files.
24951 # Tell ltmain to make .dll files, not .so files.
24953 # FIXME: Setting linknames here is a bad hack.
24954 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24955 # The linker will automatically build a .lib file if we build a DLL.
24956 old_archive_From_new_cmds_GCJ='true'
24957 # FIXME: Should let the user specify the lib program.
24958 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24959 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24960 enable_shared_with_static_runtimes_GCJ=yes
24963 darwin* | rhapsody*)
24965 rhapsody* | darwin1.[012])
24966 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24969 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24970 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24972 case ${MACOSX_DEPLOYMENT_TARGET} in
24974 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24977 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24983 archive_cmds_need_lc_GCJ=no
24984 hardcode_direct_GCJ=no
24985 hardcode_automatic_GCJ=yes
24986 hardcode_shlibpath_var_GCJ=unsupported
24987 whole_archive_flag_spec_GCJ=''
24988 link_all_deplibs_GCJ=yes
24989 if test "$GCC" = yes ; then
24990 output_verbose_link_cmd='echo'
24991 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24992 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24993 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24994 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}'
24995 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}'
24997 case $cc_basename in
24999 output_verbose_link_cmd='echo'
25000 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25001 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25003 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}'
25004 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}'
25014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25016 hardcode_shlibpath_var_GCJ=no
25023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25024 # support. Future versions do this automatically, but an explicit c++rt0.o
25025 # does not break anything, and helps significantly (at the cost of a little
25028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25030 hardcode_direct_GCJ=yes
25031 hardcode_shlibpath_var_GCJ=no
25034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25036 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25037 hardcode_direct_GCJ=yes
25038 hardcode_minus_L_GCJ=yes
25039 hardcode_shlibpath_var_GCJ=no
25042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25043 freebsd* | kfreebsd*-gnu | dragonfly*)
25044 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25046 hardcode_direct_GCJ=yes
25047 hardcode_shlibpath_var_GCJ=no
25051 if test "$GCC" = yes; then
25052 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'
25054 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'
25056 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25057 hardcode_libdir_separator_GCJ=:
25058 hardcode_direct_GCJ=yes
25060 # hardcode_minus_L: Not really in the search PATH,
25061 # but as the default location of the library.
25062 hardcode_minus_L_GCJ=yes
25063 export_dynamic_flag_spec_GCJ='${wl}-E'
25067 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25068 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25070 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25072 if test "$with_gnu_ld" = no; then
25073 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25074 hardcode_libdir_separator_GCJ=:
25076 hardcode_direct_GCJ=yes
25077 export_dynamic_flag_spec_GCJ='${wl}-E'
25079 # hardcode_minus_L: Not really in the search PATH,
25080 # but as the default location of the library.
25081 hardcode_minus_L_GCJ=yes
25086 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25089 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25092 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25095 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25101 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25104 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25107 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25111 if test "$with_gnu_ld" = no; then
25112 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25113 hardcode_libdir_separator_GCJ=:
25117 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25118 hardcode_direct_GCJ=no
25119 hardcode_shlibpath_var_GCJ=no
25122 hardcode_direct_GCJ=yes
25123 export_dynamic_flag_spec_GCJ='${wl}-E'
25125 # hardcode_minus_L: Not really in the search PATH,
25126 # but as the default location of the library.
25127 hardcode_minus_L_GCJ=yes
25133 irix5* | irix6* | nonstopux*)
25134 if test "$GCC" = yes; then
25135 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'
25137 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'
25138 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25141 hardcode_libdir_separator_GCJ=:
25142 link_all_deplibs_GCJ=yes
25146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25149 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25152 hardcode_direct_GCJ=yes
25153 hardcode_shlibpath_var_GCJ=no
25157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25158 hardcode_direct_GCJ=yes
25159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25160 hardcode_libdir_separator_GCJ=:
25161 hardcode_shlibpath_var_GCJ=no
25165 hardcode_direct_GCJ=yes
25166 hardcode_shlibpath_var_GCJ=no
25167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25168 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25169 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25171 export_dynamic_flag_spec_GCJ='${wl}-E'
25174 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25175 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25176 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25179 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25188 hardcode_minus_L_GCJ=yes
25189 allow_undefined_flag_GCJ=unsupported
25190 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'
25191 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25195 if test "$GCC" = yes; then
25196 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25197 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'
25199 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25200 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'
25202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25203 hardcode_libdir_separator_GCJ=:
25206 osf4* | osf5*) # as osf3* with the addition of -msym flag
25207 if test "$GCC" = yes; then
25208 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25209 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'
25210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25212 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25213 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'
25214 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~
25215 $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'
25217 # Both c and cxx compiler support -rpath directly
25218 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25220 hardcode_libdir_separator_GCJ=:
25224 no_undefined_flag_GCJ=' -z text'
25225 if test "$GCC" = yes; then
25227 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25228 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25229 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25232 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25233 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25234 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237 hardcode_shlibpath_var_GCJ=no
25239 solaris2.[0-5] | solaris2.[0-5].*) ;;
25241 # The compiler driver will combine linker options so we
25242 # cannot just pass the convience library names through
25243 # without $wl, iff we do not link with $LD.
25244 # Luckily, gcc supports the same syntax we need for Sun Studio.
25245 # Supported since Solaris 2.6 (maybe 2.5.1?)
25248 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25250 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' ;;
25253 link_all_deplibs_GCJ=yes
25257 if test "x$host_vendor" = xsequent; then
25258 # Use $CC to link under sequent, because it throws in some extra .o
25259 # files that make .init and .fini sections work.
25260 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25262 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25264 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25265 hardcode_direct_GCJ=yes
25266 hardcode_minus_L_GCJ=yes
25267 hardcode_shlibpath_var_GCJ=no
25271 case $host_vendor in
25273 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25274 hardcode_direct_GCJ=yes # is this really true???
25277 ## LD is ld it makes a PLAMLIB
25278 ## CC just makes a GrossModule.
25279 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25280 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25281 hardcode_direct_GCJ=no
25284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25285 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25288 runpath_var='LD_RUN_PATH'
25289 hardcode_shlibpath_var_GCJ=no
25293 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25294 hardcode_shlibpath_var_GCJ=no
25295 export_dynamic_flag_spec_GCJ='-Bexport'
25299 if test -d /usr/nec; then
25300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25301 hardcode_shlibpath_var_GCJ=no
25302 runpath_var=LD_RUN_PATH
25303 hardcode_runpath_var=yes
25308 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25309 no_undefined_flag_GCJ='${wl}-z,text'
25310 archive_cmds_need_lc_GCJ=no
25311 hardcode_shlibpath_var_GCJ=no
25312 runpath_var='LD_RUN_PATH'
25314 if test "$GCC" = yes; then
25315 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25316 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25318 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25319 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25323 sysv5* | sco3.2v5* | sco5v6*)
25324 # Note: We can NOT use -z defs as we might desire, because we do not
25325 # link with -lc, and that would cause any symbols used from libc to
25326 # always be unresolved, which means just about no library would
25327 # ever link correctly. If we're not using GNU ld we use -z text
25328 # though, which does catch some bad symbols but isn't as heavy-handed
25330 no_undefined_flag_GCJ='${wl}-z,text'
25331 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25332 archive_cmds_need_lc_GCJ=no
25333 hardcode_shlibpath_var_GCJ=no
25334 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25335 hardcode_libdir_separator_GCJ=':'
25336 link_all_deplibs_GCJ=yes
25337 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25338 runpath_var='LD_RUN_PATH'
25340 if test "$GCC" = yes; then
25341 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25342 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25344 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25345 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25350 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25351 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25352 hardcode_shlibpath_var_GCJ=no
25361 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25362 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25363 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25366 # Do we need to explicitly link libc?
25368 case "x$archive_cmds_need_lc_GCJ" in
25370 # Assume -lc should be added
25371 archive_cmds_need_lc_GCJ=yes
25373 if test "$enable_shared" = yes && test "$GCC" = yes; then
25374 case $archive_cmds_GCJ in
25376 # FIXME: we may have to deal with multi-command sequences.
25379 # Test whether the compiler implicitly links with -lc since on some
25380 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25381 # to ld, don't add -lc before -lgcc.
25382 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25383 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25388 (eval $ac_compile) 2>&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } 2>conftest.err; then
25394 libobjs=conftest.$ac_objext
25396 wl=$lt_prog_compiler_wl_GCJ
25397 pic_flag=$lt_prog_compiler_pic_GCJ
25403 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25404 allow_undefined_flag_GCJ=
25405 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25406 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }
25411 archive_cmds_need_lc_GCJ=no
25413 archive_cmds_need_lc_GCJ=yes
25415 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25417 cat conftest.err 1>&5
25420 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25421 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25428 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25429 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25430 library_names_spec=
25431 libname_spec='lib$name'
25435 postuninstall_cmds=
25439 shlibpath_overrides_runpath=unknown
25441 dynamic_linker="$host_os ld.so"
25442 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25443 if test "$GCC" = yes; then
25444 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25445 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25446 # if the path contains ";" then we assume it to be the separator
25447 # otherwise default to the standard path separator (i.e. ":") - it is
25448 # assumed that no part of a normal pathname contains ";" but that should
25449 # okay in the real world where ";" in dirpaths is itself problematic.
25450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25455 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25457 need_lib_prefix=unknown
25458 hardcode_into_libs=no
25460 # when you set need_version to no, make sure it does not cause -set_version
25461 # flags to be left without arguments
25462 need_version=unknown
25467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25468 shlibpath_var=LIBPATH
25470 # AIX 3 has no versioning support, so we append a major version to the name.
25471 soname_spec='${libname}${release}${shared_ext}$major'
25478 hardcode_into_libs=yes
25479 if test "$host_cpu" = ia64; then
25480 # AIX 5 supports IA64
25481 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25482 shlibpath_var=LD_LIBRARY_PATH
25484 # With GCC up to 2.95.x, collect2 would create an import file
25485 # for dependence libraries. The import file would start with
25486 # the line `#! .'. This would cause the generated library to
25487 # depend on `.', always an invalid library. This was fixed in
25488 # development snapshots of GCC prior to 3.0.
25490 aix4 | aix4.[01] | aix4.[01].*)
25491 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25493 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25496 can_build_shared=no
25500 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25501 # soname into executable. Probably we can add versioning support to
25502 # collect2, so additional links can be useful in future.
25503 if test "$aix_use_runtimelinking" = yes; then
25504 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25505 # instead of lib<name>.a to let people know that these are not
25506 # typical AIX shared libraries.
25507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25509 # We preserve .a as extension for shared libraries through AIX4.2
25510 # and later when we are not doing run time linking.
25511 library_names_spec='${libname}${release}.a $libname.a'
25512 soname_spec='${libname}${release}${shared_ext}$major'
25514 shlibpath_var=LIBPATH
25519 library_names_spec='$libname.ixlibrary $libname.a'
25520 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25521 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'
25525 library_names_spec='${libname}${shared_ext}'
25526 dynamic_linker="$host_os ld.so"
25527 shlibpath_var=LIBRARY_PATH
25533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534 soname_spec='${libname}${release}${shared_ext}$major'
25535 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25536 shlibpath_var=LD_LIBRARY_PATH
25537 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25538 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25539 # the default ld.so.conf also contains /usr/contrib/lib and
25540 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25541 # libtool to hard-code these into programs
25544 cygwin* | mingw* | pw32*)
25545 version_type=windows
25550 case $GCC,$host_os in
25551 yes,cygwin* | yes,mingw* | yes,pw32*)
25552 library_names_spec='$libname.dll.a'
25553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25554 postinstall_cmds='base_file=`basename \${file}`~
25555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25556 dldir=$destdir/`dirname \$dlpath`~
25557 test -d \$dldir || mkdir -p \$dldir~
25558 $install_prog $dir/$dlname \$dldir/$dlname~
25559 chmod a+x \$dldir/$dlname'
25560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25561 dlpath=$dir/\$dldll~
25563 shlibpath_overrides_runpath=yes
25567 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25568 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25569 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25572 # MinGW DLLs use traditional 'lib' prefix
25573 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25575 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25576 # It is most probably a Windows format PATH printed by
25577 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25578 # path with ; separators, and with drive letters. We can handle the
25579 # drive letters (cygwin fileutils understands them), so leave them,
25580 # especially as we might pass files found there to a mingw objdump,
25581 # which wouldn't understand a cygwinified path. Ahh.
25582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25588 # pw32 DLLs use 'pw' prefix rather than 'lib'
25589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25598 dynamic_linker='Win32 ld.exe'
25599 # FIXME: first we should search . and the directory the executable is in
25603 darwin* | rhapsody*)
25604 dynamic_linker="$host_os dyld"
25605 version_type=darwin
25608 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25609 soname_spec='${libname}${release}${major}$shared_ext'
25610 shlibpath_overrides_runpath=yes
25611 shlibpath_var=DYLD_LIBRARY_PATH
25612 shrext_cmds='.dylib'
25613 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25614 if test "$GCC" = yes; then
25615 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"`
25617 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25627 soname_spec='${libname}${release}${shared_ext}$major'
25628 shlibpath_var=LD_LIBRARY_PATH
25639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25640 soname_spec='${libname}${release}${shared_ext}$major'
25641 shlibpath_var=LD_LIBRARY_PATH
25642 shlibpath_overrides_runpath=no
25643 hardcode_into_libs=yes
25644 dynamic_linker='GNU ld.so'
25647 freebsd* | dragonfly*)
25648 # DragonFly does not have aout. When/if they implement a new
25649 # versioning mechanism, adjust this.
25650 if test -x /usr/bin/objformat; then
25651 objformat=`/usr/bin/objformat`
25654 freebsd[123]*) objformat=aout ;;
25655 *) objformat=elf ;;
25658 version_type=freebsd-$objformat
25659 case $version_type in
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25670 shlibpath_var=LD_LIBRARY_PATH
25673 shlibpath_overrides_runpath=yes
25675 freebsd3.[01]* | freebsdelf3.[01]*)
25676 shlibpath_overrides_runpath=yes
25677 hardcode_into_libs=yes
25679 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25680 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25681 shlibpath_overrides_runpath=no
25682 hardcode_into_libs=yes
25684 freebsd*) # from 4.6 on
25685 shlibpath_overrides_runpath=yes
25686 hardcode_into_libs=yes
25695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25696 soname_spec='${libname}${release}${shared_ext}$major'
25697 shlibpath_var=LD_LIBRARY_PATH
25698 hardcode_into_libs=yes
25701 hpux9* | hpux10* | hpux11*)
25702 # Give a soname corresponding to the major version so that dld.sl refuses to
25703 # link against other versions.
25710 hardcode_into_libs=yes
25711 dynamic_linker="$host_os dld.so"
25712 shlibpath_var=LD_LIBRARY_PATH
25713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 soname_spec='${libname}${release}${shared_ext}$major'
25716 if test "X$HPUX_IA64_MODE" = X32; then
25717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25719 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25725 hardcode_into_libs=yes
25726 dynamic_linker="$host_os dld.sl"
25727 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25730 soname_spec='${libname}${release}${shared_ext}$major'
25731 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25736 dynamic_linker="$host_os dld.sl"
25737 shlibpath_var=SHLIB_PATH
25738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25740 soname_spec='${libname}${release}${shared_ext}$major'
25743 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25744 postinstall_cmds='chmod 555 $lib'
25751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25752 soname_spec='${libname}${release}${shared_ext}$major'
25753 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 shlibpath_overrides_runpath=no
25756 hardcode_into_libs=yes
25759 irix5* | irix6* | nonstopux*)
25761 nonstopux*) version_type=nonstopux ;;
25763 if test "$lt_cv_prog_gnu_ld" = yes; then
25771 soname_spec='${libname}${release}${shared_ext}$major'
25772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25774 irix5* | nonstopux*)
25775 libsuff= shlibsuff=
25778 case $LD in # libtool.m4 will add one of these switches to LD
25779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25780 libsuff= shlibsuff= libmagic=32-bit;;
25781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25782 libsuff=32 shlibsuff=N32 libmagic=N32;;
25783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25785 *) libsuff= shlibsuff= libmagic=never-match;;
25789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25790 shlibpath_overrides_runpath=no
25791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25793 hardcode_into_libs=yes
25796 # No shared lib support for Linux oldld, aout, or coff.
25797 linux*oldld* | linux*aout* | linux*coff*)
25801 # This must be Linux ELF.
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25807 soname_spec='${libname}${release}${shared_ext}$major'
25808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25809 shlibpath_var=LD_LIBRARY_PATH
25810 shlibpath_overrides_runpath=no
25811 # This implies no fast_install, which is unacceptable.
25812 # Some rework will be needed to allow for fast_install
25813 # before this can be enabled.
25814 hardcode_into_libs=yes
25816 # Append ld.so.conf contents to the search path
25817 if test -f /etc/ld.so.conf; then
25818 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' ' '`
25819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25822 # We used to test for /lib/ld.so.1 and disable shared libraries on
25823 # powerpc, because MkLinux only supported shared libraries with the
25824 # GNU dynamic linker. Since this was broken with cross compilers,
25825 # most powerpc-linux boxes support dynamic linking these days and
25826 # people can always --disable-shared, the test was removed, and we
25827 # assume the GNU/Linux dynamic linker is in use.
25828 dynamic_linker='GNU/Linux ld.so'
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 shlibpath_var=LD_LIBRARY_PATH
25838 shlibpath_overrides_runpath=no
25839 hardcode_into_libs=yes
25840 dynamic_linker='GNU ld.so'
25847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25850 dynamic_linker='NetBSD (a.out) ld.so'
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 dynamic_linker='NetBSD ld.elf_so'
25856 shlibpath_var=LD_LIBRARY_PATH
25857 shlibpath_overrides_runpath=yes
25858 hardcode_into_libs=yes
25863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25864 shlibpath_var=LD_LIBRARY_PATH
25865 shlibpath_overrides_runpath=yes
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 shlibpath_var=LD_LIBRARY_PATH
25875 shlibpath_overrides_runpath=yes
25880 sys_lib_dlsearch_path_spec="/usr/lib"
25882 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25884 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25885 *) need_version=no ;;
25887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25889 shlibpath_var=LD_LIBRARY_PATH
25890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25892 openbsd2.[89] | openbsd2.[89].*)
25893 shlibpath_overrides_runpath=no
25896 shlibpath_overrides_runpath=yes
25900 shlibpath_overrides_runpath=yes
25905 libname_spec='$name'
25908 library_names_spec='$libname${shared_ext} $libname.a'
25909 dynamic_linker='OS/2 ld.exe'
25910 shlibpath_var=LIBPATH
25913 osf3* | osf4* | osf5*)
25917 soname_spec='${libname}${release}${shared_ext}$major'
25918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25919 shlibpath_var=LD_LIBRARY_PATH
25920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25921 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25929 soname_spec='${libname}${release}${shared_ext}$major'
25930 shlibpath_var=LD_LIBRARY_PATH
25931 shlibpath_overrides_runpath=yes
25932 hardcode_into_libs=yes
25933 # ldd complains unless libraries are executable
25934 postinstall_cmds='chmod +x $lib'
25939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25940 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25941 shlibpath_var=LD_LIBRARY_PATH
25942 shlibpath_overrides_runpath=yes
25943 if test "$with_gnu_ld" = yes; then
25951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25952 soname_spec='${libname}${release}${shared_ext}$major'
25953 shlibpath_var=LD_LIBRARY_PATH
25954 case $host_vendor in
25956 shlibpath_overrides_runpath=no
25958 export_dynamic_flag_spec='${wl}-Blargedynsym'
25959 runpath_var=LD_RUN_PATH
25967 shlibpath_overrides_runpath=no
25968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25974 if test -d /usr/nec ;then
25976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25977 soname_spec='$libname${shared_ext}.$major'
25978 shlibpath_var=LD_LIBRARY_PATH
25982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25983 version_type=freebsd-elf
25986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25987 soname_spec='${libname}${release}${shared_ext}$major'
25988 shlibpath_var=LD_LIBRARY_PATH
25989 hardcode_into_libs=yes
25990 if test "$with_gnu_ld" = yes; then
25991 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25992 shlibpath_overrides_runpath=no
25994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25995 shlibpath_overrides_runpath=yes
25998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26002 sys_lib_dlsearch_path_spec='/usr/lib'
26007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26008 soname_spec='${libname}${release}${shared_ext}$major'
26009 shlibpath_var=LD_LIBRARY_PATH
26016 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26017 echo "${ECHO_T}$dynamic_linker" >&6; }
26018 test "$dynamic_linker" = no && can_build_shared=no
26020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26021 if test "$GCC" = yes; then
26022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26025 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26026 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26027 hardcode_action_GCJ=
26028 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26029 test -n "$runpath_var_GCJ" || \
26030 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26032 # We can hardcode non-existant directories.
26033 if test "$hardcode_direct_GCJ" != no &&
26034 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26035 # have to relink, otherwise we might link with an installed library
26036 # when we should be linking with a yet-to-be-installed one
26037 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26038 test "$hardcode_minus_L_GCJ" != no; then
26039 # Linking always hardcodes the temporary library directory.
26040 hardcode_action_GCJ=relink
26042 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26043 hardcode_action_GCJ=immediate
26046 # We cannot hardcode anything, or else we can only hardcode existing
26048 hardcode_action_GCJ=unsupported
26050 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26051 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26053 if test "$hardcode_action_GCJ" = relink; then
26054 # Fast installation is not supported
26055 enable_fast_install=no
26056 elif test "$shlibpath_overrides_runpath" = yes ||
26057 test "$enable_shared" = no; then
26058 # Fast installation is not necessary
26059 enable_fast_install=needless
26063 # The else clause should only fire when bootstrapping the
26064 # libtool distribution, otherwise you forgot to ship ltmain.sh
26065 # with your package, and you will get complaints that there are
26066 # no rules to generate ltmain.sh.
26067 if test -f "$ltmain"; then
26068 # See if we are running on zsh, and set the options which allow our commands through
26069 # without removal of \ escapes.
26070 if test -n "${ZSH_VERSION+set}" ; then
26071 setopt NO_GLOB_SUBST
26073 # Now quote all the things that may contain metacharacters while being
26074 # careful not to overquote the AC_SUBSTed values. We take copies of the
26075 # variables and quote the copies for generation of the libtool script.
26076 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26080 deplibs_check_method reload_flag reload_cmds need_locks \
26081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26082 lt_cv_sys_global_symbol_to_c_name_address \
26083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26084 old_postinstall_cmds old_postuninstall_cmds \
26088 lt_prog_compiler_wl_GCJ \
26089 lt_prog_compiler_pic_GCJ \
26090 lt_prog_compiler_static_GCJ \
26091 lt_prog_compiler_no_builtin_flag_GCJ \
26092 export_dynamic_flag_spec_GCJ \
26093 thread_safe_flag_spec_GCJ \
26094 whole_archive_flag_spec_GCJ \
26095 enable_shared_with_static_runtimes_GCJ \
26096 old_archive_cmds_GCJ \
26097 old_archive_from_new_cmds_GCJ \
26098 predep_objects_GCJ \
26099 postdep_objects_GCJ \
26102 compiler_lib_search_path_GCJ \
26104 archive_expsym_cmds_GCJ \
26105 postinstall_cmds_GCJ \
26106 postuninstall_cmds_GCJ \
26107 old_archive_from_expsyms_cmds_GCJ \
26108 allow_undefined_flag_GCJ \
26109 no_undefined_flag_GCJ \
26110 export_symbols_cmds_GCJ \
26111 hardcode_libdir_flag_spec_GCJ \
26112 hardcode_libdir_flag_spec_ld_GCJ \
26113 hardcode_libdir_separator_GCJ \
26114 hardcode_automatic_GCJ \
26116 module_expsym_cmds_GCJ \
26117 lt_cv_prog_compiler_c_o_GCJ \
26118 exclude_expsyms_GCJ \
26119 include_expsyms_GCJ; do
26122 old_archive_cmds_GCJ | \
26123 old_archive_from_new_cmds_GCJ | \
26124 archive_cmds_GCJ | \
26125 archive_expsym_cmds_GCJ | \
26126 module_cmds_GCJ | \
26127 module_expsym_cmds_GCJ | \
26128 old_archive_from_expsyms_cmds_GCJ | \
26129 export_symbols_cmds_GCJ | \
26130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26131 postinstall_cmds | postuninstall_cmds | \
26132 old_postinstall_cmds | old_postuninstall_cmds | \
26133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26134 # Double-quote double-evaled strings.
26135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26144 *'\$0 --fallback-echo"')
26145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26151 cat <<__EOF__ >> "$cfgfile"
26152 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26156 # Shell to use when invoking shell scripts.
26159 # Whether or not to build shared libraries.
26160 build_libtool_libs=$enable_shared
26162 # Whether or not to build static libraries.
26163 build_old_libs=$enable_static
26165 # Whether or not to add -lc for building shared libraries.
26166 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26168 # Whether or not to disallow shared libs when runtime libs are static
26169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26171 # Whether or not to optimize for fast installation.
26172 fast_install=$enable_fast_install
26175 host_alias=$host_alias
26179 # The build system.
26180 build_alias=$build_alias
26184 # An echo program that does not interpret backslashes.
26189 AR_FLAGS=$lt_AR_FLAGS
26194 # LTCC compiler flags.
26195 LTCFLAGS=$lt_LTCFLAGS
26197 # A language-specific compiler.
26198 CC=$lt_compiler_GCJ
26200 # Is the compiler the GNU C compiler?
26206 # The linker used to build libraries.
26209 # Whether we need hard or soft links.
26212 # A BSD-compatible nm program.
26215 # A symbol stripping program
26218 # Used to examine libraries when file_magic_cmd begins "file"
26219 MAGIC_CMD=$MAGIC_CMD
26221 # Used on cygwin: DLL creation program.
26224 # Used on cygwin: object dumper.
26227 # Used on cygwin: assembler.
26230 # The name of the directory that contains temporary libtool files.
26233 # How to create reloadable object files.
26234 reload_flag=$lt_reload_flag
26235 reload_cmds=$lt_reload_cmds
26237 # How to pass a linker flag through the compiler.
26238 wl=$lt_lt_prog_compiler_wl_GCJ
26240 # Object file suffix (normally "o").
26241 objext="$ac_objext"
26243 # Old archive suffix (normally "a").
26246 # Shared library suffix (normally ".so").
26247 shrext_cmds='$shrext_cmds'
26249 # Executable file suffix (normally "").
26252 # Additional compiler flags for building library objects.
26253 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26256 # What is the maximum length of a command?
26257 max_cmd_len=$lt_cv_sys_max_cmd_len
26259 # Does compiler simultaneously support -c and -o options?
26260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26262 # Must we lock files when doing compilation?
26263 need_locks=$lt_need_locks
26265 # Do we need the lib prefix for modules?
26266 need_lib_prefix=$need_lib_prefix
26268 # Do we need a version for libraries?
26269 need_version=$need_version
26271 # Whether dlopen is supported.
26272 dlopen_support=$enable_dlopen
26274 # Whether dlopen of programs is supported.
26275 dlopen_self=$enable_dlopen_self
26277 # Whether dlopen of statically linked programs is supported.
26278 dlopen_self_static=$enable_dlopen_self_static
26280 # Compiler flag to prevent dynamic linking.
26281 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26283 # Compiler flag to turn off builtin functions.
26284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26286 # Compiler flag to allow reflexive dlopens.
26287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26289 # Compiler flag to generate shared objects directly from archives.
26290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26292 # Compiler flag to generate thread-safe objects.
26293 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26295 # Library versioning type.
26296 version_type=$version_type
26298 # Format of library name prefix.
26299 libname_spec=$lt_libname_spec
26301 # List of archive names. First name is the real one, the rest are links.
26302 # The last name is the one that the linker finds with -lNAME.
26303 library_names_spec=$lt_library_names_spec
26305 # The coded name of the library, if different from the real name.
26306 soname_spec=$lt_soname_spec
26308 # Commands used to build and install an old-style archive.
26310 old_archive_cmds=$lt_old_archive_cmds_GCJ
26311 old_postinstall_cmds=$lt_old_postinstall_cmds
26312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26314 # Create an old-style archive from a shared archive.
26315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26317 # Create a temporary old-style archive to link instead of a shared archive.
26318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26320 # Commands used to build and install a shared archive.
26321 archive_cmds=$lt_archive_cmds_GCJ
26322 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26323 postinstall_cmds=$lt_postinstall_cmds
26324 postuninstall_cmds=$lt_postuninstall_cmds
26326 # Commands used to build a loadable module (assumed same as above if empty)
26327 module_cmds=$lt_module_cmds_GCJ
26328 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26330 # Commands to strip libraries.
26331 old_striplib=$lt_old_striplib
26332 striplib=$lt_striplib
26334 # Dependencies to place before the objects being linked to create a
26336 predep_objects=$lt_predep_objects_GCJ
26338 # Dependencies to place after the objects being linked to create a
26340 postdep_objects=$lt_postdep_objects_GCJ
26342 # Dependencies to place before the objects being linked to create a
26344 predeps=$lt_predeps_GCJ
26346 # Dependencies to place after the objects being linked to create a
26348 postdeps=$lt_postdeps_GCJ
26350 # The library search path used internally by the compiler when linking
26351 # a shared library.
26352 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26354 # Method to check whether dependent libraries are shared objects.
26355 deplibs_check_method=$lt_deplibs_check_method
26357 # Command to use when deplibs_check_method == file_magic.
26358 file_magic_cmd=$lt_file_magic_cmd
26360 # Flag that allows shared libraries with undefined symbols to be built.
26361 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26363 # Flag that forces no undefined symbols.
26364 no_undefined_flag=$lt_no_undefined_flag_GCJ
26366 # Commands used to finish a libtool library installation in a directory.
26367 finish_cmds=$lt_finish_cmds
26369 # Same as above, but a single script fragment to be evaled but not shown.
26370 finish_eval=$lt_finish_eval
26372 # Take the output of nm and produce a listing of raw symbols and C names.
26373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26375 # Transform the output of nm in a proper C declaration
26376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26378 # Transform the output of nm in a C name address pair
26379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26381 # This is the shared library runtime path variable.
26382 runpath_var=$runpath_var
26384 # This is the shared library path variable.
26385 shlibpath_var=$shlibpath_var
26387 # Is shlibpath searched before the hard-coded library search path?
26388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26390 # How to hardcode a shared library path into an executable.
26391 hardcode_action=$hardcode_action_GCJ
26393 # Whether we should hardcode library paths into libraries.
26394 hardcode_into_libs=$hardcode_into_libs
26396 # Flag to hardcode \$libdir into a binary during linking.
26397 # This must work even if \$libdir does not exist.
26398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26400 # If ld is used when linking, flag to hardcode \$libdir into
26401 # a binary during linking. This must work even if \$libdir does
26403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26405 # Whether we need a single -rpath flag with a separated argument.
26406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26409 # resulting binary.
26410 hardcode_direct=$hardcode_direct_GCJ
26412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26413 # resulting binary.
26414 hardcode_minus_L=$hardcode_minus_L_GCJ
26416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26417 # the resulting binary.
26418 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26420 # Set to yes if building a shared library automatically hardcodes DIR into the library
26421 # and all subsequent libraries and executables linked against it.
26422 hardcode_automatic=$hardcode_automatic_GCJ
26424 # Variables whose values should be saved in libtool wrapper scripts and
26425 # restored at relink time.
26426 variables_saved_for_relink="$variables_saved_for_relink"
26428 # Whether libtool must link a program against all its dependency libraries.
26429 link_all_deplibs=$link_all_deplibs_GCJ
26431 # Compile-time system search path for libraries
26432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26434 # Run-time system search path for libraries
26435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26437 # Fix the shell variable \$srcfile for the compiler.
26438 fix_srcfile_path="$fix_srcfile_path_GCJ"
26440 # Set to yes if exported symbols are required.
26441 always_export_symbols=$always_export_symbols_GCJ
26443 # The commands to list exported symbols.
26444 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26446 # The commands to extract the exported symbol list from a shared archive.
26447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26449 # Symbols that should not be listed in the preloaded symbols.
26450 exclude_expsyms=$lt_exclude_expsyms_GCJ
26452 # Symbols that must always be exported.
26453 include_expsyms=$lt_include_expsyms_GCJ
26455 # ### END LIBTOOL TAG CONFIG: $tagname
26461 # If there is no Makefile yet, we rely on a make rule to execute
26462 # `config.status --recheck' to rerun these tests and create the
26463 # libtool script then.
26464 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26465 if test -f "$ltmain_in"; then
26466 test -f Makefile && make "$ltmain"
26472 ac_cpp='$CPP $CPPFLAGS'
26473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26486 ac_cpp='$CPP $CPPFLAGS'
26487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26492 # Source file extension for RC test sources.
26495 # Object file extension for compiled RC test sources.
26499 # Code to be used in simple compile tests
26500 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26502 # Code to be used in simple link tests
26503 lt_simple_link_test_code="$lt_simple_compile_test_code"
26505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26507 # If no C compiler was specified, use CC.
26510 # If no C compiler flags were specified, use CFLAGS.
26511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26513 # Allow CC to be a program name with arguments.
26517 # save warnings/boilerplate of simple test code
26518 ac_outfile=conftest.$ac_objext
26519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26521 _lt_compiler_boilerplate=`cat conftest.err`
26524 ac_outfile=conftest.$ac_objext
26525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26527 _lt_linker_boilerplate=`cat conftest.err`
26531 # Allow CC to be a program name with arguments.
26536 for cc_temp in $compiler""; do
26538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26546 lt_cv_prog_compiler_c_o_RC=yes
26548 # The else clause should only fire when bootstrapping the
26549 # libtool distribution, otherwise you forgot to ship ltmain.sh
26550 # with your package, and you will get complaints that there are
26551 # no rules to generate ltmain.sh.
26552 if test -f "$ltmain"; then
26553 # See if we are running on zsh, and set the options which allow our commands through
26554 # without removal of \ escapes.
26555 if test -n "${ZSH_VERSION+set}" ; then
26556 setopt NO_GLOB_SUBST
26558 # Now quote all the things that may contain metacharacters while being
26559 # careful not to overquote the AC_SUBSTed values. We take copies of the
26560 # variables and quote the copies for generation of the libtool script.
26561 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26563 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26564 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26565 deplibs_check_method reload_flag reload_cmds need_locks \
26566 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26567 lt_cv_sys_global_symbol_to_c_name_address \
26568 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26569 old_postinstall_cmds old_postuninstall_cmds \
26573 lt_prog_compiler_wl_RC \
26574 lt_prog_compiler_pic_RC \
26575 lt_prog_compiler_static_RC \
26576 lt_prog_compiler_no_builtin_flag_RC \
26577 export_dynamic_flag_spec_RC \
26578 thread_safe_flag_spec_RC \
26579 whole_archive_flag_spec_RC \
26580 enable_shared_with_static_runtimes_RC \
26581 old_archive_cmds_RC \
26582 old_archive_from_new_cmds_RC \
26583 predep_objects_RC \
26584 postdep_objects_RC \
26587 compiler_lib_search_path_RC \
26589 archive_expsym_cmds_RC \
26590 postinstall_cmds_RC \
26591 postuninstall_cmds_RC \
26592 old_archive_from_expsyms_cmds_RC \
26593 allow_undefined_flag_RC \
26594 no_undefined_flag_RC \
26595 export_symbols_cmds_RC \
26596 hardcode_libdir_flag_spec_RC \
26597 hardcode_libdir_flag_spec_ld_RC \
26598 hardcode_libdir_separator_RC \
26599 hardcode_automatic_RC \
26601 module_expsym_cmds_RC \
26602 lt_cv_prog_compiler_c_o_RC \
26603 exclude_expsyms_RC \
26604 include_expsyms_RC; do
26607 old_archive_cmds_RC | \
26608 old_archive_from_new_cmds_RC | \
26609 archive_cmds_RC | \
26610 archive_expsym_cmds_RC | \
26612 module_expsym_cmds_RC | \
26613 old_archive_from_expsyms_cmds_RC | \
26614 export_symbols_cmds_RC | \
26615 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26616 postinstall_cmds | postuninstall_cmds | \
26617 old_postinstall_cmds | old_postuninstall_cmds | \
26618 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26619 # Double-quote double-evaled strings.
26620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26629 *'\$0 --fallback-echo"')
26630 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26636 cat <<__EOF__ >> "$cfgfile"
26637 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26641 # Shell to use when invoking shell scripts.
26644 # Whether or not to build shared libraries.
26645 build_libtool_libs=$enable_shared
26647 # Whether or not to build static libraries.
26648 build_old_libs=$enable_static
26650 # Whether or not to add -lc for building shared libraries.
26651 build_libtool_need_lc=$archive_cmds_need_lc_RC
26653 # Whether or not to disallow shared libs when runtime libs are static
26654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26656 # Whether or not to optimize for fast installation.
26657 fast_install=$enable_fast_install
26660 host_alias=$host_alias
26664 # The build system.
26665 build_alias=$build_alias
26669 # An echo program that does not interpret backslashes.
26674 AR_FLAGS=$lt_AR_FLAGS
26679 # LTCC compiler flags.
26680 LTCFLAGS=$lt_LTCFLAGS
26682 # A language-specific compiler.
26685 # Is the compiler the GNU C compiler?
26691 # The linker used to build libraries.
26694 # Whether we need hard or soft links.
26697 # A BSD-compatible nm program.
26700 # A symbol stripping program
26703 # Used to examine libraries when file_magic_cmd begins "file"
26704 MAGIC_CMD=$MAGIC_CMD
26706 # Used on cygwin: DLL creation program.
26709 # Used on cygwin: object dumper.
26712 # Used on cygwin: assembler.
26715 # The name of the directory that contains temporary libtool files.
26718 # How to create reloadable object files.
26719 reload_flag=$lt_reload_flag
26720 reload_cmds=$lt_reload_cmds
26722 # How to pass a linker flag through the compiler.
26723 wl=$lt_lt_prog_compiler_wl_RC
26725 # Object file suffix (normally "o").
26726 objext="$ac_objext"
26728 # Old archive suffix (normally "a").
26731 # Shared library suffix (normally ".so").
26732 shrext_cmds='$shrext_cmds'
26734 # Executable file suffix (normally "").
26737 # Additional compiler flags for building library objects.
26738 pic_flag=$lt_lt_prog_compiler_pic_RC
26741 # What is the maximum length of a command?
26742 max_cmd_len=$lt_cv_sys_max_cmd_len
26744 # Does compiler simultaneously support -c and -o options?
26745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26747 # Must we lock files when doing compilation?
26748 need_locks=$lt_need_locks
26750 # Do we need the lib prefix for modules?
26751 need_lib_prefix=$need_lib_prefix
26753 # Do we need a version for libraries?
26754 need_version=$need_version
26756 # Whether dlopen is supported.
26757 dlopen_support=$enable_dlopen
26759 # Whether dlopen of programs is supported.
26760 dlopen_self=$enable_dlopen_self
26762 # Whether dlopen of statically linked programs is supported.
26763 dlopen_self_static=$enable_dlopen_self_static
26765 # Compiler flag to prevent dynamic linking.
26766 link_static_flag=$lt_lt_prog_compiler_static_RC
26768 # Compiler flag to turn off builtin functions.
26769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26771 # Compiler flag to allow reflexive dlopens.
26772 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26774 # Compiler flag to generate shared objects directly from archives.
26775 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26777 # Compiler flag to generate thread-safe objects.
26778 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26780 # Library versioning type.
26781 version_type=$version_type
26783 # Format of library name prefix.
26784 libname_spec=$lt_libname_spec
26786 # List of archive names. First name is the real one, the rest are links.
26787 # The last name is the one that the linker finds with -lNAME.
26788 library_names_spec=$lt_library_names_spec
26790 # The coded name of the library, if different from the real name.
26791 soname_spec=$lt_soname_spec
26793 # Commands used to build and install an old-style archive.
26795 old_archive_cmds=$lt_old_archive_cmds_RC
26796 old_postinstall_cmds=$lt_old_postinstall_cmds
26797 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26799 # Create an old-style archive from a shared archive.
26800 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26802 # Create a temporary old-style archive to link instead of a shared archive.
26803 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26805 # Commands used to build and install a shared archive.
26806 archive_cmds=$lt_archive_cmds_RC
26807 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26808 postinstall_cmds=$lt_postinstall_cmds
26809 postuninstall_cmds=$lt_postuninstall_cmds
26811 # Commands used to build a loadable module (assumed same as above if empty)
26812 module_cmds=$lt_module_cmds_RC
26813 module_expsym_cmds=$lt_module_expsym_cmds_RC
26815 # Commands to strip libraries.
26816 old_striplib=$lt_old_striplib
26817 striplib=$lt_striplib
26819 # Dependencies to place before the objects being linked to create a
26821 predep_objects=$lt_predep_objects_RC
26823 # Dependencies to place after the objects being linked to create a
26825 postdep_objects=$lt_postdep_objects_RC
26827 # Dependencies to place before the objects being linked to create a
26829 predeps=$lt_predeps_RC
26831 # Dependencies to place after the objects being linked to create a
26833 postdeps=$lt_postdeps_RC
26835 # The library search path used internally by the compiler when linking
26836 # a shared library.
26837 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26839 # Method to check whether dependent libraries are shared objects.
26840 deplibs_check_method=$lt_deplibs_check_method
26842 # Command to use when deplibs_check_method == file_magic.
26843 file_magic_cmd=$lt_file_magic_cmd
26845 # Flag that allows shared libraries with undefined symbols to be built.
26846 allow_undefined_flag=$lt_allow_undefined_flag_RC
26848 # Flag that forces no undefined symbols.
26849 no_undefined_flag=$lt_no_undefined_flag_RC
26851 # Commands used to finish a libtool library installation in a directory.
26852 finish_cmds=$lt_finish_cmds
26854 # Same as above, but a single script fragment to be evaled but not shown.
26855 finish_eval=$lt_finish_eval
26857 # Take the output of nm and produce a listing of raw symbols and C names.
26858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26860 # Transform the output of nm in a proper C declaration
26861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26863 # Transform the output of nm in a C name address pair
26864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26866 # This is the shared library runtime path variable.
26867 runpath_var=$runpath_var
26869 # This is the shared library path variable.
26870 shlibpath_var=$shlibpath_var
26872 # Is shlibpath searched before the hard-coded library search path?
26873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26875 # How to hardcode a shared library path into an executable.
26876 hardcode_action=$hardcode_action_RC
26878 # Whether we should hardcode library paths into libraries.
26879 hardcode_into_libs=$hardcode_into_libs
26881 # Flag to hardcode \$libdir into a binary during linking.
26882 # This must work even if \$libdir does not exist.
26883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26885 # If ld is used when linking, flag to hardcode \$libdir into
26886 # a binary during linking. This must work even if \$libdir does
26888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26890 # Whether we need a single -rpath flag with a separated argument.
26891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26893 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26894 # resulting binary.
26895 hardcode_direct=$hardcode_direct_RC
26897 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26898 # resulting binary.
26899 hardcode_minus_L=$hardcode_minus_L_RC
26901 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26902 # the resulting binary.
26903 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26905 # Set to yes if building a shared library automatically hardcodes DIR into the library
26906 # and all subsequent libraries and executables linked against it.
26907 hardcode_automatic=$hardcode_automatic_RC
26909 # Variables whose values should be saved in libtool wrapper scripts and
26910 # restored at relink time.
26911 variables_saved_for_relink="$variables_saved_for_relink"
26913 # Whether libtool must link a program against all its dependency libraries.
26914 link_all_deplibs=$link_all_deplibs_RC
26916 # Compile-time system search path for libraries
26917 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26919 # Run-time system search path for libraries
26920 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26922 # Fix the shell variable \$srcfile for the compiler.
26923 fix_srcfile_path="$fix_srcfile_path_RC"
26925 # Set to yes if exported symbols are required.
26926 always_export_symbols=$always_export_symbols_RC
26928 # The commands to list exported symbols.
26929 export_symbols_cmds=$lt_export_symbols_cmds_RC
26931 # The commands to extract the exported symbol list from a shared archive.
26932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26934 # Symbols that should not be listed in the preloaded symbols.
26935 exclude_expsyms=$lt_exclude_expsyms_RC
26937 # Symbols that must always be exported.
26938 include_expsyms=$lt_include_expsyms_RC
26940 # ### END LIBTOOL TAG CONFIG: $tagname
26946 # If there is no Makefile yet, we rely on a make rule to execute
26947 # `config.status --recheck' to rerun these tests and create the
26948 # libtool script then.
26949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26950 if test -f "$ltmain_in"; then
26951 test -f Makefile && make "$ltmain"
26957 ac_cpp='$CPP $CPPFLAGS'
26958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26967 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26968 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26969 { (exit 1); exit 1; }; }
26973 # Append the new tag name to the list of available tags.
26974 if test -n "$tagname" ; then
26975 available_tags="$available_tags $tagname"
26981 # Now substitute the updated list of available tags.
26982 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26983 mv "${ofile}T" "$ofile"
26987 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26988 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26989 { (exit 1); exit 1; }; }
26995 # This can be used to rebuild libtool when needed
26996 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26998 # Always use our own libtool.
26999 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27001 # Prevent multiple expansion
27023 if test "$lt_cv_dlopen_self" = "yes" ; then
27025 cat >>confdefs.h <<\_ACEOF
27026 #define CAN_DLOPEN_SELF 1
27031 if test "$WITH_LLVMGCCDIR" = "default" ; then
27032 LLVMGCC="llvm-gcc${EXEEXT}"
27033 LLVMGXX="llvm-g++${EXEEXT}"
27034 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27035 set dummy $LLVMGCC; ac_word=$2
27036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27038 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27043 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27047 for as_dir in $PATH
27050 test -z "$as_dir" && as_dir=.
27051 for ac_exec_ext in '' $ac_executable_extensions; do
27052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27053 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27064 LLVMGCC=$ac_cv_path_LLVMGCC
27065 if test -n "$LLVMGCC"; then
27066 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27067 echo "${ECHO_T}$LLVMGCC" >&6; }
27069 { echo "$as_me:$LINENO: result: no" >&5
27070 echo "${ECHO_T}no" >&6; }
27074 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27075 set dummy $LLVMGXX; ac_word=$2
27076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27078 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27083 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27087 for as_dir in $PATH
27090 test -z "$as_dir" && as_dir=.
27091 for ac_exec_ext in '' $ac_executable_extensions; do
27092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27093 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27104 LLVMGXX=$ac_cv_path_LLVMGXX
27105 if test -n "$LLVMGXX"; then
27106 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27107 echo "${ECHO_T}$LLVMGXX" >&6; }
27109 { echo "$as_me:$LINENO: result: no" >&5
27110 echo "${ECHO_T}no" >&6; }
27115 if test -z "$LLVMGCC"; then
27116 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27118 if test -z "$LLVMGXX"; then
27119 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27127 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27128 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27141 if test "$GCC" != "yes" && test "$ICC" != "yes"
27143 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27144 echo "$as_me: error: gcc|icc required but not found" >&2;}
27145 { (exit 1); exit 1; }; }
27148 if test "$GXX" != "yes" && test "$IXX" != "yes"
27150 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27151 echo "$as_me: error: g++|icc required but not found" >&2;}
27152 { (exit 1); exit 1; }; }
27155 if test "$GCC" = "yes"
27157 cat >conftest.$ac_ext <<_ACEOF
27158 #if !defined(__GNUC__) || __GNUC__ < 3
27159 #error Unsupported GCC version
27163 rm -f conftest.$ac_objext
27164 if { (ac_try="$ac_compile"
27165 case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170 (eval "$ac_compile") 2>conftest.er1
27172 grep -v '^ *+' conftest.er1 >conftest.err
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } &&
27177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27178 { (case "(($ac_try" in
27179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183 (eval "$ac_try") 2>&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest.$ac_objext'
27188 { (case "(($ac_try" in
27189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190 *) ac_try_echo=$ac_try;;
27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193 (eval "$ac_try") 2>&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; }; then
27199 echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27202 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27203 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27204 { (exit 1); exit 1; }; }
27207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27210 if test -z "$llvm_cv_gnu_make_command"
27212 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27213 echo "$as_me: error: GNU Make required but not found" >&2;}
27214 { (exit 1); exit 1; }; }
27217 { echo "$as_me:$LINENO: result: ok" >&5
27218 echo "${ECHO_T}ok" >&6; }
27222 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27223 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27224 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27225 echo $ECHO_N "(cached) $ECHO_C" >&6
27227 ac_check_lib_save_LIBS=$LIBS
27229 cat >conftest.$ac_ext <<_ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27236 /* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
27246 return elf_begin ();
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (ac_try="$ac_link"
27253 case "(($ac_try" in
27254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27255 *) ac_try_echo=$ac_try;;
27257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27258 (eval "$ac_link") 2>conftest.er1
27260 grep -v '^ *+' conftest.er1 >conftest.err
27262 cat conftest.err >&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); } &&
27265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27266 { (case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_try") 2>&5
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); }; } &&
27275 { ac_try='test -s conftest$ac_exeext'
27276 { (case "(($ac_try" in
27277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278 *) ac_try_echo=$ac_try;;
27280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27281 (eval "$ac_try") 2>&5
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); }; }; then
27285 ac_cv_lib_elf_elf_begin=yes
27287 echo "$as_me: failed program was:" >&5
27288 sed 's/^/| /' conftest.$ac_ext >&5
27290 ac_cv_lib_elf_elf_begin=no
27293 rm -f core conftest.err conftest.$ac_objext \
27294 conftest$ac_exeext conftest.$ac_ext
27295 LIBS=$ac_check_lib_save_LIBS
27297 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27298 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27299 if test $ac_cv_lib_elf_elf_begin = yes; then
27300 cat >>confdefs.h <<_ACEOF
27301 #define HAVE_LIBELF 1
27309 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27310 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27311 if test "${ac_cv_lib_m_sin+set}" = set; then
27312 echo $ECHO_N "(cached) $ECHO_C" >&6
27314 ac_check_lib_save_LIBS=$LIBS
27316 cat >conftest.$ac_ext <<_ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h. */
27323 /* Override any GCC internal prototype to avoid an error.
27324 Use char because int might match the return type of a GCC
27325 builtin and then its argument prototype would still apply. */
27338 rm -f conftest.$ac_objext conftest$ac_exeext
27339 if { (ac_try="$ac_link"
27340 case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_link") 2>conftest.er1
27347 grep -v '^ *+' conftest.er1 >conftest.err
27349 cat conftest.err >&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } &&
27352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27353 { (case "(($ac_try" in
27354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355 *) ac_try_echo=$ac_try;;
27357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358 (eval "$ac_try") 2>&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); }; } &&
27362 { ac_try='test -s conftest$ac_exeext'
27363 { (case "(($ac_try" in
27364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365 *) ac_try_echo=$ac_try;;
27367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27368 (eval "$ac_try") 2>&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27372 ac_cv_lib_m_sin=yes
27374 echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27380 rm -f core conftest.err conftest.$ac_objext \
27381 conftest$ac_exeext conftest.$ac_ext
27382 LIBS=$ac_check_lib_save_LIBS
27384 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27385 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27386 if test $ac_cv_lib_m_sin = yes; then
27387 cat >>confdefs.h <<_ACEOF
27388 #define HAVE_LIBM 1
27395 if test "$llvm_cv_os_type" = "MingW" ; then
27397 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27398 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27399 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27400 echo $ECHO_N "(cached) $ECHO_C" >&6
27402 ac_check_lib_save_LIBS=$LIBS
27403 LIBS="-limagehlp $LIBS"
27404 cat >conftest.$ac_ext <<_ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h. */
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421 if { (ac_try="$ac_link"
27422 case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
27429 grep -v '^ *+' conftest.er1 >conftest.err
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_cv_lib_imagehlp_main=yes
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27459 ac_cv_lib_imagehlp_main=no
27462 rm -f core conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext conftest.$ac_ext
27464 LIBS=$ac_check_lib_save_LIBS
27466 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27467 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27468 if test $ac_cv_lib_imagehlp_main = yes; then
27469 cat >>confdefs.h <<_ACEOF
27470 #define HAVE_LIBIMAGEHLP 1
27473 LIBS="-limagehlp $LIBS"
27478 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27479 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27480 if test "${ac_cv_lib_psapi_main+set}" = set; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
27483 ac_check_lib_save_LIBS=$LIBS
27484 LIBS="-lpsapi $LIBS"
27485 cat >conftest.$ac_ext <<_ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27501 rm -f conftest.$ac_objext conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_link") 2>conftest.er1
27510 grep -v '^ *+' conftest.er1 >conftest.err
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
27515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516 { (case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521 (eval "$ac_try") 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest$ac_exeext'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
27535 ac_cv_lib_psapi_main=yes
27537 echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27540 ac_cv_lib_psapi_main=no
27543 rm -f core conftest.err conftest.$ac_objext \
27544 conftest$ac_exeext conftest.$ac_ext
27545 LIBS=$ac_check_lib_save_LIBS
27547 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27548 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27549 if test $ac_cv_lib_psapi_main = yes; then
27550 cat >>confdefs.h <<_ACEOF
27551 #define HAVE_LIBPSAPI 1
27554 LIBS="-lpsapi $LIBS"
27560 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27561 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27562 if test "${ac_cv_search_dlopen+set}" = set; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27565 ac_func_search_save_LIBS=$LIBS
27566 cat >conftest.$ac_ext <<_ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h. */
27573 /* Override any GCC internal prototype to avoid an error.
27574 Use char because int might match the return type of a GCC
27575 builtin and then its argument prototype would still apply. */
27588 for ac_lib in '' dl; do
27589 if test -z "$ac_lib"; then
27590 ac_res="none required"
27593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27595 rm -f conftest.$ac_objext conftest$ac_exeext
27596 if { (ac_try="$ac_link"
27597 case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_link") 2>conftest.er1
27604 grep -v '^ *+' conftest.er1 >conftest.err
27606 cat conftest.err >&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } &&
27609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27610 { (case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_try") 2>&5
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); }; } &&
27619 { ac_try='test -s conftest$ac_exeext'
27620 { (case "(($ac_try" in
27621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622 *) ac_try_echo=$ac_try;;
27624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625 (eval "$ac_try") 2>&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
27629 ac_cv_search_dlopen=$ac_res
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27637 rm -f core conftest.err conftest.$ac_objext \
27639 if test "${ac_cv_search_dlopen+set}" = set; then
27643 if test "${ac_cv_search_dlopen+set}" = set; then
27646 ac_cv_search_dlopen=no
27648 rm conftest.$ac_ext
27649 LIBS=$ac_func_search_save_LIBS
27651 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27652 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27653 ac_res=$ac_cv_search_dlopen
27654 if test "$ac_res" != no; then
27655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27657 cat >>confdefs.h <<\_ACEOF
27658 #define HAVE_DLOPEN 1
27662 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27663 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27667 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27668 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27669 if test "${ac_cv_search_mallinfo+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27672 ac_func_search_save_LIBS=$LIBS
27673 cat >conftest.$ac_ext <<_ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h. */
27680 /* Override any GCC internal prototype to avoid an error.
27681 Use char because int might match the return type of a GCC
27682 builtin and then its argument prototype would still apply. */
27690 return mallinfo ();
27695 for ac_lib in '' malloc; do
27696 if test -z "$ac_lib"; then
27697 ac_res="none required"
27700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27702 rm -f conftest.$ac_objext conftest$ac_exeext
27703 if { (ac_try="$ac_link"
27704 case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_link") 2>conftest.er1
27711 grep -v '^ *+' conftest.er1 >conftest.err
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27717 { (case "(($ac_try" in
27718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719 *) ac_try_echo=$ac_try;;
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722 (eval "$ac_try") 2>&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest$ac_exeext'
27727 { (case "(($ac_try" in
27728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729 *) ac_try_echo=$ac_try;;
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732 (eval "$ac_try") 2>&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; }; then
27736 ac_cv_search_mallinfo=$ac_res
27738 echo "$as_me: failed program was:" >&5
27739 sed 's/^/| /' conftest.$ac_ext >&5
27744 rm -f core conftest.err conftest.$ac_objext \
27746 if test "${ac_cv_search_mallinfo+set}" = set; then
27750 if test "${ac_cv_search_mallinfo+set}" = set; then
27753 ac_cv_search_mallinfo=no
27755 rm conftest.$ac_ext
27756 LIBS=$ac_func_search_save_LIBS
27758 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27759 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27760 ac_res=$ac_cv_search_mallinfo
27761 if test "$ac_res" != no; then
27762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27764 cat >>confdefs.h <<\_ACEOF
27765 #define HAVE_MALLINFO 1
27771 if test "$ENABLE_THREADS" -eq 1 ; then
27773 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27774 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27775 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27776 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 ac_check_lib_save_LIBS=$LIBS
27779 LIBS="-lpthread $LIBS"
27780 cat >conftest.$ac_ext <<_ACEOF
27783 cat confdefs.h >>conftest.$ac_ext
27784 cat >>conftest.$ac_ext <<_ACEOF
27785 /* end confdefs.h. */
27787 /* Override any GCC internal prototype to avoid an error.
27788 Use char because int might match the return type of a GCC
27789 builtin and then its argument prototype would still apply. */
27793 char pthread_mutex_init ();
27797 return pthread_mutex_init ();
27802 rm -f conftest.$ac_objext conftest$ac_exeext
27803 if { (ac_try="$ac_link"
27804 case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809 (eval "$ac_link") 2>conftest.er1
27811 grep -v '^ *+' conftest.er1 >conftest.err
27813 cat conftest.err >&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } &&
27816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27817 { (case "(($ac_try" in
27818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819 *) ac_try_echo=$ac_try;;
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822 (eval "$ac_try") 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; } &&
27826 { ac_try='test -s conftest$ac_exeext'
27827 { (case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832 (eval "$ac_try") 2>&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; }; then
27836 ac_cv_lib_pthread_pthread_mutex_init=yes
27838 echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27841 ac_cv_lib_pthread_pthread_mutex_init=no
27844 rm -f core conftest.err conftest.$ac_objext \
27845 conftest$ac_exeext conftest.$ac_ext
27846 LIBS=$ac_check_lib_save_LIBS
27848 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27849 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27850 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27851 cat >>confdefs.h <<_ACEOF
27852 #define HAVE_LIBPTHREAD 1
27855 LIBS="-lpthread $LIBS"
27859 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27860 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27861 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27862 echo $ECHO_N "(cached) $ECHO_C" >&6
27864 ac_func_search_save_LIBS=$LIBS
27865 cat >conftest.$ac_ext <<_ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h. */
27872 /* Override any GCC internal prototype to avoid an error.
27873 Use char because int might match the return type of a GCC
27874 builtin and then its argument prototype would still apply. */
27878 char pthread_mutex_lock ();
27882 return pthread_mutex_lock ();
27887 for ac_lib in '' pthread; do
27888 if test -z "$ac_lib"; then
27889 ac_res="none required"
27892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (ac_try="$ac_link"
27896 case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_link") 2>conftest.er1
27903 grep -v '^ *+' conftest.er1 >conftest.err
27905 cat conftest.err >&5
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); } &&
27908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27909 { (case "(($ac_try" in
27910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911 *) ac_try_echo=$ac_try;;
27913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914 (eval "$ac_try") 2>&5
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; } &&
27918 { ac_try='test -s conftest$ac_exeext'
27919 { (case "(($ac_try" in
27920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921 *) ac_try_echo=$ac_try;;
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924 (eval "$ac_try") 2>&5
27926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927 (exit $ac_status); }; }; then
27928 ac_cv_search_pthread_mutex_lock=$ac_res
27930 echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27936 rm -f core conftest.err conftest.$ac_objext \
27938 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27942 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27945 ac_cv_search_pthread_mutex_lock=no
27947 rm conftest.$ac_ext
27948 LIBS=$ac_func_search_save_LIBS
27950 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27951 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27952 ac_res=$ac_cv_search_pthread_mutex_lock
27953 if test "$ac_res" != no; then
27954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27956 cat >>confdefs.h <<\_ACEOF
27957 #define HAVE_PTHREAD_MUTEX_LOCK 1
27965 # Check whether --with-udis86 was given.
27966 if test "${with_udis86+set}" = set; then
27967 withval=$with_udis86;
27972 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27975 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27976 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27977 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27980 ac_check_lib_save_LIBS=$LIBS
27981 LIBS="-ludis86 $LIBS"
27982 cat >conftest.$ac_ext <<_ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h. */
27989 /* Override any GCC internal prototype to avoid an error.
27990 Use char because int might match the return type of a GCC
27991 builtin and then its argument prototype would still apply. */
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (ac_try="$ac_link"
28006 case "(($ac_try" in
28007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008 *) ac_try_echo=$ac_try;;
28010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011 (eval "$ac_link") 2>conftest.er1
28013 grep -v '^ *+' conftest.er1 >conftest.err
28015 cat conftest.err >&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } &&
28018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28019 { (case "(($ac_try" in
28020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28021 *) ac_try_echo=$ac_try;;
28023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28024 (eval "$ac_try") 2>&5
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); }; } &&
28028 { ac_try='test -s conftest$ac_exeext'
28029 { (case "(($ac_try" in
28030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031 *) ac_try_echo=$ac_try;;
28033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28034 (eval "$ac_try") 2>&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; }; then
28038 ac_cv_lib_udis86_ud_init=yes
28040 echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28043 ac_cv_lib_udis86_ud_init=no
28046 rm -f core conftest.err conftest.$ac_objext \
28047 conftest$ac_exeext conftest.$ac_ext
28048 LIBS=$ac_check_lib_save_LIBS
28050 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28051 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28052 if test $ac_cv_lib_udis86_ud_init = yes; then
28053 cat >>confdefs.h <<_ACEOF
28054 #define HAVE_LIBUDIS86 1
28057 LIBS="-ludis86 $LIBS"
28061 echo "Error! You need to have libudis86 around."
28073 cat >>confdefs.h <<_ACEOF
28074 #define USE_UDIS86 $USE_UDIS86
28084 ac_header_dirent=no
28085 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28086 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28087 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28088 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 cat >conftest.$ac_ext <<_ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28098 #include <sys/types.h>
28110 rm -f conftest.$ac_objext
28111 if { (ac_try="$ac_compile"
28112 case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117 (eval "$ac_compile") 2>conftest.er1
28119 grep -v '^ *+' conftest.er1 >conftest.err
28121 cat conftest.err >&5
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
28124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28125 { (case "(($ac_try" in
28126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127 *) ac_try_echo=$ac_try;;
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130 (eval "$ac_try") 2>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest.$ac_objext'
28135 { (case "(($ac_try" in
28136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137 *) ac_try_echo=$ac_try;;
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140 (eval "$ac_try") 2>&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; }; then
28144 eval "$as_ac_Header=yes"
28146 echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28149 eval "$as_ac_Header=no"
28152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 ac_res=`eval echo '${'$as_ac_Header'}'`
28155 { echo "$as_me:$LINENO: result: $ac_res" >&5
28156 echo "${ECHO_T}$ac_res" >&6; }
28157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28158 cat >>confdefs.h <<_ACEOF
28159 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28162 ac_header_dirent=$ac_hdr; break
28166 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28167 if test $ac_header_dirent = dirent.h; then
28168 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28169 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28170 if test "${ac_cv_search_opendir+set}" = set; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
28173 ac_func_search_save_LIBS=$LIBS
28174 cat >conftest.$ac_ext <<_ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28181 /* Override any GCC internal prototype to avoid an error.
28182 Use char because int might match the return type of a GCC
28183 builtin and then its argument prototype would still apply. */
28196 for ac_lib in '' dir; do
28197 if test -z "$ac_lib"; then
28198 ac_res="none required"
28201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28203 rm -f conftest.$ac_objext conftest$ac_exeext
28204 if { (ac_try="$ac_link"
28205 case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_link") 2>conftest.er1
28212 grep -v '^ *+' conftest.er1 >conftest.err
28214 cat conftest.err >&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); } &&
28217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218 { (case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223 (eval "$ac_try") 2>&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; } &&
28227 { ac_try='test -s conftest$ac_exeext'
28228 { (case "(($ac_try" in
28229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230 *) ac_try_echo=$ac_try;;
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28237 ac_cv_search_opendir=$ac_res
28239 echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28245 rm -f core conftest.err conftest.$ac_objext \
28247 if test "${ac_cv_search_opendir+set}" = set; then
28251 if test "${ac_cv_search_opendir+set}" = set; then
28254 ac_cv_search_opendir=no
28256 rm conftest.$ac_ext
28257 LIBS=$ac_func_search_save_LIBS
28259 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28260 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28261 ac_res=$ac_cv_search_opendir
28262 if test "$ac_res" != no; then
28263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28268 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28269 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28270 if test "${ac_cv_search_opendir+set}" = set; then
28271 echo $ECHO_N "(cached) $ECHO_C" >&6
28273 ac_func_search_save_LIBS=$LIBS
28274 cat >conftest.$ac_ext <<_ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h. */
28281 /* Override any GCC internal prototype to avoid an error.
28282 Use char because int might match the return type of a GCC
28283 builtin and then its argument prototype would still apply. */
28296 for ac_lib in '' x; do
28297 if test -z "$ac_lib"; then
28298 ac_res="none required"
28301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28303 rm -f conftest.$ac_objext conftest$ac_exeext
28304 if { (ac_try="$ac_link"
28305 case "(($ac_try" in
28306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307 *) ac_try_echo=$ac_try;;
28309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310 (eval "$ac_link") 2>conftest.er1
28312 grep -v '^ *+' conftest.er1 >conftest.err
28314 cat conftest.err >&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } &&
28317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28318 { (case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_try") 2>&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; } &&
28327 { ac_try='test -s conftest$ac_exeext'
28328 { (case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_try") 2>&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; }; then
28337 ac_cv_search_opendir=$ac_res
28339 echo "$as_me: failed program was:" >&5
28340 sed 's/^/| /' conftest.$ac_ext >&5
28345 rm -f core conftest.err conftest.$ac_objext \
28347 if test "${ac_cv_search_opendir+set}" = set; then
28351 if test "${ac_cv_search_opendir+set}" = set; then
28354 ac_cv_search_opendir=no
28356 rm conftest.$ac_ext
28357 LIBS=$ac_func_search_save_LIBS
28359 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28360 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28361 ac_res=$ac_cv_search_opendir
28362 if test "$ac_res" != no; then
28363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28369 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28370 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28371 if test "${ac_cv_header_mmap_anon+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28375 ac_cpp='$CPP $CPPFLAGS'
28376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28380 cat >conftest.$ac_ext <<_ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h. */
28386 #include <sys/mman.h>
28387 #include <unistd.h>
28392 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28397 rm -f conftest.$ac_objext
28398 if { (ac_try="$ac_compile"
28399 case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_compile") 2>conftest.er1
28406 grep -v '^ *+' conftest.er1 >conftest.err
28408 cat conftest.err >&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); } &&
28411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28412 { (case "(($ac_try" in
28413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28414 *) ac_try_echo=$ac_try;;
28416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28417 (eval "$ac_try") 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest.$ac_objext'
28422 { (case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_try") 2>&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); }; }; then
28431 ac_cv_header_mmap_anon=yes
28433 echo "$as_me: failed program was:" >&5
28434 sed 's/^/| /' conftest.$ac_ext >&5
28436 ac_cv_header_mmap_anon=no
28439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28441 ac_cpp='$CPP $CPPFLAGS'
28442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28448 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28449 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28450 if test "$ac_cv_header_mmap_anon" = yes; then
28452 cat >>confdefs.h <<\_ACEOF
28453 #define HAVE_MMAP_ANONYMOUS 1
28458 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28459 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28460 if test "${ac_cv_header_stat_broken+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28463 cat >conftest.$ac_ext <<_ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28469 #include <sys/types.h>
28470 #include <sys/stat.h>
28472 #if defined S_ISBLK && defined S_IFDIR
28473 # if S_ISBLK (S_IFDIR)
28478 #if defined S_ISBLK && defined S_IFCHR
28479 # if S_ISBLK (S_IFCHR)
28484 #if defined S_ISLNK && defined S_IFREG
28485 # if S_ISLNK (S_IFREG)
28490 #if defined S_ISSOCK && defined S_IFREG
28491 # if S_ISSOCK (S_IFREG)
28497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28498 $EGREP "You lose" >/dev/null 2>&1; then
28499 ac_cv_header_stat_broken=yes
28501 ac_cv_header_stat_broken=no
28506 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28507 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28508 if test $ac_cv_header_stat_broken = yes; then
28510 cat >>confdefs.h <<\_ACEOF
28511 #define STAT_MACROS_BROKEN 1
28516 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28517 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28518 if test "${ac_cv_header_stdc+set}" = set; then
28519 echo $ECHO_N "(cached) $ECHO_C" >&6
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 #include <stdlib.h>
28528 #include <stdarg.h>
28529 #include <string.h>
28540 rm -f conftest.$ac_objext
28541 if { (ac_try="$ac_compile"
28542 case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_compile") 2>conftest.er1
28549 grep -v '^ *+' conftest.er1 >conftest.err
28551 cat conftest.err >&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); } &&
28554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28555 { (case "(($ac_try" in
28556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557 *) ac_try_echo=$ac_try;;
28559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560 (eval "$ac_try") 2>&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; } &&
28564 { ac_try='test -s conftest.$ac_objext'
28565 { (case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_try") 2>&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
28574 ac_cv_header_stdc=yes
28576 echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28579 ac_cv_header_stdc=no
28582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28584 if test $ac_cv_header_stdc = yes; then
28585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28586 cat >conftest.$ac_ext <<_ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h. */
28592 #include <string.h>
28595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28596 $EGREP "memchr" >/dev/null 2>&1; then
28599 ac_cv_header_stdc=no
28605 if test $ac_cv_header_stdc = yes; then
28606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28607 cat >conftest.$ac_ext <<_ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h. */
28613 #include <stdlib.h>
28616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28617 $EGREP "free" >/dev/null 2>&1; then
28620 ac_cv_header_stdc=no
28626 if test $ac_cv_header_stdc = yes; then
28627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28628 if test "$cross_compiling" = yes; then
28631 cat >conftest.$ac_ext <<_ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h. */
28638 #include <stdlib.h>
28639 #if ((' ' & 0x0FF) == 0x020)
28640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28643 # define ISLOWER(c) \
28644 (('a' <= (c) && (c) <= 'i') \
28645 || ('j' <= (c) && (c) <= 'r') \
28646 || ('s' <= (c) && (c) <= 'z'))
28647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28655 for (i = 0; i < 256; i++)
28656 if (XOR (islower (i), ISLOWER (i))
28657 || toupper (i) != TOUPPER (i))
28662 rm -f conftest$ac_exeext
28663 if { (ac_try="$ac_link"
28664 case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_link") 2>&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28673 { (case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_try") 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28684 echo "$as_me: program exited with status $ac_status" >&5
28685 echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28688 ( exit $ac_status )
28689 ac_cv_header_stdc=no
28691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28697 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28698 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28699 if test $ac_cv_header_stdc = yes; then
28701 cat >>confdefs.h <<\_ACEOF
28702 #define STDC_HEADERS 1
28707 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28708 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28709 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 cat >conftest.$ac_ext <<_ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28718 #include <sys/types.h>
28719 #include <sys/wait.h>
28720 #ifndef WEXITSTATUS
28721 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28724 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28732 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28737 rm -f conftest.$ac_objext
28738 if { (ac_try="$ac_compile"
28739 case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_compile") 2>conftest.er1
28746 grep -v '^ *+' conftest.er1 >conftest.err
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } &&
28751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28752 { (case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_try") 2>&5
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } &&
28761 { ac_try='test -s conftest.$ac_objext'
28762 { (case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_try") 2>&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; }; then
28771 ac_cv_header_sys_wait_h=yes
28773 echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28776 ac_cv_header_sys_wait_h=no
28779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28782 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28783 if test $ac_cv_header_sys_wait_h = yes; then
28785 cat >>confdefs.h <<\_ACEOF
28786 #define HAVE_SYS_WAIT_H 1
28791 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28792 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28793 if test "${ac_cv_header_time+set}" = set; then
28794 echo $ECHO_N "(cached) $ECHO_C" >&6
28796 cat >conftest.$ac_ext <<_ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h. */
28802 #include <sys/types.h>
28803 #include <sys/time.h>
28809 if ((struct tm *) 0)
28815 rm -f conftest.$ac_objext
28816 if { (ac_try="$ac_compile"
28817 case "(($ac_try" in
28818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819 *) ac_try_echo=$ac_try;;
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822 (eval "$ac_compile") 2>conftest.er1
28824 grep -v '^ *+' conftest.er1 >conftest.err
28826 cat conftest.err >&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } &&
28829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28830 { (case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835 (eval "$ac_try") 2>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; } &&
28839 { ac_try='test -s conftest.$ac_objext'
28840 { (case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_try") 2>&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; }; then
28849 ac_cv_header_time=yes
28851 echo "$as_me: failed program was:" >&5
28852 sed 's/^/| /' conftest.$ac_ext >&5
28854 ac_cv_header_time=no
28857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28859 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28860 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28861 if test $ac_cv_header_time = yes; then
28863 cat >>confdefs.h <<\_ACEOF
28864 #define TIME_WITH_SYS_TIME 1
28876 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28885 ac_res=`eval echo '${'$as_ac_Header'}'`
28886 { echo "$as_me:$LINENO: result: $ac_res" >&5
28887 echo "${ECHO_T}$ac_res" >&6; }
28889 # Is the header compilable?
28890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28892 cat >conftest.$ac_ext <<_ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h. */
28898 $ac_includes_default
28899 #include <$ac_header>
28901 rm -f conftest.$ac_objext
28902 if { (ac_try="$ac_compile"
28903 case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_compile") 2>conftest.er1
28910 grep -v '^ *+' conftest.er1 >conftest.err
28912 cat conftest.err >&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } &&
28915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28916 { (case "(($ac_try" in
28917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918 *) ac_try_echo=$ac_try;;
28920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921 (eval "$ac_try") 2>&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); }; } &&
28925 { ac_try='test -s conftest.$ac_objext'
28926 { (case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_try") 2>&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); }; }; then
28935 ac_header_compiler=yes
28937 echo "$as_me: failed program was:" >&5
28938 sed 's/^/| /' conftest.$ac_ext >&5
28940 ac_header_compiler=no
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28945 echo "${ECHO_T}$ac_header_compiler" >&6; }
28947 # Is the header present?
28948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28950 cat >conftest.$ac_ext <<_ACEOF
28953 cat confdefs.h >>conftest.$ac_ext
28954 cat >>conftest.$ac_ext <<_ACEOF
28955 /* end confdefs.h. */
28956 #include <$ac_header>
28958 if { (ac_try="$ac_cpp conftest.$ac_ext"
28959 case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28966 grep -v '^ *+' conftest.er1 >conftest.err
28968 cat conftest.err >&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); } >/dev/null; then
28971 if test -s conftest.err; then
28972 ac_cpp_err=$ac_c_preproc_warn_flag
28973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28980 if test -z "$ac_cpp_err"; then
28981 ac_header_preproc=yes
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28986 ac_header_preproc=no
28989 rm -f conftest.err conftest.$ac_ext
28990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28991 echo "${ECHO_T}$ac_header_preproc" >&6; }
28993 # So? What about this header?
28994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29000 ac_header_preproc=yes
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29016 ## ----------------------------------- ##
29017 ## Report this to llvmbugs@cs.uiuc.edu ##
29018 ## ----------------------------------- ##
29020 ) | sed "s/^/$as_me: WARNING: /" >&2
29023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29028 eval "$as_ac_Header=\$ac_header_preproc"
29030 ac_res=`eval echo '${'$as_ac_Header'}'`
29031 { echo "$as_me:$LINENO: result: $ac_res" >&5
29032 echo "${ECHO_T}$ac_res" >&6; }
29035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29036 cat >>confdefs.h <<_ACEOF
29037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29050 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29057 echo $ECHO_N "(cached) $ECHO_C" >&6
29059 ac_res=`eval echo '${'$as_ac_Header'}'`
29060 { echo "$as_me:$LINENO: result: $ac_res" >&5
29061 echo "${ECHO_T}$ac_res" >&6; }
29063 # Is the header compilable?
29064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29066 cat >conftest.$ac_ext <<_ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h. */
29072 $ac_includes_default
29073 #include <$ac_header>
29075 rm -f conftest.$ac_objext
29076 if { (ac_try="$ac_compile"
29077 case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_compile") 2>conftest.er1
29084 grep -v '^ *+' conftest.er1 >conftest.err
29086 cat conftest.err >&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); } &&
29089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29090 { (case "(($ac_try" in
29091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29092 *) ac_try_echo=$ac_try;;
29094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29095 (eval "$ac_try") 2>&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; } &&
29099 { ac_try='test -s conftest.$ac_objext'
29100 { (case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_try") 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; }; then
29109 ac_header_compiler=yes
29111 echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29114 ac_header_compiler=no
29117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29119 echo "${ECHO_T}$ac_header_compiler" >&6; }
29121 # Is the header present?
29122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29124 cat >conftest.$ac_ext <<_ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h. */
29130 #include <$ac_header>
29132 if { (ac_try="$ac_cpp conftest.$ac_ext"
29133 case "(($ac_try" in
29134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135 *) ac_try_echo=$ac_try;;
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29140 grep -v '^ *+' conftest.er1 >conftest.err
29142 cat conftest.err >&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); } >/dev/null; then
29145 if test -s conftest.err; then
29146 ac_cpp_err=$ac_c_preproc_warn_flag
29147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29154 if test -z "$ac_cpp_err"; then
29155 ac_header_preproc=yes
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_header_preproc=no
29163 rm -f conftest.err conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29165 echo "${ECHO_T}$ac_header_preproc" >&6; }
29167 # So? What about this header?
29168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29174 ac_header_preproc=yes
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29190 ## ----------------------------------- ##
29191 ## Report this to llvmbugs@cs.uiuc.edu ##
29192 ## ----------------------------------- ##
29194 ) | sed "s/^/$as_me: WARNING: /" >&2
29197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29202 eval "$as_ac_Header=\$ac_header_preproc"
29204 ac_res=`eval echo '${'$as_ac_Header'}'`
29205 { echo "$as_me:$LINENO: result: $ac_res" >&5
29206 echo "${ECHO_T}$ac_res" >&6; }
29209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29210 cat >>confdefs.h <<_ACEOF
29211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29219 for ac_header in windows.h
29221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29228 ac_res=`eval echo '${'$as_ac_Header'}'`
29229 { echo "$as_me:$LINENO: result: $ac_res" >&5
29230 echo "${ECHO_T}$ac_res" >&6; }
29232 # Is the header compilable?
29233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29235 cat >conftest.$ac_ext <<_ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h. */
29241 $ac_includes_default
29242 #include <$ac_header>
29244 rm -f conftest.$ac_objext
29245 if { (ac_try="$ac_compile"
29246 case "(($ac_try" in
29247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29248 *) ac_try_echo=$ac_try;;
29250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29251 (eval "$ac_compile") 2>conftest.er1
29253 grep -v '^ *+' conftest.er1 >conftest.err
29255 cat conftest.err >&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); } &&
29258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29259 { (case "(($ac_try" in
29260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264 (eval "$ac_try") 2>&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; } &&
29268 { ac_try='test -s conftest.$ac_objext'
29269 { (case "(($ac_try" in
29270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271 *) ac_try_echo=$ac_try;;
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274 (eval "$ac_try") 2>&5
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; }; then
29278 ac_header_compiler=yes
29280 echo "$as_me: failed program was:" >&5
29281 sed 's/^/| /' conftest.$ac_ext >&5
29283 ac_header_compiler=no
29286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29288 echo "${ECHO_T}$ac_header_compiler" >&6; }
29290 # Is the header present?
29291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29293 cat >conftest.$ac_ext <<_ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h. */
29299 #include <$ac_header>
29301 if { (ac_try="$ac_cpp conftest.$ac_ext"
29302 case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29309 grep -v '^ *+' conftest.er1 >conftest.err
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); } >/dev/null; then
29314 if test -s conftest.err; then
29315 ac_cpp_err=$ac_c_preproc_warn_flag
29316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29323 if test -z "$ac_cpp_err"; then
29324 ac_header_preproc=yes
29326 echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29329 ac_header_preproc=no
29332 rm -f conftest.err conftest.$ac_ext
29333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29334 echo "${ECHO_T}$ac_header_preproc" >&6; }
29336 # So? What about this header?
29337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29343 ac_header_preproc=yes
29346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29359 ## ----------------------------------- ##
29360 ## Report this to llvmbugs@cs.uiuc.edu ##
29361 ## ----------------------------------- ##
29363 ) | sed "s/^/$as_me: WARNING: /" >&2
29366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29371 eval "$as_ac_Header=\$ac_header_preproc"
29373 ac_res=`eval echo '${'$as_ac_Header'}'`
29374 { echo "$as_me:$LINENO: result: $ac_res" >&5
29375 echo "${ECHO_T}$ac_res" >&6; }
29378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29379 cat >>confdefs.h <<_ACEOF
29380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29391 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29400 ac_res=`eval echo '${'$as_ac_Header'}'`
29401 { echo "$as_me:$LINENO: result: $ac_res" >&5
29402 echo "${ECHO_T}$ac_res" >&6; }
29404 # Is the header compilable?
29405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29407 cat >conftest.$ac_ext <<_ACEOF
29410 cat confdefs.h >>conftest.$ac_ext
29411 cat >>conftest.$ac_ext <<_ACEOF
29412 /* end confdefs.h. */
29413 $ac_includes_default
29414 #include <$ac_header>
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431 { (case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_try") 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
29450 ac_header_compiler=yes
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29455 ac_header_compiler=no
29458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29460 echo "${ECHO_T}$ac_header_compiler" >&6; }
29462 # Is the header present?
29463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29465 cat >conftest.$ac_ext <<_ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h. */
29471 #include <$ac_header>
29473 if { (ac_try="$ac_cpp conftest.$ac_ext"
29474 case "(($ac_try" in
29475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476 *) ac_try_echo=$ac_try;;
29478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29481 grep -v '^ *+' conftest.er1 >conftest.err
29483 cat conftest.err >&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); } >/dev/null; then
29486 if test -s conftest.err; then
29487 ac_cpp_err=$ac_c_preproc_warn_flag
29488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29495 if test -z "$ac_cpp_err"; then
29496 ac_header_preproc=yes
29498 echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29501 ac_header_preproc=no
29504 rm -f conftest.err conftest.$ac_ext
29505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29506 echo "${ECHO_T}$ac_header_preproc" >&6; }
29508 # So? What about this header?
29509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29515 ac_header_preproc=yes
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29531 ## ----------------------------------- ##
29532 ## Report this to llvmbugs@cs.uiuc.edu ##
29533 ## ----------------------------------- ##
29535 ) | sed "s/^/$as_me: WARNING: /" >&2
29538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29541 echo $ECHO_N "(cached) $ECHO_C" >&6
29543 eval "$as_ac_Header=\$ac_header_preproc"
29545 ac_res=`eval echo '${'$as_ac_Header'}'`
29546 { echo "$as_me:$LINENO: result: $ac_res" >&5
29547 echo "${ECHO_T}$ac_res" >&6; }
29550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29551 cat >>confdefs.h <<_ACEOF
29552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29562 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29571 ac_res=`eval echo '${'$as_ac_Header'}'`
29572 { echo "$as_me:$LINENO: result: $ac_res" >&5
29573 echo "${ECHO_T}$ac_res" >&6; }
29575 # Is the header compilable?
29576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29578 cat >conftest.$ac_ext <<_ACEOF
29581 cat confdefs.h >>conftest.$ac_ext
29582 cat >>conftest.$ac_ext <<_ACEOF
29583 /* end confdefs.h. */
29584 $ac_includes_default
29585 #include <$ac_header>
29587 rm -f conftest.$ac_objext
29588 if { (ac_try="$ac_compile"
29589 case "(($ac_try" in
29590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591 *) ac_try_echo=$ac_try;;
29593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594 (eval "$ac_compile") 2>conftest.er1
29596 grep -v '^ *+' conftest.er1 >conftest.err
29598 cat conftest.err >&5
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } &&
29601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29602 { (case "(($ac_try" in
29603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604 *) ac_try_echo=$ac_try;;
29606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29607 (eval "$ac_try") 2>&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; } &&
29611 { ac_try='test -s conftest.$ac_objext'
29612 { (case "(($ac_try" in
29613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614 *) ac_try_echo=$ac_try;;
29616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29617 (eval "$ac_try") 2>&5
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); }; }; then
29621 ac_header_compiler=yes
29623 echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29626 ac_header_compiler=no
29629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29631 echo "${ECHO_T}$ac_header_compiler" >&6; }
29633 # Is the header present?
29634 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29636 cat >conftest.$ac_ext <<_ACEOF
29639 cat confdefs.h >>conftest.$ac_ext
29640 cat >>conftest.$ac_ext <<_ACEOF
29641 /* end confdefs.h. */
29642 #include <$ac_header>
29644 if { (ac_try="$ac_cpp conftest.$ac_ext"
29645 case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29652 grep -v '^ *+' conftest.er1 >conftest.err
29654 cat conftest.err >&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); } >/dev/null; then
29657 if test -s conftest.err; then
29658 ac_cpp_err=$ac_c_preproc_warn_flag
29659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29666 if test -z "$ac_cpp_err"; then
29667 ac_header_preproc=yes
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 ac_header_preproc=no
29675 rm -f conftest.err conftest.$ac_ext
29676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29677 echo "${ECHO_T}$ac_header_preproc" >&6; }
29679 # So? What about this header?
29680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29686 ac_header_preproc=yes
29689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29702 ## ----------------------------------- ##
29703 ## Report this to llvmbugs@cs.uiuc.edu ##
29704 ## ----------------------------------- ##
29706 ) | sed "s/^/$as_me: WARNING: /" >&2
29709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29712 echo $ECHO_N "(cached) $ECHO_C" >&6
29714 eval "$as_ac_Header=\$ac_header_preproc"
29716 ac_res=`eval echo '${'$as_ac_Header'}'`
29717 { echo "$as_me:$LINENO: result: $ac_res" >&5
29718 echo "${ECHO_T}$ac_res" >&6; }
29721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29722 cat >>confdefs.h <<_ACEOF
29723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29730 if test "$ENABLE_THREADS" -eq 1 ; then
29732 for ac_header in pthread.h
29734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29739 echo $ECHO_N "(cached) $ECHO_C" >&6
29741 ac_res=`eval echo '${'$as_ac_Header'}'`
29742 { echo "$as_me:$LINENO: result: $ac_res" >&5
29743 echo "${ECHO_T}$ac_res" >&6; }
29745 # Is the header compilable?
29746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29748 cat >conftest.$ac_ext <<_ACEOF
29751 cat confdefs.h >>conftest.$ac_ext
29752 cat >>conftest.$ac_ext <<_ACEOF
29753 /* end confdefs.h. */
29754 $ac_includes_default
29755 #include <$ac_header>
29757 rm -f conftest.$ac_objext
29758 if { (ac_try="$ac_compile"
29759 case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_compile") 2>conftest.er1
29766 grep -v '^ *+' conftest.er1 >conftest.err
29768 cat conftest.err >&5
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); } &&
29771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29772 { (case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_try") 2>&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); }; } &&
29781 { ac_try='test -s conftest.$ac_objext'
29782 { (case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_try") 2>&5
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
29791 ac_header_compiler=yes
29793 echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29796 ac_header_compiler=no
29799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29801 echo "${ECHO_T}$ac_header_compiler" >&6; }
29803 # Is the header present?
29804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29806 cat >conftest.$ac_ext <<_ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h. */
29812 #include <$ac_header>
29814 if { (ac_try="$ac_cpp conftest.$ac_ext"
29815 case "(($ac_try" in
29816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29817 *) ac_try_echo=$ac_try;;
29819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29822 grep -v '^ *+' conftest.er1 >conftest.err
29824 cat conftest.err >&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); } >/dev/null; then
29827 if test -s conftest.err; then
29828 ac_cpp_err=$ac_c_preproc_warn_flag
29829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29836 if test -z "$ac_cpp_err"; then
29837 ac_header_preproc=yes
29839 echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29842 ac_header_preproc=no
29845 rm -f conftest.err conftest.$ac_ext
29846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29847 echo "${ECHO_T}$ac_header_preproc" >&6; }
29849 # So? What about this header?
29850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29856 ac_header_preproc=yes
29859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29872 ## ----------------------------------- ##
29873 ## Report this to llvmbugs@cs.uiuc.edu ##
29874 ## ----------------------------------- ##
29876 ) | sed "s/^/$as_me: WARNING: /" >&2
29879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29884 eval "$as_ac_Header=\$ac_header_preproc"
29886 ac_res=`eval echo '${'$as_ac_Header'}'`
29887 { echo "$as_me:$LINENO: result: $ac_res" >&5
29888 echo "${ECHO_T}$ac_res" >&6; }
29891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29892 cat >>confdefs.h <<_ACEOF
29893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29911 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29912 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29913 if test "${ac_cv_huge_val_sanity+set}" = set; then
29914 echo $ECHO_N "(cached) $ECHO_C" >&6
29918 ac_cpp='$CXXCPP $CPPFLAGS'
29919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29924 if test "$cross_compiling" = yes; then
29925 ac_cv_huge_val_sanity=yes
29927 cat >conftest.$ac_ext <<_ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29937 double x = HUGE_VAL; return x != x;
29942 rm -f conftest$ac_exeext
29943 if { (ac_try="$ac_link"
29944 case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_link") 2>&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29953 { (case "(($ac_try" in
29954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29955 *) ac_try_echo=$ac_try;;
29957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29958 (eval "$ac_try") 2>&5
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); }; }; then
29962 ac_cv_huge_val_sanity=yes
29964 echo "$as_me: program exited with status $ac_status" >&5
29965 echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29968 ( exit $ac_status )
29969 ac_cv_huge_val_sanity=no
29971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29976 ac_cpp='$CPP $CPPFLAGS'
29977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29983 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29984 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29985 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29988 { echo "$as_me:$LINENO: checking for pid_t" >&5
29989 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29990 if test "${ac_cv_type_pid_t+set}" = set; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29993 cat >conftest.$ac_ext <<_ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
29999 $ac_includes_default
30000 typedef pid_t ac__type_new_;
30004 if ((ac__type_new_ *) 0)
30006 if (sizeof (ac__type_new_))
30012 rm -f conftest.$ac_objext
30013 if { (ac_try="$ac_compile"
30014 case "(($ac_try" in
30015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016 *) ac_try_echo=$ac_try;;
30018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019 (eval "$ac_compile") 2>conftest.er1
30021 grep -v '^ *+' conftest.er1 >conftest.err
30023 cat conftest.err >&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } &&
30026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30027 { (case "(($ac_try" in
30028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029 *) ac_try_echo=$ac_try;;
30031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032 (eval "$ac_try") 2>&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; } &&
30036 { ac_try='test -s conftest.$ac_objext'
30037 { (case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_try") 2>&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 ac_cv_type_pid_t=yes
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30051 ac_cv_type_pid_t=no
30054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30057 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30058 if test $ac_cv_type_pid_t = yes; then
30062 cat >>confdefs.h <<_ACEOF
30068 { echo "$as_me:$LINENO: checking for size_t" >&5
30069 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30070 if test "${ac_cv_type_size_t+set}" = set; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30079 $ac_includes_default
30080 typedef size_t ac__type_new_;
30084 if ((ac__type_new_ *) 0)
30086 if (sizeof (ac__type_new_))
30092 rm -f conftest.$ac_objext
30093 if { (ac_try="$ac_compile"
30094 case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_compile") 2>conftest.er1
30101 grep -v '^ *+' conftest.er1 >conftest.err
30103 cat conftest.err >&5
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); } &&
30106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30107 { (case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_try") 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest.$ac_objext'
30117 { (case "(($ac_try" in
30118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119 *) ac_try_echo=$ac_try;;
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122 (eval "$ac_try") 2>&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; }; then
30126 ac_cv_type_size_t=yes
30128 echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30131 ac_cv_type_size_t=no
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30136 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30137 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30138 if test $ac_cv_type_size_t = yes; then
30142 cat >>confdefs.h <<_ACEOF
30143 #define size_t unsigned int
30148 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30149 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30150 if test "${ac_cv_type_signal+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 cat >conftest.$ac_ext <<_ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h. */
30159 #include <sys/types.h>
30160 #include <signal.h>
30165 return *(signal (0, 0)) (0) == 1;
30170 rm -f conftest.$ac_objext
30171 if { (ac_try="$ac_compile"
30172 case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_compile") 2>conftest.er1
30179 grep -v '^ *+' conftest.er1 >conftest.err
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } &&
30184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185 { (case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_try") 2>&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest.$ac_objext'
30195 { (case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_try") 2>&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; }; then
30204 ac_cv_type_signal=int
30206 echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30209 ac_cv_type_signal=void
30212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30214 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30215 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30217 cat >>confdefs.h <<_ACEOF
30218 #define RETSIGTYPE $ac_cv_type_signal
30222 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30223 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30224 if test "${ac_cv_struct_tm+set}" = set; then
30225 echo $ECHO_N "(cached) $ECHO_C" >&6
30227 cat >conftest.$ac_ext <<_ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h. */
30233 #include <sys/types.h>
30239 struct tm *tp; tp->tm_sec;
30244 rm -f conftest.$ac_objext
30245 if { (ac_try="$ac_compile"
30246 case "(($ac_try" in
30247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248 *) ac_try_echo=$ac_try;;
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_compile") 2>conftest.er1
30253 grep -v '^ *+' conftest.er1 >conftest.err
30255 cat conftest.err >&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); } &&
30258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30259 { (case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264 (eval "$ac_try") 2>&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; } &&
30268 { ac_try='test -s conftest.$ac_objext'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; }; then
30278 ac_cv_struct_tm=time.h
30280 echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30283 ac_cv_struct_tm=sys/time.h
30286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30288 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30289 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30290 if test $ac_cv_struct_tm = sys/time.h; then
30292 cat >>confdefs.h <<\_ACEOF
30293 #define TM_IN_SYS_TIME 1
30298 { echo "$as_me:$LINENO: checking for int64_t" >&5
30299 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30300 if test "${ac_cv_type_int64_t+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 $ac_includes_default
30310 typedef int64_t ac__type_new_;
30314 if ((ac__type_new_ *) 0)
30316 if (sizeof (ac__type_new_))
30322 rm -f conftest.$ac_objext
30323 if { (ac_try="$ac_compile"
30324 case "(($ac_try" in
30325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326 *) ac_try_echo=$ac_try;;
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_compile") 2>conftest.er1
30331 grep -v '^ *+' conftest.er1 >conftest.err
30333 cat conftest.err >&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); } &&
30336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337 { (case "(($ac_try" in
30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_try") 2>&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; } &&
30346 { ac_try='test -s conftest.$ac_objext'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
30356 ac_cv_type_int64_t=yes
30358 echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30361 ac_cv_type_int64_t=no
30364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30366 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30367 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30368 if test $ac_cv_type_int64_t = yes; then
30370 cat >>confdefs.h <<_ACEOF
30371 #define HAVE_INT64_T 1
30376 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30377 echo "$as_me: error: Type int64_t required but not found" >&2;}
30378 { (exit 1); exit 1; }; }
30381 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30382 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30383 if test "${ac_cv_type_uint64_t+set}" = set; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30386 cat >conftest.$ac_ext <<_ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h. */
30392 $ac_includes_default
30393 typedef uint64_t ac__type_new_;
30397 if ((ac__type_new_ *) 0)
30399 if (sizeof (ac__type_new_))
30405 rm -f conftest.$ac_objext
30406 if { (ac_try="$ac_compile"
30407 case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_compile") 2>conftest.er1
30414 grep -v '^ *+' conftest.er1 >conftest.err
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } &&
30419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30420 { (case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_try") 2>&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; } &&
30429 { ac_try='test -s conftest.$ac_objext'
30430 { (case "(($ac_try" in
30431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432 *) ac_try_echo=$ac_try;;
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_try") 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
30439 ac_cv_type_uint64_t=yes
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 ac_cv_type_uint64_t=no
30447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30450 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30451 if test $ac_cv_type_uint64_t = yes; then
30453 cat >>confdefs.h <<_ACEOF
30454 #define HAVE_UINT64_T 1
30459 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30460 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30461 if test "${ac_cv_type_u_int64_t+set}" = set; then
30462 echo $ECHO_N "(cached) $ECHO_C" >&6
30464 cat >conftest.$ac_ext <<_ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h. */
30470 $ac_includes_default
30471 typedef u_int64_t ac__type_new_;
30475 if ((ac__type_new_ *) 0)
30477 if (sizeof (ac__type_new_))
30483 rm -f conftest.$ac_objext
30484 if { (ac_try="$ac_compile"
30485 case "(($ac_try" in
30486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30487 *) ac_try_echo=$ac_try;;
30489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30490 (eval "$ac_compile") 2>conftest.er1
30492 grep -v '^ *+' conftest.er1 >conftest.err
30494 cat conftest.err >&5
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); } &&
30497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; } &&
30507 { ac_try='test -s conftest.$ac_objext'
30508 { (case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_try") 2>&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; }; then
30517 ac_cv_type_u_int64_t=yes
30519 echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30522 ac_cv_type_u_int64_t=no
30525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30527 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30528 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30529 if test $ac_cv_type_u_int64_t = yes; then
30531 cat >>confdefs.h <<_ACEOF
30532 #define HAVE_U_INT64_T 1
30537 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30538 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30539 { (exit 1); exit 1; }; }
30553 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30559 echo $ECHO_N "(cached) $ECHO_C" >&6
30561 cat >conftest.$ac_ext <<_ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h. */
30567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30569 #define $ac_func innocuous_$ac_func
30571 /* System header to define __stub macros and hopefully few prototypes,
30572 which can conflict with char $ac_func (); below.
30573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30574 <limits.h> exists even on freestanding compilers. */
30577 # include <limits.h>
30579 # include <assert.h>
30584 /* Override any GCC internal prototype to avoid an error.
30585 Use char because int might match the return type of a GCC
30586 builtin and then its argument prototype would still apply. */
30591 /* The GNU C library defines this for functions which it implements
30592 to always fail with ENOSYS. Some functions are actually named
30593 something starting with __ and the normal name is an alias. */
30594 #if defined __stub_$ac_func || defined __stub___$ac_func
30601 return $ac_func ();
30606 rm -f conftest.$ac_objext conftest$ac_exeext
30607 if { (ac_try="$ac_link"
30608 case "(($ac_try" in
30609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30610 *) ac_try_echo=$ac_try;;
30612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30613 (eval "$ac_link") 2>conftest.er1
30615 grep -v '^ *+' conftest.er1 >conftest.err
30617 cat conftest.err >&5
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); } &&
30620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30621 { (case "(($ac_try" in
30622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30623 *) ac_try_echo=$ac_try;;
30625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30626 (eval "$ac_try") 2>&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; } &&
30630 { ac_try='test -s conftest$ac_exeext'
30631 { (case "(($ac_try" in
30632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633 *) ac_try_echo=$ac_try;;
30635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636 (eval "$ac_try") 2>&5
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; }; then
30640 eval "$as_ac_var=yes"
30642 echo "$as_me: failed program was:" >&5
30643 sed 's/^/| /' conftest.$ac_ext >&5
30645 eval "$as_ac_var=no"
30648 rm -f core conftest.err conftest.$ac_objext \
30649 conftest$ac_exeext conftest.$ac_ext
30651 ac_res=`eval echo '${'$as_ac_var'}'`
30652 { echo "$as_me:$LINENO: result: $ac_res" >&5
30653 echo "${ECHO_T}$ac_res" >&6; }
30654 if test `eval echo '${'$as_ac_var'}'` = yes; then
30655 cat >>confdefs.h <<_ACEOF
30656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30666 for ac_func in powf fmodf strtof round
30668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30672 echo $ECHO_N "(cached) $ECHO_C" >&6
30674 cat >conftest.$ac_ext <<_ACEOF
30677 cat confdefs.h >>conftest.$ac_ext
30678 cat >>conftest.$ac_ext <<_ACEOF
30679 /* end confdefs.h. */
30680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30682 #define $ac_func innocuous_$ac_func
30684 /* System header to define __stub macros and hopefully few prototypes,
30685 which can conflict with char $ac_func (); below.
30686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30687 <limits.h> exists even on freestanding compilers. */
30690 # include <limits.h>
30692 # include <assert.h>
30697 /* Override any GCC internal prototype to avoid an error.
30698 Use char because int might match the return type of a GCC
30699 builtin and then its argument prototype would still apply. */
30704 /* The GNU C library defines this for functions which it implements
30705 to always fail with ENOSYS. Some functions are actually named
30706 something starting with __ and the normal name is an alias. */
30707 #if defined __stub_$ac_func || defined __stub___$ac_func
30714 return $ac_func ();
30719 rm -f conftest.$ac_objext conftest$ac_exeext
30720 if { (ac_try="$ac_link"
30721 case "(($ac_try" in
30722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30723 *) ac_try_echo=$ac_try;;
30725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30726 (eval "$ac_link") 2>conftest.er1
30728 grep -v '^ *+' conftest.er1 >conftest.err
30730 cat conftest.err >&5
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); } &&
30733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30734 { (case "(($ac_try" in
30735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_try") 2>&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; } &&
30743 { ac_try='test -s conftest$ac_exeext'
30744 { (case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_try") 2>&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); }; }; then
30753 eval "$as_ac_var=yes"
30755 echo "$as_me: failed program was:" >&5
30756 sed 's/^/| /' conftest.$ac_ext >&5
30758 eval "$as_ac_var=no"
30761 rm -f core conftest.err conftest.$ac_objext \
30762 conftest$ac_exeext conftest.$ac_ext
30764 ac_res=`eval echo '${'$as_ac_var'}'`
30765 { echo "$as_me:$LINENO: result: $ac_res" >&5
30766 echo "${ECHO_T}$ac_res" >&6; }
30767 if test `eval echo '${'$as_ac_var'}'` = yes; then
30768 cat >>confdefs.h <<_ACEOF
30769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30780 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30788 cat >conftest.$ac_ext <<_ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h. */
30794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30796 #define $ac_func innocuous_$ac_func
30798 /* System header to define __stub macros and hopefully few prototypes,
30799 which can conflict with char $ac_func (); below.
30800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801 <limits.h> exists even on freestanding compilers. */
30804 # include <limits.h>
30806 # include <assert.h>
30811 /* Override any GCC internal prototype to avoid an error.
30812 Use char because int might match the return type of a GCC
30813 builtin and then its argument prototype would still apply. */
30818 /* The GNU C library defines this for functions which it implements
30819 to always fail with ENOSYS. Some functions are actually named
30820 something starting with __ and the normal name is an alias. */
30821 #if defined __stub_$ac_func || defined __stub___$ac_func
30828 return $ac_func ();
30833 rm -f conftest.$ac_objext conftest$ac_exeext
30834 if { (ac_try="$ac_link"
30835 case "(($ac_try" in
30836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 *) ac_try_echo=$ac_try;;
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840 (eval "$ac_link") 2>conftest.er1
30842 grep -v '^ *+' conftest.er1 >conftest.err
30844 cat conftest.err >&5
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); } &&
30847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30848 { (case "(($ac_try" in
30849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850 *) ac_try_echo=$ac_try;;
30852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853 (eval "$ac_try") 2>&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; } &&
30857 { ac_try='test -s conftest$ac_exeext'
30858 { (case "(($ac_try" in
30859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30860 *) ac_try_echo=$ac_try;;
30862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30863 (eval "$ac_try") 2>&5
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; }; then
30867 eval "$as_ac_var=yes"
30869 echo "$as_me: failed program was:" >&5
30870 sed 's/^/| /' conftest.$ac_ext >&5
30872 eval "$as_ac_var=no"
30875 rm -f core conftest.err conftest.$ac_objext \
30876 conftest$ac_exeext conftest.$ac_ext
30878 ac_res=`eval echo '${'$as_ac_var'}'`
30879 { echo "$as_me:$LINENO: result: $ac_res" >&5
30880 echo "${ECHO_T}$ac_res" >&6; }
30881 if test `eval echo '${'$as_ac_var'}'` = yes; then
30882 cat >>confdefs.h <<_ACEOF
30883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30892 for ac_func in isatty mkdtemp mkstemp
30894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30898 echo $ECHO_N "(cached) $ECHO_C" >&6
30900 cat >conftest.$ac_ext <<_ACEOF
30903 cat confdefs.h >>conftest.$ac_ext
30904 cat >>conftest.$ac_ext <<_ACEOF
30905 /* end confdefs.h. */
30906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30908 #define $ac_func innocuous_$ac_func
30910 /* System header to define __stub macros and hopefully few prototypes,
30911 which can conflict with char $ac_func (); below.
30912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913 <limits.h> exists even on freestanding compilers. */
30916 # include <limits.h>
30918 # include <assert.h>
30923 /* Override any GCC internal prototype to avoid an error.
30924 Use char because int might match the return type of a GCC
30925 builtin and then its argument prototype would still apply. */
30930 /* The GNU C library defines this for functions which it implements
30931 to always fail with ENOSYS. Some functions are actually named
30932 something starting with __ and the normal name is an alias. */
30933 #if defined __stub_$ac_func || defined __stub___$ac_func
30940 return $ac_func ();
30945 rm -f conftest.$ac_objext conftest$ac_exeext
30946 if { (ac_try="$ac_link"
30947 case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_link") 2>conftest.er1
30954 grep -v '^ *+' conftest.er1 >conftest.err
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } &&
30959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30960 { (case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_try") 2>&5
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; } &&
30969 { ac_try='test -s conftest$ac_exeext'
30970 { (case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975 (eval "$ac_try") 2>&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; }; then
30979 eval "$as_ac_var=yes"
30981 echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30984 eval "$as_ac_var=no"
30987 rm -f core conftest.err conftest.$ac_objext \
30988 conftest$ac_exeext conftest.$ac_ext
30990 ac_res=`eval echo '${'$as_ac_var'}'`
30991 { echo "$as_me:$LINENO: result: $ac_res" >&5
30992 echo "${ECHO_T}$ac_res" >&6; }
30993 if test `eval echo '${'$as_ac_var'}'` = yes; then
30994 cat >>confdefs.h <<_ACEOF
30995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31008 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31014 echo $ECHO_N "(cached) $ECHO_C" >&6
31016 cat >conftest.$ac_ext <<_ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h. */
31022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31024 #define $ac_func innocuous_$ac_func
31026 /* System header to define __stub macros and hopefully few prototypes,
31027 which can conflict with char $ac_func (); below.
31028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31029 <limits.h> exists even on freestanding compilers. */
31032 # include <limits.h>
31034 # include <assert.h>
31039 /* Override any GCC internal prototype to avoid an error.
31040 Use char because int might match the return type of a GCC
31041 builtin and then its argument prototype would still apply. */
31046 /* The GNU C library defines this for functions which it implements
31047 to always fail with ENOSYS. Some functions are actually named
31048 something starting with __ and the normal name is an alias. */
31049 #if defined __stub_$ac_func || defined __stub___$ac_func
31056 return $ac_func ();
31061 rm -f conftest.$ac_objext conftest$ac_exeext
31062 if { (ac_try="$ac_link"
31063 case "(($ac_try" in
31064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065 *) ac_try_echo=$ac_try;;
31067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068 (eval "$ac_link") 2>conftest.er1
31070 grep -v '^ *+' conftest.er1 >conftest.err
31072 cat conftest.err >&5
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); } &&
31075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31076 { (case "(($ac_try" in
31077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078 *) ac_try_echo=$ac_try;;
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081 (eval "$ac_try") 2>&5
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }; } &&
31085 { ac_try='test -s conftest$ac_exeext'
31086 { (case "(($ac_try" in
31087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088 *) ac_try_echo=$ac_try;;
31090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091 (eval "$ac_try") 2>&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); }; }; then
31095 eval "$as_ac_var=yes"
31097 echo "$as_me: failed program was:" >&5
31098 sed 's/^/| /' conftest.$ac_ext >&5
31100 eval "$as_ac_var=no"
31103 rm -f core conftest.err conftest.$ac_objext \
31104 conftest$ac_exeext conftest.$ac_ext
31106 ac_res=`eval echo '${'$as_ac_var'}'`
31107 { echo "$as_me:$LINENO: result: $ac_res" >&5
31108 echo "${ECHO_T}$ac_res" >&6; }
31109 if test `eval echo '${'$as_ac_var'}'` = yes; then
31110 cat >>confdefs.h <<_ACEOF
31111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31121 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31127 echo $ECHO_N "(cached) $ECHO_C" >&6
31129 cat >conftest.$ac_ext <<_ACEOF
31132 cat confdefs.h >>conftest.$ac_ext
31133 cat >>conftest.$ac_ext <<_ACEOF
31134 /* end confdefs.h. */
31135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31137 #define $ac_func innocuous_$ac_func
31139 /* System header to define __stub macros and hopefully few prototypes,
31140 which can conflict with char $ac_func (); below.
31141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142 <limits.h> exists even on freestanding compilers. */
31145 # include <limits.h>
31147 # include <assert.h>
31152 /* Override any GCC internal prototype to avoid an error.
31153 Use char because int might match the return type of a GCC
31154 builtin and then its argument prototype would still apply. */
31159 /* The GNU C library defines this for functions which it implements
31160 to always fail with ENOSYS. Some functions are actually named
31161 something starting with __ and the normal name is an alias. */
31162 #if defined __stub_$ac_func || defined __stub___$ac_func
31169 return $ac_func ();
31174 rm -f conftest.$ac_objext conftest$ac_exeext
31175 if { (ac_try="$ac_link"
31176 case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_link") 2>conftest.er1
31183 grep -v '^ *+' conftest.er1 >conftest.err
31185 cat conftest.err >&5
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); } &&
31188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31189 { (case "(($ac_try" in
31190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31191 *) ac_try_echo=$ac_try;;
31193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31194 (eval "$ac_try") 2>&5
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); }; } &&
31198 { ac_try='test -s conftest$ac_exeext'
31199 { (case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_try") 2>&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; }; then
31208 eval "$as_ac_var=yes"
31210 echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31213 eval "$as_ac_var=no"
31216 rm -f core conftest.err conftest.$ac_objext \
31217 conftest$ac_exeext conftest.$ac_ext
31219 ac_res=`eval echo '${'$as_ac_var'}'`
31220 { echo "$as_me:$LINENO: result: $ac_res" >&5
31221 echo "${ECHO_T}$ac_res" >&6; }
31222 if test `eval echo '${'$as_ac_var'}'` = yes; then
31223 cat >>confdefs.h <<_ACEOF
31224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31234 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31240 echo $ECHO_N "(cached) $ECHO_C" >&6
31242 cat >conftest.$ac_ext <<_ACEOF
31245 cat confdefs.h >>conftest.$ac_ext
31246 cat >>conftest.$ac_ext <<_ACEOF
31247 /* end confdefs.h. */
31248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31250 #define $ac_func innocuous_$ac_func
31252 /* System header to define __stub macros and hopefully few prototypes,
31253 which can conflict with char $ac_func (); below.
31254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31255 <limits.h> exists even on freestanding compilers. */
31258 # include <limits.h>
31260 # include <assert.h>
31265 /* Override any GCC internal prototype to avoid an error.
31266 Use char because int might match the return type of a GCC
31267 builtin and then its argument prototype would still apply. */
31272 /* The GNU C library defines this for functions which it implements
31273 to always fail with ENOSYS. Some functions are actually named
31274 something starting with __ and the normal name is an alias. */
31275 #if defined __stub_$ac_func || defined __stub___$ac_func
31282 return $ac_func ();
31287 rm -f conftest.$ac_objext conftest$ac_exeext
31288 if { (ac_try="$ac_link"
31289 case "(($ac_try" in
31290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291 *) ac_try_echo=$ac_try;;
31293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294 (eval "$ac_link") 2>conftest.er1
31296 grep -v '^ *+' conftest.er1 >conftest.err
31298 cat conftest.err >&5
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); } &&
31301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31302 { (case "(($ac_try" in
31303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304 *) ac_try_echo=$ac_try;;
31306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307 (eval "$ac_try") 2>&5
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); }; } &&
31311 { ac_try='test -s conftest$ac_exeext'
31312 { (case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_try") 2>&5
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; }; then
31321 eval "$as_ac_var=yes"
31323 echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31326 eval "$as_ac_var=no"
31329 rm -f core conftest.err conftest.$ac_objext \
31330 conftest$ac_exeext conftest.$ac_ext
31332 ac_res=`eval echo '${'$as_ac_var'}'`
31333 { echo "$as_me:$LINENO: result: $ac_res" >&5
31334 echo "${ECHO_T}$ac_res" >&6; }
31335 if test `eval echo '${'$as_ac_var'}'` = yes; then
31336 cat >>confdefs.h <<_ACEOF
31337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31343 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31344 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31345 if test "${llvm_cv_c_printf_a+set}" = set; then
31346 echo $ECHO_N "(cached) $ECHO_C" >&6
31349 ac_cpp='$CPP $CPPFLAGS'
31350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31354 if test "$cross_compiling" = yes; then
31355 llvmac_cv_c_printf_a=no
31357 cat >conftest.$ac_ext <<_ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h. */
31366 #include <stdlib.h>
31372 volatile double A, B;
31376 sprintf(Buffer, "%a", A);
31380 if (A != 0x1.999999999999ap-4)
31387 rm -f conftest$ac_exeext
31388 if { (ac_try="$ac_link"
31389 case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_link") 2>&5
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31398 { (case "(($ac_try" in
31399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400 *) ac_try_echo=$ac_try;;
31402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403 (eval "$ac_try") 2>&5
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
31407 llvm_cv_c_printf_a=yes
31409 echo "$as_me: program exited with status $ac_status" >&5
31410 echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31413 ( exit $ac_status )
31414 llvmac_cv_c_printf_a=no
31416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31421 ac_cpp='$CPP $CPPFLAGS'
31422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31427 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31428 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31429 if test "$llvm_cv_c_printf_a" = "yes"; then
31431 cat >>confdefs.h <<\_ACEOF
31432 #define HAVE_PRINTF_A 1
31437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31438 # for constant arguments. Useless!
31439 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31440 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31441 if test "${ac_cv_working_alloca_h+set}" = set; then
31442 echo $ECHO_N "(cached) $ECHO_C" >&6
31444 cat >conftest.$ac_ext <<_ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h. */
31450 #include <alloca.h>
31454 char *p = (char *) alloca (2 * sizeof (int));
31460 rm -f conftest.$ac_objext conftest$ac_exeext
31461 if { (ac_try="$ac_link"
31462 case "(($ac_try" in
31463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464 *) ac_try_echo=$ac_try;;
31466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31467 (eval "$ac_link") 2>conftest.er1
31469 grep -v '^ *+' conftest.er1 >conftest.err
31471 cat conftest.err >&5
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); } &&
31474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31475 { (case "(($ac_try" in
31476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31477 *) ac_try_echo=$ac_try;;
31479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31480 (eval "$ac_try") 2>&5
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); }; } &&
31484 { ac_try='test -s conftest$ac_exeext'
31485 { (case "(($ac_try" in
31486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487 *) ac_try_echo=$ac_try;;
31489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490 (eval "$ac_try") 2>&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; }; then
31494 ac_cv_working_alloca_h=yes
31496 echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31499 ac_cv_working_alloca_h=no
31502 rm -f core conftest.err conftest.$ac_objext \
31503 conftest$ac_exeext conftest.$ac_ext
31505 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31506 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31507 if test $ac_cv_working_alloca_h = yes; then
31509 cat >>confdefs.h <<\_ACEOF
31510 #define HAVE_ALLOCA_H 1
31515 { echo "$as_me:$LINENO: checking for alloca" >&5
31516 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31517 if test "${ac_cv_func_alloca_works+set}" = set; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31520 cat >conftest.$ac_ext <<_ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h. */
31527 # define alloca __builtin_alloca
31530 # include <malloc.h>
31531 # define alloca _alloca
31534 # include <alloca.h>
31539 # ifndef alloca /* predefined by HP cc +Olibcalls */
31550 char *p = (char *) alloca (1);
31556 rm -f conftest.$ac_objext conftest$ac_exeext
31557 if { (ac_try="$ac_link"
31558 case "(($ac_try" in
31559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31560 *) ac_try_echo=$ac_try;;
31562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563 (eval "$ac_link") 2>conftest.er1
31565 grep -v '^ *+' conftest.er1 >conftest.err
31567 cat conftest.err >&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } &&
31570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31571 { (case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_try") 2>&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); }; } &&
31580 { ac_try='test -s conftest$ac_exeext'
31581 { (case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_try") 2>&5
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; }; then
31590 ac_cv_func_alloca_works=yes
31592 echo "$as_me: failed program was:" >&5
31593 sed 's/^/| /' conftest.$ac_ext >&5
31595 ac_cv_func_alloca_works=no
31598 rm -f core conftest.err conftest.$ac_objext \
31599 conftest$ac_exeext conftest.$ac_ext
31601 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31602 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31604 if test $ac_cv_func_alloca_works = yes; then
31606 cat >>confdefs.h <<\_ACEOF
31607 #define HAVE_ALLOCA 1
31611 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31612 # that cause trouble. Some versions do not even contain alloca or
31613 # contain a buggy version. If you still want to use their alloca,
31614 # use ar to extract alloca.o from them instead of compiling alloca.c.
31616 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31618 cat >>confdefs.h <<\_ACEOF
31623 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31624 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31625 if test "${ac_cv_os_cray+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31628 cat >conftest.$ac_ext <<_ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h. */
31634 #if defined CRAY && ! defined CRAY2
31641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31642 $EGREP "webecray" >/dev/null 2>&1; then
31650 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31651 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31652 if test $ac_cv_os_cray = yes; then
31653 for ac_func in _getb67 GETB67 getb67; do
31654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31658 echo $ECHO_N "(cached) $ECHO_C" >&6
31660 cat >conftest.$ac_ext <<_ACEOF
31663 cat confdefs.h >>conftest.$ac_ext
31664 cat >>conftest.$ac_ext <<_ACEOF
31665 /* end confdefs.h. */
31666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31668 #define $ac_func innocuous_$ac_func
31670 /* System header to define __stub macros and hopefully few prototypes,
31671 which can conflict with char $ac_func (); below.
31672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31673 <limits.h> exists even on freestanding compilers. */
31676 # include <limits.h>
31678 # include <assert.h>
31683 /* Override any GCC internal prototype to avoid an error.
31684 Use char because int might match the return type of a GCC
31685 builtin and then its argument prototype would still apply. */
31690 /* The GNU C library defines this for functions which it implements
31691 to always fail with ENOSYS. Some functions are actually named
31692 something starting with __ and the normal name is an alias. */
31693 #if defined __stub_$ac_func || defined __stub___$ac_func
31700 return $ac_func ();
31705 rm -f conftest.$ac_objext conftest$ac_exeext
31706 if { (ac_try="$ac_link"
31707 case "(($ac_try" in
31708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709 *) ac_try_echo=$ac_try;;
31711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712 (eval "$ac_link") 2>conftest.er1
31714 grep -v '^ *+' conftest.er1 >conftest.err
31716 cat conftest.err >&5
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); } &&
31719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31720 { (case "(($ac_try" in
31721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31722 *) ac_try_echo=$ac_try;;
31724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31725 (eval "$ac_try") 2>&5
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); }; } &&
31729 { ac_try='test -s conftest$ac_exeext'
31730 { (case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_try") 2>&5
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); }; }; then
31739 eval "$as_ac_var=yes"
31741 echo "$as_me: failed program was:" >&5
31742 sed 's/^/| /' conftest.$ac_ext >&5
31744 eval "$as_ac_var=no"
31747 rm -f core conftest.err conftest.$ac_objext \
31748 conftest$ac_exeext conftest.$ac_ext
31750 ac_res=`eval echo '${'$as_ac_var'}'`
31751 { echo "$as_me:$LINENO: result: $ac_res" >&5
31752 echo "${ECHO_T}$ac_res" >&6; }
31753 if test `eval echo '${'$as_ac_var'}'` = yes; then
31755 cat >>confdefs.h <<_ACEOF
31756 #define CRAY_STACKSEG_END $ac_func
31765 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31766 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31767 if test "${ac_cv_c_stack_direction+set}" = set; then
31768 echo $ECHO_N "(cached) $ECHO_C" >&6
31770 if test "$cross_compiling" = yes; then
31771 ac_cv_c_stack_direction=0
31773 cat >conftest.$ac_ext <<_ACEOF
31776 cat confdefs.h >>conftest.$ac_ext
31777 cat >>conftest.$ac_ext <<_ACEOF
31778 /* end confdefs.h. */
31779 $ac_includes_default
31781 find_stack_direction ()
31783 static char *addr = 0;
31788 return find_stack_direction ();
31791 return (&dummy > addr) ? 1 : -1;
31797 return find_stack_direction () < 0;
31800 rm -f conftest$ac_exeext
31801 if { (ac_try="$ac_link"
31802 case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_link") 2>&5
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31811 { (case "(($ac_try" in
31812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813 *) ac_try_echo=$ac_try;;
31815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816 (eval "$ac_try") 2>&5
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; }; then
31820 ac_cv_c_stack_direction=1
31822 echo "$as_me: program exited with status $ac_status" >&5
31823 echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31826 ( exit $ac_status )
31827 ac_cv_c_stack_direction=-1
31829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31834 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31835 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31837 cat >>confdefs.h <<_ACEOF
31838 #define STACK_DIRECTION $ac_cv_c_stack_direction
31845 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31846 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31847 if test "${ac_cv_func_rand48+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31851 ac_cpp='$CXXCPP $CPPFLAGS'
31852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31856 cat >conftest.$ac_ext <<_ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31862 #include <stdlib.h>
31866 srand48(0);lrand48();drand48();
31871 rm -f conftest.$ac_objext
31872 if { (ac_try="$ac_compile"
31873 case "(($ac_try" in
31874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875 *) ac_try_echo=$ac_try;;
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878 (eval "$ac_compile") 2>conftest.er1
31880 grep -v '^ *+' conftest.er1 >conftest.err
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } &&
31885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31886 { (case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_try") 2>&5
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); }; } &&
31895 { ac_try='test -s conftest.$ac_objext'
31896 { (case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_try") 2>&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }; }; then
31905 ac_cv_func_rand48=yes
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31910 ac_cv_func_rand48=no
31913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31915 ac_cpp='$CPP $CPPFLAGS'
31916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31921 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31922 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31924 if test "$ac_cv_func_rand48" = "yes" ; then
31926 cat >>confdefs.h <<\_ACEOF
31927 #define HAVE_RAND48 1
31933 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31934 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31935 if test "${ac_cv_cxx_namespaces+set}" = set; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31939 ac_cpp='$CXXCPP $CPPFLAGS'
31940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31944 cat >conftest.$ac_ext <<_ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h. */
31950 namespace Outer { namespace Inner { int i = 0; }}
31954 using namespace Outer::Inner; return i;
31959 rm -f conftest.$ac_objext
31960 if { (ac_try="$ac_compile"
31961 case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_compile") 2>conftest.er1
31968 grep -v '^ *+' conftest.er1 >conftest.err
31970 cat conftest.err >&5
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); } &&
31973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31974 { (case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_try") 2>&5
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; } &&
31983 { ac_try='test -s conftest.$ac_objext'
31984 { (case "(($ac_try" in
31985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986 *) ac_try_echo=$ac_try;;
31988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989 (eval "$ac_try") 2>&5
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); }; }; then
31993 ac_cv_cxx_namespaces=yes
31995 echo "$as_me: failed program was:" >&5
31996 sed 's/^/| /' conftest.$ac_ext >&5
31998 ac_cv_cxx_namespaces=no
32001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32003 ac_cpp='$CPP $CPPFLAGS'
32004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32010 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32011 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32012 if test "$ac_cv_cxx_namespaces" = yes; then
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_NAMESPACES
32020 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32021 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32022 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32027 ac_cpp='$CXXCPP $CPPFLAGS'
32028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32032 cat >conftest.$ac_ext <<_ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h. */
32038 #include <ext/hash_map>
32039 #ifdef HAVE_NAMESPACES
32040 using namespace std;
32045 hash_map<int, int> t;
32050 rm -f conftest.$ac_objext
32051 if { (ac_try="$ac_compile"
32052 case "(($ac_try" in
32053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 *) ac_try_echo=$ac_try;;
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_compile") 2>conftest.er1
32059 grep -v '^ *+' conftest.er1 >conftest.err
32061 cat conftest.err >&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); } &&
32064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32065 { (case "(($ac_try" in
32066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067 *) ac_try_echo=$ac_try;;
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070 (eval "$ac_try") 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; } &&
32074 { ac_try='test -s conftest.$ac_objext'
32075 { (case "(($ac_try" in
32076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077 *) ac_try_echo=$ac_try;;
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080 (eval "$ac_try") 2>&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
32084 ac_cv_cxx_have_std_ext_hash_map=yes
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32089 ac_cv_cxx_have_std_ext_hash_map=no
32092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32094 ac_cpp='$CPP $CPPFLAGS'
32095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32100 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32101 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32102 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32105 cat >>confdefs.h <<\_ACEOF
32106 #define HAVE_STD_EXT_HASH_MAP 1
32111 cat >>confdefs.h <<\_ACEOF
32112 #define HAVE_STD_EXT_HASH_MAP 0
32117 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32118 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32119 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32120 echo $ECHO_N "(cached) $ECHO_C" >&6
32124 ac_cpp='$CXXCPP $CPPFLAGS'
32125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32129 cat >conftest.$ac_ext <<_ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h. */
32135 #include <ext/hash_map>
32136 #ifdef HAVE_NAMESPACES
32137 using namespace __gnu_cxx;
32142 hash_map<int,int> t;
32147 rm -f conftest.$ac_objext
32148 if { (ac_try="$ac_compile"
32149 case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_compile") 2>conftest.er1
32156 grep -v '^ *+' conftest.er1 >conftest.err
32158 cat conftest.err >&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); } &&
32161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.$ac_objext'
32172 { (case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_try") 2>&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
32181 ac_cv_cxx_have_gnu_ext_hash_map=yes
32183 echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32186 ac_cv_cxx_have_gnu_ext_hash_map=no
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32191 ac_cpp='$CPP $CPPFLAGS'
32192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32197 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32198 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32199 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32202 cat >>confdefs.h <<\_ACEOF
32203 #define HAVE_GNU_EXT_HASH_MAP 1
32208 cat >>confdefs.h <<\_ACEOF
32209 #define HAVE_GNU_EXT_HASH_MAP 0
32214 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32215 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32216 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32221 ac_cpp='$CXXCPP $CPPFLAGS'
32222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 #include <hash_map>
32236 hash_map<int,int> t;
32241 rm -f conftest.$ac_objext
32242 if { (ac_try="$ac_compile"
32243 case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_compile") 2>conftest.er1
32250 grep -v '^ *+' conftest.er1 >conftest.err
32252 cat conftest.err >&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } &&
32255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; } &&
32265 { ac_try='test -s conftest.$ac_objext'
32266 { (case "(($ac_try" in
32267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271 (eval "$ac_try") 2>&5
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; }; then
32275 ac_cv_cxx_have_global_hash_map=yes
32277 echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32280 ac_cv_cxx_have_global_hash_map=no
32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32285 ac_cpp='$CPP $CPPFLAGS'
32286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32291 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32292 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32293 if test "$ac_cv_cxx_have_global_hash_map" = yes
32296 cat >>confdefs.h <<\_ACEOF
32297 #define HAVE_GLOBAL_HASH_MAP 1
32302 cat >>confdefs.h <<\_ACEOF
32303 #define HAVE_GLOBAL_HASH_MAP 0
32308 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32309 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32310 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32315 ac_cpp='$CXXCPP $CPPFLAGS'
32316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32320 cat >conftest.$ac_ext <<_ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h. */
32326 #include <ext/hash_set>
32327 #ifdef HAVE_NAMESPACES
32328 using namespace std;
32338 rm -f conftest.$ac_objext
32339 if { (ac_try="$ac_compile"
32340 case "(($ac_try" in
32341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32342 *) ac_try_echo=$ac_try;;
32344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32345 (eval "$ac_compile") 2>conftest.er1
32347 grep -v '^ *+' conftest.er1 >conftest.err
32349 cat conftest.err >&5
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); } &&
32352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32353 { (case "(($ac_try" in
32354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355 *) ac_try_echo=$ac_try;;
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358 (eval "$ac_try") 2>&5
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; } &&
32362 { ac_try='test -s conftest.$ac_objext'
32363 { (case "(($ac_try" in
32364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32365 *) ac_try_echo=$ac_try;;
32367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32368 (eval "$ac_try") 2>&5
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); }; }; then
32372 ac_cv_cxx_have_std_ext_hash_set=yes
32374 echo "$as_me: failed program was:" >&5
32375 sed 's/^/| /' conftest.$ac_ext >&5
32377 ac_cv_cxx_have_std_ext_hash_set=no
32380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32382 ac_cpp='$CPP $CPPFLAGS'
32383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32388 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32389 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32390 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_STD_EXT_HASH_SET 1
32399 cat >>confdefs.h <<\_ACEOF
32400 #define HAVE_STD_EXT_HASH_SET 0
32405 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32406 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32407 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32412 ac_cpp='$CXXCPP $CPPFLAGS'
32413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32417 cat >conftest.$ac_ext <<_ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h. */
32423 #include <ext/hash_set>
32424 #ifdef HAVE_NAMESPACES
32425 using namespace __gnu_cxx;
32435 rm -f conftest.$ac_objext
32436 if { (ac_try="$ac_compile"
32437 case "(($ac_try" in
32438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_compile") 2>conftest.er1
32444 grep -v '^ *+' conftest.er1 >conftest.err
32446 cat conftest.err >&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); } &&
32449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32450 { (case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_try") 2>&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; } &&
32459 { ac_try='test -s conftest.$ac_objext'
32460 { (case "(($ac_try" in
32461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32462 *) ac_try_echo=$ac_try;;
32464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465 (eval "$ac_try") 2>&5
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; }; then
32469 ac_cv_cxx_have_gnu_ext_hash_set=yes
32471 echo "$as_me: failed program was:" >&5
32472 sed 's/^/| /' conftest.$ac_ext >&5
32474 ac_cv_cxx_have_gnu_ext_hash_set=no
32477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32479 ac_cpp='$CPP $CPPFLAGS'
32480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32485 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32486 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32487 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32490 cat >>confdefs.h <<\_ACEOF
32491 #define HAVE_GNU_EXT_HASH_SET 1
32496 cat >>confdefs.h <<\_ACEOF
32497 #define HAVE_GNU_EXT_HASH_SET 0
32502 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32503 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32504 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32505 echo $ECHO_N "(cached) $ECHO_C" >&6
32509 ac_cpp='$CXXCPP $CPPFLAGS'
32510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32514 cat >conftest.$ac_ext <<_ACEOF
32517 cat confdefs.h >>conftest.$ac_ext
32518 cat >>conftest.$ac_ext <<_ACEOF
32519 /* end confdefs.h. */
32520 #include <hash_set>
32524 hash_set<int> t; return 0;
32529 rm -f conftest.$ac_objext
32530 if { (ac_try="$ac_compile"
32531 case "(($ac_try" in
32532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32533 *) ac_try_echo=$ac_try;;
32535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32536 (eval "$ac_compile") 2>conftest.er1
32538 grep -v '^ *+' conftest.er1 >conftest.err
32540 cat conftest.err >&5
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); } &&
32543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32544 { (case "(($ac_try" in
32545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546 *) ac_try_echo=$ac_try;;
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549 (eval "$ac_try") 2>&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; } &&
32553 { ac_try='test -s conftest.$ac_objext'
32554 { (case "(($ac_try" in
32555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556 *) ac_try_echo=$ac_try;;
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559 (eval "$ac_try") 2>&5
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); }; }; then
32563 ac_cv_cxx_have_global_hash_set=yes
32565 echo "$as_me: failed program was:" >&5
32566 sed 's/^/| /' conftest.$ac_ext >&5
32568 ac_cv_cxx_have_global_hash_set=no
32571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32573 ac_cpp='$CPP $CPPFLAGS'
32574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32579 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32580 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32581 if test "$ac_cv_cxx_have_global_hash_set" = yes
32584 cat >>confdefs.h <<\_ACEOF
32585 #define HAVE_GLOBAL_HASH_SET 1
32590 cat >>confdefs.h <<\_ACEOF
32591 #define HAVE_GLOBAL_HASH_SET 0
32596 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32597 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32598 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32599 echo $ECHO_N "(cached) $ECHO_C" >&6
32603 ac_cpp='$CXXCPP $CPPFLAGS'
32604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32608 cat >conftest.$ac_ext <<_ACEOF
32611 cat confdefs.h >>conftest.$ac_ext
32612 cat >>conftest.$ac_ext <<_ACEOF
32613 /* end confdefs.h. */
32614 #include <iterator>
32615 #ifdef HAVE_NAMESPACES
32616 using namespace std;
32621 iterator<int,int,int> t; return 0;
32626 rm -f conftest.$ac_objext
32627 if { (ac_try="$ac_compile"
32628 case "(($ac_try" in
32629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_compile") 2>conftest.er1
32635 grep -v '^ *+' conftest.er1 >conftest.err
32637 cat conftest.err >&5
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); } &&
32640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32641 { (case "(($ac_try" in
32642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32643 *) ac_try_echo=$ac_try;;
32645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32646 (eval "$ac_try") 2>&5
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; } &&
32650 { ac_try='test -s conftest.$ac_objext'
32651 { (case "(($ac_try" in
32652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653 *) ac_try_echo=$ac_try;;
32655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656 (eval "$ac_try") 2>&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
32660 ac_cv_cxx_have_std_iterator=yes
32662 echo "$as_me: failed program was:" >&5
32663 sed 's/^/| /' conftest.$ac_ext >&5
32665 ac_cv_cxx_have_std_iterator=no
32668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32670 ac_cpp='$CPP $CPPFLAGS'
32671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32677 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32678 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32679 if test "$ac_cv_cxx_have_std_iterator" = yes
32682 cat >>confdefs.h <<\_ACEOF
32683 #define HAVE_STD_ITERATOR 1
32688 cat >>confdefs.h <<\_ACEOF
32689 #define HAVE_STD_ITERATOR 0
32694 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32695 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32696 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32697 echo $ECHO_N "(cached) $ECHO_C" >&6
32701 ac_cpp='$CXXCPP $CPPFLAGS'
32702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32706 cat >conftest.$ac_ext <<_ACEOF
32709 cat confdefs.h >>conftest.$ac_ext
32710 cat >>conftest.$ac_ext <<_ACEOF
32711 /* end confdefs.h. */
32712 #include <iterator>
32713 #ifdef HAVE_NAMESPACES
32714 using namespace std;
32719 bidirectional_iterator<int,int> t; return 0;
32724 rm -f conftest.$ac_objext
32725 if { (ac_try="$ac_compile"
32726 case "(($ac_try" in
32727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32728 *) ac_try_echo=$ac_try;;
32730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32731 (eval "$ac_compile") 2>conftest.er1
32733 grep -v '^ *+' conftest.er1 >conftest.err
32735 cat conftest.err >&5
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); } &&
32738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32739 { (case "(($ac_try" in
32740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741 *) ac_try_echo=$ac_try;;
32743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744 (eval "$ac_try") 2>&5
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; } &&
32748 { ac_try='test -s conftest.$ac_objext'
32749 { (case "(($ac_try" in
32750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751 *) ac_try_echo=$ac_try;;
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754 (eval "$ac_try") 2>&5
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); }; }; then
32758 ac_cv_cxx_have_bi_iterator=yes
32760 echo "$as_me: failed program was:" >&5
32761 sed 's/^/| /' conftest.$ac_ext >&5
32763 ac_cv_cxx_have_bi_iterator=no
32766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32768 ac_cpp='$CPP $CPPFLAGS'
32769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32775 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32776 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32777 if test "$ac_cv_cxx_have_bi_iterator" = yes
32780 cat >>confdefs.h <<\_ACEOF
32781 #define HAVE_BI_ITERATOR 1
32786 cat >>confdefs.h <<\_ACEOF
32787 #define HAVE_BI_ITERATOR 0
32792 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32793 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32794 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32795 echo $ECHO_N "(cached) $ECHO_C" >&6
32799 ac_cpp='$CXXCPP $CPPFLAGS'
32800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32804 cat >conftest.$ac_ext <<_ACEOF
32807 cat confdefs.h >>conftest.$ac_ext
32808 cat >>conftest.$ac_ext <<_ACEOF
32809 /* end confdefs.h. */
32810 #include <iterator>
32811 #ifdef HAVE_NAMESPACES
32812 using namespace std;
32817 forward_iterator<int,int> t; return 0;
32822 rm -f conftest.$ac_objext
32823 if { (ac_try="$ac_compile"
32824 case "(($ac_try" in
32825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32826 *) ac_try_echo=$ac_try;;
32828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32829 (eval "$ac_compile") 2>conftest.er1
32831 grep -v '^ *+' conftest.er1 >conftest.err
32833 cat conftest.err >&5
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); } &&
32836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32837 { (case "(($ac_try" in
32838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839 *) ac_try_echo=$ac_try;;
32841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842 (eval "$ac_try") 2>&5
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); }; } &&
32846 { ac_try='test -s conftest.$ac_objext'
32847 { (case "(($ac_try" in
32848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849 *) ac_try_echo=$ac_try;;
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852 (eval "$ac_try") 2>&5
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); }; }; then
32856 ac_cv_cxx_have_fwd_iterator=yes
32858 echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32861 ac_cv_cxx_have_fwd_iterator=no
32864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32866 ac_cpp='$CPP $CPPFLAGS'
32867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32873 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32874 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32875 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32878 cat >>confdefs.h <<\_ACEOF
32879 #define HAVE_FWD_ITERATOR 1
32884 cat >>confdefs.h <<\_ACEOF
32885 #define HAVE_FWD_ITERATOR 0
32891 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32892 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32893 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32897 ac_cpp='$CXXCPP $CPPFLAGS'
32898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32902 cat >conftest.$ac_ext <<_ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32917 rm -f conftest.$ac_objext
32918 if { (ac_try="$ac_compile"
32919 case "(($ac_try" in
32920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921 *) ac_try_echo=$ac_try;;
32923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32924 (eval "$ac_compile") 2>conftest.er1
32926 grep -v '^ *+' conftest.er1 >conftest.err
32928 cat conftest.err >&5
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); } &&
32931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32932 { (case "(($ac_try" in
32933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934 *) ac_try_echo=$ac_try;;
32936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937 (eval "$ac_try") 2>&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); }; } &&
32941 { ac_try='test -s conftest.$ac_objext'
32942 { (case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_try") 2>&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 ac_cv_func_isnan_in_math_h=yes
32953 echo "$as_me: failed program was:" >&5
32954 sed 's/^/| /' conftest.$ac_ext >&5
32956 ac_cv_func_isnan_in_math_h=no
32959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32961 ac_cpp='$CPP $CPPFLAGS'
32962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32967 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32968 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32971 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32973 cat >>confdefs.h <<\_ACEOF
32974 #define HAVE_ISNAN_IN_MATH_H 1
32979 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32980 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32981 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32985 ac_cpp='$CXXCPP $CPPFLAGS'
32986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32990 cat >conftest.$ac_ext <<_ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
33005 rm -f conftest.$ac_objext
33006 if { (ac_try="$ac_compile"
33007 case "(($ac_try" in
33008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009 *) ac_try_echo=$ac_try;;
33011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012 (eval "$ac_compile") 2>conftest.er1
33014 grep -v '^ *+' conftest.er1 >conftest.err
33016 cat conftest.err >&5
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); } &&
33019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33020 { (case "(($ac_try" in
33021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022 *) ac_try_echo=$ac_try;;
33024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_try") 2>&5
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; } &&
33029 { ac_try='test -s conftest.$ac_objext'
33030 { (case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_try") 2>&5
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; }; then
33039 ac_cv_func_isnan_in_cmath=yes
33041 echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33044 ac_cv_func_isnan_in_cmath=no
33047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33049 ac_cpp='$CPP $CPPFLAGS'
33050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33055 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33056 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33058 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33060 cat >>confdefs.h <<\_ACEOF
33061 #define HAVE_ISNAN_IN_CMATH 1
33066 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33067 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33068 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33072 ac_cpp='$CXXCPP $CPPFLAGS'
33073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33077 cat >conftest.$ac_ext <<_ACEOF
33080 cat confdefs.h >>conftest.$ac_ext
33081 cat >>conftest.$ac_ext <<_ACEOF
33082 /* end confdefs.h. */
33087 float f; std::isnan(f);
33092 rm -f conftest.$ac_objext
33093 if { (ac_try="$ac_compile"
33094 case "(($ac_try" in
33095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33096 *) ac_try_echo=$ac_try;;
33098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33099 (eval "$ac_compile") 2>conftest.er1
33101 grep -v '^ *+' conftest.er1 >conftest.err
33103 cat conftest.err >&5
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); } &&
33106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33107 { (case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_try") 2>&5
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; } &&
33116 { ac_try='test -s conftest.$ac_objext'
33117 { (case "(($ac_try" in
33118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33119 *) ac_try_echo=$ac_try;;
33121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33122 (eval "$ac_try") 2>&5
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }; then
33126 ac_cv_func_std_isnan_in_cmath=yes
33128 echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33131 ac_cv_func_std_isnan_in_cmath=no
33134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33136 ac_cpp='$CPP $CPPFLAGS'
33137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33142 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33143 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33145 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33147 cat >>confdefs.h <<\_ACEOF
33148 #define HAVE_STD_ISNAN_IN_CMATH 1
33154 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33155 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33156 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33157 echo $ECHO_N "(cached) $ECHO_C" >&6
33160 ac_cpp='$CXXCPP $CPPFLAGS'
33161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33165 cat >conftest.$ac_ext <<_ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h. */
33180 rm -f conftest.$ac_objext
33181 if { (ac_try="$ac_compile"
33182 case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_compile") 2>conftest.er1
33189 grep -v '^ *+' conftest.er1 >conftest.err
33191 cat conftest.err >&5
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); } &&
33194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33195 { (case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_try") 2>&5
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest.$ac_objext'
33205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
33214 ac_cv_func_isinf_in_math_h=yes
33216 echo "$as_me: failed program was:" >&5
33217 sed 's/^/| /' conftest.$ac_ext >&5
33219 ac_cv_func_isinf_in_math_h=no
33222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33224 ac_cpp='$CPP $CPPFLAGS'
33225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33230 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33231 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33233 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33235 cat >>confdefs.h <<\_ACEOF
33236 #define HAVE_ISINF_IN_MATH_H 1
33241 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33242 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33243 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33244 echo $ECHO_N "(cached) $ECHO_C" >&6
33247 ac_cpp='$CXXCPP $CPPFLAGS'
33248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33252 cat >conftest.$ac_ext <<_ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h. */
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274 (eval "$ac_compile") 2>conftest.er1
33276 grep -v '^ *+' conftest.er1 >conftest.err
33278 cat conftest.err >&5
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); } &&
33281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; } &&
33291 { ac_try='test -s conftest.$ac_objext'
33292 { (case "(($ac_try" in
33293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294 *) ac_try_echo=$ac_try;;
33296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297 (eval "$ac_try") 2>&5
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); }; }; then
33301 ac_cv_func_isinf_in_cmath=yes
33303 echo "$as_me: failed program was:" >&5
33304 sed 's/^/| /' conftest.$ac_ext >&5
33306 ac_cv_func_isinf_in_cmath=no
33309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33311 ac_cpp='$CPP $CPPFLAGS'
33312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33317 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33318 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33320 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33322 cat >>confdefs.h <<\_ACEOF
33323 #define HAVE_ISINF_IN_CMATH 1
33328 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33329 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33330 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33331 echo $ECHO_N "(cached) $ECHO_C" >&6
33334 ac_cpp='$CXXCPP $CPPFLAGS'
33335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33339 cat >conftest.$ac_ext <<_ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h. */
33349 float f; std::isinf(f)}
33354 rm -f conftest.$ac_objext
33355 if { (ac_try="$ac_compile"
33356 case "(($ac_try" in
33357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33358 *) ac_try_echo=$ac_try;;
33360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33361 (eval "$ac_compile") 2>conftest.er1
33363 grep -v '^ *+' conftest.er1 >conftest.err
33365 cat conftest.err >&5
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); } &&
33368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33369 { (case "(($ac_try" in
33370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371 *) ac_try_echo=$ac_try;;
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374 (eval "$ac_try") 2>&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest.$ac_objext'
33379 { (case "(($ac_try" in
33380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381 *) ac_try_echo=$ac_try;;
33383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384 (eval "$ac_try") 2>&5
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); }; }; then
33388 ac_cv_func_std_isinf_in_cmath=yes
33390 echo "$as_me: failed program was:" >&5
33391 sed 's/^/| /' conftest.$ac_ext >&5
33393 ac_cv_func_std_isinf_in_cmath=no
33396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 ac_cpp='$CPP $CPPFLAGS'
33399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33404 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33405 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33407 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33409 cat >>confdefs.h <<\_ACEOF
33410 #define HAVE_STD_ISINF_IN_CMATH 1
33415 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33416 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33417 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33418 echo $ECHO_N "(cached) $ECHO_C" >&6
33421 ac_cpp='$CXXCPP $CPPFLAGS'
33422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33426 cat >conftest.$ac_ext <<_ACEOF
33429 cat confdefs.h >>conftest.$ac_ext
33430 cat >>conftest.$ac_ext <<_ACEOF
33431 /* end confdefs.h. */
33432 #include <ieeefp.h>
33436 float f; finite(f);
33441 rm -f conftest.$ac_objext
33442 if { (ac_try="$ac_compile"
33443 case "(($ac_try" in
33444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445 *) ac_try_echo=$ac_try;;
33447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448 (eval "$ac_compile") 2>conftest.er1
33450 grep -v '^ *+' conftest.er1 >conftest.err
33452 cat conftest.err >&5
33453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454 (exit $ac_status); } &&
33455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33456 { (case "(($ac_try" in
33457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458 *) ac_try_echo=$ac_try;;
33460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33461 (eval "$ac_try") 2>&5
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); }; } &&
33465 { ac_try='test -s conftest.$ac_objext'
33466 { (case "(($ac_try" in
33467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33468 *) ac_try_echo=$ac_try;;
33470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471 (eval "$ac_try") 2>&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
33475 ac_cv_func_finite_in_ieeefp_h=yes
33477 echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33480 ac_cv_func_finite_in_ieeefp_h=no
33483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33485 ac_cpp='$CPP $CPPFLAGS'
33486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33491 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33492 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33494 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33496 cat >>confdefs.h <<\_ACEOF
33497 #define HAVE_FINITE_IN_IEEEFP_H 1
33504 if test "$llvm_cv_platform_type" = "Unix" ; then
33507 for ac_header in stdlib.h unistd.h
33509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33514 echo $ECHO_N "(cached) $ECHO_C" >&6
33516 ac_res=`eval echo '${'$as_ac_Header'}'`
33517 { echo "$as_me:$LINENO: result: $ac_res" >&5
33518 echo "${ECHO_T}$ac_res" >&6; }
33520 # Is the header compilable?
33521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33523 cat >conftest.$ac_ext <<_ACEOF
33526 cat confdefs.h >>conftest.$ac_ext
33527 cat >>conftest.$ac_ext <<_ACEOF
33528 /* end confdefs.h. */
33529 $ac_includes_default
33530 #include <$ac_header>
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
33566 ac_header_compiler=yes
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33571 ac_header_compiler=no
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33576 echo "${ECHO_T}$ac_header_compiler" >&6; }
33578 # Is the header present?
33579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33581 cat >conftest.$ac_ext <<_ACEOF
33584 cat confdefs.h >>conftest.$ac_ext
33585 cat >>conftest.$ac_ext <<_ACEOF
33586 /* end confdefs.h. */
33587 #include <$ac_header>
33589 if { (ac_try="$ac_cpp conftest.$ac_ext"
33590 case "(($ac_try" in
33591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592 *) ac_try_echo=$ac_try;;
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33597 grep -v '^ *+' conftest.er1 >conftest.err
33599 cat conftest.err >&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); } >/dev/null; then
33602 if test -s conftest.err; then
33603 ac_cpp_err=$ac_c_preproc_warn_flag
33604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33611 if test -z "$ac_cpp_err"; then
33612 ac_header_preproc=yes
33614 echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33617 ac_header_preproc=no
33620 rm -f conftest.err conftest.$ac_ext
33621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33622 echo "${ECHO_T}$ac_header_preproc" >&6; }
33624 # So? What about this header?
33625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33631 ac_header_preproc=yes
33634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33647 ## ----------------------------------- ##
33648 ## Report this to llvmbugs@cs.uiuc.edu ##
33649 ## ----------------------------------- ##
33651 ) | sed "s/^/$as_me: WARNING: /" >&2
33654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33657 echo $ECHO_N "(cached) $ECHO_C" >&6
33659 eval "$as_ac_Header=\$ac_header_preproc"
33661 ac_res=`eval echo '${'$as_ac_Header'}'`
33662 { echo "$as_me:$LINENO: result: $ac_res" >&5
33663 echo "${ECHO_T}$ac_res" >&6; }
33666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33667 cat >>confdefs.h <<_ACEOF
33668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33676 for ac_func in getpagesize
33678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33682 echo $ECHO_N "(cached) $ECHO_C" >&6
33684 cat >conftest.$ac_ext <<_ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h. */
33690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33692 #define $ac_func innocuous_$ac_func
33694 /* System header to define __stub macros and hopefully few prototypes,
33695 which can conflict with char $ac_func (); below.
33696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33697 <limits.h> exists even on freestanding compilers. */
33700 # include <limits.h>
33702 # include <assert.h>
33707 /* Override any GCC internal prototype to avoid an error.
33708 Use char because int might match the return type of a GCC
33709 builtin and then its argument prototype would still apply. */
33714 /* The GNU C library defines this for functions which it implements
33715 to always fail with ENOSYS. Some functions are actually named
33716 something starting with __ and the normal name is an alias. */
33717 #if defined __stub_$ac_func || defined __stub___$ac_func
33724 return $ac_func ();
33729 rm -f conftest.$ac_objext conftest$ac_exeext
33730 if { (ac_try="$ac_link"
33731 case "(($ac_try" in
33732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733 *) ac_try_echo=$ac_try;;
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736 (eval "$ac_link") 2>conftest.er1
33738 grep -v '^ *+' conftest.er1 >conftest.err
33740 cat conftest.err >&5
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); } &&
33743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33744 { (case "(($ac_try" in
33745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33746 *) ac_try_echo=$ac_try;;
33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749 (eval "$ac_try") 2>&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; } &&
33753 { ac_try='test -s conftest$ac_exeext'
33754 { (case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759 (eval "$ac_try") 2>&5
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; }; then
33763 eval "$as_ac_var=yes"
33765 echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33768 eval "$as_ac_var=no"
33771 rm -f core conftest.err conftest.$ac_objext \
33772 conftest$ac_exeext conftest.$ac_ext
33774 ac_res=`eval echo '${'$as_ac_var'}'`
33775 { echo "$as_me:$LINENO: result: $ac_res" >&5
33776 echo "${ECHO_T}$ac_res" >&6; }
33777 if test `eval echo '${'$as_ac_var'}'` = yes; then
33778 cat >>confdefs.h <<_ACEOF
33779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33785 { echo "$as_me:$LINENO: checking for working mmap" >&5
33786 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33787 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33788 echo $ECHO_N "(cached) $ECHO_C" >&6
33790 if test "$cross_compiling" = yes; then
33791 ac_cv_func_mmap_fixed_mapped=no
33793 cat >conftest.$ac_ext <<_ACEOF
33796 cat confdefs.h >>conftest.$ac_ext
33797 cat >>conftest.$ac_ext <<_ACEOF
33798 /* end confdefs.h. */
33799 $ac_includes_default
33800 /* malloc might have been renamed as rpl_malloc. */
33803 /* Thanks to Mike Haertel and Jim Avera for this test.
33804 Here is a matrix of mmap possibilities:
33805 mmap private not fixed
33806 mmap private fixed at somewhere currently unmapped
33807 mmap private fixed at somewhere already mapped
33808 mmap shared not fixed
33809 mmap shared fixed at somewhere currently unmapped
33810 mmap shared fixed at somewhere already mapped
33811 For private mappings, we should verify that changes cannot be read()
33812 back from the file, nor mmap's back from the file at a different
33813 address. (There have been systems where private was not correctly
33814 implemented like the infamous i386 svr4.0, and systems where the
33815 VM page cache was not coherent with the file system buffer cache
33816 like early versions of FreeBSD and possibly contemporary NetBSD.)
33817 For shared mappings, we should conversely verify that changes get
33818 propagated back to all the places they're supposed to be.
33820 Grep wants private fixed already mapped.
33821 The main things grep needs to know about mmap are:
33822 * does it exist and is it safe to write into the mmap'd area
33823 * how to use it (BSD variants) */
33826 #include <sys/mman.h>
33828 #if !STDC_HEADERS && !HAVE_STDLIB_H
33832 /* This mess was copied from the GNU getpagesize.h. */
33833 #if !HAVE_GETPAGESIZE
33834 /* Assume that all systems that can run configure have sys/param.h. */
33835 # if !HAVE_SYS_PARAM_H
33836 # define HAVE_SYS_PARAM_H 1
33839 # ifdef _SC_PAGESIZE
33840 # define getpagesize() sysconf(_SC_PAGESIZE)
33841 # else /* no _SC_PAGESIZE */
33842 # if HAVE_SYS_PARAM_H
33843 # include <sys/param.h>
33844 # ifdef EXEC_PAGESIZE
33845 # define getpagesize() EXEC_PAGESIZE
33846 # else /* no EXEC_PAGESIZE */
33848 # define getpagesize() NBPG * CLSIZE
33851 # endif /* no CLSIZE */
33852 # else /* no NBPG */
33854 # define getpagesize() NBPC
33855 # else /* no NBPC */
33857 # define getpagesize() PAGESIZE
33858 # endif /* PAGESIZE */
33859 # endif /* no NBPC */
33860 # endif /* no NBPG */
33861 # endif /* no EXEC_PAGESIZE */
33862 # else /* no HAVE_SYS_PARAM_H */
33863 # define getpagesize() 8192 /* punt totally */
33864 # endif /* no HAVE_SYS_PARAM_H */
33865 # endif /* no _SC_PAGESIZE */
33867 #endif /* no HAVE_GETPAGESIZE */
33872 char *data, *data2, *data3;
33876 pagesize = getpagesize ();
33878 /* First, make a file with some known garbage in it. */
33879 data = (char *) malloc (pagesize);
33882 for (i = 0; i < pagesize; ++i)
33883 *(data + i) = rand ();
33885 fd = creat ("conftest.mmap", 0600);
33888 if (write (fd, data, pagesize) != pagesize)
33892 /* Next, try to mmap the file at a fixed address which already has
33893 something else allocated at it. If we can, also make sure that
33894 we see the same garbage. */
33895 fd = open ("conftest.mmap", O_RDWR);
33898 data2 = (char *) malloc (2 * pagesize);
33901 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33902 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33903 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33905 for (i = 0; i < pagesize; ++i)
33906 if (*(data + i) != *(data2 + i))
33909 /* Finally, make sure that changes to the mapped area do not
33910 percolate back to the file as seen by read(). (This is a bug on
33911 some variants of i386 svr4.0.) */
33912 for (i = 0; i < pagesize; ++i)
33913 *(data2 + i) = *(data2 + i) + 1;
33914 data3 = (char *) malloc (pagesize);
33917 if (read (fd, data3, pagesize) != pagesize)
33919 for (i = 0; i < pagesize; ++i)
33920 if (*(data + i) != *(data3 + i))
33926 rm -f conftest$ac_exeext
33927 if { (ac_try="$ac_link"
33928 case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933 (eval "$ac_link") 2>&5
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33937 { (case "(($ac_try" in
33938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939 *) ac_try_echo=$ac_try;;
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942 (eval "$ac_try") 2>&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; }; then
33946 ac_cv_func_mmap_fixed_mapped=yes
33948 echo "$as_me: program exited with status $ac_status" >&5
33949 echo "$as_me: failed program was:" >&5
33950 sed 's/^/| /' conftest.$ac_ext >&5
33952 ( exit $ac_status )
33953 ac_cv_func_mmap_fixed_mapped=no
33955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33960 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33961 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33962 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33964 cat >>confdefs.h <<\_ACEOF
33965 #define HAVE_MMAP 1
33969 rm -f conftest.mmap
33971 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33972 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33973 if test "${ac_cv_func_mmap_file+set}" = set; then
33974 echo $ECHO_N "(cached) $ECHO_C" >&6
33977 ac_cpp='$CPP $CPPFLAGS'
33978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33982 if test "$cross_compiling" = yes; then
33983 ac_cv_func_mmap_file=no
33985 cat >conftest.$ac_ext <<_ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h. */
33993 #include <sys/types.h>
33994 #include <sys/mman.h>
34002 fd = creat ("foo",0777);
34003 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34005 return (fd != (int) MAP_FAILED);
34010 rm -f conftest$ac_exeext
34011 if { (ac_try="$ac_link"
34012 case "(($ac_try" in
34013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34014 *) ac_try_echo=$ac_try;;
34016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34017 (eval "$ac_link") 2>&5
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34021 { (case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34030 ac_cv_func_mmap_file=yes
34032 echo "$as_me: program exited with status $ac_status" >&5
34033 echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34036 ( exit $ac_status )
34037 ac_cv_func_mmap_file=no
34039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34044 ac_cpp='$CPP $CPPFLAGS'
34045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34051 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34052 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34053 if test "$ac_cv_func_mmap_file" = yes; then
34055 cat >>confdefs.h <<\_ACEOF
34056 #define HAVE_MMAP_FILE
34063 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34064 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34065 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34066 echo $ECHO_N "(cached) $ECHO_C" >&6
34068 if test "$llvm_cv_os_type" = "Interix" ; then
34069 ac_cv_need_dev_zero_for_mmap=yes
34071 ac_cv_need_dev_zero_for_mmap=no
34075 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34076 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34077 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34079 cat >>confdefs.h <<\_ACEOF
34080 #define NEED_DEV_ZERO_FOR_MMAP 1
34085 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34087 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34088 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34090 if test "$ac_cv_func_mmap_file" = "no"
34092 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34093 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34099 for ac_func in __dso_handle
34101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34105 echo $ECHO_N "(cached) $ECHO_C" >&6
34107 cat >conftest.$ac_ext <<_ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h. */
34113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34115 #define $ac_func innocuous_$ac_func
34117 /* System header to define __stub macros and hopefully few prototypes,
34118 which can conflict with char $ac_func (); below.
34119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34120 <limits.h> exists even on freestanding compilers. */
34123 # include <limits.h>
34125 # include <assert.h>
34130 /* Override any GCC internal prototype to avoid an error.
34131 Use char because int might match the return type of a GCC
34132 builtin and then its argument prototype would still apply. */
34137 /* The GNU C library defines this for functions which it implements
34138 to always fail with ENOSYS. Some functions are actually named
34139 something starting with __ and the normal name is an alias. */
34140 #if defined __stub_$ac_func || defined __stub___$ac_func
34147 return $ac_func ();
34152 rm -f conftest.$ac_objext conftest$ac_exeext
34153 if { (ac_try="$ac_link"
34154 case "(($ac_try" in
34155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156 *) ac_try_echo=$ac_try;;
34158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159 (eval "$ac_link") 2>conftest.er1
34161 grep -v '^ *+' conftest.er1 >conftest.err
34163 cat conftest.err >&5
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); } &&
34166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34167 { (case "(($ac_try" in
34168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169 *) ac_try_echo=$ac_try;;
34171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34172 (eval "$ac_try") 2>&5
34174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34175 (exit $ac_status); }; } &&
34176 { ac_try='test -s conftest$ac_exeext'
34177 { (case "(($ac_try" in
34178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179 *) ac_try_echo=$ac_try;;
34181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182 (eval "$ac_try") 2>&5
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); }; }; then
34186 eval "$as_ac_var=yes"
34188 echo "$as_me: failed program was:" >&5
34189 sed 's/^/| /' conftest.$ac_ext >&5
34191 eval "$as_ac_var=no"
34194 rm -f core conftest.err conftest.$ac_objext \
34195 conftest$ac_exeext conftest.$ac_ext
34197 ac_res=`eval echo '${'$as_ac_var'}'`
34198 { echo "$as_me:$LINENO: result: $ac_res" >&5
34199 echo "${ECHO_T}$ac_res" >&6; }
34200 if test `eval echo '${'$as_ac_var'}'` = yes; then
34201 cat >>confdefs.h <<_ACEOF
34202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34209 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34210 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34211 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34214 llvm_cv_llvmgcc_sanity="no"
34215 if test -x "$LLVMGCC" ; then
34216 cp /dev/null conftest.c
34217 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34218 grep 'target datalayout =' > /dev/null 2>&1
34219 if test $? -eq 0 ; then
34220 llvm_cv_llvmgcc_sanity="yes"
34225 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34226 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34228 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34229 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34230 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34231 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34232 LLVMCC1=$llvmcc1path
34234 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34235 LLVMCC1PLUS=$llvmcc1pluspath
34237 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34238 LLVMGCCDIR=$llvmgccdir
34240 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34241 LLVMGCCLIBEXEC=$llvmgcclibexec
34243 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34244 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34245 LLVMGCC_VERSION=$llvmgccversion
34247 LLVMGCC_MAJVERS=$llvmgccmajvers
34249 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34250 LLVMGCC_LANGS=$llvmgcclangs
34252 { echo "$as_me:$LINENO: result: ok" >&5
34253 echo "${ECHO_T}ok" >&6; }
34256 SHLIBEXT=$libltdl_cv_shlibext
34259 # Translate the various configuration directories and other basic
34260 # information into substitutions that will end up in Makefile.config.in
34261 # that these configured values can be used by the makefiles
34262 if test "${prefix}" = "NONE" ; then
34263 prefix="/usr/local"
34265 eval LLVM_PREFIX="${prefix}";
34266 eval LLVM_BINDIR="${prefix}/bin";
34267 eval LLVM_LIBDIR="${prefix}/lib";
34268 eval LLVM_DATADIR="${prefix}/share/llvm";
34269 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34270 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34271 eval LLVM_INCLUDEDIR="${prefix}/include";
34272 eval LLVM_INFODIR="${prefix}/info";
34273 eval LLVM_MANDIR="${prefix}/man";
34274 LLVM_CONFIGTIME=`date`
34286 # Place the various directores into the config.h file as #defines so that we
34287 # can know about the installation paths within LLVM.
34289 cat >>confdefs.h <<_ACEOF
34290 #define LLVM_PREFIX "$LLVM_PREFIX"
34294 cat >>confdefs.h <<_ACEOF
34295 #define LLVM_BINDIR "$LLVM_BINDIR"
34299 cat >>confdefs.h <<_ACEOF
34300 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34304 cat >>confdefs.h <<_ACEOF
34305 #define LLVM_DATADIR "$LLVM_DATADIR"
34309 cat >>confdefs.h <<_ACEOF
34310 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34314 cat >>confdefs.h <<_ACEOF
34315 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34319 cat >>confdefs.h <<_ACEOF
34320 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34324 cat >>confdefs.h <<_ACEOF
34325 #define LLVM_INFODIR "$LLVM_INFODIR"
34329 cat >>confdefs.h <<_ACEOF
34330 #define LLVM_MANDIR "$LLVM_MANDIR"
34334 cat >>confdefs.h <<_ACEOF
34335 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34339 cat >>confdefs.h <<_ACEOF
34340 #define LLVM_HOSTTRIPLE "$host"
34344 # Determine which bindings to build.
34345 if test "$BINDINGS_TO_BUILD" = auto ; then
34346 BINDINGS_TO_BUILD=""
34347 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34348 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34351 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34354 # This isn't really configurey, but it avoids having to repeat the list in
34359 # Do any work necessary to ensure that bindings have what they need.
34360 binding_prereqs_failed=0
34361 for a_binding in $BINDINGS_TO_BUILD ; do
34362 case "$a_binding" in
34364 if test "x$OCAMLC" = x ; then
34365 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34366 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34367 binding_prereqs_failed=1
34369 if test "x$OCAMLDEP" = x ; then
34370 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34371 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34372 binding_prereqs_failed=1
34374 if test "x$OCAMLOPT" = x ; then
34375 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34376 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34378 if test "x$with_ocaml_libdir" != xauto ; then
34379 OCAML_LIBDIR=$with_ocaml_libdir
34382 ocaml_stdlib="`"$OCAMLC" -where`"
34383 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34385 # ocaml stdlib is beneath our prefix; use stdlib
34386 OCAML_LIBDIR=$ocaml_stdlib
34389 # ocaml stdlib is outside our prefix; use libdir/ocaml
34390 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34397 if test "$binding_prereqs_failed" = 1 ; then
34398 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34399 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34400 { (exit 1); exit 1; }; }
34403 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34404 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34405 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34406 echo $ECHO_N "(cached) $ECHO_C" >&6
34409 ac_cpp='$CXXCPP $CPPFLAGS'
34410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34414 oldcxxflags="$CXXFLAGS"
34415 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34416 cat >conftest.$ac_ext <<_ACEOF
34419 cat confdefs.h >>conftest.$ac_ext
34420 cat >>conftest.$ac_ext <<_ACEOF
34421 /* end confdefs.h. */
34431 rm -f conftest.$ac_objext
34432 if { (ac_try="$ac_compile"
34433 case "(($ac_try" in
34434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435 *) ac_try_echo=$ac_try;;
34437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438 (eval "$ac_compile") 2>conftest.er1
34440 grep -v '^ *+' conftest.er1 >conftest.err
34442 cat conftest.err >&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } &&
34445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34446 { (case "(($ac_try" in
34447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448 *) ac_try_echo=$ac_try;;
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451 (eval "$ac_try") 2>&5
34453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454 (exit $ac_status); }; } &&
34455 { ac_try='test -s conftest.$ac_objext'
34456 { (case "(($ac_try" in
34457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34458 *) ac_try_echo=$ac_try;;
34460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34461 (eval "$ac_try") 2>&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); }; }; then
34465 llvm_cv_cxx_visibility_inlines_hidden=yes
34467 echo "$as_me: failed program was:" >&5
34468 sed 's/^/| /' conftest.$ac_ext >&5
34470 llvm_cv_cxx_visibility_inlines_hidden=no
34473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34474 CXXFLAGS="$oldcxxflags"
34476 ac_cpp='$CPP $CPPFLAGS'
34477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34483 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34484 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34485 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34486 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34489 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34495 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34497 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34499 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34501 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34503 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34506 ac_config_files="$ac_config_files Makefile.config"
34509 ac_config_files="$ac_config_files llvm.spec"
34512 ac_config_files="$ac_config_files docs/doxygen.cfg"
34515 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34518 ac_config_commands="$ac_config_commands setup"
34520 ac_config_commands="$ac_config_commands Makefile"
34523 ac_config_commands="$ac_config_commands Makefile.common"
34526 ac_config_commands="$ac_config_commands examples/Makefile"
34529 ac_config_commands="$ac_config_commands lib/Makefile"
34532 ac_config_commands="$ac_config_commands runtime/Makefile"
34535 ac_config_commands="$ac_config_commands test/Makefile"
34538 ac_config_commands="$ac_config_commands test/Makefile.tests"
34541 ac_config_commands="$ac_config_commands tools/Makefile"
34544 ac_config_commands="$ac_config_commands utils/Makefile"
34547 ac_config_commands="$ac_config_commands projects/Makefile"
34550 ac_config_commands="$ac_config_commands bindings/Makefile"
34553 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34557 cat >confcache <<\_ACEOF
34558 # This file is a shell script that caches the results of configure
34559 # tests run on this system so they can be shared between configure
34560 # scripts and configure runs, see configure's option --config-cache.
34561 # It is not useful on other systems. If it contains results you don't
34562 # want to keep, you may remove or edit it.
34564 # config.status only pays attention to the cache file if you give it
34565 # the --recheck option to rerun configure.
34567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34569 # following values.
34573 # The following way of writing the cache mishandles newlines in values,
34574 # but we know of no workaround that is simple, portable, and efficient.
34575 # So, we kill variables containing newlines.
34576 # Ultrix sh set writes to stderr and can't be redirected directly,
34577 # and sets the high bit in the cache file unless we assign to the vars.
34579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34580 eval ac_val=\$$ac_var
34584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34588 _ | IFS | as_nl) ;; #(
34589 *) $as_unset $ac_var ;;
34595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34596 *${as_nl}ac_space=\ *)
34597 # `set' does not quote correctly, so add quotes (double-quote
34598 # substitution turns \\\\ into \\, and sed turns \\ into \).
34601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34604 # `set' quotes correctly as required by POSIX, so do not add quotes.
34605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34619 if test -w "$cache_file"; then
34620 test "x$cache_file" != "x/dev/null" &&
34621 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34622 echo "$as_me: updating cache $cache_file" >&6;}
34623 cat confcache >$cache_file
34625 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34626 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34632 # Let make expand exec_prefix.
34633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34635 DEFS=-DHAVE_CONFIG_H
34639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34640 # 1. Remove the extension, and $U if already installed.
34641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34642 ac_i=`echo "$ac_i" | sed "$ac_script"`
34643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34644 # will be set to the directory where LIBOBJS objects are built.
34645 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34646 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34648 LIBOBJS=$ac_libobjs
34650 LTLIBOBJS=$ac_ltlibobjs
34653 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34654 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34655 Usually this means the macro was only invoked conditionally." >&5
34656 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34657 Usually this means the macro was only invoked conditionally." >&2;}
34658 { (exit 1); exit 1; }; }
34660 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34661 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34662 Usually this means the macro was only invoked conditionally." >&5
34663 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34664 Usually this means the macro was only invoked conditionally." >&2;}
34665 { (exit 1); exit 1; }; }
34668 : ${CONFIG_STATUS=./config.status}
34669 ac_clean_files_save=$ac_clean_files
34670 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34672 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34673 cat >$CONFIG_STATUS <<_ACEOF
34675 # Generated by $as_me.
34676 # Run this file to recreate the current configuration.
34677 # Compiler output produced by configure, useful for debugging
34678 # configure, is in config.log if it exists.
34681 ac_cs_recheck=false
34683 SHELL=\${CONFIG_SHELL-$SHELL}
34686 cat >>$CONFIG_STATUS <<\_ACEOF
34687 ## --------------------- ##
34688 ## M4sh Initialization. ##
34689 ## --------------------- ##
34691 # Be Bourne compatible
34692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34695 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34696 # is contrary to our usage. Disable this feature.
34697 alias -g '${1+"$@"}'='"$@"'
34698 setopt NO_GLOB_SUBST
34700 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34702 BIN_SH=xpg4; export BIN_SH # for Tru64
34703 DUALCASE=1; export DUALCASE # for MKS sh
34707 # Avoid depending upon Character Ranges.
34708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34711 as_cr_digits='0123456789'
34712 as_cr_alnum=$as_cr_Letters$as_cr_digits
34714 # The user is always right.
34715 if test "${PATH_SEPARATOR+set}" != set; then
34716 echo "#! /bin/sh" >conf$$.sh
34717 echo "exit 0" >>conf$$.sh
34719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34727 # Support unset when possible.
34728 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34736 # We need space, tab and new line, in precisely that order. Quoting is
34737 # there to prevent editors from complaining about space-tab.
34738 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34739 # splitting by setting IFS to empty value.)
34744 # Find who we are. Look in the path if we contain no directory separator.
34746 *[\\/]* ) as_myself=$0 ;;
34747 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34748 for as_dir in $PATH
34751 test -z "$as_dir" && as_dir=.
34752 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34758 # We did not find ourselves, most probably we were run as `sh COMMAND'
34759 # in which case we are not to be found in the path.
34760 if test "x$as_myself" = x; then
34763 if test ! -f "$as_myself"; then
34764 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34765 { (exit 1); exit 1; }
34768 # Work around bugs in pre-3.0 UWIN ksh.
34769 for as_var in ENV MAIL MAILPATH
34770 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34778 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34779 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34780 LC_TELEPHONE LC_TIME
34782 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34783 eval $as_var=C; export $as_var
34785 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34789 # Required to use basename.
34790 if expr a : '\(a\)' >/dev/null 2>&1 &&
34791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34798 as_basename=basename
34804 # Name of the executable.
34805 as_me=`$as_basename -- "$0" ||
34806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34807 X"$0" : 'X\(//\)$' \| \
34808 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34810 sed '/^.*\/\([^/][^/]*\)\/*$/{
34829 as_lineno_1=$LINENO
34830 as_lineno_2=$LINENO
34831 test "x$as_lineno_1" != "x$as_lineno_2" &&
34832 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34835 # uniformly replaced by the line number. The first 'sed' inserts a
34836 # line-number line after each line using $LINENO; the second 'sed'
34837 # does the real work. The second script uses 'N' to pair each
34838 # line-number line with the line containing $LINENO, and appends
34839 # trailing '-' during substitution so that $LINENO is not a special
34840 # case at line end.
34841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34842 # scripts with optimization help from Paolo Bonzini. Blame Lee
34843 # E. McMahon (1931-1989) for sed's syntax. :-)
34855 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34858 ' >$as_me.lineno &&
34859 chmod +x "$as_me.lineno" ||
34860 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34861 { (exit 1); exit 1; }; }
34863 # Don't try to exec as it changes $[0], causing all sort of problems
34864 # (the dirname of $[0] is not the place where we might find the
34865 # original and so on. Autoconf is especially sensitive to this).
34866 . "./$as_me.lineno"
34867 # Exit status is that of the last command.
34872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34878 ECHO_C= ECHO_N= ECHO_T=
34879 case `echo -n x` in
34881 case `echo 'x\c'` in
34882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34889 if expr a : '\(a\)' >/dev/null 2>&1 &&
34890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34896 rm -f conf$$ conf$$.exe conf$$.file
34897 if test -d conf$$.dir; then
34898 rm -f conf$$.dir/conf$$.file
34904 if ln -s conf$$.file conf$$ 2>/dev/null; then
34906 # ... but there are two gotchas:
34907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34909 # In both cases, we have to default to `cp -p'.
34910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34912 elif ln conf$$.file conf$$ 2>/dev/null; then
34917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34918 rmdir conf$$.dir 2>/dev/null
34920 if mkdir -p . 2>/dev/null; then
34923 test -d ./-p && rmdir ./-p
34927 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34928 # systems may use methods other than mode bits to determine executability.
34929 cat >conf$$.file <<_ASEOF
34933 chmod +x conf$$.file
34934 if test -x conf$$.file >/dev/null 2>&1; then
34935 as_executable_p="test -x"
34941 # Sed expression to map a string onto a valid CPP name.
34942 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34944 # Sed expression to map a string onto a valid variable name.
34945 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34950 # Save the log message, to keep $[0] and so on meaningful, and to
34951 # report actual input values of CONFIG_FILES etc. instead of their
34952 # values after options handling.
34954 This file was extended by llvm $as_me 2.5svn, which was
34955 generated by GNU Autoconf 2.60. Invocation command line was
34957 CONFIG_FILES = $CONFIG_FILES
34958 CONFIG_HEADERS = $CONFIG_HEADERS
34959 CONFIG_LINKS = $CONFIG_LINKS
34960 CONFIG_COMMANDS = $CONFIG_COMMANDS
34963 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34968 cat >>$CONFIG_STATUS <<_ACEOF
34969 # Files that config.status was made for.
34970 config_files="$ac_config_files"
34971 config_headers="$ac_config_headers"
34972 config_commands="$ac_config_commands"
34976 cat >>$CONFIG_STATUS <<\_ACEOF
34978 \`$as_me' instantiates files from templates according to the
34979 current configuration.
34981 Usage: $0 [OPTIONS] [FILE]...
34983 -h, --help print this help, then exit
34984 -V, --version print version number, then exit
34985 -q, --quiet do not print progress messages
34986 -d, --debug don't remove temporary files
34987 --recheck update $as_me by reconfiguring in the same conditions
34988 --file=FILE[:TEMPLATE]
34989 instantiate the configuration file FILE
34990 --header=FILE[:TEMPLATE]
34991 instantiate the configuration header FILE
34993 Configuration files:
34996 Configuration headers:
34999 Configuration commands:
35002 Report bugs to <bug-autoconf@gnu.org>."
35005 cat >>$CONFIG_STATUS <<_ACEOF
35007 llvm config.status 2.5svn
35008 configured by $0, generated by GNU Autoconf 2.60,
35009 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35011 Copyright (C) 2006 Free Software Foundation, Inc.
35012 This config.status script is free software; the Free Software Foundation
35013 gives unlimited permission to copy, distribute and modify it."
35020 cat >>$CONFIG_STATUS <<\_ACEOF
35021 # If no file are specified by the user, then we need to provide default
35022 # value. By we need to know if files were specified by the user.
35028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35040 # Handling of the options.
35041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35043 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35044 echo "$ac_cs_version"; exit ;;
35045 --debug | --debu | --deb | --de | --d | -d )
35047 --file | --fil | --fi | --f )
35049 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35050 ac_need_defaults=false;;
35051 --header | --heade | --head | --hea )
35053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35054 ac_need_defaults=false;;
35056 # Conflict between --help and --header
35057 { echo "$as_me: error: ambiguous option: $1
35058 Try \`$0 --help' for more information." >&2
35059 { (exit 1); exit 1; }; };;
35060 --help | --hel | -h )
35061 echo "$ac_cs_usage"; exit ;;
35062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35066 # This is an error.
35067 -*) { echo "$as_me: error: unrecognized option: $1
35068 Try \`$0 --help' for more information." >&2
35069 { (exit 1); exit 1; }; } ;;
35071 *) ac_config_targets="$ac_config_targets $1"
35072 ac_need_defaults=false ;;
35078 ac_configure_extra_args=
35080 if $ac_cs_silent; then
35082 ac_configure_extra_args="$ac_configure_extra_args --silent"
35086 cat >>$CONFIG_STATUS <<_ACEOF
35087 if \$ac_cs_recheck; then
35088 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35089 CONFIG_SHELL=$SHELL
35090 export CONFIG_SHELL
35091 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35095 cat >>$CONFIG_STATUS <<\_ACEOF
35099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35100 ## Running $as_me. ##
35106 cat >>$CONFIG_STATUS <<_ACEOF
35110 llvm_src="${srcdir}"
35114 cat >>$CONFIG_STATUS <<\_ACEOF
35116 # Handling of arguments.
35117 for ac_config_target in $ac_config_targets
35119 case $ac_config_target in
35120 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35121 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35122 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35123 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35124 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35125 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35126 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35127 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35128 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35129 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35130 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35131 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35132 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35133 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35134 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35135 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35136 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35137 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35138 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35139 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35140 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35141 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35145 { (exit 1); exit 1; }; };;
35150 # If the user did not use the arguments to specify the items to instantiate,
35151 # then the envvar interface is used. Set only those that are not.
35152 # We use the long form for the default assignment because of an extremely
35153 # bizarre bug on SunOS 4.1.3.
35154 if $ac_need_defaults; then
35155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35160 # Have a temporary directory for convenience. Make it in the build tree
35161 # simply because there is no reason against having it here, and in addition,
35162 # creating and moving files from /tmp can sometimes cause problems.
35163 # Hook for its removal unless debugging.
35164 # Note that there is a small window in which the directory will not be cleaned:
35165 # after its creation but before its name has been assigned to `$tmp'.
35169 trap 'exit_status=$?
35170 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35172 trap '{ (exit 1); exit 1; }' 1 2 13 15
35174 # Create a (secure) tmp directory for tmp files.
35177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35178 test -n "$tmp" && test -d "$tmp"
35181 tmp=./conf$$-$RANDOM
35182 (umask 077 && mkdir "$tmp")
35185 echo "$me: cannot create a temporary directory in ." >&2
35186 { (exit 1); exit 1; }
35190 # Set up the sed scripts for CONFIG_FILES section.
35193 # No need to generate the scripts if there are no CONFIG_FILES.
35194 # This happens for instance when ./config.status config.h
35195 if test -n "$CONFIG_FILES"; then
35202 for ac_last_try in false false false false false :; do
35203 cat >conf$$subs.sed <<_ACEOF
35204 SHELL!$SHELL$ac_delim
35205 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35206 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35207 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35208 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35209 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35210 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35211 exec_prefix!$exec_prefix$ac_delim
35212 prefix!$prefix$ac_delim
35213 program_transform_name!$program_transform_name$ac_delim
35214 bindir!$bindir$ac_delim
35215 sbindir!$sbindir$ac_delim
35216 libexecdir!$libexecdir$ac_delim
35217 datarootdir!$datarootdir$ac_delim
35218 datadir!$datadir$ac_delim
35219 sysconfdir!$sysconfdir$ac_delim
35220 sharedstatedir!$sharedstatedir$ac_delim
35221 localstatedir!$localstatedir$ac_delim
35222 includedir!$includedir$ac_delim
35223 oldincludedir!$oldincludedir$ac_delim
35224 docdir!$docdir$ac_delim
35225 infodir!$infodir$ac_delim
35226 htmldir!$htmldir$ac_delim
35227 dvidir!$dvidir$ac_delim
35228 pdfdir!$pdfdir$ac_delim
35229 psdir!$psdir$ac_delim
35230 libdir!$libdir$ac_delim
35231 localedir!$localedir$ac_delim
35232 mandir!$mandir$ac_delim
35233 DEFS!$DEFS$ac_delim
35234 ECHO_C!$ECHO_C$ac_delim
35235 ECHO_N!$ECHO_N$ac_delim
35236 ECHO_T!$ECHO_T$ac_delim
35237 LIBS!$LIBS$ac_delim
35238 build_alias!$build_alias$ac_delim
35239 host_alias!$host_alias$ac_delim
35240 target_alias!$target_alias$ac_delim
35241 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35242 subdirs!$subdirs$ac_delim
35243 build!$build$ac_delim
35244 build_cpu!$build_cpu$ac_delim
35245 build_vendor!$build_vendor$ac_delim
35246 build_os!$build_os$ac_delim
35247 host!$host$ac_delim
35248 host_cpu!$host_cpu$ac_delim
35249 host_vendor!$host_vendor$ac_delim
35250 host_os!$host_os$ac_delim
35251 target!$target$ac_delim
35252 target_cpu!$target_cpu$ac_delim
35253 target_vendor!$target_vendor$ac_delim
35254 target_os!$target_os$ac_delim
35256 LINKALL!$LINKALL$ac_delim
35257 NOLINKALL!$NOLINKALL$ac_delim
35258 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35259 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35260 ARCH!$ARCH$ac_delim
35261 ENDIAN!$ENDIAN$ac_delim
35263 CFLAGS!$CFLAGS$ac_delim
35264 LDFLAGS!$LDFLAGS$ac_delim
35265 CPPFLAGS!$CPPFLAGS$ac_delim
35266 ac_ct_CC!$ac_ct_CC$ac_delim
35267 EXEEXT!$EXEEXT$ac_delim
35268 OBJEXT!$OBJEXT$ac_delim
35270 GREP!$GREP$ac_delim
35271 EGREP!$EGREP$ac_delim
35272 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35273 BUILD_CC!$BUILD_CC$ac_delim
35274 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35275 BUILD_CXX!$BUILD_CXX$ac_delim
35276 CVSBUILD!$CVSBUILD$ac_delim
35277 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35278 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35279 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35280 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35281 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35283 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35284 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35285 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35286 ENABLE_PIC!$ENABLE_PIC$ac_delim
35287 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35288 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35289 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35291 CXXFLAGS!$CXXFLAGS$ac_delim
35292 ac_ct_CXX!$ac_ct_CXX$ac_delim
35294 LEXLIB!$LEXLIB$ac_delim
35295 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35296 FLEX!$FLEX$ac_delim
35297 YACC!$YACC$ac_delim
35298 YFLAGS!$YFLAGS$ac_delim
35299 BISON!$BISON$ac_delim
35303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35305 elif $ac_last_try; then
35306 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35307 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35308 { (exit 1); exit 1; }; }
35310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35314 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35315 if test -n "$ac_eof"; then
35316 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35317 ac_eof=`expr $ac_eof + 1`
35320 cat >>$CONFIG_STATUS <<_ACEOF
35321 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35325 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35326 s/^/s,@/; s/!/@,|#_!!_#|/
35329 s/'"$ac_delim"'$/,g/; t
35331 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35332 ' >>$CONFIG_STATUS <conf$$subs.sed
35333 rm -f conf$$subs.sed
35334 cat >>$CONFIG_STATUS <<_ACEOF
35340 for ac_last_try in false false false false false :; do
35341 cat >conf$$subs.sed <<_ACEOF
35342 ifGNUmake!$ifGNUmake$ac_delim
35343 LN_S!$LN_S$ac_delim
35346 DATE!$DATE$ac_delim
35347 FIND!$FIND$ac_delim
35348 MKDIR!$MKDIR$ac_delim
35350 RANLIB!$RANLIB$ac_delim
35354 BINPWD!$BINPWD$ac_delim
35355 GRAPHVIZ!$GRAPHVIZ$ac_delim
35358 DOTTY!$DOTTY$ac_delim
35359 PERL!$PERL$ac_delim
35360 HAVE_PERL!$HAVE_PERL$ac_delim
35361 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35362 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35363 INSTALL_DATA!$INSTALL_DATA$ac_delim
35364 BZIP2!$BZIP2$ac_delim
35365 DOXYGEN!$DOXYGEN$ac_delim
35366 GROFF!$GROFF$ac_delim
35367 GZIP!$GZIP$ac_delim
35368 POD2HTML!$POD2HTML$ac_delim
35369 POD2MAN!$POD2MAN$ac_delim
35370 RUNTEST!$RUNTEST$ac_delim
35371 TCLSH!$TCLSH$ac_delim
35373 OCAMLC!$OCAMLC$ac_delim
35374 OCAMLOPT!$OCAMLOPT$ac_delim
35375 OCAMLDEP!$OCAMLDEP$ac_delim
35376 OCAMLDOC!$OCAMLDOC$ac_delim
35377 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35378 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35379 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35380 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35381 LIBADD_DL!$LIBADD_DL$ac_delim
35382 ECHO!$ECHO$ac_delim
35384 STRIP!$STRIP$ac_delim
35385 CXXCPP!$CXXCPP$ac_delim
35387 FFLAGS!$FFLAGS$ac_delim
35388 ac_ct_F77!$ac_ct_F77$ac_delim
35389 LIBTOOL!$LIBTOOL$ac_delim
35390 LLVMGCC!$LLVMGCC$ac_delim
35391 LLVMGXX!$LLVMGXX$ac_delim
35392 USE_UDIS86!$USE_UDIS86$ac_delim
35393 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35394 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35395 ALLOCA!$ALLOCA$ac_delim
35396 MMAP_FILE!$MMAP_FILE$ac_delim
35397 LLVMCC1!$LLVMCC1$ac_delim
35398 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35399 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35400 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35401 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35402 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35403 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35404 SHLIBEXT!$SHLIBEXT$ac_delim
35405 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35406 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35407 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35408 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35409 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35410 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35411 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35412 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35413 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35414 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35415 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35416 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35417 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35418 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35419 LIBOBJS!$LIBOBJS$ac_delim
35420 LTLIBOBJS!$LTLIBOBJS$ac_delim
35423 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
35425 elif $ac_last_try; then
35426 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35427 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35428 { (exit 1); exit 1; }; }
35430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35434 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35435 if test -n "$ac_eof"; then
35436 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35437 ac_eof=`expr $ac_eof + 1`
35440 cat >>$CONFIG_STATUS <<_ACEOF
35441 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35445 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35446 s/^/s,@/; s/!/@,|#_!!_#|/
35449 s/'"$ac_delim"'$/,g/; t
35451 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35452 ' >>$CONFIG_STATUS <conf$$subs.sed
35453 rm -f conf$$subs.sed
35454 cat >>$CONFIG_STATUS <<_ACEOF
35461 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35462 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35463 # trailing colons and then remove the whole line if VPATH becomes empty
35464 # (actually we leave an empty line to preserve line numbers).
35465 if test "x$srcdir" = x.; then
35466 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35467 s/:*\$(srcdir):*/:/
35468 s/:*\${srcdir}:*/:/
35470 s/^\([^=]*=[ ]*\):*/\1/
35476 cat >>$CONFIG_STATUS <<\_ACEOF
35477 fi # test -n "$CONFIG_FILES"
35480 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35483 :[FHLC]) ac_mode=$ac_tag; continue;;
35485 case $ac_mode$ac_tag in
35487 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35488 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35489 { (exit 1); exit 1; }; };;
35490 :[FH]-) ac_tag=-:-;;
35491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35508 -) ac_f="$tmp/stdin";;
35509 *) # Look for the file first in the build tree, then in the source tree
35510 # (if the path is not absolute). The absolute path cannot be DOS-style,
35511 # because $ac_f cannot contain `:'.
35515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35517 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35518 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35519 { (exit 1); exit 1; }; };;
35521 ac_file_inputs="$ac_file_inputs $ac_f"
35524 # Let's still pretend it is `configure' which instantiates (i.e., don't
35525 # use $as_me), people would be surprised to read:
35526 # /* config.h. Generated by config.status. */
35527 configure_input="Generated from "`IFS=:
35528 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35529 if test x"$ac_file" != x-; then
35530 configure_input="$ac_file. $configure_input"
35531 { echo "$as_me:$LINENO: creating $ac_file" >&5
35532 echo "$as_me: creating $ac_file" >&6;}
35536 *:-:* | *:-) cat >"$tmp/stdin";;
35541 ac_dir=`$as_dirname -- "$ac_file" ||
35542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35543 X"$ac_file" : 'X\(//\)[^/]' \| \
35544 X"$ac_file" : 'X\(//\)$' \| \
35545 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35551 /^X\(\/\/\)[^/].*/{
35566 -*) as_dir=./$as_dir;;
35568 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35572 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35573 *) as_qdir=$as_dir;;
35575 as_dirs="'$as_qdir' $as_dirs"
35576 as_dir=`$as_dirname -- "$as_dir" ||
35577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35578 X"$as_dir" : 'X\(//\)[^/]' \| \
35579 X"$as_dir" : 'X\(//\)$' \| \
35580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35586 /^X\(\/\/\)[^/].*/{
35599 test -d "$as_dir" && break
35601 test -z "$as_dirs" || eval "mkdir $as_dirs"
35602 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35603 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35604 { (exit 1); exit 1; }; }; }
35608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35611 # A ".." for each directory in $ac_dir_suffix.
35612 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35613 case $ac_top_builddir_sub in
35614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35618 ac_abs_top_builddir=$ac_pwd
35619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35620 # for backward compatibility:
35621 ac_top_builddir=$ac_top_build_prefix
35624 .) # We are building in place.
35626 ac_top_srcdir=$ac_top_builddir_sub
35627 ac_abs_top_srcdir=$ac_pwd ;;
35628 [\\/]* | ?:[\\/]* ) # Absolute name.
35629 ac_srcdir=$srcdir$ac_dir_suffix;
35630 ac_top_srcdir=$srcdir
35631 ac_abs_top_srcdir=$srcdir ;;
35632 *) # Relative name.
35633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35634 ac_top_srcdir=$ac_top_build_prefix$srcdir
35635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35648 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35652 cat >>$CONFIG_STATUS <<\_ACEOF
35653 # If the template does not know about datarootdir, expand it.
35654 # FIXME: This hack should be removed a few years after 2.60.
35655 ac_datarootdir_hack=; ac_datarootdir_seen=
35657 case `sed -n '/datarootdir/ {
35666 ' $ac_file_inputs` in
35667 *datarootdir*) ac_datarootdir_seen=yes;;
35668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35669 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35670 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35672 cat >>$CONFIG_STATUS <<_ACEOF
35673 ac_datarootdir_hack='
35674 s&@datadir@&$datadir&g
35675 s&@docdir@&$docdir&g
35676 s&@infodir@&$infodir&g
35677 s&@localedir@&$localedir&g
35678 s&@mandir@&$mandir&g
35679 s&\\\${datarootdir}&$datarootdir&g' ;;
35683 # Neutralize VPATH when `$srcdir' = `.'.
35684 # Shell code in configure.ac might set extrasub.
35685 # FIXME: do we really want to maintain this feature?
35686 cat >>$CONFIG_STATUS <<_ACEOF
35690 cat >>$CONFIG_STATUS <<\_ACEOF
35692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35693 s&@configure_input@&$configure_input&;t t
35694 s&@top_builddir@&$ac_top_builddir_sub&;t t
35695 s&@srcdir@&$ac_srcdir&;t t
35696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35697 s&@top_srcdir@&$ac_top_srcdir&;t t
35698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35699 s&@builddir@&$ac_builddir&;t t
35700 s&@abs_builddir@&$ac_abs_builddir&;t t
35701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35702 s&@INSTALL@&$ac_INSTALL&;t t
35703 $ac_datarootdir_hack
35704 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35706 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35707 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35708 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35709 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35710 which seems to be undefined. Please make sure it is defined." >&5
35711 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35712 which seems to be undefined. Please make sure it is defined." >&2;}
35716 -) cat "$tmp/out"; rm -f "$tmp/out";;
35717 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35726 # Transform confdefs.h into a sed script `conftest.defines', that
35727 # substitutes the proper values into config.h.in to produce config.h.
35728 rm -f conftest.defines conftest.tail
35729 # First, append a space to every undef/define line, to ease matching.
35730 echo 's/$/ /' >conftest.defines
35731 # Then, protect against being on the right side of a sed subst, or in
35732 # an unquoted here document, in config.status. If some macros were
35733 # called several times there might be several #defines for the same
35734 # symbol, which is useless. But do not sort them, since the last
35735 # AC_DEFINE must be honored.
35736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35737 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35738 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35739 # PARAMS is the parameter list in the macro definition--in most cases, it's
35740 # just an empty string.
35741 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35742 ac_dB='\\)[ (].*,\\1define\\2'
35750 s/^[ ]*#[ ]*define[ ][ ]*//
35755 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35756 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35757 ' >>conftest.defines
35759 # Remove the space that was appended to ease matching.
35760 # Then replace #undef with comments. This is necessary, for
35761 # example, in the case of _POSIX_SOURCE, which is predefined and required
35762 # on some systems where configure will not decide to define it.
35763 # (The regexp can be short, since the line contains either #define or #undef.)
35765 s,^[ #]*u.*,/* & */,' >>conftest.defines
35767 # Break up conftest.defines:
35768 ac_max_sed_lines=50
35770 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35771 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35772 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35774 ac_in='$ac_file_inputs'
35775 ac_out='"$tmp/out1"'
35776 ac_nxt='"$tmp/out2"'
35780 # Write a here document:
35781 cat >>$CONFIG_STATUS <<_ACEOF
35782 # First, check the format of the line:
35783 cat >"\$tmp/defines.sed" <<\\CEOF
35784 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35785 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35789 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35791 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35792 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35793 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35794 grep . conftest.tail >/dev/null || break
35795 rm -f conftest.defines
35796 mv conftest.tail conftest.defines
35798 rm -f conftest.defines conftest.tail
35800 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35801 cat >>$CONFIG_STATUS <<\_ACEOF
35802 if test x"$ac_file" != x-; then
35803 echo "/* $configure_input */" >"$tmp/config.h"
35804 cat "$ac_result" >>"$tmp/config.h"
35805 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35806 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35807 echo "$as_me: $ac_file is unchanged" >&6;}
35810 mv "$tmp/config.h" $ac_file
35813 echo "/* $configure_input */"
35819 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35820 echo "$as_me: executing $ac_file commands" >&6;}
35825 case $ac_file$ac_mode in
35826 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35827 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35828 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35829 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35830 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35831 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35832 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35833 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35834 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35835 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35836 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35837 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35838 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35839 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35840 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35841 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35842 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35843 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35844 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35845 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35846 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35847 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35848 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35849 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35855 { (exit 0); exit 0; }
35857 chmod +x $CONFIG_STATUS
35858 ac_clean_files=$ac_clean_files_save
35861 # configure is writing to config.log, and then calls config.status.
35862 # config.status does its own redirection, appending to config.log.
35863 # Unfortunately, on DOS this fails, as config.log is still kept open
35864 # by configure, so config.status won't be able to write to it; its
35865 # output is simply discarded. So we exec the FD to /dev/null,
35866 # effectively closing config.log, so it can be properly (re)opened and
35867 # appended to by config.status. When coming back to configure, we
35868 # need to make the FD available again.
35869 if test "$no_create" != yes; then
35871 ac_config_status_args=
35872 test "$silent" = yes &&
35873 ac_config_status_args="$ac_config_status_args --quiet"
35875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35878 # would make configure fail if this is the last instruction.
35879 $ac_cs_success || { (exit 1); exit 1; }
35883 # CONFIG_SUBDIRS section.
35885 if test "$no_recursion" != yes; then
35887 # Remove --cache-file and --srcdir arguments so they do not pile up.
35888 ac_sub_configure_args=
35890 eval "set x $ac_configure_args"
35894 if test -n "$ac_prev"; then
35899 -cache-file | --cache-file | --cache-fil | --cache-fi \
35900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35901 ac_prev=cache_file ;;
35902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35906 --config-cache | -C)
35908 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35910 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35912 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35914 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35918 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35920 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35924 # Always prepend --prefix to ensure using the same prefix
35925 # in subdir configurations.
35926 ac_arg="--prefix=$prefix"
35928 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35930 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35933 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35935 # Do not complain, so a configure script can configure whichever
35936 # parts of a large source tree are present.
35937 test -d "$srcdir/$ac_dir" || continue
35939 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35940 echo "$as_me:$LINENO: $ac_msg" >&5
35944 -*) as_dir=./$as_dir;;
35946 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35950 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35951 *) as_qdir=$as_dir;;
35953 as_dirs="'$as_qdir' $as_dirs"
35954 as_dir=`$as_dirname -- "$as_dir" ||
35955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35956 X"$as_dir" : 'X\(//\)[^/]' \| \
35957 X"$as_dir" : 'X\(//\)$' \| \
35958 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35964 /^X\(\/\/\)[^/].*/{
35977 test -d "$as_dir" && break
35979 test -z "$as_dirs" || eval "mkdir $as_dirs"
35980 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35981 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35982 { (exit 1); exit 1; }; }; }
35986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35989 # A ".." for each directory in $ac_dir_suffix.
35990 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35991 case $ac_top_builddir_sub in
35992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35996 ac_abs_top_builddir=$ac_pwd
35997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35998 # for backward compatibility:
35999 ac_top_builddir=$ac_top_build_prefix
36002 .) # We are building in place.
36004 ac_top_srcdir=$ac_top_builddir_sub
36005 ac_abs_top_srcdir=$ac_pwd ;;
36006 [\\/]* | ?:[\\/]* ) # Absolute name.
36007 ac_srcdir=$srcdir$ac_dir_suffix;
36008 ac_top_srcdir=$srcdir
36009 ac_abs_top_srcdir=$srcdir ;;
36010 *) # Relative name.
36011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36012 ac_top_srcdir=$ac_top_build_prefix$srcdir
36013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36020 # Check for guested configure; otherwise get Cygnus style configure.
36021 if test -f "$ac_srcdir/configure.gnu"; then
36022 ac_sub_configure=$ac_srcdir/configure.gnu
36023 elif test -f "$ac_srcdir/configure"; then
36024 ac_sub_configure=$ac_srcdir/configure
36025 elif test -f "$ac_srcdir/configure.in"; then
36026 # This should be Cygnus configure.
36027 ac_sub_configure=$ac_aux_dir/configure
36029 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36034 # The recursion is here.
36035 if test -n "$ac_sub_configure"; then
36036 # Make the cache file name correct relative to the subdirectory.
36037 case $cache_file in
36038 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36039 *) # Relative name.
36040 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36043 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36044 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36045 # The eval makes quoting arguments work.
36046 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36047 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36048 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36049 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36050 { (exit 1); exit 1; }; }