2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.1svn.
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-2007 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.1svn'
719 PACKAGE_STRING='llvm 2.1svn'
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
833 ENABLE_EXPENSIVE_CHECKS
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
928 ac_precious_vars='build_alias
944 ac_subdirs_all='projects/sample
946 projects/llvm-stacker
952 projects/llvm-poolalloc
954 projects/llvm-kernel'
956 # Initialize some variables set by options.
958 ac_init_version=false
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
968 program_transform_name=s,x,x,
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1044 -datadir | --datadir | --datadi | --datad)
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1056 -disable-* | --disable-*)
1057 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1063 eval enable_$ac_feature=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082 eval enable_$ac_feature=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1246 -site=* | --site=* | --sit=*)
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1273 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package| sed 's/-/_/g'`
1279 eval with_$ac_package=\$ac_optarg ;;
1281 -without-* | --without-*)
1282 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1291 # Obsolete; use --with-x.
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1308 -*) { echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1323 # FIXME: should be removed in autoconf 3.0.
1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 { echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1339 # Be sure to have absolute directory names.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351 { (exit 1); exit 1; }; }
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1359 target=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 { echo "$as_me: error: Working directory cannot be determined" >&2
1382 { (exit 1); exit 1; }; }
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 { echo "$as_me: error: pwd does not report name of working directory" >&2
1385 { (exit 1); exit 1; }; }
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$0" ||
1393 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$0" : 'X\(//\)[^/]' \| \
1395 X"$0" : 'X\(//\)$' \| \
1396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1420 ac_srcdir_defaulted=no
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1425 { (exit 1); exit 1; }; }
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1430 { (exit 1); exit 1; }; }
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures llvm 2.1svn to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 --target=TARGET configure for building compilers for TARGET [HOST]
1520 if test -n "$ac_init_help"; then
1521 case $ac_init_help in
1522 short | recursive ) echo "Configuration of llvm 2.1svn:";;
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-expensive-checks
1533 --enable-debug-runtime
1534 --enable-jit Enable Just In Time Compiling (default is YES)
1535 --enable-doxygen Build doxygen documentation (default is NO)
1536 --enable-threads Use threads if available (default is YES)
1537 --enable-pic Build LLVM with Position Independent Code (default
1539 --enable-targets Build specific host targets:
1540 all,host-only,{target-name} (default=all)
1541 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1543 --enable-ltdl-install install libltdl
1544 --enable-shared[=PKGS] build shared libraries
1545 [default=enable_shared_default]
1546 --enable-static[=PKGS] build static libraries
1547 [default=enable_static_default]
1548 --enable-fast-install[=PKGS]
1549 optimize for fast installation
1550 [default=enable_Fast_install_default]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1558 --with-extra-options Specify addtional options to compile LLVM with
1559 --with-tclinclude directory where tcl headers are
1560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561 --with-pic try to use only PIC/non-PIC objects [default=use
1563 --with-tags[=TAGS] include additional configurations [automatic]
1564 --with-udis86=<path> Use udis86 external x86 disassembler library
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
1576 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1577 the first program found out of: `bison -y', `byacc', `yacc'.
1578 YFLAGS The list of arguments that will be passed by default to $YACC.
1579 This script will default YFLAGS to the empty string to avoid a
1580 default value of `-d' given by some make applications.
1581 CXXCPP C++ preprocessor
1582 F77 Fortran 77 compiler command
1583 FFLAGS Fortran 77 compiler flags
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1588 Report bugs to <llvmbugs@cs.uiuc.edu>.
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" || continue
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1616 .) # We are building in place.
1618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
1621 ac_srcdir=$srcdir$ac_dir_suffix;
1622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1640 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 cd "$ac_pwd" || { ac_status=$?; break; }
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1649 llvm configure 2.1svn
1650 generated by GNU Autoconf 2.60
1652 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1653 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1657 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1661 cat >config.log <<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1665 It was created by llvm $as_me 2.1svn, which was
1666 generated by GNU Autoconf 2.60. Invocation command line was
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir=.
1702 echo "PATH: $as_dir"
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_must_keep_next=false
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1737 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
1744 ac_must_keep_next=false # Got value, back to normal.
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755 -* ) ac_must_keep_next=true ;;
1758 ac_configure_args="$ac_configure_args '$ac_arg'"
1763 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1782 # The following way of writing the cache mishandles newlines in values,
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1789 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1790 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793 _ | IFS | as_nl) ;; #(
1794 *) $as_unset $ac_var ;;
1799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800 *${as_nl}ac_space=\ *)
1802 "s/'\''/'\''\\\\'\'''\''/g;
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1814 ## ----------------- ##
1815 ## Output variables. ##
1816 ## ----------------- ##
1819 for ac_var in $ac_subst_vars
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 echo "$ac_var='\''$ac_val'\''"
1829 if test -n "$ac_subst_files"; then
1831 ## ------------------- ##
1832 ## File substitutions. ##
1833 ## ------------------- ##
1836 for ac_var in $ac_subst_files
1838 eval ac_val=\$$ac_var
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 echo "$ac_var='\''$ac_val'\''"
1847 if test -s confdefs.h; then
1857 test "$ac_signal" != 0 &&
1858 echo "$as_me: caught signal $ac_signal"
1859 echo "$as_me: exit $exit_status"
1861 rm -f core *.core core.conftest.* &&
1862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865 for ac_signal in 1 2 13 15; do
1866 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1871 rm -f -r conftest* confdefs.h
1873 # Predefined preprocessor variables.
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_NAME "$PACKAGE_NAME"
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900 # Let the site file select an alternate cache file if it wants to.
1901 # Prefer explicitly selected file to automatically selected ones.
1902 if test -n "$CONFIG_SITE"; then
1903 set x "$CONFIG_SITE"
1904 elif test "x$prefix" != xNONE; then
1905 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1907 set x "$ac_default_prefix/share/config.site" \
1908 "$ac_default_prefix/etc/config.site"
1913 if test -r "$ac_site_file"; then
1914 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1915 echo "$as_me: loading site script $ac_site_file" >&6;}
1916 sed 's/^/| /' "$ac_site_file" >&5
1921 if test -r "$cache_file"; then
1922 # Some versions of bash will fail to source /dev/null (special
1923 # files actually), so we avoid doing that.
1924 if test -f "$cache_file"; then
1925 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1926 echo "$as_me: loading cache $cache_file" >&6;}
1928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1929 *) . "./$cache_file";;
1933 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1934 echo "$as_me: creating cache $cache_file" >&6;}
1938 # Check that the precious variables saved in the cache have kept the same
1940 ac_cache_corrupted=false
1941 for ac_var in $ac_precious_vars; do
1942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1943 eval ac_new_set=\$ac_env_${ac_var}_set
1944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1945 eval ac_new_val=\$ac_env_${ac_var}_value
1946 case $ac_old_set,$ac_new_set in
1948 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1952 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1953 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1954 ac_cache_corrupted=: ;;
1957 if test "x$ac_old_val" != "x$ac_new_val"; then
1958 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1959 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1961 echo "$as_me: former value: $ac_old_val" >&2;}
1962 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1963 echo "$as_me: current value: $ac_new_val" >&2;}
1964 ac_cache_corrupted=:
1967 # Pass precious variables to config.status.
1968 if test "$ac_new_set" = set; then
1970 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1971 *) ac_arg=$ac_var=$ac_new_val ;;
1973 case " $ac_configure_args " in
1974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1975 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979 if $ac_cache_corrupted; then
1980 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1981 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1982 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1983 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1984 { (exit 1); exit 1; }; }
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2028 for ac_dir in autoconf "$srcdir"/autoconf; do
2029 if test -f "$ac_dir/install-sh"; then
2031 ac_install_sh="$ac_aux_dir/install-sh -c"
2033 elif test -f "$ac_dir/install.sh"; then
2035 ac_install_sh="$ac_aux_dir/install.sh -c"
2037 elif test -f "$ac_dir/shtool"; then
2039 ac_install_sh="$ac_aux_dir/shtool install -c"
2043 if test -z "$ac_aux_dir"; then
2044 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2045 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2046 { (exit 1); exit 1; }; }
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2059 if test ${srcdir} != "." ; then
2060 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2061 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2062 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2063 { (exit 1); exit 1; }; }
2067 for i in `ls ${srcdir}/projects`
2069 if test -d ${srcdir}/projects/${i} ; then
2072 sample) subdirs="$subdirs projects/sample"
2074 privbracket) subdirs="$subdirs projects/privbracket"
2076 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2078 llvm-test) subdirs="$subdirs projects/llvm-test"
2080 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2082 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2084 llvm-java) subdirs="$subdirs projects/llvm-java"
2086 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2088 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2090 poolalloc) subdirs="$subdirs projects/poolalloc"
2092 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2095 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2096 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2103 # Make sure we can run config.sub.
2104 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2105 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2106 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2107 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: checking build system type" >&5
2110 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2111 if test "${ac_cv_build+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 ac_build_alias=$build_alias
2115 test "x$ac_build_alias" = x &&
2116 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2117 test "x$ac_build_alias" = x &&
2118 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2119 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2120 { (exit 1); exit 1; }; }
2121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2122 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2123 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2124 { (exit 1); exit 1; }; }
2127 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2128 echo "${ECHO_T}$ac_cv_build" >&6; }
2129 case $ac_cv_build in
2131 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2132 echo "$as_me: error: invalid value of canonical build" >&2;}
2133 { (exit 1); exit 1; }; };;
2136 ac_save_IFS=$IFS; IFS='-'
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2146 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2149 { echo "$as_me:$LINENO: checking host system type" >&5
2150 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_host+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test "x$host_alias" = x; then
2155 ac_cv_host=$ac_cv_build
2157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2164 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165 echo "${ECHO_T}$ac_cv_host" >&6; }
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169 echo "$as_me: error: invalid value of canonical host" >&2;}
2170 { (exit 1); exit 1; }; };;
2173 ac_save_IFS=$IFS; IFS='-'
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2183 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2186 { echo "$as_me:$LINENO: checking target system type" >&5
2187 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_target+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 if test "x$target_alias" = x; then
2192 ac_cv_target=$ac_cv_host
2194 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2201 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2202 echo "${ECHO_T}$ac_cv_target" >&6; }
2203 case $ac_cv_target in
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2206 echo "$as_me: error: invalid value of canonical target" >&2;}
2207 { (exit 1); exit 1; }; };;
2209 target=$ac_cv_target
2210 ac_save_IFS=$IFS; IFS='-'
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2223 # The aliases save the names the user supplied, while $host etc.
2224 # will get canonicalized.
2225 test -n "$target_alias" &&
2226 test "$program_prefix$program_suffix$program_transform_name" = \
2228 program_prefix=${target_alias}-
2230 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2231 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2232 if test "${llvm_cv_os_type+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 llvm_cv_link_all_option="-Wl,--whole-archive"
2238 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239 llvm_cv_os_type="AIX"
2240 llvm_cv_platform_type="Unix" ;;
2242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244 llvm_cv_os_type="IRIX"
2245 llvm_cv_platform_type="Unix" ;;
2247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249 llvm_cv_os_type="Cygwin"
2250 llvm_cv_platform_type="Unix" ;;
2252 llvm_cv_link_all_option="-Wl,-all_load"
2253 llvm_cv_link_all_option="-Wl,-noall_load"
2254 llvm_cv_os_type="Darwin"
2255 llvm_cv_platform_type="Unix" ;;
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="FreeBSD"
2260 llvm_cv_platform_type="Unix" ;;
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="OpenBSD"
2265 llvm_cv_platform_type="Unix" ;;
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="NetBSD"
2270 llvm_cv_platform_type="Unix" ;;
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="HP-UX"
2275 llvm_cv_platform_type="Unix" ;;
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="Interix"
2280 llvm_cv_platform_type="Unix" ;;
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="Linux"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,-z,allextract"
2288 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2289 llvm_cv_os_type="SunOS"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="Win32"
2295 llvm_cv_platform_type="Win32" ;;
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="MingW"
2300 llvm_cv_platform_type="Win32" ;;
2302 llvm_cv_link_all_option=""
2303 llvm_cv_no_link_all_option=""
2304 llvm_cv_os_type="Unknown"
2305 llvm_cv_platform_type="Unknown" ;;
2308 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2309 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2311 if test "$llvm_cv_os_type" = "Unknown" ; then
2312 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2313 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2314 { (exit 1); exit 1; }; }
2320 LINKALL=$llvm_cv_link_all_option
2322 NOLINKALL=$llvm_cv_no_link_all_option
2325 case $llvm_cv_platform_type in
2328 cat >>confdefs.h <<\_ACEOF
2329 #define LLVM_ON_UNIX 1
2339 cat >>confdefs.h <<\_ACEOF
2340 #define LLVM_ON_WIN32 1
2350 { echo "$as_me:$LINENO: checking target architecture" >&5
2351 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2352 if test "${llvm_cv_target_arch+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 i?86-*) llvm_cv_target_arch="x86" ;;
2357 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2358 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2359 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2360 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2361 ia64-*) llvm_cv_target_arch="IA64" ;;
2362 arm-*) llvm_cv_target_arch="ARM" ;;
2363 mips-*) llvm_cv_target_arch="Mips" ;;
2364 *) llvm_cv_target_arch="Unknown" ;;
2367 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370 if test "$llvm_cv_target_arch" = "Unknown" ; then
2371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 ARCH=$llvm_cv_target_arch
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383 if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_CC+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 if test -n "$CC"; then
2413 { echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6; }
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2422 if test -z "$ac_cv_prog_CC"; then
2424 # Extract the first word of "gcc", so it can be a program name with args.
2425 set dummy gcc; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$ac_ct_CC"; then
2432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_ac_ct_CC="gcc"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 echo "${ECHO_T}$ac_ct_CC" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2460 if test "x$ac_ct_CC" = x; then
2463 case $cross_compiling:$ac_tool_warned in
2465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2466 whose name does not start with the host triplet. If you think this
2467 configuration is useful to you, please write to autoconf@gnu.org." >&5
2468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2469 whose name does not start with the host triplet. If you think this
2470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2471 ac_tool_warned=yes ;;
2479 if test -z "$CC"; then
2480 if test -n "$ac_tool_prefix"; then
2481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2482 set dummy ${ac_tool_prefix}cc; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_CC="${ac_tool_prefix}cc"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 if test -n "$CC"; then
2510 { echo "$as_me:$LINENO: result: $CC" >&5
2511 echo "${ECHO_T}$CC" >&6; }
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2520 if test -z "$CC"; then
2521 # Extract the first word of "cc", so it can be a program name with args.
2522 set dummy cc; ac_word=$2
2523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2525 if test "${ac_cv_prog_CC+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2540 ac_prog_rejected=yes
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 if test $ac_prog_rejected = yes; then
2552 # We found a bogon in the path, so make sure we never use it.
2553 set dummy $ac_cv_prog_CC
2555 if test $# != 0; then
2556 # We chose a different compiler from the bogus one.
2557 # However, it has the same basename, so the bogon will be chosen
2558 # first if we set CC to just the basename; use the full file name.
2560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2566 if test -n "$CC"; then
2567 { echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6; }
2570 { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2576 if test -z "$CC"; then
2577 if test -n "$ac_tool_prefix"; then
2578 for ac_prog in cl.exe
2580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_CC+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$CC"; then
2588 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 if test -n "$CC"; then
2609 { echo "$as_me:$LINENO: result: $CC" >&5
2610 echo "${ECHO_T}$CC" >&6; }
2612 { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2617 test -n "$CC" && break
2620 if test -z "$CC"; then
2622 for ac_prog in cl.exe
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_ac_ct_CC="$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652 if test -n "$ac_ct_CC"; then
2653 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2654 echo "${ECHO_T}$ac_ct_CC" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2661 test -n "$ac_ct_CC" && break
2664 if test "x$ac_ct_CC" = x; then
2667 case $cross_compiling:$ac_tool_warned in
2669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2670 whose name does not start with the host triplet. If you think this
2671 configuration is useful to you, please write to autoconf@gnu.org." >&5
2672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2673 whose name does not start with the host triplet. If you think this
2674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2675 ac_tool_warned=yes ;;
2684 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." >&2;}
2688 { (exit 1); exit 1; }; }
2690 # Provide some information about the compiler.
2691 echo "$as_me:$LINENO: checking for C compiler version" >&5
2692 ac_compiler=`set X $ac_compile; echo $2`
2693 { (ac_try="$ac_compiler --version >&5"
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compiler --version >&5") 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2703 { (ac_try="$ac_compiler -v >&5"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compiler -v >&5") 2>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }
2713 { (ac_try="$ac_compiler -V >&5"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler -V >&5") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 ac_clean_files_save=$ac_clean_files
2740 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2741 # Try to create an executable without -o first, disregard a.out.
2742 # It will help us diagnose broken compilers, and finding out an intuition
2744 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2745 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2746 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2748 # List of possible output files, starting from the most likely.
2749 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2750 # only as a last resort. b.out is created by i960 compilers.
2751 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2753 # The IRIX 6 linker writes into existing files which may not be
2754 # executable, retaining their permissions. Remove them first so a
2755 # subsequent execution test works.
2757 for ac_file in $ac_files
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2766 if { (ac_try="$ac_link_default"
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_link_default") 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; then
2776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2778 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2779 # so that the user can short-circuit this test for compilers unknown to
2781 for ac_file in $ac_files
2783 test -f "$ac_file" || continue
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2788 # We found the default executable, but exeext='' is most
2792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796 # We set ac_cv_exeext here because the later test for it is not
2797 # safe: cross compilers may not add the suffix if given an `-o'
2798 # argument, so we may need to know it at that point already.
2799 # Even if this section looks crufty: it has the advantage of
2806 test "$ac_cv_exeext" = no && ac_cv_exeext=
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&2;}
2816 { (exit 77); exit 77; }; }
2819 ac_exeext=$ac_cv_exeext
2820 { echo "$as_me:$LINENO: result: $ac_file" >&5
2821 echo "${ECHO_T}$ac_file" >&6; }
2823 # Check that the compiler produces executables we can run. If not, either
2824 # the compiler is broken, or we cross compile.
2825 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2826 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2827 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2828 # If not cross compiling, check that we can run a simple program.
2829 if test "$cross_compiling" != yes; then
2830 if { ac_try='./$ac_file'
2831 { (case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_try") 2>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2842 if test "$cross_compiling" = maybe; then
2845 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2846 If you meant to cross compile, use \`--host'.
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot run C compiled programs.
2849 If you meant to cross compile, use \`--host'.
2850 See \`config.log' for more details." >&2;}
2851 { (exit 1); exit 1; }; }
2855 { echo "$as_me:$LINENO: result: yes" >&5
2856 echo "${ECHO_T}yes" >&6; }
2858 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2859 ac_clean_files=$ac_clean_files_save
2860 # Check that the compiler produces executables we can run. If not, either
2861 # the compiler is broken, or we cross compile.
2862 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2863 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2864 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2865 echo "${ECHO_T}$cross_compiling" >&6; }
2867 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2868 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2869 if { (ac_try="$ac_link"
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875 (eval "$ac_link") 2>&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; then
2879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2880 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2881 # work properly (i.e., refer to `conftest.exe'), while it won't with
2883 for ac_file in conftest.exe conftest conftest.*; do
2884 test -f "$ac_file" || continue
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2893 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2896 See \`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }
2900 rm -f conftest$ac_cv_exeext
2901 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2902 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2904 rm -f conftest.$ac_ext
2905 EXEEXT=$ac_cv_exeext
2907 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2908 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2909 if test "${ac_cv_objext+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2927 rm -f conftest.o conftest.obj
2928 if { (ac_try="$ac_compile"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; then
2938 for ac_file in conftest.o conftest.obj conftest.*; do
2939 test -f "$ac_file" || continue;
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2951 See \`config.log' for more details." >&5
2952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&2;}
2954 { (exit 1); exit 1; }; }
2957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2959 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2960 echo "${ECHO_T}$ac_cv_objext" >&6; }
2961 OBJEXT=$ac_cv_objext
2963 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_try") 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3032 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3033 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3034 GCC=`test $ac_compiler_gnu = yes && echo yes`
3035 ac_test_CFLAGS=${CFLAGS+set}
3036 ac_save_CFLAGS=$CFLAGS
3037 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3038 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_cc_g+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 ac_save_c_werror_flag=$ac_c_werror_flag
3043 ac_c_werror_flag=yes
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try='test -s conftest.$ac_objext'
3086 { (case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_try") 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_c_werror_flag=$ac_save_c_werror_flag
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_c_werror_flag=$ac_save_c_werror_flag
3223 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3224 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3225 if test "$ac_test_CFLAGS" = set; then
3226 CFLAGS=$ac_save_CFLAGS
3227 elif test $ac_cv_prog_cc_g = yes; then
3228 if test "$GCC" = yes; then
3234 if test "$GCC" = yes; then
3240 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3241 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3242 if test "${ac_cv_prog_cc_c89+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 ac_cv_prog_cc_c89=no
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3255 #include <sys/types.h>
3256 #include <sys/stat.h>
3257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3258 struct buf { int x; };
3259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3260 static char *e (p, i)
3266 static char *f (char * (*g) (char **, int), char **p, ...)
3271 s = g (p, va_arg (v,int));
3276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3277 function prototypes and stuff, but not '\xHH' hex character constants.
3278 These don't provoke an error unfortunately, instead are silently treated
3279 as 'x'. The following induces an error, until -std is added to get
3280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3281 array size at least. It's necessary to write '\x00'==0 to get something
3282 that's true only with -std. */
3283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3286 inside strings and character constants. */
3288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290 int test (int i, double x);
3291 struct s1 {int (*f) (int a);};
3292 struct s2 {int (*f) (double a);};
3293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307 CC="$ac_save_CC $ac_arg"
3308 rm -f conftest.$ac_objext
3309 if { (ac_try="$ac_compile"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_compile") 2>conftest.er1
3317 grep -v '^ *+' conftest.er1 >conftest.err
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3323 { (case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_try") 2>&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 ac_cv_prog_cc_c89=$ac_arg
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f core conftest.err conftest.$ac_objext
3351 test "x$ac_cv_prog_cc_c89" != "xno" && break
3353 rm -f conftest.$ac_ext
3358 case "x$ac_cv_prog_cc_c89" in
3360 { echo "$as_me:$LINENO: result: none needed" >&5
3361 echo "${ECHO_T}none needed" >&6; } ;;
3363 { echo "$as_me:$LINENO: result: unsupported" >&5
3364 echo "${ECHO_T}unsupported" >&6; } ;;
3366 CC="$CC $ac_cv_prog_cc_c89"
3367 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3385 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3386 # On Suns, sometimes $CPP names a directory.
3387 if test -n "$CPP" && test -d "$CPP"; then
3390 if test -z "$CPP"; then
3391 if test "${ac_cv_prog_CPP+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 # Double quotes because CPP needs to be expanded
3395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3398 for ac_c_preproc_warn_flag in '' yes
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3413 # include <limits.h>
3415 # include <assert.h>
3419 if { (ac_try="$ac_cpp conftest.$ac_ext"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_c_preproc_warn_flag
3434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441 if test -z "$ac_cpp_err"; then
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Broken: fails on valid input.
3451 rm -f conftest.err conftest.$ac_ext
3453 # OK, works on sane cases. Now check whether nonexistent headers
3454 # can be detected and how.
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null; then
3476 if test -s conftest.err; then
3477 ac_cpp_err=$ac_c_preproc_warn_flag
3478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485 if test -z "$ac_cpp_err"; then
3486 # Broken: success on invalid input.
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 # Passes both tests.
3497 rm -f conftest.err conftest.$ac_ext
3500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501 rm -f conftest.err conftest.$ac_ext
3502 if $ac_preproc_ok; then
3514 { echo "$as_me:$LINENO: result: $CPP" >&5
3515 echo "${ECHO_T}$CPP" >&6; }
3517 for ac_c_preproc_warn_flag in '' yes
3519 # Use a header file that comes with gcc, so configuring glibc
3520 # with a fresh cross-compiler works.
3521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3522 # <limits.h> exists even on freestanding compilers.
3523 # On the NeXT, cc -E runs the code through the compiler's parser,
3524 # not just through cpp. "Syntax error" is here to catch this case.
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3532 # include <limits.h>
3534 # include <assert.h>
3538 if { (ac_try="$ac_cpp conftest.$ac_ext"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } >/dev/null; then
3551 if test -s conftest.err; then
3552 ac_cpp_err=$ac_c_preproc_warn_flag
3553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 if test -z "$ac_cpp_err"; then
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 # Broken: fails on valid input.
3570 rm -f conftest.err conftest.$ac_ext
3572 # OK, works on sane cases. Now check whether nonexistent headers
3573 # can be detected and how.
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 #include <ac_nonexistent.h>
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 grep -v '^ *+' conftest.er1 >conftest.err
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null; then
3595 if test -s conftest.err; then
3596 ac_cpp_err=$ac_c_preproc_warn_flag
3597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3604 if test -z "$ac_cpp_err"; then
3605 # Broken: success on invalid input.
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 # Passes both tests.
3616 rm -f conftest.err conftest.$ac_ext
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.err conftest.$ac_ext
3621 if $ac_preproc_ok; then
3624 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3625 See \`config.log' for more details." >&5
3626 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details." >&2;}
3628 { (exit 1); exit 1; }; }
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3639 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3640 if test "${ac_cv_path_GREP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 # Extract the first word of "grep ggrep" to use in msg output
3644 if test -z "$GREP"; then
3645 set dummy grep ggrep; ac_prog_name=$2
3646 if test "${ac_cv_path_GREP+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 ac_path_GREP_found=false
3650 # Loop through the user's path and test for each of PROGNAME-LIST
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3655 test -z "$as_dir" && as_dir=.
3656 for ac_prog in grep ggrep; do
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3659 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3660 # Check for GNU ac_path_GREP and select it if it is found.
3661 # Check for GNU $ac_path_GREP
3662 case `"$ac_path_GREP" --version 2>&1` in
3664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3667 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3670 cat "conftest.in" "conftest.in" >"conftest.tmp"
3671 mv "conftest.tmp" "conftest.in"
3672 cp "conftest.in" "conftest.nl"
3673 echo 'GREP' >> "conftest.nl"
3674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3676 ac_count=`expr $ac_count + 1`
3677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3678 # Best one so far, save it but keep looking for a better one
3679 ac_cv_path_GREP="$ac_path_GREP"
3680 ac_path_GREP_max=$ac_count
3682 # 10*(2^10) chars as input seems more than enough
3683 test $ac_count -gt 10 && break
3685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3689 $ac_path_GREP_found && break 3
3699 GREP="$ac_cv_path_GREP"
3700 if test -z "$GREP"; then
3701 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3702 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3703 { (exit 1); exit 1; }; }
3707 ac_cv_path_GREP=$GREP
3712 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3713 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3714 GREP="$ac_cv_path_GREP"
3717 { echo "$as_me:$LINENO: checking for egrep" >&5
3718 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3719 if test "${ac_cv_path_EGREP+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3723 then ac_cv_path_EGREP="$GREP -E"
3725 # Extract the first word of "egrep" to use in msg output
3726 if test -z "$EGREP"; then
3727 set dummy egrep; ac_prog_name=$2
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 ac_path_EGREP_found=false
3732 # Loop through the user's path and test for each of PROGNAME-LIST
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737 test -z "$as_dir" && as_dir=.
3738 for ac_prog in egrep; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3741 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3742 # Check for GNU ac_path_EGREP and select it if it is found.
3743 # Check for GNU $ac_path_EGREP
3744 case `"$ac_path_EGREP" --version 2>&1` in
3746 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3749 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3752 cat "conftest.in" "conftest.in" >"conftest.tmp"
3753 mv "conftest.tmp" "conftest.in"
3754 cp "conftest.in" "conftest.nl"
3755 echo 'EGREP' >> "conftest.nl"
3756 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758 ac_count=`expr $ac_count + 1`
3759 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3760 # Best one so far, save it but keep looking for a better one
3761 ac_cv_path_EGREP="$ac_path_EGREP"
3762 ac_path_EGREP_max=$ac_count
3764 # 10*(2^10) chars as input seems more than enough
3765 test $ac_count -gt 10 && break
3767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3771 $ac_path_EGREP_found && break 3
3781 EGREP="$ac_cv_path_EGREP"
3782 if test -z "$EGREP"; then
3783 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3784 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3785 { (exit 1); exit 1; }; }
3789 ac_cv_path_EGREP=$EGREP
3795 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3796 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3797 EGREP="$ac_cv_path_EGREP"
3800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3802 if test "${ac_cv_header_stdc+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compile") 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_try") 2>&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest.$ac_objext'
3849 { (case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_try") 2>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; }; then
3858 ac_cv_header_stdc=yes
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 ac_cv_header_stdc=no
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 if test $ac_cv_header_stdc = yes; then
3869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 $EGREP "memchr" >/dev/null 2>&1; then
3883 ac_cv_header_stdc=no
3889 if test $ac_cv_header_stdc = yes; then
3890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 $EGREP "free" >/dev/null 2>&1; then
3904 ac_cv_header_stdc=no
3910 if test $ac_cv_header_stdc = yes; then
3911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912 if test "$cross_compiling" = yes; then
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3923 #if ((' ' & 0x0FF) == 0x020)
3924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3927 # define ISLOWER(c) \
3928 (('a' <= (c) && (c) <= 'i') \
3929 || ('j' <= (c) && (c) <= 'r') \
3930 || ('s' <= (c) && (c) <= 'z'))
3931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3939 for (i = 0; i < 256; i++)
3940 if (XOR (islower (i), ISLOWER (i))
3941 || toupper (i) != TOUPPER (i))
3946 rm -f conftest$ac_exeext
3947 if { (ac_try="$ac_link"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_link") 2>&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3957 { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_try") 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3973 ac_cv_header_stdc=no
3975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3981 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3982 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3983 if test $ac_cv_header_stdc = yes; then
3985 cat >>confdefs.h <<\_ACEOF
3986 #define STDC_HEADERS 1
3991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4001 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4002 inttypes.h stdint.h unistd.h
4004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 cat >conftest.$ac_ext <<_ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 $ac_includes_default
4018 #include <$ac_header>
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4029 grep -v '^ *+' conftest.er1 >conftest.err
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4035 { (case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_try") 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 eval "$as_ac_Header=yes"
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 eval "$as_ac_Header=no"
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_res=`eval echo '${'$as_ac_Header'}'`
4065 { echo "$as_me:$LINENO: result: $ac_res" >&5
4066 echo "${ECHO_T}$ac_res" >&6; }
4067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4068 cat >>confdefs.h <<_ACEOF
4069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4077 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4078 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4079 if test "${ac_cv_c_bigendian+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 # See if sys/param.h defines the BYTE_ORDER macro.
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <sys/types.h>
4090 #include <sys/param.h>
4095 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 # It does; now see whether it defined to BIG_ENDIAN or not.
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4145 #include <sys/param.h>
4150 #if BYTE_ORDER != BIG_ENDIAN
4158 rm -f conftest.$ac_objext
4159 if { (ac_try="$ac_compile"
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_compile") 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; } &&
4182 { ac_try='test -s conftest.$ac_objext'
4183 { (case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_try") 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_cv_c_bigendian=yes
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 ac_cv_c_bigendian=no
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 # It does not; compile a test program.
4206 if test "$cross_compiling" = yes; then
4207 # try to guess the endianness by grepping values into an object file
4208 ac_cv_c_bigendian=unknown
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4216 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4217 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4218 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4219 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4220 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4224 _ascii (); _ebcdic ();
4229 rm -f conftest.$ac_objext
4230 if { (ac_try="$ac_compile"
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_compile") 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4244 { (case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_try") 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest.$ac_objext'
4254 { (case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_try") 2>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4264 ac_cv_c_bigendian=yes
4266 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4267 if test "$ac_cv_c_bigendian" = unknown; then
4268 ac_cv_c_bigendian=no
4270 # finding both strings is unlikely to happen, but who knows?
4271 ac_cv_c_bigendian=unknown
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 cat >conftest.$ac_ext <<_ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 $ac_includes_default
4294 /* Are we little or big endian? From Harbison&Steele. */
4298 char c[sizeof (long int)];
4301 return u.c[sizeof (long int) - 1] == 1;
4307 rm -f conftest$ac_exeext
4308 if { (ac_try="$ac_link"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_link") 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ac_cv_c_bigendian=no
4329 echo "$as_me: program exited with status $ac_status" >&5
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4334 ac_cv_c_bigendian=yes
4336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4345 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4346 case $ac_cv_c_bigendian in
4354 { { echo "$as_me:$LINENO: error: unknown endianness
4355 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4356 echo "$as_me: error: unknown endianness
4357 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4358 { (exit 1); exit 1; }; } ;;
4362 if test "$cross_compiling" = yes; then
4363 LLVM_CROSS_COMPILING=1
4366 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4367 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4368 if test "${ac_cv_build_exeext+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4372 ac_cv_build_exeext=.exe
4374 ac_build_prefix=${build_alias}-
4376 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4377 set dummy ${ac_build_prefix}gcc; ac_word=$2
4378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 if test -n "$BUILD_CC"; then
4384 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 BUILD_CC=$ac_cv_prog_BUILD_CC
4404 if test -n "$BUILD_CC"; then
4405 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4406 echo "${ECHO_T}$BUILD_CC" >&6; }
4408 { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4413 if test -z "$BUILD_CC"; then
4414 # Extract the first word of "gcc", so it can be a program name with args.
4415 set dummy gcc; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 if test -n "$BUILD_CC"; then
4422 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_BUILD_CC="gcc"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 BUILD_CC=$ac_cv_prog_BUILD_CC
4442 if test -n "$BUILD_CC"; then
4443 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444 echo "${ECHO_T}$BUILD_CC" >&6; }
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 if test -z "$BUILD_CC"; then
4452 # Extract the first word of "cc", so it can be a program name with args.
4453 set dummy cc; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -n "$BUILD_CC"; then
4460 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4471 ac_prog_rejected=yes
4474 ac_cv_prog_BUILD_CC="cc"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 if test $ac_prog_rejected = yes; then
4483 # We found a bogon in the path, so make sure we never use it.
4484 set dummy $ac_cv_prog_BUILD_CC
4486 if test $# != 0; then
4487 # We chose a different compiler from the bogus one.
4488 # However, it has the same basename, so the bogon will be chosen
4489 # first if we set BUILD_CC to just the basename; use the full file name.
4491 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4496 BUILD_CC=$ac_cv_prog_BUILD_CC
4497 if test -n "$BUILD_CC"; then
4498 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4499 echo "${ECHO_T}$BUILD_CC" >&6; }
4501 { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4508 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4509 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4510 { (exit 1); exit 1; }; }
4511 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4513 echo 'int main () { return 0; }' > conftest.$ac_ext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4516 (eval $ac_build_link) 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; then
4520 for file in conftest.*; do
4522 *.c | *.o | *.obj) ;;
4523 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4527 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4528 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4529 { (exit 1); exit 1; }; }
4532 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4537 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4538 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4539 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4540 ac_build_exeext=$BUILD_EXEEXT
4543 LLVM_CROSS_COMPILING=0
4547 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4558 # Check whether --enable-optimized was given.
4559 if test "${enable_optimized+set}" = set; then
4560 enableval=$enable_optimized;
4565 if test ${enableval} = "no" ; then
4569 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4573 # Check whether --enable-assertions was given.
4574 if test "${enable_assertions+set}" = set; then
4575 enableval=$enable_assertions;
4580 if test ${enableval} = "yes" ; then
4584 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4588 # Check whether --enable-expensive-checks was given.
4589 if test "${enable_expensive_checks+set}" = set; then
4590 enableval=$enable_expensive_checks;
4595 if test ${enableval} = "yes" ; then
4596 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4598 EXPENSIVE_CHECKS=yes
4601 ENABLE_EXPENSIVE_CHECKS=
4607 # Check whether --enable-debug-runtime was given.
4608 if test "${enable_debug_runtime+set}" = set; then
4609 enableval=$enable_debug_runtime;
4614 if test ${enableval} = "no" ; then
4618 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4622 # Check whether --enable-jit was given.
4623 if test "${enable_jit+set}" = set; then
4624 enableval=$enable_jit;
4629 if test ${enableval} = "no"
4634 case "$llvm_cv_target_arch" in
4635 x86) TARGET_HAS_JIT=1
4637 Sparc) TARGET_HAS_JIT=0
4639 PowerPC) TARGET_HAS_JIT=1
4641 x86_64) TARGET_HAS_JIT=1
4643 Alpha) TARGET_HAS_JIT=1
4645 IA64) TARGET_HAS_JIT=0
4647 ARM) TARGET_HAS_JIT=0
4649 Mips) TARGET_HAS_JIT=0
4656 # Check whether --enable-doxygen was given.
4657 if test "${enable_doxygen+set}" = set; then
4658 enableval=$enable_doxygen;
4663 case "$enableval" in
4664 yes) ENABLE_DOXYGEN=1
4666 no) ENABLE_DOXYGEN=0
4668 default) ENABLE_DOXYGEN=0
4670 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4671 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4672 { (exit 1); exit 1; }; } ;;
4675 # Check whether --enable-threads was given.
4676 if test "${enable_threads+set}" = set; then
4677 enableval=$enable_threads;
4682 case "$enableval" in
4683 yes) ENABLE_THREADS=1
4685 no) ENABLE_THREADS=0
4687 default) ENABLE_THREADS=1
4689 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4690 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4691 { (exit 1); exit 1; }; } ;;
4694 cat >>confdefs.h <<_ACEOF
4695 #define ENABLE_THREADS $ENABLE_THREADS
4699 # Check whether --enable-pic was given.
4700 if test "${enable_pic+set}" = set; then
4701 enableval=$enable_pic;
4706 case "$enableval" in
4711 default) ENABLE_PIC=0
4713 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4714 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4718 cat >>confdefs.h <<_ACEOF
4719 #define ENABLE_PIC $ENABLE_PIC
4724 # Check whether --enable-targets was given.
4725 if test "${enable_targets+set}" = set; then
4726 enableval=$enable_targets;
4731 case "$enableval" in
4732 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4734 case "$llvm_cv_target_arch" in
4735 x86) TARGETS_TO_BUILD="X86" ;;
4736 x86_64) TARGETS_TO_BUILD="X86" ;;
4737 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4738 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4739 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4740 IA64) TARGETS_TO_BUILD="IA64" ;;
4741 ARM) TARGETS_TO_BUILD="ARM" ;;
4742 Mips) TARGETS_TO_BUILD="Mips" ;;
4743 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4744 echo "$as_me: error: Can not set target to build" >&2;}
4745 { (exit 1); exit 1; }; } ;;
4748 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4750 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4751 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4752 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4753 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4754 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4755 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4756 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4757 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4758 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4759 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4760 { (exit 1); exit 1; }; } ;;
4765 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4766 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4769 # Check whether --enable-cbe-printf-a was given.
4770 if test "${enable_cbe_printf_a+set}" = set; then
4771 enableval=$enable_cbe_printf_a;
4776 case "$enableval" in
4777 yes) ENABLE_CBE_PRINTF_A=1
4779 no) ENABLE_CBE_PRINTF_A=0
4781 default) ENABLE_CBE_PRINTF_A=1
4783 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4784 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4785 { (exit 1); exit 1; }; } ;;
4788 cat >>confdefs.h <<_ACEOF
4789 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4794 # Check whether --with-llvmgccdir was given.
4795 if test "${with_llvmgccdir+set}" = set; then
4796 withval=$with_llvmgccdir;
4802 default) WITH_LLVMGCCDIR=default ;;
4803 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4804 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4805 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4806 { (exit 1); exit 1; }; } ;;
4810 # Check whether --with-extra-options was given.
4811 if test "${with_extra_options+set}" = set; then
4812 withval=$with_extra_options;
4818 default) EXTRA_OPTIONS= ;;
4819 *) EXTRA_OPTIONS=$withval ;;
4821 EXTRA_OPTIONS=$EXTRA_OPTIONS
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4831 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4832 # On Suns, sometimes $CPP names a directory.
4833 if test -n "$CPP" && test -d "$CPP"; then
4836 if test -z "$CPP"; then
4837 if test "${ac_cv_prog_CPP+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 # Double quotes because CPP needs to be expanded
4841 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844 for ac_c_preproc_warn_flag in '' yes
4846 # Use a header file that comes with gcc, so configuring glibc
4847 # with a fresh cross-compiler works.
4848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849 # <limits.h> exists even on freestanding compilers.
4850 # On the NeXT, cc -E runs the code through the compiler's parser,
4851 # not just through cpp. "Syntax error" is here to catch this case.
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4859 # include <limits.h>
4861 # include <assert.h>
4865 if { (ac_try="$ac_cpp conftest.$ac_ext"
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null; then
4878 if test -s conftest.err; then
4879 ac_cpp_err=$ac_c_preproc_warn_flag
4880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4887 if test -z "$ac_cpp_err"; then
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 # Broken: fails on valid input.
4897 rm -f conftest.err conftest.$ac_ext
4899 # OK, works on sane cases. Now check whether nonexistent headers
4900 # can be detected and how.
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 #include <ac_nonexistent.h>
4909 if { (ac_try="$ac_cpp conftest.$ac_ext"
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null; then
4922 if test -s conftest.err; then
4923 ac_cpp_err=$ac_c_preproc_warn_flag
4924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4931 if test -z "$ac_cpp_err"; then
4932 # Broken: success on invalid input.
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 # Passes both tests.
4943 rm -f conftest.err conftest.$ac_ext
4946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4947 rm -f conftest.err conftest.$ac_ext
4948 if $ac_preproc_ok; then
4960 { echo "$as_me:$LINENO: result: $CPP" >&5
4961 echo "${ECHO_T}$CPP" >&6; }
4963 for ac_c_preproc_warn_flag in '' yes
4965 # Use a header file that comes with gcc, so configuring glibc
4966 # with a fresh cross-compiler works.
4967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4968 # <limits.h> exists even on freestanding compilers.
4969 # On the NeXT, cc -E runs the code through the compiler's parser,
4970 # not just through cpp. "Syntax error" is here to catch this case.
4971 cat >conftest.$ac_ext <<_ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4978 # include <limits.h>
4980 # include <assert.h>
4984 if { (ac_try="$ac_cpp conftest.$ac_ext"
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_c_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5006 if test -z "$ac_cpp_err"; then
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 # Broken: fails on valid input.
5016 rm -f conftest.err conftest.$ac_ext
5018 # OK, works on sane cases. Now check whether nonexistent headers
5019 # can be detected and how.
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <ac_nonexistent.h>
5028 if { (ac_try="$ac_cpp conftest.$ac_ext"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev/null; then
5041 if test -s conftest.err; then
5042 ac_cpp_err=$ac_c_preproc_warn_flag
5043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5050 if test -z "$ac_cpp_err"; then
5051 # Broken: success on invalid input.
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Passes both tests.
5062 rm -f conftest.err conftest.$ac_ext
5065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5066 rm -f conftest.err conftest.$ac_ext
5067 if $ac_preproc_ok; then
5070 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5071 See \`config.log' for more details." >&5
5072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5073 See \`config.log' for more details." >&2;}
5074 { (exit 1); exit 1; }; }
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_CC+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 if test -n "$CC"; then
5099 ac_cv_prog_CC="$CC" # Let the user override the test.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 if test -n "$CC"; then
5120 { echo "$as_me:$LINENO: result: $CC" >&5
5121 echo "${ECHO_T}$CC" >&6; }
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5128 test -n "$CC" && break
5131 if test -z "$CC"; then
5135 # Extract the first word of "$ac_prog", so it can be a program name with args.
5136 set dummy $ac_prog; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 if test -n "$ac_ct_CC"; then
5143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_CC="$ac_prog"
5153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5163 if test -n "$ac_ct_CC"; then
5164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5165 echo "${ECHO_T}$ac_ct_CC" >&6; }
5167 { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5172 test -n "$ac_ct_CC" && break
5175 if test "x$ac_ct_CC" = x; then
5178 case $cross_compiling:$ac_tool_warned in
5180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5181 whose name does not start with the host triplet. If you think this
5182 configuration is useful to you, please write to autoconf@gnu.org." >&5
5183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5184 whose name does not start with the host triplet. If you think this
5185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5186 ac_tool_warned=yes ;;
5193 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5194 See \`config.log' for more details." >&5
5195 echo "$as_me: error: no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." >&2;}
5197 { (exit 1); exit 1; }; }
5199 # Provide some information about the compiler.
5200 echo "$as_me:$LINENO: checking for C compiler version" >&5
5201 ac_compiler=`set X $ac_compile; echo $2`
5202 { (ac_try="$ac_compiler --version >&5"
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_compiler --version >&5") 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }
5212 { (ac_try="$ac_compiler -v >&5"
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compiler -v >&5") 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }
5222 { (ac_try="$ac_compiler -V >&5"
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_compiler -V >&5") 2>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }
5233 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_compile") 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5271 { (case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; } &&
5280 { ac_try='test -s conftest.$ac_objext'
5281 { (case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_try") 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5302 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5303 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5304 GCC=`test $ac_compiler_gnu = yes && echo yes`
5305 ac_test_CFLAGS=${CFLAGS+set}
5306 ac_save_CFLAGS=$CFLAGS
5307 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5308 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5309 if test "${ac_cv_prog_cc_g+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 ac_save_c_werror_flag=$ac_c_werror_flag
5313 ac_c_werror_flag=yes
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5346 { (case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_try") 2>&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest.$ac_objext'
5356 { (case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_try") 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5401 { (case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_try") 2>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest.$ac_objext'
5411 { (case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_try") 2>&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_c_werror_flag=$ac_save_c_werror_flag
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457 { (case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_try") 2>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_try") 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 ac_c_werror_flag=$ac_save_c_werror_flag
5493 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5494 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5495 if test "$ac_test_CFLAGS" = set; then
5496 CFLAGS=$ac_save_CFLAGS
5497 elif test $ac_cv_prog_cc_g = yes; then
5498 if test "$GCC" = yes; then
5504 if test "$GCC" = yes; then
5510 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5511 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5512 if test "${ac_cv_prog_cc_c89+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_cv_prog_cc_c89=no
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5525 #include <sys/types.h>
5526 #include <sys/stat.h>
5527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5528 struct buf { int x; };
5529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5530 static char *e (p, i)
5536 static char *f (char * (*g) (char **, int), char **p, ...)
5541 s = g (p, va_arg (v,int));
5546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5547 function prototypes and stuff, but not '\xHH' hex character constants.
5548 These don't provoke an error unfortunately, instead are silently treated
5549 as 'x'. The following induces an error, until -std is added to get
5550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5551 array size at least. It's necessary to write '\x00'==0 to get something
5552 that's true only with -std. */
5553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5555 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5556 inside strings and character constants. */
5558 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5560 int test (int i, double x);
5561 struct s1 {int (*f) (int a);};
5562 struct s2 {int (*f) (double a);};
5563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5569 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5577 CC="$ac_save_CC $ac_arg"
5578 rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compile") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5593 { (case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_try") 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; } &&
5602 { ac_try='test -s conftest.$ac_objext'
5603 { (case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_try") 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_prog_cc_c89=$ac_arg
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5620 rm -f core conftest.err conftest.$ac_objext
5621 test "x$ac_cv_prog_cc_c89" != "xno" && break
5623 rm -f conftest.$ac_ext
5628 case "x$ac_cv_prog_cc_c89" in
5630 { echo "$as_me:$LINENO: result: none needed" >&5
5631 echo "${ECHO_T}none needed" >&6; } ;;
5633 { echo "$as_me:$LINENO: result: unsupported" >&5
5634 echo "${ECHO_T}unsupported" >&6; } ;;
5636 CC="$CC $ac_cv_prog_cc_c89"
5637 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5638 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649 ac_cpp='$CXXCPP $CPPFLAGS'
5650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653 if test -z "$CXX"; then
5654 if test -n "$CCC"; then
5657 if test -n "$ac_tool_prefix"; then
5660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664 if test "${ac_cv_prog_CXX+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 if test -n "$CXX"; then
5668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 if test -n "$CXX"; then
5689 { echo "$as_me:$LINENO: result: $CXX" >&5
5690 echo "${ECHO_T}$CXX" >&6; }
5692 { echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6; }
5697 test -n "$CXX" && break
5700 if test -z "$CXX"; then
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5708 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 if test -n "$ac_ct_CXX"; then
5712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_ac_ct_CXX="$ac_prog"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5732 if test -n "$ac_ct_CXX"; then
5733 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5734 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5736 { echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6; }
5741 test -n "$ac_ct_CXX" && break
5744 if test "x$ac_ct_CXX" = x; then
5747 case $cross_compiling:$ac_tool_warned in
5749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5750 whose name does not start with the host triplet. If you think this
5751 configuration is useful to you, please write to autoconf@gnu.org." >&5
5752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5753 whose name does not start with the host triplet. If you think this
5754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5755 ac_tool_warned=yes ;;
5763 # Provide some information about the compiler.
5764 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5765 ac_compiler=`set X $ac_compile; echo $2`
5766 { (ac_try="$ac_compiler --version >&5"
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_compiler --version >&5") 2>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }
5776 { (ac_try="$ac_compiler -v >&5"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compiler -v >&5") 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }
5786 { (ac_try="$ac_compiler -V >&5"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compiler -V >&5") 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }
5797 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5798 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5799 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5835 { (case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_try") 2>&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_try") 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5866 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5867 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5868 GXX=`test $ac_compiler_gnu = yes && echo yes`
5869 ac_test_CXXFLAGS=${CXXFLAGS+set}
5870 ac_save_CXXFLAGS=$CXXFLAGS
5871 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5872 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5873 if test "${ac_cv_prog_cxx_g+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5877 ac_cxx_werror_flag=yes
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5910 { (case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_try") 2>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_prog_cxx_g=yes
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5935 cat >conftest.$ac_ext <<_ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } &&
5964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5965 { (case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_try") 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; } &&
5974 { ac_try='test -s conftest.$ac_objext'
5975 { (case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_try") 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6021 { (case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_try") 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; } &&
6030 { ac_try='test -s conftest.$ac_objext'
6031 { (case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_try") 2>&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 ac_cv_prog_cxx_g=yes
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6058 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6059 if test "$ac_test_CXXFLAGS" = set; then
6060 CXXFLAGS=$ac_save_CXXFLAGS
6061 elif test $ac_cv_prog_cxx_g = yes; then
6062 if test "$GXX" = yes; then
6068 if test "$GXX" = yes; then
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6080 { echo "$as_me:$LINENO: checking " >&5
6081 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6082 if test "${ac_cv_has_flex+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 for ac_prog in flex lex
6087 # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_LEX+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 if test -n "$LEX"; then
6095 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_LEX="$ac_prog"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 if test -n "$LEX"; then
6116 { echo "$as_me:$LINENO: result: $LEX" >&5
6117 echo "${ECHO_T}$LEX" >&6; }
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6124 test -n "$LEX" && break
6126 test -n "$LEX" || LEX=":"
6128 if test -z "$LEXLIB"
6130 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6131 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6132 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 ac_check_lib_save_LIBS=$LIBS
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6144 /* Override any GCC internal prototype to avoid an error.
6145 Use char because int might match the return type of a GCC
6146 builtin and then its argument prototype would still apply. */
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (ac_try="$ac_link"
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_link") 2>conftest.er1
6168 grep -v '^ *+' conftest.er1 >conftest.err
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6174 { (case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_try") 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (case "(($ac_try" in
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_try") 2>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_lib_fl_yywrap=yes
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_cv_lib_fl_yywrap=no
6201 rm -f core conftest.err conftest.$ac_objext \
6202 conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6205 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6206 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6207 if test $ac_cv_lib_fl_yywrap = yes; then
6210 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6211 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6212 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 ac_check_lib_save_LIBS=$LIBS
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6224 /* Override any GCC internal prototype to avoid an error.
6225 Use char because int might match the return type of a GCC
6226 builtin and then its argument prototype would still apply. */
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (ac_try="$ac_link"
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_link") 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6254 { (case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_try") 2>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_lib_l_yywrap=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_cv_lib_l_yywrap=no
6281 rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_check_lib_save_LIBS
6285 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6286 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6287 if test $ac_cv_lib_l_yywrap = yes; then
6295 if test "x$LEX" != "x:"; then
6296 { echo "$as_me:$LINENO: checking lex output file root" >&5
6297 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6298 if test "${ac_cv_prog_lex_root+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 # The minimal lex program is just a single line: %%. But some broken lexes
6302 # (Solaris, I think it was) want two %% lines, so accommodate them.
6303 cat >conftest.l <<_ACEOF
6307 { (ac_try="$LEX conftest.l"
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$LEX conftest.l") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }
6317 if test -f lex.yy.c; then
6318 ac_cv_prog_lex_root=lex.yy
6319 elif test -f lexyy.c; then
6320 ac_cv_prog_lex_root=lexyy
6322 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6323 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6324 { (exit 1); exit 1; }; }
6327 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6328 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6330 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6332 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6333 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6334 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 # POSIX says lex can declare yytext either as a pointer or an array; the
6338 # default is implementation-dependent. Figure out which it is, since
6339 # not all implementations provide the %pointer and %array declarations.
6340 ac_cv_prog_lex_yytext_pointer=no
6341 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6343 LIBS="$LIBS $LEXLIB"
6344 cat >conftest.$ac_ext <<_ACEOF
6345 `cat $LEX_OUTPUT_ROOT.c`
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (ac_try="$ac_link"
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_link") 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6362 { (case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_try") 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_try") 2>&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_cv_prog_lex_yytext_pointer=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6389 rm -f core conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext conftest.$ac_ext
6392 rm -f "${LEX_OUTPUT_ROOT}.c"
6395 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6396 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6397 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6399 cat >>confdefs.h <<\_ACEOF
6400 #define YYTEXT_POINTER 1
6408 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6409 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6410 if test "$LEX" != "flex"; then
6411 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6412 echo "$as_me: error: flex not found but required" >&2;}
6413 { (exit 1); exit 1; }; }
6419 { echo "$as_me:$LINENO: checking " >&5
6420 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6421 if test "${llvm_cv_has_bison+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 for ac_prog in 'bison -y' byacc
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430 if test "${ac_cv_prog_YACC+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 if test -n "$YACC"; then
6434 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_YACC="$ac_prog"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 YACC=$ac_cv_prog_YACC
6454 if test -n "$YACC"; then
6455 { echo "$as_me:$LINENO: result: $YACC" >&5
6456 echo "${ECHO_T}$YACC" >&6; }
6458 { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6463 test -n "$YACC" && break
6465 test -n "$YACC" || YACC="yacc"
6468 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6469 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6470 if test "$YACC" != "bison -y"; then
6472 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6473 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6479 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6480 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6481 if test "${lt_cv_path_NM+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 if test -n "$NM"; then
6485 # Let the user override the test.
6488 lt_nm_to_check="${ac_tool_prefix}nm"
6489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6490 lt_nm_to_check="$lt_nm_to_check nm"
6492 for lt_tmp_nm in $lt_nm_to_check; do
6493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6496 test -z "$ac_dir" && ac_dir=.
6497 tmp_nm="$ac_dir/$lt_tmp_nm"
6498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6499 # Check to see if the nm accepts a BSD-compat flag.
6500 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6501 # nm: unknown option "B" ignored
6502 # Tru64's nm complains that /dev/null is an invalid object file
6503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6504 */dev/null* | *'Invalid file or object type'*)
6505 lt_cv_path_NM="$tmp_nm -B"
6509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6511 lt_cv_path_NM="$tmp_nm -p"
6515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6516 continue # so that we can try to find one that supports BSD flags
6525 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6528 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6529 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6534 { echo "$as_me:$LINENO: checking for GNU make" >&5
6535 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6536 if test "${llvm_cv_gnu_make_command+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 llvm_cv_gnu_make_command=''
6540 for a in "$MAKE" make gmake gnumake ; do
6541 if test -z "$a" ; then continue ; fi ;
6542 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6544 llvm_cv_gnu_make_command=$a ;
6549 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6550 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6551 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6555 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6556 echo "${ECHO_T}\"Not found\"" >&6; };
6560 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6561 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6563 if test "$LN_S" = "ln -s"; then
6564 { echo "$as_me:$LINENO: result: yes" >&5
6565 echo "${ECHO_T}yes" >&6; }
6567 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6568 echo "${ECHO_T}no, using $LN_S" >&6; }
6571 # Extract the first word of "cmp", so it can be a program name with args.
6572 set dummy cmp; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_CMP+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6603 if test -n "$CMP"; then
6604 { echo "$as_me:$LINENO: result: $CMP" >&5
6605 echo "${ECHO_T}$CMP" >&6; }
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6612 # Extract the first word of "cp", so it can be a program name with args.
6613 set dummy cp; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_CP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6644 if test -n "$CP"; then
6645 { echo "$as_me:$LINENO: result: $CP" >&5
6646 echo "${ECHO_T}$CP" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6653 # Extract the first word of "date", so it can be a program name with args.
6654 set dummy date; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_DATE+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6684 DATE=$ac_cv_path_DATE
6685 if test -n "$DATE"; then
6686 { echo "$as_me:$LINENO: result: $DATE" >&5
6687 echo "${ECHO_T}$DATE" >&6; }
6689 { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6694 # Extract the first word of "find", so it can be a program name with args.
6695 set dummy find; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_FIND+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6725 FIND=$ac_cv_path_FIND
6726 if test -n "$FIND"; then
6727 { echo "$as_me:$LINENO: result: $FIND" >&5
6728 echo "${ECHO_T}$FIND" >&6; }
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6735 # Extract the first word of "grep", so it can be a program name with args.
6736 set dummy grep; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_GREP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6766 GREP=$ac_cv_path_GREP
6767 if test -n "$GREP"; then
6768 { echo "$as_me:$LINENO: result: $GREP" >&5
6769 echo "${ECHO_T}$GREP" >&6; }
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6776 # Extract the first word of "mkdir", so it can be a program name with args.
6777 set dummy mkdir; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_MKDIR+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6807 MKDIR=$ac_cv_path_MKDIR
6808 if test -n "$MKDIR"; then
6809 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6810 echo "${ECHO_T}$MKDIR" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6817 # Extract the first word of "mv", so it can be a program name with args.
6818 set dummy mv; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_MV+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6849 if test -n "$MV"; then
6850 { echo "$as_me:$LINENO: result: $MV" >&5
6851 echo "${ECHO_T}$MV" >&6; }
6853 { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_prog_RANLIB+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 if test -n "$RANLIB"; then
6867 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 RANLIB=$ac_cv_prog_RANLIB
6887 if test -n "$RANLIB"; then
6888 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6889 echo "${ECHO_T}$RANLIB" >&6; }
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6897 if test -z "$ac_cv_prog_RANLIB"; then
6898 ac_ct_RANLIB=$RANLIB
6899 # Extract the first word of "ranlib", so it can be a program name with args.
6900 set dummy ranlib; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 if test -n "$ac_ct_RANLIB"; then
6907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_ac_ct_RANLIB="ranlib"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6927 if test -n "$ac_ct_RANLIB"; then
6928 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6929 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6935 if test "x$ac_ct_RANLIB" = x; then
6938 case $cross_compiling:$ac_tool_warned in
6940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6941 whose name does not start with the host triplet. If you think this
6942 configuration is useful to you, please write to autoconf@gnu.org." >&5
6943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet. If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6946 ac_tool_warned=yes ;;
6948 RANLIB=$ac_ct_RANLIB
6951 RANLIB="$ac_cv_prog_RANLIB"
6954 # Extract the first word of "rm", so it can be a program name with args.
6955 set dummy rm; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_RM+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6986 if test -n "$RM"; then
6987 { echo "$as_me:$LINENO: result: $RM" >&5
6988 echo "${ECHO_T}$RM" >&6; }
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6995 # Extract the first word of "sed", so it can be a program name with args.
6996 set dummy sed; ac_word=$2
6997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999 if test "${ac_cv_path_SED+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7014 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7027 if test -n "$SED"; then
7028 { echo "$as_me:$LINENO: result: $SED" >&5
7029 echo "${ECHO_T}$SED" >&6; }
7031 { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7036 # Extract the first word of "tar", so it can be a program name with args.
7037 set dummy tar; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_TAR+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7068 if test -n "$TAR"; then
7069 { echo "$as_me:$LINENO: result: $TAR" >&5
7070 echo "${ECHO_T}$TAR" >&6; }
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "pwd", so it can be a program name with args.
7078 set dummy pwd; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_BINPWD+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7108 BINPWD=$ac_cv_path_BINPWD
7109 if test -n "$BINPWD"; then
7110 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7111 echo "${ECHO_T}$BINPWD" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7119 # Extract the first word of "Graphviz", so it can be a program name with args.
7120 set dummy Graphviz; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7150 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7151 if test -n "$GRAPHVIZ"; then
7152 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7153 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7162 cat >>confdefs.h <<\_ACEOF
7163 #define HAVE_GRAPHVIZ 1
7166 if test "$llvm_cv_os_type" = "MingW" ; then
7167 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7170 cat >>confdefs.h <<_ACEOF
7171 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7175 # Extract the first word of "dot", so it can be a program name with args.
7176 set dummy dot; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_path_DOT+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7207 if test -n "$DOT"; then
7208 { echo "$as_me:$LINENO: result: $DOT" >&5
7209 echo "${ECHO_T}$DOT" >&6; }
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7216 if test "$DOT" != "echo dot" ; then
7218 cat >>confdefs.h <<\_ACEOF
7222 if test "$llvm_cv_os_type" = "MingW" ; then
7223 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7226 cat >>confdefs.h <<_ACEOF
7227 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7231 for ac_prog in gv gsview32
7233 # Extract the first word of "$ac_prog", so it can be a program name with args.
7234 set dummy $ac_prog; ac_word=$2
7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237 if test "${ac_cv_path_GV+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 if test -n "$GV"; then
7265 { echo "$as_me:$LINENO: result: $GV" >&5
7266 echo "${ECHO_T}$GV" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7273 test -n "$GV" && break
7275 test -n "$GV" || GV="echo gv"
7277 if test "$GV" != "echo gv" ; then
7279 cat >>confdefs.h <<\_ACEOF
7283 if test "$llvm_cv_os_type" = "MingW" ; then
7284 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7287 cat >>confdefs.h <<_ACEOF
7288 #define LLVM_PATH_GV "$GV${EXEEXT}"
7292 # Extract the first word of "dotty", so it can be a program name with args.
7293 set dummy dotty; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_path_DOTTY+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7323 DOTTY=$ac_cv_path_DOTTY
7324 if test -n "$DOTTY"; then
7325 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7326 echo "${ECHO_T}$DOTTY" >&6; }
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7333 if test "$DOTTY" != "echo dotty" ; then
7335 cat >>confdefs.h <<\_ACEOF
7336 #define HAVE_DOTTY 1
7339 if test "$llvm_cv_os_type" = "MingW" ; then
7340 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7343 cat >>confdefs.h <<_ACEOF
7344 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7350 # Extract the first word of "perl", so it can be a program name with args.
7351 set dummy perl; ac_word=$2
7352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7354 if test "${ac_cv_path_PERL+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7381 PERL=$ac_cv_path_PERL
7382 if test -n "$PERL"; then
7383 { echo "$as_me:$LINENO: result: $PERL" >&5
7384 echo "${ECHO_T}$PERL" >&6; }
7386 { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7391 if test "$PERL" != "none"; then
7392 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7393 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7394 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7395 { echo "$as_me:$LINENO: result: yes" >&5
7396 echo "${ECHO_T}yes" >&6; }
7399 { echo "$as_me:$LINENO: result: not found" >&5
7400 echo "${ECHO_T}not found" >&6; }
7405 if test x"$PERL" = xnone; then
7408 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7409 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7410 { (exit 1); exit 1; }; }
7416 # Find a good install program. We prefer a C program (faster),
7417 # so one script is as good as another. But avoid the broken or
7418 # incompatible versions:
7419 # SysV /etc/install, /usr/sbin/install
7420 # SunOS /usr/etc/install
7421 # IRIX /sbin/install
7423 # AmigaOS /C/install, which installs bootblocks on floppy discs
7424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7427 # OS/2's system install, which has a completely different semantic
7428 # ./install, which can be erroneously created by make from ./install.sh.
7429 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7431 if test -z "$INSTALL"; then
7432 if test "${ac_cv_path_install+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 # Account for people who put trailing slashes in PATH elements.
7442 ./ | .// | /cC/* | \
7443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7444 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7447 # OSF1 and SCO ODT 3.0 have their own names for install.
7448 # Don't use installbsd from OSF since it installs stuff as root
7450 for ac_prog in ginstall scoinst install; do
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7453 if test $ac_prog = install &&
7454 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7455 # AIX install. It has an incompatible calling convention.
7457 elif test $ac_prog = install &&
7458 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7459 # program-specific install script used by HP pwplus--don't use.
7462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7475 if test "${ac_cv_path_install+set}" = set; then
7476 INSTALL=$ac_cv_path_install
7478 # As a last resort, use the slow shell script. Don't cache a
7479 # value for INSTALL within a source directory, because that will
7480 # break other packages using the cache if that directory is
7481 # removed, or if the value is a relative name.
7482 INSTALL=$ac_install_sh
7485 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7486 echo "${ECHO_T}$INSTALL" >&6; }
7488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7489 # It thinks the first close brace ends the variable substitution.
7490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7497 # Extract the first word of "bzip2", so it can be a program name with args.
7498 set dummy bzip2; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_path_BZIP2+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7528 BZIP2=$ac_cv_path_BZIP2
7529 if test -n "$BZIP2"; then
7530 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7531 echo "${ECHO_T}$BZIP2" >&6; }
7533 { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7538 # Extract the first word of "doxygen", so it can be a program name with args.
7539 set dummy doxygen; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7569 DOXYGEN=$ac_cv_path_DOXYGEN
7570 if test -n "$DOXYGEN"; then
7571 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7572 echo "${ECHO_T}$DOXYGEN" >&6; }
7574 { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7579 # Extract the first word of "groff", so it can be a program name with args.
7580 set dummy groff; ac_word=$2
7581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583 if test "${ac_cv_path_GROFF+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7610 GROFF=$ac_cv_path_GROFF
7611 if test -n "$GROFF"; then
7612 { echo "$as_me:$LINENO: result: $GROFF" >&5
7613 echo "${ECHO_T}$GROFF" >&6; }
7615 { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7620 # Extract the first word of "gzip", so it can be a program name with args.
7621 set dummy gzip; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_GZIP+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7651 GZIP=$ac_cv_path_GZIP
7652 if test -n "$GZIP"; then
7653 { echo "$as_me:$LINENO: result: $GZIP" >&5
7654 echo "${ECHO_T}$GZIP" >&6; }
7656 { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7661 # Extract the first word of "pod2html", so it can be a program name with args.
7662 set dummy pod2html; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_POD2HTML+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7692 POD2HTML=$ac_cv_path_POD2HTML
7693 if test -n "$POD2HTML"; then
7694 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7695 echo "${ECHO_T}$POD2HTML" >&6; }
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7702 # Extract the first word of "pod2man", so it can be a program name with args.
7703 set dummy pod2man; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_POD2MAN+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7733 POD2MAN=$ac_cv_path_POD2MAN
7734 if test -n "$POD2MAN"; then
7735 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7736 echo "${ECHO_T}$POD2MAN" >&6; }
7738 { echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6; }
7743 # Extract the first word of "runtest", so it can be a program name with args.
7744 set dummy runtest; ac_word=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_path_RUNTEST+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7774 RUNTEST=$ac_cv_path_RUNTEST
7775 if test -n "$RUNTEST"; then
7776 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7777 echo "${ECHO_T}$RUNTEST" >&6; }
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7786 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7787 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7789 # Check whether --with-tclinclude was given.
7790 if test "${with_tclinclude+set}" = set; then
7791 withval=$with_tclinclude; with_tclinclude=${withval}
7796 if test "${ac_cv_path_tclsh+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 if test x"${with_tclinclude}" != x ; then
7801 if test -f ${with_tclinclude}/tclsh ; then
7802 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7803 elif test -f ${with_tclinclude}/src/tclsh ; then
7804 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7806 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7807 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7808 { (exit 1); exit 1; }; }
7812 if test x"${ac_cv_path_tclsh}" = x ; then
7813 { echo "$as_me:$LINENO: result: none" >&5
7814 echo "${ECHO_T}none" >&6; }
7815 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
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821 if test "${ac_cv_path_TCLSH+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 TCLSH=$ac_cv_path_TCLSH
7848 if test -n "$TCLSH"; then
7849 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7850 echo "${ECHO_T}$TCLSH" >&6; }
7852 { echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6; }
7857 test -n "$TCLSH" && break
7860 if test x"${TCLSH}" = x ; then
7861 ac_cv_path_tclsh='';
7863 ac_cv_path_tclsh="${TCLSH}";
7866 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7867 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7868 TCLSH="${ac_cv_path_tclsh}"
7874 # Extract the first word of "zip", so it can be a program name with args.
7875 set dummy zip; ac_word=$2
7876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878 if test "${ac_cv_path_ZIP+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7906 if test -n "$ZIP"; then
7907 { echo "$as_me:$LINENO: result: $ZIP" >&5
7908 echo "${ECHO_T}$ZIP" >&6; }
7910 { echo "$as_me:$LINENO: result: no" >&5
7911 echo "${ECHO_T}no" >&6; }
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_r+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 CFLAGS="$CFLAGS -Wl,-R."
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7939 int main() { return 0; }
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 llvm_cv_link_use_r=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 llvm_cv_link_use_r=no
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7998 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7999 if test "$llvm_cv_link_use_r" = yes ; then
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_LINK_R 1
8010 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8011 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8012 if test "${ac_cv_c_const+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8025 /* FIXME: Include the comments suggested by Paul. */
8027 /* Ultrix mips cc rejects this. */
8028 typedef int charset[2];
8030 /* SunOS 4.1.1 cc rejects this. */
8031 char const *const *ccp;
8033 /* NEC SVR4.0.2 mips cc rejects this. */
8034 struct point {int x, y;};
8035 static struct point const zero = {0,0};
8036 /* AIX XL C 1.02.0.0 rejects this.
8037 It does not let you subtract one const X* pointer from another in
8038 an arm of an if-expression whose if-part is not a constant
8040 const char *g = "string";
8041 ccp = &g + (g ? g-g : 0);
8042 /* HPUX 7.0 cc rejects these. */
8045 ccp = (char const *const *) p;
8046 { /* SCO 3.2v4 cc rejects this. */
8048 char const *s = 0 ? (char *) 0 : (char const *) 0;
8053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8055 const int *foo = &x[0];
8058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8059 typedef const int *iptr;
8063 { /* AIX XL C 1.02.0.0 rejects this saying
8064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8065 struct s { int j; const int *ap[3]; };
8066 struct s *b; b->j = 5;
8068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8072 return !x[0] && !zero.x;
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8088 grep -v '^ *+' conftest.er1 >conftest.err
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8124 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8125 if test $ac_cv_c_const = no; then
8127 cat >>confdefs.h <<\_ACEOF
8139 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8140 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8141 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8142 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <sys/types.h>
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 eval "$as_ac_Header=yes"
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 eval "$as_ac_Header=no"
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209 { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8216 ac_header_dirent=$ac_hdr; break
8220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8221 if test $ac_header_dirent = dirent.h; then
8222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8224 if test "${ac_cv_search_opendir+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 ac_func_search_save_LIBS=$LIBS
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8235 /* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
8250 for ac_lib in '' dir; do
8251 if test -z "$ac_lib"; then
8252 ac_res="none required"
8255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_link") 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272 { (case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_try") 2>&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_try") 2>&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 ac_cv_search_opendir=$ac_res
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8299 rm -f core conftest.err conftest.$ac_objext \
8301 if test "${ac_cv_search_opendir+set}" = set; then
8305 if test "${ac_cv_search_opendir+set}" = set; then
8308 ac_cv_search_opendir=no
8311 LIBS=$ac_func_search_save_LIBS
8313 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8314 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8315 ac_res=$ac_cv_search_opendir
8316 if test "$ac_res" != no; then
8317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8322 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8323 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8324 if test "${ac_cv_search_opendir+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_func_search_save_LIBS=$LIBS
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8335 /* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8350 for ac_lib in '' x; do
8351 if test -z "$ac_lib"; then
8352 ac_res="none required"
8355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_link") 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_search_opendir=$ac_res
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8399 rm -f core conftest.err conftest.$ac_objext \
8401 if test "${ac_cv_search_opendir+set}" = set; then
8405 if test "${ac_cv_search_opendir+set}" = set; then
8408 ac_cv_search_opendir=no
8411 LIBS=$ac_func_search_save_LIBS
8413 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8414 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8415 ac_res=$ac_cv_search_opendir
8416 if test "$ac_res" != no; then
8417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8424 for ac_header in dlfcn.h
8426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_res=`eval echo '${'$as_ac_Header'}'`
8434 { echo "$as_me:$LINENO: result: $ac_res" >&5
8435 echo "${ECHO_T}$ac_res" >&6; }
8437 # Is the header compilable?
8438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 #include <$ac_header>
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_try") 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_header_compiler=no
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493 echo "${ECHO_T}$ac_header_compiler" >&6; }
8495 # Is the header present?
8496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 #include <$ac_header>
8506 if { (ac_try="$ac_cpp conftest.$ac_ext"
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } >/dev/null; then
8519 if test -s conftest.err; then
8520 ac_cpp_err=$ac_c_preproc_warn_flag
8521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8528 if test -z "$ac_cpp_err"; then
8529 ac_header_preproc=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_header_preproc=no
8537 rm -f conftest.err conftest.$ac_ext
8538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539 echo "${ECHO_T}$ac_header_preproc" >&6; }
8541 # So? What about this header?
8542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548 ac_header_preproc=yes
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8564 ## ----------------------------------- ##
8565 ## Report this to llvmbugs@cs.uiuc.edu ##
8566 ## ----------------------------------- ##
8568 ) | sed "s/^/$as_me: WARNING: /" >&2
8571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 eval "$as_ac_Header=\$ac_header_preproc"
8578 ac_res=`eval echo '${'$as_ac_Header'}'`
8579 { echo "$as_me:$LINENO: result: $ac_res" >&5
8580 echo "${ECHO_T}$ac_res" >&6; }
8583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8592 # Check whether --enable-ltdl-install was given.
8593 if test "${enable_ltdl_install+set}" = set; then
8594 enableval=$enable_ltdl_install;
8600 if test x"${enable_ltdl_install-no}" != xno; then
8602 INSTALL_LTDL_FALSE='#'
8604 INSTALL_LTDL_TRUE='#'
8610 if test x"${enable_ltdl_convenience-no}" != xno; then
8611 CONVENIENCE_LTDL_TRUE=
8612 CONVENIENCE_LTDL_FALSE='#'
8614 CONVENIENCE_LTDL_TRUE='#'
8615 CONVENIENCE_LTDL_FALSE=
8619 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8622 libname_spec='lib$name'
8630 shlibpath_overrides_runpath=unknown
8632 dynamic_linker="$host_os ld.so"
8633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8634 if test "$GCC" = yes; then
8635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8637 # if the path contains ";" then we assume it to be the separator
8638 # otherwise default to the standard path separator (i.e. ":") - it is
8639 # assumed that no part of a normal pathname contains ";" but that should
8640 # okay in the real world where ";" in dirpaths is itself problematic.
8641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8648 need_lib_prefix=unknown
8649 hardcode_into_libs=no
8651 # when you set need_version to no, make sure it does not cause -set_version
8652 # flags to be left without arguments
8653 need_version=unknown
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8659 shlibpath_var=LIBPATH
8661 # AIX 3 has no versioning support, so we append a major version to the name.
8662 soname_spec='${libname}${release}${shared_ext}$major'
8669 hardcode_into_libs=yes
8670 if test "$host_cpu" = ia64; then
8671 # AIX 5 supports IA64
8672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8673 shlibpath_var=LD_LIBRARY_PATH
8675 # With GCC up to 2.95.x, collect2 would create an import file
8676 # for dependence libraries. The import file would start with
8677 # the line `#! .'. This would cause the generated library to
8678 # depend on `.', always an invalid library. This was fixed in
8679 # development snapshots of GCC prior to 3.0.
8681 aix4 | aix4.[01] | aix4.[01].*)
8682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8692 # soname into executable. Probably we can add versioning support to
8693 # collect2, so additional links can be useful in future.
8694 if test "$aix_use_runtimelinking" = yes; then
8695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8696 # instead of lib<name>.a to let people know that these are not
8697 # typical AIX shared libraries.
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700 # We preserve .a as extension for shared libraries through AIX4.2
8701 # and later when we are not doing run time linking.
8702 library_names_spec='${libname}${release}.a $libname.a'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8705 shlibpath_var=LIBPATH
8710 library_names_spec='$libname.ixlibrary $libname.a'
8711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8712 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'
8716 library_names_spec='${libname}${shared_ext}'
8717 dynamic_linker="$host_os ld.so"
8718 shlibpath_var=LIBRARY_PATH
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8730 # the default ld.so.conf also contains /usr/contrib/lib and
8731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8732 # libtool to hard-code these into programs
8735 cygwin* | mingw* | pw32*)
8736 version_type=windows
8741 case $GCC,$host_os in
8742 yes,cygwin* | yes,mingw* | yes,pw32*)
8743 library_names_spec='$libname.dll.a'
8744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8745 postinstall_cmds='base_file=`basename \${file}`~
8746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8747 dldir=$destdir/`dirname \$dlpath`~
8748 test -d \$dldir || mkdir -p \$dldir~
8749 $install_prog $dir/$dlname \$dldir/$dlname~
8750 chmod a+x \$dldir/$dlname'
8751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8752 dlpath=$dir/\$dldll~
8754 shlibpath_overrides_runpath=yes
8758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8763 # MinGW DLLs use traditional 'lib' prefix
8764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8767 # It is most probably a Windows format PATH printed by
8768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8769 # path with ; separators, and with drive letters. We can handle the
8770 # drive letters (cygwin fileutils understands them), so leave them,
8771 # especially as we might pass files found there to a mingw objdump,
8772 # which wouldn't understand a cygwinified path. Ahh.
8773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8779 # pw32 DLLs use 'pw' prefix rather than 'lib'
8780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8789 dynamic_linker='Win32 ld.exe'
8790 # FIXME: first we should search . and the directory the executable is in
8794 darwin* | rhapsody*)
8795 dynamic_linker="$host_os dyld"
8799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8800 soname_spec='${libname}${release}${major}$shared_ext'
8801 shlibpath_overrides_runpath=yes
8802 shlibpath_var=DYLD_LIBRARY_PATH
8803 shrext_cmds='.dylib'
8804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8805 if test "$GCC" = yes; then
8806 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"`
8808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=no
8834 hardcode_into_libs=yes
8835 dynamic_linker='GNU ld.so'
8838 freebsd* | dragonfly*)
8839 # DragonFly does not have aout. When/if they implement a new
8840 # versioning mechanism, adjust this.
8841 if test -x /usr/bin/objformat; then
8842 objformat=`/usr/bin/objformat`
8845 freebsd[123]*) objformat=aout ;;
8849 version_type=freebsd-$objformat
8850 case $version_type in
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8861 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=yes
8866 freebsd3.[01]* | freebsdelf3.[01]*)
8867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8872 shlibpath_overrides_runpath=no
8873 hardcode_into_libs=yes
8875 freebsd*) # from 4.6 on
8876 shlibpath_overrides_runpath=yes
8877 hardcode_into_libs=yes
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 hardcode_into_libs=yes
8892 hpux9* | hpux10* | hpux11*)
8893 # Give a soname corresponding to the major version so that dld.sl refuses to
8894 # link against other versions.
8901 hardcode_into_libs=yes
8902 dynamic_linker="$host_os dld.so"
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 if test "X$HPUX_IA64_MODE" = X32; then
8908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916 hardcode_into_libs=yes
8917 dynamic_linker="$host_os dld.sl"
8918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8927 dynamic_linker="$host_os dld.sl"
8928 shlibpath_var=SHLIB_PATH
8929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8935 postinstall_cmds='chmod 555 $lib'
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 hardcode_into_libs=yes
8950 irix5* | irix6* | nonstopux*)
8952 nonstopux*) version_type=nonstopux ;;
8954 if test "$lt_cv_prog_gnu_ld" = yes; then
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8965 irix5* | nonstopux*)
8969 case $LD in # libtool.m4 will add one of these switches to LD
8970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8971 libsuff= shlibsuff= libmagic=32-bit;;
8972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8973 libsuff=32 shlibsuff=N32 libmagic=N32;;
8974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8976 *) libsuff= shlibsuff= libmagic=never-match;;
8980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8981 shlibpath_overrides_runpath=no
8982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8984 hardcode_into_libs=yes
8987 # No shared lib support for Linux oldld, aout, or coff.
8988 linux*oldld* | linux*aout* | linux*coff*)
8992 # This must be Linux ELF.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=no
9002 # This implies no fast_install, which is unacceptable.
9003 # Some rework will be needed to allow for fast_install
9004 # before this can be enabled.
9005 hardcode_into_libs=yes
9007 # Append ld.so.conf contents to the search path
9008 if test -f /etc/ld.so.conf; then
9009 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' ' '`
9010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9013 # We used to test for /lib/ld.so.1 and disable shared libraries on
9014 # powerpc, because MkLinux only supported shared libraries with the
9015 # GNU dynamic linker. Since this was broken with cross compilers,
9016 # most powerpc-linux boxes support dynamic linking these days and
9017 # people can always --disable-shared, the test was removed, and we
9018 # assume the GNU/Linux dynamic linker is in use.
9019 dynamic_linker='GNU/Linux ld.so'
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9031 dynamic_linker='GNU ld.so'
9038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9041 dynamic_linker='NetBSD (a.out) ld.so'
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 dynamic_linker='NetBSD ld.elf_so'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9071 sys_lib_dlsearch_path_spec="/usr/lib"
9073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9076 *) need_version=no ;;
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9083 openbsd2.[89] | openbsd2.[89].*)
9084 shlibpath_overrides_runpath=no
9087 shlibpath_overrides_runpath=yes
9091 shlibpath_overrides_runpath=yes
9096 libname_spec='$name'
9099 library_names_spec='$libname${shared_ext} $libname.a'
9100 dynamic_linker='OS/2 ld.exe'
9101 shlibpath_var=LIBPATH
9104 osf3* | osf4* | osf5*)
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=yes
9123 hardcode_into_libs=yes
9124 # ldd complains unless libraries are executable
9125 postinstall_cmds='chmod +x $lib'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 if test "$with_gnu_ld" = yes; then
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 case $host_vendor in
9147 shlibpath_overrides_runpath=no
9149 export_dynamic_flag_spec='${wl}-Blargedynsym'
9150 runpath_var=LD_RUN_PATH
9158 shlibpath_overrides_runpath=no
9159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9165 if test -d /usr/nec ;then
9167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9168 soname_spec='$libname${shared_ext}.$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9174 version_type=freebsd-elf
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 hardcode_into_libs=yes
9181 if test "$with_gnu_ld" = yes; then
9182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9183 shlibpath_overrides_runpath=no
9185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9186 shlibpath_overrides_runpath=yes
9189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9193 sys_lib_dlsearch_path_spec='/usr/lib'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9207 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9208 echo "${ECHO_T}$dynamic_linker" >&6; }
9209 test "$dynamic_linker" = no && can_build_shared=no
9211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9212 if test "$GCC" = yes; then
9213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9217 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9218 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9219 if test "${libltdl_cv_shlibext+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 eval libltdl_cv_shlibext=$shrext_cmds
9227 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9228 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9229 if test -n "$libltdl_cv_shlibext"; then
9231 cat >>confdefs.h <<_ACEOF
9232 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9238 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9239 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9240 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 libltdl_cv_shlibpath_var="$shlibpath_var"
9245 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9246 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9247 if test -n "$libltdl_cv_shlibpath_var"; then
9249 cat >>confdefs.h <<_ACEOF
9250 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9256 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9257 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9258 if test "${libltdl_cv_sys_search_path+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9263 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9264 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9265 if test -n "$libltdl_cv_sys_search_path"; then
9267 for dir in $libltdl_cv_sys_search_path; do
9268 if test -z "$sys_search_path"; then
9269 sys_search_path="$dir"
9271 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9275 cat >>confdefs.h <<_ACEOF
9276 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9281 { echo "$as_me:$LINENO: checking for objdir" >&5
9282 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9283 if test "${libltdl_cv_objdir+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 libltdl_cv_objdir="$objdir"
9287 if test -n "$objdir"; then
9290 rm -f .libs 2>/dev/null
9291 mkdir .libs 2>/dev/null
9292 if test -d .libs; then
9293 libltdl_cv_objdir=.libs
9295 # MS-DOS does not allow filenames that begin with a dot.
9296 libltdl_cv_objdir=_libs
9298 rmdir .libs 2>/dev/null
9302 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9303 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9305 cat >>confdefs.h <<_ACEOF
9306 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9314 # Check for command to grab the raw symbol name followed by C symbol from nm.
9315 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9316 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9317 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 # These are sane defaults that work on at least a few old systems.
9322 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9324 # Character class describing NM global symbol codes.
9325 symcode='[BCDEGRST]'
9327 # Regexp to match symbols that can be accessed directly from C.
9328 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9330 # Transform an extracted symbol line into a proper C declaration
9331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9333 # Transform an extracted symbol line into symbol name and symbol address
9334 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'"
9336 # Define system-specific variables.
9341 cygwin* | mingw* | pw32*)
9342 symcode='[ABCDGISTW]'
9344 hpux*) # Its linker distinguishes data from code symbols
9345 if test "$host_cpu" = ia64; then
9346 symcode='[ABCDEGRST]'
9348 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9349 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'"
9352 if test "$host_cpu" = ia64; then
9353 symcode='[ABCDGIRSTW]'
9354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9355 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'"
9359 symcode='[BCDEGRST]'
9362 symcode='[BCDEGQRST]'
9373 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9381 # Handle CRLF in mingw tool chain
9385 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9389 # If we're using GNU nm, then use its standard symbol codes.
9390 case `$NM -V 2>&1` in
9391 *GNU* | *'with BFD'*)
9392 symcode='[ABCDGIRSTW]' ;;
9395 # Try without a prefix undercore, then with it.
9396 for ac_symprfx in "" "_"; do
9398 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9399 symxfrm="\\1 $ac_symprfx\\2 \\2"
9401 # Write the raw and C identifiers.
9402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9404 # Check to see that the pipe works correctly.
9408 cat > conftest.$ac_ext <<EOF
9413 void nm_test_func(){}
9417 int main(){nm_test_var='a';nm_test_func();return(0);}
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; then
9425 # Now try to grab the symbols.
9427 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9428 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && test -s "$nlist"; then
9432 # Try sorting and uniquifying the output.
9433 if sort "$nlist" | uniq > "$nlist"T; then
9434 mv -f "$nlist"T "$nlist"
9439 # Make sure that we snagged all the symbols we need.
9440 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9441 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9442 cat <<EOF > conftest.$ac_ext
9448 # Now generate the symbol file.
9449 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9451 cat <<EOF >> conftest.$ac_ext
9452 #if defined (__STDC__) && __STDC__
9453 # define lt_ptr_t void *
9455 # define lt_ptr_t char *
9459 /* The mapping between symbol names and symbols. */
9464 lt_preloaded_symbols[] =
9467 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9468 cat <<\EOF >> conftest.$ac_ext
9476 # Now try linking the two files.
9477 mv conftest.$ac_objext conftstm.$ac_objext
9478 lt_save_LIBS="$LIBS"
9479 lt_save_CFLAGS="$CFLAGS"
9480 LIBS="conftstm.$ac_objext"
9481 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9489 LIBS="$lt_save_LIBS"
9490 CFLAGS="$lt_save_CFLAGS"
9492 echo "cannot find nm_test_func in $nlist" >&5
9495 echo "cannot find nm_test_var in $nlist" >&5
9498 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9501 echo "$progname: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9504 rm -f conftest* conftst*
9506 # Do not use the global_symbol_pipe unless it works.
9507 if test "$pipe_works" = yes; then
9510 lt_cv_sys_global_symbol_pipe=
9516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9517 lt_cv_sys_global_symbol_to_cdecl=
9519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9520 { echo "$as_me:$LINENO: result: failed" >&5
9521 echo "${ECHO_T}failed" >&6; }
9523 { echo "$as_me:$LINENO: result: ok" >&5
9524 echo "${ECHO_T}ok" >&6; }
9528 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9529 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9530 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9534 libltdl_cv_preloaded_symbols=yes
9536 libltdl_cv_preloaded_symbols=no
9540 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9541 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9542 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9544 cat >>confdefs.h <<\_ACEOF
9545 #define HAVE_PRELOADED_SYMBOLS 1
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9559 { echo "$as_me:$LINENO: checking for shl_load" >&5
9560 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_shl_load+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572 #define shl_load innocuous_shl_load
9574 /* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char shl_load (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9580 # include <limits.h>
9582 # include <assert.h>
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9594 /* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
9597 #if defined __stub_shl_load || defined __stub___shl_load
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_try") 2>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_func_shl_load=yes
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 ac_cv_func_shl_load=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9654 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9655 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9656 if test $ac_cv_func_shl_load = yes; then
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_SHL_LOAD 1
9663 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9664 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_lib_dld_shl_load=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_lib_dld_shl_load=no
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_check_lib_save_LIBS
9738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9739 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9740 if test $ac_cv_lib_dld_shl_load = yes; then
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_SHL_LOAD 1
9746 LIBADD_DL="$LIBADD_DL -ldld"
9748 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 ac_check_lib_save_LIBS=$LIBS
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1 >conftest.err
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792 { (case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_try") 2>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_lib_dl_dlopen=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_lib_dl_dlopen=no
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9825 if test $ac_cv_lib_dl_dlopen = yes; then
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_LIBDL 1
9831 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9886 cat >>confdefs.h <<\_ACEOF
9887 #define HAVE_LIBDL 1
9889 libltdl_cv_func_dlopen="yes"
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 ac_check_lib_save_LIBS=$LIBS
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (ac_try="$ac_link"
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_lib_svld_dlopen=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_lib_svld_dlopen=no
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9969 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9971 if test $ac_cv_lib_svld_dlopen = yes; then
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_LIBDL 1
9977 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9979 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9980 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9981 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 ac_check_lib_save_LIBS=$LIBS
9986 cat >conftest.$ac_ext <<_ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9993 /* Override any GCC internal prototype to avoid an error.
9994 Use char because int might match the return type of a GCC
9995 builtin and then its argument prototype would still apply. */
10003 return dld_link ();
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_link") 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_try") 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_try") 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_dld_dld_link=yes
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_cv_lib_dld_dld_link=no
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_lib_save_LIBS
10054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10055 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10056 if test $ac_cv_lib_dld_dld_link = yes; then
10058 cat >>confdefs.h <<\_ACEOF
10062 LIBADD_DL="$LIBADD_DL -ldld"
10064 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10065 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10066 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10077 #define _dyld_func_lookup innocuous__dyld_func_lookup
10079 /* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char _dyld_func_lookup (); below.
10081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082 <limits.h> exists even on freestanding compilers. */
10085 # include <limits.h>
10087 # include <assert.h>
10090 #undef _dyld_func_lookup
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10098 char _dyld_func_lookup ();
10099 /* The GNU C library defines this for functions which it implements
10100 to always fail with ENOSYS. Some functions are actually named
10101 something starting with __ and the normal name is an alias. */
10102 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10109 return _dyld_func_lookup ();
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10129 { (case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_try") 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_func__dyld_func_lookup=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_func__dyld_func_lookup=no
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10159 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10160 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10161 if test $ac_cv_func__dyld_func_lookup = yes; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_DYLD 1
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10190 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10192 lt_save_LIBS="$LIBS"
10193 LIBS="$LIBS $LIBADD_DL"
10195 for ac_func in dlerror
10197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10211 #define $ac_func innocuous_$ac_func
10213 /* System header to define __stub macros and hopefully few prototypes,
10214 which can conflict with char $ac_func (); below.
10215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216 <limits.h> exists even on freestanding compilers. */
10219 # include <limits.h>
10221 # include <assert.h>
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10233 /* The GNU C library defines this for functions which it implements
10234 to always fail with ENOSYS. Some functions are actually named
10235 something starting with __ and the normal name is an alias. */
10236 #if defined __stub_$ac_func || defined __stub___$ac_func
10243 return $ac_func ();
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10282 eval "$as_ac_var=yes"
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 eval "$as_ac_var=no"
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10293 ac_res=`eval echo '${'$as_ac_var'}'`
10294 { echo "$as_me:$LINENO: result: $ac_res" >&5
10295 echo "${ECHO_T}$ac_res" >&6; }
10296 if test `eval echo '${'$as_ac_var'}'` = yes; then
10297 cat >>confdefs.h <<_ACEOF
10298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10304 LIBS="$lt_save_LIBS"
10307 ac_cpp='$CPP $CPPFLAGS'
10308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10314 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10315 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10316 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 ac_cv_sys_symbol_underscore=no
10320 cat > conftest.$ac_ext <<EOF
10321 void nm_test_func(){}
10322 int main(){nm_test_func;return 0;}
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325 (eval $ac_compile) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; then
10329 # Now try to grab the symbols.
10330 ac_nlist=conftest.nm
10331 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10332 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && test -s "$ac_nlist"; then
10336 # See whether the symbols have a leading underscore.
10337 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10338 ac_cv_sys_symbol_underscore=yes
10340 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10343 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10347 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10350 echo "configure: failed program was:" >&5
10356 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10357 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10360 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10361 if test x"$libltdl_cv_func_dlopen" = xyes ||
10362 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10363 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10364 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10365 if test "${libltdl_cv_need_uscore+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 libltdl_cv_need_uscore=unknown
10370 LIBS="$LIBS $LIBADD_DL"
10371 if test "$cross_compiling" = yes; then :
10372 libltdl_cv_need_uscore=cross
10374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10375 lt_status=$lt_dlunknown
10376 cat > conftest.$ac_ext <<EOF
10377 #line 10377 "configure"
10378 #include "confdefs.h"
10387 # define LT_DLGLOBAL RTLD_GLOBAL
10390 # define LT_DLGLOBAL DL_GLOBAL
10392 # define LT_DLGLOBAL 0
10396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10397 find out it does not work in some platform. */
10398 #ifndef LT_DLLAZY_OR_NOW
10400 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10403 # define LT_DLLAZY_OR_NOW DL_LAZY
10406 # define LT_DLLAZY_OR_NOW RTLD_NOW
10409 # define LT_DLLAZY_OR_NOW DL_NOW
10411 # define LT_DLLAZY_OR_NOW 0
10419 extern "C" void exit (int);
10422 void fnord() { int i=42;}
10425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10426 int status = $lt_dlunknown;
10430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10431 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10432 /* dlclose (self); */
10440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441 (eval $ac_link) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10445 (./conftest; exit; ) >&5 2>/dev/null
10447 case x$lt_status in
10448 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10449 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10450 x$lt_dlunknown|x*) ;;
10453 # compilation failed
10462 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10463 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10467 if test x"$libltdl_cv_need_uscore" = xyes; then
10469 cat >>confdefs.h <<\_ACEOF
10470 #define NEED_USCORE 1
10476 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10477 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10478 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 # PORTME does your system automatically load deplibs for dlopen?
10482 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10483 # For now, we just catch OSes we know something about -- in the
10484 # future, we'll try test this programmatically.
10485 libltdl_cv_sys_dlopen_deplibs=unknown
10487 aix3*|aix4.1.*|aix4.2.*)
10488 # Unknown whether this is true for these versions of AIX, but
10489 # we want this `case' here to explicitly catch those versions.
10490 libltdl_cv_sys_dlopen_deplibs=unknown
10493 libltdl_cv_sys_dlopen_deplibs=yes
10496 # Assuming the user has installed a libdl from somewhere, this is true
10497 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10498 libltdl_cv_sys_dlopen_deplibs=yes
10500 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10501 # GNU and its variants, using gnu ld.so (Glibc)
10502 libltdl_cv_sys_dlopen_deplibs=yes
10505 libltdl_cv_sys_dlopen_deplibs=yes
10508 libltdl_cv_sys_dlopen_deplibs=yes
10510 irix[12345]*|irix6.[01]*)
10511 # Catch all versions of IRIX before 6.2, and indicate that we don't
10512 # know how it worked for any of those versions.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10516 # The case above catches anything before 6.2, and it's known that
10517 # at 6.2 and later dlopen does load deplibs.
10518 libltdl_cv_sys_dlopen_deplibs=yes
10521 libltdl_cv_sys_dlopen_deplibs=yes
10524 libltdl_cv_sys_dlopen_deplibs=yes
10527 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10528 # it did *not* use an RPATH in a shared library to find objects the
10529 # library depends on, so we explictly say `no'.
10530 libltdl_cv_sys_dlopen_deplibs=no
10532 osf5.0|osf5.0a|osf5.1)
10533 # dlopen *does* load deplibs and with the right loader patch applied
10534 # it even uses RPATH in a shared library to search for shared objects
10535 # that the library depends on, but there's no easy way to know if that
10536 # patch is installed. Since this is the case, all we can really
10537 # say is unknown -- it depends on the patch being installed. If
10538 # it is, this changes to `yes'. Without it, it would be `no'.
10539 libltdl_cv_sys_dlopen_deplibs=unknown
10542 # the two cases above should catch all versions of osf <= 5.1. Read
10543 # the comments above for what we know about them.
10544 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10545 # is used to find them so we can finally say `yes'.
10546 libltdl_cv_sys_dlopen_deplibs=yes
10549 libltdl_cv_sys_dlopen_deplibs=yes
10551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552 libltdl_cv_sys_dlopen_deplibs=yes
10557 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10558 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10559 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10561 cat >>confdefs.h <<\_ACEOF
10562 #define LTDL_DLOPEN_DEPLIBS 1
10568 for ac_header in argz.h
10570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 ac_res=`eval echo '${'$as_ac_Header'}'`
10578 { echo "$as_me:$LINENO: result: $ac_res" >&5
10579 echo "${ECHO_T}$ac_res" >&6; }
10581 # Is the header compilable?
10582 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 $ac_includes_default
10591 #include <$ac_header>
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_compile") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_header_compiler=yes
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ac_header_compiler=no
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637 echo "${ECHO_T}$ac_header_compiler" >&6; }
10639 # Is the header present?
10640 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10642 cat >conftest.$ac_ext <<_ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 #include <$ac_header>
10650 if { (ac_try="$ac_cpp conftest.$ac_ext"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10658 grep -v '^ *+' conftest.er1 >conftest.err
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10672 if test -z "$ac_cpp_err"; then
10673 ac_header_preproc=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ac_header_preproc=no
10681 rm -f conftest.err conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683 echo "${ECHO_T}$ac_header_preproc" >&6; }
10685 # So? What about this header?
10686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10692 ac_header_preproc=yes
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10708 ## ----------------------------------- ##
10709 ## Report this to llvmbugs@cs.uiuc.edu ##
10710 ## ----------------------------------- ##
10712 ) | sed "s/^/$as_me: WARNING: /" >&2
10715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 eval "$as_ac_Header=\$ac_header_preproc"
10722 ac_res=`eval echo '${'$as_ac_Header'}'`
10723 { echo "$as_me:$LINENO: result: $ac_res" >&5
10724 echo "${ECHO_T}$ac_res" >&6; }
10727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10728 cat >>confdefs.h <<_ACEOF
10729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10737 { echo "$as_me:$LINENO: checking for error_t" >&5
10738 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10739 if test "${ac_cv_type_error_t+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.$ac_ext <<_ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10752 typedef error_t ac__type_new_;
10756 if ((ac__type_new_ *) 0)
10758 if (sizeof (ac__type_new_))
10764 rm -f conftest.$ac_objext
10765 if { (ac_try="$ac_compile"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_cv_type_error_t=yes
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_type_error_t=no
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10809 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10810 if test $ac_cv_type_error_t = yes; then
10812 cat >>confdefs.h <<_ACEOF
10813 #define HAVE_ERROR_T 1
10819 cat >>confdefs.h <<\_ACEOF
10820 #define error_t int
10831 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10847 #define $ac_func innocuous_$ac_func
10849 /* System header to define __stub macros and hopefully few prototypes,
10850 which can conflict with char $ac_func (); below.
10851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 <limits.h> exists even on freestanding compilers. */
10855 # include <limits.h>
10857 # include <assert.h>
10862 /* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10869 /* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
10872 #if defined __stub_$ac_func || defined __stub___$ac_func
10879 return $ac_func ();
10884 rm -f conftest.$ac_objext conftest$ac_exeext
10885 if { (ac_try="$ac_link"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_link") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 eval "$as_ac_var=yes"
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 eval "$as_ac_var=no"
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10929 ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932 if test `eval echo '${'$as_ac_var'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10967 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 ac_res=`eval echo '${'$as_ac_Header'}'`
10978 { echo "$as_me:$LINENO: result: $ac_res" >&5
10979 echo "${ECHO_T}$ac_res" >&6; }
10981 # Is the header compilable?
10982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 $ac_includes_default
10991 #include <$ac_header>
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_header_compiler=no
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037 echo "${ECHO_T}$ac_header_compiler" >&6; }
11039 # Is the header present?
11040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <$ac_header>
11050 if { (ac_try="$ac_cpp conftest.$ac_ext"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } >/dev/null; then
11063 if test -s conftest.err; then
11064 ac_cpp_err=$ac_c_preproc_warn_flag
11065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11072 if test -z "$ac_cpp_err"; then
11073 ac_header_preproc=yes
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_header_preproc=no
11081 rm -f conftest.err conftest.$ac_ext
11082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11083 echo "${ECHO_T}$ac_header_preproc" >&6; }
11085 # So? What about this header?
11086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11092 ac_header_preproc=yes
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11108 ## ----------------------------------- ##
11109 ## Report this to llvmbugs@cs.uiuc.edu ##
11110 ## ----------------------------------- ##
11112 ) | sed "s/^/$as_me: WARNING: /" >&2
11115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 eval "$as_ac_Header=\$ac_header_preproc"
11122 ac_res=`eval echo '${'$as_ac_Header'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 ac_res=`eval echo '${'$as_ac_Header'}'`
11150 { echo "$as_me:$LINENO: result: $ac_res" >&5
11151 echo "${ECHO_T}$ac_res" >&6; }
11153 # Is the header compilable?
11154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11156 cat >conftest.$ac_ext <<_ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11162 $ac_includes_default
11163 #include <$ac_header>
11165 rm -f conftest.$ac_objext
11166 if { (ac_try="$ac_compile"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
11174 grep -v '^ *+' conftest.er1 >conftest.err
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_try") 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_header_compiler=yes
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 ac_header_compiler=no
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11209 echo "${ECHO_T}$ac_header_compiler" >&6; }
11211 # Is the header present?
11212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11214 cat >conftest.$ac_ext <<_ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 #include <$ac_header>
11222 if { (ac_try="$ac_cpp conftest.$ac_ext"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11230 grep -v '^ *+' conftest.er1 >conftest.err
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev/null; then
11235 if test -s conftest.err; then
11236 ac_cpp_err=$ac_c_preproc_warn_flag
11237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11244 if test -z "$ac_cpp_err"; then
11245 ac_header_preproc=yes
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_header_preproc=no
11253 rm -f conftest.err conftest.$ac_ext
11254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11255 echo "${ECHO_T}$ac_header_preproc" >&6; }
11257 # So? What about this header?
11258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11264 ac_header_preproc=yes
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11280 ## ----------------------------------- ##
11281 ## Report this to llvmbugs@cs.uiuc.edu ##
11282 ## ----------------------------------- ##
11284 ) | sed "s/^/$as_me: WARNING: /" >&2
11287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 eval "$as_ac_Header=\$ac_header_preproc"
11294 ac_res=`eval echo '${'$as_ac_Header'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11310 for ac_header in string.h strings.h
11312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321 echo "${ECHO_T}$ac_res" >&6; }
11323 # Is the header compilable?
11324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 #include <$ac_header>
11335 rm -f conftest.$ac_objext
11336 if { (ac_try="$ac_compile"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
11344 grep -v '^ *+' conftest.er1 >conftest.err
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11423 rm -f conftest.err conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427 # So? What about this header?
11428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450 ## ----------------------------------- ##
11451 ## Report this to llvmbugs@cs.uiuc.edu ##
11452 ## ----------------------------------- ##
11454 ) | sed "s/^/$as_me: WARNING: /" >&2
11457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 eval "$as_ac_Header=\$ac_header_preproc"
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11481 for ac_func in strchr index
11483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497 #define $ac_func innocuous_$ac_func
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11505 # include <limits.h>
11507 # include <assert.h>
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined __stub_$ac_func || defined __stub___$ac_func
11529 return $ac_func ();
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_link") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11549 { (case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_try") 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_try") 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 eval "$as_ac_var=no"
11576 rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11579 ac_res=`eval echo '${'$as_ac_var'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11582 if test `eval echo '${'$as_ac_var'}'` = yes; then
11583 cat >>confdefs.h <<_ACEOF
11584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11592 for ac_func in strrchr rindex
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11616 # include <limits.h>
11618 # include <assert.h>
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11630 /* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11640 return $ac_func ();
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 eval "$as_ac_var=no"
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11690 ac_res=`eval echo '${'$as_ac_var'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 for ac_func in memcpy bcopy
11705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719 #define $ac_func innocuous_$ac_func
11721 /* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11727 # include <limits.h>
11729 # include <assert.h>
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11741 /* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744 #if defined __stub_$ac_func || defined __stub___$ac_func
11751 return $ac_func ();
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 eval "$as_ac_var=no"
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11801 ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 for ac_func in memmove strcmp
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 #define $ac_func innocuous_$ac_func
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11838 # include <limits.h>
11840 # include <assert.h>
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11862 return $ac_func ();
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 eval "$as_ac_var=no"
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11926 for ac_func in closedir opendir readdir
11928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11942 #define $ac_func innocuous_$ac_func
11944 /* System header to define __stub macros and hopefully few prototypes,
11945 which can conflict with char $ac_func (); below.
11946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11947 <limits.h> exists even on freestanding compilers. */
11950 # include <limits.h>
11952 # include <assert.h>
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11964 /* The GNU C library defines this for functions which it implements
11965 to always fail with ENOSYS. Some functions are actually named
11966 something starting with __ and the normal name is an alias. */
11967 #if defined __stub_$ac_func || defined __stub___$ac_func
11974 return $ac_func ();
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (ac_try="$ac_link"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_link") 2>conftest.er1
11988 grep -v '^ *+' conftest.er1 >conftest.err
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 eval "$as_ac_var=yes"
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 eval "$as_ac_var=no"
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12024 ac_res=`eval echo '${'$as_ac_var'}'`
12025 { echo "$as_me:$LINENO: result: $ac_res" >&5
12026 echo "${ECHO_T}$ac_res" >&6; }
12027 if test `eval echo '${'$as_ac_var'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036 # Check whether --enable-shared was given.
12037 if test "${enable_shared+set}" = set; then
12038 enableval=$enable_shared; p=${PACKAGE-default}
12040 yes) enable_shared=yes ;;
12041 no) enable_shared=no ;;
12044 # Look at the argument we got. We use all the common list separators.
12045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12046 for pkg in $enableval; do
12048 if test "X$pkg" = "X$p"; then
12060 # Check whether --enable-static was given.
12061 if test "${enable_static+set}" = set; then
12062 enableval=$enable_static; p=${PACKAGE-default}
12064 yes) enable_static=yes ;;
12065 no) enable_static=no ;;
12068 # Look at the argument we got. We use all the common list separators.
12069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12070 for pkg in $enableval; do
12072 if test "X$pkg" = "X$p"; then
12084 # Check whether --enable-fast-install was given.
12085 if test "${enable_fast_install+set}" = set; then
12086 enableval=$enable_fast_install; p=${PACKAGE-default}
12088 yes) enable_fast_install=yes ;;
12089 no) enable_fast_install=no ;;
12091 enable_fast_install=no
12092 # Look at the argument we got. We use all the common list separators.
12093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12094 for pkg in $enableval; do
12096 if test "X$pkg" = "X$p"; then
12097 enable_fast_install=yes
12104 enable_fast_install=yes
12108 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12109 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12110 if test "${lt_cv_path_SED+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 # Loop through the user's path and test for sed and gsed.
12114 # Then use that list of sed's as ones to test for truncation.
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12119 test -z "$as_dir" && as_dir=.
12120 for lt_ac_prog in sed gsed; do
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12123 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12130 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12131 # along with /bin/sed that truncates output.
12132 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12133 test ! -f $lt_ac_sed && continue
12134 cat /dev/null > conftest.in
12136 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12137 # Check for GNU sed and select it if it is found.
12138 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12139 lt_cv_path_SED=$lt_ac_sed
12143 cat conftest.in conftest.in >conftest.tmp
12144 mv conftest.tmp conftest.in
12145 cp conftest.in conftest.nl
12147 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12148 cmp -s conftest.out conftest.nl || break
12149 # 10000 chars as input seems more than enough
12150 test $lt_ac_count -gt 10 && break
12151 lt_ac_count=`expr $lt_ac_count + 1`
12152 if test $lt_ac_count -gt $lt_ac_max; then
12153 lt_ac_max=$lt_ac_count
12154 lt_cv_path_SED=$lt_ac_sed
12161 SED=$lt_cv_path_SED
12162 { echo "$as_me:$LINENO: result: $SED" >&5
12163 echo "${ECHO_T}$SED" >&6; }
12166 # Check whether --with-gnu-ld was given.
12167 if test "${with_gnu_ld+set}" = set; then
12168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12174 if test "$GCC" = yes; then
12175 # Check if gcc -print-prog-name=ld gives a path.
12176 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12177 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12180 # gcc leaves a trailing carriage return which upsets mingw
12181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12186 # Accept absolute paths.
12188 re_direlt='/[^/][^/]*/\.\./'
12189 # Canonicalize the pathname of ld
12190 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12192 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12194 test -z "$LD" && LD="$ac_prog"
12197 # If it fails, then pretend we aren't using GCC.
12201 # If it is relative, then search for the first ld in PATH.
12202 with_gnu_ld=unknown
12205 elif test "$with_gnu_ld" = yes; then
12206 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12207 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12209 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12210 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12212 if test "${lt_cv_path_LD+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 if test -z "$LD"; then
12216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12217 for ac_dir in $PATH; do
12219 test -z "$ac_dir" && ac_dir=.
12220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12221 lt_cv_path_LD="$ac_dir/$ac_prog"
12222 # Check to see if the program is GNU ld. I'd rather use --version,
12223 # but apparently some variants of GNU ld only accept -v.
12224 # Break only if it was the GNU/non-GNU ld that we prefer.
12225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12226 *GNU* | *'with BFD'*)
12227 test "$with_gnu_ld" != no && break
12230 test "$with_gnu_ld" != yes && break
12237 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12241 LD="$lt_cv_path_LD"
12242 if test -n "$LD"; then
12243 { echo "$as_me:$LINENO: result: $LD" >&5
12244 echo "${ECHO_T}$LD" >&6; }
12246 { echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6; }
12249 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12250 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12251 { (exit 1); exit 1; }; }
12252 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12253 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12254 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12258 case `$LD -v 2>&1 </dev/null` in
12259 *GNU* | *'with BFD'*)
12260 lt_cv_prog_gnu_ld=yes
12263 lt_cv_prog_gnu_ld=no
12267 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12268 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12269 with_gnu_ld=$lt_cv_prog_gnu_ld
12272 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12273 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12274 if test "${lt_cv_ld_reload_flag+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 lt_cv_ld_reload_flag='-r'
12279 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12280 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12281 reload_flag=$lt_cv_ld_reload_flag
12282 case $reload_flag in
12284 *) reload_flag=" $reload_flag" ;;
12286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12289 if test "$GCC" = yes; then
12290 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12292 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12297 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12298 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12299 if test "${lt_cv_deplibs_check_method+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 lt_cv_file_magic_cmd='$MAGIC_CMD'
12303 lt_cv_file_magic_test_file=
12304 lt_cv_deplibs_check_method='unknown'
12305 # Need to set the preceding variable on all platforms that support
12306 # interlibrary dependencies.
12307 # 'none' -- dependencies not supported.
12308 # `unknown' -- same as none, but documents that we really don't know.
12309 # 'pass_all' -- all dependencies passed with no checks.
12310 # 'test_compile' -- check by making test program.
12311 # 'file_magic [[regex]]' -- check by looking for files in library path
12312 # which responds to the $file_magic_cmd with a given extended regex.
12313 # If you have `file' or equivalent on your system and you're not sure
12314 # whether `pass_all' will *always* work, you probably want this one.
12318 lt_cv_deplibs_check_method=pass_all
12322 lt_cv_deplibs_check_method=pass_all
12326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12327 lt_cv_file_magic_cmd='/usr/bin/file -L'
12328 lt_cv_file_magic_test_file=/shlib/libc.so
12332 # func_win32_libid is a shell function defined in ltmain.sh
12333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12334 lt_cv_file_magic_cmd='func_win32_libid'
12338 # Base MSYS/MinGW do not provide the 'file' command needed by
12339 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12341 lt_cv_file_magic_cmd='$OBJDUMP -f'
12344 darwin* | rhapsody*)
12345 lt_cv_deplibs_check_method=pass_all
12348 freebsd* | kfreebsd*-gnu | dragonfly*)
12349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12352 # Not sure whether the presence of OpenBSD here was a mistake.
12353 # Let's accept both of them until this is cleared up.
12354 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12355 lt_cv_file_magic_cmd=/usr/bin/file
12356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12360 lt_cv_deplibs_check_method=pass_all
12365 lt_cv_deplibs_check_method=pass_all
12368 hpux10.20* | hpux11*)
12369 lt_cv_file_magic_cmd=/usr/bin/file
12372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12376 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]'
12377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12391 irix5* | irix6* | nonstopux*)
12393 *-32|*"-32 ") libmagic=32-bit;;
12394 *-n32|*"-n32 ") libmagic=N32;;
12395 *-64|*"-64 ") libmagic=64-bit;;
12396 *) libmagic=never-match;;
12398 lt_cv_deplibs_check_method=pass_all
12401 # This must be Linux ELF.
12403 lt_cv_deplibs_check_method=pass_all
12407 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12416 lt_cv_file_magic_cmd=/usr/bin/file
12417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12421 lt_cv_deplibs_check_method=unknown
12425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12432 osf3* | osf4* | osf5*)
12433 lt_cv_deplibs_check_method=pass_all
12437 lt_cv_deplibs_check_method=pass_all
12441 case $host_vendor in
12443 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]'
12444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12447 lt_cv_deplibs_check_method=pass_all
12450 lt_cv_file_magic_cmd='/bin/file'
12451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12454 lt_cv_file_magic_cmd='/bin/file'
12455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12456 lt_cv_file_magic_test_file=/lib/libc.so
12459 lt_cv_deplibs_check_method=pass_all
12462 lt_cv_deplibs_check_method=pass_all
12467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12468 lt_cv_deplibs_check_method=pass_all
12473 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12474 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12475 file_magic_cmd=$lt_cv_file_magic_cmd
12476 deplibs_check_method=$lt_cv_deplibs_check_method
12477 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12481 # If no C compiler was specified, use CC.
12484 # If no C compiler flags were specified, use CFLAGS.
12485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12487 # Allow CC to be a program name with arguments.
12490 # Check whether --enable-libtool-lock was given.
12491 if test "${enable_libtool_lock+set}" = set; then
12492 enableval=$enable_libtool_lock;
12495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12497 # Some flags need to be propagated to the compiler or linker for good
12501 # Find out which ABI we are using.
12502 echo 'int i;' > conftest.$ac_ext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; then
12508 case `/usr/bin/file conftest.$ac_objext` in
12510 HPUX_IA64_MODE="32"
12513 HPUX_IA64_MODE="64"
12520 # Find out which ABI we are using.
12521 echo '#line 12521 "configure"' > conftest.$ac_ext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; then
12527 if test "$lt_cv_prog_gnu_ld" = yes; then
12528 case `/usr/bin/file conftest.$ac_objext` in
12530 LD="${LD-ld} -melf32bsmip"
12533 LD="${LD-ld} -melf32bmipn32"
12536 LD="${LD-ld} -melf64bmip"
12540 case `/usr/bin/file conftest.$ac_objext` in
12556 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12557 # Find out which ABI we are using.
12558 echo 'int i;' > conftest.$ac_ext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12560 (eval $ac_compile) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; then
12564 case `/usr/bin/file conftest.o` in
12568 LD="${LD-ld} -m elf_i386"
12570 ppc64-*linux*|powerpc64-*linux*)
12571 LD="${LD-ld} -m elf32ppclinux"
12574 LD="${LD-ld} -m elf_s390"
12577 LD="${LD-ld} -m elf32_sparc"
12584 LD="${LD-ld} -m elf_x86_64"
12586 ppc*-*linux*|powerpc*-*linux*)
12587 LD="${LD-ld} -m elf64ppc"
12590 LD="${LD-ld} -m elf64_s390"
12593 LD="${LD-ld} -m elf64_sparc"
12603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12604 SAVE_CFLAGS="$CFLAGS"
12605 CFLAGS="$CFLAGS -belf"
12606 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12607 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12608 if test "${lt_cv_cc_needs_belf+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 ac_cpp='$CPP $CPPFLAGS'
12613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>conftest.er1
12641 grep -v '^ *+' conftest.er1 >conftest.err
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_try") 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 lt_cv_cc_needs_belf=yes
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 lt_cv_cc_needs_belf=no
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12677 ac_cpp='$CPP $CPPFLAGS'
12678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12683 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12684 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12685 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12687 CFLAGS="$SAVE_CFLAGS"
12691 # Find out which ABI we are using.
12692 echo 'int i;' > conftest.$ac_ext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; then
12698 case `/usr/bin/file conftest.o` in
12700 case $lt_cv_prog_gnu_ld in
12701 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12702 *) LD="${LD-ld} -64" ;;
12713 need_locks="$enable_libtool_lock"
12718 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12719 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12720 (test "X$CXX" != "Xg++"))) ; then
12722 ac_cpp='$CXXCPP $CPPFLAGS'
12723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12726 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12727 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12728 if test -z "$CXXCPP"; then
12729 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 # Double quotes because CXXCPP needs to be expanded
12733 for CXXCPP in "$CXX -E" "/lib/cpp"
12735 ac_preproc_ok=false
12736 for ac_cxx_preproc_warn_flag in '' yes
12738 # Use a header file that comes with gcc, so configuring glibc
12739 # with a fresh cross-compiler works.
12740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12741 # <limits.h> exists even on freestanding compilers.
12742 # On the NeXT, cc -E runs the code through the compiler's parser,
12743 # not just through cpp. "Syntax error" is here to catch this case.
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12751 # include <limits.h>
12753 # include <assert.h>
12757 if { (ac_try="$ac_cpp conftest.$ac_ext"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } >/dev/null; then
12770 if test -s conftest.err; then
12771 ac_cpp_err=$ac_cxx_preproc_warn_flag
12772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12779 if test -z "$ac_cpp_err"; then
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 # Broken: fails on valid input.
12789 rm -f conftest.err conftest.$ac_ext
12791 # OK, works on sane cases. Now check whether nonexistent headers
12792 # can be detected and how.
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 #include <ac_nonexistent.h>
12801 if { (ac_try="$ac_cpp conftest.$ac_ext"
12802 case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12809 grep -v '^ *+' conftest.er1 >conftest.err
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } >/dev/null; then
12814 if test -s conftest.err; then
12815 ac_cpp_err=$ac_cxx_preproc_warn_flag
12816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12823 if test -z "$ac_cpp_err"; then
12824 # Broken: success on invalid input.
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 # Passes both tests.
12835 rm -f conftest.err conftest.$ac_ext
12838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12839 rm -f conftest.err conftest.$ac_ext
12840 if $ac_preproc_ok; then
12845 ac_cv_prog_CXXCPP=$CXXCPP
12848 CXXCPP=$ac_cv_prog_CXXCPP
12850 ac_cv_prog_CXXCPP=$CXXCPP
12852 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12853 echo "${ECHO_T}$CXXCPP" >&6; }
12854 ac_preproc_ok=false
12855 for ac_cxx_preproc_warn_flag in '' yes
12857 # Use a header file that comes with gcc, so configuring glibc
12858 # with a fresh cross-compiler works.
12859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12860 # <limits.h> exists even on freestanding compilers.
12861 # On the NeXT, cc -E runs the code through the compiler's parser,
12862 # not just through cpp. "Syntax error" is here to catch this case.
12863 cat >conftest.$ac_ext <<_ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12870 # include <limits.h>
12872 # include <assert.h>
12876 if { (ac_try="$ac_cpp conftest.$ac_ext"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } >/dev/null; then
12889 if test -s conftest.err; then
12890 ac_cpp_err=$ac_cxx_preproc_warn_flag
12891 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12898 if test -z "$ac_cpp_err"; then
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 # Broken: fails on valid input.
12908 rm -f conftest.err conftest.$ac_ext
12910 # OK, works on sane cases. Now check whether nonexistent headers
12911 # can be detected and how.
12912 cat >conftest.$ac_ext <<_ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12918 #include <ac_nonexistent.h>
12920 if { (ac_try="$ac_cpp conftest.$ac_ext"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12928 grep -v '^ *+' conftest.er1 >conftest.err
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } >/dev/null; then
12933 if test -s conftest.err; then
12934 ac_cpp_err=$ac_cxx_preproc_warn_flag
12935 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12942 if test -z "$ac_cpp_err"; then
12943 # Broken: success on invalid input.
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 # Passes both tests.
12954 rm -f conftest.err conftest.$ac_ext
12957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12958 rm -f conftest.err conftest.$ac_ext
12959 if $ac_preproc_ok; then
12962 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12963 See \`config.log' for more details." >&5
12964 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12965 See \`config.log' for more details." >&2;}
12966 { (exit 1); exit 1; }; }
12970 ac_cpp='$CXXCPP $CPPFLAGS'
12971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12979 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12980 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12982 if test -n "$ac_tool_prefix"; then
12983 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
12985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12989 if test "${ac_cv_prog_F77+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 if test -n "$F77"; then
12993 ac_cv_prog_F77="$F77" # Let the user override the test.
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13002 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 F77=$ac_cv_prog_F77
13013 if test -n "$F77"; then
13014 { echo "$as_me:$LINENO: result: $F77" >&5
13015 echo "${ECHO_T}$F77" >&6; }
13017 { echo "$as_me:$LINENO: result: no" >&5
13018 echo "${ECHO_T}no" >&6; }
13022 test -n "$F77" && break
13025 if test -z "$F77"; then
13027 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
13029 # Extract the first word of "$ac_prog", so it can be a program name with args.
13030 set dummy $ac_prog; ac_word=$2
13031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 if test -n "$ac_ct_F77"; then
13037 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
13045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13046 ac_cv_prog_ac_ct_F77="$ac_prog"
13047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13057 if test -n "$ac_ct_F77"; then
13058 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13059 echo "${ECHO_T}$ac_ct_F77" >&6; }
13061 { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13066 test -n "$ac_ct_F77" && break
13069 if test "x$ac_ct_F77" = x; then
13072 case $cross_compiling:$ac_tool_warned in
13074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13075 whose name does not start with the host triplet. If you think this
13076 configuration is useful to you, please write to autoconf@gnu.org." >&5
13077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13078 whose name does not start with the host triplet. If you think this
13079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13080 ac_tool_warned=yes ;;
13087 # Provide some information about the compiler.
13088 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13089 ac_compiler=`set X $ac_compile; echo $2`
13090 { (ac_try="$ac_compiler --version >&5"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_compiler --version >&5") 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }
13100 { (ac_try="$ac_compiler -v >&5"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_compiler -v >&5") 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }
13110 { (ac_try="$ac_compiler -V >&5"
13111 case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compiler -V >&5") 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }
13122 # If we don't use `.F' as extension, the preprocessor is not run on the
13123 # input file. (Note that this only needs to work for GNU compilers.)
13124 ac_save_ext=$ac_ext
13126 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13127 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13128 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 cat >conftest.$ac_ext <<_ACEOF
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
13153 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest.$ac_objext'
13164 { (case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_try") 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_compiler_gnu=yes
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13185 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13186 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13187 ac_ext=$ac_save_ext
13188 ac_test_FFLAGS=${FFLAGS+set}
13189 ac_save_FFLAGS=$FFLAGS
13191 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13192 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13193 if test "${ac_cv_prog_f77_g+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13217 { (case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_try") 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_try") 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 ac_cv_prog_f77_g=yes
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_cv_prog_f77_g=no
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13248 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13249 if test "$ac_test_FFLAGS" = set; then
13250 FFLAGS=$ac_save_FFLAGS
13251 elif test $ac_cv_prog_f77_g = yes; then
13252 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13258 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13265 G77=`test $ac_compiler_gnu = yes && echo yes`
13267 ac_cpp='$CPP $CPPFLAGS'
13268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13274 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13276 # find the maximum length of command line arguments
13277 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13278 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13279 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 # On DJGPP, this test can blow up pretty badly due to problems in libc
13288 # (any single argument exceeding 2000 bytes causes a buffer overrun
13289 # during glob expansion). Even if it were fixed, the result of this
13290 # check would be larger than it should be.
13291 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13295 # Under GNU Hurd, this test is not required because there is
13296 # no limit to the length of command line arguments.
13297 # Libtool will interpret -1 as no limit whatsoever
13298 lt_cv_sys_max_cmd_len=-1;
13302 # On Win9x/ME, this test blows up -- it succeeds, but takes
13303 # about 5 minutes as the teststring grows exponentially.
13304 # Worse, since 9x/ME are not pre-emptively multitasking,
13305 # you end up with a "frozen" computer, even though with patience
13306 # the test eventually succeeds (with a max line length of 256k).
13307 # Instead, let's just punt: use the minimum linelength reported by
13308 # all of the supported platforms: 8192 (on NT/2K/XP).
13309 lt_cv_sys_max_cmd_len=8192;
13313 # On AmigaOS with pdksh, this test takes hours, literally.
13314 # So we just punt and use a minimum line length of 8192.
13315 lt_cv_sys_max_cmd_len=8192;
13318 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13319 # This has been around since 386BSD, at least. Likely further.
13320 if test -x /sbin/sysctl; then
13321 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13322 elif test -x /usr/sbin/sysctl; then
13323 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13325 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13327 # And add a safety zone
13328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13333 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13334 lt_cv_sys_max_cmd_len=196608
13338 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13339 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13340 # nice to cause kernel panics so lets avoid the loop below.
13341 # First set a reasonable default.
13342 lt_cv_sys_max_cmd_len=16384
13344 if test -x /sbin/sysconfig; then
13345 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13346 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13351 lt_cv_sys_max_cmd_len=102400
13353 sysv5* | sco5v6* | sysv4.2uw2*)
13354 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13355 if test -n "$kargmax"; then
13356 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13358 lt_cv_sys_max_cmd_len=32768
13362 # If test is not a shell built-in, we'll probably end up computing a
13363 # maximum length that is only half of the actual maximum length, but
13365 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13366 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13367 = "XX$teststring") >/dev/null 2>&1 &&
13368 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13369 lt_cv_sys_max_cmd_len=$new_result &&
13370 test $i != 17 # 1/2 MB should be enough
13373 teststring=$teststring$teststring
13376 # Add a significant safety factor because C++ compilers can tack on massive
13377 # amounts of additional arguments before passing them to the linker.
13378 # It appears as though 1/2 is a usable value.
13379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13385 if test -n $lt_cv_sys_max_cmd_len ; then
13386 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13387 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13389 { echo "$as_me:$LINENO: result: none" >&5
13390 echo "${ECHO_T}none" >&6; }
13396 # Check for command to grab the raw symbol name followed by C symbol from nm.
13397 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13398 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 # These are sane defaults that work on at least a few old systems.
13404 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13406 # Character class describing NM global symbol codes.
13407 symcode='[BCDEGRST]'
13409 # Regexp to match symbols that can be accessed directly from C.
13410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13412 # Transform an extracted symbol line into a proper C declaration
13413 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13415 # Transform an extracted symbol line into symbol name and symbol address
13416 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'"
13418 # Define system-specific variables.
13423 cygwin* | mingw* | pw32*)
13424 symcode='[ABCDGISTW]'
13426 hpux*) # Its linker distinguishes data from code symbols
13427 if test "$host_cpu" = ia64; then
13428 symcode='[ABCDEGRST]'
13430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13431 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'"
13434 if test "$host_cpu" = ia64; then
13435 symcode='[ABCDGIRSTW]'
13436 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13437 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'"
13440 irix* | nonstopux*)
13441 symcode='[BCDEGRST]'
13444 symcode='[BCDEGQRST]'
13455 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13463 # Handle CRLF in mingw tool chain
13467 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13471 # If we're using GNU nm, then use its standard symbol codes.
13472 case `$NM -V 2>&1` in
13473 *GNU* | *'with BFD'*)
13474 symcode='[ABCDGIRSTW]' ;;
13477 # Try without a prefix undercore, then with it.
13478 for ac_symprfx in "" "_"; do
13480 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13481 symxfrm="\\1 $ac_symprfx\\2 \\2"
13483 # Write the raw and C identifiers.
13484 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13486 # Check to see that the pipe works correctly.
13490 cat > conftest.$ac_ext <<EOF
13495 void nm_test_func(){}
13499 int main(){nm_test_var='a';nm_test_func();return(0);}
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; then
13507 # Now try to grab the symbols.
13509 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13510 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && test -s "$nlist"; then
13514 # Try sorting and uniquifying the output.
13515 if sort "$nlist" | uniq > "$nlist"T; then
13516 mv -f "$nlist"T "$nlist"
13521 # Make sure that we snagged all the symbols we need.
13522 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13523 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13524 cat <<EOF > conftest.$ac_ext
13530 # Now generate the symbol file.
13531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13533 cat <<EOF >> conftest.$ac_ext
13534 #if defined (__STDC__) && __STDC__
13535 # define lt_ptr_t void *
13537 # define lt_ptr_t char *
13541 /* The mapping between symbol names and symbols. */
13546 lt_preloaded_symbols[] =
13549 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13550 cat <<\EOF >> conftest.$ac_ext
13558 # Now try linking the two files.
13559 mv conftest.$ac_objext conftstm.$ac_objext
13560 lt_save_LIBS="$LIBS"
13561 lt_save_CFLAGS="$CFLAGS"
13562 LIBS="conftstm.$ac_objext"
13563 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565 (eval $ac_link) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13571 LIBS="$lt_save_LIBS"
13572 CFLAGS="$lt_save_CFLAGS"
13574 echo "cannot find nm_test_func in $nlist" >&5
13577 echo "cannot find nm_test_var in $nlist" >&5
13580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13583 echo "$progname: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13586 rm -f conftest* conftst*
13588 # Do not use the global_symbol_pipe unless it works.
13589 if test "$pipe_works" = yes; then
13592 lt_cv_sys_global_symbol_pipe=
13598 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13599 lt_cv_sys_global_symbol_to_cdecl=
13601 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13602 { echo "$as_me:$LINENO: result: failed" >&5
13603 echo "${ECHO_T}failed" >&6; }
13605 { echo "$as_me:$LINENO: result: ok" >&5
13606 echo "${ECHO_T}ok" >&6; }
13609 { echo "$as_me:$LINENO: checking for objdir" >&5
13610 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13611 if test "${lt_cv_objdir+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 rm -f .libs 2>/dev/null
13615 mkdir .libs 2>/dev/null
13616 if test -d .libs; then
13619 # MS-DOS does not allow filenames that begin with a dot.
13622 rmdir .libs 2>/dev/null
13624 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13625 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13626 objdir=$lt_cv_objdir
13634 # AIX sometimes has problems with the GCC collect2 program. For some
13635 # reason, if we set the COLLECT_NAMES environment variable, the problems
13636 # vanish in a puff of smoke.
13637 if test "X${COLLECT_NAMES+set}" != Xset; then
13639 export COLLECT_NAMES
13644 # Sed substitution that helps us do robust quoting. It backslashifies
13645 # metacharacters that are still active within double-quoted strings.
13646 Xsed='sed -e 1s/^X//'
13647 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13649 # Same as above, but do not quote variable references.
13650 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13652 # Sed substitution to delay expansion of an escaped shell variable in a
13653 # double_quote_subst'ed string.
13654 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13656 # Sed substitution to avoid accidental globbing in evaled expressions
13657 no_glob_subst='s/\*/\\\*/g'
13662 # Global variables:
13663 default_ofile=mklib
13664 can_build_shared=yes
13666 # All known linkers require a `.a' archive for static linking (except MSVC,
13667 # which needs '.lib').
13669 ltmain="$ac_aux_dir/ltmain.sh"
13670 ofile="$default_ofile"
13671 with_gnu_ld="$lt_cv_prog_gnu_ld"
13673 if test -n "$ac_tool_prefix"; then
13674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13675 set dummy ${ac_tool_prefix}ar; ac_word=$2
13676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13678 if test "${ac_cv_prog_AR+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 if test -n "$AR"; then
13682 ac_cv_prog_AR="$AR" # Let the user override the test.
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
13690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13691 ac_cv_prog_AR="${ac_tool_prefix}ar"
13692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 if test -n "$AR"; then
13703 { echo "$as_me:$LINENO: result: $AR" >&5
13704 echo "${ECHO_T}$AR" >&6; }
13706 { echo "$as_me:$LINENO: result: no" >&5
13707 echo "${ECHO_T}no" >&6; }
13712 if test -z "$ac_cv_prog_AR"; then
13714 # Extract the first word of "ar", so it can be a program name with args.
13715 set dummy ar; ac_word=$2
13716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13718 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 if test -n "$ac_ct_AR"; then
13722 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH
13728 test -z "$as_dir" && as_dir=.
13729 for ac_exec_ext in '' $ac_executable_extensions; do
13730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13731 ac_cv_prog_ac_ct_AR="ar"
13732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13742 if test -n "$ac_ct_AR"; then
13743 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13744 echo "${ECHO_T}$ac_ct_AR" >&6; }
13746 { echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6; }
13750 if test "x$ac_ct_AR" = x; then
13753 case $cross_compiling:$ac_tool_warned in
13755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13756 whose name does not start with the host triplet. If you think this
13757 configuration is useful to you, please write to autoconf@gnu.org." >&5
13758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13759 whose name does not start with the host triplet. If you think this
13760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13761 ac_tool_warned=yes ;;
13766 AR="$ac_cv_prog_AR"
13769 if test -n "$ac_tool_prefix"; then
13770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13774 if test "${ac_cv_prog_RANLIB+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 if test -n "$RANLIB"; then
13778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781 for as_dir in $PATH
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 RANLIB=$ac_cv_prog_RANLIB
13798 if test -n "$RANLIB"; then
13799 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13800 echo "${ECHO_T}$RANLIB" >&6; }
13802 { echo "$as_me:$LINENO: result: no" >&5
13803 echo "${ECHO_T}no" >&6; }
13808 if test -z "$ac_cv_prog_RANLIB"; then
13809 ac_ct_RANLIB=$RANLIB
13810 # Extract the first word of "ranlib", so it can be a program name with args.
13811 set dummy ranlib; ac_word=$2
13812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13814 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 if test -n "$ac_ct_RANLIB"; then
13818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13824 test -z "$as_dir" && as_dir=.
13825 for ac_exec_ext in '' $ac_executable_extensions; do
13826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13827 ac_cv_prog_ac_ct_RANLIB="ranlib"
13828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13838 if test -n "$ac_ct_RANLIB"; then
13839 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13840 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13842 { echo "$as_me:$LINENO: result: no" >&5
13843 echo "${ECHO_T}no" >&6; }
13846 if test "x$ac_ct_RANLIB" = x; then
13849 case $cross_compiling:$ac_tool_warned in
13851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13852 whose name does not start with the host triplet. If you think this
13853 configuration is useful to you, please write to autoconf@gnu.org." >&5
13854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13855 whose name does not start with the host triplet. If you think this
13856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13857 ac_tool_warned=yes ;;
13859 RANLIB=$ac_ct_RANLIB
13862 RANLIB="$ac_cv_prog_RANLIB"
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13867 set dummy ${ac_tool_prefix}strip; ac_word=$2
13868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13870 if test "${ac_cv_prog_STRIP+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 if test -n "$STRIP"; then
13874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 STRIP=$ac_cv_prog_STRIP
13894 if test -n "$STRIP"; then
13895 { echo "$as_me:$LINENO: result: $STRIP" >&5
13896 echo "${ECHO_T}$STRIP" >&6; }
13898 { echo "$as_me:$LINENO: result: no" >&5
13899 echo "${ECHO_T}no" >&6; }
13904 if test -z "$ac_cv_prog_STRIP"; then
13906 # Extract the first word of "strip", so it can be a program name with args.
13907 set dummy strip; ac_word=$2
13908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13910 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 if test -n "$ac_ct_STRIP"; then
13914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13923 ac_cv_prog_ac_ct_STRIP="strip"
13924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13934 if test -n "$ac_ct_STRIP"; then
13935 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13936 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13938 { echo "$as_me:$LINENO: result: no" >&5
13939 echo "${ECHO_T}no" >&6; }
13942 if test "x$ac_ct_STRIP" = x; then
13945 case $cross_compiling:$ac_tool_warned in
13947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13948 whose name does not start with the host triplet. If you think this
13949 configuration is useful to you, please write to autoconf@gnu.org." >&5
13950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13951 whose name does not start with the host triplet. If you think this
13952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13953 ac_tool_warned=yes ;;
13958 STRIP="$ac_cv_prog_STRIP"
13963 old_CFLAGS="$CFLAGS"
13965 # Set sane defaults for various variables
13966 test -z "$AR" && AR=ar
13967 test -z "$AR_FLAGS" && AR_FLAGS=cru
13968 test -z "$AS" && AS=as
13969 test -z "$CC" && CC=cc
13970 test -z "$LTCC" && LTCC=$CC
13971 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13972 test -z "$DLLTOOL" && DLLTOOL=dlltool
13973 test -z "$LD" && LD=ld
13974 test -z "$LN_S" && LN_S="ln -s"
13975 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13976 test -z "$NM" && NM=nm
13977 test -z "$SED" && SED=sed
13978 test -z "$OBJDUMP" && OBJDUMP=objdump
13979 test -z "$RANLIB" && RANLIB=:
13980 test -z "$STRIP" && STRIP=:
13981 test -z "$ac_objext" && ac_objext=o
13983 # Determine commands to create old-style static archives.
13984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13985 old_postinstall_cmds='chmod 644 $oldlib'
13986 old_postuninstall_cmds=
13988 if test -n "$RANLIB"; then
13991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14000 for cc_temp in $compiler""; do
14002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14011 # Only perform the check for file, if the check method requires it
14012 case $deplibs_check_method in
14014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14015 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14016 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14017 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14025 lt_save_MAGIC_CMD="$MAGIC_CMD"
14026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14027 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14028 for ac_dir in $ac_dummy; do
14030 test -z "$ac_dir" && ac_dir=.
14031 if test -f $ac_dir/${ac_tool_prefix}file; then
14032 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14033 if test -n "$file_magic_test_file"; then
14034 case $deplibs_check_method in
14036 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14038 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14039 $EGREP "$file_magic_regex" > /dev/null; then
14044 *** Warning: the command libtool uses to detect shared libraries,
14045 *** $file_magic_cmd, produces output that libtool cannot recognize.
14046 *** The result is that libtool may fail to recognize shared libraries
14047 *** as such. This will affect the creation of libtool libraries that
14048 *** depend on shared libraries, but programs linked with such libtool
14049 *** libraries will work regardless of this problem. Nevertheless, you
14050 *** may want to report the problem to your system manager and/or to
14051 *** bug-libtool@gnu.org
14061 MAGIC_CMD="$lt_save_MAGIC_CMD"
14066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14067 if test -n "$MAGIC_CMD"; then
14068 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14069 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14071 { echo "$as_me:$LINENO: result: no" >&5
14072 echo "${ECHO_T}no" >&6; }
14075 if test -z "$lt_cv_path_MAGIC_CMD"; then
14076 if test -n "$ac_tool_prefix"; then
14077 { echo "$as_me:$LINENO: checking for file" >&5
14078 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14079 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14087 lt_save_MAGIC_CMD="$MAGIC_CMD"
14088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14090 for ac_dir in $ac_dummy; do
14092 test -z "$ac_dir" && ac_dir=.
14093 if test -f $ac_dir/file; then
14094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14095 if test -n "$file_magic_test_file"; then
14096 case $deplibs_check_method in
14098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14101 $EGREP "$file_magic_regex" > /dev/null; then
14106 *** Warning: the command libtool uses to detect shared libraries,
14107 *** $file_magic_cmd, produces output that libtool cannot recognize.
14108 *** The result is that libtool may fail to recognize shared libraries
14109 *** as such. This will affect the creation of libtool libraries that
14110 *** depend on shared libraries, but programs linked with such libtool
14111 *** libraries will work regardless of this problem. Nevertheless, you
14112 *** may want to report the problem to your system manager and/or to
14113 *** bug-libtool@gnu.org
14123 MAGIC_CMD="$lt_save_MAGIC_CMD"
14128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14129 if test -n "$MAGIC_CMD"; then
14130 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14131 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14133 { echo "$as_me:$LINENO: result: no" >&5
14134 echo "${ECHO_T}no" >&6; }
14147 enable_win32_dll=no
14149 # Check whether --enable-libtool-lock was given.
14150 if test "${enable_libtool_lock+set}" = set; then
14151 enableval=$enable_libtool_lock;
14154 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14157 # Check whether --with-pic was given.
14158 if test "${with_pic+set}" = set; then
14159 withval=$with_pic; pic_mode="$withval"
14164 test -z "$pic_mode" && pic_mode=default
14166 # Use C for the default configuration in the libtool script
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14176 # Source file extension for C test sources.
14179 # Object file extension for compiled C test sources.
14183 # Code to be used in simple compile tests
14184 lt_simple_compile_test_code="int some_variable = 0;\n"
14186 # Code to be used in simple link tests
14187 lt_simple_link_test_code='int main(){return(0);}\n'
14190 # If no C compiler was specified, use CC.
14193 # If no C compiler flags were specified, use CFLAGS.
14194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14196 # Allow CC to be a program name with arguments.
14200 # save warnings/boilerplate of simple test code
14201 ac_outfile=conftest.$ac_objext
14202 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14203 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14204 _lt_compiler_boilerplate=`cat conftest.err`
14207 ac_outfile=conftest.$ac_objext
14208 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14209 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14210 _lt_linker_boilerplate=`cat conftest.err`
14215 lt_prog_compiler_no_builtin_flag=
14217 if test "$GCC" = yes; then
14218 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14221 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14222 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14223 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 lt_cv_prog_compiler_rtti_exceptions=no
14227 ac_outfile=conftest.$ac_objext
14228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14229 lt_compiler_flag="-fno-rtti -fno-exceptions"
14230 # Insert the option either (1) after the last *FLAGS variable, or
14231 # (2) before a word containing "conftest.", or (3) at the end.
14232 # Note that $ac_compile itself does not contain backslashes and begins
14233 # with a dollar sign (not a hyphen), so the echo should work correctly.
14234 # The option is referenced via a variable to avoid confusing sed.
14235 lt_compile=`echo "$ac_compile" | $SED \
14236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14238 -e 's:$: $lt_compiler_flag:'`
14239 (eval echo "\"\$as_me:14239: $lt_compile\"" >&5)
14240 (eval "$lt_compile" 2>conftest.err)
14242 cat conftest.err >&5
14243 echo "$as_me:14243: \$? = $ac_status" >&5
14244 if (exit $ac_status) && test -s "$ac_outfile"; then
14245 # The compiler can only warn and ignore the option if not recognized
14246 # So say no if there are warnings other than the usual output.
14247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14250 lt_cv_prog_compiler_rtti_exceptions=yes
14256 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14257 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14259 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14260 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14267 lt_prog_compiler_wl=
14268 lt_prog_compiler_pic=
14269 lt_prog_compiler_static=
14271 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14272 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14274 if test "$GCC" = yes; then
14275 lt_prog_compiler_wl='-Wl,'
14276 lt_prog_compiler_static='-static'
14280 # All AIX code is PIC.
14281 if test "$host_cpu" = ia64; then
14282 # AIX 5 now supports IA64 processor
14283 lt_prog_compiler_static='-Bstatic'
14288 # FIXME: we need at least 68020 code to build shared libraries, but
14289 # adding the `-m68020' flag to GCC prevents building anything better,
14291 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14294 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14295 # PIC is the default for these OSes.
14298 mingw* | pw32* | os2*)
14299 # This hack is so that the source file can tell whether it is being
14300 # built for inclusion in a dll (and should export symbols for example).
14301 lt_prog_compiler_pic='-DDLL_EXPORT'
14304 darwin* | rhapsody*)
14305 # PIC is the default on this platform
14306 # Common symbols not allowed in MH_DYLIB files
14307 lt_prog_compiler_pic='-fno-common'
14311 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14312 # Instead, we relocate shared libraries at runtime.
14316 # Just because we use GCC doesn't mean we suddenly get shared libraries
14317 # on systems that don't support them.
14318 lt_prog_compiler_can_build_shared=no
14323 if test -d /usr/nec; then
14324 lt_prog_compiler_pic=-Kconform_pic
14329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14330 # not for PA HP-UX.
14336 lt_prog_compiler_pic='-fPIC'
14342 lt_prog_compiler_pic='-fPIC'
14346 # PORTME Check for flag to pass linker flags through the system compiler.
14349 lt_prog_compiler_wl='-Wl,'
14350 if test "$host_cpu" = ia64; then
14351 # AIX 5 now supports IA64 processor
14352 lt_prog_compiler_static='-Bstatic'
14354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14358 # PIC is the default on this platform
14359 # Common symbols not allowed in MH_DYLIB files
14360 case $cc_basename in
14362 lt_prog_compiler_pic='-qnocommon'
14363 lt_prog_compiler_wl='-Wl,'
14368 mingw* | pw32* | os2*)
14369 # This hack is so that the source file can tell whether it is being
14370 # built for inclusion in a dll (and should export symbols for example).
14371 lt_prog_compiler_pic='-DDLL_EXPORT'
14374 hpux9* | hpux10* | hpux11*)
14375 lt_prog_compiler_wl='-Wl,'
14376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14377 # not for PA HP-UX.
14383 lt_prog_compiler_pic='+Z'
14386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14387 lt_prog_compiler_static='${wl}-a ${wl}archive'
14390 irix5* | irix6* | nonstopux*)
14391 lt_prog_compiler_wl='-Wl,'
14392 # PIC (with -KPIC) is the default.
14393 lt_prog_compiler_static='-non_shared'
14397 lt_prog_compiler_pic='-KPIC'
14398 lt_prog_compiler_static='-Bstatic'
14402 case $cc_basename in
14404 lt_prog_compiler_wl='-Wl,'
14405 lt_prog_compiler_pic='-KPIC'
14406 lt_prog_compiler_static='-static'
14408 pgcc* | pgf77* | pgf90* | pgf95*)
14409 # Portland Group compilers (*not* the Pentium gcc compiler,
14410 # which looks to be a dead project)
14411 lt_prog_compiler_wl='-Wl,'
14412 lt_prog_compiler_pic='-fpic'
14413 lt_prog_compiler_static='-Bstatic'
14416 lt_prog_compiler_wl='-Wl,'
14417 # All Alpha code is PIC.
14418 lt_prog_compiler_static='-non_shared'
14423 osf3* | osf4* | osf5*)
14424 lt_prog_compiler_wl='-Wl,'
14425 # All OSF/1 code is PIC.
14426 lt_prog_compiler_static='-non_shared'
14430 lt_prog_compiler_pic='-KPIC'
14431 lt_prog_compiler_static='-Bstatic'
14432 case $cc_basename in
14433 f77* | f90* | f95*)
14434 lt_prog_compiler_wl='-Qoption ld ';;
14436 lt_prog_compiler_wl='-Wl,';;
14441 lt_prog_compiler_wl='-Qoption ld '
14442 lt_prog_compiler_pic='-PIC'
14443 lt_prog_compiler_static='-Bstatic'
14446 sysv4 | sysv4.2uw2* | sysv4.3*)
14447 lt_prog_compiler_wl='-Wl,'
14448 lt_prog_compiler_pic='-KPIC'
14449 lt_prog_compiler_static='-Bstatic'
14453 if test -d /usr/nec ;then
14454 lt_prog_compiler_pic='-Kconform_pic'
14455 lt_prog_compiler_static='-Bstatic'
14459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-KPIC'
14462 lt_prog_compiler_static='-Bstatic'
14466 lt_prog_compiler_wl='-Wl,'
14467 lt_prog_compiler_can_build_shared=no
14471 lt_prog_compiler_pic='-pic'
14472 lt_prog_compiler_static='-Bstatic'
14476 lt_prog_compiler_can_build_shared=no
14481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14482 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14485 # Check to make sure the PIC flag actually works.
14487 if test -n "$lt_prog_compiler_pic"; then
14489 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14491 if test "${lt_prog_compiler_pic_works+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 lt_prog_compiler_pic_works=no
14495 ac_outfile=conftest.$ac_objext
14496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 # The option is referenced via a variable to avoid confusing sed.
14503 lt_compile=`echo "$ac_compile" | $SED \
14504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506 -e 's:$: $lt_compiler_flag:'`
14507 (eval echo "\"\$as_me:14507: $lt_compile\"" >&5)
14508 (eval "$lt_compile" 2>conftest.err)
14510 cat conftest.err >&5
14511 echo "$as_me:14511: \$? = $ac_status" >&5
14512 if (exit $ac_status) && test -s "$ac_outfile"; then
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings other than the usual output.
14515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14518 lt_prog_compiler_pic_works=yes
14524 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14525 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14527 if test x"$lt_prog_compiler_pic_works" = xyes; then
14528 case $lt_prog_compiler_pic in
14530 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14533 lt_prog_compiler_pic=
14534 lt_prog_compiler_can_build_shared=no
14539 # For platforms which do not support PIC, -DPIC is meaningless:
14541 lt_prog_compiler_pic=
14544 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14549 # Check to make sure the static flag actually works.
14551 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14552 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14553 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14554 if test "${lt_prog_compiler_static_works+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 lt_prog_compiler_static_works=no
14558 save_LDFLAGS="$LDFLAGS"
14559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14560 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14562 # The linker can only warn and ignore the option if not recognized
14563 # So say no if there are warnings
14564 if test -s conftest.err; then
14565 # Append any errors to the config.log.
14566 cat conftest.err 1>&5
14567 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14569 if diff conftest.exp conftest.er2 >/dev/null; then
14570 lt_prog_compiler_static_works=yes
14573 lt_prog_compiler_static_works=yes
14577 LDFLAGS="$save_LDFLAGS"
14580 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14581 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14583 if test x"$lt_prog_compiler_static_works" = xyes; then
14586 lt_prog_compiler_static=
14590 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14591 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 lt_cv_prog_compiler_c_o=no
14596 $rm -r conftest 2>/dev/null
14600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14602 lt_compiler_flag="-o out/conftest2.$ac_objext"
14603 # Insert the option either (1) after the last *FLAGS variable, or
14604 # (2) before a word containing "conftest.", or (3) at the end.
14605 # Note that $ac_compile itself does not contain backslashes and begins
14606 # with a dollar sign (not a hyphen), so the echo should work correctly.
14607 lt_compile=`echo "$ac_compile" | $SED \
14608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14610 -e 's:$: $lt_compiler_flag:'`
14611 (eval echo "\"\$as_me:14611: $lt_compile\"" >&5)
14612 (eval "$lt_compile" 2>out/conftest.err)
14614 cat out/conftest.err >&5
14615 echo "$as_me:14615: \$? = $ac_status" >&5
14616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14618 # The compiler can only warn and ignore the option if not recognized
14619 # So say no if there are warnings
14620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14623 lt_cv_prog_compiler_c_o=yes
14628 # SGI C++ compiler will create directory out/ii_files/ for
14629 # template instantiation
14630 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14631 $rm out/* && rmdir out
14637 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14638 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14641 hard_links="nottested"
14642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14643 # do not overwrite the value of need_locks provided by the user
14644 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14645 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14650 ln conftest.a conftest.b 2>&5 || hard_links=no
14651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14652 { echo "$as_me:$LINENO: result: $hard_links" >&5
14653 echo "${ECHO_T}$hard_links" >&6; }
14654 if test "$hard_links" = no; then
14655 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14656 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14663 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14667 allow_undefined_flag=
14668 enable_shared_with_static_runtimes=no
14670 archive_expsym_cmds=
14671 old_archive_From_new_cmds=
14672 old_archive_from_expsyms_cmds=
14673 export_dynamic_flag_spec=
14674 whole_archive_flag_spec=
14675 thread_safe_flag_spec=
14676 hardcode_libdir_flag_spec=
14677 hardcode_libdir_flag_spec_ld=
14678 hardcode_libdir_separator=
14680 hardcode_minus_L=no
14681 hardcode_shlibpath_var=unsupported
14682 link_all_deplibs=unknown
14683 hardcode_automatic=no
14685 module_expsym_cmds=
14686 always_export_symbols=no
14687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688 # include_expsyms should be a list of space-separated symbols to be *always*
14689 # included in the symbol list
14691 # exclude_expsyms can be an extended regexp of symbols to exclude
14692 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14694 # as well as any symbol that contains `d'.
14695 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14697 # platforms (ab)use it in PIC code, but their linkers get confused if
14698 # the symbol is explicitly referenced. Since portable code cannot
14699 # rely on this symbol name, it's probably fine to never include it in
14700 # preloaded symbol tables.
14701 extract_expsyms_cmds=
14702 # Just being paranoid about ensuring that cc_basename is set.
14703 for cc_temp in $compiler""; do
14705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14714 cygwin* | mingw* | pw32*)
14715 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14716 # When not using gcc, we currently assume that we are using
14717 # Microsoft Visual C++.
14718 if test "$GCC" != yes; then
14723 # we just hope/assume this is gcc and not c89 (= MSVC++)
14732 if test "$with_gnu_ld" = yes; then
14733 # If archive_cmds runs LD, not CC, wlarc should be empty
14736 # Set some defaults for GNU ld with shared library support. These
14737 # are reset later if shared libraries are not supported. Putting them
14738 # here allows them to be overridden if necessary.
14739 runpath_var=LD_RUN_PATH
14740 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14741 export_dynamic_flag_spec='${wl}--export-dynamic'
14742 # ancient GNU ld didn't support --whole-archive et. al.
14743 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14744 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14746 whole_archive_flag_spec=
14748 supports_anon_versioning=no
14749 case `$LD -v 2>/dev/null` in
14750 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14751 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14752 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14753 *\ 2.11.*) ;; # other 2.11 versions
14754 *) supports_anon_versioning=yes ;;
14757 # See if GNU ld supports shared libraries.
14759 aix3* | aix4* | aix5*)
14760 # On AIX/PPC, the GNU linker is very broken
14761 if test "$host_cpu" != ia64; then
14765 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14766 *** to be unable to reliably create shared libraries on AIX.
14767 *** Therefore, libtool is disabling shared libraries support. If you
14768 *** really care for shared libraries, you may want to modify your PATH
14769 *** so that a non-GNU linker is found, and then restart.
14776 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)'
14777 hardcode_libdir_flag_spec='-L$libdir'
14778 hardcode_minus_L=yes
14780 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14781 # that the semantics of dynamic libraries on AmigaOS, at least up
14782 # to version 4, is to share data among multiple programs linked
14783 # with the same dynamic library. Since this doesn't match the
14784 # behavior of shared libraries on other platforms, we can't use
14790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14791 allow_undefined_flag=unsupported
14792 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14793 # support --undefined. This deserves some investigation. FIXME
14794 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14800 cygwin* | mingw* | pw32*)
14801 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14802 # as there is no search path for DLLs.
14803 hardcode_libdir_flag_spec='-L$libdir'
14804 allow_undefined_flag=unsupported
14805 always_export_symbols=no
14806 enable_shared_with_static_runtimes=yes
14807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14809 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14811 # If the export-symbols file already is a .def file (1st line
14812 # is EXPORTS), use it as is; otherwise, prepend...
14813 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14814 cp $export_symbols $output_objdir/$soname.def;
14816 echo EXPORTS > $output_objdir/$soname.def;
14817 cat $export_symbols >> $output_objdir/$soname.def;
14819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14827 hardcode_shlibpath_var=no
14828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14829 export_dynamic_flag_spec='${wl}-E'
14830 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14831 # Instead, shared libraries are loaded at an image base (0x10000000 by
14832 # default) and relocated if they conflict, which is a slow very memory
14833 # consuming and fragmenting process. To avoid this, we pick a random,
14834 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14835 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14837 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'
14841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843 case $cc_basename,$host_cpu in
14844 pgcc*) # Portland Group C compiler
14845 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'
14846 tmp_addflag=' $pic_flag'
14848 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14849 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'
14850 tmp_addflag=' $pic_flag -Mnomain' ;;
14851 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14852 tmp_addflag=' -i_dynamic' ;;
14853 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14854 tmp_addflag=' -i_dynamic -nofor_main' ;;
14855 ifc* | ifort*) # Intel Fortran compiler
14856 tmp_addflag=' -nofor_main' ;;
14858 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14860 if test $supports_anon_versioning = yes; then
14861 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863 $echo "local: *; };" >> $output_objdir/$libname.ver~
14864 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14882 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14887 *** create shared libraries on Solaris systems. Therefore, libtool
14888 *** is disabling shared libraries support. We urge you to upgrade GNU
14889 *** binutils to release 2.9.1 or newer. Another option is to modify
14890 *** your PATH or compiler configuration so that the native linker is
14891 *** used, and then restart.
14894 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14903 case `$LD -v 2>&1` in
14904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14909 *** reliably create shared libraries on SCO systems. Therefore, libtool
14910 *** is disabling shared libraries support. We urge you to upgrade GNU
14911 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14912 *** your PATH or compiler configuration so that the native linker is
14913 *** used, and then restart.
14918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14932 hardcode_direct=yes
14933 hardcode_shlibpath_var=no
14937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14946 if test "$ld_shlibs" = no; then
14948 hardcode_libdir_flag_spec=
14949 export_dynamic_flag_spec=
14950 whole_archive_flag_spec=
14953 # PORTME fill in a description of your system's linker (not GNU ld)
14956 allow_undefined_flag=unsupported
14957 always_export_symbols=yes
14958 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'
14959 # Note: this linker hardcodes the directories in LIBPATH if there
14960 # are no directories specified by -L.
14961 hardcode_minus_L=yes
14962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14963 # Neither direct hardcoding nor static linking is supported with a
14965 hardcode_direct=unsupported
14970 if test "$host_cpu" = ia64; then
14971 # On IA64, the linker does run time linking by default, so we don't
14972 # have to do anything special.
14973 aix_use_runtimelinking=no
14974 exp_sym_flag='-Bexport'
14977 # If we're using GNU nm, then we don't want the "-C" option.
14978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14979 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14980 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'
14982 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'
14984 aix_use_runtimelinking=no
14986 # Test if we are trying to use run time linking or normal
14987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14988 # need to do runtime linking.
14989 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14990 for ld_flag in $LDFLAGS; do
14991 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14992 aix_use_runtimelinking=yes
14999 exp_sym_flag='-bexport'
15000 no_entry_flag='-bnoentry'
15003 # When large executables or shared objects are built, AIX ld can
15004 # have problems creating the table of contents. If linking a library
15005 # or program results in "error TOC overflow" add -mminimal-toc to
15006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15010 hardcode_direct=yes
15011 hardcode_libdir_separator=':'
15012 link_all_deplibs=yes
15014 if test "$GCC" = yes; then
15015 case $host_os in aix4.[012]|aix4.[012].*)
15016 # We only want to do this on AIX 4.2 and lower, the check
15017 # below for broken collect2 doesn't work under 4.3+
15018 collect2name=`${CC} -print-prog-name=collect2`
15019 if test -f "$collect2name" && \
15020 strings "$collect2name" | grep resolve_lib_name >/dev/null
15022 # We have reworked collect2
15023 hardcode_direct=yes
15025 # We have old collect2
15026 hardcode_direct=unsupported
15027 # It fails to find uninstalled libraries when the uninstalled
15028 # path is not listed in the libpath. Setting hardcode_minus_L
15029 # to unsupported forces relinking
15030 hardcode_minus_L=yes
15031 hardcode_libdir_flag_spec='-L$libdir'
15032 hardcode_libdir_separator=
15036 shared_flag='-shared'
15037 if test "$aix_use_runtimelinking" = yes; then
15038 shared_flag="$shared_flag "'${wl}-G'
15042 if test "$host_cpu" = ia64; then
15043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044 # chokes on -Wl,-G. The following line is correct:
15047 if test "$aix_use_runtimelinking" = yes; then
15048 shared_flag='${wl}-G'
15050 shared_flag='${wl}-bM:SRE'
15055 # It seems that -bexpall does not export symbols beginning with
15056 # underscore (_), so it is better to generate a list of symbols to export.
15057 always_export_symbols=yes
15058 if test "$aix_use_runtimelinking" = yes; then
15059 # Warning - without using the other runtime loading flags (-brtl),
15060 # -berok will link without error, but may produce a broken library.
15061 allow_undefined_flag='-berok'
15062 # Determine the default libpath from the value encoded in an empty executable.
15063 cat >conftest.$ac_ext <<_ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest$ac_exeext'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15115 # Check for a 64-bit object if we didn't find anything.
15116 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; }
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15125 rm -f core conftest.err conftest.$ac_objext \
15126 conftest$ac_exeext conftest.$ac_ext
15127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15130 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"
15132 if test "$host_cpu" = ia64; then
15133 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15134 allow_undefined_flag="-z nodefs"
15135 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"
15137 # Determine the default libpath from the value encoded in an empty executable.
15138 cat >conftest.$ac_ext <<_ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (ac_try="$ac_link"
15155 case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_link") 2>conftest.er1
15162 grep -v '^ *+' conftest.er1 >conftest.err
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest$ac_exeext'
15178 { (case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_try") 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15190 # Check for a 64-bit object if we didn't find anything.
15191 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; }
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15200 rm -f core conftest.err conftest.$ac_objext \
15201 conftest$ac_exeext conftest.$ac_ext
15202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15205 # Warning - without using the other run time loading flags,
15206 # -berok will link without error, but may produce a broken library.
15207 no_undefined_flag=' ${wl}-bernotok'
15208 allow_undefined_flag=' ${wl}-berok'
15209 # Exported symbols can be pulled into shared objects from archives
15210 whole_archive_flag_spec='$convenience'
15211 archive_cmds_need_lc=yes
15212 # This is similar to how AIX traditionally builds its shared libraries.
15213 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'
15219 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)'
15220 hardcode_libdir_flag_spec='-L$libdir'
15221 hardcode_minus_L=yes
15222 # see comment about different semantics on the GNU ld section
15227 export_dynamic_flag_spec=-rdynamic
15230 cygwin* | mingw* | pw32*)
15231 # When not using gcc, we currently assume that we are using
15232 # Microsoft Visual C++.
15233 # hardcode_libdir_flag_spec is actually meaningless, as there is
15234 # no search path for DLLs.
15235 hardcode_libdir_flag_spec=' '
15236 allow_undefined_flag=unsupported
15237 # Tell ltmain to make .lib files, not .a files.
15239 # Tell ltmain to make .dll files, not .so files.
15241 # FIXME: Setting linknames here is a bad hack.
15242 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15243 # The linker will automatically build a .lib file if we build a DLL.
15244 old_archive_From_new_cmds='true'
15245 # FIXME: Should let the user specify the lib program.
15246 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15247 fix_srcfile_path='`cygpath -w "$srcfile"`'
15248 enable_shared_with_static_runtimes=yes
15251 darwin* | rhapsody*)
15253 rhapsody* | darwin1.[012])
15254 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15257 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15258 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15260 case ${MACOSX_DEPLOYMENT_TARGET} in
15262 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15265 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15271 archive_cmds_need_lc=no
15273 hardcode_automatic=yes
15274 hardcode_shlibpath_var=unsupported
15275 whole_archive_flag_spec=''
15276 link_all_deplibs=yes
15277 if test "$GCC" = yes ; then
15278 output_verbose_link_cmd='echo'
15279 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15280 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15281 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15282 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}'
15283 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}'
15285 case $cc_basename in
15287 output_verbose_link_cmd='echo'
15288 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15289 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15290 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15291 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}'
15292 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}'
15302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15303 hardcode_libdir_flag_spec='-L$libdir'
15304 hardcode_shlibpath_var=no
15311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15312 # support. Future versions do this automatically, but an explicit c++rt0.o
15313 # does not break anything, and helps significantly (at the cost of a little
15316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15317 hardcode_libdir_flag_spec='-R$libdir'
15318 hardcode_direct=yes
15319 hardcode_shlibpath_var=no
15322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_direct=yes
15326 hardcode_minus_L=yes
15327 hardcode_shlibpath_var=no
15330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15331 freebsd* | kfreebsd*-gnu | dragonfly*)
15332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15333 hardcode_libdir_flag_spec='-R$libdir'
15334 hardcode_direct=yes
15335 hardcode_shlibpath_var=no
15339 if test "$GCC" = yes; then
15340 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'
15342 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'
15344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15345 hardcode_libdir_separator=:
15346 hardcode_direct=yes
15348 # hardcode_minus_L: Not really in the search PATH,
15349 # but as the default location of the library.
15350 hardcode_minus_L=yes
15351 export_dynamic_flag_spec='${wl}-E'
15355 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15360 if test "$with_gnu_ld" = no; then
15361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15362 hardcode_libdir_separator=:
15364 hardcode_direct=yes
15365 export_dynamic_flag_spec='${wl}-E'
15367 # hardcode_minus_L: Not really in the search PATH,
15368 # but as the default location of the library.
15369 hardcode_minus_L=yes
15374 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15389 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15395 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15399 if test "$with_gnu_ld" = no; then
15400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15401 hardcode_libdir_separator=:
15405 hardcode_libdir_flag_spec_ld='+b $libdir'
15407 hardcode_shlibpath_var=no
15410 hardcode_direct=yes
15411 export_dynamic_flag_spec='${wl}-E'
15413 # hardcode_minus_L: Not really in the search PATH,
15414 # but as the default location of the library.
15415 hardcode_minus_L=yes
15421 irix5* | irix6* | nonstopux*)
15422 if test "$GCC" = yes; then
15423 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'
15425 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'
15426 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15429 hardcode_libdir_separator=:
15430 link_all_deplibs=yes
15434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15439 hardcode_libdir_flag_spec='-R$libdir'
15440 hardcode_direct=yes
15441 hardcode_shlibpath_var=no
15445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 hardcode_direct=yes
15447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15448 hardcode_libdir_separator=:
15449 hardcode_shlibpath_var=no
15453 hardcode_direct=yes
15454 hardcode_shlibpath_var=no
15455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15457 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15459 export_dynamic_flag_spec='${wl}-E'
15462 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15464 hardcode_libdir_flag_spec='-R$libdir'
15467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15475 hardcode_libdir_flag_spec='-L$libdir'
15476 hardcode_minus_L=yes
15477 allow_undefined_flag=unsupported
15478 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'
15479 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15483 if test "$GCC" = yes; then
15484 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15485 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'
15487 allow_undefined_flag=' -expect_unresolved \*'
15488 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'
15490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491 hardcode_libdir_separator=:
15494 osf4* | osf5*) # as osf3* with the addition of -msym flag
15495 if test "$GCC" = yes; then
15496 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15497 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'
15498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15500 allow_undefined_flag=' -expect_unresolved \*'
15501 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'
15502 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15503 $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'
15505 # Both c and cxx compiler support -rpath directly
15506 hardcode_libdir_flag_spec='-rpath $libdir'
15508 hardcode_libdir_separator=:
15512 no_undefined_flag=' -z text'
15513 if test "$GCC" = yes; then
15515 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15516 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15517 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15520 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15524 hardcode_libdir_flag_spec='-R$libdir'
15525 hardcode_shlibpath_var=no
15527 solaris2.[0-5] | solaris2.[0-5].*) ;;
15529 # The compiler driver will combine linker options so we
15530 # cannot just pass the convience library names through
15531 # without $wl, iff we do not link with $LD.
15532 # Luckily, gcc supports the same syntax we need for Sun Studio.
15533 # Supported since Solaris 2.6 (maybe 2.5.1?)
15536 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15538 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' ;;
15541 link_all_deplibs=yes
15545 if test "x$host_vendor" = xsequent; then
15546 # Use $CC to link under sequent, because it throws in some extra .o
15547 # files that make .init and .fini sections work.
15548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_libdir_flag_spec='-L$libdir'
15553 hardcode_direct=yes
15554 hardcode_minus_L=yes
15555 hardcode_shlibpath_var=no
15559 case $host_vendor in
15561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562 hardcode_direct=yes # is this really true???
15565 ## LD is ld it makes a PLAMLIB
15566 ## CC just makes a GrossModule.
15567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15568 reload_cmds='$CC -r -o $output$reload_objs'
15572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15576 runpath_var='LD_RUN_PATH'
15577 hardcode_shlibpath_var=no
15581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15582 hardcode_shlibpath_var=no
15583 export_dynamic_flag_spec='-Bexport'
15587 if test -d /usr/nec; then
15588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_shlibpath_var=no
15590 runpath_var=LD_RUN_PATH
15591 hardcode_runpath_var=yes
15596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15597 no_undefined_flag='${wl}-z,text'
15598 archive_cmds_need_lc=no
15599 hardcode_shlibpath_var=no
15600 runpath_var='LD_RUN_PATH'
15602 if test "$GCC" = yes; then
15603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15611 sysv5* | sco3.2v5* | sco5v6*)
15612 # Note: We can NOT use -z defs as we might desire, because we do not
15613 # link with -lc, and that would cause any symbols used from libc to
15614 # always be unresolved, which means just about no library would
15615 # ever link correctly. If we're not using GNU ld we use -z text
15616 # though, which does catch some bad symbols but isn't as heavy-handed
15618 no_undefined_flag='${wl}-z,text'
15619 allow_undefined_flag='${wl}-z,nodefs'
15620 archive_cmds_need_lc=no
15621 hardcode_shlibpath_var=no
15622 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15623 hardcode_libdir_separator=':'
15624 link_all_deplibs=yes
15625 export_dynamic_flag_spec='${wl}-Bexport'
15626 runpath_var='LD_RUN_PATH'
15628 if test "$GCC" = yes; then
15629 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639 hardcode_libdir_flag_spec='-L$libdir'
15640 hardcode_shlibpath_var=no
15649 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15650 echo "${ECHO_T}$ld_shlibs" >&6; }
15651 test "$ld_shlibs" = no && can_build_shared=no
15654 # Do we need to explicitly link libc?
15656 case "x$archive_cmds_need_lc" in
15658 # Assume -lc should be added
15659 archive_cmds_need_lc=yes
15661 if test "$enable_shared" = yes && test "$GCC" = yes; then
15662 case $archive_cmds in
15664 # FIXME: we may have to deal with multi-command sequences.
15667 # Test whether the compiler implicitly links with -lc since on some
15668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15669 # to ld, don't add -lc before -lgcc.
15670 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15671 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15676 (eval $ac_compile) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } 2>conftest.err; then
15682 libobjs=conftest.$ac_objext
15684 wl=$lt_prog_compiler_wl
15685 pic_flag=$lt_prog_compiler_pic
15691 lt_save_allow_undefined_flag=$allow_undefined_flag
15692 allow_undefined_flag=
15693 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15694 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }
15699 archive_cmds_need_lc=no
15701 archive_cmds_need_lc=yes
15703 allow_undefined_flag=$lt_save_allow_undefined_flag
15705 cat conftest.err 1>&5
15708 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15709 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15716 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15718 library_names_spec=
15719 libname_spec='lib$name'
15723 postuninstall_cmds=
15727 shlibpath_overrides_runpath=unknown
15729 dynamic_linker="$host_os ld.so"
15730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15731 if test "$GCC" = yes; then
15732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15733 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15734 # if the path contains ";" then we assume it to be the separator
15735 # otherwise default to the standard path separator (i.e. ":") - it is
15736 # assumed that no part of a normal pathname contains ";" but that should
15737 # okay in the real world where ";" in dirpaths is itself problematic.
15738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15745 need_lib_prefix=unknown
15746 hardcode_into_libs=no
15748 # when you set need_version to no, make sure it does not cause -set_version
15749 # flags to be left without arguments
15750 need_version=unknown
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15756 shlibpath_var=LIBPATH
15758 # AIX 3 has no versioning support, so we append a major version to the name.
15759 soname_spec='${libname}${release}${shared_ext}$major'
15766 hardcode_into_libs=yes
15767 if test "$host_cpu" = ia64; then
15768 # AIX 5 supports IA64
15769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15770 shlibpath_var=LD_LIBRARY_PATH
15772 # With GCC up to 2.95.x, collect2 would create an import file
15773 # for dependence libraries. The import file would start with
15774 # the line `#! .'. This would cause the generated library to
15775 # depend on `.', always an invalid library. This was fixed in
15776 # development snapshots of GCC prior to 3.0.
15778 aix4 | aix4.[01] | aix4.[01].*)
15779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15784 can_build_shared=no
15788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15789 # soname into executable. Probably we can add versioning support to
15790 # collect2, so additional links can be useful in future.
15791 if test "$aix_use_runtimelinking" = yes; then
15792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15793 # instead of lib<name>.a to let people know that these are not
15794 # typical AIX shared libraries.
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 # We preserve .a as extension for shared libraries through AIX4.2
15798 # and later when we are not doing run time linking.
15799 library_names_spec='${libname}${release}.a $libname.a'
15800 soname_spec='${libname}${release}${shared_ext}$major'
15802 shlibpath_var=LIBPATH
15807 library_names_spec='$libname.ixlibrary $libname.a'
15808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15809 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'
15813 library_names_spec='${libname}${shared_ext}'
15814 dynamic_linker="$host_os ld.so"
15815 shlibpath_var=LIBRARY_PATH
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15827 # the default ld.so.conf also contains /usr/contrib/lib and
15828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15829 # libtool to hard-code these into programs
15832 cygwin* | mingw* | pw32*)
15833 version_type=windows
15838 case $GCC,$host_os in
15839 yes,cygwin* | yes,mingw* | yes,pw32*)
15840 library_names_spec='$libname.dll.a'
15841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15842 postinstall_cmds='base_file=`basename \${file}`~
15843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15844 dldir=$destdir/`dirname \$dlpath`~
15845 test -d \$dldir || mkdir -p \$dldir~
15846 $install_prog $dir/$dlname \$dldir/$dlname~
15847 chmod a+x \$dldir/$dlname'
15848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15849 dlpath=$dir/\$dldll~
15851 shlibpath_overrides_runpath=yes
15855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15857 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15860 # MinGW DLLs use traditional 'lib' prefix
15861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15863 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15864 # It is most probably a Windows format PATH printed by
15865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15866 # path with ; separators, and with drive letters. We can handle the
15867 # drive letters (cygwin fileutils understands them), so leave them,
15868 # especially as we might pass files found there to a mingw objdump,
15869 # which wouldn't understand a cygwinified path. Ahh.
15870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15876 # pw32 DLLs use 'pw' prefix rather than 'lib'
15877 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15886 dynamic_linker='Win32 ld.exe'
15887 # FIXME: first we should search . and the directory the executable is in
15891 darwin* | rhapsody*)
15892 dynamic_linker="$host_os dyld"
15893 version_type=darwin
15896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15897 soname_spec='${libname}${release}${major}$shared_ext'
15898 shlibpath_overrides_runpath=yes
15899 shlibpath_var=DYLD_LIBRARY_PATH
15900 shrext_cmds='.dylib'
15901 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15902 if test "$GCC" = yes; then
15903 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"`
15905 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15915 soname_spec='${libname}${release}${shared_ext}$major'
15916 shlibpath_var=LD_LIBRARY_PATH
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 shlibpath_var=LD_LIBRARY_PATH
15930 shlibpath_overrides_runpath=no
15931 hardcode_into_libs=yes
15932 dynamic_linker='GNU ld.so'
15935 freebsd* | dragonfly*)
15936 # DragonFly does not have aout. When/if they implement a new
15937 # versioning mechanism, adjust this.
15938 if test -x /usr/bin/objformat; then
15939 objformat=`/usr/bin/objformat`
15942 freebsd[123]*) objformat=aout ;;
15943 *) objformat=elf ;;
15946 version_type=freebsd-$objformat
15947 case $version_type in
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15958 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=yes
15963 freebsd3.[01]* | freebsdelf3.[01]*)
15964 shlibpath_overrides_runpath=yes
15965 hardcode_into_libs=yes
15967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15969 shlibpath_overrides_runpath=no
15970 hardcode_into_libs=yes
15972 freebsd*) # from 4.6 on
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 hardcode_into_libs=yes
15989 hpux9* | hpux10* | hpux11*)
15990 # Give a soname corresponding to the major version so that dld.sl refuses to
15991 # link against other versions.
15998 hardcode_into_libs=yes
15999 dynamic_linker="$host_os dld.so"
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 soname_spec='${libname}${release}${shared_ext}$major'
16004 if test "X$HPUX_IA64_MODE" = X32; then
16005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16013 hardcode_into_libs=yes
16014 dynamic_linker="$host_os dld.sl"
16015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16024 dynamic_linker="$host_os dld.sl"
16025 shlibpath_var=SHLIB_PATH
16026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16031 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16032 postinstall_cmds='chmod 555 $lib'
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16047 irix5* | irix6* | nonstopux*)
16049 nonstopux*) version_type=nonstopux ;;
16051 if test "$lt_cv_prog_gnu_ld" = yes; then
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16062 irix5* | nonstopux*)
16063 libsuff= shlibsuff=
16066 case $LD in # libtool.m4 will add one of these switches to LD
16067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16068 libsuff= shlibsuff= libmagic=32-bit;;
16069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16070 libsuff=32 shlibsuff=N32 libmagic=N32;;
16071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16073 *) libsuff= shlibsuff= libmagic=never-match;;
16077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16078 shlibpath_overrides_runpath=no
16079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16081 hardcode_into_libs=yes
16084 # No shared lib support for Linux oldld, aout, or coff.
16085 linux*oldld* | linux*aout* | linux*coff*)
16089 # This must be Linux ELF.
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=no
16099 # This implies no fast_install, which is unacceptable.
16100 # Some rework will be needed to allow for fast_install
16101 # before this can be enabled.
16102 hardcode_into_libs=yes
16104 # Append ld.so.conf contents to the search path
16105 if test -f /etc/ld.so.conf; then
16106 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' ' '`
16107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16110 # We used to test for /lib/ld.so.1 and disable shared libraries on
16111 # powerpc, because MkLinux only supported shared libraries with the
16112 # GNU dynamic linker. Since this was broken with cross compilers,
16113 # most powerpc-linux boxes support dynamic linking these days and
16114 # people can always --disable-shared, the test was removed, and we
16115 # assume the GNU/Linux dynamic linker is in use.
16116 dynamic_linker='GNU/Linux ld.so'
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=no
16127 hardcode_into_libs=yes
16128 dynamic_linker='GNU ld.so'
16135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16138 dynamic_linker='NetBSD (a.out) ld.so'
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 dynamic_linker='NetBSD ld.elf_so'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=yes
16146 hardcode_into_libs=yes
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 shlibpath_overrides_runpath=yes
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
16162 shlibpath_var=LD_LIBRARY_PATH
16163 shlibpath_overrides_runpath=yes
16168 sys_lib_dlsearch_path_spec="/usr/lib"
16170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16173 *) need_version=no ;;
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16177 shlibpath_var=LD_LIBRARY_PATH
16178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16180 openbsd2.[89] | openbsd2.[89].*)
16181 shlibpath_overrides_runpath=no
16184 shlibpath_overrides_runpath=yes
16188 shlibpath_overrides_runpath=yes
16193 libname_spec='$name'
16196 library_names_spec='$libname${shared_ext} $libname.a'
16197 dynamic_linker='OS/2 ld.exe'
16198 shlibpath_var=LIBPATH
16201 osf3* | osf4* | osf5*)
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes
16220 hardcode_into_libs=yes
16221 # ldd complains unless libraries are executable
16222 postinstall_cmds='chmod +x $lib'
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 if test "$with_gnu_ld" = yes; then
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 case $host_vendor in
16244 shlibpath_overrides_runpath=no
16246 export_dynamic_flag_spec='${wl}-Blargedynsym'
16247 runpath_var=LD_RUN_PATH
16255 shlibpath_overrides_runpath=no
16256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16262 if test -d /usr/nec ;then
16264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16265 soname_spec='$libname${shared_ext}.$major'
16266 shlibpath_var=LD_LIBRARY_PATH
16270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16271 version_type=freebsd-elf
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 shlibpath_var=LD_LIBRARY_PATH
16277 hardcode_into_libs=yes
16278 if test "$with_gnu_ld" = yes; then
16279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16280 shlibpath_overrides_runpath=no
16282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16283 shlibpath_overrides_runpath=yes
16286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16290 sys_lib_dlsearch_path_spec='/usr/lib'
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 shlibpath_var=LD_LIBRARY_PATH
16304 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16305 echo "${ECHO_T}$dynamic_linker" >&6; }
16306 test "$dynamic_linker" = no && can_build_shared=no
16308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16309 if test "$GCC" = yes; then
16310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16313 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16314 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16316 if test -n "$hardcode_libdir_flag_spec" || \
16317 test -n "$runpath_var" || \
16318 test "X$hardcode_automatic" = "Xyes" ; then
16320 # We can hardcode non-existant directories.
16321 if test "$hardcode_direct" != no &&
16322 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16323 # have to relink, otherwise we might link with an installed library
16324 # when we should be linking with a yet-to-be-installed one
16325 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16326 test "$hardcode_minus_L" != no; then
16327 # Linking always hardcodes the temporary library directory.
16328 hardcode_action=relink
16330 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16331 hardcode_action=immediate
16334 # We cannot hardcode anything, or else we can only hardcode existing
16336 hardcode_action=unsupported
16338 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16339 echo "${ECHO_T}$hardcode_action" >&6; }
16341 if test "$hardcode_action" = relink; then
16342 # Fast installation is not supported
16343 enable_fast_install=no
16344 elif test "$shlibpath_overrides_runpath" = yes ||
16345 test "$enable_shared" = no; then
16346 # Fast installation is not necessary
16347 enable_fast_install=needless
16352 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16353 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16354 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16357 { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16360 # FIXME - insert some real tests, host_os isn't really good enough
16363 if test -n "$STRIP" ; then
16364 striplib="$STRIP -x"
16365 { echo "$as_me:$LINENO: result: yes" >&5
16366 echo "${ECHO_T}yes" >&6; }
16368 { echo "$as_me:$LINENO: result: no" >&5
16369 echo "${ECHO_T}no" >&6; }
16373 { echo "$as_me:$LINENO: result: no" >&5
16374 echo "${ECHO_T}no" >&6; }
16379 if test "x$enable_dlopen" != xyes; then
16380 enable_dlopen=unknown
16381 enable_dlopen_self=unknown
16382 enable_dlopen_self_static=unknown
16389 lt_cv_dlopen="load_add_on"
16391 lt_cv_dlopen_self=yes
16395 lt_cv_dlopen="LoadLibrary"
16400 lt_cv_dlopen="dlopen"
16405 # if libdl is installed we need to link against it
16406 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 ac_check_lib_save_LIBS=$LIBS
16413 cat >conftest.$ac_ext <<_ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16420 /* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (ac_try="$ac_link"
16437 case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_link") 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
16449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450 { (case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_try") 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest$ac_exeext'
16460 { (case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_try") 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_lib_dl_dlopen=yes
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_cv_lib_dl_dlopen=no
16477 rm -f core conftest.err conftest.$ac_objext \
16478 conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16481 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16482 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16483 if test $ac_cv_lib_dl_dlopen = yes; then
16484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16487 lt_cv_dlopen="dyld"
16489 lt_cv_dlopen_self=yes
16496 { echo "$as_me:$LINENO: checking for shl_load" >&5
16497 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16498 if test "${ac_cv_func_shl_load+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16509 #define shl_load innocuous_shl_load
16511 /* System header to define __stub macros and hopefully few prototypes,
16512 which can conflict with char shl_load (); below.
16513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16514 <limits.h> exists even on freestanding compilers. */
16517 # include <limits.h>
16519 # include <assert.h>
16524 /* Override any GCC internal prototype to avoid an error.
16525 Use char because int might match the return type of a GCC
16526 builtin and then its argument prototype would still apply. */
16531 /* The GNU C library defines this for functions which it implements
16532 to always fail with ENOSYS. Some functions are actually named
16533 something starting with __ and the normal name is an alias. */
16534 #if defined __stub_shl_load || defined __stub___shl_load
16541 return shl_load ();
16546 rm -f conftest.$ac_objext conftest$ac_exeext
16547 if { (ac_try="$ac_link"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_link") 2>conftest.er1
16555 grep -v '^ *+' conftest.er1 >conftest.err
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest$ac_exeext'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_func_shl_load=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_cv_func_shl_load=no
16588 rm -f core conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext conftest.$ac_ext
16591 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16592 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16593 if test $ac_cv_func_shl_load = yes; then
16594 lt_cv_dlopen="shl_load"
16596 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16597 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16598 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 ac_check_lib_save_LIBS=$LIBS
16603 cat >conftest.$ac_ext <<_ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16610 /* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16620 return shl_load ();
16625 rm -f conftest.$ac_objext conftest$ac_exeext
16626 if { (ac_try="$ac_link"
16627 case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_link") 2>conftest.er1
16634 grep -v '^ *+' conftest.er1 >conftest.err
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest$ac_exeext'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_cv_lib_dld_shl_load=yes
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_cv_lib_dld_shl_load=no
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16671 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16672 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16673 if test $ac_cv_lib_dld_shl_load = yes; then
16674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16676 { echo "$as_me:$LINENO: checking for dlopen" >&5
16677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16678 if test "${ac_cv_func_dlopen+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16689 #define dlopen innocuous_dlopen
16691 /* System header to define __stub macros and hopefully few prototypes,
16692 which can conflict with char dlopen (); below.
16693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16694 <limits.h> exists even on freestanding compilers. */
16697 # include <limits.h>
16699 # include <assert.h>
16704 /* Override any GCC internal prototype to avoid an error.
16705 Use char because int might match the return type of a GCC
16706 builtin and then its argument prototype would still apply. */
16711 /* The GNU C library defines this for functions which it implements
16712 to always fail with ENOSYS. Some functions are actually named
16713 something starting with __ and the normal name is an alias. */
16714 #if defined __stub_dlopen || defined __stub___dlopen
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (ac_try="$ac_link"
16728 case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_link") 2>conftest.er1
16735 grep -v '^ *+' conftest.er1 >conftest.err
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest$ac_exeext'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_func_dlopen=yes
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16765 ac_cv_func_dlopen=no
16768 rm -f core conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16771 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16772 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16773 if test $ac_cv_func_dlopen = yes; then
16774 lt_cv_dlopen="dlopen"
16776 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16777 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 ac_check_lib_save_LIBS=$LIBS
16783 cat >conftest.$ac_ext <<_ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16790 /* Override any GCC internal prototype to avoid an error.
16791 Use char because int might match the return type of a GCC
16792 builtin and then its argument prototype would still apply. */
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 ac_cv_lib_dl_dlopen=yes
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_cv_lib_dl_dlopen=no
16847 rm -f core conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16852 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16853 if test $ac_cv_lib_dl_dlopen = yes; then
16854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16856 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16857 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16858 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 ac_check_lib_save_LIBS=$LIBS
16862 LIBS="-lsvld $LIBS"
16863 cat >conftest.$ac_ext <<_ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16870 /* Override any GCC internal prototype to avoid an error.
16871 Use char because int might match the return type of a GCC
16872 builtin and then its argument prototype would still apply. */
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (ac_try="$ac_link"
16887 case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_link") 2>conftest.er1
16894 grep -v '^ *+' conftest.er1 >conftest.err
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest$ac_exeext'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_lib_svld_dlopen=yes
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 ac_cv_lib_svld_dlopen=no
16927 rm -f core conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16931 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16932 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16933 if test $ac_cv_lib_svld_dlopen = yes; then
16934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16936 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16937 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16938 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 ac_check_lib_save_LIBS=$LIBS
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16960 return dld_link ();
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16980 { (case "(($ac_try" in
16981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982 *) ac_try_echo=$ac_try;;
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_try") 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest$ac_exeext'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_lib_dld_dld_link=yes
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_cv_lib_dld_dld_link=no
17007 rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17012 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17013 if test $ac_cv_lib_dld_dld_link = yes; then
17014 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17035 if test "x$lt_cv_dlopen" != xno; then
17041 case $lt_cv_dlopen in
17043 save_CPPFLAGS="$CPPFLAGS"
17044 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17046 save_LDFLAGS="$LDFLAGS"
17047 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17050 LIBS="$lt_cv_dlopen_libs $LIBS"
17052 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17053 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17054 if test "${lt_cv_dlopen_self+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 if test "$cross_compiling" = yes; then :
17058 lt_cv_dlopen_self=cross
17060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17061 lt_status=$lt_dlunknown
17062 cat > conftest.$ac_ext <<EOF
17063 #line 17063 "configure"
17064 #include "confdefs.h"
17073 # define LT_DLGLOBAL RTLD_GLOBAL
17076 # define LT_DLGLOBAL DL_GLOBAL
17078 # define LT_DLGLOBAL 0
17082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17083 find out it does not work in some platform. */
17084 #ifndef LT_DLLAZY_OR_NOW
17086 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17089 # define LT_DLLAZY_OR_NOW DL_LAZY
17092 # define LT_DLLAZY_OR_NOW RTLD_NOW
17095 # define LT_DLLAZY_OR_NOW DL_NOW
17097 # define LT_DLLAZY_OR_NOW 0
17105 extern "C" void exit (int);
17108 void fnord() { int i=42;}
17111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17112 int status = $lt_dlunknown;
17116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17118 /* dlclose (self); */
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17131 (./conftest; exit; ) >&5 2>/dev/null
17133 case x$lt_status in
17134 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17135 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17136 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17139 # compilation failed
17140 lt_cv_dlopen_self=no
17147 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17148 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17150 if test "x$lt_cv_dlopen_self" = xyes; then
17151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17152 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17153 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17154 if test "${lt_cv_dlopen_self_static+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 if test "$cross_compiling" = yes; then :
17158 lt_cv_dlopen_self_static=cross
17160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17161 lt_status=$lt_dlunknown
17162 cat > conftest.$ac_ext <<EOF
17163 #line 17163 "configure"
17164 #include "confdefs.h"
17173 # define LT_DLGLOBAL RTLD_GLOBAL
17176 # define LT_DLGLOBAL DL_GLOBAL
17178 # define LT_DLGLOBAL 0
17182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17183 find out it does not work in some platform. */
17184 #ifndef LT_DLLAZY_OR_NOW
17186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17189 # define LT_DLLAZY_OR_NOW DL_LAZY
17192 # define LT_DLLAZY_OR_NOW RTLD_NOW
17195 # define LT_DLLAZY_OR_NOW DL_NOW
17197 # define LT_DLLAZY_OR_NOW 0
17205 extern "C" void exit (int);
17208 void fnord() { int i=42;}
17211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17212 int status = $lt_dlunknown;
17216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17217 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17218 /* dlclose (self); */
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17231 (./conftest; exit; ) >&5 2>/dev/null
17233 case x$lt_status in
17234 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17235 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17236 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17239 # compilation failed
17240 lt_cv_dlopen_self_static=no
17247 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17248 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17251 CPPFLAGS="$save_CPPFLAGS"
17252 LDFLAGS="$save_LDFLAGS"
17257 case $lt_cv_dlopen_self in
17258 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17259 *) enable_dlopen_self=unknown ;;
17262 case $lt_cv_dlopen_self_static in
17263 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17264 *) enable_dlopen_self_static=unknown ;;
17269 # Report which library types will actually be built
17270 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17271 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17272 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17273 echo "${ECHO_T}$can_build_shared" >&6; }
17275 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17276 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17277 test "$can_build_shared" = "no" && enable_shared=no
17279 # On AIX, shared libraries and static libraries use the same namespace, and
17280 # are all built from PIC.
17283 test "$enable_shared" = yes && enable_static=no
17284 if test -n "$RANLIB"; then
17285 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17286 postinstall_cmds='$RANLIB $lib'
17291 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17292 test "$enable_shared" = yes && enable_static=no
17296 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17297 echo "${ECHO_T}$enable_shared" >&6; }
17299 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17300 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17301 # Make sure either enable_shared or enable_static is yes.
17302 test "$enable_shared" = yes || enable_static=yes
17303 { echo "$as_me:$LINENO: result: $enable_static" >&5
17304 echo "${ECHO_T}$enable_static" >&6; }
17306 # The else clause should only fire when bootstrapping the
17307 # libtool distribution, otherwise you forgot to ship ltmain.sh
17308 # with your package, and you will get complaints that there are
17309 # no rules to generate ltmain.sh.
17310 if test -f "$ltmain"; then
17311 # See if we are running on zsh, and set the options which allow our commands through
17312 # without removal of \ escapes.
17313 if test -n "${ZSH_VERSION+set}" ; then
17314 setopt NO_GLOB_SUBST
17316 # Now quote all the things that may contain metacharacters while being
17317 # careful not to overquote the AC_SUBSTed values. We take copies of the
17318 # variables and quote the copies for generation of the libtool script.
17319 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17321 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17322 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17323 deplibs_check_method reload_flag reload_cmds need_locks \
17324 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17325 lt_cv_sys_global_symbol_to_c_name_address \
17326 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17327 old_postinstall_cmds old_postuninstall_cmds \
17331 lt_prog_compiler_wl \
17332 lt_prog_compiler_pic \
17333 lt_prog_compiler_static \
17334 lt_prog_compiler_no_builtin_flag \
17335 export_dynamic_flag_spec \
17336 thread_safe_flag_spec \
17337 whole_archive_flag_spec \
17338 enable_shared_with_static_runtimes \
17340 old_archive_from_new_cmds \
17345 compiler_lib_search_path \
17347 archive_expsym_cmds \
17349 postuninstall_cmds \
17350 old_archive_from_expsyms_cmds \
17351 allow_undefined_flag \
17352 no_undefined_flag \
17353 export_symbols_cmds \
17354 hardcode_libdir_flag_spec \
17355 hardcode_libdir_flag_spec_ld \
17356 hardcode_libdir_separator \
17357 hardcode_automatic \
17359 module_expsym_cmds \
17360 lt_cv_prog_compiler_c_o \
17362 include_expsyms; do
17365 old_archive_cmds | \
17366 old_archive_from_new_cmds | \
17368 archive_expsym_cmds | \
17370 module_expsym_cmds | \
17371 old_archive_from_expsyms_cmds | \
17372 export_symbols_cmds | \
17373 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17374 postinstall_cmds | postuninstall_cmds | \
17375 old_postinstall_cmds | old_postuninstall_cmds | \
17376 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17377 # Double-quote double-evaled strings.
17378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17387 *'\$0 --fallback-echo"')
17388 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17392 cfgfile="${ofile}T"
17393 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17395 { echo "$as_me:$LINENO: creating $ofile" >&5
17396 echo "$as_me: creating $ofile" >&6;}
17398 cat <<__EOF__ >> "$cfgfile"
17401 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17402 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17405 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17406 # Free Software Foundation, Inc.
17408 # This file is part of GNU Libtool:
17409 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17411 # This program is free software; you can redistribute it and/or modify
17412 # it under the terms of the GNU General Public License as published by
17413 # the Free Software Foundation; either version 2 of the License, or
17414 # (at your option) any later version.
17416 # This program is distributed in the hope that it will be useful, but
17417 # WITHOUT ANY WARRANTY; without even the implied warranty of
17418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17419 # General Public License for more details.
17421 # You should have received a copy of the GNU General Public License
17422 # along with this program; if not, write to the Free Software
17423 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17425 # As a special exception to the GNU General Public License, if you
17426 # distribute this file as part of a program that contains a
17427 # configuration script generated by Autoconf, you may include it under
17428 # the same distribution terms that you use for the rest of that program.
17430 # A sed program that does not truncate output.
17433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17434 Xsed="$SED -e 1s/^X//"
17436 # The HP-UX ksh and POSIX shell print the target directory to stdout
17437 # if CDPATH is set.
17438 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17440 # The names of the tagged configurations supported by this script.
17443 # ### BEGIN LIBTOOL CONFIG
17445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17447 # Shell to use when invoking shell scripts.
17450 # Whether or not to build shared libraries.
17451 build_libtool_libs=$enable_shared
17453 # Whether or not to build static libraries.
17454 build_old_libs=$enable_static
17456 # Whether or not to add -lc for building shared libraries.
17457 build_libtool_need_lc=$archive_cmds_need_lc
17459 # Whether or not to disallow shared libs when runtime libs are static
17460 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17462 # Whether or not to optimize for fast installation.
17463 fast_install=$enable_fast_install
17466 host_alias=$host_alias
17470 # The build system.
17471 build_alias=$build_alias
17475 # An echo program that does not interpret backslashes.
17480 AR_FLAGS=$lt_AR_FLAGS
17485 # LTCC compiler flags.
17486 LTCFLAGS=$lt_LTCFLAGS
17488 # A language-specific compiler.
17491 # Is the compiler the GNU C compiler?
17497 # The linker used to build libraries.
17500 # Whether we need hard or soft links.
17503 # A BSD-compatible nm program.
17506 # A symbol stripping program
17509 # Used to examine libraries when file_magic_cmd begins "file"
17510 MAGIC_CMD=$MAGIC_CMD
17512 # Used on cygwin: DLL creation program.
17515 # Used on cygwin: object dumper.
17518 # Used on cygwin: assembler.
17521 # The name of the directory that contains temporary libtool files.
17524 # How to create reloadable object files.
17525 reload_flag=$lt_reload_flag
17526 reload_cmds=$lt_reload_cmds
17528 # How to pass a linker flag through the compiler.
17529 wl=$lt_lt_prog_compiler_wl
17531 # Object file suffix (normally "o").
17532 objext="$ac_objext"
17534 # Old archive suffix (normally "a").
17537 # Shared library suffix (normally ".so").
17538 shrext_cmds='$shrext_cmds'
17540 # Executable file suffix (normally "").
17543 # Additional compiler flags for building library objects.
17544 pic_flag=$lt_lt_prog_compiler_pic
17547 # What is the maximum length of a command?
17548 max_cmd_len=$lt_cv_sys_max_cmd_len
17550 # Does compiler simultaneously support -c and -o options?
17551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17553 # Must we lock files when doing compilation?
17554 need_locks=$lt_need_locks
17556 # Do we need the lib prefix for modules?
17557 need_lib_prefix=$need_lib_prefix
17559 # Do we need a version for libraries?
17560 need_version=$need_version
17562 # Whether dlopen is supported.
17563 dlopen_support=$enable_dlopen
17565 # Whether dlopen of programs is supported.
17566 dlopen_self=$enable_dlopen_self
17568 # Whether dlopen of statically linked programs is supported.
17569 dlopen_self_static=$enable_dlopen_self_static
17571 # Compiler flag to prevent dynamic linking.
17572 link_static_flag=$lt_lt_prog_compiler_static
17574 # Compiler flag to turn off builtin functions.
17575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17577 # Compiler flag to allow reflexive dlopens.
17578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17580 # Compiler flag to generate shared objects directly from archives.
17581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17583 # Compiler flag to generate thread-safe objects.
17584 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17586 # Library versioning type.
17587 version_type=$version_type
17589 # Format of library name prefix.
17590 libname_spec=$lt_libname_spec
17592 # List of archive names. First name is the real one, the rest are links.
17593 # The last name is the one that the linker finds with -lNAME.
17594 library_names_spec=$lt_library_names_spec
17596 # The coded name of the library, if different from the real name.
17597 soname_spec=$lt_soname_spec
17599 # Commands used to build and install an old-style archive.
17601 old_archive_cmds=$lt_old_archive_cmds
17602 old_postinstall_cmds=$lt_old_postinstall_cmds
17603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17605 # Create an old-style archive from a shared archive.
17606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17608 # Create a temporary old-style archive to link instead of a shared archive.
17609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17611 # Commands used to build and install a shared archive.
17612 archive_cmds=$lt_archive_cmds
17613 archive_expsym_cmds=$lt_archive_expsym_cmds
17614 postinstall_cmds=$lt_postinstall_cmds
17615 postuninstall_cmds=$lt_postuninstall_cmds
17617 # Commands used to build a loadable module (assumed same as above if empty)
17618 module_cmds=$lt_module_cmds
17619 module_expsym_cmds=$lt_module_expsym_cmds
17621 # Commands to strip libraries.
17622 old_striplib=$lt_old_striplib
17623 striplib=$lt_striplib
17625 # Dependencies to place before the objects being linked to create a
17627 predep_objects=$lt_predep_objects
17629 # Dependencies to place after the objects being linked to create a
17631 postdep_objects=$lt_postdep_objects
17633 # Dependencies to place before the objects being linked to create a
17635 predeps=$lt_predeps
17637 # Dependencies to place after the objects being linked to create a
17639 postdeps=$lt_postdeps
17641 # The library search path used internally by the compiler when linking
17642 # a shared library.
17643 compiler_lib_search_path=$lt_compiler_lib_search_path
17645 # Method to check whether dependent libraries are shared objects.
17646 deplibs_check_method=$lt_deplibs_check_method
17648 # Command to use when deplibs_check_method == file_magic.
17649 file_magic_cmd=$lt_file_magic_cmd
17651 # Flag that allows shared libraries with undefined symbols to be built.
17652 allow_undefined_flag=$lt_allow_undefined_flag
17654 # Flag that forces no undefined symbols.
17655 no_undefined_flag=$lt_no_undefined_flag
17657 # Commands used to finish a libtool library installation in a directory.
17658 finish_cmds=$lt_finish_cmds
17660 # Same as above, but a single script fragment to be evaled but not shown.
17661 finish_eval=$lt_finish_eval
17663 # Take the output of nm and produce a listing of raw symbols and C names.
17664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17666 # Transform the output of nm in a proper C declaration
17667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17669 # Transform the output of nm in a C name address pair
17670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17672 # This is the shared library runtime path variable.
17673 runpath_var=$runpath_var
17675 # This is the shared library path variable.
17676 shlibpath_var=$shlibpath_var
17678 # Is shlibpath searched before the hard-coded library search path?
17679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17681 # How to hardcode a shared library path into an executable.
17682 hardcode_action=$hardcode_action
17684 # Whether we should hardcode library paths into libraries.
17685 hardcode_into_libs=$hardcode_into_libs
17687 # Flag to hardcode \$libdir into a binary during linking.
17688 # This must work even if \$libdir does not exist.
17689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17691 # If ld is used when linking, flag to hardcode \$libdir into
17692 # a binary during linking. This must work even if \$libdir does
17694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17696 # Whether we need a single -rpath flag with a separated argument.
17697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17700 # resulting binary.
17701 hardcode_direct=$hardcode_direct
17703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17704 # resulting binary.
17705 hardcode_minus_L=$hardcode_minus_L
17707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17708 # the resulting binary.
17709 hardcode_shlibpath_var=$hardcode_shlibpath_var
17711 # Set to yes if building a shared library automatically hardcodes DIR into the library
17712 # and all subsequent libraries and executables linked against it.
17713 hardcode_automatic=$hardcode_automatic
17715 # Variables whose values should be saved in libtool wrapper scripts and
17716 # restored at relink time.
17717 variables_saved_for_relink="$variables_saved_for_relink"
17719 # Whether libtool must link a program against all its dependency libraries.
17720 link_all_deplibs=$link_all_deplibs
17722 # Compile-time system search path for libraries
17723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17725 # Run-time system search path for libraries
17726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17728 # Fix the shell variable \$srcfile for the compiler.
17729 fix_srcfile_path="$fix_srcfile_path"
17731 # Set to yes if exported symbols are required.
17732 always_export_symbols=$always_export_symbols
17734 # The commands to list exported symbols.
17735 export_symbols_cmds=$lt_export_symbols_cmds
17737 # The commands to extract the exported symbol list from a shared archive.
17738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17740 # Symbols that should not be listed in the preloaded symbols.
17741 exclude_expsyms=$lt_exclude_expsyms
17743 # Symbols that must always be exported.
17744 include_expsyms=$lt_include_expsyms
17746 # ### END LIBTOOL CONFIG
17753 cat <<\EOF >> "$cfgfile"
17755 # AIX sometimes has problems with the GCC collect2 program. For some
17756 # reason, if we set the COLLECT_NAMES environment variable, the problems
17757 # vanish in a puff of smoke.
17758 if test "X${COLLECT_NAMES+set}" != Xset; then
17760 export COLLECT_NAMES
17766 # We use sed instead of cat because bash on DJGPP gets confused if
17767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17768 # text mode, it properly converts lines to CR/LF. This bash problem
17769 # is reportedly fixed, but why not run on old versions too?
17770 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17772 mv -f "$cfgfile" "$ofile" || \
17773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17777 # If there is no Makefile yet, we rely on a make rule to execute
17778 # `config.status --recheck' to rerun these tests and create the
17779 # libtool script then.
17780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17781 if test -f "$ltmain_in"; then
17782 test -f Makefile && make "$ltmain"
17788 ac_cpp='$CPP $CPPFLAGS'
17789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17796 # Check whether --with-tags was given.
17797 if test "${with_tags+set}" = set; then
17798 withval=$with_tags; tagnames="$withval"
17802 if test -f "$ltmain" && test -n "$tagnames"; then
17803 if test ! -f "${ofile}"; then
17804 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17805 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17808 if test -z "$LTCC"; then
17809 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17810 if test -z "$LTCC"; then
17811 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17812 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17815 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17818 if test -z "$LTCFLAGS"; then
17819 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17822 # Extract list of available tagged configurations in $ofile.
17823 # Note that this assumes the entire list is on one line.
17824 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17827 for tagname in $tagnames; do
17829 # Check whether tagname contains only valid characters
17830 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17832 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17833 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17834 { (exit 1); exit 1; }; }
17838 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17840 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17841 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17842 { (exit 1); exit 1; }; }
17845 # Update the list of available tags.
17846 if test -n "$tagname"; then
17847 echo appending configuration tag \"$tagname\" to $ofile
17851 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17852 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17853 (test "X$CXX" != "Xg++"))) ; then
17855 ac_cpp='$CXXCPP $CPPFLAGS'
17856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17863 archive_cmds_need_lc_CXX=no
17864 allow_undefined_flag_CXX=
17865 always_export_symbols_CXX=no
17866 archive_expsym_cmds_CXX=
17867 export_dynamic_flag_spec_CXX=
17868 hardcode_direct_CXX=no
17869 hardcode_libdir_flag_spec_CXX=
17870 hardcode_libdir_flag_spec_ld_CXX=
17871 hardcode_libdir_separator_CXX=
17872 hardcode_minus_L_CXX=no
17873 hardcode_shlibpath_var_CXX=unsupported
17874 hardcode_automatic_CXX=no
17876 module_expsym_cmds_CXX=
17877 link_all_deplibs_CXX=unknown
17878 old_archive_cmds_CXX=$old_archive_cmds
17879 no_undefined_flag_CXX=
17880 whole_archive_flag_spec_CXX=
17881 enable_shared_with_static_runtimes_CXX=no
17883 # Dependencies to place before and after the object being linked:
17884 predep_objects_CXX=
17885 postdep_objects_CXX=
17888 compiler_lib_search_path_CXX=
17890 # Source file extension for C++ test sources.
17893 # Object file extension for compiled C++ test sources.
17897 # Code to be used in simple compile tests
17898 lt_simple_compile_test_code="int some_variable = 0;\n"
17900 # Code to be used in simple link tests
17901 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17905 # If no C compiler was specified, use CC.
17908 # If no C compiler flags were specified, use CFLAGS.
17909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17911 # Allow CC to be a program name with arguments.
17915 # save warnings/boilerplate of simple test code
17916 ac_outfile=conftest.$ac_objext
17917 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17919 _lt_compiler_boilerplate=`cat conftest.err`
17922 ac_outfile=conftest.$ac_objext
17923 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17925 _lt_linker_boilerplate=`cat conftest.err`
17929 # Allow CC to be a program name with arguments.
17934 lt_save_with_gnu_ld=$with_gnu_ld
17935 lt_save_path_LD=$lt_cv_path_LD
17936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17939 $as_unset lt_cv_prog_gnu_ld
17941 if test -n "${lt_cv_path_LDCXX+set}"; then
17942 lt_cv_path_LD=$lt_cv_path_LDCXX
17944 $as_unset lt_cv_path_LD
17946 test -z "${LDCXX+set}" || LD=$LDCXX
17950 for cc_temp in $compiler""; do
17952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17961 # We don't want -fno-exception wen compiling C++ code, so set the
17962 # no_builtin_flag separately
17963 if test "$GXX" = yes; then
17964 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17966 lt_prog_compiler_no_builtin_flag_CXX=
17969 if test "$GXX" = yes; then
17970 # Set up default GNU C++ configuration
17973 # Check whether --with-gnu-ld was given.
17974 if test "${with_gnu_ld+set}" = set; then
17975 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17981 if test "$GCC" = yes; then
17982 # Check if gcc -print-prog-name=ld gives a path.
17983 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17984 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17987 # gcc leaves a trailing carriage return which upsets mingw
17988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17993 # Accept absolute paths.
17995 re_direlt='/[^/][^/]*/\.\./'
17996 # Canonicalize the pathname of ld
17997 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17999 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18001 test -z "$LD" && LD="$ac_prog"
18004 # If it fails, then pretend we aren't using GCC.
18008 # If it is relative, then search for the first ld in PATH.
18009 with_gnu_ld=unknown
18012 elif test "$with_gnu_ld" = yes; then
18013 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18016 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18017 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18019 if test "${lt_cv_path_LD+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18022 if test -z "$LD"; then
18023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18024 for ac_dir in $PATH; do
18026 test -z "$ac_dir" && ac_dir=.
18027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18028 lt_cv_path_LD="$ac_dir/$ac_prog"
18029 # Check to see if the program is GNU ld. I'd rather use --version,
18030 # but apparently some variants of GNU ld only accept -v.
18031 # Break only if it was the GNU/non-GNU ld that we prefer.
18032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18033 *GNU* | *'with BFD'*)
18034 test "$with_gnu_ld" != no && break
18037 test "$with_gnu_ld" != yes && break
18044 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18048 LD="$lt_cv_path_LD"
18049 if test -n "$LD"; then
18050 { echo "$as_me:$LINENO: result: $LD" >&5
18051 echo "${ECHO_T}$LD" >&6; }
18053 { echo "$as_me:$LINENO: result: no" >&5
18054 echo "${ECHO_T}no" >&6; }
18056 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18057 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18058 { (exit 1); exit 1; }; }
18059 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18060 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18065 case `$LD -v 2>&1 </dev/null` in
18066 *GNU* | *'with BFD'*)
18067 lt_cv_prog_gnu_ld=yes
18070 lt_cv_prog_gnu_ld=no
18074 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18075 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18076 with_gnu_ld=$lt_cv_prog_gnu_ld
18080 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18081 # archiving commands below assume that GNU ld is being used.
18082 if test "$with_gnu_ld" = yes; then
18083 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18084 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'
18086 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18089 # If archive_cmds runs LD, not CC, wlarc should be empty
18090 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18091 # investigate it a little bit more. (MM)
18094 # ancient GNU ld didn't support --whole-archive et. al.
18095 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18096 grep 'no-whole-archive' > /dev/null; then
18097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18099 whole_archive_flag_spec_CXX=
18105 # A generic and very simple default shared library creation
18106 # command for GNU C++ for the case where it uses the native
18107 # linker, instead of GNU ld. If possible, this setting should
18108 # overridden to take advantage of the native linker features on
18109 # the platform it is being used on.
18110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18113 # Commands to make compiler produce verbose output that lists
18114 # what "hidden" libraries, object files and flags are used when
18115 # linking a shared library.
18116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18124 # PORTME: fill in a description of your system's C++ link characteristics
18125 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18130 # FIXME: insert proper C++ library support
18134 if test "$host_cpu" = ia64; then
18135 # On IA64, the linker does run time linking by default, so we don't
18136 # have to do anything special.
18137 aix_use_runtimelinking=no
18138 exp_sym_flag='-Bexport'
18141 aix_use_runtimelinking=no
18143 # Test if we are trying to use run time linking or normal
18144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18145 # need to do runtime linking.
18146 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18147 for ld_flag in $LDFLAGS; do
18150 aix_use_runtimelinking=yes
18158 exp_sym_flag='-bexport'
18159 no_entry_flag='-bnoentry'
18162 # When large executables or shared objects are built, AIX ld can
18163 # have problems creating the table of contents. If linking a library
18164 # or program results in "error TOC overflow" add -mminimal-toc to
18165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18168 archive_cmds_CXX=''
18169 hardcode_direct_CXX=yes
18170 hardcode_libdir_separator_CXX=':'
18171 link_all_deplibs_CXX=yes
18173 if test "$GXX" = yes; then
18174 case $host_os in aix4.[012]|aix4.[012].*)
18175 # We only want to do this on AIX 4.2 and lower, the check
18176 # below for broken collect2 doesn't work under 4.3+
18177 collect2name=`${CC} -print-prog-name=collect2`
18178 if test -f "$collect2name" && \
18179 strings "$collect2name" | grep resolve_lib_name >/dev/null
18181 # We have reworked collect2
18182 hardcode_direct_CXX=yes
18184 # We have old collect2
18185 hardcode_direct_CXX=unsupported
18186 # It fails to find uninstalled libraries when the uninstalled
18187 # path is not listed in the libpath. Setting hardcode_minus_L
18188 # to unsupported forces relinking
18189 hardcode_minus_L_CXX=yes
18190 hardcode_libdir_flag_spec_CXX='-L$libdir'
18191 hardcode_libdir_separator_CXX=
18195 shared_flag='-shared'
18196 if test "$aix_use_runtimelinking" = yes; then
18197 shared_flag="$shared_flag "'${wl}-G'
18201 if test "$host_cpu" = ia64; then
18202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18203 # chokes on -Wl,-G. The following line is correct:
18206 if test "$aix_use_runtimelinking" = yes; then
18207 shared_flag='${wl}-G'
18209 shared_flag='${wl}-bM:SRE'
18214 # It seems that -bexpall does not export symbols beginning with
18215 # underscore (_), so it is better to generate a list of symbols to export.
18216 always_export_symbols_CXX=yes
18217 if test "$aix_use_runtimelinking" = yes; then
18218 # Warning - without using the other runtime loading flags (-brtl),
18219 # -berok will link without error, but may produce a broken library.
18220 allow_undefined_flag_CXX='-berok'
18221 # Determine the default libpath from the value encoded in an empty executable.
18222 cat >conftest.$ac_ext <<_ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_link") 2>conftest.er1
18246 grep -v '^ *+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18252 { (case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_try") 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18274 # Check for a 64-bit object if we didn't find anything.
18275 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; }
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18284 rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18290 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"
18292 if test "$host_cpu" = ia64; then
18293 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18294 allow_undefined_flag_CXX="-z nodefs"
18295 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"
18297 # Determine the default libpath from the value encoded in an empty executable.
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18350 # Check for a 64-bit object if we didn't find anything.
18351 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; }
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18360 rm -f core conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18365 # Warning - without using the other run time loading flags,
18366 # -berok will link without error, but may produce a broken library.
18367 no_undefined_flag_CXX=' ${wl}-bernotok'
18368 allow_undefined_flag_CXX=' ${wl}-berok'
18369 # Exported symbols can be pulled into shared objects from archives
18370 whole_archive_flag_spec_CXX='$convenience'
18371 archive_cmds_need_lc_CXX=yes
18372 # This is similar to how AIX traditionally builds its shared libraries.
18373 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'
18379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18380 allow_undefined_flag_CXX=unsupported
18381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18382 # support --undefined. This deserves some investigation. FIXME
18383 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18390 case $cc_basename in
18392 # FIXME: insert proper C++ library support
18398 cygwin* | mingw* | pw32*)
18399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18400 # as there is no search path for DLLs.
18401 hardcode_libdir_flag_spec_CXX='-L$libdir'
18402 allow_undefined_flag_CXX=unsupported
18403 always_export_symbols_CXX=no
18404 enable_shared_with_static_runtimes_CXX=yes
18406 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18407 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'
18408 # If the export-symbols file already is a .def file (1st line
18409 # is EXPORTS), use it as is; otherwise, prepend...
18410 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18411 cp $export_symbols $output_objdir/$soname.def;
18413 echo EXPORTS > $output_objdir/$soname.def;
18414 cat $export_symbols >> $output_objdir/$soname.def;
18416 $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'
18421 darwin* | rhapsody*)
18423 rhapsody* | darwin1.[012])
18424 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18427 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18428 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18430 case ${MACOSX_DEPLOYMENT_TARGET} in
18432 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18435 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18441 archive_cmds_need_lc_CXX=no
18442 hardcode_direct_CXX=no
18443 hardcode_automatic_CXX=yes
18444 hardcode_shlibpath_var_CXX=unsupported
18445 whole_archive_flag_spec_CXX=''
18446 link_all_deplibs_CXX=yes
18448 if test "$GXX" = yes ; then
18449 lt_int_apple_cc_single_mod=no
18450 output_verbose_link_cmd='echo'
18451 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18452 lt_int_apple_cc_single_mod=yes
18454 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18455 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18457 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'
18459 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18460 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18461 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18462 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}'
18464 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}'
18466 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}'
18468 case $cc_basename in
18470 output_verbose_link_cmd='echo'
18471 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'
18472 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18473 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18474 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}'
18475 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}'
18485 case $cc_basename in
18487 # FIXME: insert proper C++ library support
18491 # Green Hills C++ Compiler
18492 # FIXME: insert proper C++ library support
18496 # FIXME: insert proper C++ library support
18502 # C++ shared libraries reported to be fairly broken before switch to ELF
18506 archive_cmds_need_lc_CXX=no
18508 freebsd* | kfreebsd*-gnu | dragonfly*)
18509 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18517 hardcode_libdir_separator_CXX=:
18518 export_dynamic_flag_spec_CXX='${wl}-E'
18519 hardcode_direct_CXX=yes
18520 hardcode_minus_L_CXX=yes # Not in the search PATH,
18521 # but as the default
18522 # location of the library.
18524 case $cc_basename in
18526 # FIXME: insert proper C++ library support
18530 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'
18531 # Commands to make compiler produce verbose output that lists
18532 # what "hidden" libraries, object files and flags are used when
18533 # linking a shared library.
18535 # There doesn't appear to be a way to prevent this compiler from
18536 # explicitly linking system object files so we need to strip them
18537 # from the output so that they don't get included in the library
18539 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'
18542 if test "$GXX" = yes; then
18543 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'
18545 # FIXME: insert proper C++ library support
18552 if test $with_gnu_ld = no; then
18553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18554 hardcode_libdir_separator_CXX=:
18558 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18561 export_dynamic_flag_spec_CXX='${wl}-E'
18567 hardcode_direct_CXX=no
18568 hardcode_shlibpath_var_CXX=no
18571 hardcode_direct_CXX=yes
18572 hardcode_minus_L_CXX=yes # Not in the search PATH,
18573 # but as the default
18574 # location of the library.
18578 case $cc_basename in
18580 # FIXME: insert proper C++ library support
18586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18595 # Commands to make compiler produce verbose output that lists
18596 # what "hidden" libraries, object files and flags are used when
18597 # linking a shared library.
18599 # There doesn't appear to be a way to prevent this compiler from
18600 # explicitly linking system object files so we need to strip them
18601 # from the output so that they don't get included in the library
18603 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'
18606 if test "$GXX" = yes; then
18607 if test $with_gnu_ld = no; then
18610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18613 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18616 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'
18621 # FIXME: insert proper C++ library support
18628 hardcode_direct_CXX=no
18629 hardcode_shlibpath_var_CXX=no
18630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18631 export_dynamic_flag_spec_CXX='${wl}-E'
18632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18633 # Instead, shared libraries are loaded at an image base (0x10000000 by
18634 # default) and relocated if they conflict, which is a slow very memory
18635 # consuming and fragmenting process. To avoid this, we pick a random,
18636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18638 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'
18639 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'
18642 case $cc_basename in
18645 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'
18647 # Archives containing C++ object files must be created using
18648 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18649 # necessary to make sure instantiated templates are included
18651 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18654 if test "$GXX" = yes; then
18655 if test "$with_gnu_ld" = no; then
18656 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'
18658 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'
18661 link_all_deplibs_CXX=yes
18664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18665 hardcode_libdir_separator_CXX=:
18668 case $cc_basename in
18670 # Kuck and Associates, Inc. (KAI) C++ Compiler
18672 # KCC will only create a shared library if the output file
18673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18674 # to its proper name (with version) after linking.
18675 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'
18676 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'
18677 # Commands to make compiler produce verbose output that lists
18678 # what "hidden" libraries, object files and flags are used when
18679 # linking a shared library.
18681 # There doesn't appear to be a way to prevent this compiler from
18682 # explicitly linking system object files so we need to strip them
18683 # from the output so that they don't get included in the library
18685 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'
18687 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18690 # Archives containing C++ object files must be created using
18691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18697 # version 8.0 and above of icpc choke on multiply defined symbols
18698 # if we add $predep_objects and $postdep_objects, however 7.1 and
18699 # earlier do not add the objects themselves.
18700 case `$CC -V 2>&1` in
18702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 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'
18705 *) # Version 8.0 or newer
18708 ia64*) tmp_idyn=' -i_dynamic';;
18710 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18711 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'
18714 archive_cmds_need_lc_CXX=no
18715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18717 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18720 # Portland Group C++ compiler
18721 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18722 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'
18724 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18726 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'
18730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18731 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'
18733 runpath_var=LD_RUN_PATH
18734 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18735 hardcode_libdir_separator_CXX=:
18737 # Commands to make compiler produce verbose output that lists
18738 # what "hidden" libraries, object files and flags are used when
18739 # linking a shared library.
18741 # There doesn't appear to be a way to prevent this compiler from
18742 # explicitly linking system object files so we need to strip them
18743 # from the output so that they don't get included in the library
18745 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'
18750 # FIXME: insert proper C++ library support
18754 # FIXME: insert proper C++ library support
18758 case $cc_basename in
18760 # FIXME: insert proper C++ library support
18764 # FIXME: insert proper C++ library support
18770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18771 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18773 hardcode_libdir_flag_spec_CXX='-R$libdir'
18774 hardcode_direct_CXX=yes
18775 hardcode_shlibpath_var_CXX=no
18777 # Workaround some broken pre-1.5 toolchains
18778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18781 # C++ shared libraries are fairly broken
18785 hardcode_direct_CXX=yes
18786 hardcode_shlibpath_var_CXX=no
18787 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18790 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18791 export_dynamic_flag_spec_CXX='${wl}-E'
18792 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18794 output_verbose_link_cmd='echo'
18797 case $cc_basename in
18799 # Kuck and Associates, Inc. (KAI) C++ Compiler
18801 # KCC will only create a shared library if the output file
18802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18803 # to its proper name (with version) after linking.
18804 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'
18806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18807 hardcode_libdir_separator_CXX=:
18809 # Archives containing C++ object files must be created using
18810 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18815 # Rational C++ 2.4.1
18816 # FIXME: insert proper C++ library support
18820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18821 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'
18823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18824 hardcode_libdir_separator_CXX=:
18826 # Commands to make compiler produce verbose output that lists
18827 # what "hidden" libraries, object files and flags are used when
18828 # linking a shared library.
18830 # There doesn't appear to be a way to prevent this compiler from
18831 # explicitly linking system object files so we need to strip them
18832 # from the output so that they don't get included in the library
18834 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'
18837 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18838 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18839 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'
18841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18842 hardcode_libdir_separator_CXX=:
18844 # Commands to make compiler produce verbose output that lists
18845 # what "hidden" libraries, object files and flags are used when
18846 # linking a shared library.
18847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18850 # FIXME: insert proper C++ library support
18857 case $cc_basename in
18859 # Kuck and Associates, Inc. (KAI) C++ Compiler
18861 # KCC will only create a shared library if the output file
18862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18863 # to its proper name (with version) after linking.
18864 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'
18866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18867 hardcode_libdir_separator_CXX=:
18869 # Archives containing C++ object files must be created using
18870 # the KAI C++ compiler.
18871 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18874 # Rational C++ 2.4.1
18875 # FIXME: insert proper C++ library support
18879 allow_undefined_flag_CXX=' -expect_unresolved \*'
18880 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'
18881 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18882 echo "-hidden">> $lib.exp~
18883 $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~
18886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18887 hardcode_libdir_separator_CXX=:
18889 # Commands to make compiler produce verbose output that lists
18890 # what "hidden" libraries, object files and flags are used when
18891 # linking a shared library.
18893 # There doesn't appear to be a way to prevent this compiler from
18894 # explicitly linking system object files so we need to strip them
18895 # from the output so that they don't get included in the library
18897 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'
18900 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18901 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18902 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'
18904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18905 hardcode_libdir_separator_CXX=:
18907 # Commands to make compiler produce verbose output that lists
18908 # what "hidden" libraries, object files and flags are used when
18909 # linking a shared library.
18910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18913 # FIXME: insert proper C++ library support
18920 # FIXME: insert proper C++ library support
18924 case $cc_basename in
18927 # FIXME: insert proper C++ library support
18932 # FIXME: insert proper C++ library support
18936 # FIXME: insert proper C++ library support
18942 case $cc_basename in
18944 # Sun C++ 4.2, 5.x and Centerline C++
18945 archive_cmds_need_lc_CXX=yes
18946 no_undefined_flag_CXX=' -zdefs'
18947 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18948 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18949 $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'
18951 hardcode_libdir_flag_spec_CXX='-R$libdir'
18952 hardcode_shlibpath_var_CXX=no
18954 solaris2.[0-5] | solaris2.[0-5].*) ;;
18956 # The C++ compiler is used as linker so we must use $wl
18957 # flag to pass the commands to the underlying system
18958 # linker. We must also pass each convience library through
18959 # to the system linker between allextract/defaultextract.
18960 # The C++ compiler will combine linker options so we
18961 # cannot just pass the convience library names through
18963 # Supported since Solaris 2.6 (maybe 2.5.1?)
18964 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'
18967 link_all_deplibs_CXX=yes
18969 output_verbose_link_cmd='echo'
18971 # Archives containing C++ object files must be created using
18972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18973 # necessary to make sure instantiated templates are included
18975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18978 # Green Hills C++ Compiler
18979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18981 # The C++ compiler must be used to create the archive.
18982 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18985 # GNU C++ compiler with Solaris linker
18986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18987 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18988 if $CC --version | grep -v '^2\.7' > /dev/null; then
18989 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18991 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18993 # Commands to make compiler produce verbose output that lists
18994 # what "hidden" libraries, object files and flags are used when
18995 # linking a shared library.
18996 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18998 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19000 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19002 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19004 # Commands to make compiler produce verbose output that lists
19005 # what "hidden" libraries, object files and flags are used when
19006 # linking a shared library.
19007 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19010 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19015 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19016 no_undefined_flag_CXX='${wl}-z,text'
19017 archive_cmds_need_lc_CXX=no
19018 hardcode_shlibpath_var_CXX=no
19019 runpath_var='LD_RUN_PATH'
19021 case $cc_basename in
19023 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19024 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19027 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19028 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19032 sysv5* | sco3.2v5* | sco5v6*)
19033 # Note: We can NOT use -z defs as we might desire, because we do not
19034 # link with -lc, and that would cause any symbols used from libc to
19035 # always be unresolved, which means just about no library would
19036 # ever link correctly. If we're not using GNU ld we use -z text
19037 # though, which does catch some bad symbols but isn't as heavy-handed
19039 # For security reasons, it is highly recommended that you always
19040 # use absolute paths for naming shared libraries, and exclude the
19041 # DT_RUNPATH tag from executables and libraries. But doing so
19042 # requires that you compile everything twice, which is a pain.
19043 # So that behaviour is only enabled if SCOABSPATH is set to a
19044 # non-empty value in the environment. Most likely only useful for
19045 # creating official distributions of packages.
19046 # This is a hack until libtool officially supports absolute path
19047 # names for shared libraries.
19048 no_undefined_flag_CXX='${wl}-z,text'
19049 allow_undefined_flag_CXX='${wl}-z,nodefs'
19050 archive_cmds_need_lc_CXX=no
19051 hardcode_shlibpath_var_CXX=no
19052 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19053 hardcode_libdir_separator_CXX=':'
19054 link_all_deplibs_CXX=yes
19055 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19056 runpath_var='LD_RUN_PATH'
19058 case $cc_basename in
19060 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19064 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19070 case $cc_basename in
19072 # NonStop-UX NCC 3.20
19073 # FIXME: insert proper C++ library support
19077 # FIXME: insert proper C++ library support
19083 # FIXME: insert proper C++ library support
19087 # FIXME: insert proper C++ library support
19091 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19092 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19093 test "$ld_shlibs_CXX" = no && can_build_shared=no
19099 cat > conftest.$ac_ext <<EOF
19103 Foo (void) { a = 0; }
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; then
19114 # Parse the compiler output and extract the necessary
19115 # objects, libraries and library flags.
19117 # Sentinel used to keep track of whether or not we are before
19118 # the conftest object file.
19119 pre_test_object_deps_done=no
19121 # The `*' in the case matches for architectures that use `case' in
19122 # $output_verbose_cmd can trigger glob expansion during the loop
19123 # eval without this substitution.
19124 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19126 for p in `eval $output_verbose_link_cmd`; do
19130 # Some compilers place space between "-{L,R}" and the path.
19131 # Remove the space.
19132 if test $p = "-L" \
19133 || test $p = "-R"; then
19140 if test "$pre_test_object_deps_done" = no; then
19143 # Internal compiler library paths should come after those
19144 # provided the user. The postdeps already come after the
19145 # user supplied libs so there is no need to process them.
19146 if test -z "$compiler_lib_search_path_CXX"; then
19147 compiler_lib_search_path_CXX="${prev}${p}"
19149 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19152 # The "-l" case would never come before the object being
19153 # linked, so don't bother handling this case.
19156 if test -z "$postdeps_CXX"; then
19157 postdeps_CXX="${prev}${p}"
19159 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19165 # This assumes that the test object file only shows up
19166 # once in the compiler output.
19167 if test "$p" = "conftest.$objext"; then
19168 pre_test_object_deps_done=yes
19172 if test "$pre_test_object_deps_done" = no; then
19173 if test -z "$predep_objects_CXX"; then
19174 predep_objects_CXX="$p"
19176 predep_objects_CXX="$predep_objects_CXX $p"
19179 if test -z "$postdep_objects_CXX"; then
19180 postdep_objects_CXX="$p"
19182 postdep_objects_CXX="$postdep_objects_CXX $p"
19187 *) ;; # Ignore the rest.
19195 echo "libtool.m4: error: problem compiling CXX test program"
19198 $rm -f confest.$objext
19200 # PORTME: override above test on systems where it is broken
19203 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19204 # hack all around it, let's just trust "g++" to DTRT.
19205 predep_objects_CXX=
19206 postdep_objects_CXX=
19211 case $cc_basename in
19213 # Adding this requires a known-good setup of shared libraries for
19214 # Sun compiler versions before 5.6, else PIC objects from an old
19215 # archive will be linked into the output, leading to subtle bugs.
19216 postdeps_CXX='-lCstd -lCrun'
19223 case " $postdeps_CXX " in
19224 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19227 lt_prog_compiler_wl_CXX=
19228 lt_prog_compiler_pic_CXX=
19229 lt_prog_compiler_static_CXX=
19231 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19232 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19234 # C++ specific cases for pic, static, wl, etc.
19235 if test "$GXX" = yes; then
19236 lt_prog_compiler_wl_CXX='-Wl,'
19237 lt_prog_compiler_static_CXX='-static'
19241 # All AIX code is PIC.
19242 if test "$host_cpu" = ia64; then
19243 # AIX 5 now supports IA64 processor
19244 lt_prog_compiler_static_CXX='-Bstatic'
19248 # FIXME: we need at least 68020 code to build shared libraries, but
19249 # adding the `-m68020' flag to GCC prevents building anything better,
19251 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19254 # PIC is the default for these OSes.
19256 mingw* | os2* | pw32*)
19257 # This hack is so that the source file can tell whether it is being
19258 # built for inclusion in a dll (and should export symbols for example).
19259 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19261 darwin* | rhapsody*)
19262 # PIC is the default on this platform
19263 # Common symbols not allowed in MH_DYLIB files
19264 lt_prog_compiler_pic_CXX='-fno-common'
19267 # DJGPP does not support shared libraries at all
19268 lt_prog_compiler_pic_CXX=
19271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19272 # Instead, we relocate shared libraries at runtime.
19275 if test -d /usr/nec; then
19276 lt_prog_compiler_pic_CXX=-Kconform_pic
19280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19281 # not for PA HP-UX.
19286 lt_prog_compiler_pic_CXX='-fPIC'
19291 lt_prog_compiler_pic_CXX='-fPIC'
19297 # All AIX code is PIC.
19298 if test "$host_cpu" = ia64; then
19299 # AIX 5 now supports IA64 processor
19300 lt_prog_compiler_static_CXX='-Bstatic'
19302 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19306 case $cc_basename in
19308 # Green Hills C++ Compiler
19309 # _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"
19314 # PIC is the default on this platform
19315 # Common symbols not allowed in MH_DYLIB files
19316 case $cc_basename in
19318 lt_prog_compiler_pic_CXX='-qnocommon'
19319 lt_prog_compiler_wl_CXX='-Wl,'
19324 case $cc_basename in
19326 lt_prog_compiler_pic_CXX='-KPIC'
19329 # Green Hills C++ Compiler
19330 lt_prog_compiler_pic_CXX='-pic'
19336 freebsd* | kfreebsd*-gnu | dragonfly*)
19337 # FreeBSD uses GNU C++
19339 hpux9* | hpux10* | hpux11*)
19340 case $cc_basename in
19342 lt_prog_compiler_wl_CXX='-Wl,'
19343 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19344 if test "$host_cpu" != ia64; then
19345 lt_prog_compiler_pic_CXX='+Z'
19349 lt_prog_compiler_wl_CXX='-Wl,'
19350 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19356 lt_prog_compiler_pic_CXX='+Z'
19365 # This is c89, which is MS Visual C++ (no shared libs)
19366 # Anyone wants to do a port?
19368 irix5* | irix6* | nonstopux*)
19369 case $cc_basename in
19371 lt_prog_compiler_wl_CXX='-Wl,'
19372 lt_prog_compiler_static_CXX='-non_shared'
19373 # CC pic flag -KPIC is the default.
19380 case $cc_basename in
19383 lt_prog_compiler_wl_CXX='--backend -Wl,'
19384 lt_prog_compiler_pic_CXX='-fPIC'
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 lt_prog_compiler_pic_CXX='-KPIC'
19390 lt_prog_compiler_static_CXX='-static'
19393 # Portland Group C++ compiler.
19394 lt_prog_compiler_wl_CXX='-Wl,'
19395 lt_prog_compiler_pic_CXX='-fpic'
19396 lt_prog_compiler_static_CXX='-Bstatic'
19400 # Make sure the PIC flag is empty. It appears that all Alpha
19401 # Linux and Compaq Tru64 Unix objects are PIC.
19402 lt_prog_compiler_pic_CXX=
19403 lt_prog_compiler_static_CXX='-non_shared'
19414 case $cc_basename in
19416 lt_prog_compiler_pic_CXX='-W c,exportall'
19424 osf3* | osf4* | osf5*)
19425 case $cc_basename in
19427 lt_prog_compiler_wl_CXX='--backend -Wl,'
19430 # Rational C++ 2.4.1
19431 lt_prog_compiler_pic_CXX='-pic'
19434 # Digital/Compaq C++
19435 lt_prog_compiler_wl_CXX='-Wl,'
19436 # Make sure the PIC flag is empty. It appears that all Alpha
19437 # Linux and Compaq Tru64 Unix objects are PIC.
19438 lt_prog_compiler_pic_CXX=
19439 lt_prog_compiler_static_CXX='-non_shared'
19448 case $cc_basename in
19450 # Sun C++ 4.2, 5.x and Centerline C++
19451 lt_prog_compiler_pic_CXX='-KPIC'
19452 lt_prog_compiler_static_CXX='-Bstatic'
19453 lt_prog_compiler_wl_CXX='-Qoption ld '
19456 # Green Hills C++ Compiler
19457 lt_prog_compiler_pic_CXX='-PIC'
19464 case $cc_basename in
19467 lt_prog_compiler_pic_CXX='-pic'
19468 lt_prog_compiler_static_CXX='-Bstatic'
19472 lt_prog_compiler_pic_CXX='-pic'
19479 case $cc_basename in
19481 # NonStop-UX NCC 3.20
19482 lt_prog_compiler_pic_CXX='-KPIC'
19488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19489 case $cc_basename in
19491 lt_prog_compiler_wl_CXX='-Wl,'
19492 lt_prog_compiler_pic_CXX='-KPIC'
19493 lt_prog_compiler_static_CXX='-Bstatic'
19500 lt_prog_compiler_can_build_shared_CXX=no
19505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19506 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19509 # Check to make sure the PIC flag actually works.
19511 if test -n "$lt_prog_compiler_pic_CXX"; then
19513 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19514 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19515 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 lt_prog_compiler_pic_works_CXX=no
19519 ac_outfile=conftest.$ac_objext
19520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19521 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 # The option is referenced via a variable to avoid confusing sed.
19527 lt_compile=`echo "$ac_compile" | $SED \
19528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19530 -e 's:$: $lt_compiler_flag:'`
19531 (eval echo "\"\$as_me:19531: $lt_compile\"" >&5)
19532 (eval "$lt_compile" 2>conftest.err)
19534 cat conftest.err >&5
19535 echo "$as_me:19535: \$? = $ac_status" >&5
19536 if (exit $ac_status) && test -s "$ac_outfile"; then
19537 # The compiler can only warn and ignore the option if not recognized
19538 # So say no if there are warnings other than the usual output.
19539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19542 lt_prog_compiler_pic_works_CXX=yes
19548 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19549 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19551 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19552 case $lt_prog_compiler_pic_CXX in
19554 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19557 lt_prog_compiler_pic_CXX=
19558 lt_prog_compiler_can_build_shared_CXX=no
19563 # For platforms which do not support PIC, -DPIC is meaningless:
19565 lt_prog_compiler_pic_CXX=
19568 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19573 # Check to make sure the static flag actually works.
19575 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19576 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19577 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19578 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 lt_prog_compiler_static_works_CXX=no
19582 save_LDFLAGS="$LDFLAGS"
19583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19584 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19586 # The linker can only warn and ignore the option if not recognized
19587 # So say no if there are warnings
19588 if test -s conftest.err; then
19589 # Append any errors to the config.log.
19590 cat conftest.err 1>&5
19591 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19593 if diff conftest.exp conftest.er2 >/dev/null; then
19594 lt_prog_compiler_static_works_CXX=yes
19597 lt_prog_compiler_static_works_CXX=yes
19601 LDFLAGS="$save_LDFLAGS"
19604 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19605 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19607 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19610 lt_prog_compiler_static_CXX=
19614 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19616 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 lt_cv_prog_compiler_c_o_CXX=no
19620 $rm -r conftest 2>/dev/null
19624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19626 lt_compiler_flag="-o out/conftest2.$ac_objext"
19627 # Insert the option either (1) after the last *FLAGS variable, or
19628 # (2) before a word containing "conftest.", or (3) at the end.
19629 # Note that $ac_compile itself does not contain backslashes and begins
19630 # with a dollar sign (not a hyphen), so the echo should work correctly.
19631 lt_compile=`echo "$ac_compile" | $SED \
19632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19634 -e 's:$: $lt_compiler_flag:'`
19635 (eval echo "\"\$as_me:19635: $lt_compile\"" >&5)
19636 (eval "$lt_compile" 2>out/conftest.err)
19638 cat out/conftest.err >&5
19639 echo "$as_me:19639: \$? = $ac_status" >&5
19640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19642 # The compiler can only warn and ignore the option if not recognized
19643 # So say no if there are warnings
19644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19647 lt_cv_prog_compiler_c_o_CXX=yes
19652 # SGI C++ compiler will create directory out/ii_files/ for
19653 # template instantiation
19654 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19655 $rm out/* && rmdir out
19661 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19662 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19665 hard_links="nottested"
19666 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19667 # do not overwrite the value of need_locks provided by the user
19668 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19669 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19674 ln conftest.a conftest.b 2>&5 || hard_links=no
19675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19676 { echo "$as_me:$LINENO: result: $hard_links" >&5
19677 echo "${ECHO_T}$hard_links" >&6; }
19678 if test "$hard_links" = no; then
19679 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19680 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19687 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19688 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19693 # If we're using GNU nm, then we don't want the "-C" option.
19694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19695 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19696 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'
19698 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'
19702 export_symbols_cmds_CXX="$ltdll_cmds"
19705 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'
19708 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19712 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19713 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19714 test "$ld_shlibs_CXX" = no && can_build_shared=no
19717 # Do we need to explicitly link libc?
19719 case "x$archive_cmds_need_lc_CXX" in
19721 # Assume -lc should be added
19722 archive_cmds_need_lc_CXX=yes
19724 if test "$enable_shared" = yes && test "$GCC" = yes; then
19725 case $archive_cmds_CXX in
19727 # FIXME: we may have to deal with multi-command sequences.
19730 # Test whether the compiler implicitly links with -lc since on some
19731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19732 # to ld, don't add -lc before -lgcc.
19733 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19739 (eval $ac_compile) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } 2>conftest.err; then
19745 libobjs=conftest.$ac_objext
19747 wl=$lt_prog_compiler_wl_CXX
19748 pic_flag=$lt_prog_compiler_pic_CXX
19754 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19755 allow_undefined_flag_CXX=
19756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19757 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }
19762 archive_cmds_need_lc_CXX=no
19764 archive_cmds_need_lc_CXX=yes
19766 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19768 cat conftest.err 1>&5
19771 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19772 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19779 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19781 library_names_spec=
19782 libname_spec='lib$name'
19786 postuninstall_cmds=
19790 shlibpath_overrides_runpath=unknown
19792 dynamic_linker="$host_os ld.so"
19793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19794 if test "$GCC" = yes; then
19795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19797 # if the path contains ";" then we assume it to be the separator
19798 # otherwise default to the standard path separator (i.e. ":") - it is
19799 # assumed that no part of a normal pathname contains ";" but that should
19800 # okay in the real world where ";" in dirpaths is itself problematic.
19801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19808 need_lib_prefix=unknown
19809 hardcode_into_libs=no
19811 # when you set need_version to no, make sure it does not cause -set_version
19812 # flags to be left without arguments
19813 need_version=unknown
19818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19819 shlibpath_var=LIBPATH
19821 # AIX 3 has no versioning support, so we append a major version to the name.
19822 soname_spec='${libname}${release}${shared_ext}$major'
19829 hardcode_into_libs=yes
19830 if test "$host_cpu" = ia64; then
19831 # AIX 5 supports IA64
19832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19833 shlibpath_var=LD_LIBRARY_PATH
19835 # With GCC up to 2.95.x, collect2 would create an import file
19836 # for dependence libraries. The import file would start with
19837 # the line `#! .'. This would cause the generated library to
19838 # depend on `.', always an invalid library. This was fixed in
19839 # development snapshots of GCC prior to 3.0.
19841 aix4 | aix4.[01] | aix4.[01].*)
19842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19847 can_build_shared=no
19851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19852 # soname into executable. Probably we can add versioning support to
19853 # collect2, so additional links can be useful in future.
19854 if test "$aix_use_runtimelinking" = yes; then
19855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19856 # instead of lib<name>.a to let people know that these are not
19857 # typical AIX shared libraries.
19858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860 # We preserve .a as extension for shared libraries through AIX4.2
19861 # and later when we are not doing run time linking.
19862 library_names_spec='${libname}${release}.a $libname.a'
19863 soname_spec='${libname}${release}${shared_ext}$major'
19865 shlibpath_var=LIBPATH
19870 library_names_spec='$libname.ixlibrary $libname.a'
19871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19872 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'
19876 library_names_spec='${libname}${shared_ext}'
19877 dynamic_linker="$host_os ld.so"
19878 shlibpath_var=LIBRARY_PATH
19884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19890 # the default ld.so.conf also contains /usr/contrib/lib and
19891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19892 # libtool to hard-code these into programs
19895 cygwin* | mingw* | pw32*)
19896 version_type=windows
19901 case $GCC,$host_os in
19902 yes,cygwin* | yes,mingw* | yes,pw32*)
19903 library_names_spec='$libname.dll.a'
19904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19905 postinstall_cmds='base_file=`basename \${file}`~
19906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19907 dldir=$destdir/`dirname \$dlpath`~
19908 test -d \$dldir || mkdir -p \$dldir~
19909 $install_prog $dir/$dlname \$dldir/$dlname~
19910 chmod a+x \$dldir/$dlname'
19911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19912 dlpath=$dir/\$dldll~
19914 shlibpath_overrides_runpath=yes
19918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19923 # MinGW DLLs use traditional 'lib' prefix
19924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19927 # It is most probably a Windows format PATH printed by
19928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19929 # path with ; separators, and with drive letters. We can handle the
19930 # drive letters (cygwin fileutils understands them), so leave them,
19931 # especially as we might pass files found there to a mingw objdump,
19932 # which wouldn't understand a cygwinified path. Ahh.
19933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19939 # pw32 DLLs use 'pw' prefix rather than 'lib'
19940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19949 dynamic_linker='Win32 ld.exe'
19950 # FIXME: first we should search . and the directory the executable is in
19954 darwin* | rhapsody*)
19955 dynamic_linker="$host_os dyld"
19956 version_type=darwin
19959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19960 soname_spec='${libname}${release}${major}$shared_ext'
19961 shlibpath_overrides_runpath=yes
19962 shlibpath_var=DYLD_LIBRARY_PATH
19963 shrext_cmds='.dylib'
19964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19965 if test "$GCC" = yes; then
19966 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"`
19968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19978 soname_spec='${libname}${release}${shared_ext}$major'
19979 shlibpath_var=LD_LIBRARY_PATH
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 shlibpath_var=LD_LIBRARY_PATH
19993 shlibpath_overrides_runpath=no
19994 hardcode_into_libs=yes
19995 dynamic_linker='GNU ld.so'
19998 freebsd* | dragonfly*)
19999 # DragonFly does not have aout. When/if they implement a new
20000 # versioning mechanism, adjust this.
20001 if test -x /usr/bin/objformat; then
20002 objformat=`/usr/bin/objformat`
20005 freebsd[123]*) objformat=aout ;;
20006 *) objformat=elf ;;
20009 version_type=freebsd-$objformat
20010 case $version_type in
20012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20021 shlibpath_var=LD_LIBRARY_PATH
20024 shlibpath_overrides_runpath=yes
20026 freebsd3.[01]* | freebsdelf3.[01]*)
20027 shlibpath_overrides_runpath=yes
20028 hardcode_into_libs=yes
20030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20032 shlibpath_overrides_runpath=no
20033 hardcode_into_libs=yes
20035 freebsd*) # from 4.6 on
20036 shlibpath_overrides_runpath=yes
20037 hardcode_into_libs=yes
20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 shlibpath_var=LD_LIBRARY_PATH
20049 hardcode_into_libs=yes
20052 hpux9* | hpux10* | hpux11*)
20053 # Give a soname corresponding to the major version so that dld.sl refuses to
20054 # link against other versions.
20061 hardcode_into_libs=yes
20062 dynamic_linker="$host_os dld.so"
20063 shlibpath_var=LD_LIBRARY_PATH
20064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20066 soname_spec='${libname}${release}${shared_ext}$major'
20067 if test "X$HPUX_IA64_MODE" = X32; then
20068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20076 hardcode_into_libs=yes
20077 dynamic_linker="$host_os dld.sl"
20078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20087 dynamic_linker="$host_os dld.sl"
20088 shlibpath_var=SHLIB_PATH
20089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091 soname_spec='${libname}${release}${shared_ext}$major'
20094 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20095 postinstall_cmds='chmod 555 $lib'
20102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20103 soname_spec='${libname}${release}${shared_ext}$major'
20104 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20105 shlibpath_var=LD_LIBRARY_PATH
20106 shlibpath_overrides_runpath=no
20107 hardcode_into_libs=yes
20110 irix5* | irix6* | nonstopux*)
20112 nonstopux*) version_type=nonstopux ;;
20114 if test "$lt_cv_prog_gnu_ld" = yes; then
20122 soname_spec='${libname}${release}${shared_ext}$major'
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20125 irix5* | nonstopux*)
20126 libsuff= shlibsuff=
20129 case $LD in # libtool.m4 will add one of these switches to LD
20130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20131 libsuff= shlibsuff= libmagic=32-bit;;
20132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20133 libsuff=32 shlibsuff=N32 libmagic=N32;;
20134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20135 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20136 *) libsuff= shlibsuff= libmagic=never-match;;
20140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20141 shlibpath_overrides_runpath=no
20142 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20143 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20144 hardcode_into_libs=yes
20147 # No shared lib support for Linux oldld, aout, or coff.
20148 linux*oldld* | linux*aout* | linux*coff*)
20152 # This must be Linux ELF.
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20160 shlibpath_var=LD_LIBRARY_PATH
20161 shlibpath_overrides_runpath=no
20162 # This implies no fast_install, which is unacceptable.
20163 # Some rework will be needed to allow for fast_install
20164 # before this can be enabled.
20165 hardcode_into_libs=yes
20167 # Append ld.so.conf contents to the search path
20168 if test -f /etc/ld.so.conf; then
20169 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' ' '`
20170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20173 # We used to test for /lib/ld.so.1 and disable shared libraries on
20174 # powerpc, because MkLinux only supported shared libraries with the
20175 # GNU dynamic linker. Since this was broken with cross compilers,
20176 # most powerpc-linux boxes support dynamic linking these days and
20177 # people can always --disable-shared, the test was removed, and we
20178 # assume the GNU/Linux dynamic linker is in use.
20179 dynamic_linker='GNU/Linux ld.so'
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=no
20190 hardcode_into_libs=yes
20191 dynamic_linker='GNU ld.so'
20198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20201 dynamic_linker='NetBSD (a.out) ld.so'
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 dynamic_linker='NetBSD ld.elf_so'
20207 shlibpath_var=LD_LIBRARY_PATH
20208 shlibpath_overrides_runpath=yes
20209 hardcode_into_libs=yes
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215 shlibpath_var=LD_LIBRARY_PATH
20216 shlibpath_overrides_runpath=yes
20223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20224 soname_spec='${libname}${release}${shared_ext}$major'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 shlibpath_overrides_runpath=yes
20231 sys_lib_dlsearch_path_spec="/usr/lib"
20233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20235 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20236 *) need_version=no ;;
20238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20240 shlibpath_var=LD_LIBRARY_PATH
20241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20243 openbsd2.[89] | openbsd2.[89].*)
20244 shlibpath_overrides_runpath=no
20247 shlibpath_overrides_runpath=yes
20251 shlibpath_overrides_runpath=yes
20256 libname_spec='$name'
20259 library_names_spec='$libname${shared_ext} $libname.a'
20260 dynamic_linker='OS/2 ld.exe'
20261 shlibpath_var=LIBPATH
20264 osf3* | osf4* | osf5*)
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 shlibpath_var=LD_LIBRARY_PATH
20282 shlibpath_overrides_runpath=yes
20283 hardcode_into_libs=yes
20284 # ldd complains unless libraries are executable
20285 postinstall_cmds='chmod +x $lib'
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=yes
20294 if test "$with_gnu_ld" = yes; then
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 case $host_vendor in
20307 shlibpath_overrides_runpath=no
20309 export_dynamic_flag_spec='${wl}-Blargedynsym'
20310 runpath_var=LD_RUN_PATH
20318 shlibpath_overrides_runpath=no
20319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20325 if test -d /usr/nec ;then
20327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20328 soname_spec='$libname${shared_ext}.$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20334 version_type=freebsd-elf
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 hardcode_into_libs=yes
20341 if test "$with_gnu_ld" = yes; then
20342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20343 shlibpath_overrides_runpath=no
20345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20346 shlibpath_overrides_runpath=yes
20349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20353 sys_lib_dlsearch_path_spec='/usr/lib'
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 shlibpath_var=LD_LIBRARY_PATH
20367 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20368 echo "${ECHO_T}$dynamic_linker" >&6; }
20369 test "$dynamic_linker" = no && can_build_shared=no
20371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20372 if test "$GCC" = yes; then
20373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20376 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20378 hardcode_action_CXX=
20379 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20380 test -n "$runpath_var_CXX" || \
20381 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20383 # We can hardcode non-existant directories.
20384 if test "$hardcode_direct_CXX" != no &&
20385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20386 # have to relink, otherwise we might link with an installed library
20387 # when we should be linking with a yet-to-be-installed one
20388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20389 test "$hardcode_minus_L_CXX" != no; then
20390 # Linking always hardcodes the temporary library directory.
20391 hardcode_action_CXX=relink
20393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20394 hardcode_action_CXX=immediate
20397 # We cannot hardcode anything, or else we can only hardcode existing
20399 hardcode_action_CXX=unsupported
20401 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20402 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20404 if test "$hardcode_action_CXX" = relink; then
20405 # Fast installation is not supported
20406 enable_fast_install=no
20407 elif test "$shlibpath_overrides_runpath" = yes ||
20408 test "$enable_shared" = no; then
20409 # Fast installation is not necessary
20410 enable_fast_install=needless
20414 # The else clause should only fire when bootstrapping the
20415 # libtool distribution, otherwise you forgot to ship ltmain.sh
20416 # with your package, and you will get complaints that there are
20417 # no rules to generate ltmain.sh.
20418 if test -f "$ltmain"; then
20419 # See if we are running on zsh, and set the options which allow our commands through
20420 # without removal of \ escapes.
20421 if test -n "${ZSH_VERSION+set}" ; then
20422 setopt NO_GLOB_SUBST
20424 # Now quote all the things that may contain metacharacters while being
20425 # careful not to overquote the AC_SUBSTed values. We take copies of the
20426 # variables and quote the copies for generation of the libtool script.
20427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20431 deplibs_check_method reload_flag reload_cmds need_locks \
20432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20433 lt_cv_sys_global_symbol_to_c_name_address \
20434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20435 old_postinstall_cmds old_postuninstall_cmds \
20439 lt_prog_compiler_wl_CXX \
20440 lt_prog_compiler_pic_CXX \
20441 lt_prog_compiler_static_CXX \
20442 lt_prog_compiler_no_builtin_flag_CXX \
20443 export_dynamic_flag_spec_CXX \
20444 thread_safe_flag_spec_CXX \
20445 whole_archive_flag_spec_CXX \
20446 enable_shared_with_static_runtimes_CXX \
20447 old_archive_cmds_CXX \
20448 old_archive_from_new_cmds_CXX \
20449 predep_objects_CXX \
20450 postdep_objects_CXX \
20453 compiler_lib_search_path_CXX \
20455 archive_expsym_cmds_CXX \
20456 postinstall_cmds_CXX \
20457 postuninstall_cmds_CXX \
20458 old_archive_from_expsyms_cmds_CXX \
20459 allow_undefined_flag_CXX \
20460 no_undefined_flag_CXX \
20461 export_symbols_cmds_CXX \
20462 hardcode_libdir_flag_spec_CXX \
20463 hardcode_libdir_flag_spec_ld_CXX \
20464 hardcode_libdir_separator_CXX \
20465 hardcode_automatic_CXX \
20467 module_expsym_cmds_CXX \
20468 lt_cv_prog_compiler_c_o_CXX \
20469 exclude_expsyms_CXX \
20470 include_expsyms_CXX; do
20473 old_archive_cmds_CXX | \
20474 old_archive_from_new_cmds_CXX | \
20475 archive_cmds_CXX | \
20476 archive_expsym_cmds_CXX | \
20477 module_cmds_CXX | \
20478 module_expsym_cmds_CXX | \
20479 old_archive_from_expsyms_cmds_CXX | \
20480 export_symbols_cmds_CXX | \
20481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20482 postinstall_cmds | postuninstall_cmds | \
20483 old_postinstall_cmds | old_postuninstall_cmds | \
20484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20485 # Double-quote double-evaled strings.
20486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20495 *'\$0 --fallback-echo"')
20496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20502 cat <<__EOF__ >> "$cfgfile"
20503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20507 # Shell to use when invoking shell scripts.
20510 # Whether or not to build shared libraries.
20511 build_libtool_libs=$enable_shared
20513 # Whether or not to build static libraries.
20514 build_old_libs=$enable_static
20516 # Whether or not to add -lc for building shared libraries.
20517 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20519 # Whether or not to disallow shared libs when runtime libs are static
20520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20522 # Whether or not to optimize for fast installation.
20523 fast_install=$enable_fast_install
20526 host_alias=$host_alias
20530 # The build system.
20531 build_alias=$build_alias
20535 # An echo program that does not interpret backslashes.
20540 AR_FLAGS=$lt_AR_FLAGS
20545 # LTCC compiler flags.
20546 LTCFLAGS=$lt_LTCFLAGS
20548 # A language-specific compiler.
20549 CC=$lt_compiler_CXX
20551 # Is the compiler the GNU C compiler?
20557 # The linker used to build libraries.
20560 # Whether we need hard or soft links.
20563 # A BSD-compatible nm program.
20566 # A symbol stripping program
20569 # Used to examine libraries when file_magic_cmd begins "file"
20570 MAGIC_CMD=$MAGIC_CMD
20572 # Used on cygwin: DLL creation program.
20575 # Used on cygwin: object dumper.
20578 # Used on cygwin: assembler.
20581 # The name of the directory that contains temporary libtool files.
20584 # How to create reloadable object files.
20585 reload_flag=$lt_reload_flag
20586 reload_cmds=$lt_reload_cmds
20588 # How to pass a linker flag through the compiler.
20589 wl=$lt_lt_prog_compiler_wl_CXX
20591 # Object file suffix (normally "o").
20592 objext="$ac_objext"
20594 # Old archive suffix (normally "a").
20597 # Shared library suffix (normally ".so").
20598 shrext_cmds='$shrext_cmds'
20600 # Executable file suffix (normally "").
20603 # Additional compiler flags for building library objects.
20604 pic_flag=$lt_lt_prog_compiler_pic_CXX
20607 # What is the maximum length of a command?
20608 max_cmd_len=$lt_cv_sys_max_cmd_len
20610 # Does compiler simultaneously support -c and -o options?
20611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20613 # Must we lock files when doing compilation?
20614 need_locks=$lt_need_locks
20616 # Do we need the lib prefix for modules?
20617 need_lib_prefix=$need_lib_prefix
20619 # Do we need a version for libraries?
20620 need_version=$need_version
20622 # Whether dlopen is supported.
20623 dlopen_support=$enable_dlopen
20625 # Whether dlopen of programs is supported.
20626 dlopen_self=$enable_dlopen_self
20628 # Whether dlopen of statically linked programs is supported.
20629 dlopen_self_static=$enable_dlopen_self_static
20631 # Compiler flag to prevent dynamic linking.
20632 link_static_flag=$lt_lt_prog_compiler_static_CXX
20634 # Compiler flag to turn off builtin functions.
20635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20637 # Compiler flag to allow reflexive dlopens.
20638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20640 # Compiler flag to generate shared objects directly from archives.
20641 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20643 # Compiler flag to generate thread-safe objects.
20644 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20646 # Library versioning type.
20647 version_type=$version_type
20649 # Format of library name prefix.
20650 libname_spec=$lt_libname_spec
20652 # List of archive names. First name is the real one, the rest are links.
20653 # The last name is the one that the linker finds with -lNAME.
20654 library_names_spec=$lt_library_names_spec
20656 # The coded name of the library, if different from the real name.
20657 soname_spec=$lt_soname_spec
20659 # Commands used to build and install an old-style archive.
20661 old_archive_cmds=$lt_old_archive_cmds_CXX
20662 old_postinstall_cmds=$lt_old_postinstall_cmds
20663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20665 # Create an old-style archive from a shared archive.
20666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20668 # Create a temporary old-style archive to link instead of a shared archive.
20669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20671 # Commands used to build and install a shared archive.
20672 archive_cmds=$lt_archive_cmds_CXX
20673 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20674 postinstall_cmds=$lt_postinstall_cmds
20675 postuninstall_cmds=$lt_postuninstall_cmds
20677 # Commands used to build a loadable module (assumed same as above if empty)
20678 module_cmds=$lt_module_cmds_CXX
20679 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20681 # Commands to strip libraries.
20682 old_striplib=$lt_old_striplib
20683 striplib=$lt_striplib
20685 # Dependencies to place before the objects being linked to create a
20687 predep_objects=$lt_predep_objects_CXX
20689 # Dependencies to place after the objects being linked to create a
20691 postdep_objects=$lt_postdep_objects_CXX
20693 # Dependencies to place before the objects being linked to create a
20695 predeps=$lt_predeps_CXX
20697 # Dependencies to place after the objects being linked to create a
20699 postdeps=$lt_postdeps_CXX
20701 # The library search path used internally by the compiler when linking
20702 # a shared library.
20703 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20705 # Method to check whether dependent libraries are shared objects.
20706 deplibs_check_method=$lt_deplibs_check_method
20708 # Command to use when deplibs_check_method == file_magic.
20709 file_magic_cmd=$lt_file_magic_cmd
20711 # Flag that allows shared libraries with undefined symbols to be built.
20712 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20714 # Flag that forces no undefined symbols.
20715 no_undefined_flag=$lt_no_undefined_flag_CXX
20717 # Commands used to finish a libtool library installation in a directory.
20718 finish_cmds=$lt_finish_cmds
20720 # Same as above, but a single script fragment to be evaled but not shown.
20721 finish_eval=$lt_finish_eval
20723 # Take the output of nm and produce a listing of raw symbols and C names.
20724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20726 # Transform the output of nm in a proper C declaration
20727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20729 # Transform the output of nm in a C name address pair
20730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20732 # This is the shared library runtime path variable.
20733 runpath_var=$runpath_var
20735 # This is the shared library path variable.
20736 shlibpath_var=$shlibpath_var
20738 # Is shlibpath searched before the hard-coded library search path?
20739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20741 # How to hardcode a shared library path into an executable.
20742 hardcode_action=$hardcode_action_CXX
20744 # Whether we should hardcode library paths into libraries.
20745 hardcode_into_libs=$hardcode_into_libs
20747 # Flag to hardcode \$libdir into a binary during linking.
20748 # This must work even if \$libdir does not exist.
20749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20751 # If ld is used when linking, flag to hardcode \$libdir into
20752 # a binary during linking. This must work even if \$libdir does
20754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20756 # Whether we need a single -rpath flag with a separated argument.
20757 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20760 # resulting binary.
20761 hardcode_direct=$hardcode_direct_CXX
20763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20764 # resulting binary.
20765 hardcode_minus_L=$hardcode_minus_L_CXX
20767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20768 # the resulting binary.
20769 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20771 # Set to yes if building a shared library automatically hardcodes DIR into the library
20772 # and all subsequent libraries and executables linked against it.
20773 hardcode_automatic=$hardcode_automatic_CXX
20775 # Variables whose values should be saved in libtool wrapper scripts and
20776 # restored at relink time.
20777 variables_saved_for_relink="$variables_saved_for_relink"
20779 # Whether libtool must link a program against all its dependency libraries.
20780 link_all_deplibs=$link_all_deplibs_CXX
20782 # Compile-time system search path for libraries
20783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20785 # Run-time system search path for libraries
20786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20788 # Fix the shell variable \$srcfile for the compiler.
20789 fix_srcfile_path="$fix_srcfile_path_CXX"
20791 # Set to yes if exported symbols are required.
20792 always_export_symbols=$always_export_symbols_CXX
20794 # The commands to list exported symbols.
20795 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20797 # The commands to extract the exported symbol list from a shared archive.
20798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20800 # Symbols that should not be listed in the preloaded symbols.
20801 exclude_expsyms=$lt_exclude_expsyms_CXX
20803 # Symbols that must always be exported.
20804 include_expsyms=$lt_include_expsyms_CXX
20806 # ### END LIBTOOL TAG CONFIG: $tagname
20812 # If there is no Makefile yet, we rely on a make rule to execute
20813 # `config.status --recheck' to rerun these tests and create the
20814 # libtool script then.
20815 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20816 if test -f "$ltmain_in"; then
20817 test -f Makefile && make "$ltmain"
20823 ac_cpp='$CPP $CPPFLAGS'
20824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20832 with_gnu_ldcxx=$with_gnu_ld
20833 with_gnu_ld=$lt_save_with_gnu_ld
20834 lt_cv_path_LDCXX=$lt_cv_path_LD
20835 lt_cv_path_LD=$lt_save_path_LD
20836 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20837 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20845 if test -n "$F77" && test "X$F77" != "Xno"; then
20848 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20849 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20853 archive_cmds_need_lc_F77=no
20854 allow_undefined_flag_F77=
20855 always_export_symbols_F77=no
20856 archive_expsym_cmds_F77=
20857 export_dynamic_flag_spec_F77=
20858 hardcode_direct_F77=no
20859 hardcode_libdir_flag_spec_F77=
20860 hardcode_libdir_flag_spec_ld_F77=
20861 hardcode_libdir_separator_F77=
20862 hardcode_minus_L_F77=no
20863 hardcode_automatic_F77=no
20865 module_expsym_cmds_F77=
20866 link_all_deplibs_F77=unknown
20867 old_archive_cmds_F77=$old_archive_cmds
20868 no_undefined_flag_F77=
20869 whole_archive_flag_spec_F77=
20870 enable_shared_with_static_runtimes_F77=no
20872 # Source file extension for f77 test sources.
20875 # Object file extension for compiled f77 test sources.
20879 # Code to be used in simple compile tests
20880 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20882 # Code to be used in simple link tests
20883 lt_simple_link_test_code=" program t\n end\n"
20885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20887 # If no C compiler was specified, use CC.
20890 # If no C compiler flags were specified, use CFLAGS.
20891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20893 # Allow CC to be a program name with arguments.
20897 # save warnings/boilerplate of simple test code
20898 ac_outfile=conftest.$ac_objext
20899 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20901 _lt_compiler_boilerplate=`cat conftest.err`
20904 ac_outfile=conftest.$ac_objext
20905 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20907 _lt_linker_boilerplate=`cat conftest.err`
20911 # Allow CC to be a program name with arguments.
20916 for cc_temp in $compiler""; do
20918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20927 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20928 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20929 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20930 echo "${ECHO_T}$can_build_shared" >&6; }
20932 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20933 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20934 test "$can_build_shared" = "no" && enable_shared=no
20936 # On AIX, shared libraries and static libraries use the same namespace, and
20937 # are all built from PIC.
20940 test "$enable_shared" = yes && enable_static=no
20941 if test -n "$RANLIB"; then
20942 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20943 postinstall_cmds='$RANLIB $lib'
20947 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20948 test "$enable_shared" = yes && enable_static=no
20952 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20953 echo "${ECHO_T}$enable_shared" >&6; }
20955 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20956 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20957 # Make sure either enable_shared or enable_static is yes.
20958 test "$enable_shared" = yes || enable_static=yes
20959 { echo "$as_me:$LINENO: result: $enable_static" >&5
20960 echo "${ECHO_T}$enable_static" >&6; }
20965 lt_prog_compiler_wl_F77=
20966 lt_prog_compiler_pic_F77=
20967 lt_prog_compiler_static_F77=
20969 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20970 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20972 if test "$GCC" = yes; then
20973 lt_prog_compiler_wl_F77='-Wl,'
20974 lt_prog_compiler_static_F77='-static'
20978 # All AIX code is PIC.
20979 if test "$host_cpu" = ia64; then
20980 # AIX 5 now supports IA64 processor
20981 lt_prog_compiler_static_F77='-Bstatic'
20986 # FIXME: we need at least 68020 code to build shared libraries, but
20987 # adding the `-m68020' flag to GCC prevents building anything better,
20989 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20992 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20993 # PIC is the default for these OSes.
20996 mingw* | pw32* | os2*)
20997 # This hack is so that the source file can tell whether it is being
20998 # built for inclusion in a dll (and should export symbols for example).
20999 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21002 darwin* | rhapsody*)
21003 # PIC is the default on this platform
21004 # Common symbols not allowed in MH_DYLIB files
21005 lt_prog_compiler_pic_F77='-fno-common'
21009 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21010 # Instead, we relocate shared libraries at runtime.
21014 # Just because we use GCC doesn't mean we suddenly get shared libraries
21015 # on systems that don't support them.
21016 lt_prog_compiler_can_build_shared_F77=no
21021 if test -d /usr/nec; then
21022 lt_prog_compiler_pic_F77=-Kconform_pic
21027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21028 # not for PA HP-UX.
21034 lt_prog_compiler_pic_F77='-fPIC'
21040 lt_prog_compiler_pic_F77='-fPIC'
21044 # PORTME Check for flag to pass linker flags through the system compiler.
21047 lt_prog_compiler_wl_F77='-Wl,'
21048 if test "$host_cpu" = ia64; then
21049 # AIX 5 now supports IA64 processor
21050 lt_prog_compiler_static_F77='-Bstatic'
21052 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21056 # PIC is the default on this platform
21057 # Common symbols not allowed in MH_DYLIB files
21058 case $cc_basename in
21060 lt_prog_compiler_pic_F77='-qnocommon'
21061 lt_prog_compiler_wl_F77='-Wl,'
21066 mingw* | pw32* | os2*)
21067 # This hack is so that the source file can tell whether it is being
21068 # built for inclusion in a dll (and should export symbols for example).
21069 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21072 hpux9* | hpux10* | hpux11*)
21073 lt_prog_compiler_wl_F77='-Wl,'
21074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21075 # not for PA HP-UX.
21081 lt_prog_compiler_pic_F77='+Z'
21084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21085 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21088 irix5* | irix6* | nonstopux*)
21089 lt_prog_compiler_wl_F77='-Wl,'
21090 # PIC (with -KPIC) is the default.
21091 lt_prog_compiler_static_F77='-non_shared'
21095 lt_prog_compiler_pic_F77='-KPIC'
21096 lt_prog_compiler_static_F77='-Bstatic'
21100 case $cc_basename in
21102 lt_prog_compiler_wl_F77='-Wl,'
21103 lt_prog_compiler_pic_F77='-KPIC'
21104 lt_prog_compiler_static_F77='-static'
21106 pgcc* | pgf77* | pgf90* | pgf95*)
21107 # Portland Group compilers (*not* the Pentium gcc compiler,
21108 # which looks to be a dead project)
21109 lt_prog_compiler_wl_F77='-Wl,'
21110 lt_prog_compiler_pic_F77='-fpic'
21111 lt_prog_compiler_static_F77='-Bstatic'
21114 lt_prog_compiler_wl_F77='-Wl,'
21115 # All Alpha code is PIC.
21116 lt_prog_compiler_static_F77='-non_shared'
21121 osf3* | osf4* | osf5*)
21122 lt_prog_compiler_wl_F77='-Wl,'
21123 # All OSF/1 code is PIC.
21124 lt_prog_compiler_static_F77='-non_shared'
21128 lt_prog_compiler_pic_F77='-KPIC'
21129 lt_prog_compiler_static_F77='-Bstatic'
21130 case $cc_basename in
21131 f77* | f90* | f95*)
21132 lt_prog_compiler_wl_F77='-Qoption ld ';;
21134 lt_prog_compiler_wl_F77='-Wl,';;
21139 lt_prog_compiler_wl_F77='-Qoption ld '
21140 lt_prog_compiler_pic_F77='-PIC'
21141 lt_prog_compiler_static_F77='-Bstatic'
21144 sysv4 | sysv4.2uw2* | sysv4.3*)
21145 lt_prog_compiler_wl_F77='-Wl,'
21146 lt_prog_compiler_pic_F77='-KPIC'
21147 lt_prog_compiler_static_F77='-Bstatic'
21151 if test -d /usr/nec ;then
21152 lt_prog_compiler_pic_F77='-Kconform_pic'
21153 lt_prog_compiler_static_F77='-Bstatic'
21157 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21158 lt_prog_compiler_wl_F77='-Wl,'
21159 lt_prog_compiler_pic_F77='-KPIC'
21160 lt_prog_compiler_static_F77='-Bstatic'
21164 lt_prog_compiler_wl_F77='-Wl,'
21165 lt_prog_compiler_can_build_shared_F77=no
21169 lt_prog_compiler_pic_F77='-pic'
21170 lt_prog_compiler_static_F77='-Bstatic'
21174 lt_prog_compiler_can_build_shared_F77=no
21179 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21180 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21183 # Check to make sure the PIC flag actually works.
21185 if test -n "$lt_prog_compiler_pic_F77"; then
21187 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21188 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21189 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 lt_prog_compiler_pic_works_F77=no
21193 ac_outfile=conftest.$ac_objext
21194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21195 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21196 # Insert the option either (1) after the last *FLAGS variable, or
21197 # (2) before a word containing "conftest.", or (3) at the end.
21198 # Note that $ac_compile itself does not contain backslashes and begins
21199 # with a dollar sign (not a hyphen), so the echo should work correctly.
21200 # The option is referenced via a variable to avoid confusing sed.
21201 lt_compile=`echo "$ac_compile" | $SED \
21202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21204 -e 's:$: $lt_compiler_flag:'`
21205 (eval echo "\"\$as_me:21205: $lt_compile\"" >&5)
21206 (eval "$lt_compile" 2>conftest.err)
21208 cat conftest.err >&5
21209 echo "$as_me:21209: \$? = $ac_status" >&5
21210 if (exit $ac_status) && test -s "$ac_outfile"; then
21211 # The compiler can only warn and ignore the option if not recognized
21212 # So say no if there are warnings other than the usual output.
21213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21216 lt_prog_compiler_pic_works_F77=yes
21222 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21223 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21225 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21226 case $lt_prog_compiler_pic_F77 in
21228 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21231 lt_prog_compiler_pic_F77=
21232 lt_prog_compiler_can_build_shared_F77=no
21237 # For platforms which do not support PIC, -DPIC is meaningless:
21239 lt_prog_compiler_pic_F77=
21242 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21247 # Check to make sure the static flag actually works.
21249 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21250 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21251 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21252 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 lt_prog_compiler_static_works_F77=no
21256 save_LDFLAGS="$LDFLAGS"
21257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21258 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21260 # The linker can only warn and ignore the option if not recognized
21261 # So say no if there are warnings
21262 if test -s conftest.err; then
21263 # Append any errors to the config.log.
21264 cat conftest.err 1>&5
21265 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21267 if diff conftest.exp conftest.er2 >/dev/null; then
21268 lt_prog_compiler_static_works_F77=yes
21271 lt_prog_compiler_static_works_F77=yes
21275 LDFLAGS="$save_LDFLAGS"
21278 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21279 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21281 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21284 lt_prog_compiler_static_F77=
21288 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21289 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21290 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21293 lt_cv_prog_compiler_c_o_F77=no
21294 $rm -r conftest 2>/dev/null
21298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21300 lt_compiler_flag="-o out/conftest2.$ac_objext"
21301 # Insert the option either (1) after the last *FLAGS variable, or
21302 # (2) before a word containing "conftest.", or (3) at the end.
21303 # Note that $ac_compile itself does not contain backslashes and begins
21304 # with a dollar sign (not a hyphen), so the echo should work correctly.
21305 lt_compile=`echo "$ac_compile" | $SED \
21306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21308 -e 's:$: $lt_compiler_flag:'`
21309 (eval echo "\"\$as_me:21309: $lt_compile\"" >&5)
21310 (eval "$lt_compile" 2>out/conftest.err)
21312 cat out/conftest.err >&5
21313 echo "$as_me:21313: \$? = $ac_status" >&5
21314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21316 # The compiler can only warn and ignore the option if not recognized
21317 # So say no if there are warnings
21318 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21321 lt_cv_prog_compiler_c_o_F77=yes
21326 # SGI C++ compiler will create directory out/ii_files/ for
21327 # template instantiation
21328 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21329 $rm out/* && rmdir out
21335 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21336 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21339 hard_links="nottested"
21340 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21341 # do not overwrite the value of need_locks provided by the user
21342 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21343 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21348 ln conftest.a conftest.b 2>&5 || hard_links=no
21349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21350 { echo "$as_me:$LINENO: result: $hard_links" >&5
21351 echo "${ECHO_T}$hard_links" >&6; }
21352 if test "$hard_links" = no; then
21353 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21354 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21361 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21362 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21365 allow_undefined_flag_F77=
21366 enable_shared_with_static_runtimes_F77=no
21368 archive_expsym_cmds_F77=
21369 old_archive_From_new_cmds_F77=
21370 old_archive_from_expsyms_cmds_F77=
21371 export_dynamic_flag_spec_F77=
21372 whole_archive_flag_spec_F77=
21373 thread_safe_flag_spec_F77=
21374 hardcode_libdir_flag_spec_F77=
21375 hardcode_libdir_flag_spec_ld_F77=
21376 hardcode_libdir_separator_F77=
21377 hardcode_direct_F77=no
21378 hardcode_minus_L_F77=no
21379 hardcode_shlibpath_var_F77=unsupported
21380 link_all_deplibs_F77=unknown
21381 hardcode_automatic_F77=no
21383 module_expsym_cmds_F77=
21384 always_export_symbols_F77=no
21385 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21386 # include_expsyms should be a list of space-separated symbols to be *always*
21387 # included in the symbol list
21388 include_expsyms_F77=
21389 # exclude_expsyms can be an extended regexp of symbols to exclude
21390 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21391 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21392 # as well as any symbol that contains `d'.
21393 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21394 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21395 # platforms (ab)use it in PIC code, but their linkers get confused if
21396 # the symbol is explicitly referenced. Since portable code cannot
21397 # rely on this symbol name, it's probably fine to never include it in
21398 # preloaded symbol tables.
21399 extract_expsyms_cmds=
21400 # Just being paranoid about ensuring that cc_basename is set.
21401 for cc_temp in $compiler""; do
21403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21409 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21412 cygwin* | mingw* | pw32*)
21413 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21414 # When not using gcc, we currently assume that we are using
21415 # Microsoft Visual C++.
21416 if test "$GCC" != yes; then
21421 # we just hope/assume this is gcc and not c89 (= MSVC++)
21430 if test "$with_gnu_ld" = yes; then
21431 # If archive_cmds runs LD, not CC, wlarc should be empty
21434 # Set some defaults for GNU ld with shared library support. These
21435 # are reset later if shared libraries are not supported. Putting them
21436 # here allows them to be overridden if necessary.
21437 runpath_var=LD_RUN_PATH
21438 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21439 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21440 # ancient GNU ld didn't support --whole-archive et. al.
21441 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21442 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21444 whole_archive_flag_spec_F77=
21446 supports_anon_versioning=no
21447 case `$LD -v 2>/dev/null` in
21448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21451 *\ 2.11.*) ;; # other 2.11 versions
21452 *) supports_anon_versioning=yes ;;
21455 # See if GNU ld supports shared libraries.
21457 aix3* | aix4* | aix5*)
21458 # On AIX/PPC, the GNU linker is very broken
21459 if test "$host_cpu" != ia64; then
21463 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21464 *** to be unable to reliably create shared libraries on AIX.
21465 *** Therefore, libtool is disabling shared libraries support. If you
21466 *** really care for shared libraries, you may want to modify your PATH
21467 *** so that a non-GNU linker is found, and then restart.
21474 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)'
21475 hardcode_libdir_flag_spec_F77='-L$libdir'
21476 hardcode_minus_L_F77=yes
21478 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21479 # that the semantics of dynamic libraries on AmigaOS, at least up
21480 # to version 4, is to share data among multiple programs linked
21481 # with the same dynamic library. Since this doesn't match the
21482 # behavior of shared libraries on other platforms, we can't use
21488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21489 allow_undefined_flag_F77=unsupported
21490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21491 # support --undefined. This deserves some investigation. FIXME
21492 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21498 cygwin* | mingw* | pw32*)
21499 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21500 # as there is no search path for DLLs.
21501 hardcode_libdir_flag_spec_F77='-L$libdir'
21502 allow_undefined_flag_F77=unsupported
21503 always_export_symbols_F77=no
21504 enable_shared_with_static_runtimes_F77=yes
21505 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21508 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21509 # If the export-symbols file already is a .def file (1st line
21510 # is EXPORTS), use it as is; otherwise, prepend...
21511 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21512 cp $export_symbols $output_objdir/$soname.def;
21514 echo EXPORTS > $output_objdir/$soname.def;
21515 cat $export_symbols >> $output_objdir/$soname.def;
21517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21524 hardcode_direct_F77=no
21525 hardcode_shlibpath_var_F77=no
21526 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21527 export_dynamic_flag_spec_F77='${wl}-E'
21528 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21529 # Instead, shared libraries are loaded at an image base (0x10000000 by
21530 # default) and relocated if they conflict, which is a slow very memory
21531 # consuming and fragmenting process. To avoid this, we pick a random,
21532 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21533 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21534 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'
21535 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'
21539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541 case $cc_basename,$host_cpu in
21542 pgcc*) # Portland Group C compiler
21543 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'
21544 tmp_addflag=' $pic_flag'
21546 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21547 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'
21548 tmp_addflag=' $pic_flag -Mnomain' ;;
21549 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21550 tmp_addflag=' -i_dynamic' ;;
21551 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21552 tmp_addflag=' -i_dynamic -nofor_main' ;;
21553 ifc* | ifort*) # Intel Fortran compiler
21554 tmp_addflag=' -nofor_main' ;;
21556 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558 if test $supports_anon_versioning = yes; then
21559 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21561 $echo "local: *; };" >> $output_objdir/$libname.ver~
21562 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21571 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21575 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21580 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21584 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21585 *** create shared libraries on Solaris systems. Therefore, libtool
21586 *** is disabling shared libraries support. We urge you to upgrade GNU
21587 *** binutils to release 2.9.1 or newer. Another option is to modify
21588 *** your PATH or compiler configuration so that the native linker is
21589 *** used, and then restart.
21592 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21594 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21601 case `$LD -v 2>&1` in
21602 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21606 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21607 *** reliably create shared libraries on SCO systems. Therefore, libtool
21608 *** is disabling shared libraries support. We urge you to upgrade GNU
21609 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21610 *** your PATH or compiler configuration so that the native linker is
21611 *** used, and then restart.
21616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21617 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21618 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21619 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21628 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21630 hardcode_direct_F77=yes
21631 hardcode_shlibpath_var_F77=no
21635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21636 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21637 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21644 if test "$ld_shlibs_F77" = no; then
21646 hardcode_libdir_flag_spec_F77=
21647 export_dynamic_flag_spec_F77=
21648 whole_archive_flag_spec_F77=
21651 # PORTME fill in a description of your system's linker (not GNU ld)
21654 allow_undefined_flag_F77=unsupported
21655 always_export_symbols_F77=yes
21656 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'
21657 # Note: this linker hardcodes the directories in LIBPATH if there
21658 # are no directories specified by -L.
21659 hardcode_minus_L_F77=yes
21660 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21661 # Neither direct hardcoding nor static linking is supported with a
21663 hardcode_direct_F77=unsupported
21668 if test "$host_cpu" = ia64; then
21669 # On IA64, the linker does run time linking by default, so we don't
21670 # have to do anything special.
21671 aix_use_runtimelinking=no
21672 exp_sym_flag='-Bexport'
21675 # If we're using GNU nm, then we don't want the "-C" option.
21676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21678 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'
21680 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'
21682 aix_use_runtimelinking=no
21684 # Test if we are trying to use run time linking or normal
21685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21686 # need to do runtime linking.
21687 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21688 for ld_flag in $LDFLAGS; do
21689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21690 aix_use_runtimelinking=yes
21697 exp_sym_flag='-bexport'
21698 no_entry_flag='-bnoentry'
21701 # When large executables or shared objects are built, AIX ld can
21702 # have problems creating the table of contents. If linking a library
21703 # or program results in "error TOC overflow" add -mminimal-toc to
21704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21707 archive_cmds_F77=''
21708 hardcode_direct_F77=yes
21709 hardcode_libdir_separator_F77=':'
21710 link_all_deplibs_F77=yes
21712 if test "$GCC" = yes; then
21713 case $host_os in aix4.[012]|aix4.[012].*)
21714 # We only want to do this on AIX 4.2 and lower, the check
21715 # below for broken collect2 doesn't work under 4.3+
21716 collect2name=`${CC} -print-prog-name=collect2`
21717 if test -f "$collect2name" && \
21718 strings "$collect2name" | grep resolve_lib_name >/dev/null
21720 # We have reworked collect2
21721 hardcode_direct_F77=yes
21723 # We have old collect2
21724 hardcode_direct_F77=unsupported
21725 # It fails to find uninstalled libraries when the uninstalled
21726 # path is not listed in the libpath. Setting hardcode_minus_L
21727 # to unsupported forces relinking
21728 hardcode_minus_L_F77=yes
21729 hardcode_libdir_flag_spec_F77='-L$libdir'
21730 hardcode_libdir_separator_F77=
21734 shared_flag='-shared'
21735 if test "$aix_use_runtimelinking" = yes; then
21736 shared_flag="$shared_flag "'${wl}-G'
21740 if test "$host_cpu" = ia64; then
21741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21742 # chokes on -Wl,-G. The following line is correct:
21745 if test "$aix_use_runtimelinking" = yes; then
21746 shared_flag='${wl}-G'
21748 shared_flag='${wl}-bM:SRE'
21753 # It seems that -bexpall does not export symbols beginning with
21754 # underscore (_), so it is better to generate a list of symbols to export.
21755 always_export_symbols_F77=yes
21756 if test "$aix_use_runtimelinking" = yes; then
21757 # Warning - without using the other runtime loading flags (-brtl),
21758 # -berok will link without error, but may produce a broken library.
21759 allow_undefined_flag_F77='-berok'
21760 # Determine the default libpath from the value encoded in an empty executable.
21761 cat >conftest.$ac_ext <<_ACEOF
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_link") 2>conftest.er1
21775 grep -v '^ *+' conftest.er1 >conftest.err
21777 cat conftest.err >&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } &&
21780 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21781 { (case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_try") 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; } &&
21790 { ac_try='test -s conftest$ac_exeext'
21791 { (case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_try") 2>&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; }; then
21801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21803 # Check for a 64-bit object if we didn't find anything.
21804 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; }
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21813 rm -f core conftest.err conftest.$ac_objext \
21814 conftest$ac_exeext conftest.$ac_ext
21815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21817 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21818 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"
21820 if test "$host_cpu" = ia64; then
21821 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21822 allow_undefined_flag_F77="-z nodefs"
21823 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"
21825 # Determine the default libpath from the value encoded in an empty executable.
21826 cat >conftest.$ac_ext <<_ACEOF
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_link") 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } &&
21845 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21846 { (case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_try") 2>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; } &&
21855 { ac_try='test -s conftest$ac_exeext'
21856 { (case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_try") 2>&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21868 # Check for a 64-bit object if we didn't find anything.
21869 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; }
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21878 rm -f core conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext conftest.$ac_ext
21880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21882 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21883 # Warning - without using the other run time loading flags,
21884 # -berok will link without error, but may produce a broken library.
21885 no_undefined_flag_F77=' ${wl}-bernotok'
21886 allow_undefined_flag_F77=' ${wl}-berok'
21887 # Exported symbols can be pulled into shared objects from archives
21888 whole_archive_flag_spec_F77='$convenience'
21889 archive_cmds_need_lc_F77=yes
21890 # This is similar to how AIX traditionally builds its shared libraries.
21891 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'
21897 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)'
21898 hardcode_libdir_flag_spec_F77='-L$libdir'
21899 hardcode_minus_L_F77=yes
21900 # see comment about different semantics on the GNU ld section
21905 export_dynamic_flag_spec_F77=-rdynamic
21908 cygwin* | mingw* | pw32*)
21909 # When not using gcc, we currently assume that we are using
21910 # Microsoft Visual C++.
21911 # hardcode_libdir_flag_spec is actually meaningless, as there is
21912 # no search path for DLLs.
21913 hardcode_libdir_flag_spec_F77=' '
21914 allow_undefined_flag_F77=unsupported
21915 # Tell ltmain to make .lib files, not .a files.
21917 # Tell ltmain to make .dll files, not .so files.
21919 # FIXME: Setting linknames here is a bad hack.
21920 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21921 # The linker will automatically build a .lib file if we build a DLL.
21922 old_archive_From_new_cmds_F77='true'
21923 # FIXME: Should let the user specify the lib program.
21924 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21925 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21926 enable_shared_with_static_runtimes_F77=yes
21929 darwin* | rhapsody*)
21931 rhapsody* | darwin1.[012])
21932 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21935 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21936 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21938 case ${MACOSX_DEPLOYMENT_TARGET} in
21940 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21943 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21949 archive_cmds_need_lc_F77=no
21950 hardcode_direct_F77=no
21951 hardcode_automatic_F77=yes
21952 hardcode_shlibpath_var_F77=unsupported
21953 whole_archive_flag_spec_F77=''
21954 link_all_deplibs_F77=yes
21955 if test "$GCC" = yes ; then
21956 output_verbose_link_cmd='echo'
21957 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21958 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21959 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21960 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}'
21961 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}'
21963 case $cc_basename in
21965 output_verbose_link_cmd='echo'
21966 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21967 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21968 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21969 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}'
21970 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}'
21980 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21981 hardcode_libdir_flag_spec_F77='-L$libdir'
21982 hardcode_shlibpath_var_F77=no
21989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21990 # support. Future versions do this automatically, but an explicit c++rt0.o
21991 # does not break anything, and helps significantly (at the cost of a little
21994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21995 hardcode_libdir_flag_spec_F77='-R$libdir'
21996 hardcode_direct_F77=yes
21997 hardcode_shlibpath_var_F77=no
22000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22002 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22003 hardcode_direct_F77=yes
22004 hardcode_minus_L_F77=yes
22005 hardcode_shlibpath_var_F77=no
22008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22009 freebsd* | kfreebsd*-gnu | dragonfly*)
22010 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22011 hardcode_libdir_flag_spec_F77='-R$libdir'
22012 hardcode_direct_F77=yes
22013 hardcode_shlibpath_var_F77=no
22017 if test "$GCC" = yes; then
22018 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'
22020 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'
22022 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22023 hardcode_libdir_separator_F77=:
22024 hardcode_direct_F77=yes
22026 # hardcode_minus_L: Not really in the search PATH,
22027 # but as the default location of the library.
22028 hardcode_minus_L_F77=yes
22029 export_dynamic_flag_spec_F77='${wl}-E'
22033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22034 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22036 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22038 if test "$with_gnu_ld" = no; then
22039 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22040 hardcode_libdir_separator_F77=:
22042 hardcode_direct_F77=yes
22043 export_dynamic_flag_spec_F77='${wl}-E'
22045 # hardcode_minus_L: Not really in the search PATH,
22046 # but as the default location of the library.
22047 hardcode_minus_L_F77=yes
22052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22055 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22058 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22061 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22067 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22070 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22073 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22077 if test "$with_gnu_ld" = no; then
22078 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22079 hardcode_libdir_separator_F77=:
22083 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22084 hardcode_direct_F77=no
22085 hardcode_shlibpath_var_F77=no
22088 hardcode_direct_F77=yes
22089 export_dynamic_flag_spec_F77='${wl}-E'
22091 # hardcode_minus_L: Not really in the search PATH,
22092 # but as the default location of the library.
22093 hardcode_minus_L_F77=yes
22099 irix5* | irix6* | nonstopux*)
22100 if test "$GCC" = yes; then
22101 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'
22103 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'
22104 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22106 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22107 hardcode_libdir_separator_F77=:
22108 link_all_deplibs_F77=yes
22112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22113 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22115 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22117 hardcode_libdir_flag_spec_F77='-R$libdir'
22118 hardcode_direct_F77=yes
22119 hardcode_shlibpath_var_F77=no
22123 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22124 hardcode_direct_F77=yes
22125 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22126 hardcode_libdir_separator_F77=:
22127 hardcode_shlibpath_var_F77=no
22131 hardcode_direct_F77=yes
22132 hardcode_shlibpath_var_F77=no
22133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22134 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22135 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22136 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22137 export_dynamic_flag_spec_F77='${wl}-E'
22140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22141 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22142 hardcode_libdir_flag_spec_F77='-R$libdir'
22145 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22153 hardcode_libdir_flag_spec_F77='-L$libdir'
22154 hardcode_minus_L_F77=yes
22155 allow_undefined_flag_F77=unsupported
22156 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'
22157 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22161 if test "$GCC" = yes; then
22162 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22163 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'
22165 allow_undefined_flag_F77=' -expect_unresolved \*'
22166 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'
22168 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169 hardcode_libdir_separator_F77=:
22172 osf4* | osf5*) # as osf3* with the addition of -msym flag
22173 if test "$GCC" = yes; then
22174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22175 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'
22176 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22178 allow_undefined_flag_F77=' -expect_unresolved \*'
22179 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'
22180 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~
22181 $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'
22183 # Both c and cxx compiler support -rpath directly
22184 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22186 hardcode_libdir_separator_F77=:
22190 no_undefined_flag_F77=' -z text'
22191 if test "$GCC" = yes; then
22193 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22194 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22195 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22198 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22199 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22202 hardcode_libdir_flag_spec_F77='-R$libdir'
22203 hardcode_shlibpath_var_F77=no
22205 solaris2.[0-5] | solaris2.[0-5].*) ;;
22207 # The compiler driver will combine linker options so we
22208 # cannot just pass the convience library names through
22209 # without $wl, iff we do not link with $LD.
22210 # Luckily, gcc supports the same syntax we need for Sun Studio.
22211 # Supported since Solaris 2.6 (maybe 2.5.1?)
22214 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22216 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' ;;
22219 link_all_deplibs_F77=yes
22223 if test "x$host_vendor" = xsequent; then
22224 # Use $CC to link under sequent, because it throws in some extra .o
22225 # files that make .init and .fini sections work.
22226 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22228 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22230 hardcode_libdir_flag_spec_F77='-L$libdir'
22231 hardcode_direct_F77=yes
22232 hardcode_minus_L_F77=yes
22233 hardcode_shlibpath_var_F77=no
22237 case $host_vendor in
22239 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240 hardcode_direct_F77=yes # is this really true???
22243 ## LD is ld it makes a PLAMLIB
22244 ## CC just makes a GrossModule.
22245 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22246 reload_cmds_F77='$CC -r -o $output$reload_objs'
22247 hardcode_direct_F77=no
22250 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22251 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22254 runpath_var='LD_RUN_PATH'
22255 hardcode_shlibpath_var_F77=no
22259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22260 hardcode_shlibpath_var_F77=no
22261 export_dynamic_flag_spec_F77='-Bexport'
22265 if test -d /usr/nec; then
22266 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22267 hardcode_shlibpath_var_F77=no
22268 runpath_var=LD_RUN_PATH
22269 hardcode_runpath_var=yes
22274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22275 no_undefined_flag_F77='${wl}-z,text'
22276 archive_cmds_need_lc_F77=no
22277 hardcode_shlibpath_var_F77=no
22278 runpath_var='LD_RUN_PATH'
22280 if test "$GCC" = yes; then
22281 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22282 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22284 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22285 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22289 sysv5* | sco3.2v5* | sco5v6*)
22290 # Note: We can NOT use -z defs as we might desire, because we do not
22291 # link with -lc, and that would cause any symbols used from libc to
22292 # always be unresolved, which means just about no library would
22293 # ever link correctly. If we're not using GNU ld we use -z text
22294 # though, which does catch some bad symbols but isn't as heavy-handed
22296 no_undefined_flag_F77='${wl}-z,text'
22297 allow_undefined_flag_F77='${wl}-z,nodefs'
22298 archive_cmds_need_lc_F77=no
22299 hardcode_shlibpath_var_F77=no
22300 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22301 hardcode_libdir_separator_F77=':'
22302 link_all_deplibs_F77=yes
22303 export_dynamic_flag_spec_F77='${wl}-Bexport'
22304 runpath_var='LD_RUN_PATH'
22306 if test "$GCC" = yes; then
22307 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22308 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22310 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22311 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317 hardcode_libdir_flag_spec_F77='-L$libdir'
22318 hardcode_shlibpath_var_F77=no
22327 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22328 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22329 test "$ld_shlibs_F77" = no && can_build_shared=no
22332 # Do we need to explicitly link libc?
22334 case "x$archive_cmds_need_lc_F77" in
22336 # Assume -lc should be added
22337 archive_cmds_need_lc_F77=yes
22339 if test "$enable_shared" = yes && test "$GCC" = yes; then
22340 case $archive_cmds_F77 in
22342 # FIXME: we may have to deal with multi-command sequences.
22345 # Test whether the compiler implicitly links with -lc since on some
22346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22347 # to ld, don't add -lc before -lgcc.
22348 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22354 (eval $ac_compile) 2>&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } 2>conftest.err; then
22360 libobjs=conftest.$ac_objext
22362 wl=$lt_prog_compiler_wl_F77
22363 pic_flag=$lt_prog_compiler_pic_F77
22369 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22370 allow_undefined_flag_F77=
22371 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22372 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }
22377 archive_cmds_need_lc_F77=no
22379 archive_cmds_need_lc_F77=yes
22381 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22383 cat conftest.err 1>&5
22386 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22387 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22394 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22395 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22396 library_names_spec=
22397 libname_spec='lib$name'
22401 postuninstall_cmds=
22405 shlibpath_overrides_runpath=unknown
22407 dynamic_linker="$host_os ld.so"
22408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22409 if test "$GCC" = yes; then
22410 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22411 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22412 # if the path contains ";" then we assume it to be the separator
22413 # otherwise default to the standard path separator (i.e. ":") - it is
22414 # assumed that no part of a normal pathname contains ";" but that should
22415 # okay in the real world where ";" in dirpaths is itself problematic.
22416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22423 need_lib_prefix=unknown
22424 hardcode_into_libs=no
22426 # when you set need_version to no, make sure it does not cause -set_version
22427 # flags to be left without arguments
22428 need_version=unknown
22433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22434 shlibpath_var=LIBPATH
22436 # AIX 3 has no versioning support, so we append a major version to the name.
22437 soname_spec='${libname}${release}${shared_ext}$major'
22444 hardcode_into_libs=yes
22445 if test "$host_cpu" = ia64; then
22446 # AIX 5 supports IA64
22447 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22448 shlibpath_var=LD_LIBRARY_PATH
22450 # With GCC up to 2.95.x, collect2 would create an import file
22451 # for dependence libraries. The import file would start with
22452 # the line `#! .'. This would cause the generated library to
22453 # depend on `.', always an invalid library. This was fixed in
22454 # development snapshots of GCC prior to 3.0.
22456 aix4 | aix4.[01] | aix4.[01].*)
22457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22459 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22462 can_build_shared=no
22466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22467 # soname into executable. Probably we can add versioning support to
22468 # collect2, so additional links can be useful in future.
22469 if test "$aix_use_runtimelinking" = yes; then
22470 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22471 # instead of lib<name>.a to let people know that these are not
22472 # typical AIX shared libraries.
22473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22475 # We preserve .a as extension for shared libraries through AIX4.2
22476 # and later when we are not doing run time linking.
22477 library_names_spec='${libname}${release}.a $libname.a'
22478 soname_spec='${libname}${release}${shared_ext}$major'
22480 shlibpath_var=LIBPATH
22485 library_names_spec='$libname.ixlibrary $libname.a'
22486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22487 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'
22491 library_names_spec='${libname}${shared_ext}'
22492 dynamic_linker="$host_os ld.so"
22493 shlibpath_var=LIBRARY_PATH
22499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22500 soname_spec='${libname}${release}${shared_ext}$major'
22501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22502 shlibpath_var=LD_LIBRARY_PATH
22503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22505 # the default ld.so.conf also contains /usr/contrib/lib and
22506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22507 # libtool to hard-code these into programs
22510 cygwin* | mingw* | pw32*)
22511 version_type=windows
22516 case $GCC,$host_os in
22517 yes,cygwin* | yes,mingw* | yes,pw32*)
22518 library_names_spec='$libname.dll.a'
22519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22520 postinstall_cmds='base_file=`basename \${file}`~
22521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22522 dldir=$destdir/`dirname \$dlpath`~
22523 test -d \$dldir || mkdir -p \$dldir~
22524 $install_prog $dir/$dlname \$dldir/$dlname~
22525 chmod a+x \$dldir/$dlname'
22526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22527 dlpath=$dir/\$dldll~
22529 shlibpath_overrides_runpath=yes
22533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22534 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22538 # MinGW DLLs use traditional 'lib' prefix
22539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22542 # It is most probably a Windows format PATH printed by
22543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22544 # path with ; separators, and with drive letters. We can handle the
22545 # drive letters (cygwin fileutils understands them), so leave them,
22546 # especially as we might pass files found there to a mingw objdump,
22547 # which wouldn't understand a cygwinified path. Ahh.
22548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22554 # pw32 DLLs use 'pw' prefix rather than 'lib'
22555 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22564 dynamic_linker='Win32 ld.exe'
22565 # FIXME: first we should search . and the directory the executable is in
22569 darwin* | rhapsody*)
22570 dynamic_linker="$host_os dyld"
22571 version_type=darwin
22574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22575 soname_spec='${libname}${release}${major}$shared_ext'
22576 shlibpath_overrides_runpath=yes
22577 shlibpath_var=DYLD_LIBRARY_PATH
22578 shrext_cmds='.dylib'
22579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22580 if test "$GCC" = yes; then
22581 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"`
22583 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22593 soname_spec='${libname}${release}${shared_ext}$major'
22594 shlibpath_var=LD_LIBRARY_PATH
22605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 shlibpath_var=LD_LIBRARY_PATH
22608 shlibpath_overrides_runpath=no
22609 hardcode_into_libs=yes
22610 dynamic_linker='GNU ld.so'
22613 freebsd* | dragonfly*)
22614 # DragonFly does not have aout. When/if they implement a new
22615 # versioning mechanism, adjust this.
22616 if test -x /usr/bin/objformat; then
22617 objformat=`/usr/bin/objformat`
22620 freebsd[123]*) objformat=aout ;;
22621 *) objformat=elf ;;
22624 version_type=freebsd-$objformat
22625 case $version_type in
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22636 shlibpath_var=LD_LIBRARY_PATH
22639 shlibpath_overrides_runpath=yes
22641 freebsd3.[01]* | freebsdelf3.[01]*)
22642 shlibpath_overrides_runpath=yes
22643 hardcode_into_libs=yes
22645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22647 shlibpath_overrides_runpath=no
22648 hardcode_into_libs=yes
22650 freebsd*) # from 4.6 on
22651 shlibpath_overrides_runpath=yes
22652 hardcode_into_libs=yes
22661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22662 soname_spec='${libname}${release}${shared_ext}$major'
22663 shlibpath_var=LD_LIBRARY_PATH
22664 hardcode_into_libs=yes
22667 hpux9* | hpux10* | hpux11*)
22668 # Give a soname corresponding to the major version so that dld.sl refuses to
22669 # link against other versions.
22676 hardcode_into_libs=yes
22677 dynamic_linker="$host_os dld.so"
22678 shlibpath_var=LD_LIBRARY_PATH
22679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681 soname_spec='${libname}${release}${shared_ext}$major'
22682 if test "X$HPUX_IA64_MODE" = X32; then
22683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22691 hardcode_into_libs=yes
22692 dynamic_linker="$host_os dld.sl"
22693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22702 dynamic_linker="$host_os dld.sl"
22703 shlibpath_var=SHLIB_PATH
22704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22709 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22710 postinstall_cmds='chmod 555 $lib'
22717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22718 soname_spec='${libname}${release}${shared_ext}$major'
22719 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=no
22722 hardcode_into_libs=yes
22725 irix5* | irix6* | nonstopux*)
22727 nonstopux*) version_type=nonstopux ;;
22729 if test "$lt_cv_prog_gnu_ld" = yes; then
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22740 irix5* | nonstopux*)
22741 libsuff= shlibsuff=
22744 case $LD in # libtool.m4 will add one of these switches to LD
22745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22746 libsuff= shlibsuff= libmagic=32-bit;;
22747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22748 libsuff=32 shlibsuff=N32 libmagic=N32;;
22749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22751 *) libsuff= shlibsuff= libmagic=never-match;;
22755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22756 shlibpath_overrides_runpath=no
22757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22759 hardcode_into_libs=yes
22762 # No shared lib support for Linux oldld, aout, or coff.
22763 linux*oldld* | linux*aout* | linux*coff*)
22767 # This must be Linux ELF.
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 shlibpath_overrides_runpath=no
22777 # This implies no fast_install, which is unacceptable.
22778 # Some rework will be needed to allow for fast_install
22779 # before this can be enabled.
22780 hardcode_into_libs=yes
22782 # Append ld.so.conf contents to the search path
22783 if test -f /etc/ld.so.conf; then
22784 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' ' '`
22785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22788 # We used to test for /lib/ld.so.1 and disable shared libraries on
22789 # powerpc, because MkLinux only supported shared libraries with the
22790 # GNU dynamic linker. Since this was broken with cross compilers,
22791 # most powerpc-linux boxes support dynamic linking these days and
22792 # people can always --disable-shared, the test was removed, and we
22793 # assume the GNU/Linux dynamic linker is in use.
22794 dynamic_linker='GNU/Linux ld.so'
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=no
22805 hardcode_into_libs=yes
22806 dynamic_linker='GNU ld.so'
22813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22816 dynamic_linker='NetBSD (a.out) ld.so'
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22819 soname_spec='${libname}${release}${shared_ext}$major'
22820 dynamic_linker='NetBSD ld.elf_so'
22822 shlibpath_var=LD_LIBRARY_PATH
22823 shlibpath_overrides_runpath=yes
22824 hardcode_into_libs=yes
22829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22830 shlibpath_var=LD_LIBRARY_PATH
22831 shlibpath_overrides_runpath=yes
22838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22839 soname_spec='${libname}${release}${shared_ext}$major'
22840 shlibpath_var=LD_LIBRARY_PATH
22841 shlibpath_overrides_runpath=yes
22846 sys_lib_dlsearch_path_spec="/usr/lib"
22848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22851 *) need_version=no ;;
22853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22855 shlibpath_var=LD_LIBRARY_PATH
22856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22858 openbsd2.[89] | openbsd2.[89].*)
22859 shlibpath_overrides_runpath=no
22862 shlibpath_overrides_runpath=yes
22866 shlibpath_overrides_runpath=yes
22871 libname_spec='$name'
22874 library_names_spec='$libname${shared_ext} $libname.a'
22875 dynamic_linker='OS/2 ld.exe'
22876 shlibpath_var=LIBPATH
22879 osf3* | osf4* | osf5*)
22883 soname_spec='${libname}${release}${shared_ext}$major'
22884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22885 shlibpath_var=LD_LIBRARY_PATH
22886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 shlibpath_var=LD_LIBRARY_PATH
22897 shlibpath_overrides_runpath=yes
22898 hardcode_into_libs=yes
22899 # ldd complains unless libraries are executable
22900 postinstall_cmds='chmod +x $lib'
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 shlibpath_overrides_runpath=yes
22909 if test "$with_gnu_ld" = yes; then
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 case $host_vendor in
22922 shlibpath_overrides_runpath=no
22924 export_dynamic_flag_spec='${wl}-Blargedynsym'
22925 runpath_var=LD_RUN_PATH
22933 shlibpath_overrides_runpath=no
22934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22940 if test -d /usr/nec ;then
22942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22943 soname_spec='$libname${shared_ext}.$major'
22944 shlibpath_var=LD_LIBRARY_PATH
22948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22949 version_type=freebsd-elf
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 shlibpath_var=LD_LIBRARY_PATH
22955 hardcode_into_libs=yes
22956 if test "$with_gnu_ld" = yes; then
22957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22958 shlibpath_overrides_runpath=no
22960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22961 shlibpath_overrides_runpath=yes
22964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22968 sys_lib_dlsearch_path_spec='/usr/lib'
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 shlibpath_var=LD_LIBRARY_PATH
22982 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22983 echo "${ECHO_T}$dynamic_linker" >&6; }
22984 test "$dynamic_linker" = no && can_build_shared=no
22986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22987 if test "$GCC" = yes; then
22988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22991 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22992 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22993 hardcode_action_F77=
22994 if test -n "$hardcode_libdir_flag_spec_F77" || \
22995 test -n "$runpath_var_F77" || \
22996 test "X$hardcode_automatic_F77" = "Xyes" ; then
22998 # We can hardcode non-existant directories.
22999 if test "$hardcode_direct_F77" != no &&
23000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23001 # have to relink, otherwise we might link with an installed library
23002 # when we should be linking with a yet-to-be-installed one
23003 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23004 test "$hardcode_minus_L_F77" != no; then
23005 # Linking always hardcodes the temporary library directory.
23006 hardcode_action_F77=relink
23008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23009 hardcode_action_F77=immediate
23012 # We cannot hardcode anything, or else we can only hardcode existing
23014 hardcode_action_F77=unsupported
23016 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23017 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23019 if test "$hardcode_action_F77" = relink; then
23020 # Fast installation is not supported
23021 enable_fast_install=no
23022 elif test "$shlibpath_overrides_runpath" = yes ||
23023 test "$enable_shared" = no; then
23024 # Fast installation is not necessary
23025 enable_fast_install=needless
23029 # The else clause should only fire when bootstrapping the
23030 # libtool distribution, otherwise you forgot to ship ltmain.sh
23031 # with your package, and you will get complaints that there are
23032 # no rules to generate ltmain.sh.
23033 if test -f "$ltmain"; then
23034 # See if we are running on zsh, and set the options which allow our commands through
23035 # without removal of \ escapes.
23036 if test -n "${ZSH_VERSION+set}" ; then
23037 setopt NO_GLOB_SUBST
23039 # Now quote all the things that may contain metacharacters while being
23040 # careful not to overquote the AC_SUBSTed values. We take copies of the
23041 # variables and quote the copies for generation of the libtool script.
23042 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23044 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23045 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23046 deplibs_check_method reload_flag reload_cmds need_locks \
23047 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23048 lt_cv_sys_global_symbol_to_c_name_address \
23049 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23050 old_postinstall_cmds old_postuninstall_cmds \
23054 lt_prog_compiler_wl_F77 \
23055 lt_prog_compiler_pic_F77 \
23056 lt_prog_compiler_static_F77 \
23057 lt_prog_compiler_no_builtin_flag_F77 \
23058 export_dynamic_flag_spec_F77 \
23059 thread_safe_flag_spec_F77 \
23060 whole_archive_flag_spec_F77 \
23061 enable_shared_with_static_runtimes_F77 \
23062 old_archive_cmds_F77 \
23063 old_archive_from_new_cmds_F77 \
23064 predep_objects_F77 \
23065 postdep_objects_F77 \
23068 compiler_lib_search_path_F77 \
23070 archive_expsym_cmds_F77 \
23071 postinstall_cmds_F77 \
23072 postuninstall_cmds_F77 \
23073 old_archive_from_expsyms_cmds_F77 \
23074 allow_undefined_flag_F77 \
23075 no_undefined_flag_F77 \
23076 export_symbols_cmds_F77 \
23077 hardcode_libdir_flag_spec_F77 \
23078 hardcode_libdir_flag_spec_ld_F77 \
23079 hardcode_libdir_separator_F77 \
23080 hardcode_automatic_F77 \
23082 module_expsym_cmds_F77 \
23083 lt_cv_prog_compiler_c_o_F77 \
23084 exclude_expsyms_F77 \
23085 include_expsyms_F77; do
23088 old_archive_cmds_F77 | \
23089 old_archive_from_new_cmds_F77 | \
23090 archive_cmds_F77 | \
23091 archive_expsym_cmds_F77 | \
23092 module_cmds_F77 | \
23093 module_expsym_cmds_F77 | \
23094 old_archive_from_expsyms_cmds_F77 | \
23095 export_symbols_cmds_F77 | \
23096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23097 postinstall_cmds | postuninstall_cmds | \
23098 old_postinstall_cmds | old_postuninstall_cmds | \
23099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23100 # Double-quote double-evaled strings.
23101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23110 *'\$0 --fallback-echo"')
23111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23117 cat <<__EOF__ >> "$cfgfile"
23118 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23122 # Shell to use when invoking shell scripts.
23125 # Whether or not to build shared libraries.
23126 build_libtool_libs=$enable_shared
23128 # Whether or not to build static libraries.
23129 build_old_libs=$enable_static
23131 # Whether or not to add -lc for building shared libraries.
23132 build_libtool_need_lc=$archive_cmds_need_lc_F77
23134 # Whether or not to disallow shared libs when runtime libs are static
23135 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23137 # Whether or not to optimize for fast installation.
23138 fast_install=$enable_fast_install
23141 host_alias=$host_alias
23145 # The build system.
23146 build_alias=$build_alias
23150 # An echo program that does not interpret backslashes.
23155 AR_FLAGS=$lt_AR_FLAGS
23160 # LTCC compiler flags.
23161 LTCFLAGS=$lt_LTCFLAGS
23163 # A language-specific compiler.
23164 CC=$lt_compiler_F77
23166 # Is the compiler the GNU C compiler?
23172 # The linker used to build libraries.
23175 # Whether we need hard or soft links.
23178 # A BSD-compatible nm program.
23181 # A symbol stripping program
23184 # Used to examine libraries when file_magic_cmd begins "file"
23185 MAGIC_CMD=$MAGIC_CMD
23187 # Used on cygwin: DLL creation program.
23190 # Used on cygwin: object dumper.
23193 # Used on cygwin: assembler.
23196 # The name of the directory that contains temporary libtool files.
23199 # How to create reloadable object files.
23200 reload_flag=$lt_reload_flag
23201 reload_cmds=$lt_reload_cmds
23203 # How to pass a linker flag through the compiler.
23204 wl=$lt_lt_prog_compiler_wl_F77
23206 # Object file suffix (normally "o").
23207 objext="$ac_objext"
23209 # Old archive suffix (normally "a").
23212 # Shared library suffix (normally ".so").
23213 shrext_cmds='$shrext_cmds'
23215 # Executable file suffix (normally "").
23218 # Additional compiler flags for building library objects.
23219 pic_flag=$lt_lt_prog_compiler_pic_F77
23222 # What is the maximum length of a command?
23223 max_cmd_len=$lt_cv_sys_max_cmd_len
23225 # Does compiler simultaneously support -c and -o options?
23226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23228 # Must we lock files when doing compilation?
23229 need_locks=$lt_need_locks
23231 # Do we need the lib prefix for modules?
23232 need_lib_prefix=$need_lib_prefix
23234 # Do we need a version for libraries?
23235 need_version=$need_version
23237 # Whether dlopen is supported.
23238 dlopen_support=$enable_dlopen
23240 # Whether dlopen of programs is supported.
23241 dlopen_self=$enable_dlopen_self
23243 # Whether dlopen of statically linked programs is supported.
23244 dlopen_self_static=$enable_dlopen_self_static
23246 # Compiler flag to prevent dynamic linking.
23247 link_static_flag=$lt_lt_prog_compiler_static_F77
23249 # Compiler flag to turn off builtin functions.
23250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23252 # Compiler flag to allow reflexive dlopens.
23253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23255 # Compiler flag to generate shared objects directly from archives.
23256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23258 # Compiler flag to generate thread-safe objects.
23259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23261 # Library versioning type.
23262 version_type=$version_type
23264 # Format of library name prefix.
23265 libname_spec=$lt_libname_spec
23267 # List of archive names. First name is the real one, the rest are links.
23268 # The last name is the one that the linker finds with -lNAME.
23269 library_names_spec=$lt_library_names_spec
23271 # The coded name of the library, if different from the real name.
23272 soname_spec=$lt_soname_spec
23274 # Commands used to build and install an old-style archive.
23276 old_archive_cmds=$lt_old_archive_cmds_F77
23277 old_postinstall_cmds=$lt_old_postinstall_cmds
23278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23280 # Create an old-style archive from a shared archive.
23281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23283 # Create a temporary old-style archive to link instead of a shared archive.
23284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23286 # Commands used to build and install a shared archive.
23287 archive_cmds=$lt_archive_cmds_F77
23288 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23289 postinstall_cmds=$lt_postinstall_cmds
23290 postuninstall_cmds=$lt_postuninstall_cmds
23292 # Commands used to build a loadable module (assumed same as above if empty)
23293 module_cmds=$lt_module_cmds_F77
23294 module_expsym_cmds=$lt_module_expsym_cmds_F77
23296 # Commands to strip libraries.
23297 old_striplib=$lt_old_striplib
23298 striplib=$lt_striplib
23300 # Dependencies to place before the objects being linked to create a
23302 predep_objects=$lt_predep_objects_F77
23304 # Dependencies to place after the objects being linked to create a
23306 postdep_objects=$lt_postdep_objects_F77
23308 # Dependencies to place before the objects being linked to create a
23310 predeps=$lt_predeps_F77
23312 # Dependencies to place after the objects being linked to create a
23314 postdeps=$lt_postdeps_F77
23316 # The library search path used internally by the compiler when linking
23317 # a shared library.
23318 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23320 # Method to check whether dependent libraries are shared objects.
23321 deplibs_check_method=$lt_deplibs_check_method
23323 # Command to use when deplibs_check_method == file_magic.
23324 file_magic_cmd=$lt_file_magic_cmd
23326 # Flag that allows shared libraries with undefined symbols to be built.
23327 allow_undefined_flag=$lt_allow_undefined_flag_F77
23329 # Flag that forces no undefined symbols.
23330 no_undefined_flag=$lt_no_undefined_flag_F77
23332 # Commands used to finish a libtool library installation in a directory.
23333 finish_cmds=$lt_finish_cmds
23335 # Same as above, but a single script fragment to be evaled but not shown.
23336 finish_eval=$lt_finish_eval
23338 # Take the output of nm and produce a listing of raw symbols and C names.
23339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23341 # Transform the output of nm in a proper C declaration
23342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23344 # Transform the output of nm in a C name address pair
23345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23347 # This is the shared library runtime path variable.
23348 runpath_var=$runpath_var
23350 # This is the shared library path variable.
23351 shlibpath_var=$shlibpath_var
23353 # Is shlibpath searched before the hard-coded library search path?
23354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23356 # How to hardcode a shared library path into an executable.
23357 hardcode_action=$hardcode_action_F77
23359 # Whether we should hardcode library paths into libraries.
23360 hardcode_into_libs=$hardcode_into_libs
23362 # Flag to hardcode \$libdir into a binary during linking.
23363 # This must work even if \$libdir does not exist.
23364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23366 # If ld is used when linking, flag to hardcode \$libdir into
23367 # a binary during linking. This must work even if \$libdir does
23369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23371 # Whether we need a single -rpath flag with a separated argument.
23372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23375 # resulting binary.
23376 hardcode_direct=$hardcode_direct_F77
23378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23379 # resulting binary.
23380 hardcode_minus_L=$hardcode_minus_L_F77
23382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23383 # the resulting binary.
23384 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23386 # Set to yes if building a shared library automatically hardcodes DIR into the library
23387 # and all subsequent libraries and executables linked against it.
23388 hardcode_automatic=$hardcode_automatic_F77
23390 # Variables whose values should be saved in libtool wrapper scripts and
23391 # restored at relink time.
23392 variables_saved_for_relink="$variables_saved_for_relink"
23394 # Whether libtool must link a program against all its dependency libraries.
23395 link_all_deplibs=$link_all_deplibs_F77
23397 # Compile-time system search path for libraries
23398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23400 # Run-time system search path for libraries
23401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23403 # Fix the shell variable \$srcfile for the compiler.
23404 fix_srcfile_path="$fix_srcfile_path_F77"
23406 # Set to yes if exported symbols are required.
23407 always_export_symbols=$always_export_symbols_F77
23409 # The commands to list exported symbols.
23410 export_symbols_cmds=$lt_export_symbols_cmds_F77
23412 # The commands to extract the exported symbol list from a shared archive.
23413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23415 # Symbols that should not be listed in the preloaded symbols.
23416 exclude_expsyms=$lt_exclude_expsyms_F77
23418 # Symbols that must always be exported.
23419 include_expsyms=$lt_include_expsyms_F77
23421 # ### END LIBTOOL TAG CONFIG: $tagname
23427 # If there is no Makefile yet, we rely on a make rule to execute
23428 # `config.status --recheck' to rerun these tests and create the
23429 # libtool script then.
23430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23431 if test -f "$ltmain_in"; then
23432 test -f Makefile && make "$ltmain"
23438 ac_cpp='$CPP $CPPFLAGS'
23439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23451 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23453 ac_cpp='$CPP $CPPFLAGS'
23454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23459 # Source file extension for Java test sources.
23462 # Object file extension for compiled Java test sources.
23466 # Code to be used in simple compile tests
23467 lt_simple_compile_test_code="class foo {}\n"
23469 # Code to be used in simple link tests
23470 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23474 # If no C compiler was specified, use CC.
23477 # If no C compiler flags were specified, use CFLAGS.
23478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23480 # Allow CC to be a program name with arguments.
23484 # save warnings/boilerplate of simple test code
23485 ac_outfile=conftest.$ac_objext
23486 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23487 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23488 _lt_compiler_boilerplate=`cat conftest.err`
23491 ac_outfile=conftest.$ac_objext
23492 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23493 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23494 _lt_linker_boilerplate=`cat conftest.err`
23498 # Allow CC to be a program name with arguments.
23503 for cc_temp in $compiler""; do
23505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23514 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23515 archive_cmds_need_lc_GCJ=no
23517 old_archive_cmds_GCJ=$old_archive_cmds
23520 lt_prog_compiler_no_builtin_flag_GCJ=
23522 if test "$GCC" = yes; then
23523 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23526 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 lt_cv_prog_compiler_rtti_exceptions=no
23532 ac_outfile=conftest.$ac_objext
23533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23534 lt_compiler_flag="-fno-rtti -fno-exceptions"
23535 # Insert the option either (1) after the last *FLAGS variable, or
23536 # (2) before a word containing "conftest.", or (3) at the end.
23537 # Note that $ac_compile itself does not contain backslashes and begins
23538 # with a dollar sign (not a hyphen), so the echo should work correctly.
23539 # The option is referenced via a variable to avoid confusing sed.
23540 lt_compile=`echo "$ac_compile" | $SED \
23541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23543 -e 's:$: $lt_compiler_flag:'`
23544 (eval echo "\"\$as_me:23544: $lt_compile\"" >&5)
23545 (eval "$lt_compile" 2>conftest.err)
23547 cat conftest.err >&5
23548 echo "$as_me:23548: \$? = $ac_status" >&5
23549 if (exit $ac_status) && test -s "$ac_outfile"; then
23550 # The compiler can only warn and ignore the option if not recognized
23551 # So say no if there are warnings other than the usual output.
23552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23555 lt_cv_prog_compiler_rtti_exceptions=yes
23561 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23562 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23565 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23572 lt_prog_compiler_wl_GCJ=
23573 lt_prog_compiler_pic_GCJ=
23574 lt_prog_compiler_static_GCJ=
23576 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23577 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23579 if test "$GCC" = yes; then
23580 lt_prog_compiler_wl_GCJ='-Wl,'
23581 lt_prog_compiler_static_GCJ='-static'
23585 # All AIX code is PIC.
23586 if test "$host_cpu" = ia64; then
23587 # AIX 5 now supports IA64 processor
23588 lt_prog_compiler_static_GCJ='-Bstatic'
23593 # FIXME: we need at least 68020 code to build shared libraries, but
23594 # adding the `-m68020' flag to GCC prevents building anything better,
23596 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23599 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23600 # PIC is the default for these OSes.
23603 mingw* | pw32* | os2*)
23604 # This hack is so that the source file can tell whether it is being
23605 # built for inclusion in a dll (and should export symbols for example).
23606 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23609 darwin* | rhapsody*)
23610 # PIC is the default on this platform
23611 # Common symbols not allowed in MH_DYLIB files
23612 lt_prog_compiler_pic_GCJ='-fno-common'
23616 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23617 # Instead, we relocate shared libraries at runtime.
23621 # Just because we use GCC doesn't mean we suddenly get shared libraries
23622 # on systems that don't support them.
23623 lt_prog_compiler_can_build_shared_GCJ=no
23628 if test -d /usr/nec; then
23629 lt_prog_compiler_pic_GCJ=-Kconform_pic
23634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23635 # not for PA HP-UX.
23641 lt_prog_compiler_pic_GCJ='-fPIC'
23647 lt_prog_compiler_pic_GCJ='-fPIC'
23651 # PORTME Check for flag to pass linker flags through the system compiler.
23654 lt_prog_compiler_wl_GCJ='-Wl,'
23655 if test "$host_cpu" = ia64; then
23656 # AIX 5 now supports IA64 processor
23657 lt_prog_compiler_static_GCJ='-Bstatic'
23659 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23663 # PIC is the default on this platform
23664 # Common symbols not allowed in MH_DYLIB files
23665 case $cc_basename in
23667 lt_prog_compiler_pic_GCJ='-qnocommon'
23668 lt_prog_compiler_wl_GCJ='-Wl,'
23673 mingw* | pw32* | os2*)
23674 # This hack is so that the source file can tell whether it is being
23675 # built for inclusion in a dll (and should export symbols for example).
23676 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23679 hpux9* | hpux10* | hpux11*)
23680 lt_prog_compiler_wl_GCJ='-Wl,'
23681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23682 # not for PA HP-UX.
23688 lt_prog_compiler_pic_GCJ='+Z'
23691 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23692 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23695 irix5* | irix6* | nonstopux*)
23696 lt_prog_compiler_wl_GCJ='-Wl,'
23697 # PIC (with -KPIC) is the default.
23698 lt_prog_compiler_static_GCJ='-non_shared'
23702 lt_prog_compiler_pic_GCJ='-KPIC'
23703 lt_prog_compiler_static_GCJ='-Bstatic'
23707 case $cc_basename in
23709 lt_prog_compiler_wl_GCJ='-Wl,'
23710 lt_prog_compiler_pic_GCJ='-KPIC'
23711 lt_prog_compiler_static_GCJ='-static'
23713 pgcc* | pgf77* | pgf90* | pgf95*)
23714 # Portland Group compilers (*not* the Pentium gcc compiler,
23715 # which looks to be a dead project)
23716 lt_prog_compiler_wl_GCJ='-Wl,'
23717 lt_prog_compiler_pic_GCJ='-fpic'
23718 lt_prog_compiler_static_GCJ='-Bstatic'
23721 lt_prog_compiler_wl_GCJ='-Wl,'
23722 # All Alpha code is PIC.
23723 lt_prog_compiler_static_GCJ='-non_shared'
23728 osf3* | osf4* | osf5*)
23729 lt_prog_compiler_wl_GCJ='-Wl,'
23730 # All OSF/1 code is PIC.
23731 lt_prog_compiler_static_GCJ='-non_shared'
23735 lt_prog_compiler_pic_GCJ='-KPIC'
23736 lt_prog_compiler_static_GCJ='-Bstatic'
23737 case $cc_basename in
23738 f77* | f90* | f95*)
23739 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23741 lt_prog_compiler_wl_GCJ='-Wl,';;
23746 lt_prog_compiler_wl_GCJ='-Qoption ld '
23747 lt_prog_compiler_pic_GCJ='-PIC'
23748 lt_prog_compiler_static_GCJ='-Bstatic'
23751 sysv4 | sysv4.2uw2* | sysv4.3*)
23752 lt_prog_compiler_wl_GCJ='-Wl,'
23753 lt_prog_compiler_pic_GCJ='-KPIC'
23754 lt_prog_compiler_static_GCJ='-Bstatic'
23758 if test -d /usr/nec ;then
23759 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23760 lt_prog_compiler_static_GCJ='-Bstatic'
23764 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23765 lt_prog_compiler_wl_GCJ='-Wl,'
23766 lt_prog_compiler_pic_GCJ='-KPIC'
23767 lt_prog_compiler_static_GCJ='-Bstatic'
23771 lt_prog_compiler_wl_GCJ='-Wl,'
23772 lt_prog_compiler_can_build_shared_GCJ=no
23776 lt_prog_compiler_pic_GCJ='-pic'
23777 lt_prog_compiler_static_GCJ='-Bstatic'
23781 lt_prog_compiler_can_build_shared_GCJ=no
23786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23787 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23790 # Check to make sure the PIC flag actually works.
23792 if test -n "$lt_prog_compiler_pic_GCJ"; then
23794 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23796 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23799 lt_prog_compiler_pic_works_GCJ=no
23800 ac_outfile=conftest.$ac_objext
23801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23802 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23803 # Insert the option either (1) after the last *FLAGS variable, or
23804 # (2) before a word containing "conftest.", or (3) at the end.
23805 # Note that $ac_compile itself does not contain backslashes and begins
23806 # with a dollar sign (not a hyphen), so the echo should work correctly.
23807 # The option is referenced via a variable to avoid confusing sed.
23808 lt_compile=`echo "$ac_compile" | $SED \
23809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23811 -e 's:$: $lt_compiler_flag:'`
23812 (eval echo "\"\$as_me:23812: $lt_compile\"" >&5)
23813 (eval "$lt_compile" 2>conftest.err)
23815 cat conftest.err >&5
23816 echo "$as_me:23816: \$? = $ac_status" >&5
23817 if (exit $ac_status) && test -s "$ac_outfile"; then
23818 # The compiler can only warn and ignore the option if not recognized
23819 # So say no if there are warnings other than the usual output.
23820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23823 lt_prog_compiler_pic_works_GCJ=yes
23829 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23830 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23832 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23833 case $lt_prog_compiler_pic_GCJ in
23835 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23838 lt_prog_compiler_pic_GCJ=
23839 lt_prog_compiler_can_build_shared_GCJ=no
23844 # For platforms which do not support PIC, -DPIC is meaningless:
23846 lt_prog_compiler_pic_GCJ=
23849 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23854 # Check to make sure the static flag actually works.
23856 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23857 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23858 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23859 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23862 lt_prog_compiler_static_works_GCJ=no
23863 save_LDFLAGS="$LDFLAGS"
23864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23865 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23867 # The linker can only warn and ignore the option if not recognized
23868 # So say no if there are warnings
23869 if test -s conftest.err; then
23870 # Append any errors to the config.log.
23871 cat conftest.err 1>&5
23872 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23874 if diff conftest.exp conftest.er2 >/dev/null; then
23875 lt_prog_compiler_static_works_GCJ=yes
23878 lt_prog_compiler_static_works_GCJ=yes
23882 LDFLAGS="$save_LDFLAGS"
23885 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23886 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23888 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23891 lt_prog_compiler_static_GCJ=
23895 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23897 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 lt_cv_prog_compiler_c_o_GCJ=no
23901 $rm -r conftest 2>/dev/null
23905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23907 lt_compiler_flag="-o out/conftest2.$ac_objext"
23908 # Insert the option either (1) after the last *FLAGS variable, or
23909 # (2) before a word containing "conftest.", or (3) at the end.
23910 # Note that $ac_compile itself does not contain backslashes and begins
23911 # with a dollar sign (not a hyphen), so the echo should work correctly.
23912 lt_compile=`echo "$ac_compile" | $SED \
23913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23915 -e 's:$: $lt_compiler_flag:'`
23916 (eval echo "\"\$as_me:23916: $lt_compile\"" >&5)
23917 (eval "$lt_compile" 2>out/conftest.err)
23919 cat out/conftest.err >&5
23920 echo "$as_me:23920: \$? = $ac_status" >&5
23921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23923 # The compiler can only warn and ignore the option if not recognized
23924 # So say no if there are warnings
23925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23928 lt_cv_prog_compiler_c_o_GCJ=yes
23933 # SGI C++ compiler will create directory out/ii_files/ for
23934 # template instantiation
23935 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23936 $rm out/* && rmdir out
23942 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23943 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23946 hard_links="nottested"
23947 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23948 # do not overwrite the value of need_locks provided by the user
23949 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23950 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23955 ln conftest.a conftest.b 2>&5 || hard_links=no
23956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23957 { echo "$as_me:$LINENO: result: $hard_links" >&5
23958 echo "${ECHO_T}$hard_links" >&6; }
23959 if test "$hard_links" = no; then
23960 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23961 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23968 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23972 allow_undefined_flag_GCJ=
23973 enable_shared_with_static_runtimes_GCJ=no
23975 archive_expsym_cmds_GCJ=
23976 old_archive_From_new_cmds_GCJ=
23977 old_archive_from_expsyms_cmds_GCJ=
23978 export_dynamic_flag_spec_GCJ=
23979 whole_archive_flag_spec_GCJ=
23980 thread_safe_flag_spec_GCJ=
23981 hardcode_libdir_flag_spec_GCJ=
23982 hardcode_libdir_flag_spec_ld_GCJ=
23983 hardcode_libdir_separator_GCJ=
23984 hardcode_direct_GCJ=no
23985 hardcode_minus_L_GCJ=no
23986 hardcode_shlibpath_var_GCJ=unsupported
23987 link_all_deplibs_GCJ=unknown
23988 hardcode_automatic_GCJ=no
23990 module_expsym_cmds_GCJ=
23991 always_export_symbols_GCJ=no
23992 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23993 # include_expsyms should be a list of space-separated symbols to be *always*
23994 # included in the symbol list
23995 include_expsyms_GCJ=
23996 # exclude_expsyms can be an extended regexp of symbols to exclude
23997 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23999 # as well as any symbol that contains `d'.
24000 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24002 # platforms (ab)use it in PIC code, but their linkers get confused if
24003 # the symbol is explicitly referenced. Since portable code cannot
24004 # rely on this symbol name, it's probably fine to never include it in
24005 # preloaded symbol tables.
24006 extract_expsyms_cmds=
24007 # Just being paranoid about ensuring that cc_basename is set.
24008 for cc_temp in $compiler""; do
24010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24016 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24019 cygwin* | mingw* | pw32*)
24020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24021 # When not using gcc, we currently assume that we are using
24022 # Microsoft Visual C++.
24023 if test "$GCC" != yes; then
24028 # we just hope/assume this is gcc and not c89 (= MSVC++)
24037 if test "$with_gnu_ld" = yes; then
24038 # If archive_cmds runs LD, not CC, wlarc should be empty
24041 # Set some defaults for GNU ld with shared library support. These
24042 # are reset later if shared libraries are not supported. Putting them
24043 # here allows them to be overridden if necessary.
24044 runpath_var=LD_RUN_PATH
24045 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24046 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24047 # ancient GNU ld didn't support --whole-archive et. al.
24048 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24049 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24051 whole_archive_flag_spec_GCJ=
24053 supports_anon_versioning=no
24054 case `$LD -v 2>/dev/null` in
24055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24058 *\ 2.11.*) ;; # other 2.11 versions
24059 *) supports_anon_versioning=yes ;;
24062 # See if GNU ld supports shared libraries.
24064 aix3* | aix4* | aix5*)
24065 # On AIX/PPC, the GNU linker is very broken
24066 if test "$host_cpu" != ia64; then
24070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24071 *** to be unable to reliably create shared libraries on AIX.
24072 *** Therefore, libtool is disabling shared libraries support. If you
24073 *** really care for shared libraries, you may want to modify your PATH
24074 *** so that a non-GNU linker is found, and then restart.
24081 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)'
24082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24083 hardcode_minus_L_GCJ=yes
24085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24086 # that the semantics of dynamic libraries on AmigaOS, at least up
24087 # to version 4, is to share data among multiple programs linked
24088 # with the same dynamic library. Since this doesn't match the
24089 # behavior of shared libraries on other platforms, we can't use
24095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24096 allow_undefined_flag_GCJ=unsupported
24097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24098 # support --undefined. This deserves some investigation. FIXME
24099 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24105 cygwin* | mingw* | pw32*)
24106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24107 # as there is no search path for DLLs.
24108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24109 allow_undefined_flag_GCJ=unsupported
24110 always_export_symbols_GCJ=no
24111 enable_shared_with_static_runtimes_GCJ=yes
24112 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24116 # If the export-symbols file already is a .def file (1st line
24117 # is EXPORTS), use it as is; otherwise, prepend...
24118 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24119 cp $export_symbols $output_objdir/$soname.def;
24121 echo EXPORTS > $output_objdir/$soname.def;
24122 cat $export_symbols >> $output_objdir/$soname.def;
24124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24131 hardcode_direct_GCJ=no
24132 hardcode_shlibpath_var_GCJ=no
24133 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24134 export_dynamic_flag_spec_GCJ='${wl}-E'
24135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24136 # Instead, shared libraries are loaded at an image base (0x10000000 by
24137 # default) and relocated if they conflict, which is a slow very memory
24138 # consuming and fragmenting process. To avoid this, we pick a random,
24139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24141 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'
24142 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'
24146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24148 case $cc_basename,$host_cpu in
24149 pgcc*) # Portland Group C compiler
24150 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'
24151 tmp_addflag=' $pic_flag'
24153 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24154 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'
24155 tmp_addflag=' $pic_flag -Mnomain' ;;
24156 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24157 tmp_addflag=' -i_dynamic' ;;
24158 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24159 tmp_addflag=' -i_dynamic -nofor_main' ;;
24160 ifc* | ifort*) # Intel Fortran compiler
24161 tmp_addflag=' -nofor_main' ;;
24163 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24165 if test $supports_anon_versioning = yes; then
24166 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24168 $echo "local: *; };" >> $output_objdir/$libname.ver~
24169 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24178 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24182 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24187 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24192 *** create shared libraries on Solaris systems. Therefore, libtool
24193 *** is disabling shared libraries support. We urge you to upgrade GNU
24194 *** binutils to release 2.9.1 or newer. Another option is to modify
24195 *** your PATH or compiler configuration so that the native linker is
24196 *** used, and then restart.
24199 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24200 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24201 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24208 case `$LD -v 2>&1` in
24209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24214 *** reliably create shared libraries on SCO systems. Therefore, libtool
24215 *** is disabling shared libraries support. We urge you to upgrade GNU
24216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24217 *** your PATH or compiler configuration so that the native linker is
24218 *** used, and then restart.
24223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24224 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24225 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24226 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24235 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24237 hardcode_direct_GCJ=yes
24238 hardcode_shlibpath_var_GCJ=no
24242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24243 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24244 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24251 if test "$ld_shlibs_GCJ" = no; then
24253 hardcode_libdir_flag_spec_GCJ=
24254 export_dynamic_flag_spec_GCJ=
24255 whole_archive_flag_spec_GCJ=
24258 # PORTME fill in a description of your system's linker (not GNU ld)
24261 allow_undefined_flag_GCJ=unsupported
24262 always_export_symbols_GCJ=yes
24263 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'
24264 # Note: this linker hardcodes the directories in LIBPATH if there
24265 # are no directories specified by -L.
24266 hardcode_minus_L_GCJ=yes
24267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24268 # Neither direct hardcoding nor static linking is supported with a
24270 hardcode_direct_GCJ=unsupported
24275 if test "$host_cpu" = ia64; then
24276 # On IA64, the linker does run time linking by default, so we don't
24277 # have to do anything special.
24278 aix_use_runtimelinking=no
24279 exp_sym_flag='-Bexport'
24282 # If we're using GNU nm, then we don't want the "-C" option.
24283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24284 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24285 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'
24287 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'
24289 aix_use_runtimelinking=no
24291 # Test if we are trying to use run time linking or normal
24292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24293 # need to do runtime linking.
24294 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24295 for ld_flag in $LDFLAGS; do
24296 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24297 aix_use_runtimelinking=yes
24304 exp_sym_flag='-bexport'
24305 no_entry_flag='-bnoentry'
24308 # When large executables or shared objects are built, AIX ld can
24309 # have problems creating the table of contents. If linking a library
24310 # or program results in "error TOC overflow" add -mminimal-toc to
24311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24314 archive_cmds_GCJ=''
24315 hardcode_direct_GCJ=yes
24316 hardcode_libdir_separator_GCJ=':'
24317 link_all_deplibs_GCJ=yes
24319 if test "$GCC" = yes; then
24320 case $host_os in aix4.[012]|aix4.[012].*)
24321 # We only want to do this on AIX 4.2 and lower, the check
24322 # below for broken collect2 doesn't work under 4.3+
24323 collect2name=`${CC} -print-prog-name=collect2`
24324 if test -f "$collect2name" && \
24325 strings "$collect2name" | grep resolve_lib_name >/dev/null
24327 # We have reworked collect2
24328 hardcode_direct_GCJ=yes
24330 # We have old collect2
24331 hardcode_direct_GCJ=unsupported
24332 # It fails to find uninstalled libraries when the uninstalled
24333 # path is not listed in the libpath. Setting hardcode_minus_L
24334 # to unsupported forces relinking
24335 hardcode_minus_L_GCJ=yes
24336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24337 hardcode_libdir_separator_GCJ=
24341 shared_flag='-shared'
24342 if test "$aix_use_runtimelinking" = yes; then
24343 shared_flag="$shared_flag "'${wl}-G'
24347 if test "$host_cpu" = ia64; then
24348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24349 # chokes on -Wl,-G. The following line is correct:
24352 if test "$aix_use_runtimelinking" = yes; then
24353 shared_flag='${wl}-G'
24355 shared_flag='${wl}-bM:SRE'
24360 # It seems that -bexpall does not export symbols beginning with
24361 # underscore (_), so it is better to generate a list of symbols to export.
24362 always_export_symbols_GCJ=yes
24363 if test "$aix_use_runtimelinking" = yes; then
24364 # Warning - without using the other runtime loading flags (-brtl),
24365 # -berok will link without error, but may produce a broken library.
24366 allow_undefined_flag_GCJ='-berok'
24367 # Determine the default libpath from the value encoded in an empty executable.
24368 cat >conftest.$ac_ext <<_ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_link") 2>conftest.er1
24392 grep -v '^ *+' conftest.er1 >conftest.err
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } &&
24397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24398 { (case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_try") 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } &&
24407 { ac_try='test -s conftest$ac_exeext'
24408 { (case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_try") 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24420 # Check for a 64-bit object if we didn't find anything.
24421 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; }
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24430 rm -f core conftest.err conftest.$ac_objext \
24431 conftest$ac_exeext conftest.$ac_ext
24432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24435 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"
24437 if test "$host_cpu" = ia64; then
24438 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24439 allow_undefined_flag_GCJ="-z nodefs"
24440 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"
24442 # Determine the default libpath from the value encoded in an empty executable.
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24458 rm -f conftest.$ac_objext conftest$ac_exeext
24459 if { (ac_try="$ac_link"
24460 case "(($ac_try" in
24461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24462 *) ac_try_echo=$ac_try;;
24464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24465 (eval "$ac_link") 2>conftest.er1
24467 grep -v '^ *+' conftest.er1 >conftest.err
24469 cat conftest.err >&5
24470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); } &&
24472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24473 { (case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_try") 2>&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; } &&
24482 { ac_try='test -s conftest$ac_exeext'
24483 { (case "(($ac_try" in
24484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485 *) ac_try_echo=$ac_try;;
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488 (eval "$ac_try") 2>&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; }; then
24493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24495 # Check for a 64-bit object if we didn't find anything.
24496 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; }
24499 echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24505 rm -f core conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
24507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24509 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24510 # Warning - without using the other run time loading flags,
24511 # -berok will link without error, but may produce a broken library.
24512 no_undefined_flag_GCJ=' ${wl}-bernotok'
24513 allow_undefined_flag_GCJ=' ${wl}-berok'
24514 # Exported symbols can be pulled into shared objects from archives
24515 whole_archive_flag_spec_GCJ='$convenience'
24516 archive_cmds_need_lc_GCJ=yes
24517 # This is similar to how AIX traditionally builds its shared libraries.
24518 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'
24524 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)'
24525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24526 hardcode_minus_L_GCJ=yes
24527 # see comment about different semantics on the GNU ld section
24532 export_dynamic_flag_spec_GCJ=-rdynamic
24535 cygwin* | mingw* | pw32*)
24536 # When not using gcc, we currently assume that we are using
24537 # Microsoft Visual C++.
24538 # hardcode_libdir_flag_spec is actually meaningless, as there is
24539 # no search path for DLLs.
24540 hardcode_libdir_flag_spec_GCJ=' '
24541 allow_undefined_flag_GCJ=unsupported
24542 # Tell ltmain to make .lib files, not .a files.
24544 # Tell ltmain to make .dll files, not .so files.
24546 # FIXME: Setting linknames here is a bad hack.
24547 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24548 # The linker will automatically build a .lib file if we build a DLL.
24549 old_archive_From_new_cmds_GCJ='true'
24550 # FIXME: Should let the user specify the lib program.
24551 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24552 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24553 enable_shared_with_static_runtimes_GCJ=yes
24556 darwin* | rhapsody*)
24558 rhapsody* | darwin1.[012])
24559 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24562 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24563 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24565 case ${MACOSX_DEPLOYMENT_TARGET} in
24567 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24570 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24576 archive_cmds_need_lc_GCJ=no
24577 hardcode_direct_GCJ=no
24578 hardcode_automatic_GCJ=yes
24579 hardcode_shlibpath_var_GCJ=unsupported
24580 whole_archive_flag_spec_GCJ=''
24581 link_all_deplibs_GCJ=yes
24582 if test "$GCC" = yes ; then
24583 output_verbose_link_cmd='echo'
24584 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24585 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24586 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24587 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}'
24588 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}'
24590 case $cc_basename in
24592 output_verbose_link_cmd='echo'
24593 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24594 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24595 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24596 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}'
24597 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}'
24607 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24609 hardcode_shlibpath_var_GCJ=no
24616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24617 # support. Future versions do this automatically, but an explicit c++rt0.o
24618 # does not break anything, and helps significantly (at the cost of a little
24621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24622 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24623 hardcode_direct_GCJ=yes
24624 hardcode_shlibpath_var_GCJ=no
24627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24629 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24630 hardcode_direct_GCJ=yes
24631 hardcode_minus_L_GCJ=yes
24632 hardcode_shlibpath_var_GCJ=no
24635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24636 freebsd* | kfreebsd*-gnu | dragonfly*)
24637 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24639 hardcode_direct_GCJ=yes
24640 hardcode_shlibpath_var_GCJ=no
24644 if test "$GCC" = yes; then
24645 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'
24647 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'
24649 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24650 hardcode_libdir_separator_GCJ=:
24651 hardcode_direct_GCJ=yes
24653 # hardcode_minus_L: Not really in the search PATH,
24654 # but as the default location of the library.
24655 hardcode_minus_L_GCJ=yes
24656 export_dynamic_flag_spec_GCJ='${wl}-E'
24660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24661 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24663 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24665 if test "$with_gnu_ld" = no; then
24666 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24667 hardcode_libdir_separator_GCJ=:
24669 hardcode_direct_GCJ=yes
24670 export_dynamic_flag_spec_GCJ='${wl}-E'
24672 # hardcode_minus_L: Not really in the search PATH,
24673 # but as the default location of the library.
24674 hardcode_minus_L_GCJ=yes
24679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24682 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24685 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24688 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24694 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24697 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24700 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24704 if test "$with_gnu_ld" = no; then
24705 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24706 hardcode_libdir_separator_GCJ=:
24710 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24711 hardcode_direct_GCJ=no
24712 hardcode_shlibpath_var_GCJ=no
24715 hardcode_direct_GCJ=yes
24716 export_dynamic_flag_spec_GCJ='${wl}-E'
24718 # hardcode_minus_L: Not really in the search PATH,
24719 # but as the default location of the library.
24720 hardcode_minus_L_GCJ=yes
24726 irix5* | irix6* | nonstopux*)
24727 if test "$GCC" = yes; then
24728 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'
24730 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'
24731 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24734 hardcode_libdir_separator_GCJ=:
24735 link_all_deplibs_GCJ=yes
24739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24742 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24744 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24745 hardcode_direct_GCJ=yes
24746 hardcode_shlibpath_var_GCJ=no
24750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24751 hardcode_direct_GCJ=yes
24752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24753 hardcode_libdir_separator_GCJ=:
24754 hardcode_shlibpath_var_GCJ=no
24758 hardcode_direct_GCJ=yes
24759 hardcode_shlibpath_var_GCJ=no
24760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24761 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24762 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24764 export_dynamic_flag_spec_GCJ='${wl}-E'
24767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24768 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24769 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24772 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24781 hardcode_minus_L_GCJ=yes
24782 allow_undefined_flag_GCJ=unsupported
24783 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'
24784 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24788 if test "$GCC" = yes; then
24789 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24790 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'
24792 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24793 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'
24795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24796 hardcode_libdir_separator_GCJ=:
24799 osf4* | osf5*) # as osf3* with the addition of -msym flag
24800 if test "$GCC" = yes; then
24801 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24802 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'
24803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24805 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24806 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'
24807 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~
24808 $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'
24810 # Both c and cxx compiler support -rpath directly
24811 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24813 hardcode_libdir_separator_GCJ=:
24817 no_undefined_flag_GCJ=' -z text'
24818 if test "$GCC" = yes; then
24820 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24821 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24822 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24825 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24826 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24829 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24830 hardcode_shlibpath_var_GCJ=no
24832 solaris2.[0-5] | solaris2.[0-5].*) ;;
24834 # The compiler driver will combine linker options so we
24835 # cannot just pass the convience library names through
24836 # without $wl, iff we do not link with $LD.
24837 # Luckily, gcc supports the same syntax we need for Sun Studio.
24838 # Supported since Solaris 2.6 (maybe 2.5.1?)
24841 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24843 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' ;;
24846 link_all_deplibs_GCJ=yes
24850 if test "x$host_vendor" = xsequent; then
24851 # Use $CC to link under sequent, because it throws in some extra .o
24852 # files that make .init and .fini sections work.
24853 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24855 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24858 hardcode_direct_GCJ=yes
24859 hardcode_minus_L_GCJ=yes
24860 hardcode_shlibpath_var_GCJ=no
24864 case $host_vendor in
24866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867 hardcode_direct_GCJ=yes # is this really true???
24870 ## LD is ld it makes a PLAMLIB
24871 ## CC just makes a GrossModule.
24872 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24873 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24874 hardcode_direct_GCJ=no
24877 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24878 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24881 runpath_var='LD_RUN_PATH'
24882 hardcode_shlibpath_var_GCJ=no
24886 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24887 hardcode_shlibpath_var_GCJ=no
24888 export_dynamic_flag_spec_GCJ='-Bexport'
24892 if test -d /usr/nec; then
24893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24894 hardcode_shlibpath_var_GCJ=no
24895 runpath_var=LD_RUN_PATH
24896 hardcode_runpath_var=yes
24901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24902 no_undefined_flag_GCJ='${wl}-z,text'
24903 archive_cmds_need_lc_GCJ=no
24904 hardcode_shlibpath_var_GCJ=no
24905 runpath_var='LD_RUN_PATH'
24907 if test "$GCC" = yes; then
24908 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24909 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24911 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24912 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24916 sysv5* | sco3.2v5* | sco5v6*)
24917 # Note: We can NOT use -z defs as we might desire, because we do not
24918 # link with -lc, and that would cause any symbols used from libc to
24919 # always be unresolved, which means just about no library would
24920 # ever link correctly. If we're not using GNU ld we use -z text
24921 # though, which does catch some bad symbols but isn't as heavy-handed
24923 no_undefined_flag_GCJ='${wl}-z,text'
24924 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24925 archive_cmds_need_lc_GCJ=no
24926 hardcode_shlibpath_var_GCJ=no
24927 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24928 hardcode_libdir_separator_GCJ=':'
24929 link_all_deplibs_GCJ=yes
24930 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24931 runpath_var='LD_RUN_PATH'
24933 if test "$GCC" = yes; then
24934 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24935 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24937 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24938 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24945 hardcode_shlibpath_var_GCJ=no
24954 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24955 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24956 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24959 # Do we need to explicitly link libc?
24961 case "x$archive_cmds_need_lc_GCJ" in
24963 # Assume -lc should be added
24964 archive_cmds_need_lc_GCJ=yes
24966 if test "$enable_shared" = yes && test "$GCC" = yes; then
24967 case $archive_cmds_GCJ in
24969 # FIXME: we may have to deal with multi-command sequences.
24972 # Test whether the compiler implicitly links with -lc since on some
24973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24974 # to ld, don't add -lc before -lgcc.
24975 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24981 (eval $ac_compile) 2>&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } 2>conftest.err; then
24987 libobjs=conftest.$ac_objext
24989 wl=$lt_prog_compiler_wl_GCJ
24990 pic_flag=$lt_prog_compiler_pic_GCJ
24996 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24997 allow_undefined_flag_GCJ=
24998 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24999 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }
25004 archive_cmds_need_lc_GCJ=no
25006 archive_cmds_need_lc_GCJ=yes
25008 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25010 cat conftest.err 1>&5
25013 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25014 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25021 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25022 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25023 library_names_spec=
25024 libname_spec='lib$name'
25028 postuninstall_cmds=
25032 shlibpath_overrides_runpath=unknown
25034 dynamic_linker="$host_os ld.so"
25035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25036 if test "$GCC" = yes; then
25037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25038 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25039 # if the path contains ";" then we assume it to be the separator
25040 # otherwise default to the standard path separator (i.e. ":") - it is
25041 # assumed that no part of a normal pathname contains ";" but that should
25042 # okay in the real world where ";" in dirpaths is itself problematic.
25043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25050 need_lib_prefix=unknown
25051 hardcode_into_libs=no
25053 # when you set need_version to no, make sure it does not cause -set_version
25054 # flags to be left without arguments
25055 need_version=unknown
25060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25061 shlibpath_var=LIBPATH
25063 # AIX 3 has no versioning support, so we append a major version to the name.
25064 soname_spec='${libname}${release}${shared_ext}$major'
25071 hardcode_into_libs=yes
25072 if test "$host_cpu" = ia64; then
25073 # AIX 5 supports IA64
25074 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25075 shlibpath_var=LD_LIBRARY_PATH
25077 # With GCC up to 2.95.x, collect2 would create an import file
25078 # for dependence libraries. The import file would start with
25079 # the line `#! .'. This would cause the generated library to
25080 # depend on `.', always an invalid library. This was fixed in
25081 # development snapshots of GCC prior to 3.0.
25083 aix4 | aix4.[01] | aix4.[01].*)
25084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25086 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25089 can_build_shared=no
25093 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25094 # soname into executable. Probably we can add versioning support to
25095 # collect2, so additional links can be useful in future.
25096 if test "$aix_use_runtimelinking" = yes; then
25097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25098 # instead of lib<name>.a to let people know that these are not
25099 # typical AIX shared libraries.
25100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25102 # We preserve .a as extension for shared libraries through AIX4.2
25103 # and later when we are not doing run time linking.
25104 library_names_spec='${libname}${release}.a $libname.a'
25105 soname_spec='${libname}${release}${shared_ext}$major'
25107 shlibpath_var=LIBPATH
25112 library_names_spec='$libname.ixlibrary $libname.a'
25113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25114 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'
25118 library_names_spec='${libname}${shared_ext}'
25119 dynamic_linker="$host_os ld.so"
25120 shlibpath_var=LIBRARY_PATH
25126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25127 soname_spec='${libname}${release}${shared_ext}$major'
25128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25129 shlibpath_var=LD_LIBRARY_PATH
25130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25132 # the default ld.so.conf also contains /usr/contrib/lib and
25133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25134 # libtool to hard-code these into programs
25137 cygwin* | mingw* | pw32*)
25138 version_type=windows
25143 case $GCC,$host_os in
25144 yes,cygwin* | yes,mingw* | yes,pw32*)
25145 library_names_spec='$libname.dll.a'
25146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25147 postinstall_cmds='base_file=`basename \${file}`~
25148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25149 dldir=$destdir/`dirname \$dlpath`~
25150 test -d \$dldir || mkdir -p \$dldir~
25151 $install_prog $dir/$dlname \$dldir/$dlname~
25152 chmod a+x \$dldir/$dlname'
25153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25154 dlpath=$dir/\$dldll~
25156 shlibpath_overrides_runpath=yes
25160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25165 # MinGW DLLs use traditional 'lib' prefix
25166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25168 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25169 # It is most probably a Windows format PATH printed by
25170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25171 # path with ; separators, and with drive letters. We can handle the
25172 # drive letters (cygwin fileutils understands them), so leave them,
25173 # especially as we might pass files found there to a mingw objdump,
25174 # which wouldn't understand a cygwinified path. Ahh.
25175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25181 # pw32 DLLs use 'pw' prefix rather than 'lib'
25182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25191 dynamic_linker='Win32 ld.exe'
25192 # FIXME: first we should search . and the directory the executable is in
25196 darwin* | rhapsody*)
25197 dynamic_linker="$host_os dyld"
25198 version_type=darwin
25201 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25202 soname_spec='${libname}${release}${major}$shared_ext'
25203 shlibpath_overrides_runpath=yes
25204 shlibpath_var=DYLD_LIBRARY_PATH
25205 shrext_cmds='.dylib'
25206 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25207 if test "$GCC" = yes; then
25208 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"`
25210 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25220 soname_spec='${libname}${release}${shared_ext}$major'
25221 shlibpath_var=LD_LIBRARY_PATH
25232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25233 soname_spec='${libname}${release}${shared_ext}$major'
25234 shlibpath_var=LD_LIBRARY_PATH
25235 shlibpath_overrides_runpath=no
25236 hardcode_into_libs=yes
25237 dynamic_linker='GNU ld.so'
25240 freebsd* | dragonfly*)
25241 # DragonFly does not have aout. When/if they implement a new
25242 # versioning mechanism, adjust this.
25243 if test -x /usr/bin/objformat; then
25244 objformat=`/usr/bin/objformat`
25247 freebsd[123]*) objformat=aout ;;
25248 *) objformat=elf ;;
25251 version_type=freebsd-$objformat
25252 case $version_type in
25254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25263 shlibpath_var=LD_LIBRARY_PATH
25266 shlibpath_overrides_runpath=yes
25268 freebsd3.[01]* | freebsdelf3.[01]*)
25269 shlibpath_overrides_runpath=yes
25270 hardcode_into_libs=yes
25272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25274 shlibpath_overrides_runpath=no
25275 hardcode_into_libs=yes
25277 freebsd*) # from 4.6 on
25278 shlibpath_overrides_runpath=yes
25279 hardcode_into_libs=yes
25288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25289 soname_spec='${libname}${release}${shared_ext}$major'
25290 shlibpath_var=LD_LIBRARY_PATH
25291 hardcode_into_libs=yes
25294 hpux9* | hpux10* | hpux11*)
25295 # Give a soname corresponding to the major version so that dld.sl refuses to
25296 # link against other versions.
25303 hardcode_into_libs=yes
25304 dynamic_linker="$host_os dld.so"
25305 shlibpath_var=LD_LIBRARY_PATH
25306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25308 soname_spec='${libname}${release}${shared_ext}$major'
25309 if test "X$HPUX_IA64_MODE" = X32; then
25310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25318 hardcode_into_libs=yes
25319 dynamic_linker="$host_os dld.sl"
25320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25323 soname_spec='${libname}${release}${shared_ext}$major'
25324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25329 dynamic_linker="$host_os dld.sl"
25330 shlibpath_var=SHLIB_PATH
25331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25333 soname_spec='${libname}${release}${shared_ext}$major'
25336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25337 postinstall_cmds='chmod 555 $lib'
25344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25345 soname_spec='${libname}${release}${shared_ext}$major'
25346 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25347 shlibpath_var=LD_LIBRARY_PATH
25348 shlibpath_overrides_runpath=no
25349 hardcode_into_libs=yes
25352 irix5* | irix6* | nonstopux*)
25354 nonstopux*) version_type=nonstopux ;;
25356 if test "$lt_cv_prog_gnu_ld" = yes; then
25364 soname_spec='${libname}${release}${shared_ext}$major'
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25367 irix5* | nonstopux*)
25368 libsuff= shlibsuff=
25371 case $LD in # libtool.m4 will add one of these switches to LD
25372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25373 libsuff= shlibsuff= libmagic=32-bit;;
25374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25375 libsuff=32 shlibsuff=N32 libmagic=N32;;
25376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25377 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25378 *) libsuff= shlibsuff= libmagic=never-match;;
25382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25383 shlibpath_overrides_runpath=no
25384 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25385 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25386 hardcode_into_libs=yes
25389 # No shared lib support for Linux oldld, aout, or coff.
25390 linux*oldld* | linux*aout* | linux*coff*)
25394 # This must be Linux ELF.
25399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400 soname_spec='${libname}${release}${shared_ext}$major'
25401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25402 shlibpath_var=LD_LIBRARY_PATH
25403 shlibpath_overrides_runpath=no
25404 # This implies no fast_install, which is unacceptable.
25405 # Some rework will be needed to allow for fast_install
25406 # before this can be enabled.
25407 hardcode_into_libs=yes
25409 # Append ld.so.conf contents to the search path
25410 if test -f /etc/ld.so.conf; then
25411 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' ' '`
25412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25415 # We used to test for /lib/ld.so.1 and disable shared libraries on
25416 # powerpc, because MkLinux only supported shared libraries with the
25417 # GNU dynamic linker. Since this was broken with cross compilers,
25418 # most powerpc-linux boxes support dynamic linking these days and
25419 # people can always --disable-shared, the test was removed, and we
25420 # assume the GNU/Linux dynamic linker is in use.
25421 dynamic_linker='GNU/Linux ld.so'
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=no
25432 hardcode_into_libs=yes
25433 dynamic_linker='GNU ld.so'
25440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25443 dynamic_linker='NetBSD (a.out) ld.so'
25445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25446 soname_spec='${libname}${release}${shared_ext}$major'
25447 dynamic_linker='NetBSD ld.elf_so'
25449 shlibpath_var=LD_LIBRARY_PATH
25450 shlibpath_overrides_runpath=yes
25451 hardcode_into_libs=yes
25456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25457 shlibpath_var=LD_LIBRARY_PATH
25458 shlibpath_overrides_runpath=yes
25465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25466 soname_spec='${libname}${release}${shared_ext}$major'
25467 shlibpath_var=LD_LIBRARY_PATH
25468 shlibpath_overrides_runpath=yes
25473 sys_lib_dlsearch_path_spec="/usr/lib"
25475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25478 *) need_version=no ;;
25480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25482 shlibpath_var=LD_LIBRARY_PATH
25483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25485 openbsd2.[89] | openbsd2.[89].*)
25486 shlibpath_overrides_runpath=no
25489 shlibpath_overrides_runpath=yes
25493 shlibpath_overrides_runpath=yes
25498 libname_spec='$name'
25501 library_names_spec='$libname${shared_ext} $libname.a'
25502 dynamic_linker='OS/2 ld.exe'
25503 shlibpath_var=LIBPATH
25506 osf3* | osf4* | osf5*)
25510 soname_spec='${libname}${release}${shared_ext}$major'
25511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25512 shlibpath_var=LD_LIBRARY_PATH
25513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25522 soname_spec='${libname}${release}${shared_ext}$major'
25523 shlibpath_var=LD_LIBRARY_PATH
25524 shlibpath_overrides_runpath=yes
25525 hardcode_into_libs=yes
25526 # ldd complains unless libraries are executable
25527 postinstall_cmds='chmod +x $lib'
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25534 shlibpath_var=LD_LIBRARY_PATH
25535 shlibpath_overrides_runpath=yes
25536 if test "$with_gnu_ld" = yes; then
25544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25545 soname_spec='${libname}${release}${shared_ext}$major'
25546 shlibpath_var=LD_LIBRARY_PATH
25547 case $host_vendor in
25549 shlibpath_overrides_runpath=no
25551 export_dynamic_flag_spec='${wl}-Blargedynsym'
25552 runpath_var=LD_RUN_PATH
25560 shlibpath_overrides_runpath=no
25561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25567 if test -d /usr/nec ;then
25569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25570 soname_spec='$libname${shared_ext}.$major'
25571 shlibpath_var=LD_LIBRARY_PATH
25575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25576 version_type=freebsd-elf
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 shlibpath_var=LD_LIBRARY_PATH
25582 hardcode_into_libs=yes
25583 if test "$with_gnu_ld" = yes; then
25584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25585 shlibpath_overrides_runpath=no
25587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25588 shlibpath_overrides_runpath=yes
25591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25595 sys_lib_dlsearch_path_spec='/usr/lib'
25600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25601 soname_spec='${libname}${release}${shared_ext}$major'
25602 shlibpath_var=LD_LIBRARY_PATH
25609 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25610 echo "${ECHO_T}$dynamic_linker" >&6; }
25611 test "$dynamic_linker" = no && can_build_shared=no
25613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25614 if test "$GCC" = yes; then
25615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25618 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25619 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25620 hardcode_action_GCJ=
25621 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25622 test -n "$runpath_var_GCJ" || \
25623 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25625 # We can hardcode non-existant directories.
25626 if test "$hardcode_direct_GCJ" != no &&
25627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25628 # have to relink, otherwise we might link with an installed library
25629 # when we should be linking with a yet-to-be-installed one
25630 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25631 test "$hardcode_minus_L_GCJ" != no; then
25632 # Linking always hardcodes the temporary library directory.
25633 hardcode_action_GCJ=relink
25635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25636 hardcode_action_GCJ=immediate
25639 # We cannot hardcode anything, or else we can only hardcode existing
25641 hardcode_action_GCJ=unsupported
25643 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25644 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25646 if test "$hardcode_action_GCJ" = relink; then
25647 # Fast installation is not supported
25648 enable_fast_install=no
25649 elif test "$shlibpath_overrides_runpath" = yes ||
25650 test "$enable_shared" = no; then
25651 # Fast installation is not necessary
25652 enable_fast_install=needless
25656 # The else clause should only fire when bootstrapping the
25657 # libtool distribution, otherwise you forgot to ship ltmain.sh
25658 # with your package, and you will get complaints that there are
25659 # no rules to generate ltmain.sh.
25660 if test -f "$ltmain"; then
25661 # See if we are running on zsh, and set the options which allow our commands through
25662 # without removal of \ escapes.
25663 if test -n "${ZSH_VERSION+set}" ; then
25664 setopt NO_GLOB_SUBST
25666 # Now quote all the things that may contain metacharacters while being
25667 # careful not to overquote the AC_SUBSTed values. We take copies of the
25668 # variables and quote the copies for generation of the libtool script.
25669 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25671 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25672 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25673 deplibs_check_method reload_flag reload_cmds need_locks \
25674 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25675 lt_cv_sys_global_symbol_to_c_name_address \
25676 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25677 old_postinstall_cmds old_postuninstall_cmds \
25681 lt_prog_compiler_wl_GCJ \
25682 lt_prog_compiler_pic_GCJ \
25683 lt_prog_compiler_static_GCJ \
25684 lt_prog_compiler_no_builtin_flag_GCJ \
25685 export_dynamic_flag_spec_GCJ \
25686 thread_safe_flag_spec_GCJ \
25687 whole_archive_flag_spec_GCJ \
25688 enable_shared_with_static_runtimes_GCJ \
25689 old_archive_cmds_GCJ \
25690 old_archive_from_new_cmds_GCJ \
25691 predep_objects_GCJ \
25692 postdep_objects_GCJ \
25695 compiler_lib_search_path_GCJ \
25697 archive_expsym_cmds_GCJ \
25698 postinstall_cmds_GCJ \
25699 postuninstall_cmds_GCJ \
25700 old_archive_from_expsyms_cmds_GCJ \
25701 allow_undefined_flag_GCJ \
25702 no_undefined_flag_GCJ \
25703 export_symbols_cmds_GCJ \
25704 hardcode_libdir_flag_spec_GCJ \
25705 hardcode_libdir_flag_spec_ld_GCJ \
25706 hardcode_libdir_separator_GCJ \
25707 hardcode_automatic_GCJ \
25709 module_expsym_cmds_GCJ \
25710 lt_cv_prog_compiler_c_o_GCJ \
25711 exclude_expsyms_GCJ \
25712 include_expsyms_GCJ; do
25715 old_archive_cmds_GCJ | \
25716 old_archive_from_new_cmds_GCJ | \
25717 archive_cmds_GCJ | \
25718 archive_expsym_cmds_GCJ | \
25719 module_cmds_GCJ | \
25720 module_expsym_cmds_GCJ | \
25721 old_archive_from_expsyms_cmds_GCJ | \
25722 export_symbols_cmds_GCJ | \
25723 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25724 postinstall_cmds | postuninstall_cmds | \
25725 old_postinstall_cmds | old_postuninstall_cmds | \
25726 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25727 # Double-quote double-evaled strings.
25728 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25737 *'\$0 --fallback-echo"')
25738 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25744 cat <<__EOF__ >> "$cfgfile"
25745 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25749 # Shell to use when invoking shell scripts.
25752 # Whether or not to build shared libraries.
25753 build_libtool_libs=$enable_shared
25755 # Whether or not to build static libraries.
25756 build_old_libs=$enable_static
25758 # Whether or not to add -lc for building shared libraries.
25759 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25761 # Whether or not to disallow shared libs when runtime libs are static
25762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25764 # Whether or not to optimize for fast installation.
25765 fast_install=$enable_fast_install
25768 host_alias=$host_alias
25772 # The build system.
25773 build_alias=$build_alias
25777 # An echo program that does not interpret backslashes.
25782 AR_FLAGS=$lt_AR_FLAGS
25787 # LTCC compiler flags.
25788 LTCFLAGS=$lt_LTCFLAGS
25790 # A language-specific compiler.
25791 CC=$lt_compiler_GCJ
25793 # Is the compiler the GNU C compiler?
25799 # The linker used to build libraries.
25802 # Whether we need hard or soft links.
25805 # A BSD-compatible nm program.
25808 # A symbol stripping program
25811 # Used to examine libraries when file_magic_cmd begins "file"
25812 MAGIC_CMD=$MAGIC_CMD
25814 # Used on cygwin: DLL creation program.
25817 # Used on cygwin: object dumper.
25820 # Used on cygwin: assembler.
25823 # The name of the directory that contains temporary libtool files.
25826 # How to create reloadable object files.
25827 reload_flag=$lt_reload_flag
25828 reload_cmds=$lt_reload_cmds
25830 # How to pass a linker flag through the compiler.
25831 wl=$lt_lt_prog_compiler_wl_GCJ
25833 # Object file suffix (normally "o").
25834 objext="$ac_objext"
25836 # Old archive suffix (normally "a").
25839 # Shared library suffix (normally ".so").
25840 shrext_cmds='$shrext_cmds'
25842 # Executable file suffix (normally "").
25845 # Additional compiler flags for building library objects.
25846 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25849 # What is the maximum length of a command?
25850 max_cmd_len=$lt_cv_sys_max_cmd_len
25852 # Does compiler simultaneously support -c and -o options?
25853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25855 # Must we lock files when doing compilation?
25856 need_locks=$lt_need_locks
25858 # Do we need the lib prefix for modules?
25859 need_lib_prefix=$need_lib_prefix
25861 # Do we need a version for libraries?
25862 need_version=$need_version
25864 # Whether dlopen is supported.
25865 dlopen_support=$enable_dlopen
25867 # Whether dlopen of programs is supported.
25868 dlopen_self=$enable_dlopen_self
25870 # Whether dlopen of statically linked programs is supported.
25871 dlopen_self_static=$enable_dlopen_self_static
25873 # Compiler flag to prevent dynamic linking.
25874 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25876 # Compiler flag to turn off builtin functions.
25877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25879 # Compiler flag to allow reflexive dlopens.
25880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25882 # Compiler flag to generate shared objects directly from archives.
25883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25885 # Compiler flag to generate thread-safe objects.
25886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25888 # Library versioning type.
25889 version_type=$version_type
25891 # Format of library name prefix.
25892 libname_spec=$lt_libname_spec
25894 # List of archive names. First name is the real one, the rest are links.
25895 # The last name is the one that the linker finds with -lNAME.
25896 library_names_spec=$lt_library_names_spec
25898 # The coded name of the library, if different from the real name.
25899 soname_spec=$lt_soname_spec
25901 # Commands used to build and install an old-style archive.
25903 old_archive_cmds=$lt_old_archive_cmds_GCJ
25904 old_postinstall_cmds=$lt_old_postinstall_cmds
25905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25907 # Create an old-style archive from a shared archive.
25908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25910 # Create a temporary old-style archive to link instead of a shared archive.
25911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25913 # Commands used to build and install a shared archive.
25914 archive_cmds=$lt_archive_cmds_GCJ
25915 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25916 postinstall_cmds=$lt_postinstall_cmds
25917 postuninstall_cmds=$lt_postuninstall_cmds
25919 # Commands used to build a loadable module (assumed same as above if empty)
25920 module_cmds=$lt_module_cmds_GCJ
25921 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25923 # Commands to strip libraries.
25924 old_striplib=$lt_old_striplib
25925 striplib=$lt_striplib
25927 # Dependencies to place before the objects being linked to create a
25929 predep_objects=$lt_predep_objects_GCJ
25931 # Dependencies to place after the objects being linked to create a
25933 postdep_objects=$lt_postdep_objects_GCJ
25935 # Dependencies to place before the objects being linked to create a
25937 predeps=$lt_predeps_GCJ
25939 # Dependencies to place after the objects being linked to create a
25941 postdeps=$lt_postdeps_GCJ
25943 # The library search path used internally by the compiler when linking
25944 # a shared library.
25945 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25947 # Method to check whether dependent libraries are shared objects.
25948 deplibs_check_method=$lt_deplibs_check_method
25950 # Command to use when deplibs_check_method == file_magic.
25951 file_magic_cmd=$lt_file_magic_cmd
25953 # Flag that allows shared libraries with undefined symbols to be built.
25954 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25956 # Flag that forces no undefined symbols.
25957 no_undefined_flag=$lt_no_undefined_flag_GCJ
25959 # Commands used to finish a libtool library installation in a directory.
25960 finish_cmds=$lt_finish_cmds
25962 # Same as above, but a single script fragment to be evaled but not shown.
25963 finish_eval=$lt_finish_eval
25965 # Take the output of nm and produce a listing of raw symbols and C names.
25966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25968 # Transform the output of nm in a proper C declaration
25969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25971 # Transform the output of nm in a C name address pair
25972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25974 # This is the shared library runtime path variable.
25975 runpath_var=$runpath_var
25977 # This is the shared library path variable.
25978 shlibpath_var=$shlibpath_var
25980 # Is shlibpath searched before the hard-coded library search path?
25981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25983 # How to hardcode a shared library path into an executable.
25984 hardcode_action=$hardcode_action_GCJ
25986 # Whether we should hardcode library paths into libraries.
25987 hardcode_into_libs=$hardcode_into_libs
25989 # Flag to hardcode \$libdir into a binary during linking.
25990 # This must work even if \$libdir does not exist.
25991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25993 # If ld is used when linking, flag to hardcode \$libdir into
25994 # a binary during linking. This must work even if \$libdir does
25996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25998 # Whether we need a single -rpath flag with a separated argument.
25999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26002 # resulting binary.
26003 hardcode_direct=$hardcode_direct_GCJ
26005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26006 # resulting binary.
26007 hardcode_minus_L=$hardcode_minus_L_GCJ
26009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26010 # the resulting binary.
26011 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26013 # Set to yes if building a shared library automatically hardcodes DIR into the library
26014 # and all subsequent libraries and executables linked against it.
26015 hardcode_automatic=$hardcode_automatic_GCJ
26017 # Variables whose values should be saved in libtool wrapper scripts and
26018 # restored at relink time.
26019 variables_saved_for_relink="$variables_saved_for_relink"
26021 # Whether libtool must link a program against all its dependency libraries.
26022 link_all_deplibs=$link_all_deplibs_GCJ
26024 # Compile-time system search path for libraries
26025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26027 # Run-time system search path for libraries
26028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26030 # Fix the shell variable \$srcfile for the compiler.
26031 fix_srcfile_path="$fix_srcfile_path_GCJ"
26033 # Set to yes if exported symbols are required.
26034 always_export_symbols=$always_export_symbols_GCJ
26036 # The commands to list exported symbols.
26037 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26039 # The commands to extract the exported symbol list from a shared archive.
26040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26042 # Symbols that should not be listed in the preloaded symbols.
26043 exclude_expsyms=$lt_exclude_expsyms_GCJ
26045 # Symbols that must always be exported.
26046 include_expsyms=$lt_include_expsyms_GCJ
26048 # ### END LIBTOOL TAG CONFIG: $tagname
26054 # If there is no Makefile yet, we rely on a make rule to execute
26055 # `config.status --recheck' to rerun these tests and create the
26056 # libtool script then.
26057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26058 if test -f "$ltmain_in"; then
26059 test -f Makefile && make "$ltmain"
26065 ac_cpp='$CPP $CPPFLAGS'
26066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26079 ac_cpp='$CPP $CPPFLAGS'
26080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26085 # Source file extension for RC test sources.
26088 # Object file extension for compiled RC test sources.
26092 # Code to be used in simple compile tests
26093 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26095 # Code to be used in simple link tests
26096 lt_simple_link_test_code="$lt_simple_compile_test_code"
26098 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26100 # If no C compiler was specified, use CC.
26103 # If no C compiler flags were specified, use CFLAGS.
26104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26106 # Allow CC to be a program name with arguments.
26110 # save warnings/boilerplate of simple test code
26111 ac_outfile=conftest.$ac_objext
26112 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26114 _lt_compiler_boilerplate=`cat conftest.err`
26117 ac_outfile=conftest.$ac_objext
26118 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26120 _lt_linker_boilerplate=`cat conftest.err`
26124 # Allow CC to be a program name with arguments.
26129 for cc_temp in $compiler""; do
26131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26137 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26139 lt_cv_prog_compiler_c_o_RC=yes
26141 # The else clause should only fire when bootstrapping the
26142 # libtool distribution, otherwise you forgot to ship ltmain.sh
26143 # with your package, and you will get complaints that there are
26144 # no rules to generate ltmain.sh.
26145 if test -f "$ltmain"; then
26146 # See if we are running on zsh, and set the options which allow our commands through
26147 # without removal of \ escapes.
26148 if test -n "${ZSH_VERSION+set}" ; then
26149 setopt NO_GLOB_SUBST
26151 # Now quote all the things that may contain metacharacters while being
26152 # careful not to overquote the AC_SUBSTed values. We take copies of the
26153 # variables and quote the copies for generation of the libtool script.
26154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26158 deplibs_check_method reload_flag reload_cmds need_locks \
26159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26160 lt_cv_sys_global_symbol_to_c_name_address \
26161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26162 old_postinstall_cmds old_postuninstall_cmds \
26166 lt_prog_compiler_wl_RC \
26167 lt_prog_compiler_pic_RC \
26168 lt_prog_compiler_static_RC \
26169 lt_prog_compiler_no_builtin_flag_RC \
26170 export_dynamic_flag_spec_RC \
26171 thread_safe_flag_spec_RC \
26172 whole_archive_flag_spec_RC \
26173 enable_shared_with_static_runtimes_RC \
26174 old_archive_cmds_RC \
26175 old_archive_from_new_cmds_RC \
26176 predep_objects_RC \
26177 postdep_objects_RC \
26180 compiler_lib_search_path_RC \
26182 archive_expsym_cmds_RC \
26183 postinstall_cmds_RC \
26184 postuninstall_cmds_RC \
26185 old_archive_from_expsyms_cmds_RC \
26186 allow_undefined_flag_RC \
26187 no_undefined_flag_RC \
26188 export_symbols_cmds_RC \
26189 hardcode_libdir_flag_spec_RC \
26190 hardcode_libdir_flag_spec_ld_RC \
26191 hardcode_libdir_separator_RC \
26192 hardcode_automatic_RC \
26194 module_expsym_cmds_RC \
26195 lt_cv_prog_compiler_c_o_RC \
26196 exclude_expsyms_RC \
26197 include_expsyms_RC; do
26200 old_archive_cmds_RC | \
26201 old_archive_from_new_cmds_RC | \
26202 archive_cmds_RC | \
26203 archive_expsym_cmds_RC | \
26205 module_expsym_cmds_RC | \
26206 old_archive_from_expsyms_cmds_RC | \
26207 export_symbols_cmds_RC | \
26208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26209 postinstall_cmds | postuninstall_cmds | \
26210 old_postinstall_cmds | old_postuninstall_cmds | \
26211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26212 # Double-quote double-evaled strings.
26213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26222 *'\$0 --fallback-echo"')
26223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26229 cat <<__EOF__ >> "$cfgfile"
26230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26234 # Shell to use when invoking shell scripts.
26237 # Whether or not to build shared libraries.
26238 build_libtool_libs=$enable_shared
26240 # Whether or not to build static libraries.
26241 build_old_libs=$enable_static
26243 # Whether or not to add -lc for building shared libraries.
26244 build_libtool_need_lc=$archive_cmds_need_lc_RC
26246 # Whether or not to disallow shared libs when runtime libs are static
26247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26249 # Whether or not to optimize for fast installation.
26250 fast_install=$enable_fast_install
26253 host_alias=$host_alias
26257 # The build system.
26258 build_alias=$build_alias
26262 # An echo program that does not interpret backslashes.
26267 AR_FLAGS=$lt_AR_FLAGS
26272 # LTCC compiler flags.
26273 LTCFLAGS=$lt_LTCFLAGS
26275 # A language-specific compiler.
26278 # Is the compiler the GNU C compiler?
26284 # The linker used to build libraries.
26287 # Whether we need hard or soft links.
26290 # A BSD-compatible nm program.
26293 # A symbol stripping program
26296 # Used to examine libraries when file_magic_cmd begins "file"
26297 MAGIC_CMD=$MAGIC_CMD
26299 # Used on cygwin: DLL creation program.
26302 # Used on cygwin: object dumper.
26305 # Used on cygwin: assembler.
26308 # The name of the directory that contains temporary libtool files.
26311 # How to create reloadable object files.
26312 reload_flag=$lt_reload_flag
26313 reload_cmds=$lt_reload_cmds
26315 # How to pass a linker flag through the compiler.
26316 wl=$lt_lt_prog_compiler_wl_RC
26318 # Object file suffix (normally "o").
26319 objext="$ac_objext"
26321 # Old archive suffix (normally "a").
26324 # Shared library suffix (normally ".so").
26325 shrext_cmds='$shrext_cmds'
26327 # Executable file suffix (normally "").
26330 # Additional compiler flags for building library objects.
26331 pic_flag=$lt_lt_prog_compiler_pic_RC
26334 # What is the maximum length of a command?
26335 max_cmd_len=$lt_cv_sys_max_cmd_len
26337 # Does compiler simultaneously support -c and -o options?
26338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26340 # Must we lock files when doing compilation?
26341 need_locks=$lt_need_locks
26343 # Do we need the lib prefix for modules?
26344 need_lib_prefix=$need_lib_prefix
26346 # Do we need a version for libraries?
26347 need_version=$need_version
26349 # Whether dlopen is supported.
26350 dlopen_support=$enable_dlopen
26352 # Whether dlopen of programs is supported.
26353 dlopen_self=$enable_dlopen_self
26355 # Whether dlopen of statically linked programs is supported.
26356 dlopen_self_static=$enable_dlopen_self_static
26358 # Compiler flag to prevent dynamic linking.
26359 link_static_flag=$lt_lt_prog_compiler_static_RC
26361 # Compiler flag to turn off builtin functions.
26362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26364 # Compiler flag to allow reflexive dlopens.
26365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26367 # Compiler flag to generate shared objects directly from archives.
26368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26370 # Compiler flag to generate thread-safe objects.
26371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26373 # Library versioning type.
26374 version_type=$version_type
26376 # Format of library name prefix.
26377 libname_spec=$lt_libname_spec
26379 # List of archive names. First name is the real one, the rest are links.
26380 # The last name is the one that the linker finds with -lNAME.
26381 library_names_spec=$lt_library_names_spec
26383 # The coded name of the library, if different from the real name.
26384 soname_spec=$lt_soname_spec
26386 # Commands used to build and install an old-style archive.
26388 old_archive_cmds=$lt_old_archive_cmds_RC
26389 old_postinstall_cmds=$lt_old_postinstall_cmds
26390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26392 # Create an old-style archive from a shared archive.
26393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26395 # Create a temporary old-style archive to link instead of a shared archive.
26396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26398 # Commands used to build and install a shared archive.
26399 archive_cmds=$lt_archive_cmds_RC
26400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26401 postinstall_cmds=$lt_postinstall_cmds
26402 postuninstall_cmds=$lt_postuninstall_cmds
26404 # Commands used to build a loadable module (assumed same as above if empty)
26405 module_cmds=$lt_module_cmds_RC
26406 module_expsym_cmds=$lt_module_expsym_cmds_RC
26408 # Commands to strip libraries.
26409 old_striplib=$lt_old_striplib
26410 striplib=$lt_striplib
26412 # Dependencies to place before the objects being linked to create a
26414 predep_objects=$lt_predep_objects_RC
26416 # Dependencies to place after the objects being linked to create a
26418 postdep_objects=$lt_postdep_objects_RC
26420 # Dependencies to place before the objects being linked to create a
26422 predeps=$lt_predeps_RC
26424 # Dependencies to place after the objects being linked to create a
26426 postdeps=$lt_postdeps_RC
26428 # The library search path used internally by the compiler when linking
26429 # a shared library.
26430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26432 # Method to check whether dependent libraries are shared objects.
26433 deplibs_check_method=$lt_deplibs_check_method
26435 # Command to use when deplibs_check_method == file_magic.
26436 file_magic_cmd=$lt_file_magic_cmd
26438 # Flag that allows shared libraries with undefined symbols to be built.
26439 allow_undefined_flag=$lt_allow_undefined_flag_RC
26441 # Flag that forces no undefined symbols.
26442 no_undefined_flag=$lt_no_undefined_flag_RC
26444 # Commands used to finish a libtool library installation in a directory.
26445 finish_cmds=$lt_finish_cmds
26447 # Same as above, but a single script fragment to be evaled but not shown.
26448 finish_eval=$lt_finish_eval
26450 # Take the output of nm and produce a listing of raw symbols and C names.
26451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26453 # Transform the output of nm in a proper C declaration
26454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26456 # Transform the output of nm in a C name address pair
26457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26459 # This is the shared library runtime path variable.
26460 runpath_var=$runpath_var
26462 # This is the shared library path variable.
26463 shlibpath_var=$shlibpath_var
26465 # Is shlibpath searched before the hard-coded library search path?
26466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26468 # How to hardcode a shared library path into an executable.
26469 hardcode_action=$hardcode_action_RC
26471 # Whether we should hardcode library paths into libraries.
26472 hardcode_into_libs=$hardcode_into_libs
26474 # Flag to hardcode \$libdir into a binary during linking.
26475 # This must work even if \$libdir does not exist.
26476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26478 # If ld is used when linking, flag to hardcode \$libdir into
26479 # a binary during linking. This must work even if \$libdir does
26481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26483 # Whether we need a single -rpath flag with a separated argument.
26484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26487 # resulting binary.
26488 hardcode_direct=$hardcode_direct_RC
26490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26491 # resulting binary.
26492 hardcode_minus_L=$hardcode_minus_L_RC
26494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26495 # the resulting binary.
26496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26498 # Set to yes if building a shared library automatically hardcodes DIR into the library
26499 # and all subsequent libraries and executables linked against it.
26500 hardcode_automatic=$hardcode_automatic_RC
26502 # Variables whose values should be saved in libtool wrapper scripts and
26503 # restored at relink time.
26504 variables_saved_for_relink="$variables_saved_for_relink"
26506 # Whether libtool must link a program against all its dependency libraries.
26507 link_all_deplibs=$link_all_deplibs_RC
26509 # Compile-time system search path for libraries
26510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26512 # Run-time system search path for libraries
26513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26515 # Fix the shell variable \$srcfile for the compiler.
26516 fix_srcfile_path="$fix_srcfile_path_RC"
26518 # Set to yes if exported symbols are required.
26519 always_export_symbols=$always_export_symbols_RC
26521 # The commands to list exported symbols.
26522 export_symbols_cmds=$lt_export_symbols_cmds_RC
26524 # The commands to extract the exported symbol list from a shared archive.
26525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26527 # Symbols that should not be listed in the preloaded symbols.
26528 exclude_expsyms=$lt_exclude_expsyms_RC
26530 # Symbols that must always be exported.
26531 include_expsyms=$lt_include_expsyms_RC
26533 # ### END LIBTOOL TAG CONFIG: $tagname
26539 # If there is no Makefile yet, we rely on a make rule to execute
26540 # `config.status --recheck' to rerun these tests and create the
26541 # libtool script then.
26542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26543 if test -f "$ltmain_in"; then
26544 test -f Makefile && make "$ltmain"
26550 ac_cpp='$CPP $CPPFLAGS'
26551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26560 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26562 { (exit 1); exit 1; }; }
26566 # Append the new tag name to the list of available tags.
26567 if test -n "$tagname" ; then
26568 available_tags="$available_tags $tagname"
26574 # Now substitute the updated list of available tags.
26575 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26576 mv "${ofile}T" "$ofile"
26580 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26582 { (exit 1); exit 1; }; }
26588 # This can be used to rebuild libtool when needed
26589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26591 # Always use our own libtool.
26592 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26594 # Prevent multiple expansion
26616 if test "$lt_cv_dlopen_self" = "yes" ; then
26618 cat >>confdefs.h <<\_ACEOF
26619 #define CAN_DLOPEN_SELF 1
26624 etags_version=`$ETAGS --version 2>&1`
26625 case "$etags_version" in
26626 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26627 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26628 *) ETAGSFLAGS="" ;;
26630 ETAGSFLAGS=$ETAGSFLAGS
26633 if test "$WITH_LLVMGCCDIR" = "default" ; then
26634 LLVMGCC="llvm-gcc${EXEEXT}"
26635 LLVMGXX="llvm-g++${EXEEXT}"
26636 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26637 set dummy $LLVMGCC; ac_word=$2
26638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26640 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26649 for as_dir in $PATH
26652 test -z "$as_dir" && as_dir=.
26653 for ac_exec_ext in '' $ac_executable_extensions; do
26654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26655 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26666 LLVMGCC=$ac_cv_path_LLVMGCC
26667 if test -n "$LLVMGCC"; then
26668 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26669 echo "${ECHO_T}$LLVMGCC" >&6; }
26671 { echo "$as_me:$LINENO: result: no" >&5
26672 echo "${ECHO_T}no" >&6; }
26676 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26677 set dummy $LLVMGXX; ac_word=$2
26678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26680 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26681 echo $ECHO_N "(cached) $ECHO_C" >&6
26685 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26689 for as_dir in $PATH
26692 test -z "$as_dir" && as_dir=.
26693 for ac_exec_ext in '' $ac_executable_extensions; do
26694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26695 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26706 LLVMGXX=$ac_cv_path_LLVMGXX
26707 if test -n "$LLVMGXX"; then
26708 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26709 echo "${ECHO_T}$LLVMGXX" >&6; }
26711 { echo "$as_me:$LINENO: result: no" >&5
26712 echo "${ECHO_T}no" >&6; }
26717 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26718 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26725 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26726 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26739 if test "$GCC" != "yes" && test "$ICC" != "yes"
26741 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26742 echo "$as_me: error: gcc|icc required but not found" >&2;}
26743 { (exit 1); exit 1; }; }
26746 if test "$GXX" != "yes" && test "$IXX" != "yes"
26748 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26749 echo "$as_me: error: g++|icc required but not found" >&2;}
26750 { (exit 1); exit 1; }; }
26753 if test "$GCC" = "yes"
26755 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26756 if test "$gccmajor" -lt "3"
26758 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26759 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26760 { (exit 1); exit 1; }; }
26764 if test -z "$llvm_cv_gnu_make_command"
26766 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26767 echo "$as_me: error: GNU Make required but not found" >&2;}
26768 { (exit 1); exit 1; }; }
26771 { echo "$as_me:$LINENO: result: ok" >&5
26772 echo "${ECHO_T}ok" >&6; }
26776 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26777 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26778 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26781 ac_check_lib_save_LIBS=$LIBS
26783 cat >conftest.$ac_ext <<_ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26790 /* Override any GCC internal prototype to avoid an error.
26791 Use char because int might match the return type of a GCC
26792 builtin and then its argument prototype would still apply. */
26800 return elf_begin ();
26805 rm -f conftest.$ac_objext conftest$ac_exeext
26806 if { (ac_try="$ac_link"
26807 case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812 (eval "$ac_link") 2>conftest.er1
26814 grep -v '^ *+' conftest.er1 >conftest.err
26816 cat conftest.err >&5
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); } &&
26819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26820 { (case "(($ac_try" in
26821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26822 *) ac_try_echo=$ac_try;;
26824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26825 (eval "$ac_try") 2>&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); }; } &&
26829 { ac_try='test -s conftest$ac_exeext'
26830 { (case "(($ac_try" in
26831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832 *) ac_try_echo=$ac_try;;
26834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835 (eval "$ac_try") 2>&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 ac_cv_lib_elf_elf_begin=yes
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26844 ac_cv_lib_elf_elf_begin=no
26847 rm -f core conftest.err conftest.$ac_objext \
26848 conftest$ac_exeext conftest.$ac_ext
26849 LIBS=$ac_check_lib_save_LIBS
26851 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26852 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26853 if test $ac_cv_lib_elf_elf_begin = yes; then
26854 cat >>confdefs.h <<_ACEOF
26855 #define HAVE_LIBELF 1
26863 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26864 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26865 if test "${ac_cv_lib_m_sin+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26868 ac_check_lib_save_LIBS=$LIBS
26870 cat >conftest.$ac_ext <<_ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h. */
26877 /* Override any GCC internal prototype to avoid an error.
26878 Use char because int might match the return type of a GCC
26879 builtin and then its argument prototype would still apply. */
26892 rm -f conftest.$ac_objext conftest$ac_exeext
26893 if { (ac_try="$ac_link"
26894 case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_link") 2>conftest.er1
26901 grep -v '^ *+' conftest.er1 >conftest.err
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } &&
26906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26907 { (case "(($ac_try" in
26908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26912 (eval "$ac_try") 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest$ac_exeext'
26917 { (case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_try") 2>&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_cv_lib_m_sin=yes
26928 echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26934 rm -f core conftest.err conftest.$ac_objext \
26935 conftest$ac_exeext conftest.$ac_ext
26936 LIBS=$ac_check_lib_save_LIBS
26938 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26939 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26940 if test $ac_cv_lib_m_sin = yes; then
26941 cat >>confdefs.h <<_ACEOF
26942 #define HAVE_LIBM 1
26949 if test "$llvm_cv_os_type" = "MingW" ; then
26951 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26952 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26953 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26956 ac_check_lib_save_LIBS=$LIBS
26957 LIBS="-limagehlp $LIBS"
26958 cat >conftest.$ac_ext <<_ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26974 rm -f conftest.$ac_objext conftest$ac_exeext
26975 if { (ac_try="$ac_link"
26976 case "(($ac_try" in
26977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978 *) ac_try_echo=$ac_try;;
26980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981 (eval "$ac_link") 2>conftest.er1
26983 grep -v '^ *+' conftest.er1 >conftest.err
26985 cat conftest.err >&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); } &&
26988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26989 { (case "(($ac_try" in
26990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991 *) ac_try_echo=$ac_try;;
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994 (eval "$ac_try") 2>&5
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; } &&
26998 { ac_try='test -s conftest$ac_exeext'
26999 { (case "(($ac_try" in
27000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001 *) ac_try_echo=$ac_try;;
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 (eval "$ac_try") 2>&5
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008 ac_cv_lib_imagehlp_main=yes
27010 echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27013 ac_cv_lib_imagehlp_main=no
27016 rm -f core conftest.err conftest.$ac_objext \
27017 conftest$ac_exeext conftest.$ac_ext
27018 LIBS=$ac_check_lib_save_LIBS
27020 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27021 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27022 if test $ac_cv_lib_imagehlp_main = yes; then
27023 cat >>confdefs.h <<_ACEOF
27024 #define HAVE_LIBIMAGEHLP 1
27027 LIBS="-limagehlp $LIBS"
27032 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27033 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27034 if test "${ac_cv_lib_psapi_main+set}" = set; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27037 ac_check_lib_save_LIBS=$LIBS
27038 LIBS="-lpsapi $LIBS"
27039 cat >conftest.$ac_ext <<_ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h. */
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (ac_try="$ac_link"
27057 case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062 (eval "$ac_link") 2>conftest.er1
27064 grep -v '^ *+' conftest.er1 >conftest.err
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } &&
27069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27070 { (case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_try") 2>&5
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; } &&
27079 { ac_try='test -s conftest$ac_exeext'
27080 { (case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_try") 2>&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_cv_lib_psapi_main=yes
27091 echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27094 ac_cv_lib_psapi_main=no
27097 rm -f core conftest.err conftest.$ac_objext \
27098 conftest$ac_exeext conftest.$ac_ext
27099 LIBS=$ac_check_lib_save_LIBS
27101 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27102 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27103 if test $ac_cv_lib_psapi_main = yes; then
27104 cat >>confdefs.h <<_ACEOF
27105 #define HAVE_LIBPSAPI 1
27108 LIBS="-lpsapi $LIBS"
27114 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27115 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27116 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27119 ac_func_search_save_LIBS=$LIBS
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27127 /* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
27137 return lt_dlopen ();
27142 for ac_lib in '' ltdl; do
27143 if test -z "$ac_lib"; then
27144 ac_res="none required"
27147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27149 rm -f conftest.$ac_objext conftest$ac_exeext
27150 if { (ac_try="$ac_link"
27151 case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_link") 2>conftest.er1
27158 grep -v '^ *+' conftest.er1 >conftest.err
27160 cat conftest.err >&5
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } &&
27163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27164 { (case "(($ac_try" in
27165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166 *) ac_try_echo=$ac_try;;
27168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169 (eval "$ac_try") 2>&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); }; } &&
27173 { ac_try='test -s conftest$ac_exeext'
27174 { (case "(($ac_try" in
27175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_try") 2>&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; }; then
27183 ac_cv_search_lt_dlopen=$ac_res
27185 echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27191 rm -f core conftest.err conftest.$ac_objext \
27193 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27197 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27200 ac_cv_search_lt_dlopen=no
27202 rm conftest.$ac_ext
27203 LIBS=$ac_func_search_save_LIBS
27205 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27206 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27207 ac_res=$ac_cv_search_lt_dlopen
27208 if test "$ac_res" != no; then
27209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27211 cat >>confdefs.h <<\_ACEOF
27212 #define HAVE_LT_DLOPEN 1
27216 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27217 not be available" >&5
27218 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27219 not be available" >&2;}
27223 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27224 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27225 if test "${ac_cv_search_dlopen+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27228 ac_func_search_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. */
27251 for ac_lib in '' dl; do
27252 if test -z "$ac_lib"; then
27253 ac_res="none required"
27256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27258 rm -f conftest.$ac_objext conftest$ac_exeext
27259 if { (ac_try="$ac_link"
27260 case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265 (eval "$ac_link") 2>conftest.er1
27267 grep -v '^ *+' conftest.er1 >conftest.err
27269 cat conftest.err >&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } &&
27272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27273 { (case "(($ac_try" in
27274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278 (eval "$ac_try") 2>&5
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; } &&
27282 { ac_try='test -s conftest$ac_exeext'
27283 { (case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_try") 2>&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; }; then
27292 ac_cv_search_dlopen=$ac_res
27294 echo "$as_me: failed program was:" >&5
27295 sed 's/^/| /' conftest.$ac_ext >&5
27300 rm -f core conftest.err conftest.$ac_objext \
27302 if test "${ac_cv_search_dlopen+set}" = set; then
27306 if test "${ac_cv_search_dlopen+set}" = set; then
27309 ac_cv_search_dlopen=no
27311 rm conftest.$ac_ext
27312 LIBS=$ac_func_search_save_LIBS
27314 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27315 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27316 ac_res=$ac_cv_search_dlopen
27317 if test "$ac_res" != no; then
27318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27320 cat >>confdefs.h <<\_ACEOF
27321 #define HAVE_DLOPEN 1
27325 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27326 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27330 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27331 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27332 if test "${ac_cv_search_mallinfo+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 ac_func_search_save_LIBS=$LIBS
27336 cat >conftest.$ac_ext <<_ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h. */
27343 /* Override any GCC internal prototype to avoid an error.
27344 Use char because int might match the return type of a GCC
27345 builtin and then its argument prototype would still apply. */
27353 return mallinfo ();
27358 for ac_lib in '' malloc; do
27359 if test -z "$ac_lib"; then
27360 ac_res="none required"
27363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27365 rm -f conftest.$ac_objext conftest$ac_exeext
27366 if { (ac_try="$ac_link"
27367 case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372 (eval "$ac_link") 2>conftest.er1
27374 grep -v '^ *+' conftest.er1 >conftest.err
27376 cat conftest.err >&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } &&
27379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27380 { (case "(($ac_try" in
27381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382 *) ac_try_echo=$ac_try;;
27384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385 (eval "$ac_try") 2>&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; } &&
27389 { ac_try='test -s conftest$ac_exeext'
27390 { (case "(($ac_try" in
27391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392 *) ac_try_echo=$ac_try;;
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395 (eval "$ac_try") 2>&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; }; then
27399 ac_cv_search_mallinfo=$ac_res
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27407 rm -f core conftest.err conftest.$ac_objext \
27409 if test "${ac_cv_search_mallinfo+set}" = set; then
27413 if test "${ac_cv_search_mallinfo+set}" = set; then
27416 ac_cv_search_mallinfo=no
27418 rm conftest.$ac_ext
27419 LIBS=$ac_func_search_save_LIBS
27421 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27422 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27423 ac_res=$ac_cv_search_mallinfo
27424 if test "$ac_res" != no; then
27425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27427 cat >>confdefs.h <<\_ACEOF
27428 #define HAVE_MALLINFO 1
27434 if test "$ENABLE_THREADS" -eq 1 ; then
27436 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27437 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27438 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27439 echo $ECHO_N "(cached) $ECHO_C" >&6
27441 ac_check_lib_save_LIBS=$LIBS
27442 LIBS="-lpthread $LIBS"
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27450 /* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27456 char pthread_mutex_init ();
27460 return pthread_mutex_init ();
27465 rm -f conftest.$ac_objext conftest$ac_exeext
27466 if { (ac_try="$ac_link"
27467 case "(($ac_try" in
27468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469 *) ac_try_echo=$ac_try;;
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472 (eval "$ac_link") 2>conftest.er1
27474 grep -v '^ *+' conftest.er1 >conftest.err
27476 cat conftest.err >&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } &&
27479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27480 { (case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485 (eval "$ac_try") 2>&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; } &&
27489 { ac_try='test -s conftest$ac_exeext'
27490 { (case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_try") 2>&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; }; then
27499 ac_cv_lib_pthread_pthread_mutex_init=yes
27501 echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27504 ac_cv_lib_pthread_pthread_mutex_init=no
27507 rm -f core conftest.err conftest.$ac_objext \
27508 conftest$ac_exeext conftest.$ac_ext
27509 LIBS=$ac_check_lib_save_LIBS
27511 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27512 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27513 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27514 cat >>confdefs.h <<_ACEOF
27515 #define HAVE_LIBPTHREAD 1
27518 LIBS="-lpthread $LIBS"
27522 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27523 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27524 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27525 echo $ECHO_N "(cached) $ECHO_C" >&6
27527 ac_func_search_save_LIBS=$LIBS
27528 cat >conftest.$ac_ext <<_ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h. */
27535 /* Override any GCC internal prototype to avoid an error.
27536 Use char because int might match the return type of a GCC
27537 builtin and then its argument prototype would still apply. */
27541 char pthread_mutex_lock ();
27545 return pthread_mutex_lock ();
27550 for ac_lib in '' pthread; do
27551 if test -z "$ac_lib"; then
27552 ac_res="none required"
27555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_link") 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; } &&
27581 { ac_try='test -s conftest$ac_exeext'
27582 { (case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_try") 2>&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
27591 ac_cv_search_pthread_mutex_lock=$ac_res
27593 echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27599 rm -f core conftest.err conftest.$ac_objext \
27601 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27605 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27608 ac_cv_search_pthread_mutex_lock=no
27610 rm conftest.$ac_ext
27611 LIBS=$ac_func_search_save_LIBS
27613 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27614 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27615 ac_res=$ac_cv_search_pthread_mutex_lock
27616 if test "$ac_res" != no; then
27617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27619 cat >>confdefs.h <<\_ACEOF
27620 #define HAVE_PTHREAD_MUTEX_LOCK 1
27628 # Check whether --with-udis86 was given.
27629 if test "${with_udis86+set}" = set; then
27630 withval=$with_udis86;
27635 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27638 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27639 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27640 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 ac_check_lib_save_LIBS=$LIBS
27644 LIBS="-ludis86 $LIBS"
27645 cat >conftest.$ac_ext <<_ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27652 /* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27667 rm -f conftest.$ac_objext conftest$ac_exeext
27668 if { (ac_try="$ac_link"
27669 case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_link") 2>conftest.er1
27676 grep -v '^ *+' conftest.er1 >conftest.err
27678 cat conftest.err >&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); } &&
27681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest$ac_exeext'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 ac_cv_lib_udis86_ud_init=yes
27703 echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27706 ac_cv_lib_udis86_ud_init=no
27709 rm -f core conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
27711 LIBS=$ac_check_lib_save_LIBS
27713 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27714 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27715 if test $ac_cv_lib_udis86_ud_init = yes; then
27716 cat >>confdefs.h <<_ACEOF
27717 #define HAVE_LIBUDIS86 1
27720 LIBS="-ludis86 $LIBS"
27724 echo "Error! You need to have libudis86 around."
27736 cat >>confdefs.h <<_ACEOF
27737 #define USE_UDIS86 $USE_UDIS86
27747 ac_header_dirent=no
27748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27749 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27755 cat >conftest.$ac_ext <<_ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27761 #include <sys/types.h>
27773 rm -f conftest.$ac_objext
27774 if { (ac_try="$ac_compile"
27775 case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_compile") 2>conftest.er1
27782 grep -v '^ *+' conftest.er1 >conftest.err
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
27787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } &&
27797 { ac_try='test -s conftest.$ac_objext'
27798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
27807 eval "$as_ac_Header=yes"
27809 echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27812 eval "$as_ac_Header=no"
27815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27817 ac_res=`eval echo '${'$as_ac_Header'}'`
27818 { echo "$as_me:$LINENO: result: $ac_res" >&5
27819 echo "${ECHO_T}$ac_res" >&6; }
27820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27821 cat >>confdefs.h <<_ACEOF
27822 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27825 ac_header_dirent=$ac_hdr; break
27829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27830 if test $ac_header_dirent = dirent.h; then
27831 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27832 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27833 if test "${ac_cv_search_opendir+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27836 ac_func_search_save_LIBS=$LIBS
27837 cat >conftest.$ac_ext <<_ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27844 /* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27859 for ac_lib in '' dir; do
27860 if test -z "$ac_lib"; then
27861 ac_res="none required"
27864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
27875 grep -v '^ *+' conftest.er1 >conftest.err
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } &&
27880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try='test -s conftest$ac_exeext'
27891 { (case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_try") 2>&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
27900 ac_cv_search_opendir=$ac_res
27902 echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27908 rm -f core conftest.err conftest.$ac_objext \
27910 if test "${ac_cv_search_opendir+set}" = set; then
27914 if test "${ac_cv_search_opendir+set}" = set; then
27917 ac_cv_search_opendir=no
27919 rm conftest.$ac_ext
27920 LIBS=$ac_func_search_save_LIBS
27922 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27923 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27924 ac_res=$ac_cv_search_opendir
27925 if test "$ac_res" != no; then
27926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27933 if test "${ac_cv_search_opendir+set}" = set; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27936 ac_func_search_save_LIBS=$LIBS
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27944 /* Override any GCC internal prototype to avoid an error.
27945 Use char because int might match the return type of a GCC
27946 builtin and then its argument prototype would still apply. */
27959 for ac_lib in '' x; do
27960 if test -z "$ac_lib"; then
27961 ac_res="none required"
27964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27966 rm -f conftest.$ac_objext conftest$ac_exeext
27967 if { (ac_try="$ac_link"
27968 case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_link") 2>conftest.er1
27975 grep -v '^ *+' conftest.er1 >conftest.err
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981 { (case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_search_opendir=$ac_res
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28008 rm -f core conftest.err conftest.$ac_objext \
28010 if test "${ac_cv_search_opendir+set}" = set; then
28014 if test "${ac_cv_search_opendir+set}" = set; then
28017 ac_cv_search_opendir=no
28019 rm conftest.$ac_ext
28020 LIBS=$ac_func_search_save_LIBS
28022 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28023 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28024 ac_res=$ac_cv_search_opendir
28025 if test "$ac_res" != no; then
28026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28032 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28033 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28034 if test "${ac_cv_header_mmap_anon+set}" = set; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 ac_cpp='$CPP $CPPFLAGS'
28039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28043 cat >conftest.$ac_ext <<_ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28049 #include <sys/mman.h>
28050 #include <unistd.h>
28055 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28060 rm -f conftest.$ac_objext
28061 if { (ac_try="$ac_compile"
28062 case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_compile") 2>conftest.er1
28069 grep -v '^ *+' conftest.er1 >conftest.err
28071 cat conftest.err >&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); } &&
28074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28075 { (case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest.$ac_objext'
28085 { (case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_try") 2>&5
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_header_mmap_anon=yes
28096 echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28099 ac_cv_header_mmap_anon=no
28102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 ac_cpp='$CPP $CPPFLAGS'
28105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28111 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28112 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28113 if test "$ac_cv_header_mmap_anon" = yes; then
28115 cat >>confdefs.h <<\_ACEOF
28116 #define HAVE_MMAP_ANONYMOUS 1
28121 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28122 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28123 if test "${ac_cv_header_stat_broken+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 cat >conftest.$ac_ext <<_ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h. */
28132 #include <sys/types.h>
28133 #include <sys/stat.h>
28135 #if defined S_ISBLK && defined S_IFDIR
28136 # if S_ISBLK (S_IFDIR)
28141 #if defined S_ISBLK && defined S_IFCHR
28142 # if S_ISBLK (S_IFCHR)
28147 #if defined S_ISLNK && defined S_IFREG
28148 # if S_ISLNK (S_IFREG)
28153 #if defined S_ISSOCK && defined S_IFREG
28154 # if S_ISSOCK (S_IFREG)
28160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28161 $EGREP "You lose" >/dev/null 2>&1; then
28162 ac_cv_header_stat_broken=yes
28164 ac_cv_header_stat_broken=no
28169 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28170 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28171 if test $ac_cv_header_stat_broken = yes; then
28173 cat >>confdefs.h <<\_ACEOF
28174 #define STAT_MACROS_BROKEN 1
28179 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28181 if test "${ac_cv_header_stdc+set}" = set; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28184 cat >conftest.$ac_ext <<_ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h. */
28190 #include <stdlib.h>
28191 #include <stdarg.h>
28192 #include <string.h>
28203 rm -f conftest.$ac_objext
28204 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_stdc=yes
28239 echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28242 ac_cv_header_stdc=no
28245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28247 if test $ac_cv_header_stdc = yes; then
28248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28249 cat >conftest.$ac_ext <<_ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h. */
28255 #include <string.h>
28258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28259 $EGREP "memchr" >/dev/null 2>&1; then
28262 ac_cv_header_stdc=no
28268 if test $ac_cv_header_stdc = yes; then
28269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28270 cat >conftest.$ac_ext <<_ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28276 #include <stdlib.h>
28279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28280 $EGREP "free" >/dev/null 2>&1; then
28283 ac_cv_header_stdc=no
28289 if test $ac_cv_header_stdc = yes; then
28290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28291 if test "$cross_compiling" = yes; then
28294 cat >conftest.$ac_ext <<_ACEOF
28297 cat confdefs.h >>conftest.$ac_ext
28298 cat >>conftest.$ac_ext <<_ACEOF
28299 /* end confdefs.h. */
28301 #include <stdlib.h>
28302 #if ((' ' & 0x0FF) == 0x020)
28303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28306 # define ISLOWER(c) \
28307 (('a' <= (c) && (c) <= 'i') \
28308 || ('j' <= (c) && (c) <= 'r') \
28309 || ('s' <= (c) && (c) <= 'z'))
28310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28318 for (i = 0; i < 256; i++)
28319 if (XOR (islower (i), ISLOWER (i))
28320 || toupper (i) != TOUPPER (i))
28325 rm -f conftest$ac_exeext
28326 if { (ac_try="$ac_link"
28327 case "(($ac_try" in
28328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329 *) ac_try_echo=$ac_try;;
28331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332 (eval "$ac_link") 2>&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28336 { (case "(($ac_try" in
28337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338 *) ac_try_echo=$ac_try;;
28340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341 (eval "$ac_try") 2>&5
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); }; }; then
28347 echo "$as_me: program exited with status $ac_status" >&5
28348 echo "$as_me: failed program was:" >&5
28349 sed 's/^/| /' conftest.$ac_ext >&5
28351 ( exit $ac_status )
28352 ac_cv_header_stdc=no
28354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28360 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28361 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28362 if test $ac_cv_header_stdc = yes; then
28364 cat >>confdefs.h <<\_ACEOF
28365 #define STDC_HEADERS 1
28370 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28371 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28372 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28373 echo $ECHO_N "(cached) $ECHO_C" >&6
28375 cat >conftest.$ac_ext <<_ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h. */
28381 #include <sys/types.h>
28382 #include <sys/wait.h>
28383 #ifndef WEXITSTATUS
28384 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28387 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28395 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28400 rm -f conftest.$ac_objext
28401 if { (ac_try="$ac_compile"
28402 case "(($ac_try" in
28403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404 *) ac_try_echo=$ac_try;;
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407 (eval "$ac_compile") 2>conftest.er1
28409 grep -v '^ *+' conftest.er1 >conftest.err
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
28414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28415 { (case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_try") 2>&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); }; } &&
28424 { ac_try='test -s conftest.$ac_objext'
28425 { (case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_try") 2>&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_header_sys_wait_h=yes
28436 echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28439 ac_cv_header_sys_wait_h=no
28442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28444 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28445 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28446 if test $ac_cv_header_sys_wait_h = yes; then
28448 cat >>confdefs.h <<\_ACEOF
28449 #define HAVE_SYS_WAIT_H 1
28454 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28455 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28456 if test "${ac_cv_header_time+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28465 #include <sys/types.h>
28466 #include <sys/time.h>
28472 if ((struct tm *) 0)
28478 rm -f conftest.$ac_objext
28479 if { (ac_try="$ac_compile"
28480 case "(($ac_try" in
28481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 *) ac_try_echo=$ac_try;;
28484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485 (eval "$ac_compile") 2>conftest.er1
28487 grep -v '^ *+' conftest.er1 >conftest.err
28489 cat conftest.err >&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); } &&
28492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28493 { (case "(($ac_try" in
28494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495 *) ac_try_echo=$ac_try;;
28497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498 (eval "$ac_try") 2>&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); }; } &&
28502 { ac_try='test -s conftest.$ac_objext'
28503 { (case "(($ac_try" in
28504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505 *) ac_try_echo=$ac_try;;
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508 (eval "$ac_try") 2>&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; }; then
28512 ac_cv_header_time=yes
28514 echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28517 ac_cv_header_time=no
28520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28522 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28523 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28524 if test $ac_cv_header_time = yes; then
28526 cat >>confdefs.h <<\_ACEOF
28527 #define TIME_WITH_SYS_TIME 1
28539 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28546 echo $ECHO_N "(cached) $ECHO_C" >&6
28548 ac_res=`eval echo '${'$as_ac_Header'}'`
28549 { echo "$as_me:$LINENO: result: $ac_res" >&5
28550 echo "${ECHO_T}$ac_res" >&6; }
28552 # Is the header compilable?
28553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28555 cat >conftest.$ac_ext <<_ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h. */
28561 $ac_includes_default
28562 #include <$ac_header>
28564 rm -f conftest.$ac_objext
28565 if { (ac_try="$ac_compile"
28566 case "(($ac_try" in
28567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568 *) ac_try_echo=$ac_try;;
28570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571 (eval "$ac_compile") 2>conftest.er1
28573 grep -v '^ *+' conftest.er1 >conftest.err
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
28578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28579 { (case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_try") 2>&5
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; } &&
28588 { ac_try='test -s conftest.$ac_objext'
28589 { (case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_try") 2>&5
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
28598 ac_header_compiler=yes
28600 echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28603 ac_header_compiler=no
28606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28608 echo "${ECHO_T}$ac_header_compiler" >&6; }
28610 # Is the header present?
28611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28613 cat >conftest.$ac_ext <<_ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h. */
28619 #include <$ac_header>
28621 if { (ac_try="$ac_cpp conftest.$ac_ext"
28622 case "(($ac_try" in
28623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28629 grep -v '^ *+' conftest.er1 >conftest.err
28631 cat conftest.err >&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); } >/dev/null; then
28634 if test -s conftest.err; then
28635 ac_cpp_err=$ac_c_preproc_warn_flag
28636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28643 if test -z "$ac_cpp_err"; then
28644 ac_header_preproc=yes
28646 echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28649 ac_header_preproc=no
28652 rm -f conftest.err conftest.$ac_ext
28653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28654 echo "${ECHO_T}$ac_header_preproc" >&6; }
28656 # So? What about this header?
28657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28663 ac_header_preproc=yes
28666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28679 ## ----------------------------------- ##
28680 ## Report this to llvmbugs@cs.uiuc.edu ##
28681 ## ----------------------------------- ##
28683 ) | sed "s/^/$as_me: WARNING: /" >&2
28686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 eval "$as_ac_Header=\$ac_header_preproc"
28693 ac_res=`eval echo '${'$as_ac_Header'}'`
28694 { echo "$as_me:$LINENO: result: $ac_res" >&5
28695 echo "${ECHO_T}$ac_res" >&6; }
28698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28699 cat >>confdefs.h <<_ACEOF
28700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28713 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28722 ac_res=`eval echo '${'$as_ac_Header'}'`
28723 { echo "$as_me:$LINENO: result: $ac_res" >&5
28724 echo "${ECHO_T}$ac_res" >&6; }
28726 # Is the header compilable?
28727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h. */
28735 $ac_includes_default
28736 #include <$ac_header>
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_compile") 2>conftest.er1
28747 grep -v '^ *+' conftest.er1 >conftest.err
28749 cat conftest.err >&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } &&
28752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28753 { (case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; } &&
28762 { ac_try='test -s conftest.$ac_objext'
28763 { (case "(($ac_try" in
28764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768 (eval "$ac_try") 2>&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); }; }; then
28772 ac_header_compiler=yes
28774 echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28777 ac_header_compiler=no
28780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28782 echo "${ECHO_T}$ac_header_compiler" >&6; }
28784 # Is the header present?
28785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28787 cat >conftest.$ac_ext <<_ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28793 #include <$ac_header>
28795 if { (ac_try="$ac_cpp conftest.$ac_ext"
28796 case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28803 grep -v '^ *+' conftest.er1 >conftest.err
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } >/dev/null; then
28808 if test -s conftest.err; then
28809 ac_cpp_err=$ac_c_preproc_warn_flag
28810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28817 if test -z "$ac_cpp_err"; then
28818 ac_header_preproc=yes
28820 echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28823 ac_header_preproc=no
28826 rm -f conftest.err conftest.$ac_ext
28827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28828 echo "${ECHO_T}$ac_header_preproc" >&6; }
28830 # So? What about this header?
28831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28837 ac_header_preproc=yes
28840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28853 ## ----------------------------------- ##
28854 ## Report this to llvmbugs@cs.uiuc.edu ##
28855 ## ----------------------------------- ##
28857 ) | sed "s/^/$as_me: WARNING: /" >&2
28860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28863 echo $ECHO_N "(cached) $ECHO_C" >&6
28865 eval "$as_ac_Header=\$ac_header_preproc"
28867 ac_res=`eval echo '${'$as_ac_Header'}'`
28868 { echo "$as_me:$LINENO: result: $ac_res" >&5
28869 echo "${ECHO_T}$ac_res" >&6; }
28872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28873 cat >>confdefs.h <<_ACEOF
28874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28882 for ac_header in windows.h
28884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28889 echo $ECHO_N "(cached) $ECHO_C" >&6
28891 ac_res=`eval echo '${'$as_ac_Header'}'`
28892 { echo "$as_me:$LINENO: result: $ac_res" >&5
28893 echo "${ECHO_T}$ac_res" >&6; }
28895 # Is the header compilable?
28896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28898 cat >conftest.$ac_ext <<_ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h. */
28904 $ac_includes_default
28905 #include <$ac_header>
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911 *) ac_try_echo=$ac_try;;
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914 (eval "$ac_compile") 2>conftest.er1
28916 grep -v '^ *+' conftest.er1 >conftest.err
28918 cat conftest.err >&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } &&
28921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28922 { (case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_try") 2>&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; } &&
28931 { ac_try='test -s conftest.$ac_objext'
28932 { (case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_try") 2>&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); }; }; then
28941 ac_header_compiler=yes
28943 echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28946 ac_header_compiler=no
28949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28951 echo "${ECHO_T}$ac_header_compiler" >&6; }
28953 # Is the header present?
28954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28956 cat >conftest.$ac_ext <<_ACEOF
28959 cat confdefs.h >>conftest.$ac_ext
28960 cat >>conftest.$ac_ext <<_ACEOF
28961 /* end confdefs.h. */
28962 #include <$ac_header>
28964 if { (ac_try="$ac_cpp conftest.$ac_ext"
28965 case "(($ac_try" in
28966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967 *) ac_try_echo=$ac_try;;
28969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28972 grep -v '^ *+' conftest.er1 >conftest.err
28974 cat conftest.err >&5
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); } >/dev/null; then
28977 if test -s conftest.err; then
28978 ac_cpp_err=$ac_c_preproc_warn_flag
28979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28986 if test -z "$ac_cpp_err"; then
28987 ac_header_preproc=yes
28989 echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28992 ac_header_preproc=no
28995 rm -f conftest.err conftest.$ac_ext
28996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28997 echo "${ECHO_T}$ac_header_preproc" >&6; }
28999 # So? What about this header?
29000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29006 ac_header_preproc=yes
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29022 ## ----------------------------------- ##
29023 ## Report this to llvmbugs@cs.uiuc.edu ##
29024 ## ----------------------------------- ##
29026 ) | sed "s/^/$as_me: WARNING: /" >&2
29029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29034 eval "$as_ac_Header=\$ac_header_preproc"
29036 ac_res=`eval echo '${'$as_ac_Header'}'`
29037 { echo "$as_me:$LINENO: result: $ac_res" >&5
29038 echo "${ECHO_T}$ac_res" >&6; }
29041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29042 cat >>confdefs.h <<_ACEOF
29043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29054 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 ac_res=`eval echo '${'$as_ac_Header'}'`
29064 { echo "$as_me:$LINENO: result: $ac_res" >&5
29065 echo "${ECHO_T}$ac_res" >&6; }
29067 # Is the header compilable?
29068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29076 $ac_includes_default
29077 #include <$ac_header>
29079 rm -f conftest.$ac_objext
29080 if { (ac_try="$ac_compile"
29081 case "(($ac_try" in
29082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29083 *) ac_try_echo=$ac_try;;
29085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29086 (eval "$ac_compile") 2>conftest.er1
29088 grep -v '^ *+' conftest.er1 >conftest.err
29090 cat conftest.err >&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } &&
29093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_try") 2>&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; } &&
29103 { ac_try='test -s conftest.$ac_objext'
29104 { (case "(($ac_try" in
29105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29106 *) ac_try_echo=$ac_try;;
29108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29109 (eval "$ac_try") 2>&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
29113 ac_header_compiler=yes
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29118 ac_header_compiler=no
29121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29123 echo "${ECHO_T}$ac_header_compiler" >&6; }
29125 # Is the header present?
29126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29128 cat >conftest.$ac_ext <<_ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h. */
29134 #include <$ac_header>
29136 if { (ac_try="$ac_cpp conftest.$ac_ext"
29137 case "(($ac_try" in
29138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139 *) ac_try_echo=$ac_try;;
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29144 grep -v '^ *+' conftest.er1 >conftest.err
29146 cat conftest.err >&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } >/dev/null; then
29149 if test -s conftest.err; then
29150 ac_cpp_err=$ac_c_preproc_warn_flag
29151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29158 if test -z "$ac_cpp_err"; then
29159 ac_header_preproc=yes
29161 echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29164 ac_header_preproc=no
29167 rm -f conftest.err conftest.$ac_ext
29168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29169 echo "${ECHO_T}$ac_header_preproc" >&6; }
29171 # So? What about this header?
29172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29178 ac_header_preproc=yes
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29194 ## ----------------------------------- ##
29195 ## Report this to llvmbugs@cs.uiuc.edu ##
29196 ## ----------------------------------- ##
29198 ) | sed "s/^/$as_me: WARNING: /" >&2
29201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29206 eval "$as_ac_Header=\$ac_header_preproc"
29208 ac_res=`eval echo '${'$as_ac_Header'}'`
29209 { echo "$as_me:$LINENO: result: $ac_res" >&5
29210 echo "${ECHO_T}$ac_res" >&6; }
29213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29214 cat >>confdefs.h <<_ACEOF
29215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29225 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29232 echo $ECHO_N "(cached) $ECHO_C" >&6
29234 ac_res=`eval echo '${'$as_ac_Header'}'`
29235 { echo "$as_me:$LINENO: result: $ac_res" >&5
29236 echo "${ECHO_T}$ac_res" >&6; }
29238 # Is the header compilable?
29239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29241 cat >conftest.$ac_ext <<_ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h. */
29247 $ac_includes_default
29248 #include <$ac_header>
29250 rm -f conftest.$ac_objext
29251 if { (ac_try="$ac_compile"
29252 case "(($ac_try" in
29253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254 *) ac_try_echo=$ac_try;;
29256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29257 (eval "$ac_compile") 2>conftest.er1
29259 grep -v '^ *+' conftest.er1 >conftest.err
29261 cat conftest.err >&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } &&
29264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29265 { (case "(($ac_try" in
29266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267 *) ac_try_echo=$ac_try;;
29269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270 (eval "$ac_try") 2>&5
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; } &&
29274 { ac_try='test -s conftest.$ac_objext'
29275 { (case "(($ac_try" in
29276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277 *) ac_try_echo=$ac_try;;
29279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280 (eval "$ac_try") 2>&5
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; }; then
29284 ac_header_compiler=yes
29286 echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29289 ac_header_compiler=no
29292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29294 echo "${ECHO_T}$ac_header_compiler" >&6; }
29296 # Is the header present?
29297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29299 cat >conftest.$ac_ext <<_ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h. */
29305 #include <$ac_header>
29307 if { (ac_try="$ac_cpp conftest.$ac_ext"
29308 case "(($ac_try" in
29309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310 *) ac_try_echo=$ac_try;;
29312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } >/dev/null; then
29320 if test -s conftest.err; then
29321 ac_cpp_err=$ac_c_preproc_warn_flag
29322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29329 if test -z "$ac_cpp_err"; then
29330 ac_header_preproc=yes
29332 echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29335 ac_header_preproc=no
29338 rm -f conftest.err conftest.$ac_ext
29339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29340 echo "${ECHO_T}$ac_header_preproc" >&6; }
29342 # So? What about this header?
29343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29349 ac_header_preproc=yes
29352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29365 ## ----------------------------------- ##
29366 ## Report this to llvmbugs@cs.uiuc.edu ##
29367 ## ----------------------------------- ##
29369 ) | sed "s/^/$as_me: WARNING: /" >&2
29372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29375 echo $ECHO_N "(cached) $ECHO_C" >&6
29377 eval "$as_ac_Header=\$ac_header_preproc"
29379 ac_res=`eval echo '${'$as_ac_Header'}'`
29380 { echo "$as_me:$LINENO: result: $ac_res" >&5
29381 echo "${ECHO_T}$ac_res" >&6; }
29384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29385 cat >>confdefs.h <<_ACEOF
29386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29393 if test "$ENABLE_THREADS" -eq 1 ; then
29395 for ac_header in pthread.h
29397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29402 echo $ECHO_N "(cached) $ECHO_C" >&6
29404 ac_res=`eval echo '${'$as_ac_Header'}'`
29405 { echo "$as_me:$LINENO: result: $ac_res" >&5
29406 echo "${ECHO_T}$ac_res" >&6; }
29408 # Is the header compilable?
29409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29411 cat >conftest.$ac_ext <<_ACEOF
29414 cat confdefs.h >>conftest.$ac_ext
29415 cat >>conftest.$ac_ext <<_ACEOF
29416 /* end confdefs.h. */
29417 $ac_includes_default
29418 #include <$ac_header>
29420 rm -f conftest.$ac_objext
29421 if { (ac_try="$ac_compile"
29422 case "(($ac_try" in
29423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424 *) ac_try_echo=$ac_try;;
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427 (eval "$ac_compile") 2>conftest.er1
29429 grep -v '^ *+' conftest.er1 >conftest.err
29431 cat conftest.err >&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } &&
29434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29435 { (case "(($ac_try" in
29436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437 *) ac_try_echo=$ac_try;;
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_try") 2>&5
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; } &&
29444 { ac_try='test -s conftest.$ac_objext'
29445 { (case "(($ac_try" in
29446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29447 *) ac_try_echo=$ac_try;;
29449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29450 (eval "$ac_try") 2>&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; }; then
29454 ac_header_compiler=yes
29456 echo "$as_me: failed program was:" >&5
29457 sed 's/^/| /' conftest.$ac_ext >&5
29459 ac_header_compiler=no
29462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29464 echo "${ECHO_T}$ac_header_compiler" >&6; }
29466 # Is the header present?
29467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29469 cat >conftest.$ac_ext <<_ACEOF
29472 cat confdefs.h >>conftest.$ac_ext
29473 cat >>conftest.$ac_ext <<_ACEOF
29474 /* end confdefs.h. */
29475 #include <$ac_header>
29477 if { (ac_try="$ac_cpp conftest.$ac_ext"
29478 case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29485 grep -v '^ *+' conftest.er1 >conftest.err
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } >/dev/null; then
29490 if test -s conftest.err; then
29491 ac_cpp_err=$ac_c_preproc_warn_flag
29492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29499 if test -z "$ac_cpp_err"; then
29500 ac_header_preproc=yes
29502 echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29505 ac_header_preproc=no
29508 rm -f conftest.err conftest.$ac_ext
29509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29510 echo "${ECHO_T}$ac_header_preproc" >&6; }
29512 # So? What about this header?
29513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29519 ac_header_preproc=yes
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29535 ## ----------------------------------- ##
29536 ## Report this to llvmbugs@cs.uiuc.edu ##
29537 ## ----------------------------------- ##
29539 ) | sed "s/^/$as_me: WARNING: /" >&2
29542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29547 eval "$as_ac_Header=\$ac_header_preproc"
29549 ac_res=`eval echo '${'$as_ac_Header'}'`
29550 { echo "$as_me:$LINENO: result: $ac_res" >&5
29551 echo "${ECHO_T}$ac_res" >&6; }
29554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29555 cat >>confdefs.h <<_ACEOF
29556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29574 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29575 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29576 if test "${ac_cv_huge_val_sanity+set}" = set; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29581 ac_cpp='$CXXCPP $CPPFLAGS'
29582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29587 if test "$cross_compiling" = yes; then
29588 ac_cv_huge_val_sanity=yes
29590 cat >conftest.$ac_ext <<_ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h. */
29600 double x = HUGE_VAL; return x != x;
29605 rm -f conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_link") 2>&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29616 { (case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_try") 2>&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_cv_huge_val_sanity=yes
29627 echo "$as_me: program exited with status $ac_status" >&5
29628 echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29631 ( exit $ac_status )
29632 ac_cv_huge_val_sanity=no
29634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29639 ac_cpp='$CPP $CPPFLAGS'
29640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29646 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29647 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29648 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29651 { echo "$as_me:$LINENO: checking for pid_t" >&5
29652 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29653 if test "${ac_cv_type_pid_t+set}" = set; then
29654 echo $ECHO_N "(cached) $ECHO_C" >&6
29656 cat >conftest.$ac_ext <<_ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29662 $ac_includes_default
29663 typedef pid_t ac__type_new_;
29667 if ((ac__type_new_ *) 0)
29669 if (sizeof (ac__type_new_))
29675 rm -f conftest.$ac_objext
29676 if { (ac_try="$ac_compile"
29677 case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_compile") 2>conftest.er1
29684 grep -v '^ *+' conftest.er1 >conftest.err
29686 cat conftest.err >&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
29689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29690 { (case "(($ac_try" in
29691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692 *) ac_try_echo=$ac_try;;
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695 (eval "$ac_try") 2>&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; } &&
29699 { ac_try='test -s conftest.$ac_objext'
29700 { (case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_try") 2>&5
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; }; then
29709 ac_cv_type_pid_t=yes
29711 echo "$as_me: failed program was:" >&5
29712 sed 's/^/| /' conftest.$ac_ext >&5
29714 ac_cv_type_pid_t=no
29717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29719 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29720 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29721 if test $ac_cv_type_pid_t = yes; then
29725 cat >>confdefs.h <<_ACEOF
29731 { echo "$as_me:$LINENO: checking for size_t" >&5
29732 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29733 if test "${ac_cv_type_size_t+set}" = set; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29736 cat >conftest.$ac_ext <<_ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h. */
29742 $ac_includes_default
29743 typedef size_t ac__type_new_;
29747 if ((ac__type_new_ *) 0)
29749 if (sizeof (ac__type_new_))
29755 rm -f conftest.$ac_objext
29756 if { (ac_try="$ac_compile"
29757 case "(($ac_try" in
29758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759 *) ac_try_echo=$ac_try;;
29761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762 (eval "$ac_compile") 2>conftest.er1
29764 grep -v '^ *+' conftest.er1 >conftest.err
29766 cat conftest.err >&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
29769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29770 { (case "(($ac_try" in
29771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775 (eval "$ac_try") 2>&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } &&
29779 { ac_try='test -s conftest.$ac_objext'
29780 { (case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_try") 2>&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; }; then
29789 ac_cv_type_size_t=yes
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 ac_cv_type_size_t=no
29797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29799 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29800 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29801 if test $ac_cv_type_size_t = yes; then
29805 cat >>confdefs.h <<_ACEOF
29806 #define size_t unsigned int
29811 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29812 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29813 if test "${ac_cv_type_signal+set}" = set; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
29816 cat >conftest.$ac_ext <<_ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h. */
29822 #include <sys/types.h>
29823 #include <signal.h>
29828 return *(signal (0, 0)) (0) == 1;
29833 rm -f conftest.$ac_objext
29834 if { (ac_try="$ac_compile"
29835 case "(($ac_try" in
29836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837 *) ac_try_echo=$ac_try;;
29839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840 (eval "$ac_compile") 2>conftest.er1
29842 grep -v '^ *+' conftest.er1 >conftest.err
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); } &&
29847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29848 { (case "(($ac_try" in
29849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29850 *) ac_try_echo=$ac_try;;
29852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29853 (eval "$ac_try") 2>&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest.$ac_objext'
29858 { (case "(($ac_try" in
29859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_try") 2>&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; }; then
29867 ac_cv_type_signal=int
29869 echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29872 ac_cv_type_signal=void
29875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29877 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29878 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29880 cat >>confdefs.h <<_ACEOF
29881 #define RETSIGTYPE $ac_cv_type_signal
29885 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29886 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29887 if test "${ac_cv_struct_tm+set}" = set; then
29888 echo $ECHO_N "(cached) $ECHO_C" >&6
29890 cat >conftest.$ac_ext <<_ACEOF
29893 cat confdefs.h >>conftest.$ac_ext
29894 cat >>conftest.$ac_ext <<_ACEOF
29895 /* end confdefs.h. */
29896 #include <sys/types.h>
29902 struct tm *tp; tp->tm_sec;
29907 rm -f conftest.$ac_objext
29908 if { (ac_try="$ac_compile"
29909 case "(($ac_try" in
29910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911 *) ac_try_echo=$ac_try;;
29913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914 (eval "$ac_compile") 2>conftest.er1
29916 grep -v '^ *+' conftest.er1 >conftest.err
29918 cat conftest.err >&5
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); } &&
29921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29922 { (case "(($ac_try" in
29923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924 *) ac_try_echo=$ac_try;;
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927 (eval "$ac_try") 2>&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); }; } &&
29931 { ac_try='test -s conftest.$ac_objext'
29932 { (case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_try") 2>&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; }; then
29941 ac_cv_struct_tm=time.h
29943 echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29946 ac_cv_struct_tm=sys/time.h
29949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29951 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29952 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29953 if test $ac_cv_struct_tm = sys/time.h; then
29955 cat >>confdefs.h <<\_ACEOF
29956 #define TM_IN_SYS_TIME 1
29961 { echo "$as_me:$LINENO: checking for int64_t" >&5
29962 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29963 if test "${ac_cv_type_int64_t+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29966 cat >conftest.$ac_ext <<_ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h. */
29972 $ac_includes_default
29973 typedef int64_t ac__type_new_;
29977 if ((ac__type_new_ *) 0)
29979 if (sizeof (ac__type_new_))
29985 rm -f conftest.$ac_objext
29986 if { (ac_try="$ac_compile"
29987 case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_compile") 2>conftest.er1
29994 grep -v '^ *+' conftest.er1 >conftest.err
29996 cat conftest.err >&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } &&
29999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30000 { (case "(($ac_try" in
30001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30002 *) ac_try_echo=$ac_try;;
30004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30005 (eval "$ac_try") 2>&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30019 ac_cv_type_int64_t=yes
30021 echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30024 ac_cv_type_int64_t=no
30027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30029 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30030 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30031 if test $ac_cv_type_int64_t = yes; then
30033 cat >>confdefs.h <<_ACEOF
30034 #define HAVE_INT64_T 1
30039 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30040 echo "$as_me: error: Type int64_t required but not found" >&2;}
30041 { (exit 1); exit 1; }; }
30044 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30045 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30046 if test "${ac_cv_type_uint64_t+set}" = set; then
30047 echo $ECHO_N "(cached) $ECHO_C" >&6
30049 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 $ac_includes_default
30056 typedef uint64_t ac__type_new_;
30060 if ((ac__type_new_ *) 0)
30062 if (sizeof (ac__type_new_))
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075 (eval "$ac_compile") 2>conftest.er1
30077 grep -v '^ *+' conftest.er1 >conftest.err
30079 cat conftest.err >&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); } &&
30082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30083 { (case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_try") 2>&5
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; } &&
30092 { ac_try='test -s conftest.$ac_objext'
30093 { (case "(($ac_try" in
30094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095 *) ac_try_echo=$ac_try;;
30097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098 (eval "$ac_try") 2>&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); }; }; then
30102 ac_cv_type_uint64_t=yes
30104 echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30107 ac_cv_type_uint64_t=no
30110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30113 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30114 if test $ac_cv_type_uint64_t = yes; then
30116 cat >>confdefs.h <<_ACEOF
30117 #define HAVE_UINT64_T 1
30122 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30123 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30124 if test "${ac_cv_type_u_int64_t+set}" = set; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30127 cat >conftest.$ac_ext <<_ACEOF
30130 cat confdefs.h >>conftest.$ac_ext
30131 cat >>conftest.$ac_ext <<_ACEOF
30132 /* end confdefs.h. */
30133 $ac_includes_default
30134 typedef u_int64_t ac__type_new_;
30138 if ((ac__type_new_ *) 0)
30140 if (sizeof (ac__type_new_))
30146 rm -f conftest.$ac_objext
30147 if { (ac_try="$ac_compile"
30148 case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_compile") 2>conftest.er1
30155 grep -v '^ *+' conftest.er1 >conftest.err
30157 cat conftest.err >&5
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); } &&
30160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30161 { (case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_try") 2>&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); }; } &&
30170 { ac_try='test -s conftest.$ac_objext'
30171 { (case "(($ac_try" in
30172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30173 *) ac_try_echo=$ac_try;;
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176 (eval "$ac_try") 2>&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; }; then
30180 ac_cv_type_u_int64_t=yes
30182 echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30185 ac_cv_type_u_int64_t=no
30188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30190 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30191 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30192 if test $ac_cv_type_u_int64_t = yes; then
30194 cat >>confdefs.h <<_ACEOF
30195 #define HAVE_U_INT64_T 1
30200 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30201 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30202 { (exit 1); exit 1; }; }
30216 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30222 echo $ECHO_N "(cached) $ECHO_C" >&6
30224 cat >conftest.$ac_ext <<_ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h. */
30230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30232 #define $ac_func innocuous_$ac_func
30234 /* System header to define __stub macros and hopefully few prototypes,
30235 which can conflict with char $ac_func (); below.
30236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30237 <limits.h> exists even on freestanding compilers. */
30240 # include <limits.h>
30242 # include <assert.h>
30247 /* Override any GCC internal prototype to avoid an error.
30248 Use char because int might match the return type of a GCC
30249 builtin and then its argument prototype would still apply. */
30254 /* The GNU C library defines this for functions which it implements
30255 to always fail with ENOSYS. Some functions are actually named
30256 something starting with __ and the normal name is an alias. */
30257 #if defined __stub_$ac_func || defined __stub___$ac_func
30264 return $ac_func ();
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (ac_try="$ac_link"
30271 case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_link") 2>conftest.er1
30278 grep -v '^ *+' conftest.er1 >conftest.err
30280 cat conftest.err >&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } &&
30283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30284 { (case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_try") 2>&5
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; } &&
30293 { ac_try='test -s conftest$ac_exeext'
30294 { (case "(($ac_try" in
30295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30296 *) ac_try_echo=$ac_try;;
30298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30299 (eval "$ac_try") 2>&5
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); }; }; then
30303 eval "$as_ac_var=yes"
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30308 eval "$as_ac_var=no"
30311 rm -f core conftest.err conftest.$ac_objext \
30312 conftest$ac_exeext conftest.$ac_ext
30314 ac_res=`eval echo '${'$as_ac_var'}'`
30315 { echo "$as_me:$LINENO: result: $ac_res" >&5
30316 echo "${ECHO_T}$ac_res" >&6; }
30317 if test `eval echo '${'$as_ac_var'}'` = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30329 for ac_func in powf fmodf strtof round
30331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30335 echo $ECHO_N "(cached) $ECHO_C" >&6
30337 cat >conftest.$ac_ext <<_ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30345 #define $ac_func innocuous_$ac_func
30347 /* System header to define __stub macros and hopefully few prototypes,
30348 which can conflict with char $ac_func (); below.
30349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30350 <limits.h> exists even on freestanding compilers. */
30353 # include <limits.h>
30355 # include <assert.h>
30360 /* Override any GCC internal prototype to avoid an error.
30361 Use char because int might match the return type of a GCC
30362 builtin and then its argument prototype would still apply. */
30367 /* The GNU C library defines this for functions which it implements
30368 to always fail with ENOSYS. Some functions are actually named
30369 something starting with __ and the normal name is an alias. */
30370 #if defined __stub_$ac_func || defined __stub___$ac_func
30377 return $ac_func ();
30382 rm -f conftest.$ac_objext conftest$ac_exeext
30383 if { (ac_try="$ac_link"
30384 case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389 (eval "$ac_link") 2>conftest.er1
30391 grep -v '^ *+' conftest.er1 >conftest.err
30393 cat conftest.err >&5
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } &&
30396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30397 { (case "(($ac_try" in
30398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399 *) ac_try_echo=$ac_try;;
30401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30402 (eval "$ac_try") 2>&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); }; } &&
30406 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); }; }; then
30416 eval "$as_ac_var=yes"
30418 echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30421 eval "$as_ac_var=no"
30424 rm -f core conftest.err conftest.$ac_objext \
30425 conftest$ac_exeext conftest.$ac_ext
30427 ac_res=`eval echo '${'$as_ac_var'}'`
30428 { echo "$as_me:$LINENO: result: $ac_res" >&5
30429 echo "${ECHO_T}$ac_res" >&6; }
30430 if test `eval echo '${'$as_ac_var'}'` = yes; then
30431 cat >>confdefs.h <<_ACEOF
30432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30443 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30451 cat >conftest.$ac_ext <<_ACEOF
30454 cat confdefs.h >>conftest.$ac_ext
30455 cat >>conftest.$ac_ext <<_ACEOF
30456 /* end confdefs.h. */
30457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30459 #define $ac_func innocuous_$ac_func
30461 /* System header to define __stub macros and hopefully few prototypes,
30462 which can conflict with char $ac_func (); below.
30463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30464 <limits.h> exists even on freestanding compilers. */
30467 # include <limits.h>
30469 # include <assert.h>
30474 /* Override any GCC internal prototype to avoid an error.
30475 Use char because int might match the return type of a GCC
30476 builtin and then its argument prototype would still apply. */
30481 /* The GNU C library defines this for functions which it implements
30482 to always fail with ENOSYS. Some functions are actually named
30483 something starting with __ and the normal name is an alias. */
30484 #if defined __stub_$ac_func || defined __stub___$ac_func
30491 return $ac_func ();
30496 rm -f conftest.$ac_objext conftest$ac_exeext
30497 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30505 grep -v '^ *+' conftest.er1 >conftest.err
30507 cat conftest.err >&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); } &&
30510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30511 { (case "(($ac_try" in
30512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513 *) ac_try_echo=$ac_try;;
30515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516 (eval "$ac_try") 2>&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); }; } &&
30520 { ac_try='test -s conftest$ac_exeext'
30521 { (case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_try") 2>&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; }; then
30530 eval "$as_ac_var=yes"
30532 echo "$as_me: failed program was:" >&5
30533 sed 's/^/| /' conftest.$ac_ext >&5
30535 eval "$as_ac_var=no"
30538 rm -f core conftest.err conftest.$ac_objext \
30539 conftest$ac_exeext conftest.$ac_ext
30541 ac_res=`eval echo '${'$as_ac_var'}'`
30542 { echo "$as_me:$LINENO: result: $ac_res" >&5
30543 echo "${ECHO_T}$ac_res" >&6; }
30544 if test `eval echo '${'$as_ac_var'}'` = yes; then
30545 cat >>confdefs.h <<_ACEOF
30546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30555 for ac_func in isatty mkdtemp mkstemp
30557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30561 echo $ECHO_N "(cached) $ECHO_C" >&6
30563 cat >conftest.$ac_ext <<_ACEOF
30566 cat confdefs.h >>conftest.$ac_ext
30567 cat >>conftest.$ac_ext <<_ACEOF
30568 /* end confdefs.h. */
30569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30571 #define $ac_func innocuous_$ac_func
30573 /* System header to define __stub macros and hopefully few prototypes,
30574 which can conflict with char $ac_func (); below.
30575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30576 <limits.h> exists even on freestanding compilers. */
30579 # include <limits.h>
30581 # include <assert.h>
30586 /* Override any GCC internal prototype to avoid an error.
30587 Use char because int might match the return type of a GCC
30588 builtin and then its argument prototype would still apply. */
30593 /* The GNU C library defines this for functions which it implements
30594 to always fail with ENOSYS. Some functions are actually named
30595 something starting with __ and the normal name is an alias. */
30596 #if defined __stub_$ac_func || defined __stub___$ac_func
30603 return $ac_func ();
30608 rm -f conftest.$ac_objext conftest$ac_exeext
30609 if { (ac_try="$ac_link"
30610 case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_link") 2>conftest.er1
30617 grep -v '^ *+' conftest.er1 >conftest.err
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); } &&
30622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30623 { (case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628 (eval "$ac_try") 2>&5
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest$ac_exeext'
30633 { (case "(($ac_try" in
30634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_try") 2>&5
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
30642 eval "$as_ac_var=yes"
30644 echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30647 eval "$as_ac_var=no"
30650 rm -f core conftest.err conftest.$ac_objext \
30651 conftest$ac_exeext conftest.$ac_ext
30653 ac_res=`eval echo '${'$as_ac_var'}'`
30654 { echo "$as_me:$LINENO: result: $ac_res" >&5
30655 echo "${ECHO_T}$ac_res" >&6; }
30656 if test `eval echo '${'$as_ac_var'}'` = yes; then
30657 cat >>confdefs.h <<_ACEOF
30658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30671 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30679 cat >conftest.$ac_ext <<_ACEOF
30682 cat confdefs.h >>conftest.$ac_ext
30683 cat >>conftest.$ac_ext <<_ACEOF
30684 /* end confdefs.h. */
30685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30687 #define $ac_func innocuous_$ac_func
30689 /* System header to define __stub macros and hopefully few prototypes,
30690 which can conflict with char $ac_func (); below.
30691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30692 <limits.h> exists even on freestanding compilers. */
30695 # include <limits.h>
30697 # include <assert.h>
30702 /* Override any GCC internal prototype to avoid an error.
30703 Use char because int might match the return type of a GCC
30704 builtin and then its argument prototype would still apply. */
30709 /* The GNU C library defines this for functions which it implements
30710 to always fail with ENOSYS. Some functions are actually named
30711 something starting with __ and the normal name is an alias. */
30712 #if defined __stub_$ac_func || defined __stub___$ac_func
30719 return $ac_func ();
30724 rm -f conftest.$ac_objext conftest$ac_exeext
30725 if { (ac_try="$ac_link"
30726 case "(($ac_try" in
30727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728 *) ac_try_echo=$ac_try;;
30730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731 (eval "$ac_link") 2>conftest.er1
30733 grep -v '^ *+' conftest.er1 >conftest.err
30735 cat conftest.err >&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); } &&
30738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30739 { (case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_try") 2>&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; } &&
30748 { ac_try='test -s conftest$ac_exeext'
30749 { (case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754 (eval "$ac_try") 2>&5
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; }; then
30758 eval "$as_ac_var=yes"
30760 echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30763 eval "$as_ac_var=no"
30766 rm -f core conftest.err conftest.$ac_objext \
30767 conftest$ac_exeext conftest.$ac_ext
30769 ac_res=`eval echo '${'$as_ac_var'}'`
30770 { echo "$as_me:$LINENO: result: $ac_res" >&5
30771 echo "${ECHO_T}$ac_res" >&6; }
30772 if test `eval echo '${'$as_ac_var'}'` = yes; then
30773 cat >>confdefs.h <<_ACEOF
30774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30784 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30790 echo $ECHO_N "(cached) $ECHO_C" >&6
30792 cat >conftest.$ac_ext <<_ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30800 #define $ac_func innocuous_$ac_func
30802 /* System header to define __stub macros and hopefully few prototypes,
30803 which can conflict with char $ac_func (); below.
30804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30805 <limits.h> exists even on freestanding compilers. */
30808 # include <limits.h>
30810 # include <assert.h>
30815 /* Override any GCC internal prototype to avoid an error.
30816 Use char because int might match the return type of a GCC
30817 builtin and then its argument prototype would still apply. */
30822 /* The GNU C library defines this for functions which it implements
30823 to always fail with ENOSYS. Some functions are actually named
30824 something starting with __ and the normal name is an alias. */
30825 #if defined __stub_$ac_func || defined __stub___$ac_func
30832 return $ac_func ();
30837 rm -f conftest.$ac_objext conftest$ac_exeext
30838 if { (ac_try="$ac_link"
30839 case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_link") 2>conftest.er1
30846 grep -v '^ *+' conftest.er1 >conftest.err
30848 cat conftest.err >&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } &&
30851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30852 { (case "(($ac_try" in
30853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854 *) ac_try_echo=$ac_try;;
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857 (eval "$ac_try") 2>&5
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; } &&
30861 { ac_try='test -s conftest$ac_exeext'
30862 { (case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_try") 2>&5
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); }; }; then
30871 eval "$as_ac_var=yes"
30873 echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30876 eval "$as_ac_var=no"
30879 rm -f core conftest.err conftest.$ac_objext \
30880 conftest$ac_exeext conftest.$ac_ext
30882 ac_res=`eval echo '${'$as_ac_var'}'`
30883 { echo "$as_me:$LINENO: result: $ac_res" >&5
30884 echo "${ECHO_T}$ac_res" >&6; }
30885 if test `eval echo '${'$as_ac_var'}'` = yes; then
30886 cat >>confdefs.h <<_ACEOF
30887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30897 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30903 echo $ECHO_N "(cached) $ECHO_C" >&6
30905 cat >conftest.$ac_ext <<_ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h. */
30911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30913 #define $ac_func innocuous_$ac_func
30915 /* System header to define __stub macros and hopefully few prototypes,
30916 which can conflict with char $ac_func (); below.
30917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30918 <limits.h> exists even on freestanding compilers. */
30921 # include <limits.h>
30923 # include <assert.h>
30928 /* Override any GCC internal prototype to avoid an error.
30929 Use char because int might match the return type of a GCC
30930 builtin and then its argument prototype would still apply. */
30935 /* The GNU C library defines this for functions which it implements
30936 to always fail with ENOSYS. Some functions are actually named
30937 something starting with __ and the normal name is an alias. */
30938 #if defined __stub_$ac_func || defined __stub___$ac_func
30945 return $ac_func ();
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (ac_try="$ac_link"
30952 case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_link") 2>conftest.er1
30959 grep -v '^ *+' conftest.er1 >conftest.err
30961 cat conftest.err >&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
30964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30965 { (case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_try") 2>&5
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; } &&
30974 { ac_try='test -s conftest$ac_exeext'
30975 { (case "(($ac_try" in
30976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977 *) ac_try_echo=$ac_try;;
30979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30980 (eval "$ac_try") 2>&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); }; }; then
30984 eval "$as_ac_var=yes"
30986 echo "$as_me: failed program was:" >&5
30987 sed 's/^/| /' conftest.$ac_ext >&5
30989 eval "$as_ac_var=no"
30992 rm -f core conftest.err conftest.$ac_objext \
30993 conftest$ac_exeext conftest.$ac_ext
30995 ac_res=`eval echo '${'$as_ac_var'}'`
30996 { echo "$as_me:$LINENO: result: $ac_res" >&5
30997 echo "${ECHO_T}$ac_res" >&6; }
30998 if test `eval echo '${'$as_ac_var'}'` = yes; then
30999 cat >>confdefs.h <<_ACEOF
31000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31006 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31007 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31008 if test "${llvm_cv_c_printf_a+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31012 ac_cpp='$CPP $CPPFLAGS'
31013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31017 if test "$cross_compiling" = yes; then
31018 llvmac_cv_c_printf_a=no
31020 cat >conftest.$ac_ext <<_ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h. */
31029 #include <stdlib.h>
31035 volatile double A, B;
31039 sprintf(Buffer, "%a", A);
31043 if (A != 0x1.999999999999ap-4)
31050 rm -f conftest$ac_exeext
31051 if { (ac_try="$ac_link"
31052 case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_link") 2>&5
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061 { (case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_try") 2>&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
31070 llvm_cv_c_printf_a=yes
31072 echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31076 ( exit $ac_status )
31077 llvmac_cv_c_printf_a=no
31079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31084 ac_cpp='$CPP $CPPFLAGS'
31085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31090 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31091 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31092 if test "$llvm_cv_c_printf_a" = "yes"; then
31094 cat >>confdefs.h <<\_ACEOF
31095 #define HAVE_PRINTF_A 1
31100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31101 # for constant arguments. Useless!
31102 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31103 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31104 if test "${ac_cv_working_alloca_h+set}" = set; then
31105 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 cat >conftest.$ac_ext <<_ACEOF
31110 cat confdefs.h >>conftest.$ac_ext
31111 cat >>conftest.$ac_ext <<_ACEOF
31112 /* end confdefs.h. */
31113 #include <alloca.h>
31117 char *p = (char *) alloca (2 * sizeof (int));
31123 rm -f conftest.$ac_objext conftest$ac_exeext
31124 if { (ac_try="$ac_link"
31125 case "(($ac_try" in
31126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127 *) ac_try_echo=$ac_try;;
31129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130 (eval "$ac_link") 2>conftest.er1
31132 grep -v '^ *+' conftest.er1 >conftest.err
31134 cat conftest.err >&5
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } &&
31137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31138 { (case "(($ac_try" in
31139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140 *) ac_try_echo=$ac_try;;
31142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143 (eval "$ac_try") 2>&5
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); }; } &&
31147 { ac_try='test -s conftest$ac_exeext'
31148 { (case "(($ac_try" in
31149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150 *) ac_try_echo=$ac_try;;
31152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31153 (eval "$ac_try") 2>&5
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
31157 ac_cv_working_alloca_h=yes
31159 echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31162 ac_cv_working_alloca_h=no
31165 rm -f core conftest.err conftest.$ac_objext \
31166 conftest$ac_exeext conftest.$ac_ext
31168 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31169 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31170 if test $ac_cv_working_alloca_h = yes; then
31172 cat >>confdefs.h <<\_ACEOF
31173 #define HAVE_ALLOCA_H 1
31178 { echo "$as_me:$LINENO: checking for alloca" >&5
31179 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31180 if test "${ac_cv_func_alloca_works+set}" = set; then
31181 echo $ECHO_N "(cached) $ECHO_C" >&6
31183 cat >conftest.$ac_ext <<_ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31190 # define alloca __builtin_alloca
31193 # include <malloc.h>
31194 # define alloca _alloca
31197 # include <alloca.h>
31202 # ifndef alloca /* predefined by HP cc +Olibcalls */
31213 char *p = (char *) alloca (1);
31219 rm -f conftest.$ac_objext conftest$ac_exeext
31220 if { (ac_try="$ac_link"
31221 case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_link") 2>conftest.er1
31228 grep -v '^ *+' conftest.er1 >conftest.err
31230 cat conftest.err >&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } &&
31233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31234 { (case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_try") 2>&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; } &&
31243 { ac_try='test -s conftest$ac_exeext'
31244 { (case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_try") 2>&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; }; then
31253 ac_cv_func_alloca_works=yes
31255 echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31258 ac_cv_func_alloca_works=no
31261 rm -f core conftest.err conftest.$ac_objext \
31262 conftest$ac_exeext conftest.$ac_ext
31264 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31265 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31267 if test $ac_cv_func_alloca_works = yes; then
31269 cat >>confdefs.h <<\_ACEOF
31270 #define HAVE_ALLOCA 1
31274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31275 # that cause trouble. Some versions do not even contain alloca or
31276 # contain a buggy version. If you still want to use their alloca,
31277 # use ar to extract alloca.o from them instead of compiling alloca.c.
31279 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31281 cat >>confdefs.h <<\_ACEOF
31286 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31287 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31288 if test "${ac_cv_os_cray+set}" = set; then
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
31291 cat >conftest.$ac_ext <<_ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h. */
31297 #if defined CRAY && ! defined CRAY2
31304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31305 $EGREP "webecray" >/dev/null 2>&1; then
31313 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31314 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31315 if test $ac_cv_os_cray = yes; then
31316 for ac_func in _getb67 GETB67 getb67; do
31317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31323 cat >conftest.$ac_ext <<_ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31331 #define $ac_func innocuous_$ac_func
31333 /* System header to define __stub macros and hopefully few prototypes,
31334 which can conflict with char $ac_func (); below.
31335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31336 <limits.h> exists even on freestanding compilers. */
31339 # include <limits.h>
31341 # include <assert.h>
31346 /* Override any GCC internal prototype to avoid an error.
31347 Use char because int might match the return type of a GCC
31348 builtin and then its argument prototype would still apply. */
31353 /* The GNU C library defines this for functions which it implements
31354 to always fail with ENOSYS. Some functions are actually named
31355 something starting with __ and the normal name is an alias. */
31356 #if defined __stub_$ac_func || defined __stub___$ac_func
31363 return $ac_func ();
31368 rm -f conftest.$ac_objext conftest$ac_exeext
31369 if { (ac_try="$ac_link"
31370 case "(($ac_try" in
31371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372 *) ac_try_echo=$ac_try;;
31374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375 (eval "$ac_link") 2>conftest.er1
31377 grep -v '^ *+' conftest.er1 >conftest.err
31379 cat conftest.err >&5
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
31382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31383 { (case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_try") 2>&5
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; } &&
31392 { ac_try='test -s conftest$ac_exeext'
31393 { (case "(($ac_try" in
31394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31395 *) ac_try_echo=$ac_try;;
31397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31398 (eval "$ac_try") 2>&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 eval "$as_ac_var=yes"
31404 echo "$as_me: failed program was:" >&5
31405 sed 's/^/| /' conftest.$ac_ext >&5
31407 eval "$as_ac_var=no"
31410 rm -f core conftest.err conftest.$ac_objext \
31411 conftest$ac_exeext conftest.$ac_ext
31413 ac_res=`eval echo '${'$as_ac_var'}'`
31414 { echo "$as_me:$LINENO: result: $ac_res" >&5
31415 echo "${ECHO_T}$ac_res" >&6; }
31416 if test `eval echo '${'$as_ac_var'}'` = yes; then
31418 cat >>confdefs.h <<_ACEOF
31419 #define CRAY_STACKSEG_END $ac_func
31428 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31429 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31430 if test "${ac_cv_c_stack_direction+set}" = set; then
31431 echo $ECHO_N "(cached) $ECHO_C" >&6
31433 if test "$cross_compiling" = yes; then
31434 ac_cv_c_stack_direction=0
31436 cat >conftest.$ac_ext <<_ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h. */
31442 $ac_includes_default
31444 find_stack_direction ()
31446 static char *addr = 0;
31451 return find_stack_direction ();
31454 return (&dummy > addr) ? 1 : -1;
31460 return find_stack_direction () < 0;
31463 rm -f conftest$ac_exeext
31464 if { (ac_try="$ac_link"
31465 case "(($ac_try" in
31466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31467 *) ac_try_echo=$ac_try;;
31469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31470 (eval "$ac_link") 2>&5
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31474 { (case "(($ac_try" in
31475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31476 *) ac_try_echo=$ac_try;;
31478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31479 (eval "$ac_try") 2>&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; }; then
31483 ac_cv_c_stack_direction=1
31485 echo "$as_me: program exited with status $ac_status" >&5
31486 echo "$as_me: failed program was:" >&5
31487 sed 's/^/| /' conftest.$ac_ext >&5
31489 ( exit $ac_status )
31490 ac_cv_c_stack_direction=-1
31492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31497 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31498 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31500 cat >>confdefs.h <<_ACEOF
31501 #define STACK_DIRECTION $ac_cv_c_stack_direction
31508 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31509 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31510 if test "${ac_cv_func_rand48+set}" = set; then
31511 echo $ECHO_N "(cached) $ECHO_C" >&6
31514 ac_cpp='$CXXCPP $CPPFLAGS'
31515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31519 cat >conftest.$ac_ext <<_ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h. */
31525 #include <stdlib.h>
31529 srand48(0);lrand48();drand48();
31534 rm -f conftest.$ac_objext
31535 if { (ac_try="$ac_compile"
31536 case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_compile") 2>conftest.er1
31543 grep -v '^ *+' conftest.er1 >conftest.err
31545 cat conftest.err >&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
31548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; } &&
31558 { ac_try='test -s conftest.$ac_objext'
31559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 ac_cv_func_rand48=yes
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31573 ac_cv_func_rand48=no
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31578 ac_cpp='$CPP $CPPFLAGS'
31579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31584 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31585 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31587 if test "$ac_cv_func_rand48" = "yes" ; then
31589 cat >>confdefs.h <<\_ACEOF
31590 #define HAVE_RAND48 1
31596 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31597 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31598 if test "${ac_cv_cxx_namespaces+set}" = set; then
31599 echo $ECHO_N "(cached) $ECHO_C" >&6
31602 ac_cpp='$CXXCPP $CPPFLAGS'
31603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31607 cat >conftest.$ac_ext <<_ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h. */
31613 namespace Outer { namespace Inner { int i = 0; }}
31617 using namespace Outer::Inner; return i;
31622 rm -f conftest.$ac_objext
31623 if { (ac_try="$ac_compile"
31624 case "(($ac_try" in
31625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626 *) ac_try_echo=$ac_try;;
31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629 (eval "$ac_compile") 2>conftest.er1
31631 grep -v '^ *+' conftest.er1 >conftest.err
31633 cat conftest.err >&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } &&
31636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31637 { (case "(($ac_try" in
31638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639 *) ac_try_echo=$ac_try;;
31641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642 (eval "$ac_try") 2>&5
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); }; } &&
31646 { ac_try='test -s conftest.$ac_objext'
31647 { (case "(($ac_try" in
31648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649 *) ac_try_echo=$ac_try;;
31651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652 (eval "$ac_try") 2>&5
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; }; then
31656 ac_cv_cxx_namespaces=yes
31658 echo "$as_me: failed program was:" >&5
31659 sed 's/^/| /' conftest.$ac_ext >&5
31661 ac_cv_cxx_namespaces=no
31664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31666 ac_cpp='$CPP $CPPFLAGS'
31667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31673 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31674 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31675 if test "$ac_cv_cxx_namespaces" = yes; then
31677 cat >>confdefs.h <<\_ACEOF
31678 #define HAVE_NAMESPACES
31683 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31684 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31685 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31686 echo $ECHO_N "(cached) $ECHO_C" >&6
31690 ac_cpp='$CXXCPP $CPPFLAGS'
31691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31695 cat >conftest.$ac_ext <<_ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h. */
31701 #include <ext/hash_map>
31702 #ifdef HAVE_NAMESPACES
31703 using namespace std;
31708 hash_map<int, int> t;
31713 rm -f conftest.$ac_objext
31714 if { (ac_try="$ac_compile"
31715 case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_compile") 2>conftest.er1
31722 grep -v '^ *+' conftest.er1 >conftest.err
31724 cat conftest.err >&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } &&
31727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31728 { (case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_try") 2>&5
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); }; } &&
31737 { ac_try='test -s conftest.$ac_objext'
31738 { (case "(($ac_try" in
31739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740 *) ac_try_echo=$ac_try;;
31742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_try") 2>&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
31747 ac_cv_cxx_have_std_ext_hash_map=yes
31749 echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31752 ac_cv_cxx_have_std_ext_hash_map=no
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31757 ac_cpp='$CPP $CPPFLAGS'
31758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31763 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31764 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31765 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31768 cat >>confdefs.h <<\_ACEOF
31769 #define HAVE_STD_EXT_HASH_MAP 1
31774 cat >>confdefs.h <<\_ACEOF
31775 #define HAVE_STD_EXT_HASH_MAP 0
31780 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31781 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31782 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31787 ac_cpp='$CXXCPP $CPPFLAGS'
31788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31792 cat >conftest.$ac_ext <<_ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h. */
31798 #include <ext/hash_map>
31799 #ifdef HAVE_NAMESPACES
31800 using namespace __gnu_cxx;
31805 hash_map<int,int> t;
31810 rm -f conftest.$ac_objext
31811 if { (ac_try="$ac_compile"
31812 case "(($ac_try" in
31813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814 *) ac_try_echo=$ac_try;;
31816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817 (eval "$ac_compile") 2>conftest.er1
31819 grep -v '^ *+' conftest.er1 >conftest.err
31821 cat conftest.err >&5
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); } &&
31824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; } &&
31834 { ac_try='test -s conftest.$ac_objext'
31835 { (case "(($ac_try" in
31836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837 *) ac_try_echo=$ac_try;;
31839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840 (eval "$ac_try") 2>&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; }; then
31844 ac_cv_cxx_have_gnu_ext_hash_map=yes
31846 echo "$as_me: failed program was:" >&5
31847 sed 's/^/| /' conftest.$ac_ext >&5
31849 ac_cv_cxx_have_gnu_ext_hash_map=no
31852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31854 ac_cpp='$CPP $CPPFLAGS'
31855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31860 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31861 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31862 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31865 cat >>confdefs.h <<\_ACEOF
31866 #define HAVE_GNU_EXT_HASH_MAP 1
31871 cat >>confdefs.h <<\_ACEOF
31872 #define HAVE_GNU_EXT_HASH_MAP 0
31877 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31878 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31879 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31880 echo $ECHO_N "(cached) $ECHO_C" >&6
31884 ac_cpp='$CXXCPP $CPPFLAGS'
31885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31889 cat >conftest.$ac_ext <<_ACEOF
31892 cat confdefs.h >>conftest.$ac_ext
31893 cat >>conftest.$ac_ext <<_ACEOF
31894 /* end confdefs.h. */
31895 #include <hash_map>
31899 hash_map<int,int> t;
31904 rm -f conftest.$ac_objext
31905 if { (ac_try="$ac_compile"
31906 case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_compile") 2>conftest.er1
31913 grep -v '^ *+' conftest.er1 >conftest.err
31915 cat conftest.err >&5
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); } &&
31918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31919 { (case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_try") 2>&5
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); }; } &&
31928 { ac_try='test -s conftest.$ac_objext'
31929 { (case "(($ac_try" in
31930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31931 *) ac_try_echo=$ac_try;;
31933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31934 (eval "$ac_try") 2>&5
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); }; }; then
31938 ac_cv_cxx_have_global_hash_map=yes
31940 echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31943 ac_cv_cxx_have_global_hash_map=no
31946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31948 ac_cpp='$CPP $CPPFLAGS'
31949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31954 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31955 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31956 if test "$ac_cv_cxx_have_global_hash_map" = yes
31959 cat >>confdefs.h <<\_ACEOF
31960 #define HAVE_GLOBAL_HASH_MAP 1
31965 cat >>confdefs.h <<\_ACEOF
31966 #define HAVE_GLOBAL_HASH_MAP 0
31971 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31972 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31973 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31974 echo $ECHO_N "(cached) $ECHO_C" >&6
31978 ac_cpp='$CXXCPP $CPPFLAGS'
31979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31983 cat >conftest.$ac_ext <<_ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h. */
31989 #include <ext/hash_set>
31990 #ifdef HAVE_NAMESPACES
31991 using namespace std;
32001 rm -f conftest.$ac_objext
32002 if { (ac_try="$ac_compile"
32003 case "(($ac_try" in
32004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005 *) ac_try_echo=$ac_try;;
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008 (eval "$ac_compile") 2>conftest.er1
32010 grep -v '^ *+' conftest.er1 >conftest.err
32012 cat conftest.err >&5
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); } &&
32015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32016 { (case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_try") 2>&5
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; } &&
32025 { ac_try='test -s conftest.$ac_objext'
32026 { (case "(($ac_try" in
32027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32028 *) ac_try_echo=$ac_try;;
32030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32031 (eval "$ac_try") 2>&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; }; then
32035 ac_cv_cxx_have_std_ext_hash_set=yes
32037 echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32040 ac_cv_cxx_have_std_ext_hash_set=no
32043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32045 ac_cpp='$CPP $CPPFLAGS'
32046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32051 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32052 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32053 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32056 cat >>confdefs.h <<\_ACEOF
32057 #define HAVE_STD_EXT_HASH_SET 1
32062 cat >>confdefs.h <<\_ACEOF
32063 #define HAVE_STD_EXT_HASH_SET 0
32068 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32069 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32070 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32075 ac_cpp='$CXXCPP $CPPFLAGS'
32076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32080 cat >conftest.$ac_ext <<_ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h. */
32086 #include <ext/hash_set>
32087 #ifdef HAVE_NAMESPACES
32088 using namespace __gnu_cxx;
32098 rm -f conftest.$ac_objext
32099 if { (ac_try="$ac_compile"
32100 case "(($ac_try" in
32101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102 *) ac_try_echo=$ac_try;;
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105 (eval "$ac_compile") 2>conftest.er1
32107 grep -v '^ *+' conftest.er1 >conftest.err
32109 cat conftest.err >&5
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
32112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32113 { (case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_try") 2>&5
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; } &&
32122 { ac_try='test -s conftest.$ac_objext'
32123 { (case "(($ac_try" in
32124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125 *) ac_try_echo=$ac_try;;
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128 (eval "$ac_try") 2>&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_cxx_have_gnu_ext_hash_set=yes
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32137 ac_cv_cxx_have_gnu_ext_hash_set=no
32140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32142 ac_cpp='$CPP $CPPFLAGS'
32143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32148 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32149 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32150 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32153 cat >>confdefs.h <<\_ACEOF
32154 #define HAVE_GNU_EXT_HASH_SET 1
32159 cat >>confdefs.h <<\_ACEOF
32160 #define HAVE_GNU_EXT_HASH_SET 0
32165 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32166 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32167 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 ac_cpp='$CXXCPP $CPPFLAGS'
32173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32177 cat >conftest.$ac_ext <<_ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h. */
32183 #include <hash_set>
32187 hash_set<int> t; return 0;
32192 rm -f conftest.$ac_objext
32193 if { (ac_try="$ac_compile"
32194 case "(($ac_try" in
32195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196 *) ac_try_echo=$ac_try;;
32198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199 (eval "$ac_compile") 2>conftest.er1
32201 grep -v '^ *+' conftest.er1 >conftest.err
32203 cat conftest.err >&5
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); } &&
32206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32207 { (case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_try") 2>&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; } &&
32216 { ac_try='test -s conftest.$ac_objext'
32217 { (case "(($ac_try" in
32218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219 *) ac_try_echo=$ac_try;;
32221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222 (eval "$ac_try") 2>&5
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); }; }; then
32226 ac_cv_cxx_have_global_hash_set=yes
32228 echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32231 ac_cv_cxx_have_global_hash_set=no
32234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32236 ac_cpp='$CPP $CPPFLAGS'
32237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32242 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32243 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32244 if test "$ac_cv_cxx_have_global_hash_set" = yes
32247 cat >>confdefs.h <<\_ACEOF
32248 #define HAVE_GLOBAL_HASH_SET 1
32253 cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_GLOBAL_HASH_SET 0
32259 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32260 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32261 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32262 echo $ECHO_N "(cached) $ECHO_C" >&6
32266 ac_cpp='$CXXCPP $CPPFLAGS'
32267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32271 cat >conftest.$ac_ext <<_ACEOF
32274 cat confdefs.h >>conftest.$ac_ext
32275 cat >>conftest.$ac_ext <<_ACEOF
32276 /* end confdefs.h. */
32277 #include <iterator>
32278 #ifdef HAVE_NAMESPACES
32279 using namespace std;
32284 iterator<int,int,int> t; return 0;
32289 rm -f conftest.$ac_objext
32290 if { (ac_try="$ac_compile"
32291 case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_compile") 2>conftest.er1
32298 grep -v '^ *+' conftest.er1 >conftest.err
32300 cat conftest.err >&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); } &&
32303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } &&
32313 { ac_try='test -s conftest.$ac_objext'
32314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 ac_cv_cxx_have_std_iterator=yes
32325 echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32328 ac_cv_cxx_have_std_iterator=no
32331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32333 ac_cpp='$CPP $CPPFLAGS'
32334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32341 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32342 if test "$ac_cv_cxx_have_std_iterator" = yes
32345 cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_STD_ITERATOR 1
32351 cat >>confdefs.h <<\_ACEOF
32352 #define HAVE_STD_ITERATOR 0
32357 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32358 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32359 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32364 ac_cpp='$CXXCPP $CPPFLAGS'
32365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32369 cat >conftest.$ac_ext <<_ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32375 #include <iterator>
32376 #ifdef HAVE_NAMESPACES
32377 using namespace std;
32382 bidirectional_iterator<int,int> t; return 0;
32387 rm -f conftest.$ac_objext
32388 if { (ac_try="$ac_compile"
32389 case "(($ac_try" in
32390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391 *) ac_try_echo=$ac_try;;
32393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394 (eval "$ac_compile") 2>conftest.er1
32396 grep -v '^ *+' conftest.er1 >conftest.err
32398 cat conftest.err >&5
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); } &&
32401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32402 { (case "(($ac_try" in
32403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404 *) ac_try_echo=$ac_try;;
32406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407 (eval "$ac_try") 2>&5
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); }; } &&
32411 { ac_try='test -s conftest.$ac_objext'
32412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; }; then
32421 ac_cv_cxx_have_bi_iterator=yes
32423 echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32426 ac_cv_cxx_have_bi_iterator=no
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32431 ac_cpp='$CPP $CPPFLAGS'
32432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32438 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32439 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32440 if test "$ac_cv_cxx_have_bi_iterator" = yes
32443 cat >>confdefs.h <<\_ACEOF
32444 #define HAVE_BI_ITERATOR 1
32449 cat >>confdefs.h <<\_ACEOF
32450 #define HAVE_BI_ITERATOR 0
32455 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32456 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32457 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32458 echo $ECHO_N "(cached) $ECHO_C" >&6
32462 ac_cpp='$CXXCPP $CPPFLAGS'
32463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32467 cat >conftest.$ac_ext <<_ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h. */
32473 #include <iterator>
32474 #ifdef HAVE_NAMESPACES
32475 using namespace std;
32480 forward_iterator<int,int> t; return 0;
32485 rm -f conftest.$ac_objext
32486 if { (ac_try="$ac_compile"
32487 case "(($ac_try" in
32488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489 *) ac_try_echo=$ac_try;;
32491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492 (eval "$ac_compile") 2>conftest.er1
32494 grep -v '^ *+' conftest.er1 >conftest.err
32496 cat conftest.err >&5
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); } &&
32499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32500 { (case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_try") 2>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; } &&
32509 { ac_try='test -s conftest.$ac_objext'
32510 { (case "(($ac_try" in
32511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512 *) ac_try_echo=$ac_try;;
32514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515 (eval "$ac_try") 2>&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; }; then
32519 ac_cv_cxx_have_fwd_iterator=yes
32521 echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32524 ac_cv_cxx_have_fwd_iterator=no
32527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32529 ac_cpp='$CPP $CPPFLAGS'
32530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32536 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32537 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32538 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32541 cat >>confdefs.h <<\_ACEOF
32542 #define HAVE_FWD_ITERATOR 1
32547 cat >>confdefs.h <<\_ACEOF
32548 #define HAVE_FWD_ITERATOR 0
32554 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32555 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32556 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32560 ac_cpp='$CXXCPP $CPPFLAGS'
32561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565 cat >conftest.$ac_ext <<_ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h. */
32580 rm -f conftest.$ac_objext
32581 if { (ac_try="$ac_compile"
32582 case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_compile") 2>conftest.er1
32589 grep -v '^ *+' conftest.er1 >conftest.err
32591 cat conftest.err >&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } &&
32594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32595 { (case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_try") 2>&5
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest.$ac_objext'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 ac_cv_func_isnan_in_math_h=yes
32616 echo "$as_me: failed program was:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32619 ac_cv_func_isnan_in_math_h=no
32622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32624 ac_cpp='$CPP $CPPFLAGS'
32625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32630 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32631 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32634 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32636 cat >>confdefs.h <<\_ACEOF
32637 #define HAVE_ISNAN_IN_MATH_H 1
32642 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32643 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32644 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32648 ac_cpp='$CXXCPP $CPPFLAGS'
32649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32668 rm -f conftest.$ac_objext
32669 if { (ac_try="$ac_compile"
32670 case "(($ac_try" in
32671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672 *) ac_try_echo=$ac_try;;
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675 (eval "$ac_compile") 2>conftest.er1
32677 grep -v '^ *+' conftest.er1 >conftest.err
32679 cat conftest.err >&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } &&
32682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32683 { (case "(($ac_try" in
32684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685 *) ac_try_echo=$ac_try;;
32687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688 (eval "$ac_try") 2>&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; } &&
32692 { ac_try='test -s conftest.$ac_objext'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; }; then
32702 ac_cv_func_isnan_in_cmath=yes
32704 echo "$as_me: failed program was:" >&5
32705 sed 's/^/| /' conftest.$ac_ext >&5
32707 ac_cv_func_isnan_in_cmath=no
32710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32712 ac_cpp='$CPP $CPPFLAGS'
32713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32718 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32719 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32721 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32723 cat >>confdefs.h <<\_ACEOF
32724 #define HAVE_ISNAN_IN_CMATH 1
32729 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32730 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32731 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32732 echo $ECHO_N "(cached) $ECHO_C" >&6
32735 ac_cpp='$CXXCPP $CPPFLAGS'
32736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32740 cat >conftest.$ac_ext <<_ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h. */
32750 float f; std::isnan(f);
32755 rm -f conftest.$ac_objext
32756 if { (ac_try="$ac_compile"
32757 case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_compile") 2>conftest.er1
32764 grep -v '^ *+' conftest.er1 >conftest.err
32766 cat conftest.err >&5
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); } &&
32769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32770 { (case "(($ac_try" in
32771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772 *) ac_try_echo=$ac_try;;
32774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775 (eval "$ac_try") 2>&5
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); }; } &&
32779 { ac_try='test -s conftest.$ac_objext'
32780 { (case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_try") 2>&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; }; then
32789 ac_cv_func_std_isnan_in_cmath=yes
32791 echo "$as_me: failed program was:" >&5
32792 sed 's/^/| /' conftest.$ac_ext >&5
32794 ac_cv_func_std_isnan_in_cmath=no
32797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32799 ac_cpp='$CPP $CPPFLAGS'
32800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32805 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32806 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32808 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32810 cat >>confdefs.h <<\_ACEOF
32811 #define HAVE_STD_ISNAN_IN_CMATH 1
32817 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32818 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32819 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32820 echo $ECHO_N "(cached) $ECHO_C" >&6
32823 ac_cpp='$CXXCPP $CPPFLAGS'
32824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32828 cat >conftest.$ac_ext <<_ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h. */
32843 rm -f conftest.$ac_objext
32844 if { (ac_try="$ac_compile"
32845 case "(($ac_try" in
32846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32847 *) ac_try_echo=$ac_try;;
32849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32850 (eval "$ac_compile") 2>conftest.er1
32852 grep -v '^ *+' conftest.er1 >conftest.err
32854 cat conftest.err >&5
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); } &&
32857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32858 { (case "(($ac_try" in
32859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32860 *) ac_try_echo=$ac_try;;
32862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32863 (eval "$ac_try") 2>&5
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); }; } &&
32867 { ac_try='test -s conftest.$ac_objext'
32868 { (case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_try") 2>&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); }; }; then
32877 ac_cv_func_isinf_in_math_h=yes
32879 echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32882 ac_cv_func_isinf_in_math_h=no
32885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32887 ac_cpp='$CPP $CPPFLAGS'
32888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32893 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32894 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32896 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32898 cat >>confdefs.h <<\_ACEOF
32899 #define HAVE_ISINF_IN_MATH_H 1
32904 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32905 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32906 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32907 echo $ECHO_N "(cached) $ECHO_C" >&6
32910 ac_cpp='$CXXCPP $CPPFLAGS'
32911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32915 cat >conftest.$ac_ext <<_ACEOF
32918 cat confdefs.h >>conftest.$ac_ext
32919 cat >>conftest.$ac_ext <<_ACEOF
32920 /* end confdefs.h. */
32930 rm -f conftest.$ac_objext
32931 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32939 grep -v '^ *+' conftest.er1 >conftest.err
32941 cat conftest.err >&5
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); } &&
32944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32945 { (case "(($ac_try" in
32946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32947 *) ac_try_echo=$ac_try;;
32949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950 (eval "$ac_try") 2>&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; } &&
32954 { ac_try='test -s conftest.$ac_objext'
32955 { (case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_try") 2>&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 ac_cv_func_isinf_in_cmath=yes
32966 echo "$as_me: failed program was:" >&5
32967 sed 's/^/| /' conftest.$ac_ext >&5
32969 ac_cv_func_isinf_in_cmath=no
32972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32974 ac_cpp='$CPP $CPPFLAGS'
32975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32980 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32981 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32983 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32985 cat >>confdefs.h <<\_ACEOF
32986 #define HAVE_ISINF_IN_CMATH 1
32991 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32992 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32993 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32994 echo $ECHO_N "(cached) $ECHO_C" >&6
32997 ac_cpp='$CXXCPP $CPPFLAGS'
32998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33002 cat >conftest.$ac_ext <<_ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h. */
33012 float f; std::isinf(f)}
33017 rm -f conftest.$ac_objext
33018 if { (ac_try="$ac_compile"
33019 case "(($ac_try" in
33020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33021 *) ac_try_echo=$ac_try;;
33023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33024 (eval "$ac_compile") 2>conftest.er1
33026 grep -v '^ *+' conftest.er1 >conftest.err
33028 cat conftest.err >&5
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); } &&
33031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33032 { (case "(($ac_try" in
33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034 *) ac_try_echo=$ac_try;;
33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037 (eval "$ac_try") 2>&5
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); }; } &&
33041 { ac_try='test -s conftest.$ac_objext'
33042 { (case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_try") 2>&5
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; }; then
33051 ac_cv_func_std_isinf_in_cmath=yes
33053 echo "$as_me: failed program was:" >&5
33054 sed 's/^/| /' conftest.$ac_ext >&5
33056 ac_cv_func_std_isinf_in_cmath=no
33059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33061 ac_cpp='$CPP $CPPFLAGS'
33062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33067 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33068 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33070 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33072 cat >>confdefs.h <<\_ACEOF
33073 #define HAVE_STD_ISINF_IN_CMATH 1
33078 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33079 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33080 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33081 echo $ECHO_N "(cached) $ECHO_C" >&6
33084 ac_cpp='$CXXCPP $CPPFLAGS'
33085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33089 cat >conftest.$ac_ext <<_ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33095 #include <ieeefp.h>
33099 float f; finite(f);
33104 rm -f conftest.$ac_objext
33105 if { (ac_try="$ac_compile"
33106 case "(($ac_try" in
33107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108 *) ac_try_echo=$ac_try;;
33110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111 (eval "$ac_compile") 2>conftest.er1
33113 grep -v '^ *+' conftest.er1 >conftest.err
33115 cat conftest.err >&5
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); } &&
33118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33119 { (case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_try") 2>&5
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); }; } &&
33128 { ac_try='test -s conftest.$ac_objext'
33129 { (case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_try") 2>&5
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 ac_cv_func_finite_in_ieeefp_h=yes
33140 echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33143 ac_cv_func_finite_in_ieeefp_h=no
33146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33148 ac_cpp='$CPP $CPPFLAGS'
33149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33154 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33155 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33157 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33159 cat >>confdefs.h <<\_ACEOF
33160 #define HAVE_FINITE_IN_IEEEFP_H 1
33167 if test "$llvm_cv_platform_type" = "Unix" ; then
33170 for ac_header in stdlib.h unistd.h
33172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33179 ac_res=`eval echo '${'$as_ac_Header'}'`
33180 { echo "$as_me:$LINENO: result: $ac_res" >&5
33181 echo "${ECHO_T}$ac_res" >&6; }
33183 # Is the header compilable?
33184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33186 cat >conftest.$ac_ext <<_ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h. */
33192 $ac_includes_default
33193 #include <$ac_header>
33195 rm -f conftest.$ac_objext
33196 if { (ac_try="$ac_compile"
33197 case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_compile") 2>conftest.er1
33204 grep -v '^ *+' conftest.er1 >conftest.err
33206 cat conftest.err >&5
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } &&
33209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33210 { (case "(($ac_try" in
33211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212 *) ac_try_echo=$ac_try;;
33214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215 (eval "$ac_try") 2>&5
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; } &&
33219 { ac_try='test -s conftest.$ac_objext'
33220 { (case "(($ac_try" in
33221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222 *) ac_try_echo=$ac_try;;
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225 (eval "$ac_try") 2>&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; }; then
33229 ac_header_compiler=yes
33231 echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33234 ac_header_compiler=no
33237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33239 echo "${ECHO_T}$ac_header_compiler" >&6; }
33241 # Is the header present?
33242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33244 cat >conftest.$ac_ext <<_ACEOF
33247 cat confdefs.h >>conftest.$ac_ext
33248 cat >>conftest.$ac_ext <<_ACEOF
33249 /* end confdefs.h. */
33250 #include <$ac_header>
33252 if { (ac_try="$ac_cpp conftest.$ac_ext"
33253 case "(($ac_try" in
33254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33255 *) ac_try_echo=$ac_try;;
33257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33260 grep -v '^ *+' conftest.er1 >conftest.err
33262 cat conftest.err >&5
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); } >/dev/null; then
33265 if test -s conftest.err; then
33266 ac_cpp_err=$ac_c_preproc_warn_flag
33267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33274 if test -z "$ac_cpp_err"; then
33275 ac_header_preproc=yes
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33280 ac_header_preproc=no
33283 rm -f conftest.err conftest.$ac_ext
33284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33285 echo "${ECHO_T}$ac_header_preproc" >&6; }
33287 # So? What about this header?
33288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33294 ac_header_preproc=yes
33297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33310 ## ----------------------------------- ##
33311 ## Report this to llvmbugs@cs.uiuc.edu ##
33312 ## ----------------------------------- ##
33314 ) | sed "s/^/$as_me: WARNING: /" >&2
33317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33320 echo $ECHO_N "(cached) $ECHO_C" >&6
33322 eval "$as_ac_Header=\$ac_header_preproc"
33324 ac_res=`eval echo '${'$as_ac_Header'}'`
33325 { echo "$as_me:$LINENO: result: $ac_res" >&5
33326 echo "${ECHO_T}$ac_res" >&6; }
33329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33330 cat >>confdefs.h <<_ACEOF
33331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33339 for ac_func in getpagesize
33341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33345 echo $ECHO_N "(cached) $ECHO_C" >&6
33347 cat >conftest.$ac_ext <<_ACEOF
33350 cat confdefs.h >>conftest.$ac_ext
33351 cat >>conftest.$ac_ext <<_ACEOF
33352 /* end confdefs.h. */
33353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33355 #define $ac_func innocuous_$ac_func
33357 /* System header to define __stub macros and hopefully few prototypes,
33358 which can conflict with char $ac_func (); below.
33359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33360 <limits.h> exists even on freestanding compilers. */
33363 # include <limits.h>
33365 # include <assert.h>
33370 /* Override any GCC internal prototype to avoid an error.
33371 Use char because int might match the return type of a GCC
33372 builtin and then its argument prototype would still apply. */
33377 /* The GNU C library defines this for functions which it implements
33378 to always fail with ENOSYS. Some functions are actually named
33379 something starting with __ and the normal name is an alias. */
33380 #if defined __stub_$ac_func || defined __stub___$ac_func
33387 return $ac_func ();
33392 rm -f conftest.$ac_objext conftest$ac_exeext
33393 if { (ac_try="$ac_link"
33394 case "(($ac_try" in
33395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396 *) ac_try_echo=$ac_try;;
33398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399 (eval "$ac_link") 2>conftest.er1
33401 grep -v '^ *+' conftest.er1 >conftest.err
33403 cat conftest.err >&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); } &&
33406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33407 { (case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_try") 2>&5
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest$ac_exeext'
33417 { (case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_try") 2>&5
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; }; then
33426 eval "$as_ac_var=yes"
33428 echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33431 eval "$as_ac_var=no"
33434 rm -f core conftest.err conftest.$ac_objext \
33435 conftest$ac_exeext conftest.$ac_ext
33437 ac_res=`eval echo '${'$as_ac_var'}'`
33438 { echo "$as_me:$LINENO: result: $ac_res" >&5
33439 echo "${ECHO_T}$ac_res" >&6; }
33440 if test `eval echo '${'$as_ac_var'}'` = yes; then
33441 cat >>confdefs.h <<_ACEOF
33442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33448 { echo "$as_me:$LINENO: checking for working mmap" >&5
33449 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33450 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33451 echo $ECHO_N "(cached) $ECHO_C" >&6
33453 if test "$cross_compiling" = yes; then
33454 ac_cv_func_mmap_fixed_mapped=no
33456 cat >conftest.$ac_ext <<_ACEOF
33459 cat confdefs.h >>conftest.$ac_ext
33460 cat >>conftest.$ac_ext <<_ACEOF
33461 /* end confdefs.h. */
33462 $ac_includes_default
33463 /* malloc might have been renamed as rpl_malloc. */
33466 /* Thanks to Mike Haertel and Jim Avera for this test.
33467 Here is a matrix of mmap possibilities:
33468 mmap private not fixed
33469 mmap private fixed at somewhere currently unmapped
33470 mmap private fixed at somewhere already mapped
33471 mmap shared not fixed
33472 mmap shared fixed at somewhere currently unmapped
33473 mmap shared fixed at somewhere already mapped
33474 For private mappings, we should verify that changes cannot be read()
33475 back from the file, nor mmap's back from the file at a different
33476 address. (There have been systems where private was not correctly
33477 implemented like the infamous i386 svr4.0, and systems where the
33478 VM page cache was not coherent with the file system buffer cache
33479 like early versions of FreeBSD and possibly contemporary NetBSD.)
33480 For shared mappings, we should conversely verify that changes get
33481 propagated back to all the places they're supposed to be.
33483 Grep wants private fixed already mapped.
33484 The main things grep needs to know about mmap are:
33485 * does it exist and is it safe to write into the mmap'd area
33486 * how to use it (BSD variants) */
33489 #include <sys/mman.h>
33491 #if !STDC_HEADERS && !HAVE_STDLIB_H
33495 /* This mess was copied from the GNU getpagesize.h. */
33496 #if !HAVE_GETPAGESIZE
33497 /* Assume that all systems that can run configure have sys/param.h. */
33498 # if !HAVE_SYS_PARAM_H
33499 # define HAVE_SYS_PARAM_H 1
33502 # ifdef _SC_PAGESIZE
33503 # define getpagesize() sysconf(_SC_PAGESIZE)
33504 # else /* no _SC_PAGESIZE */
33505 # if HAVE_SYS_PARAM_H
33506 # include <sys/param.h>
33507 # ifdef EXEC_PAGESIZE
33508 # define getpagesize() EXEC_PAGESIZE
33509 # else /* no EXEC_PAGESIZE */
33511 # define getpagesize() NBPG * CLSIZE
33514 # endif /* no CLSIZE */
33515 # else /* no NBPG */
33517 # define getpagesize() NBPC
33518 # else /* no NBPC */
33520 # define getpagesize() PAGESIZE
33521 # endif /* PAGESIZE */
33522 # endif /* no NBPC */
33523 # endif /* no NBPG */
33524 # endif /* no EXEC_PAGESIZE */
33525 # else /* no HAVE_SYS_PARAM_H */
33526 # define getpagesize() 8192 /* punt totally */
33527 # endif /* no HAVE_SYS_PARAM_H */
33528 # endif /* no _SC_PAGESIZE */
33530 #endif /* no HAVE_GETPAGESIZE */
33535 char *data, *data2, *data3;
33539 pagesize = getpagesize ();
33541 /* First, make a file with some known garbage in it. */
33542 data = (char *) malloc (pagesize);
33545 for (i = 0; i < pagesize; ++i)
33546 *(data + i) = rand ();
33548 fd = creat ("conftest.mmap", 0600);
33551 if (write (fd, data, pagesize) != pagesize)
33555 /* Next, try to mmap the file at a fixed address which already has
33556 something else allocated at it. If we can, also make sure that
33557 we see the same garbage. */
33558 fd = open ("conftest.mmap", O_RDWR);
33561 data2 = (char *) malloc (2 * pagesize);
33564 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33565 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33566 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33568 for (i = 0; i < pagesize; ++i)
33569 if (*(data + i) != *(data2 + i))
33572 /* Finally, make sure that changes to the mapped area do not
33573 percolate back to the file as seen by read(). (This is a bug on
33574 some variants of i386 svr4.0.) */
33575 for (i = 0; i < pagesize; ++i)
33576 *(data2 + i) = *(data2 + i) + 1;
33577 data3 = (char *) malloc (pagesize);
33580 if (read (fd, data3, pagesize) != pagesize)
33582 for (i = 0; i < pagesize; ++i)
33583 if (*(data + i) != *(data3 + i))
33589 rm -f conftest$ac_exeext
33590 if { (ac_try="$ac_link"
33591 case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_link") 2>&5
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33600 { (case "(($ac_try" in
33601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602 *) ac_try_echo=$ac_try;;
33604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605 (eval "$ac_try") 2>&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); }; }; then
33609 ac_cv_func_mmap_fixed_mapped=yes
33611 echo "$as_me: program exited with status $ac_status" >&5
33612 echo "$as_me: failed program was:" >&5
33613 sed 's/^/| /' conftest.$ac_ext >&5
33615 ( exit $ac_status )
33616 ac_cv_func_mmap_fixed_mapped=no
33618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33623 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33624 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33625 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33627 cat >>confdefs.h <<\_ACEOF
33628 #define HAVE_MMAP 1
33632 rm -f conftest.mmap
33634 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33635 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33636 if test "${ac_cv_func_mmap_file+set}" = set; then
33637 echo $ECHO_N "(cached) $ECHO_C" >&6
33640 ac_cpp='$CPP $CPPFLAGS'
33641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33645 if test "$cross_compiling" = yes; then
33646 ac_cv_func_mmap_file=no
33648 cat >conftest.$ac_ext <<_ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h. */
33656 #include <sys/types.h>
33657 #include <sys/mman.h>
33665 fd = creat ("foo",0777);
33666 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33668 return (fd != (int) MAP_FAILED);
33673 rm -f conftest$ac_exeext
33674 if { (ac_try="$ac_link"
33675 case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680 (eval "$ac_link") 2>&5
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33684 { (case "(($ac_try" in
33685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686 *) ac_try_echo=$ac_try;;
33688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689 (eval "$ac_try") 2>&5
33691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); }; }; then
33693 ac_cv_func_mmap_file=yes
33695 echo "$as_me: program exited with status $ac_status" >&5
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33699 ( exit $ac_status )
33700 ac_cv_func_mmap_file=no
33702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33707 ac_cpp='$CPP $CPPFLAGS'
33708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33714 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33715 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33716 if test "$ac_cv_func_mmap_file" = yes; then
33718 cat >>confdefs.h <<\_ACEOF
33719 #define HAVE_MMAP_FILE
33726 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33727 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33728 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33729 echo $ECHO_N "(cached) $ECHO_C" >&6
33731 if test "$llvm_cv_os_type" = "Interix" ; then
33732 ac_cv_need_dev_zero_for_mmap=yes
33734 ac_cv_need_dev_zero_for_mmap=no
33738 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33739 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33740 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33742 cat >>confdefs.h <<\_ACEOF
33743 #define NEED_DEV_ZERO_FOR_MMAP 1
33748 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33750 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33751 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33753 if test "$ac_cv_func_mmap_file" = "no"
33755 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33756 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33762 for ac_func in __dso_handle
33764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33770 cat >conftest.$ac_ext <<_ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h. */
33776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33778 #define $ac_func innocuous_$ac_func
33780 /* System header to define __stub macros and hopefully few prototypes,
33781 which can conflict with char $ac_func (); below.
33782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33783 <limits.h> exists even on freestanding compilers. */
33786 # include <limits.h>
33788 # include <assert.h>
33793 /* Override any GCC internal prototype to avoid an error.
33794 Use char because int might match the return type of a GCC
33795 builtin and then its argument prototype would still apply. */
33800 /* The GNU C library defines this for functions which it implements
33801 to always fail with ENOSYS. Some functions are actually named
33802 something starting with __ and the normal name is an alias. */
33803 #if defined __stub_$ac_func || defined __stub___$ac_func
33810 return $ac_func ();
33815 rm -f conftest.$ac_objext conftest$ac_exeext
33816 if { (ac_try="$ac_link"
33817 case "(($ac_try" in
33818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819 *) ac_try_echo=$ac_try;;
33821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822 (eval "$ac_link") 2>conftest.er1
33824 grep -v '^ *+' conftest.er1 >conftest.err
33826 cat conftest.err >&5
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); } &&
33829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33830 { (case "(($ac_try" in
33831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832 *) ac_try_echo=$ac_try;;
33834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835 (eval "$ac_try") 2>&5
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; } &&
33839 { ac_try='test -s conftest$ac_exeext'
33840 { (case "(($ac_try" in
33841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842 *) ac_try_echo=$ac_try;;
33844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845 (eval "$ac_try") 2>&5
33847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848 (exit $ac_status); }; }; then
33849 eval "$as_ac_var=yes"
33851 echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33854 eval "$as_ac_var=no"
33857 rm -f core conftest.err conftest.$ac_objext \
33858 conftest$ac_exeext conftest.$ac_ext
33860 ac_res=`eval echo '${'$as_ac_var'}'`
33861 { echo "$as_me:$LINENO: result: $ac_res" >&5
33862 echo "${ECHO_T}$ac_res" >&6; }
33863 if test `eval echo '${'$as_ac_var'}'` = yes; then
33864 cat >>confdefs.h <<_ACEOF
33865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33872 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33873 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33874 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33877 llvm_cv_llvmgcc_sanity="no"
33878 if test -x "$LLVMGCC" ; then
33879 cp /dev/null conftest.c
33880 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33881 grep 'target datalayout =' > /dev/null 2>&1
33882 if test $? -eq 0 ; then
33883 llvm_cv_llvmgcc_sanity="yes"
33888 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33889 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33891 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33892 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33893 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33894 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33895 LLVMCC1=$llvmcc1path
33897 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33898 LLVMCC1PLUS=$llvmcc1pluspath
33900 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33901 LLVMGCCDIR=$llvmgccdir
33903 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33904 LLVMGCCLIBEXEC=$llvmgcclibexec
33906 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33907 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33908 LLVMGCC_VERSION=$llvmgccversion
33910 LLVMGCC_MAJVERS=$llvmgccmajvers
33912 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33913 LLVMGCC_LANGS=$llvmgcclangs
33915 { echo "$as_me:$LINENO: result: ok" >&5
33916 echo "${ECHO_T}ok" >&6; }
33919 SHLIBEXT=$libltdl_cv_shlibext
33922 # Translate the various configuration directories and other basic
33923 # information into substitutions that will end up in Makefile.config.in
33924 # that these configured values can be used by the makefiles
33925 if test "${prefix}" = "NONE" ; then
33926 prefix="/usr/local"
33928 eval LLVM_PREFIX="${prefix}";
33929 eval LLVM_BINDIR="${prefix}/bin";
33930 eval LLVM_LIBDIR="${prefix}/lib";
33931 eval LLVM_DATADIR="${prefix}/share/llvm";
33932 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33933 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33934 eval LLVM_INCLUDEDIR="${prefix}/include";
33935 eval LLVM_INFODIR="${prefix}/info";
33936 eval LLVM_MANDIR="${prefix}/man";
33937 LLVM_CONFIGTIME=`date`
33949 # Place the various directores into the config.h file as #defines so that we
33950 # can know about the installation paths within LLVM.
33952 cat >>confdefs.h <<_ACEOF
33953 #define LLVM_PREFIX "$LLVM_PREFIX"
33957 cat >>confdefs.h <<_ACEOF
33958 #define LLVM_BINDIR "$LLVM_BINDIR"
33962 cat >>confdefs.h <<_ACEOF
33963 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33967 cat >>confdefs.h <<_ACEOF
33968 #define LLVM_DATADIR "$LLVM_DATADIR"
33972 cat >>confdefs.h <<_ACEOF
33973 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33977 cat >>confdefs.h <<_ACEOF
33978 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33982 cat >>confdefs.h <<_ACEOF
33983 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33987 cat >>confdefs.h <<_ACEOF
33988 #define LLVM_INFODIR "$LLVM_INFODIR"
33992 cat >>confdefs.h <<_ACEOF
33993 #define LLVM_MANDIR "$LLVM_MANDIR"
33997 cat >>confdefs.h <<_ACEOF
33998 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34003 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34005 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34007 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34009 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34011 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34014 ac_config_files="$ac_config_files Makefile.config"
34017 ac_config_files="$ac_config_files llvm.spec"
34020 ac_config_files="$ac_config_files docs/doxygen.cfg"
34023 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34026 ac_config_commands="$ac_config_commands setup"
34028 ac_config_commands="$ac_config_commands Makefile"
34031 ac_config_commands="$ac_config_commands Makefile.common"
34034 ac_config_commands="$ac_config_commands examples/Makefile"
34037 ac_config_commands="$ac_config_commands lib/Makefile"
34040 ac_config_commands="$ac_config_commands runtime/Makefile"
34043 ac_config_commands="$ac_config_commands test/Makefile"
34046 ac_config_commands="$ac_config_commands test/Makefile.tests"
34049 ac_config_commands="$ac_config_commands tools/Makefile"
34052 ac_config_commands="$ac_config_commands utils/Makefile"
34055 ac_config_commands="$ac_config_commands projects/Makefile"
34059 cat >confcache <<\_ACEOF
34060 # This file is a shell script that caches the results of configure
34061 # tests run on this system so they can be shared between configure
34062 # scripts and configure runs, see configure's option --config-cache.
34063 # It is not useful on other systems. If it contains results you don't
34064 # want to keep, you may remove or edit it.
34066 # config.status only pays attention to the cache file if you give it
34067 # the --recheck option to rerun configure.
34069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34071 # following values.
34075 # The following way of writing the cache mishandles newlines in values,
34076 # but we know of no workaround that is simple, portable, and efficient.
34077 # So, we kill variables containing newlines.
34078 # Ultrix sh set writes to stderr and can't be redirected directly,
34079 # and sets the high bit in the cache file unless we assign to the vars.
34081 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34082 eval ac_val=\$$ac_var
34086 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34087 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34090 _ | IFS | as_nl) ;; #(
34091 *) $as_unset $ac_var ;;
34097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34098 *${as_nl}ac_space=\ *)
34099 # `set' does not quote correctly, so add quotes (double-quote
34100 # substitution turns \\\\ into \\, and sed turns \\ into \).
34103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34106 # `set' quotes correctly as required by POSIX, so do not add quotes.
34107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34121 if test -w "$cache_file"; then
34122 test "x$cache_file" != "x/dev/null" &&
34123 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34124 echo "$as_me: updating cache $cache_file" >&6;}
34125 cat confcache >$cache_file
34127 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34128 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34134 # Let make expand exec_prefix.
34135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34137 DEFS=-DHAVE_CONFIG_H
34141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34142 # 1. Remove the extension, and $U if already installed.
34143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34144 ac_i=`echo "$ac_i" | sed "$ac_script"`
34145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34146 # will be set to the directory where LIBOBJS objects are built.
34147 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34148 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34150 LIBOBJS=$ac_libobjs
34152 LTLIBOBJS=$ac_ltlibobjs
34155 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34156 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34157 Usually this means the macro was only invoked conditionally." >&5
34158 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34159 Usually this means the macro was only invoked conditionally." >&2;}
34160 { (exit 1); exit 1; }; }
34162 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34163 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34164 Usually this means the macro was only invoked conditionally." >&5
34165 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34166 Usually this means the macro was only invoked conditionally." >&2;}
34167 { (exit 1); exit 1; }; }
34170 : ${CONFIG_STATUS=./config.status}
34171 ac_clean_files_save=$ac_clean_files
34172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34175 cat >$CONFIG_STATUS <<_ACEOF
34177 # Generated by $as_me.
34178 # Run this file to recreate the current configuration.
34179 # Compiler output produced by configure, useful for debugging
34180 # configure, is in config.log if it exists.
34183 ac_cs_recheck=false
34185 SHELL=\${CONFIG_SHELL-$SHELL}
34188 cat >>$CONFIG_STATUS <<\_ACEOF
34189 ## --------------------- ##
34190 ## M4sh Initialization. ##
34191 ## --------------------- ##
34193 # Be Bourne compatible
34194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34198 # is contrary to our usage. Disable this feature.
34199 alias -g '${1+"$@"}'='"$@"'
34200 setopt NO_GLOB_SUBST
34202 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34204 BIN_SH=xpg4; export BIN_SH # for Tru64
34205 DUALCASE=1; export DUALCASE # for MKS sh
34209 # Avoid depending upon Character Ranges.
34210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34213 as_cr_digits='0123456789'
34214 as_cr_alnum=$as_cr_Letters$as_cr_digits
34216 # The user is always right.
34217 if test "${PATH_SEPARATOR+set}" != set; then
34218 echo "#! /bin/sh" >conf$$.sh
34219 echo "exit 0" >>conf$$.sh
34221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34229 # Support unset when possible.
34230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34238 # We need space, tab and new line, in precisely that order. Quoting is
34239 # there to prevent editors from complaining about space-tab.
34240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34241 # splitting by setting IFS to empty value.)
34246 # Find who we are. Look in the path if we contain no directory separator.
34248 *[\\/]* ) as_myself=$0 ;;
34249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34250 for as_dir in $PATH
34253 test -z "$as_dir" && as_dir=.
34254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34260 # We did not find ourselves, most probably we were run as `sh COMMAND'
34261 # in which case we are not to be found in the path.
34262 if test "x$as_myself" = x; then
34265 if test ! -f "$as_myself"; then
34266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34267 { (exit 1); exit 1; }
34270 # Work around bugs in pre-3.0 UWIN ksh.
34271 for as_var in ENV MAIL MAILPATH
34272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34282 LC_TELEPHONE LC_TIME
34284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34285 eval $as_var=C; export $as_var
34287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34291 # Required to use basename.
34292 if expr a : '\(a\)' >/dev/null 2>&1 &&
34293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34300 as_basename=basename
34306 # Name of the executable.
34307 as_me=`$as_basename -- "$0" ||
34308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34309 X"$0" : 'X\(//\)$' \| \
34310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34312 sed '/^.*\/\([^/][^/]*\)\/*$/{
34331 as_lineno_1=$LINENO
34332 as_lineno_2=$LINENO
34333 test "x$as_lineno_1" != "x$as_lineno_2" &&
34334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34337 # uniformly replaced by the line number. The first 'sed' inserts a
34338 # line-number line after each line using $LINENO; the second 'sed'
34339 # does the real work. The second script uses 'N' to pair each
34340 # line-number line with the line containing $LINENO, and appends
34341 # trailing '-' during substitution so that $LINENO is not a special
34342 # case at line end.
34343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34344 # scripts with optimization help from Paolo Bonzini. Blame Lee
34345 # E. McMahon (1931-1989) for sed's syntax. :-)
34357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34360 ' >$as_me.lineno &&
34361 chmod +x "$as_me.lineno" ||
34362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34363 { (exit 1); exit 1; }; }
34365 # Don't try to exec as it changes $[0], causing all sort of problems
34366 # (the dirname of $[0] is not the place where we might find the
34367 # original and so on. Autoconf is especially sensitive to this).
34368 . "./$as_me.lineno"
34369 # Exit status is that of the last command.
34374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34380 ECHO_C= ECHO_N= ECHO_T=
34381 case `echo -n x` in
34383 case `echo 'x\c'` in
34384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34391 if expr a : '\(a\)' >/dev/null 2>&1 &&
34392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34398 rm -f conf$$ conf$$.exe conf$$.file
34399 if test -d conf$$.dir; then
34400 rm -f conf$$.dir/conf$$.file
34406 if ln -s conf$$.file conf$$ 2>/dev/null; then
34408 # ... but there are two gotchas:
34409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34411 # In both cases, we have to default to `cp -p'.
34412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34414 elif ln conf$$.file conf$$ 2>/dev/null; then
34419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34420 rmdir conf$$.dir 2>/dev/null
34422 if mkdir -p . 2>/dev/null; then
34425 test -d ./-p && rmdir ./-p
34429 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34430 # systems may use methods other than mode bits to determine executability.
34431 cat >conf$$.file <<_ASEOF
34435 chmod +x conf$$.file
34436 if test -x conf$$.file >/dev/null 2>&1; then
34437 as_executable_p="test -x"
34443 # Sed expression to map a string onto a valid CPP name.
34444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34446 # Sed expression to map a string onto a valid variable name.
34447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34452 # Save the log message, to keep $[0] and so on meaningful, and to
34453 # report actual input values of CONFIG_FILES etc. instead of their
34454 # values after options handling.
34456 This file was extended by llvm $as_me 2.1svn, which was
34457 generated by GNU Autoconf 2.60. Invocation command line was
34459 CONFIG_FILES = $CONFIG_FILES
34460 CONFIG_HEADERS = $CONFIG_HEADERS
34461 CONFIG_LINKS = $CONFIG_LINKS
34462 CONFIG_COMMANDS = $CONFIG_COMMANDS
34465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34470 cat >>$CONFIG_STATUS <<_ACEOF
34471 # Files that config.status was made for.
34472 config_files="$ac_config_files"
34473 config_headers="$ac_config_headers"
34474 config_commands="$ac_config_commands"
34478 cat >>$CONFIG_STATUS <<\_ACEOF
34480 \`$as_me' instantiates files from templates according to the
34481 current configuration.
34483 Usage: $0 [OPTIONS] [FILE]...
34485 -h, --help print this help, then exit
34486 -V, --version print version number, then exit
34487 -q, --quiet do not print progress messages
34488 -d, --debug don't remove temporary files
34489 --recheck update $as_me by reconfiguring in the same conditions
34490 --file=FILE[:TEMPLATE]
34491 instantiate the configuration file FILE
34492 --header=FILE[:TEMPLATE]
34493 instantiate the configuration header FILE
34495 Configuration files:
34498 Configuration headers:
34501 Configuration commands:
34504 Report bugs to <bug-autoconf@gnu.org>."
34507 cat >>$CONFIG_STATUS <<_ACEOF
34509 llvm config.status 2.1svn
34510 configured by $0, generated by GNU Autoconf 2.60,
34511 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34513 Copyright (C) 2006 Free Software Foundation, Inc.
34514 This config.status script is free software; the Free Software Foundation
34515 gives unlimited permission to copy, distribute and modify it."
34522 cat >>$CONFIG_STATUS <<\_ACEOF
34523 # If no file are specified by the user, then we need to provide default
34524 # value. By we need to know if files were specified by the user.
34530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34542 # Handling of the options.
34543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34546 echo "$ac_cs_version"; exit ;;
34547 --debug | --debu | --deb | --de | --d | -d )
34549 --file | --fil | --fi | --f )
34551 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34552 ac_need_defaults=false;;
34553 --header | --heade | --head | --hea )
34555 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34556 ac_need_defaults=false;;
34558 # Conflict between --help and --header
34559 { echo "$as_me: error: ambiguous option: $1
34560 Try \`$0 --help' for more information." >&2
34561 { (exit 1); exit 1; }; };;
34562 --help | --hel | -h )
34563 echo "$ac_cs_usage"; exit ;;
34564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34568 # This is an error.
34569 -*) { echo "$as_me: error: unrecognized option: $1
34570 Try \`$0 --help' for more information." >&2
34571 { (exit 1); exit 1; }; } ;;
34573 *) ac_config_targets="$ac_config_targets $1"
34574 ac_need_defaults=false ;;
34580 ac_configure_extra_args=
34582 if $ac_cs_silent; then
34584 ac_configure_extra_args="$ac_configure_extra_args --silent"
34588 cat >>$CONFIG_STATUS <<_ACEOF
34589 if \$ac_cs_recheck; then
34590 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34591 CONFIG_SHELL=$SHELL
34592 export CONFIG_SHELL
34593 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34597 cat >>$CONFIG_STATUS <<\_ACEOF
34601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34602 ## Running $as_me. ##
34608 cat >>$CONFIG_STATUS <<_ACEOF
34612 llvm_src="${srcdir}"
34616 cat >>$CONFIG_STATUS <<\_ACEOF
34618 # Handling of arguments.
34619 for ac_config_target in $ac_config_targets
34621 case $ac_config_target in
34622 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34623 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34624 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34625 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34626 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34627 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34628 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34629 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34630 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34631 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34632 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34633 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34634 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34635 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34636 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34637 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34638 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34639 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34640 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34641 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34643 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34644 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34645 { (exit 1); exit 1; }; };;
34650 # If the user did not use the arguments to specify the items to instantiate,
34651 # then the envvar interface is used. Set only those that are not.
34652 # We use the long form for the default assignment because of an extremely
34653 # bizarre bug on SunOS 4.1.3.
34654 if $ac_need_defaults; then
34655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34660 # Have a temporary directory for convenience. Make it in the build tree
34661 # simply because there is no reason against having it here, and in addition,
34662 # creating and moving files from /tmp can sometimes cause problems.
34663 # Hook for its removal unless debugging.
34664 # Note that there is a small window in which the directory will not be cleaned:
34665 # after its creation but before its name has been assigned to `$tmp'.
34669 trap 'exit_status=$?
34670 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34672 trap '{ (exit 1); exit 1; }' 1 2 13 15
34674 # Create a (secure) tmp directory for tmp files.
34677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34678 test -n "$tmp" && test -d "$tmp"
34681 tmp=./conf$$-$RANDOM
34682 (umask 077 && mkdir "$tmp")
34685 echo "$me: cannot create a temporary directory in ." >&2
34686 { (exit 1); exit 1; }
34690 # Set up the sed scripts for CONFIG_FILES section.
34693 # No need to generate the scripts if there are no CONFIG_FILES.
34694 # This happens for instance when ./config.status config.h
34695 if test -n "$CONFIG_FILES"; then
34702 for ac_last_try in false false false false false :; do
34703 cat >conf$$subs.sed <<_ACEOF
34704 SHELL!$SHELL$ac_delim
34705 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34706 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34707 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34708 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34709 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34710 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34711 exec_prefix!$exec_prefix$ac_delim
34712 prefix!$prefix$ac_delim
34713 program_transform_name!$program_transform_name$ac_delim
34714 bindir!$bindir$ac_delim
34715 sbindir!$sbindir$ac_delim
34716 libexecdir!$libexecdir$ac_delim
34717 datarootdir!$datarootdir$ac_delim
34718 datadir!$datadir$ac_delim
34719 sysconfdir!$sysconfdir$ac_delim
34720 sharedstatedir!$sharedstatedir$ac_delim
34721 localstatedir!$localstatedir$ac_delim
34722 includedir!$includedir$ac_delim
34723 oldincludedir!$oldincludedir$ac_delim
34724 docdir!$docdir$ac_delim
34725 infodir!$infodir$ac_delim
34726 htmldir!$htmldir$ac_delim
34727 dvidir!$dvidir$ac_delim
34728 pdfdir!$pdfdir$ac_delim
34729 psdir!$psdir$ac_delim
34730 libdir!$libdir$ac_delim
34731 localedir!$localedir$ac_delim
34732 mandir!$mandir$ac_delim
34733 DEFS!$DEFS$ac_delim
34734 ECHO_C!$ECHO_C$ac_delim
34735 ECHO_N!$ECHO_N$ac_delim
34736 ECHO_T!$ECHO_T$ac_delim
34737 LIBS!$LIBS$ac_delim
34738 build_alias!$build_alias$ac_delim
34739 host_alias!$host_alias$ac_delim
34740 target_alias!$target_alias$ac_delim
34741 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34742 subdirs!$subdirs$ac_delim
34743 build!$build$ac_delim
34744 build_cpu!$build_cpu$ac_delim
34745 build_vendor!$build_vendor$ac_delim
34746 build_os!$build_os$ac_delim
34747 host!$host$ac_delim
34748 host_cpu!$host_cpu$ac_delim
34749 host_vendor!$host_vendor$ac_delim
34750 host_os!$host_os$ac_delim
34751 target!$target$ac_delim
34752 target_cpu!$target_cpu$ac_delim
34753 target_vendor!$target_vendor$ac_delim
34754 target_os!$target_os$ac_delim
34756 LINKALL!$LINKALL$ac_delim
34757 NOLINKALL!$NOLINKALL$ac_delim
34758 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34759 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34760 ARCH!$ARCH$ac_delim
34761 ENDIAN!$ENDIAN$ac_delim
34763 CFLAGS!$CFLAGS$ac_delim
34764 LDFLAGS!$LDFLAGS$ac_delim
34765 CPPFLAGS!$CPPFLAGS$ac_delim
34766 ac_ct_CC!$ac_ct_CC$ac_delim
34767 EXEEXT!$EXEEXT$ac_delim
34768 OBJEXT!$OBJEXT$ac_delim
34770 GREP!$GREP$ac_delim
34771 EGREP!$EGREP$ac_delim
34772 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34773 BUILD_CC!$BUILD_CC$ac_delim
34774 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34775 CVSBUILD!$CVSBUILD$ac_delim
34776 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34777 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34778 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34779 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34780 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34782 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34783 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34784 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34785 ENABLE_PIC!$ENABLE_PIC$ac_delim
34786 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34787 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34788 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34790 CXXFLAGS!$CXXFLAGS$ac_delim
34791 ac_ct_CXX!$ac_ct_CXX$ac_delim
34793 LEXLIB!$LEXLIB$ac_delim
34794 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34795 FLEX!$FLEX$ac_delim
34796 YACC!$YACC$ac_delim
34797 YFLAGS!$YFLAGS$ac_delim
34798 BISON!$BISON$ac_delim
34800 ifGNUmake!$ifGNUmake$ac_delim
34803 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34805 elif $ac_last_try; then
34806 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34807 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34808 { (exit 1); exit 1; }; }
34810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34814 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34815 if test -n "$ac_eof"; then
34816 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34817 ac_eof=`expr $ac_eof + 1`
34820 cat >>$CONFIG_STATUS <<_ACEOF
34821 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34825 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34826 s/^/s,@/; s/!/@,|#_!!_#|/
34829 s/'"$ac_delim"'$/,g/; t
34831 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34832 ' >>$CONFIG_STATUS <conf$$subs.sed
34833 rm -f conf$$subs.sed
34834 cat >>$CONFIG_STATUS <<_ACEOF
34840 for ac_last_try in false false false false false :; do
34841 cat >conf$$subs.sed <<_ACEOF
34842 LN_S!$LN_S$ac_delim
34845 DATE!$DATE$ac_delim
34846 FIND!$FIND$ac_delim
34847 MKDIR!$MKDIR$ac_delim
34849 RANLIB!$RANLIB$ac_delim
34853 BINPWD!$BINPWD$ac_delim
34854 GRAPHVIZ!$GRAPHVIZ$ac_delim
34857 DOTTY!$DOTTY$ac_delim
34858 PERL!$PERL$ac_delim
34859 HAVE_PERL!$HAVE_PERL$ac_delim
34860 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34861 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34862 INSTALL_DATA!$INSTALL_DATA$ac_delim
34863 BZIP2!$BZIP2$ac_delim
34864 DOXYGEN!$DOXYGEN$ac_delim
34865 GROFF!$GROFF$ac_delim
34866 GZIP!$GZIP$ac_delim
34867 POD2HTML!$POD2HTML$ac_delim
34868 POD2MAN!$POD2MAN$ac_delim
34869 RUNTEST!$RUNTEST$ac_delim
34870 TCLSH!$TCLSH$ac_delim
34872 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34873 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34874 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34875 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34876 LIBADD_DL!$LIBADD_DL$ac_delim
34877 ECHO!$ECHO$ac_delim
34879 STRIP!$STRIP$ac_delim
34880 CXXCPP!$CXXCPP$ac_delim
34882 FFLAGS!$FFLAGS$ac_delim
34883 ac_ct_F77!$ac_ct_F77$ac_delim
34884 LIBTOOL!$LIBTOOL$ac_delim
34885 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34886 LLVMGCC!$LLVMGCC$ac_delim
34887 LLVMGXX!$LLVMGXX$ac_delim
34888 USE_UDIS86!$USE_UDIS86$ac_delim
34889 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34890 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34891 ALLOCA!$ALLOCA$ac_delim
34892 MMAP_FILE!$MMAP_FILE$ac_delim
34893 LLVMCC1!$LLVMCC1$ac_delim
34894 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34895 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34896 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34897 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34898 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34899 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34900 SHLIBEXT!$SHLIBEXT$ac_delim
34901 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34902 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34903 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34904 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34905 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34906 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34907 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34908 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34909 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34910 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34911 LIBOBJS!$LIBOBJS$ac_delim
34912 LTLIBOBJS!$LTLIBOBJS$ac_delim
34915 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
34917 elif $ac_last_try; then
34918 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34919 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34920 { (exit 1); exit 1; }; }
34922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34926 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34927 if test -n "$ac_eof"; then
34928 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34929 ac_eof=`expr $ac_eof + 1`
34932 cat >>$CONFIG_STATUS <<_ACEOF
34933 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34937 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34938 s/^/s,@/; s/!/@,|#_!!_#|/
34941 s/'"$ac_delim"'$/,g/; t
34943 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34944 ' >>$CONFIG_STATUS <conf$$subs.sed
34945 rm -f conf$$subs.sed
34946 cat >>$CONFIG_STATUS <<_ACEOF
34953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34955 # trailing colons and then remove the whole line if VPATH becomes empty
34956 # (actually we leave an empty line to preserve line numbers).
34957 if test "x$srcdir" = x.; then
34958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34959 s/:*\$(srcdir):*/:/
34960 s/:*\${srcdir}:*/:/
34962 s/^\([^=]*=[ ]*\):*/\1/
34968 cat >>$CONFIG_STATUS <<\_ACEOF
34969 fi # test -n "$CONFIG_FILES"
34972 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34975 :[FHLC]) ac_mode=$ac_tag; continue;;
34977 case $ac_mode$ac_tag in
34979 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34980 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34981 { (exit 1); exit 1; }; };;
34982 :[FH]-) ac_tag=-:-;;
34983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35000 -) ac_f="$tmp/stdin";;
35001 *) # Look for the file first in the build tree, then in the source tree
35002 # (if the path is not absolute). The absolute path cannot be DOS-style,
35003 # because $ac_f cannot contain `:'.
35007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35009 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35010 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35011 { (exit 1); exit 1; }; };;
35013 ac_file_inputs="$ac_file_inputs $ac_f"
35016 # Let's still pretend it is `configure' which instantiates (i.e., don't
35017 # use $as_me), people would be surprised to read:
35018 # /* config.h. Generated by config.status. */
35019 configure_input="Generated from "`IFS=:
35020 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35021 if test x"$ac_file" != x-; then
35022 configure_input="$ac_file. $configure_input"
35023 { echo "$as_me:$LINENO: creating $ac_file" >&5
35024 echo "$as_me: creating $ac_file" >&6;}
35028 *:-:* | *:-) cat >"$tmp/stdin";;
35033 ac_dir=`$as_dirname -- "$ac_file" ||
35034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35035 X"$ac_file" : 'X\(//\)[^/]' \| \
35036 X"$ac_file" : 'X\(//\)$' \| \
35037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35043 /^X\(\/\/\)[^/].*/{
35058 -*) as_dir=./$as_dir;;
35060 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35064 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35065 *) as_qdir=$as_dir;;
35067 as_dirs="'$as_qdir' $as_dirs"
35068 as_dir=`$as_dirname -- "$as_dir" ||
35069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35070 X"$as_dir" : 'X\(//\)[^/]' \| \
35071 X"$as_dir" : 'X\(//\)$' \| \
35072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35078 /^X\(\/\/\)[^/].*/{
35091 test -d "$as_dir" && break
35093 test -z "$as_dirs" || eval "mkdir $as_dirs"
35094 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35095 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35096 { (exit 1); exit 1; }; }; }
35100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35103 # A ".." for each directory in $ac_dir_suffix.
35104 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35105 case $ac_top_builddir_sub in
35106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35110 ac_abs_top_builddir=$ac_pwd
35111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35112 # for backward compatibility:
35113 ac_top_builddir=$ac_top_build_prefix
35116 .) # We are building in place.
35118 ac_top_srcdir=$ac_top_builddir_sub
35119 ac_abs_top_srcdir=$ac_pwd ;;
35120 [\\/]* | ?:[\\/]* ) # Absolute name.
35121 ac_srcdir=$srcdir$ac_dir_suffix;
35122 ac_top_srcdir=$srcdir
35123 ac_abs_top_srcdir=$srcdir ;;
35124 *) # Relative name.
35125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35126 ac_top_srcdir=$ac_top_build_prefix$srcdir
35127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35144 cat >>$CONFIG_STATUS <<\_ACEOF
35145 # If the template does not know about datarootdir, expand it.
35146 # FIXME: This hack should be removed a few years after 2.60.
35147 ac_datarootdir_hack=; ac_datarootdir_seen=
35149 case `sed -n '/datarootdir/ {
35158 ' $ac_file_inputs` in
35159 *datarootdir*) ac_datarootdir_seen=yes;;
35160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35161 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35164 cat >>$CONFIG_STATUS <<_ACEOF
35165 ac_datarootdir_hack='
35166 s&@datadir@&$datadir&g
35167 s&@docdir@&$docdir&g
35168 s&@infodir@&$infodir&g
35169 s&@localedir@&$localedir&g
35170 s&@mandir@&$mandir&g
35171 s&\\\${datarootdir}&$datarootdir&g' ;;
35175 # Neutralize VPATH when `$srcdir' = `.'.
35176 # Shell code in configure.ac might set extrasub.
35177 # FIXME: do we really want to maintain this feature?
35178 cat >>$CONFIG_STATUS <<_ACEOF
35182 cat >>$CONFIG_STATUS <<\_ACEOF
35184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35185 s&@configure_input@&$configure_input&;t t
35186 s&@top_builddir@&$ac_top_builddir_sub&;t t
35187 s&@srcdir@&$ac_srcdir&;t t
35188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35189 s&@top_srcdir@&$ac_top_srcdir&;t t
35190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35191 s&@builddir@&$ac_builddir&;t t
35192 s&@abs_builddir@&$ac_abs_builddir&;t t
35193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35194 s&@INSTALL@&$ac_INSTALL&;t t
35195 $ac_datarootdir_hack
35196 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35198 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35201 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35202 which seems to be undefined. Please make sure it is defined." >&5
35203 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35204 which seems to be undefined. Please make sure it is defined." >&2;}
35208 -) cat "$tmp/out"; rm -f "$tmp/out";;
35209 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35218 # Transform confdefs.h into a sed script `conftest.defines', that
35219 # substitutes the proper values into config.h.in to produce config.h.
35220 rm -f conftest.defines conftest.tail
35221 # First, append a space to every undef/define line, to ease matching.
35222 echo 's/$/ /' >conftest.defines
35223 # Then, protect against being on the right side of a sed subst, or in
35224 # an unquoted here document, in config.status. If some macros were
35225 # called several times there might be several #defines for the same
35226 # symbol, which is useless. But do not sort them, since the last
35227 # AC_DEFINE must be honored.
35228 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35229 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35230 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35231 # PARAMS is the parameter list in the macro definition--in most cases, it's
35232 # just an empty string.
35233 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35234 ac_dB='\\)[ (].*,\\1define\\2'
35242 s/^[ ]*#[ ]*define[ ][ ]*//
35247 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35248 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35249 ' >>conftest.defines
35251 # Remove the space that was appended to ease matching.
35252 # Then replace #undef with comments. This is necessary, for
35253 # example, in the case of _POSIX_SOURCE, which is predefined and required
35254 # on some systems where configure will not decide to define it.
35255 # (The regexp can be short, since the line contains either #define or #undef.)
35257 s,^[ #]*u.*,/* & */,' >>conftest.defines
35259 # Break up conftest.defines:
35260 ac_max_sed_lines=50
35262 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35263 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35264 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35266 ac_in='$ac_file_inputs'
35267 ac_out='"$tmp/out1"'
35268 ac_nxt='"$tmp/out2"'
35272 # Write a here document:
35273 cat >>$CONFIG_STATUS <<_ACEOF
35274 # First, check the format of the line:
35275 cat >"\$tmp/defines.sed" <<\\CEOF
35276 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35277 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35281 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35283 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35284 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35285 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35286 grep . conftest.tail >/dev/null || break
35287 rm -f conftest.defines
35288 mv conftest.tail conftest.defines
35290 rm -f conftest.defines conftest.tail
35292 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35293 cat >>$CONFIG_STATUS <<\_ACEOF
35294 if test x"$ac_file" != x-; then
35295 echo "/* $configure_input */" >"$tmp/config.h"
35296 cat "$ac_result" >>"$tmp/config.h"
35297 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35299 echo "$as_me: $ac_file is unchanged" >&6;}
35302 mv "$tmp/config.h" $ac_file
35305 echo "/* $configure_input */"
35311 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35312 echo "$as_me: executing $ac_file commands" >&6;}
35317 case $ac_file$ac_mode in
35318 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35319 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35320 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35321 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35322 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35323 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35324 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35325 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35326 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35327 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35328 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35329 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35330 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35331 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35332 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35333 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35334 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35336 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35343 { (exit 0); exit 0; }
35345 chmod +x $CONFIG_STATUS
35346 ac_clean_files=$ac_clean_files_save
35349 # configure is writing to config.log, and then calls config.status.
35350 # config.status does its own redirection, appending to config.log.
35351 # Unfortunately, on DOS this fails, as config.log is still kept open
35352 # by configure, so config.status won't be able to write to it; its
35353 # output is simply discarded. So we exec the FD to /dev/null,
35354 # effectively closing config.log, so it can be properly (re)opened and
35355 # appended to by config.status. When coming back to configure, we
35356 # need to make the FD available again.
35357 if test "$no_create" != yes; then
35359 ac_config_status_args=
35360 test "$silent" = yes &&
35361 ac_config_status_args="$ac_config_status_args --quiet"
35363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35366 # would make configure fail if this is the last instruction.
35367 $ac_cs_success || { (exit 1); exit 1; }
35371 # CONFIG_SUBDIRS section.
35373 if test "$no_recursion" != yes; then
35375 # Remove --cache-file and --srcdir arguments so they do not pile up.
35376 ac_sub_configure_args=
35378 eval "set x $ac_configure_args"
35382 if test -n "$ac_prev"; then
35387 -cache-file | --cache-file | --cache-fil | --cache-fi \
35388 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35389 ac_prev=cache_file ;;
35390 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35391 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35394 --config-cache | -C)
35396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35400 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35402 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35406 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35408 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35412 # Always prepend --prefix to ensure using the same prefix
35413 # in subdir configurations.
35414 ac_arg="--prefix=$prefix"
35416 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35418 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35421 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35423 # Do not complain, so a configure script can configure whichever
35424 # parts of a large source tree are present.
35425 test -d "$srcdir/$ac_dir" || continue
35427 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35428 echo "$as_me:$LINENO: $ac_msg" >&5
35432 -*) as_dir=./$as_dir;;
35434 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35438 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35439 *) as_qdir=$as_dir;;
35441 as_dirs="'$as_qdir' $as_dirs"
35442 as_dir=`$as_dirname -- "$as_dir" ||
35443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35444 X"$as_dir" : 'X\(//\)[^/]' \| \
35445 X"$as_dir" : 'X\(//\)$' \| \
35446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35452 /^X\(\/\/\)[^/].*/{
35465 test -d "$as_dir" && break
35467 test -z "$as_dirs" || eval "mkdir $as_dirs"
35468 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35469 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35470 { (exit 1); exit 1; }; }; }
35474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35477 # A ".." for each directory in $ac_dir_suffix.
35478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35479 case $ac_top_builddir_sub in
35480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35484 ac_abs_top_builddir=$ac_pwd
35485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35486 # for backward compatibility:
35487 ac_top_builddir=$ac_top_build_prefix
35490 .) # We are building in place.
35492 ac_top_srcdir=$ac_top_builddir_sub
35493 ac_abs_top_srcdir=$ac_pwd ;;
35494 [\\/]* | ?:[\\/]* ) # Absolute name.
35495 ac_srcdir=$srcdir$ac_dir_suffix;
35496 ac_top_srcdir=$srcdir
35497 ac_abs_top_srcdir=$srcdir ;;
35498 *) # Relative name.
35499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35500 ac_top_srcdir=$ac_top_build_prefix$srcdir
35501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35508 # Check for guested configure; otherwise get Cygnus style configure.
35509 if test -f "$ac_srcdir/configure.gnu"; then
35510 ac_sub_configure=$ac_srcdir/configure.gnu
35511 elif test -f "$ac_srcdir/configure"; then
35512 ac_sub_configure=$ac_srcdir/configure
35513 elif test -f "$ac_srcdir/configure.in"; then
35514 # This should be Cygnus configure.
35515 ac_sub_configure=$ac_aux_dir/configure
35517 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35518 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35522 # The recursion is here.
35523 if test -n "$ac_sub_configure"; then
35524 # Make the cache file name correct relative to the subdirectory.
35525 case $cache_file in
35526 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35527 *) # Relative name.
35528 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35531 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35532 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35533 # The eval makes quoting arguments work.
35534 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35535 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35536 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35537 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35538 { (exit 1); exit 1; }; }