2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
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
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
930 ac_precious_vars='build_alias
946 ac_subdirs_all='projects/sample
948 projects/llvm-stacker
954 projects/llvm-poolalloc
956 projects/llvm-kernel'
958 # Initialize some variables set by options.
960 ac_init_version=false
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
970 program_transform_name=s,x,x,
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1022 case $ac_dashdash$ac_option in
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1046 -datadir | --datadir | --datadi | --datad)
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1058 -disable-* | --disable-*)
1059 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1065 eval enable_$ac_feature=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084 eval enable_$ac_feature=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1248 -site=* | --site=* | --sit=*)
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1275 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid package name: $ac_package" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_package=`echo $ac_package| sed 's/-/_/g'`
1281 eval with_$ac_package=\$ac_optarg ;;
1283 -without-* | --without-*)
1284 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_package=`echo $ac_package | sed 's/-/_/g'`
1290 eval with_$ac_package=no ;;
1293 # Obsolete; use --with-x.
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1310 -*) { echo "$as_me: error: unrecognized option: $ac_option
1311 Try \`$0 --help' for more information." >&2
1312 { (exit 1); exit 1; }; }
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320 { (exit 1); exit 1; }; }
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1325 # FIXME: should be removed in autoconf 3.0.
1326 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 { echo "$as_me: error: missing argument to $ac_option" >&2
1338 { (exit 1); exit 1; }; }
1341 # Be sure to have absolute directory names.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1349 [\\/$]* | ?:[\\/]* ) continue;;
1350 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353 { (exit 1); exit 1; }; }
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1361 target=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368 If a cross compiler is detected then cross compile mode will be used." >&2
1369 elif test "x$build_alias" != "x$host_alias"; then
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377 test "$silent" = yes && exec 6>/dev/null
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 { echo "$as_me: error: Working directory cannot be determined" >&2
1384 { (exit 1); exit 1; }; }
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 { echo "$as_me: error: pwd does not report name of working directory" >&2
1387 { (exit 1); exit 1; }; }
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$0" ||
1395 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$0" : 'X\(//\)[^/]' \| \
1397 X"$0" : 'X\(//\)$' \| \
1398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427 { (exit 1); exit 1; }; }
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1432 { (exit 1); exit 1; }; }
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of llvm 2.2svn:";;
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-expensive-checks
1535 --enable-debug-runtime
1536 --enable-jit Enable Just In Time Compiling (default is YES)
1537 --enable-doxygen Build doxygen documentation (default is NO)
1538 --enable-threads Use threads if available (default is YES)
1539 --enable-pic Build LLVM with Position Independent Code (default
1541 --enable-targets Build specific host targets:
1542 all,host-only,{target-name} (default=all)
1543 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1545 --enable-ltdl-install install libltdl
1546 --enable-shared[=PKGS] build shared libraries
1548 --enable-static[=PKGS] build static libraries
1550 --enable-fast-install[=PKGS]
1551 optimize for fast installation
1553 --disable-libtool-lock avoid locking (might break parallel builds)
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1560 --with-extra-options Specify addtional options to compile LLVM with
1561 --with-tclinclude directory where tcl headers are
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-pic try to use only PIC/non-PIC objects [default=use
1565 --with-tags[=TAGS] include additional configurations [automatic]
1566 --with-udis86=<path> Use udis86 external x86 disassembler library
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1579 the first program found out of: `bison -y', `byacc', `yacc'.
1580 YFLAGS The list of arguments that will be passed by default to $YACC.
1581 This script will default YFLAGS to the empty string to avoid a
1582 default value of `-d' given by some make applications.
1583 CXXCPP C++ preprocessor
1584 F77 Fortran 77 compiler command
1585 FFLAGS Fortran 77 compiler flags
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1590 Report bugs to <llvmbugs@cs.uiuc.edu>.
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" || continue
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1618 .) # We are building in place.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1642 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1651 llvm configure 2.2svn
1652 generated by GNU Autoconf 2.60
1654 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1659 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1663 cat >config.log <<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1667 It was created by llvm $as_me 2.2svn, which was
1668 generated by GNU Autoconf 2.60. Invocation command line was
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 echo "PATH: $as_dir"
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_must_keep_next=false
1734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1736 | -silent | --silent | --silen | --sile | --sil)
1739 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true; then
1746 ac_must_keep_next=false # Got value, back to normal.
1749 *=* | --config-cache | -C | -disable-* | --disable-* \
1750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1752 | -with-* | --with-* | -without-* | --without-* | --x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 -* ) ac_must_keep_next=true ;;
1760 ac_configure_args="$ac_configure_args '$ac_arg'"
1765 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1766 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log. We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1784 # The following way of writing the cache mishandles newlines in values,
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1791 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795 _ | IFS | as_nl) ;; #(
1796 *) $as_unset $ac_var ;;
1801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802 *${as_nl}ac_space=\ *)
1804 "s/'\''/'\''\\\\'\'''\''/g;
1805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816 ## ----------------- ##
1817 ## Output variables. ##
1818 ## ----------------- ##
1821 for ac_var in $ac_subst_vars
1823 eval ac_val=\$$ac_var
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827 echo "$ac_var='\''$ac_val'\''"
1831 if test -n "$ac_subst_files"; then
1833 ## ------------------- ##
1834 ## File substitutions. ##
1835 ## ------------------- ##
1838 for ac_var in $ac_subst_files
1840 eval ac_val=\$$ac_var
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 echo "$ac_var='\''$ac_val'\''"
1849 if test -s confdefs.h; then
1859 test "$ac_signal" != 0 &&
1860 echo "$as_me: caught signal $ac_signal"
1861 echo "$as_me: exit $exit_status"
1863 rm -f core *.core core.conftest.* &&
1864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 for ac_signal in 1 2 13 15; do
1868 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1875 # Predefined preprocessor variables.
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 # Let the site file select an alternate cache file if it wants to.
1903 # Prefer explicitly selected file to automatically selected ones.
1904 if test -n "$CONFIG_SITE"; then
1905 set x "$CONFIG_SITE"
1906 elif test "x$prefix" != xNONE; then
1907 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909 set x "$ac_default_prefix/share/config.site" \
1910 "$ac_default_prefix/etc/config.site"
1915 if test -r "$ac_site_file"; then
1916 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1917 echo "$as_me: loading site script $ac_site_file" >&6;}
1918 sed 's/^/| /' "$ac_site_file" >&5
1923 if test -r "$cache_file"; then
1924 # Some versions of bash will fail to source /dev/null (special
1925 # files actually), so we avoid doing that.
1926 if test -f "$cache_file"; then
1927 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1928 echo "$as_me: loading cache $cache_file" >&6;}
1930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1931 *) . "./$cache_file";;
1935 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1936 echo "$as_me: creating cache $cache_file" >&6;}
1940 # Check that the precious variables saved in the cache have kept the same
1942 ac_cache_corrupted=false
1943 for ac_var in $ac_precious_vars; do
1944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1945 eval ac_new_set=\$ac_env_${ac_var}_set
1946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1947 eval ac_new_val=\$ac_env_${ac_var}_value
1948 case $ac_old_set,$ac_new_set in
1950 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1951 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1954 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1956 ac_cache_corrupted=: ;;
1959 if test "x$ac_old_val" != "x$ac_new_val"; then
1960 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1963 echo "$as_me: former value: $ac_old_val" >&2;}
1964 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1965 echo "$as_me: current value: $ac_new_val" >&2;}
1966 ac_cache_corrupted=:
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1972 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981 if $ac_cache_corrupted; then
1982 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1983 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1984 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1985 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1986 { (exit 1); exit 1; }; }
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2030 for ac_dir in autoconf "$srcdir"/autoconf; do
2031 if test -f "$ac_dir/install-sh"; then
2033 ac_install_sh="$ac_aux_dir/install-sh -c"
2035 elif test -f "$ac_dir/install.sh"; then
2037 ac_install_sh="$ac_aux_dir/install.sh -c"
2039 elif test -f "$ac_dir/shtool"; then
2041 ac_install_sh="$ac_aux_dir/shtool install -c"
2045 if test -z "$ac_aux_dir"; then
2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2048 { (exit 1); exit 1; }; }
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2061 if test ${srcdir} != "." ; then
2062 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2063 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2064 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2065 { (exit 1); exit 1; }; }
2069 for i in `ls ${srcdir}/projects`
2071 if test -d ${srcdir}/projects/${i} ; then
2074 sample) subdirs="$subdirs projects/sample"
2076 privbracket) subdirs="$subdirs projects/privbracket"
2078 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2080 llvm-test) subdirs="$subdirs projects/llvm-test"
2082 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2084 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2086 llvm-java) subdirs="$subdirs projects/llvm-java"
2088 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2090 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2092 poolalloc) subdirs="$subdirs projects/poolalloc"
2094 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2097 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2098 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109 { (exit 1); exit 1; }; }
2111 { echo "$as_me:$LINENO: checking build system type" >&5
2112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 ac_build_alias=$build_alias
2117 test "x$ac_build_alias" = x &&
2118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x &&
2120 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122 { (exit 1); exit 1; }; }
2123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 echo "${ECHO_T}$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 echo "$as_me: error: invalid value of canonical build" >&2;}
2135 { (exit 1); exit 1; }; };;
2138 ac_save_IFS=$IFS; IFS='-'
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2151 { echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_host+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 if test "x$host_alias" = x; then
2157 ac_cv_host=$ac_cv_build
2159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167 echo "${ECHO_T}$ac_cv_host" >&6; }
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171 echo "$as_me: error: invalid value of canonical host" >&2;}
2172 { (exit 1); exit 1; }; };;
2175 ac_save_IFS=$IFS; IFS='-'
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking target system type" >&5
2189 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_target+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test "x$target_alias" = x; then
2194 ac_cv_target=$ac_cv_host
2196 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204 echo "${ECHO_T}$ac_cv_target" >&6; }
2205 case $ac_cv_target in
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2208 echo "$as_me: error: invalid value of canonical target" >&2;}
2209 { (exit 1); exit 1; }; };;
2211 target=$ac_cv_target
2212 ac_save_IFS=$IFS; IFS='-'
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2222 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2225 # The aliases save the names the user supplied, while $host etc.
2226 # will get canonicalized.
2227 test -n "$target_alias" &&
2228 test "$program_prefix$program_suffix$program_transform_name" = \
2230 program_prefix=${target_alias}-
2232 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2233 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2234 if test "${llvm_cv_os_type+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="AIX"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="IRIX"
2247 llvm_cv_platform_type="Unix" ;;
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="Cygwin"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,-all_load"
2255 llvm_cv_link_all_option="-Wl,-noall_load"
2256 llvm_cv_os_type="Darwin"
2257 llvm_cv_platform_type="Unix" ;;
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="FreeBSD"
2262 llvm_cv_platform_type="Unix" ;;
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="OpenBSD"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="NetBSD"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="HP-UX"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Interix"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Linux"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,-z,allextract"
2290 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2291 llvm_cv_os_type="SunOS"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="Win32"
2297 llvm_cv_platform_type="Win32" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="MingW"
2302 llvm_cv_platform_type="Win32" ;;
2304 llvm_cv_link_all_option=""
2305 llvm_cv_no_link_all_option=""
2306 llvm_cv_os_type="Unknown"
2307 llvm_cv_platform_type="Unknown" ;;
2310 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2311 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2313 if test "$llvm_cv_os_type" = "Unknown" ; then
2314 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2315 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2316 { (exit 1); exit 1; }; }
2322 LINKALL=$llvm_cv_link_all_option
2324 NOLINKALL=$llvm_cv_no_link_all_option
2327 case $llvm_cv_platform_type in
2330 cat >>confdefs.h <<\_ACEOF
2331 #define LLVM_ON_UNIX 1
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_WIN32 1
2352 { echo "$as_me:$LINENO: checking target architecture" >&5
2353 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354 if test "${llvm_cv_target_arch+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 i?86-*) llvm_cv_target_arch="x86" ;;
2359 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2360 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2361 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2362 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2363 ia64-*) llvm_cv_target_arch="IA64" ;;
2364 arm-*) llvm_cv_target_arch="ARM" ;;
2365 mips-*) llvm_cv_target_arch="Mips" ;;
2366 *) llvm_cv_target_arch="Unknown" ;;
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 ARCH=$llvm_cv_target_arch
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 if test -n "$CC"; then
2415 { echo "$as_me:$LINENO: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6; }
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2424 if test -z "$ac_cv_prog_CC"; then
2426 # Extract the first word of "gcc", so it can be a program name with args.
2427 set dummy gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_ac_ct_CC="gcc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6; }
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2462 if test "x$ac_ct_CC" = x; then
2465 case $cross_compiling:$ac_tool_warned in
2467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2468 whose name does not start with the host triplet. If you think this
2469 configuration is useful to you, please write to autoconf@gnu.org." >&5
2470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet. If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2473 ac_tool_warned=yes ;;
2481 if test -z "$CC"; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_CC="${ac_tool_prefix}cc"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 if test -n "$CC"; then
2512 { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2522 if test -z "$CC"; then
2523 # Extract the first word of "cc", so it can be a program name with args.
2524 set dummy cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542 ac_prog_rejected=yes
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test $ac_prog_rejected = yes; then
2554 # We found a bogon in the path, so make sure we never use it.
2555 set dummy $ac_cv_prog_CC
2557 if test $# != 0; then
2558 # We chose a different compiler from the bogus one.
2559 # However, it has the same basename, so the bogon will be chosen
2560 # first if we set CC to just the basename; use the full file name.
2562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2568 if test -n "$CC"; then
2569 { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2572 { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2578 if test -z "$CC"; then
2579 if test -n "$ac_tool_prefix"; then
2580 for ac_prog in cl.exe
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2619 test -n "$CC" && break
2622 if test -z "$CC"; then
2624 for ac_prog in cl.exe
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$ac_ct_CC"; then
2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_ac_ct_CC="$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6; }
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$ac_ct_CC" && break
2666 if test "x$ac_ct_CC" = x; then
2669 case $cross_compiling:$ac_tool_warned in
2671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet. If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&5
2674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675 whose name does not start with the host triplet. If you think this
2676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677 ac_tool_warned=yes ;;
2686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2692 # Provide some information about the compiler.
2693 echo "$as_me:$LINENO: checking for C compiler version" >&5
2694 ac_compiler=`set X $ac_compile; echo $2`
2695 { (ac_try="$ac_compiler --version >&5"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler --version >&5") 2>&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705 { (ac_try="$ac_compiler -v >&5"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -v >&5") 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (ac_try="$ac_compiler -V >&5"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compiler -V >&5") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2741 ac_clean_files_save=$ac_clean_files
2742 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2743 # Try to create an executable without -o first, disregard a.out.
2744 # It will help us diagnose broken compilers, and finding out an intuition
2746 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2747 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2748 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2750 # List of possible output files, starting from the most likely.
2751 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2752 # only as a last resort. b.out is created by i960 compilers.
2753 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2755 # The IRIX 6 linker writes into existing files which may not be
2756 # executable, retaining their permissions. Remove them first so a
2757 # subsequent execution test works.
2759 for ac_file in $ac_files
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2768 if { (ac_try="$ac_link_default"
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_link_default") 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; then
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2783 for ac_file in $ac_files
2785 test -f "$ac_file" || continue
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2790 # We found the default executable, but exeext='' is most
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: C compiler cannot create executables
2817 See \`config.log' for more details." >&2;}
2818 { (exit 77); exit 77; }; }
2821 ac_exeext=$ac_cv_exeext
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2830 # If not cross compiling, check that we can run a simple program.
2831 if test "$cross_compiling" != yes; then
2832 if { ac_try='./$ac_file'
2833 { (case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_try") 2>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2844 if test "$cross_compiling" = maybe; then
2847 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&2;}
2853 { (exit 1); exit 1; }; }
2857 { echo "$as_me:$LINENO: result: yes" >&5
2858 echo "${ECHO_T}yes" >&6; }
2860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2861 ac_clean_files=$ac_clean_files_save
2862 # Check that the compiler produces executables we can run. If not, either
2863 # the compiler is broken, or we cross compile.
2864 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2866 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867 echo "${ECHO_T}$cross_compiling" >&6; }
2869 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2871 if { (ac_try="$ac_link"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_link") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2885 for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2902 rm -f conftest$ac_cv_exeext
2903 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2904 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2906 rm -f conftest.$ac_ext
2907 EXEEXT=$ac_cv_exeext
2909 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2910 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2911 if test "${ac_cv_objext+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2929 rm -f conftest.o conftest.obj
2930 if { (ac_try="$ac_compile"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; then
2940 for ac_file in conftest.o conftest.obj conftest.*; do
2941 test -f "$ac_file" || continue;
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2961 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962 echo "${ECHO_T}$ac_cv_objext" >&6; }
2963 OBJEXT=$ac_cv_objext
2965 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_try") 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3034 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036 GCC=`test $ac_compiler_gnu = yes && echo yes`
3037 ac_test_CFLAGS=${CFLAGS+set}
3038 ac_save_CFLAGS=$CFLAGS
3039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_cc_g+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 ac_save_c_werror_flag=$ac_c_werror_flag
3045 ac_c_werror_flag=yes
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_c_werror_flag=$ac_save_c_werror_flag
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3227 if test "$ac_test_CFLAGS" = set; then
3228 CFLAGS=$ac_save_CFLAGS
3229 elif test $ac_cv_prog_cc_g = yes; then
3230 if test "$GCC" = yes; then
3236 if test "$GCC" = yes; then
3242 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3243 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3244 if test "${ac_cv_prog_cc_c89+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 ac_cv_prog_cc_c89=no
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3257 #include <sys/types.h>
3258 #include <sys/stat.h>
3259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3260 struct buf { int x; };
3261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262 static char *e (p, i)
3268 static char *f (char * (*g) (char **, int), char **p, ...)
3273 s = g (p, va_arg (v,int));
3278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3279 function prototypes and stuff, but not '\xHH' hex character constants.
3280 These don't provoke an error unfortunately, instead are silently treated
3281 as 'x'. The following induces an error, until -std is added to get
3282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3283 array size at least. It's necessary to write '\x00'==0 to get something
3284 that's true only with -std. */
3285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288 inside strings and character constants. */
3290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3292 int test (int i, double x);
3293 struct s1 {int (*f) (int a);};
3294 struct s2 {int (*f) (double a);};
3295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3309 CC="$ac_save_CC $ac_arg"
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_try") 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_cv_prog_cc_c89=$ac_arg
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3355 rm -f conftest.$ac_ext
3360 case "x$ac_cv_prog_cc_c89" in
3362 { echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6; } ;;
3365 { echo "$as_me:$LINENO: result: unsupported" >&5
3366 echo "${ECHO_T}unsupported" >&6; } ;;
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3387 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3392 if test -z "$CPP"; then
3393 if test "${ac_cv_prog_CPP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 # Double quotes because CPP needs to be expanded
3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3400 for ac_c_preproc_warn_flag in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3415 # include <limits.h>
3417 # include <assert.h>
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null; then
3434 if test -s conftest.err; then
3435 ac_cpp_err=$ac_c_preproc_warn_flag
3436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 if test -z "$ac_cpp_err"; then
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Broken: fails on valid input.
3453 rm -f conftest.err conftest.$ac_ext
3455 # OK, works on sane cases. Now check whether nonexistent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3465 if { (ac_try="$ac_cpp conftest.$ac_ext"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473 grep -v '^ *+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } >/dev/null; then
3478 if test -s conftest.err; then
3479 ac_cpp_err=$ac_c_preproc_warn_flag
3480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 if test -z "$ac_cpp_err"; then
3488 # Broken: success on invalid input.
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Passes both tests.
3499 rm -f conftest.err conftest.$ac_ext
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3516 { echo "$as_me:$LINENO: result: $CPP" >&5
3517 echo "${ECHO_T}$CPP" >&6; }
3519 for ac_c_preproc_warn_flag in '' yes
3521 # Use a header file that comes with gcc, so configuring glibc
3522 # with a fresh cross-compiler works.
3523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524 # <limits.h> exists even on freestanding compilers.
3525 # On the NeXT, cc -E runs the code through the compiler's parser,
3526 # not just through cpp. "Syntax error" is here to catch this case.
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3534 # include <limits.h>
3536 # include <assert.h>
3540 if { (ac_try="$ac_cpp conftest.$ac_ext"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 if test -z "$ac_cpp_err"; then
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 # Broken: fails on valid input.
3572 rm -f conftest.err conftest.$ac_ext
3574 # OK, works on sane cases. Now check whether nonexistent headers
3575 # can be detected and how.
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <ac_nonexistent.h>
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null; then
3597 if test -s conftest.err; then
3598 ac_cpp_err=$ac_c_preproc_warn_flag
3599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 if test -z "$ac_cpp_err"; then
3607 # Broken: success on invalid input.
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 # Passes both tests.
3618 rm -f conftest.err conftest.$ac_ext
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3626 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details." >&5
3628 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3629 See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3641 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3642 if test "${ac_cv_path_GREP+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 # Extract the first word of "grep ggrep" to use in msg output
3646 if test -z "$GREP"; then
3647 set dummy grep ggrep; ac_prog_name=$2
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 ac_path_GREP_found=false
3652 # Loop through the user's path and test for each of PROGNAME-LIST
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3657 test -z "$as_dir" && as_dir=.
3658 for ac_prog in grep ggrep; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3661 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3662 # Check for GNU ac_path_GREP and select it if it is found.
3663 # Check for GNU $ac_path_GREP
3664 case `"$ac_path_GREP" --version 2>&1` in
3666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3669 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3672 cat "conftest.in" "conftest.in" >"conftest.tmp"
3673 mv "conftest.tmp" "conftest.in"
3674 cp "conftest.in" "conftest.nl"
3675 echo 'GREP' >> "conftest.nl"
3676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678 ac_count=`expr $ac_count + 1`
3679 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3680 # Best one so far, save it but keep looking for a better one
3681 ac_cv_path_GREP="$ac_path_GREP"
3682 ac_path_GREP_max=$ac_count
3684 # 10*(2^10) chars as input seems more than enough
3685 test $ac_count -gt 10 && break
3687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3691 $ac_path_GREP_found && break 3
3701 GREP="$ac_cv_path_GREP"
3702 if test -z "$GREP"; then
3703 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3705 { (exit 1); exit 1; }; }
3709 ac_cv_path_GREP=$GREP
3714 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3715 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3716 GREP="$ac_cv_path_GREP"
3719 { echo "$as_me:$LINENO: checking for egrep" >&5
3720 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3721 if test "${ac_cv_path_EGREP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3725 then ac_cv_path_EGREP="$GREP -E"
3727 # Extract the first word of "egrep" to use in msg output
3728 if test -z "$EGREP"; then
3729 set dummy egrep; ac_prog_name=$2
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 ac_path_EGREP_found=false
3734 # Loop through the user's path and test for each of PROGNAME-LIST
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3739 test -z "$as_dir" && as_dir=.
3740 for ac_prog in egrep; do
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3743 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3744 # Check for GNU ac_path_EGREP and select it if it is found.
3745 # Check for GNU $ac_path_EGREP
3746 case `"$ac_path_EGREP" --version 2>&1` in
3748 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3751 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3754 cat "conftest.in" "conftest.in" >"conftest.tmp"
3755 mv "conftest.tmp" "conftest.in"
3756 cp "conftest.in" "conftest.nl"
3757 echo 'EGREP' >> "conftest.nl"
3758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760 ac_count=`expr $ac_count + 1`
3761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3762 # Best one so far, save it but keep looking for a better one
3763 ac_cv_path_EGREP="$ac_path_EGREP"
3764 ac_path_EGREP_max=$ac_count
3766 # 10*(2^10) chars as input seems more than enough
3767 test $ac_count -gt 10 && break
3769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3773 $ac_path_EGREP_found && break 3
3783 EGREP="$ac_cv_path_EGREP"
3784 if test -z "$EGREP"; then
3785 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3786 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3787 { (exit 1); exit 1; }; }
3791 ac_cv_path_EGREP=$EGREP
3797 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3798 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3799 EGREP="$ac_cv_path_EGREP"
3802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3804 if test "${ac_cv_header_stdc+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3841 { (case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest.$ac_objext'
3851 { (case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_try") 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_cv_header_stdc=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 ac_cv_header_stdc=no
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 if test $ac_cv_header_stdc = yes; then
3871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "memchr" >/dev/null 2>&1; then
3885 ac_cv_header_stdc=no
3891 if test $ac_cv_header_stdc = yes; then
3892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "free" >/dev/null 2>&1; then
3906 ac_cv_header_stdc=no
3912 if test $ac_cv_header_stdc = yes; then
3913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3914 if test "$cross_compiling" = yes; then
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3925 #if ((' ' & 0x0FF) == 0x020)
3926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3929 # define ISLOWER(c) \
3930 (('a' <= (c) && (c) <= 'i') \
3931 || ('j' <= (c) && (c) <= 'r') \
3932 || ('s' <= (c) && (c) <= 'z'))
3933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3941 for (i = 0; i < 256; i++)
3942 if (XOR (islower (i), ISLOWER (i))
3943 || toupper (i) != TOUPPER (i))
3948 rm -f conftest$ac_exeext
3949 if { (ac_try="$ac_link"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_link") 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3970 echo "$as_me: program exited with status $ac_status" >&5
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_cv_header_stdc=no
3977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3983 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3984 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3985 if test $ac_cv_header_stdc = yes; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define STDC_HEADERS 1
3993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4004 inttypes.h stdint.h unistd.h
4006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 $ac_includes_default
4020 #include <$ac_header>
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_try") 2>&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 eval "$as_ac_Header=yes"
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 eval "$as_ac_Header=no"
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_res=`eval echo '${'$as_ac_Header'}'`
4067 { echo "$as_me:$LINENO: result: $ac_res" >&5
4068 echo "${ECHO_T}$ac_res" >&6; }
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h <<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4081 if test "${ac_cv_c_bigendian+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 # See if sys/param.h defines the BYTE_ORDER macro.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #include <sys/types.h>
4092 #include <sys/param.h>
4097 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; } &&
4129 { ac_try='test -s conftest.$ac_objext'
4130 { (case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_try") 2>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 # It does; now see whether it defined to BIG_ENDIAN or not.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <sys/types.h>
4147 #include <sys/param.h>
4152 #if BYTE_ORDER != BIG_ENDIAN
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_try") 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_c_bigendian=yes
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 ac_cv_c_bigendian=no
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 # It does not; compile a test program.
4208 if test "$cross_compiling" = yes; then
4209 # try to guess the endianness by grepping values into an object file
4210 ac_cv_c_bigendian=unknown
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4218 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4219 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4220 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4221 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4222 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4226 _ascii (); _ebcdic ();
4231 rm -f conftest.$ac_objext
4232 if { (ac_try="$ac_compile"
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_compile") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_try") 2>&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4266 ac_cv_c_bigendian=yes
4268 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4269 if test "$ac_cv_c_bigendian" = unknown; then
4270 ac_cv_c_bigendian=no
4272 # finding both strings is unlikely to happen, but who knows?
4273 ac_cv_c_bigendian=unknown
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 cat >conftest.$ac_ext <<_ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 $ac_includes_default
4296 /* Are we little or big endian? From Harbison&Steele. */
4300 char c[sizeof (long int)];
4303 return u.c[sizeof (long int) - 1] == 1;
4309 rm -f conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_link") 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_c_bigendian=no
4331 echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_cv_c_bigendian=yes
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4347 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4348 case $ac_cv_c_bigendian in
4356 { { echo "$as_me:$LINENO: error: unknown endianness
4357 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4358 echo "$as_me: error: unknown endianness
4359 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4360 { (exit 1); exit 1; }; } ;;
4364 if test "$cross_compiling" = yes; then
4365 LLVM_CROSS_COMPILING=1
4368 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4369 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4370 if test "${ac_cv_build_exeext+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4374 ac_cv_build_exeext=.exe
4376 ac_build_prefix=${build_alias}-
4378 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4379 set dummy ${ac_build_prefix}gcc; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test -n "$BUILD_CC"; then
4386 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 BUILD_CC=$ac_cv_prog_BUILD_CC
4406 if test -n "$BUILD_CC"; then
4407 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408 echo "${ECHO_T}$BUILD_CC" >&6; }
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4415 if test -z "$BUILD_CC"; then
4416 # Extract the first word of "gcc", so it can be a program name with args.
4417 set dummy gcc; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$BUILD_CC"; then
4424 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_BUILD_CC="gcc"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 BUILD_CC=$ac_cv_prog_BUILD_CC
4444 if test -n "$BUILD_CC"; then
4445 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4446 echo "${ECHO_T}$BUILD_CC" >&6; }
4448 { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4453 if test -z "$BUILD_CC"; then
4454 # Extract the first word of "cc", so it can be a program name with args.
4455 set dummy cc; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 if test -n "$BUILD_CC"; then
4462 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4473 ac_prog_rejected=yes
4476 ac_cv_prog_BUILD_CC="cc"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test $ac_prog_rejected = yes; then
4485 # We found a bogon in the path, so make sure we never use it.
4486 set dummy $ac_cv_prog_BUILD_CC
4488 if test $# != 0; then
4489 # We chose a different compiler from the bogus one.
4490 # However, it has the same basename, so the bogon will be chosen
4491 # first if we set BUILD_CC to just the basename; use the full file name.
4493 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4498 BUILD_CC=$ac_cv_prog_BUILD_CC
4499 if test -n "$BUILD_CC"; then
4500 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4501 echo "${ECHO_T}$BUILD_CC" >&6; }
4503 { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4510 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4511 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4512 { (exit 1); exit 1; }; }
4513 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4515 echo 'int main () { return 0; }' > conftest.$ac_ext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4518 (eval $ac_build_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; then
4522 for file in conftest.*; do
4524 *.c | *.o | *.obj) ;;
4525 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4529 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4530 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4531 { (exit 1); exit 1; }; }
4534 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4539 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4540 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4541 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4542 ac_build_exeext=$BUILD_EXEEXT
4545 LLVM_CROSS_COMPILING=0
4549 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4560 # Check whether --enable-optimized was given.
4561 if test "${enable_optimized+set}" = set; then
4562 enableval=$enable_optimized;
4567 if test ${enableval} = "no" ; then
4571 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4575 # Check whether --enable-assertions was given.
4576 if test "${enable_assertions+set}" = set; then
4577 enableval=$enable_assertions;
4582 if test ${enableval} = "yes" ; then
4586 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4590 # Check whether --enable-expensive-checks was given.
4591 if test "${enable_expensive_checks+set}" = set; then
4592 enableval=$enable_expensive_checks;
4597 if test ${enableval} = "yes" ; then
4598 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4600 EXPENSIVE_CHECKS=yes
4603 ENABLE_EXPENSIVE_CHECKS=
4609 # Check whether --enable-debug-runtime was given.
4610 if test "${enable_debug_runtime+set}" = set; then
4611 enableval=$enable_debug_runtime;
4616 if test ${enableval} = "no" ; then
4620 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4624 # Check whether --enable-jit was given.
4625 if test "${enable_jit+set}" = set; then
4626 enableval=$enable_jit;
4631 if test ${enableval} = "no"
4636 case "$llvm_cv_target_arch" in
4637 x86) TARGET_HAS_JIT=1
4639 Sparc) TARGET_HAS_JIT=0
4641 PowerPC) TARGET_HAS_JIT=1
4643 x86_64) TARGET_HAS_JIT=1
4645 Alpha) TARGET_HAS_JIT=1
4647 IA64) TARGET_HAS_JIT=0
4649 ARM) TARGET_HAS_JIT=0
4651 Mips) TARGET_HAS_JIT=0
4658 # Check whether --enable-doxygen was given.
4659 if test "${enable_doxygen+set}" = set; then
4660 enableval=$enable_doxygen;
4665 case "$enableval" in
4666 yes) ENABLE_DOXYGEN=1
4668 no) ENABLE_DOXYGEN=0
4670 default) ENABLE_DOXYGEN=0
4672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4673 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4677 # Check whether --enable-threads was given.
4678 if test "${enable_threads+set}" = set; then
4679 enableval=$enable_threads;
4684 case "$enableval" in
4685 yes) ENABLE_THREADS=1
4687 no) ENABLE_THREADS=0
4689 default) ENABLE_THREADS=1
4691 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4692 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4693 { (exit 1); exit 1; }; } ;;
4696 cat >>confdefs.h <<_ACEOF
4697 #define ENABLE_THREADS $ENABLE_THREADS
4701 # Check whether --enable-pic was given.
4702 if test "${enable_pic+set}" = set; then
4703 enableval=$enable_pic;
4708 case "$enableval" in
4713 default) ENABLE_PIC=0
4715 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4716 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4717 { (exit 1); exit 1; }; } ;;
4720 cat >>confdefs.h <<_ACEOF
4721 #define ENABLE_PIC $ENABLE_PIC
4726 # Check whether --enable-targets was given.
4727 if test "${enable_targets+set}" = set; then
4728 enableval=$enable_targets;
4733 case "$enableval" in
4734 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4736 case "$llvm_cv_target_arch" in
4737 x86) TARGETS_TO_BUILD="X86" ;;
4738 x86_64) TARGETS_TO_BUILD="X86" ;;
4739 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4740 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4741 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4742 IA64) TARGETS_TO_BUILD="IA64" ;;
4743 ARM) TARGETS_TO_BUILD="ARM" ;;
4744 Mips) TARGETS_TO_BUILD="Mips" ;;
4745 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4746 echo "$as_me: error: Can not set target to build" >&2;}
4747 { (exit 1); exit 1; }; } ;;
4750 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4752 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4754 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4755 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4756 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4757 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4758 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4759 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4760 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4761 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4762 { (exit 1); exit 1; }; } ;;
4767 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4768 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4771 # Check whether --enable-cbe-printf-a was given.
4772 if test "${enable_cbe_printf_a+set}" = set; then
4773 enableval=$enable_cbe_printf_a;
4778 case "$enableval" in
4779 yes) ENABLE_CBE_PRINTF_A=1
4781 no) ENABLE_CBE_PRINTF_A=0
4783 default) ENABLE_CBE_PRINTF_A=1
4785 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4786 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4787 { (exit 1); exit 1; }; } ;;
4790 cat >>confdefs.h <<_ACEOF
4791 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4796 # Check whether --with-llvmgccdir was given.
4797 if test "${with_llvmgccdir+set}" = set; then
4798 withval=$with_llvmgccdir;
4804 default) WITH_LLVMGCCDIR=default ;;
4805 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4806 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4807 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4812 # Check whether --with-extra-options was given.
4813 if test "${with_extra_options+set}" = set; then
4814 withval=$with_extra_options;
4820 default) EXTRA_OPTIONS= ;;
4821 *) EXTRA_OPTIONS=$withval ;;
4823 EXTRA_OPTIONS=$EXTRA_OPTIONS
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4838 if test -z "$CPP"; then
4839 if test "${ac_cv_prog_CPP+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 # Double quotes because CPP needs to be expanded
4843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4846 for ac_c_preproc_warn_flag in '' yes
4848 # Use a header file that comes with gcc, so configuring glibc
4849 # with a fresh cross-compiler works.
4850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851 # <limits.h> exists even on freestanding compilers.
4852 # On the NeXT, cc -E runs the code through the compiler's parser,
4853 # not just through cpp. "Syntax error" is here to catch this case.
4854 cat >conftest.$ac_ext <<_ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4861 # include <limits.h>
4863 # include <assert.h>
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 grep -v '^ *+' conftest.er1 >conftest.err
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_c_preproc_warn_flag
4882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4889 if test -z "$ac_cpp_err"; then
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 # Broken: fails on valid input.
4899 rm -f conftest.err conftest.$ac_ext
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <ac_nonexistent.h>
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_c_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4933 if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Passes both tests.
4945 rm -f conftest.err conftest.$ac_ext
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4962 { echo "$as_me:$LINENO: result: $CPP" >&5
4963 echo "${ECHO_T}$CPP" >&6; }
4965 for ac_c_preproc_warn_flag in '' yes
4967 # Use a header file that comes with gcc, so configuring glibc
4968 # with a fresh cross-compiler works.
4969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970 # <limits.h> exists even on freestanding compilers.
4971 # On the NeXT, cc -E runs the code through the compiler's parser,
4972 # not just through cpp. "Syntax error" is here to catch this case.
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4980 # include <limits.h>
4982 # include <assert.h>
4986 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_c_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5008 if test -z "$ac_cpp_err"; then
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 # Broken: fails on valid input.
5018 rm -f conftest.err conftest.$ac_ext
5020 # OK, works on sane cases. Now check whether nonexistent headers
5021 # can be detected and how.
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #include <ac_nonexistent.h>
5030 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038 grep -v '^ *+' conftest.er1 >conftest.err
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } >/dev/null; then
5043 if test -s conftest.err; then
5044 ac_cpp_err=$ac_c_preproc_warn_flag
5045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5052 if test -z "$ac_cpp_err"; then
5053 # Broken: success on invalid input.
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 # Passes both tests.
5064 rm -f conftest.err conftest.$ac_ext
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5075 See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; }
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 if test -n "$CC"; then
5101 ac_cv_prog_CC="$CC" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 if test -n "$CC"; then
5122 { echo "$as_me:$LINENO: result: $CC" >&5
5123 echo "${ECHO_T}$CC" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5130 test -n "$CC" && break
5133 if test -z "$CC"; then
5137 # Extract the first word of "$ac_prog", so it can be a program name with args.
5138 set dummy $ac_prog; ac_word=$2
5139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 if test -n "$ac_ct_CC"; then
5145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_prog_ac_ct_CC="$ac_prog"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5165 if test -n "$ac_ct_CC"; then
5166 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5167 echo "${ECHO_T}$ac_ct_CC" >&6; }
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 test -n "$ac_ct_CC" && break
5177 if test "x$ac_ct_CC" = x; then
5180 case $cross_compiling:$ac_tool_warned in
5182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet. If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&5
5185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet. If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188 ac_tool_warned=yes ;;
5195 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: no acceptable C compiler found in \$PATH
5198 See \`config.log' for more details." >&2;}
5199 { (exit 1); exit 1; }; }
5201 # Provide some information about the compiler.
5202 echo "$as_me:$LINENO: checking for C compiler version" >&5
5203 ac_compiler=`set X $ac_compile; echo $2`
5204 { (ac_try="$ac_compiler --version >&5"
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compiler --version >&5") 2>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }
5214 { (ac_try="$ac_compiler -v >&5"
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compiler -v >&5") 2>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }
5224 { (ac_try="$ac_compiler -V >&5"
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_compiler -V >&5") 2>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }
5235 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5304 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5306 GCC=`test $ac_compiler_gnu = yes && echo yes`
5307 ac_test_CFLAGS=${CFLAGS+set}
5308 ac_save_CFLAGS=$CFLAGS
5309 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5310 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_cc_g+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 ac_save_c_werror_flag=$ac_c_werror_flag
5315 ac_c_werror_flag=yes
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compile") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348 { (case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; } &&
5357 { ac_try='test -s conftest.$ac_objext'
5358 { (case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_try") 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5403 { (case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_try") 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_try") 2>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_c_werror_flag=$ac_save_c_werror_flag
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_try") 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ac_c_werror_flag=$ac_save_c_werror_flag
5495 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5497 if test "$ac_test_CFLAGS" = set; then
5498 CFLAGS=$ac_save_CFLAGS
5499 elif test $ac_cv_prog_cc_g = yes; then
5500 if test "$GCC" = yes; then
5506 if test "$GCC" = yes; then
5512 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5513 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5514 if test "${ac_cv_prog_cc_c89+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 ac_cv_prog_cc_c89=no
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5527 #include <sys/types.h>
5528 #include <sys/stat.h>
5529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5530 struct buf { int x; };
5531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5532 static char *e (p, i)
5538 static char *f (char * (*g) (char **, int), char **p, ...)
5543 s = g (p, va_arg (v,int));
5548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5549 function prototypes and stuff, but not '\xHH' hex character constants.
5550 These don't provoke an error unfortunately, instead are silently treated
5551 as 'x'. The following induces an error, until -std is added to get
5552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5553 array size at least. It's necessary to write '\x00'==0 to get something
5554 that's true only with -std. */
5555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5558 inside strings and character constants. */
5560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5562 int test (int i, double x);
5563 struct s1 {int (*f) (int a);};
5564 struct s2 {int (*f) (double a);};
5565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5579 CC="$ac_save_CC $ac_arg"
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_prog_cc_c89=$ac_arg
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext
5623 test "x$ac_cv_prog_cc_c89" != "xno" && break
5625 rm -f conftest.$ac_ext
5630 case "x$ac_cv_prog_cc_c89" in
5632 { echo "$as_me:$LINENO: result: none needed" >&5
5633 echo "${ECHO_T}none needed" >&6; } ;;
5635 { echo "$as_me:$LINENO: result: unsupported" >&5
5636 echo "${ECHO_T}unsupported" >&6; } ;;
5638 CC="$CC $ac_cv_prog_cc_c89"
5639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5640 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 ac_cpp='$CXXCPP $CPPFLAGS'
5652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 if test -z "$CXX"; then
5656 if test -n "$CCC"; then
5659 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_CXX+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$CXX"; then
5670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 if test -n "$CXX"; then
5691 { echo "$as_me:$LINENO: result: $CXX" >&5
5692 echo "${ECHO_T}$CXX" >&6; }
5694 { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5699 test -n "$CXX" && break
5702 if test -z "$CXX"; then
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test -n "$ac_ct_CXX"; then
5714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_ac_ct_CXX="$ac_prog"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5734 if test -n "$ac_ct_CXX"; then
5735 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5736 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5738 { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5743 test -n "$ac_ct_CXX" && break
5746 if test "x$ac_ct_CXX" = x; then
5749 case $cross_compiling:$ac_tool_warned in
5751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5752 whose name does not start with the host triplet. If you think this
5753 configuration is useful to you, please write to autoconf@gnu.org." >&5
5754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5755 whose name does not start with the host triplet. If you think this
5756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5757 ac_tool_warned=yes ;;
5765 # Provide some information about the compiler.
5766 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5767 ac_compiler=`set X $ac_compile; echo $2`
5768 { (ac_try="$ac_compiler --version >&5"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler --version >&5") 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5778 { (ac_try="$ac_compiler -v >&5"
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compiler -v >&5") 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }
5788 { (ac_try="$ac_compiler -V >&5"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compiler -V >&5") 2>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }
5799 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5800 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5801 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5868 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5869 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5870 GXX=`test $ac_compiler_gnu = yes && echo yes`
5871 ac_test_CXXFLAGS=${CXXFLAGS+set}
5872 ac_save_CXXFLAGS=$CXXFLAGS
5873 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5874 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_cxx_g+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5879 ac_cxx_werror_flag=yes
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_compile") 2>conftest.er1
5906 grep -v '^ *+' conftest.er1 >conftest.err
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_try") 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 ac_cv_prog_cxx_g=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest.$ac_objext'
5977 { (case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_try") 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_try") 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_prog_cxx_g=yes
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6059 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6060 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6061 if test "$ac_test_CXXFLAGS" = set; then
6062 CXXFLAGS=$ac_save_CXXFLAGS
6063 elif test $ac_cv_prog_cxx_g = yes; then
6064 if test "$GXX" = yes; then
6070 if test "$GXX" = yes; then
6077 ac_cpp='$CPP $CPPFLAGS'
6078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082 { echo "$as_me:$LINENO: checking " >&5
6083 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6084 if test "${ac_cv_has_flex+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 for ac_prog in flex lex
6089 # Extract the first word of "$ac_prog", so it can be a program name with args.
6090 set dummy $ac_prog; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_LEX+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$LEX"; then
6097 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_LEX="$ac_prog"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 if test -n "$LEX"; then
6118 { echo "$as_me:$LINENO: result: $LEX" >&5
6119 echo "${ECHO_T}$LEX" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6126 test -n "$LEX" && break
6128 test -n "$LEX" || LEX=":"
6130 if test -z "$LEXLIB"
6132 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6133 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6134 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 ac_check_lib_save_LIBS=$LIBS
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6146 /* Override any GCC internal prototype to avoid an error.
6147 Use char because int might match the return type of a GCC
6148 builtin and then its argument prototype would still apply. */
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (ac_try="$ac_link"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_link") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } &&
6185 { ac_try='test -s conftest$ac_exeext'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_lib_fl_yywrap=yes
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6200 ac_cv_lib_fl_yywrap=no
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 LIBS=$ac_check_lib_save_LIBS
6207 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6208 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6209 if test $ac_cv_lib_fl_yywrap = yes; then
6212 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6213 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6214 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 ac_check_lib_save_LIBS=$LIBS
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6226 /* Override any GCC internal prototype to avoid an error.
6227 Use char because int might match the return type of a GCC
6228 builtin and then its argument prototype would still apply. */
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (ac_try="$ac_link"
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_link") 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_lib_l_yywrap=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ac_cv_lib_l_yywrap=no
6283 rm -f core conftest.err conftest.$ac_objext \
6284 conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6287 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6288 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6289 if test $ac_cv_lib_l_yywrap = yes; then
6297 if test "x$LEX" != "x:"; then
6298 { echo "$as_me:$LINENO: checking lex output file root" >&5
6299 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_lex_root+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 # The minimal lex program is just a single line: %%. But some broken lexes
6304 # (Solaris, I think it was) want two %% lines, so accommodate them.
6305 cat >conftest.l <<_ACEOF
6309 { (ac_try="$LEX conftest.l"
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$LEX conftest.l") 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }
6319 if test -f lex.yy.c; then
6320 ac_cv_prog_lex_root=lex.yy
6321 elif test -f lexyy.c; then
6322 ac_cv_prog_lex_root=lexyy
6324 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6325 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6326 { (exit 1); exit 1; }; }
6329 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6330 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6332 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6334 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6335 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 # POSIX says lex can declare yytext either as a pointer or an array; the
6340 # default is implementation-dependent. Figure out which it is, since
6341 # not all implementations provide the %pointer and %array declarations.
6342 ac_cv_prog_lex_yytext_pointer=no
6343 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6345 LIBS="$LIBS $LEXLIB"
6346 cat >conftest.$ac_ext <<_ACEOF
6347 `cat $LEX_OUTPUT_ROOT.c`
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_link") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_prog_lex_yytext_pointer=yes
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6394 rm -f "${LEX_OUTPUT_ROOT}.c"
6397 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define YYTEXT_POINTER 1
6410 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6411 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6412 if test "$LEX" != "flex"; then
6413 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6414 echo "$as_me: error: flex not found but required" >&2;}
6415 { (exit 1); exit 1; }; }
6421 { echo "$as_me:$LINENO: checking " >&5
6422 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6423 if test "${llvm_cv_has_bison+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 for ac_prog in 'bison -y' byacc
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_YACC+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 if test -n "$YACC"; then
6436 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_YACC="$ac_prog"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 YACC=$ac_cv_prog_YACC
6456 if test -n "$YACC"; then
6457 { echo "$as_me:$LINENO: result: $YACC" >&5
6458 echo "${ECHO_T}$YACC" >&6; }
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6465 test -n "$YACC" && break
6467 test -n "$YACC" || YACC="yacc"
6470 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6471 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6472 if test "$YACC" != "bison -y"; then
6474 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6475 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6481 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6482 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6483 if test "${lt_cv_path_NM+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 if test -n "$NM"; then
6487 # Let the user override the test.
6490 lt_nm_to_check="${ac_tool_prefix}nm"
6491 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6492 lt_nm_to_check="$lt_nm_to_check nm"
6494 for lt_tmp_nm in $lt_nm_to_check; do
6495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6498 test -z "$ac_dir" && ac_dir=.
6499 tmp_nm="$ac_dir/$lt_tmp_nm"
6500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6501 # Check to see if the nm accepts a BSD-compat flag.
6502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6503 # nm: unknown option "B" ignored
6504 # Tru64's nm complains that /dev/null is an invalid object file
6505 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6506 */dev/null* | *'Invalid file or object type'*)
6507 lt_cv_path_NM="$tmp_nm -B"
6511 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6513 lt_cv_path_NM="$tmp_nm -p"
6517 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6518 continue # so that we can try to find one that supports BSD flags
6527 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6530 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6531 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6536 { echo "$as_me:$LINENO: checking for GNU make" >&5
6537 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6538 if test "${llvm_cv_gnu_make_command+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 llvm_cv_gnu_make_command=''
6542 for a in "$MAKE" make gmake gnumake ; do
6543 if test -z "$a" ; then continue ; fi ;
6544 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6546 llvm_cv_gnu_make_command=$a ;
6551 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6552 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6553 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6557 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6558 echo "${ECHO_T}\"Not found\"" >&6; };
6562 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6563 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6565 if test "$LN_S" = "ln -s"; then
6566 { echo "$as_me:$LINENO: result: yes" >&5
6567 echo "${ECHO_T}yes" >&6; }
6569 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6570 echo "${ECHO_T}no, using $LN_S" >&6; }
6573 # Extract the first word of "cmp", so it can be a program name with args.
6574 set dummy cmp; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_CMP+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6605 if test -n "$CMP"; then
6606 { echo "$as_me:$LINENO: result: $CMP" >&5
6607 echo "${ECHO_T}$CMP" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 # Extract the first word of "cp", so it can be a program name with args.
6615 set dummy cp; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_CP+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6646 if test -n "$CP"; then
6647 { echo "$as_me:$LINENO: result: $CP" >&5
6648 echo "${ECHO_T}$CP" >&6; }
6650 { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6655 # Extract the first word of "date", so it can be a program name with args.
6656 set dummy date; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_DATE+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6686 DATE=$ac_cv_path_DATE
6687 if test -n "$DATE"; then
6688 { echo "$as_me:$LINENO: result: $DATE" >&5
6689 echo "${ECHO_T}$DATE" >&6; }
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6696 # Extract the first word of "find", so it can be a program name with args.
6697 set dummy find; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_FIND+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6727 FIND=$ac_cv_path_FIND
6728 if test -n "$FIND"; then
6729 { echo "$as_me:$LINENO: result: $FIND" >&5
6730 echo "${ECHO_T}$FIND" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 # Extract the first word of "grep", so it can be a program name with args.
6738 set dummy grep; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GREP+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6768 GREP=$ac_cv_path_GREP
6769 if test -n "$GREP"; then
6770 { echo "$as_me:$LINENO: result: $GREP" >&5
6771 echo "${ECHO_T}$GREP" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 # Extract the first word of "mkdir", so it can be a program name with args.
6779 set dummy mkdir; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_path_MKDIR+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6809 MKDIR=$ac_cv_path_MKDIR
6810 if test -n "$MKDIR"; then
6811 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6812 echo "${ECHO_T}$MKDIR" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6819 # Extract the first word of "mv", so it can be a program name with args.
6820 set dummy mv; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_MV+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6851 if test -n "$MV"; then
6852 { echo "$as_me:$LINENO: result: $MV" >&5
6853 echo "${ECHO_T}$MV" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_prog_RANLIB+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 if test -n "$RANLIB"; then
6869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 RANLIB=$ac_cv_prog_RANLIB
6889 if test -n "$RANLIB"; then
6890 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6891 echo "${ECHO_T}$RANLIB" >&6; }
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6899 if test -z "$ac_cv_prog_RANLIB"; then
6900 ac_ct_RANLIB=$RANLIB
6901 # Extract the first word of "ranlib", so it can be a program name with args.
6902 set dummy ranlib; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 if test -n "$ac_ct_RANLIB"; then
6909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_ac_ct_RANLIB="ranlib"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929 if test -n "$ac_ct_RANLIB"; then
6930 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6937 if test "x$ac_ct_RANLIB" = x; then
6940 case $cross_compiling:$ac_tool_warned in
6942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6943 whose name does not start with the host triplet. If you think this
6944 configuration is useful to you, please write to autoconf@gnu.org." >&5
6945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6946 whose name does not start with the host triplet. If you think this
6947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6948 ac_tool_warned=yes ;;
6950 RANLIB=$ac_ct_RANLIB
6953 RANLIB="$ac_cv_prog_RANLIB"
6956 # Extract the first word of "rm", so it can be a program name with args.
6957 set dummy rm; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_RM+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6988 if test -n "$RM"; then
6989 { echo "$as_me:$LINENO: result: $RM" >&5
6990 echo "${ECHO_T}$RM" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6997 # Extract the first word of "sed", so it can be a program name with args.
6998 set dummy sed; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_SED+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7029 if test -n "$SED"; then
7030 { echo "$as_me:$LINENO: result: $SED" >&5
7031 echo "${ECHO_T}$SED" >&6; }
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7038 # Extract the first word of "tar", so it can be a program name with args.
7039 set dummy tar; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_TAR+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7070 if test -n "$TAR"; then
7071 { echo "$as_me:$LINENO: result: $TAR" >&5
7072 echo "${ECHO_T}$TAR" >&6; }
7074 { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7079 # Extract the first word of "pwd", so it can be a program name with args.
7080 set dummy pwd; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_BINPWD+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7110 BINPWD=$ac_cv_path_BINPWD
7111 if test -n "$BINPWD"; then
7112 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7113 echo "${ECHO_T}$BINPWD" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7121 # Extract the first word of "Graphviz", so it can be a program name with args.
7122 set dummy Graphviz; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7152 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7153 if test -n "$GRAPHVIZ"; then
7154 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7155 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7164 cat >>confdefs.h <<\_ACEOF
7165 #define HAVE_GRAPHVIZ 1
7168 if test "$llvm_cv_os_type" = "MingW" ; then
7169 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7172 cat >>confdefs.h <<_ACEOF
7173 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7177 # Extract the first word of "dot", so it can be a program name with args.
7178 set dummy dot; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_DOT+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7209 if test -n "$DOT"; then
7210 { echo "$as_me:$LINENO: result: $DOT" >&5
7211 echo "${ECHO_T}$DOT" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7218 if test "$DOT" != "echo dot" ; then
7220 cat >>confdefs.h <<\_ACEOF
7224 if test "$llvm_cv_os_type" = "MingW" ; then
7225 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7228 cat >>confdefs.h <<_ACEOF
7229 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7233 for ac_prog in gv gsview32
7235 # Extract the first word of "$ac_prog", so it can be a program name with args.
7236 set dummy $ac_prog; ac_word=$2
7237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239 if test "${ac_cv_path_GV+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 if test -n "$GV"; then
7267 { echo "$as_me:$LINENO: result: $GV" >&5
7268 echo "${ECHO_T}$GV" >&6; }
7270 { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7275 test -n "$GV" && break
7277 test -n "$GV" || GV="echo gv"
7279 if test "$GV" != "echo gv" ; then
7281 cat >>confdefs.h <<\_ACEOF
7285 if test "$llvm_cv_os_type" = "MingW" ; then
7286 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7289 cat >>confdefs.h <<_ACEOF
7290 #define LLVM_PATH_GV "$GV${EXEEXT}"
7294 # Extract the first word of "dotty", so it can be a program name with args.
7295 set dummy dotty; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_path_DOTTY+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7325 DOTTY=$ac_cv_path_DOTTY
7326 if test -n "$DOTTY"; then
7327 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7328 echo "${ECHO_T}$DOTTY" >&6; }
7330 { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7335 if test "$DOTTY" != "echo dotty" ; then
7337 cat >>confdefs.h <<\_ACEOF
7338 #define HAVE_DOTTY 1
7341 if test "$llvm_cv_os_type" = "MingW" ; then
7342 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7345 cat >>confdefs.h <<_ACEOF
7346 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7352 # Extract the first word of "perl", so it can be a program name with args.
7353 set dummy perl; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_PERL+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7383 PERL=$ac_cv_path_PERL
7384 if test -n "$PERL"; then
7385 { echo "$as_me:$LINENO: result: $PERL" >&5
7386 echo "${ECHO_T}$PERL" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7393 if test "$PERL" != "none"; then
7394 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7395 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7396 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7397 { echo "$as_me:$LINENO: result: yes" >&5
7398 echo "${ECHO_T}yes" >&6; }
7401 { echo "$as_me:$LINENO: result: not found" >&5
7402 echo "${ECHO_T}not found" >&6; }
7407 if test x"$PERL" = xnone; then
7410 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7411 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7412 { (exit 1); exit 1; }; }
7418 # Find a good install program. We prefer a C program (faster),
7419 # so one script is as good as another. But avoid the broken or
7420 # incompatible versions:
7421 # SysV /etc/install, /usr/sbin/install
7422 # SunOS /usr/etc/install
7423 # IRIX /sbin/install
7425 # AmigaOS /C/install, which installs bootblocks on floppy discs
7426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7429 # OS/2's system install, which has a completely different semantic
7430 # ./install, which can be erroneously created by make from ./install.sh.
7431 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7432 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7433 if test -z "$INSTALL"; then
7434 if test "${ac_cv_path_install+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 # Account for people who put trailing slashes in PATH elements.
7444 ./ | .// | /cC/* | \
7445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7446 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7449 # OSF1 and SCO ODT 3.0 have their own names for install.
7450 # Don't use installbsd from OSF since it installs stuff as root
7452 for ac_prog in ginstall scoinst install; do
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7455 if test $ac_prog = install &&
7456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7457 # AIX install. It has an incompatible calling convention.
7459 elif test $ac_prog = install &&
7460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7461 # program-specific install script used by HP pwplus--don't use.
7464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7477 if test "${ac_cv_path_install+set}" = set; then
7478 INSTALL=$ac_cv_path_install
7480 # As a last resort, use the slow shell script. Don't cache a
7481 # value for INSTALL within a source directory, because that will
7482 # break other packages using the cache if that directory is
7483 # removed, or if the value is a relative name.
7484 INSTALL=$ac_install_sh
7487 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7488 echo "${ECHO_T}$INSTALL" >&6; }
7490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7491 # It thinks the first close brace ends the variable substitution.
7492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7496 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7499 # Extract the first word of "bzip2", so it can be a program name with args.
7500 set dummy bzip2; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_BZIP2+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7530 BZIP2=$ac_cv_path_BZIP2
7531 if test -n "$BZIP2"; then
7532 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7533 echo "${ECHO_T}$BZIP2" >&6; }
7535 { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7540 # Extract the first word of "doxygen", so it can be a program name with args.
7541 set dummy doxygen; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7571 DOXYGEN=$ac_cv_path_DOXYGEN
7572 if test -n "$DOXYGEN"; then
7573 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7574 echo "${ECHO_T}$DOXYGEN" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 # Extract the first word of "groff", so it can be a program name with args.
7582 set dummy groff; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GROFF+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7612 GROFF=$ac_cv_path_GROFF
7613 if test -n "$GROFF"; then
7614 { echo "$as_me:$LINENO: result: $GROFF" >&5
7615 echo "${ECHO_T}$GROFF" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 # Extract the first word of "gzip", so it can be a program name with args.
7623 set dummy gzip; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_GZIP+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7653 GZIP=$ac_cv_path_GZIP
7654 if test -n "$GZIP"; then
7655 { echo "$as_me:$LINENO: result: $GZIP" >&5
7656 echo "${ECHO_T}$GZIP" >&6; }
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7663 # Extract the first word of "pod2html", so it can be a program name with args.
7664 set dummy pod2html; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_POD2HTML+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7694 POD2HTML=$ac_cv_path_POD2HTML
7695 if test -n "$POD2HTML"; then
7696 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7697 echo "${ECHO_T}$POD2HTML" >&6; }
7699 { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7704 # Extract the first word of "pod2man", so it can be a program name with args.
7705 set dummy pod2man; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_POD2MAN+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7735 POD2MAN=$ac_cv_path_POD2MAN
7736 if test -n "$POD2MAN"; then
7737 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7738 echo "${ECHO_T}$POD2MAN" >&6; }
7740 { echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6; }
7745 # Extract the first word of "runtest", so it can be a program name with args.
7746 set dummy runtest; ac_word=$2
7747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749 if test "${ac_cv_path_RUNTEST+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7776 RUNTEST=$ac_cv_path_RUNTEST
7777 if test -n "$RUNTEST"; then
7778 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7779 echo "${ECHO_T}$RUNTEST" >&6; }
7781 { echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6; }
7788 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7789 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7791 # Check whether --with-tclinclude was given.
7792 if test "${with_tclinclude+set}" = set; then
7793 withval=$with_tclinclude; with_tclinclude=${withval}
7798 if test "${ac_cv_path_tclsh+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 if test x"${with_tclinclude}" != x ; then
7803 if test -f ${with_tclinclude}/tclsh ; then
7804 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7805 elif test -f ${with_tclinclude}/src/tclsh ; then
7806 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7808 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7809 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7810 { (exit 1); exit 1; }; }
7814 if test x"${ac_cv_path_tclsh}" = x ; then
7815 { echo "$as_me:$LINENO: result: none" >&5
7816 echo "${ECHO_T}none" >&6; }
7817 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
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823 if test "${ac_cv_path_TCLSH+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 TCLSH=$ac_cv_path_TCLSH
7850 if test -n "$TCLSH"; then
7851 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7852 echo "${ECHO_T}$TCLSH" >&6; }
7854 { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7859 test -n "$TCLSH" && break
7862 if test x"${TCLSH}" = x ; then
7863 ac_cv_path_tclsh='';
7865 ac_cv_path_tclsh="${TCLSH}";
7868 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7869 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7870 TCLSH="${ac_cv_path_tclsh}"
7876 # Extract the first word of "zip", so it can be a program name with args.
7877 set dummy zip; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_ZIP+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7908 if test -n "$ZIP"; then
7909 { echo "$as_me:$LINENO: result: $ZIP" >&5
7910 echo "${ECHO_T}$ZIP" >&6; }
7912 { echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6; }
7917 # Extract the first word of "ocamlc", so it can be a program name with args.
7918 set dummy ocamlc; ac_word=$2
7919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7921 if test "${ac_cv_path_OCAMLC+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7948 OCAMLC=$ac_cv_path_OCAMLC
7949 if test -n "$OCAMLC"; then
7950 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7951 echo "${ECHO_T}$OCAMLC" >&6; }
7953 { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7958 # Extract the first word of "ocamlopt", so it can be a program name with args.
7959 set dummy ocamlopt; ac_word=$2
7960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7989 OCAMLOPT=$ac_cv_path_OCAMLOPT
7990 if test -n "$OCAMLOPT"; then
7991 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7992 echo "${ECHO_T}$OCAMLOPT" >&6; }
7994 { echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6; }
7999 # Extract the first word of "ocamldep", so it can be a program name with args.
8000 set dummy ocamldep; ac_word=$2
8001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8030 OCAMLDEP=$ac_cv_path_OCAMLDEP
8031 if test -n "$OCAMLDEP"; then
8032 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8033 echo "${ECHO_T}$OCAMLDEP" >&6; }
8035 { echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6; }
8041 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8042 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8043 if test "${llvm_cv_link_use_r+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 ac_cpp='$CPP $CPPFLAGS'
8048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8053 CFLAGS="$CFLAGS -Wl,-R."
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8064 int main() { return 0; }
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8103 llvm_cv_link_use_r=yes
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8108 llvm_cv_link_use_r=no
8111 rm -f core conftest.err conftest.$ac_objext \
8112 conftest$ac_exeext conftest.$ac_ext
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8123 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8124 if test "$llvm_cv_link_use_r" = yes ; then
8126 cat >>confdefs.h <<\_ACEOF
8127 #define HAVE_LINK_R 1
8135 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8136 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8137 if test "${ac_cv_c_const+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8150 /* FIXME: Include the comments suggested by Paul. */
8152 /* Ultrix mips cc rejects this. */
8153 typedef int charset[2];
8155 /* SunOS 4.1.1 cc rejects this. */
8156 char const *const *ccp;
8158 /* NEC SVR4.0.2 mips cc rejects this. */
8159 struct point {int x, y;};
8160 static struct point const zero = {0,0};
8161 /* AIX XL C 1.02.0.0 rejects this.
8162 It does not let you subtract one const X* pointer from another in
8163 an arm of an if-expression whose if-part is not a constant
8165 const char *g = "string";
8166 ccp = &g + (g ? g-g : 0);
8167 /* HPUX 7.0 cc rejects these. */
8170 ccp = (char const *const *) p;
8171 { /* SCO 3.2v4 cc rejects this. */
8173 char const *s = 0 ? (char *) 0 : (char const *) 0;
8178 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8180 const int *foo = &x[0];
8183 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8184 typedef const int *iptr;
8188 { /* AIX XL C 1.02.0.0 rejects this saying
8189 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8190 struct s { int j; const int *ap[3]; };
8191 struct s *b; b->j = 5;
8193 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8197 return !x[0] && !zero.x;
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1 >conftest.err
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest.$ac_objext'
8229 { (case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_try") 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8249 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8250 if test $ac_cv_c_const = no; then
8252 cat >>confdefs.h <<\_ACEOF
8264 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8265 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8266 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8267 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <sys/types.h>
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 eval "$as_ac_Header=yes"
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 eval "$as_ac_Header=no"
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 ac_res=`eval echo '${'$as_ac_Header'}'`
8334 { echo "$as_me:$LINENO: result: $ac_res" >&5
8335 echo "${ECHO_T}$ac_res" >&6; }
8336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8337 cat >>confdefs.h <<_ACEOF
8338 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8341 ac_header_dirent=$ac_hdr; break
8345 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8346 if test $ac_header_dirent = dirent.h; then
8347 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8348 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8349 if test "${ac_cv_search_opendir+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 ac_func_search_save_LIBS=$LIBS
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8360 /* Override any GCC internal prototype to avoid an error.
8361 Use char because int might match the return type of a GCC
8362 builtin and then its argument prototype would still apply. */
8375 for ac_lib in '' dir; do
8376 if test -z "$ac_lib"; then
8377 ac_res="none required"
8380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (ac_try="$ac_link"
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_link") 2>conftest.er1
8391 grep -v '^ *+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest$ac_exeext'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_search_opendir=$ac_res
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8424 rm -f core conftest.err conftest.$ac_objext \
8426 if test "${ac_cv_search_opendir+set}" = set; then
8430 if test "${ac_cv_search_opendir+set}" = set; then
8433 ac_cv_search_opendir=no
8436 LIBS=$ac_func_search_save_LIBS
8438 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8439 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8440 ac_res=$ac_cv_search_opendir
8441 if test "$ac_res" != no; then
8442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8447 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8449 if test "${ac_cv_search_opendir+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 ac_func_search_save_LIBS=$LIBS
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8460 /* Override any GCC internal prototype to avoid an error.
8461 Use char because int might match the return type of a GCC
8462 builtin and then its argument prototype would still apply. */
8475 for ac_lib in '' x; do
8476 if test -z "$ac_lib"; then
8477 ac_res="none required"
8480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (ac_try="$ac_link"
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_link") 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (case "(($ac_try" in
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_try") 2>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_search_opendir=$ac_res
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8524 rm -f core conftest.err conftest.$ac_objext \
8526 if test "${ac_cv_search_opendir+set}" = set; then
8530 if test "${ac_cv_search_opendir+set}" = set; then
8533 ac_cv_search_opendir=no
8536 LIBS=$ac_func_search_save_LIBS
8538 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8539 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8540 ac_res=$ac_cv_search_opendir
8541 if test "$ac_res" != no; then
8542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8549 for ac_header in dlfcn.h
8551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 ac_res=`eval echo '${'$as_ac_Header'}'`
8559 { echo "$as_me:$LINENO: result: $ac_res" >&5
8560 echo "${ECHO_T}$ac_res" >&6; }
8562 # Is the header compilable?
8563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #include <$ac_header>
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_try") 2>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_header_compiler=yes
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_header_compiler=no
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6; }
8620 # Is the header present?
8621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 #include <$ac_header>
8631 if { (ac_try="$ac_cpp conftest.$ac_ext"
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8639 grep -v '^ *+' conftest.er1 >conftest.err
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } >/dev/null; then
8644 if test -s conftest.err; then
8645 ac_cpp_err=$ac_c_preproc_warn_flag
8646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8653 if test -z "$ac_cpp_err"; then
8654 ac_header_preproc=yes
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_header_preproc=no
8662 rm -f conftest.err conftest.$ac_ext
8663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8664 echo "${ECHO_T}$ac_header_preproc" >&6; }
8666 # So? What about this header?
8667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8673 ac_header_preproc=yes
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8689 ## ----------------------------------- ##
8690 ## Report this to llvmbugs@cs.uiuc.edu ##
8691 ## ----------------------------------- ##
8693 ) | sed "s/^/$as_me: WARNING: /" >&2
8696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 eval "$as_ac_Header=\$ac_header_preproc"
8703 ac_res=`eval echo '${'$as_ac_Header'}'`
8704 { echo "$as_me:$LINENO: result: $ac_res" >&5
8705 echo "${ECHO_T}$ac_res" >&6; }
8708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8709 cat >>confdefs.h <<_ACEOF
8710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717 # Check whether --enable-ltdl-install was given.
8718 if test "${enable_ltdl_install+set}" = set; then
8719 enableval=$enable_ltdl_install;
8725 if test x"${enable_ltdl_install-no}" != xno; then
8727 INSTALL_LTDL_FALSE='#'
8729 INSTALL_LTDL_TRUE='#'
8735 if test x"${enable_ltdl_convenience-no}" != xno; then
8736 CONVENIENCE_LTDL_TRUE=
8737 CONVENIENCE_LTDL_FALSE='#'
8739 CONVENIENCE_LTDL_TRUE='#'
8740 CONVENIENCE_LTDL_FALSE=
8744 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8745 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8747 libname_spec='lib$name'
8755 shlibpath_overrides_runpath=unknown
8757 dynamic_linker="$host_os ld.so"
8758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8759 if test "$GCC" = yes; then
8760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8762 # if the path contains ";" then we assume it to be the separator
8763 # otherwise default to the standard path separator (i.e. ":") - it is
8764 # assumed that no part of a normal pathname contains ";" but that should
8765 # okay in the real world where ";" in dirpaths is itself problematic.
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8773 need_lib_prefix=unknown
8774 hardcode_into_libs=no
8776 # when you set need_version to no, make sure it does not cause -set_version
8777 # flags to be left without arguments
8778 need_version=unknown
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8784 shlibpath_var=LIBPATH
8786 # AIX 3 has no versioning support, so we append a major version to the name.
8787 soname_spec='${libname}${release}${shared_ext}$major'
8794 hardcode_into_libs=yes
8795 if test "$host_cpu" = ia64; then
8796 # AIX 5 supports IA64
8797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8798 shlibpath_var=LD_LIBRARY_PATH
8800 # With GCC up to 2.95.x, collect2 would create an import file
8801 # for dependence libraries. The import file would start with
8802 # the line `#! .'. This would cause the generated library to
8803 # depend on `.', always an invalid library. This was fixed in
8804 # development snapshots of GCC prior to 3.0.
8806 aix4 | aix4.[01] | aix4.[01].*)
8807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8809 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8817 # soname into executable. Probably we can add versioning support to
8818 # collect2, so additional links can be useful in future.
8819 if test "$aix_use_runtimelinking" = yes; then
8820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8821 # instead of lib<name>.a to let people know that these are not
8822 # typical AIX shared libraries.
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 # We preserve .a as extension for shared libraries through AIX4.2
8826 # and later when we are not doing run time linking.
8827 library_names_spec='${libname}${release}.a $libname.a'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8830 shlibpath_var=LIBPATH
8835 library_names_spec='$libname.ixlibrary $libname.a'
8836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8837 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'
8841 library_names_spec='${libname}${shared_ext}'
8842 dynamic_linker="$host_os ld.so"
8843 shlibpath_var=LIBRARY_PATH
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8855 # the default ld.so.conf also contains /usr/contrib/lib and
8856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8857 # libtool to hard-code these into programs
8860 cygwin* | mingw* | pw32*)
8861 version_type=windows
8866 case $GCC,$host_os in
8867 yes,cygwin* | yes,mingw* | yes,pw32*)
8868 library_names_spec='$libname.dll.a'
8869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8870 postinstall_cmds='base_file=`basename \${file}`~
8871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8872 dldir=$destdir/`dirname \$dlpath`~
8873 test -d \$dldir || mkdir -p \$dldir~
8874 $install_prog $dir/$dlname \$dldir/$dlname~
8875 chmod a+x \$dldir/$dlname'
8876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8877 dlpath=$dir/\$dldll~
8879 shlibpath_overrides_runpath=yes
8883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8885 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8888 # MinGW DLLs use traditional 'lib' prefix
8889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8892 # It is most probably a Windows format PATH printed by
8893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8894 # path with ; separators, and with drive letters. We can handle the
8895 # drive letters (cygwin fileutils understands them), so leave them,
8896 # especially as we might pass files found there to a mingw objdump,
8897 # which wouldn't understand a cygwinified path. Ahh.
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8904 # pw32 DLLs use 'pw' prefix rather than 'lib'
8905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8914 dynamic_linker='Win32 ld.exe'
8915 # FIXME: first we should search . and the directory the executable is in
8919 darwin* | rhapsody*)
8920 dynamic_linker="$host_os dyld"
8924 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8925 soname_spec='${libname}${release}${major}$shared_ext'
8926 shlibpath_overrides_runpath=yes
8927 shlibpath_var=DYLD_LIBRARY_PATH
8928 shrext_cmds='.dylib'
8929 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8930 if test "$GCC" = yes; then
8931 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"`
8933 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/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 shlibpath_var=LD_LIBRARY_PATH
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=no
8959 hardcode_into_libs=yes
8960 dynamic_linker='GNU ld.so'
8963 freebsd* | dragonfly*)
8964 # DragonFly does not have aout. When/if they implement a new
8965 # versioning mechanism, adjust this.
8966 if test -x /usr/bin/objformat; then
8967 objformat=`/usr/bin/objformat`
8970 freebsd[123]*) objformat=aout ;;
8974 version_type=freebsd-$objformat
8975 case $version_type in
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8986 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=yes
8991 freebsd3.[01]* | freebsdelf3.[01]*)
8992 shlibpath_overrides_runpath=yes
8993 hardcode_into_libs=yes
8995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8997 shlibpath_overrides_runpath=no
8998 hardcode_into_libs=yes
9000 freebsd*) # from 4.6 on
9001 shlibpath_overrides_runpath=yes
9002 hardcode_into_libs=yes
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 hardcode_into_libs=yes
9017 hpux9* | hpux10* | hpux11*)
9018 # Give a soname corresponding to the major version so that dld.sl refuses to
9019 # link against other versions.
9026 hardcode_into_libs=yes
9027 dynamic_linker="$host_os dld.so"
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 if test "X$HPUX_IA64_MODE" = X32; then
9033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9041 hardcode_into_libs=yes
9042 dynamic_linker="$host_os dld.sl"
9043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9052 dynamic_linker="$host_os dld.sl"
9053 shlibpath_var=SHLIB_PATH
9054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9060 postinstall_cmds='chmod 555 $lib'
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=no
9072 hardcode_into_libs=yes
9075 irix5* | irix6* | nonstopux*)
9077 nonstopux*) version_type=nonstopux ;;
9079 if test "$lt_cv_prog_gnu_ld" = yes; then
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9090 irix5* | nonstopux*)
9094 case $LD in # libtool.m4 will add one of these switches to LD
9095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9096 libsuff= shlibsuff= libmagic=32-bit;;
9097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9098 libsuff=32 shlibsuff=N32 libmagic=N32;;
9099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9101 *) libsuff= shlibsuff= libmagic=never-match;;
9105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9106 shlibpath_overrides_runpath=no
9107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9109 hardcode_into_libs=yes
9112 # No shared lib support for Linux oldld, aout, or coff.
9113 linux*oldld* | linux*aout* | linux*coff*)
9117 # This must be Linux ELF.
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=no
9127 # This implies no fast_install, which is unacceptable.
9128 # Some rework will be needed to allow for fast_install
9129 # before this can be enabled.
9130 hardcode_into_libs=yes
9132 # Append ld.so.conf contents to the search path
9133 if test -f /etc/ld.so.conf; then
9134 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' ' '`
9135 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9138 # We used to test for /lib/ld.so.1 and disable shared libraries on
9139 # powerpc, because MkLinux only supported shared libraries with the
9140 # GNU dynamic linker. Since this was broken with cross compilers,
9141 # most powerpc-linux boxes support dynamic linking these days and
9142 # people can always --disable-shared, the test was removed, and we
9143 # assume the GNU/Linux dynamic linker is in use.
9144 dynamic_linker='GNU/Linux ld.so'
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=no
9155 hardcode_into_libs=yes
9156 dynamic_linker='GNU ld.so'
9163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9166 dynamic_linker='NetBSD (a.out) ld.so'
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 dynamic_linker='NetBSD ld.elf_so'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 shlibpath_overrides_runpath=yes
9174 hardcode_into_libs=yes
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9196 sys_lib_dlsearch_path_spec="/usr/lib"
9198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9201 *) need_version=no ;;
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208 openbsd2.[89] | openbsd2.[89].*)
9209 shlibpath_overrides_runpath=no
9212 shlibpath_overrides_runpath=yes
9216 shlibpath_overrides_runpath=yes
9221 libname_spec='$name'
9224 library_names_spec='$libname${shared_ext} $libname.a'
9225 dynamic_linker='OS/2 ld.exe'
9226 shlibpath_var=LIBPATH
9229 osf3* | osf4* | osf5*)
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 shlibpath_overrides_runpath=yes
9248 hardcode_into_libs=yes
9249 # ldd complains unless libraries are executable
9250 postinstall_cmds='chmod +x $lib'
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9259 if test "$with_gnu_ld" = yes; then
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 case $host_vendor in
9272 shlibpath_overrides_runpath=no
9274 export_dynamic_flag_spec='${wl}-Blargedynsym'
9275 runpath_var=LD_RUN_PATH
9283 shlibpath_overrides_runpath=no
9284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9290 if test -d /usr/nec ;then
9292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9293 soname_spec='$libname${shared_ext}.$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9299 version_type=freebsd-elf
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 hardcode_into_libs=yes
9306 if test "$with_gnu_ld" = yes; then
9307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9308 shlibpath_overrides_runpath=no
9310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9311 shlibpath_overrides_runpath=yes
9314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9318 sys_lib_dlsearch_path_spec='/usr/lib'
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9332 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9333 echo "${ECHO_T}$dynamic_linker" >&6; }
9334 test "$dynamic_linker" = no && can_build_shared=no
9336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9337 if test "$GCC" = yes; then
9338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9342 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9343 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9344 if test "${libltdl_cv_shlibext+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 eval libltdl_cv_shlibext=$shrext_cmds
9352 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9353 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9354 if test -n "$libltdl_cv_shlibext"; then
9356 cat >>confdefs.h <<_ACEOF
9357 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9363 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9364 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9365 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 libltdl_cv_shlibpath_var="$shlibpath_var"
9370 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9371 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9372 if test -n "$libltdl_cv_shlibpath_var"; then
9374 cat >>confdefs.h <<_ACEOF
9375 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9381 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9382 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9383 if test "${libltdl_cv_sys_search_path+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9388 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9389 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9390 if test -n "$libltdl_cv_sys_search_path"; then
9392 for dir in $libltdl_cv_sys_search_path; do
9393 if test -z "$sys_search_path"; then
9394 sys_search_path="$dir"
9396 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9400 cat >>confdefs.h <<_ACEOF
9401 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9406 { echo "$as_me:$LINENO: checking for objdir" >&5
9407 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9408 if test "${libltdl_cv_objdir+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 libltdl_cv_objdir="$objdir"
9412 if test -n "$objdir"; then
9415 rm -f .libs 2>/dev/null
9416 mkdir .libs 2>/dev/null
9417 if test -d .libs; then
9418 libltdl_cv_objdir=.libs
9420 # MS-DOS does not allow filenames that begin with a dot.
9421 libltdl_cv_objdir=_libs
9423 rmdir .libs 2>/dev/null
9427 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9428 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9430 cat >>confdefs.h <<_ACEOF
9431 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9439 # Check for command to grab the raw symbol name followed by C symbol from nm.
9440 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9441 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9442 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 # These are sane defaults that work on at least a few old systems.
9447 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9449 # Character class describing NM global symbol codes.
9450 symcode='[BCDEGRST]'
9452 # Regexp to match symbols that can be accessed directly from C.
9453 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9455 # Transform an extracted symbol line into a proper C declaration
9456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9458 # Transform an extracted symbol line into symbol name and symbol address
9459 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'"
9461 # Define system-specific variables.
9466 cygwin* | mingw* | pw32*)
9467 symcode='[ABCDGISTW]'
9469 hpux*) # Its linker distinguishes data from code symbols
9470 if test "$host_cpu" = ia64; then
9471 symcode='[ABCDEGRST]'
9473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9474 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'"
9477 if test "$host_cpu" = ia64; then
9478 symcode='[ABCDGIRSTW]'
9479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9480 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'"
9484 symcode='[BCDEGRST]'
9487 symcode='[BCDEGQRST]'
9498 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9506 # Handle CRLF in mingw tool chain
9510 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9514 # If we're using GNU nm, then use its standard symbol codes.
9515 case `$NM -V 2>&1` in
9516 *GNU* | *'with BFD'*)
9517 symcode='[ABCDGIRSTW]' ;;
9520 # Try without a prefix undercore, then with it.
9521 for ac_symprfx in "" "_"; do
9523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9524 symxfrm="\\1 $ac_symprfx\\2 \\2"
9526 # Write the raw and C identifiers.
9527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9529 # Check to see that the pipe works correctly.
9533 cat > conftest.$ac_ext <<EOF
9538 void nm_test_func(){}
9542 int main(){nm_test_var='a';nm_test_func();return(0);}
9545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546 (eval $ac_compile) 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; then
9550 # Now try to grab the symbols.
9552 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && test -s "$nlist"; then
9557 # Try sorting and uniquifying the output.
9558 if sort "$nlist" | uniq > "$nlist"T; then
9559 mv -f "$nlist"T "$nlist"
9564 # Make sure that we snagged all the symbols we need.
9565 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9566 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9567 cat <<EOF > conftest.$ac_ext
9573 # Now generate the symbol file.
9574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9576 cat <<EOF >> conftest.$ac_ext
9577 #if defined (__STDC__) && __STDC__
9578 # define lt_ptr_t void *
9580 # define lt_ptr_t char *
9584 /* The mapping between symbol names and symbols. */
9589 lt_preloaded_symbols[] =
9592 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9593 cat <<\EOF >> conftest.$ac_ext
9601 # Now try linking the two files.
9602 mv conftest.$ac_objext conftstm.$ac_objext
9603 lt_save_LIBS="$LIBS"
9604 lt_save_CFLAGS="$CFLAGS"
9605 LIBS="conftstm.$ac_objext"
9606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9614 LIBS="$lt_save_LIBS"
9615 CFLAGS="$lt_save_CFLAGS"
9617 echo "cannot find nm_test_func in $nlist" >&5
9620 echo "cannot find nm_test_var in $nlist" >&5
9623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9626 echo "$progname: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9629 rm -f conftest* conftst*
9631 # Do not use the global_symbol_pipe unless it works.
9632 if test "$pipe_works" = yes; then
9635 lt_cv_sys_global_symbol_pipe=
9641 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9642 lt_cv_sys_global_symbol_to_cdecl=
9644 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9645 { echo "$as_me:$LINENO: result: failed" >&5
9646 echo "${ECHO_T}failed" >&6; }
9648 { echo "$as_me:$LINENO: result: ok" >&5
9649 echo "${ECHO_T}ok" >&6; }
9653 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9654 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9655 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9659 libltdl_cv_preloaded_symbols=yes
9661 libltdl_cv_preloaded_symbols=no
9665 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9666 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9667 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9669 cat >>confdefs.h <<\_ACEOF
9670 #define HAVE_PRELOADED_SYMBOLS 1
9678 ac_cpp='$CPP $CPPFLAGS'
9679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9684 { echo "$as_me:$LINENO: checking for shl_load" >&5
9685 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9686 if test "${ac_cv_func_shl_load+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697 #define shl_load innocuous_shl_load
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char shl_load (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9705 # include <limits.h>
9707 # include <assert.h>
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined __stub_shl_load || defined __stub___shl_load
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_try") 2>&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_func_shl_load=yes
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_cv_func_shl_load=no
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9779 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9780 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9781 if test $ac_cv_func_shl_load = yes; then
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_SHL_LOAD 1
9788 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9789 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 ac_check_lib_save_LIBS=$LIBS
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9802 /* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_lib_dld_shl_load=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_cv_lib_dld_shl_load=no
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9864 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9865 if test $ac_cv_lib_dld_shl_load = yes; then
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_SHL_LOAD 1
9871 LIBADD_DL="$LIBADD_DL -ldld"
9873 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 ac_check_lib_save_LIBS=$LIBS
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9887 /* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_lib_dl_dlopen=yes
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 ac_cv_lib_dl_dlopen=no
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9950 if test $ac_cv_lib_dl_dlopen = yes; then
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_LIBDL 1
9956 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_try") 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10011 cat >>confdefs.h <<\_ACEOF
10012 #define HAVE_LIBDL 1
10014 libltdl_cv_func_dlopen="yes"
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10020 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10021 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-lsvld $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_try") 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 ac_cv_lib_svld_dlopen=yes
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_cv_lib_svld_dlopen=no
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10094 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10096 if test $ac_cv_lib_svld_dlopen = yes; then
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_LIBDL 1
10102 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10104 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 ac_check_lib_save_LIBS=$LIBS
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10128 return dld_link ();
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_dld_dld_link=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_cv_lib_dld_dld_link=no
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10180 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10181 if test $ac_cv_lib_dld_dld_link = yes; then
10183 cat >>confdefs.h <<\_ACEOF
10187 LIBADD_DL="$LIBADD_DL -ldld"
10189 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10190 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10191 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 cat >conftest.$ac_ext <<_ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10202 #define _dyld_func_lookup innocuous__dyld_func_lookup
10204 /* System header to define __stub macros and hopefully few prototypes,
10205 which can conflict with char _dyld_func_lookup (); below.
10206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207 <limits.h> exists even on freestanding compilers. */
10210 # include <limits.h>
10212 # include <assert.h>
10215 #undef _dyld_func_lookup
10217 /* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10223 char _dyld_func_lookup ();
10224 /* The GNU C library defines this for functions which it implements
10225 to always fail with ENOSYS. Some functions are actually named
10226 something starting with __ and the normal name is an alias. */
10227 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10234 return _dyld_func_lookup ();
10239 rm -f conftest.$ac_objext conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_link") 2>conftest.er1
10248 grep -v '^ *+' conftest.er1 >conftest.err
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_func__dyld_func_lookup=yes
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_cv_func__dyld_func_lookup=no
10281 rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10284 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10285 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10286 if test $ac_cv_func__dyld_func_lookup = yes; then
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_DYLD 1
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10315 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10317 lt_save_LIBS="$LIBS"
10318 LIBS="$LIBS $LIBADD_DL"
10320 for ac_func in dlerror
10322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10336 #define $ac_func innocuous_$ac_func
10338 /* System header to define __stub macros and hopefully few prototypes,
10339 which can conflict with char $ac_func (); below.
10340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341 <limits.h> exists even on freestanding compilers. */
10344 # include <limits.h>
10346 # include <assert.h>
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10358 /* The GNU C library defines this for functions which it implements
10359 to always fail with ENOSYS. Some functions are actually named
10360 something starting with __ and the normal name is an alias. */
10361 #if defined __stub_$ac_func || defined __stub___$ac_func
10368 return $ac_func ();
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (ac_try="$ac_link"
10375 case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_link") 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_try") 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 eval "$as_ac_var=yes"
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 eval "$as_ac_var=no"
10415 rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10418 ac_res=`eval echo '${'$as_ac_var'}'`
10419 { echo "$as_me:$LINENO: result: $ac_res" >&5
10420 echo "${ECHO_T}$ac_res" >&6; }
10421 if test `eval echo '${'$as_ac_var'}'` = yes; then
10422 cat >>confdefs.h <<_ACEOF
10423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10429 LIBS="$lt_save_LIBS"
10432 ac_cpp='$CPP $CPPFLAGS'
10433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10439 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10440 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10441 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 ac_cv_sys_symbol_underscore=no
10445 cat > conftest.$ac_ext <<EOF
10446 void nm_test_func(){}
10447 int main(){nm_test_func;return 0;}
10449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450 (eval $ac_compile) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; then
10454 # Now try to grab the symbols.
10455 ac_nlist=conftest.nm
10456 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10457 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && test -s "$ac_nlist"; then
10461 # See whether the symbols have a leading underscore.
10462 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10463 ac_cv_sys_symbol_underscore=yes
10465 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10468 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10472 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10475 echo "configure: failed program was:" >&5
10481 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10482 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10485 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10486 if test x"$libltdl_cv_func_dlopen" = xyes ||
10487 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10488 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10489 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10490 if test "${libltdl_cv_need_uscore+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 libltdl_cv_need_uscore=unknown
10495 LIBS="$LIBS $LIBADD_DL"
10496 if test "$cross_compiling" = yes; then :
10497 libltdl_cv_need_uscore=cross
10499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10500 lt_status=$lt_dlunknown
10501 cat > conftest.$ac_ext <<EOF
10502 #line 10502 "configure"
10503 #include "confdefs.h"
10512 # define LT_DLGLOBAL RTLD_GLOBAL
10515 # define LT_DLGLOBAL DL_GLOBAL
10517 # define LT_DLGLOBAL 0
10521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10522 find out it does not work in some platform. */
10523 #ifndef LT_DLLAZY_OR_NOW
10525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10528 # define LT_DLLAZY_OR_NOW DL_LAZY
10531 # define LT_DLLAZY_OR_NOW RTLD_NOW
10534 # define LT_DLLAZY_OR_NOW DL_NOW
10536 # define LT_DLLAZY_OR_NOW 0
10544 extern "C" void exit (int);
10547 void fnord() { int i=42;}
10550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10551 int status = $lt_dlunknown;
10555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10557 /* dlclose (self); */
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10570 (./conftest; exit; ) >&5 2>/dev/null
10572 case x$lt_status in
10573 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10574 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10575 x$lt_dlunknown|x*) ;;
10578 # compilation failed
10587 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10588 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10592 if test x"$libltdl_cv_need_uscore" = xyes; then
10594 cat >>confdefs.h <<\_ACEOF
10595 #define NEED_USCORE 1
10601 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10602 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10603 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 # PORTME does your system automatically load deplibs for dlopen?
10607 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10608 # For now, we just catch OSes we know something about -- in the
10609 # future, we'll try test this programmatically.
10610 libltdl_cv_sys_dlopen_deplibs=unknown
10612 aix3*|aix4.1.*|aix4.2.*)
10613 # Unknown whether this is true for these versions of AIX, but
10614 # we want this `case' here to explicitly catch those versions.
10615 libltdl_cv_sys_dlopen_deplibs=unknown
10618 libltdl_cv_sys_dlopen_deplibs=yes
10621 # Assuming the user has installed a libdl from somewhere, this is true
10622 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10623 libltdl_cv_sys_dlopen_deplibs=yes
10625 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10626 # GNU and its variants, using gnu ld.so (Glibc)
10627 libltdl_cv_sys_dlopen_deplibs=yes
10630 libltdl_cv_sys_dlopen_deplibs=yes
10633 libltdl_cv_sys_dlopen_deplibs=yes
10635 irix[12345]*|irix6.[01]*)
10636 # Catch all versions of IRIX before 6.2, and indicate that we don't
10637 # know how it worked for any of those versions.
10638 libltdl_cv_sys_dlopen_deplibs=unknown
10641 # The case above catches anything before 6.2, and it's known that
10642 # at 6.2 and later dlopen does load deplibs.
10643 libltdl_cv_sys_dlopen_deplibs=yes
10646 libltdl_cv_sys_dlopen_deplibs=yes
10649 libltdl_cv_sys_dlopen_deplibs=yes
10652 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10653 # it did *not* use an RPATH in a shared library to find objects the
10654 # library depends on, so we explictly say `no'.
10655 libltdl_cv_sys_dlopen_deplibs=no
10657 osf5.0|osf5.0a|osf5.1)
10658 # dlopen *does* load deplibs and with the right loader patch applied
10659 # it even uses RPATH in a shared library to search for shared objects
10660 # that the library depends on, but there's no easy way to know if that
10661 # patch is installed. Since this is the case, all we can really
10662 # say is unknown -- it depends on the patch being installed. If
10663 # it is, this changes to `yes'. Without it, it would be `no'.
10664 libltdl_cv_sys_dlopen_deplibs=unknown
10667 # the two cases above should catch all versions of osf <= 5.1. Read
10668 # the comments above for what we know about them.
10669 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10670 # is used to find them so we can finally say `yes'.
10671 libltdl_cv_sys_dlopen_deplibs=yes
10674 libltdl_cv_sys_dlopen_deplibs=yes
10676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10677 libltdl_cv_sys_dlopen_deplibs=yes
10682 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10683 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10684 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10686 cat >>confdefs.h <<\_ACEOF
10687 #define LTDL_DLOPEN_DEPLIBS 1
10693 for ac_header in argz.h
10695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 ac_res=`eval echo '${'$as_ac_Header'}'`
10703 { echo "$as_me:$LINENO: result: $ac_res" >&5
10704 echo "${ECHO_T}$ac_res" >&6; }
10706 # Is the header compilable?
10707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10716 #include <$ac_header>
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_compile") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10733 { (case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_try") 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_try") 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 ac_header_compiler=yes
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10757 ac_header_compiler=no
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10762 echo "${ECHO_T}$ac_header_compiler" >&6; }
10764 # Is the header present?
10765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10767 cat >conftest.$ac_ext <<_ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 #include <$ac_header>
10775 if { (ac_try="$ac_cpp conftest.$ac_ext"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } >/dev/null; then
10788 if test -s conftest.err; then
10789 ac_cpp_err=$ac_c_preproc_warn_flag
10790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10797 if test -z "$ac_cpp_err"; then
10798 ac_header_preproc=yes
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_header_preproc=no
10806 rm -f conftest.err conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 echo "${ECHO_T}$ac_header_preproc" >&6; }
10810 # So? What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10833 ## ----------------------------------- ##
10834 ## Report this to llvmbugs@cs.uiuc.edu ##
10835 ## ----------------------------------- ##
10837 ) | sed "s/^/$as_me: WARNING: /" >&2
10840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 eval "$as_ac_Header=\$ac_header_preproc"
10847 ac_res=`eval echo '${'$as_ac_Header'}'`
10848 { echo "$as_me:$LINENO: result: $ac_res" >&5
10849 echo "${ECHO_T}$ac_res" >&6; }
10852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10853 cat >>confdefs.h <<_ACEOF
10854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862 { echo "$as_me:$LINENO: checking for error_t" >&5
10863 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10864 if test "${ac_cv_type_error_t+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10877 typedef error_t ac__type_new_;
10881 if ((ac__type_new_ *) 0)
10883 if (sizeof (ac__type_new_))
10889 rm -f conftest.$ac_objext
10890 if { (ac_try="$ac_compile"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_try") 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_type_error_t=yes
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_cv_type_error_t=no
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10934 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10935 if test $ac_cv_type_error_t = yes; then
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_ERROR_T 1
10944 cat >>confdefs.h <<\_ACEOF
10945 #define error_t int
10956 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10972 #define $ac_func innocuous_$ac_func
10974 /* System header to define __stub macros and hopefully few prototypes,
10975 which can conflict with char $ac_func (); below.
10976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10977 <limits.h> exists even on freestanding compilers. */
10980 # include <limits.h>
10982 # include <assert.h>
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10994 /* The GNU C library defines this for functions which it implements
10995 to always fail with ENOSYS. Some functions are actually named
10996 something starting with __ and the normal name is an alias. */
10997 #if defined __stub_$ac_func || defined __stub___$ac_func
11004 return $ac_func ();
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_try") 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 eval "$as_ac_var=yes"
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 eval "$as_ac_var=no"
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11054 ac_res=`eval echo '${'$as_ac_var'}'`
11055 { echo "$as_me:$LINENO: result: $ac_res" >&5
11056 echo "${ECHO_T}$ac_res" >&6; }
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058 cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11092 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11106 # Is the header compilable?
11107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 $ac_includes_default
11116 #include <$ac_header>
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_compile") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_header_compiler=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_header_compiler=no
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162 echo "${ECHO_T}$ac_header_compiler" >&6; }
11164 # Is the header present?
11165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 #include <$ac_header>
11175 if { (ac_try="$ac_cpp conftest.$ac_ext"
11176 case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11183 grep -v '^ *+' conftest.er1 >conftest.err
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } >/dev/null; then
11188 if test -s conftest.err; then
11189 ac_cpp_err=$ac_c_preproc_warn_flag
11190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11197 if test -z "$ac_cpp_err"; then
11198 ac_header_preproc=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 echo "${ECHO_T}$ac_header_preproc" >&6; }
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11233 ## ----------------------------------- ##
11234 ## Report this to llvmbugs@cs.uiuc.edu ##
11235 ## ----------------------------------- ##
11237 ) | sed "s/^/$as_me: WARNING: /" >&2
11240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 eval "$as_ac_Header=\$ac_header_preproc"
11247 ac_res=`eval echo '${'$as_ac_Header'}'`
11248 { echo "$as_me:$LINENO: result: $ac_res" >&5
11249 echo "${ECHO_T}$ac_res" >&6; }
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11278 # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 #include <$ac_header>
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest.$ac_objext'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_header_compiler=yes
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ac_header_compiler=no
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334 echo "${ECHO_T}$ac_header_compiler" >&6; }
11336 # Is the header present?
11337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #include <$ac_header>
11347 if { (ac_try="$ac_cpp conftest.$ac_ext"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355 grep -v '^ *+' conftest.er1 >conftest.err
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } >/dev/null; then
11360 if test -s conftest.err; then
11361 ac_cpp_err=$ac_c_preproc_warn_flag
11362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11369 if test -z "$ac_cpp_err"; then
11370 ac_header_preproc=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_header_preproc=no
11378 rm -f conftest.err conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380 echo "${ECHO_T}$ac_header_preproc" >&6; }
11382 # So? What about this header?
11383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389 ac_header_preproc=yes
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405 ## ----------------------------------- ##
11406 ## Report this to llvmbugs@cs.uiuc.edu ##
11407 ## ----------------------------------- ##
11409 ) | sed "s/^/$as_me: WARNING: /" >&2
11412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 eval "$as_ac_Header=\$ac_header_preproc"
11419 ac_res=`eval echo '${'$as_ac_Header'}'`
11420 { echo "$as_me:$LINENO: result: $ac_res" >&5
11421 echo "${ECHO_T}$ac_res" >&6; }
11424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11435 for ac_header in string.h strings.h
11437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11448 # Is the header compilable?
11449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451 cat >conftest.$ac_ext <<_ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11458 #include <$ac_header>
11460 rm -f conftest.$ac_objext
11461 if { (ac_try="$ac_compile"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_header_compiler=yes
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_header_compiler=no
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504 echo "${ECHO_T}$ac_header_compiler" >&6; }
11506 # Is the header present?
11507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 #include <$ac_header>
11517 if { (ac_try="$ac_cpp conftest.$ac_ext"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null; then
11530 if test -s conftest.err; then
11531 ac_cpp_err=$ac_c_preproc_warn_flag
11532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11539 if test -z "$ac_cpp_err"; then
11540 ac_header_preproc=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_preproc=no
11548 rm -f conftest.err conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6; }
11552 # So? What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559 ac_header_preproc=yes
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11575 ## ----------------------------------- ##
11576 ## Report this to llvmbugs@cs.uiuc.edu ##
11577 ## ----------------------------------- ##
11579 ) | sed "s/^/$as_me: WARNING: /" >&2
11582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 eval "$as_ac_Header=\$ac_header_preproc"
11589 ac_res=`eval echo '${'$as_ac_Header'}'`
11590 { echo "$as_me:$LINENO: result: $ac_res" >&5
11591 echo "${ECHO_T}$ac_res" >&6; }
11594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11606 for ac_func in strchr index
11608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11622 #define $ac_func innocuous_$ac_func
11624 /* System header to define __stub macros and hopefully few prototypes,
11625 which can conflict with char $ac_func (); below.
11626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11627 <limits.h> exists even on freestanding compilers. */
11630 # include <limits.h>
11632 # include <assert.h>
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11644 /* The GNU C library defines this for functions which it implements
11645 to always fail with ENOSYS. Some functions are actually named
11646 something starting with __ and the normal name is an alias. */
11647 #if defined __stub_$ac_func || defined __stub___$ac_func
11654 return $ac_func ();
11659 rm -f conftest.$ac_objext conftest$ac_exeext
11660 if { (ac_try="$ac_link"
11661 case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_link") 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_try") 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 eval "$as_ac_var=yes"
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 eval "$as_ac_var=no"
11701 rm -f core conftest.err conftest.$ac_objext \
11702 conftest$ac_exeext conftest.$ac_ext
11704 ac_res=`eval echo '${'$as_ac_var'}'`
11705 { echo "$as_me:$LINENO: result: $ac_res" >&5
11706 echo "${ECHO_T}$ac_res" >&6; }
11707 if test `eval echo '${'$as_ac_var'}'` = yes; then
11708 cat >>confdefs.h <<_ACEOF
11709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11717 for ac_func in strrchr rindex
11719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11733 #define $ac_func innocuous_$ac_func
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func (); below.
11737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11738 <limits.h> exists even on freestanding compilers. */
11741 # include <limits.h>
11743 # include <assert.h>
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11755 /* The GNU C library defines this for functions which it implements
11756 to always fail with ENOSYS. Some functions are actually named
11757 something starting with __ and the normal name is an alias. */
11758 #if defined __stub_$ac_func || defined __stub___$ac_func
11765 return $ac_func ();
11770 rm -f conftest.$ac_objext conftest$ac_exeext
11771 if { (ac_try="$ac_link"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_link") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 eval "$as_ac_var=yes"
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 eval "$as_ac_var=no"
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11815 ac_res=`eval echo '${'$as_ac_var'}'`
11816 { echo "$as_me:$LINENO: result: $ac_res" >&5
11817 echo "${ECHO_T}$ac_res" >&6; }
11818 if test `eval echo '${'$as_ac_var'}'` = yes; then
11819 cat >>confdefs.h <<_ACEOF
11820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11828 for ac_func in memcpy bcopy
11830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 cat >conftest.$ac_ext <<_ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11844 #define $ac_func innocuous_$ac_func
11846 /* System header to define __stub macros and hopefully few prototypes,
11847 which can conflict with char $ac_func (); below.
11848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849 <limits.h> exists even on freestanding compilers. */
11852 # include <limits.h>
11854 # include <assert.h>
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11866 /* The GNU C library defines this for functions which it implements
11867 to always fail with ENOSYS. Some functions are actually named
11868 something starting with __ and the normal name is an alias. */
11869 #if defined __stub_$ac_func || defined __stub___$ac_func
11876 return $ac_func ();
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>conftest.er1
11890 grep -v '^ *+' conftest.er1 >conftest.err
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11896 { (case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_try") 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_try") 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 eval "$as_ac_var=yes"
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 eval "$as_ac_var=no"
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11926 ac_res=`eval echo '${'$as_ac_var'}'`
11927 { echo "$as_me:$LINENO: result: $ac_res" >&5
11928 echo "${ECHO_T}$ac_res" >&6; }
11929 if test `eval echo '${'$as_ac_var'}'` = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11939 for ac_func in memmove strcmp
11941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955 #define $ac_func innocuous_$ac_func
11957 /* System header to define __stub macros and hopefully few prototypes,
11958 which can conflict with char $ac_func (); below.
11959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960 <limits.h> exists even on freestanding compilers. */
11963 # include <limits.h>
11965 # include <assert.h>
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11977 /* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980 #if defined __stub_$ac_func || defined __stub___$ac_func
11987 return $ac_func ();
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 eval "$as_ac_var=yes"
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 eval "$as_ac_var=no"
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12037 ac_res=`eval echo '${'$as_ac_var'}'`
12038 { echo "$as_me:$LINENO: result: $ac_res" >&5
12039 echo "${ECHO_T}$ac_res" >&6; }
12040 if test `eval echo '${'$as_ac_var'}'` = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12051 for ac_func in closedir opendir readdir
12053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12067 #define $ac_func innocuous_$ac_func
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char $ac_func (); below.
12071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 <limits.h> exists even on freestanding compilers. */
12075 # include <limits.h>
12077 # include <assert.h>
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined __stub_$ac_func || defined __stub___$ac_func
12099 return $ac_func ();
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1 >conftest.err
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 eval "$as_ac_var=yes"
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 eval "$as_ac_var=no"
12146 rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12149 ac_res=`eval echo '${'$as_ac_var'}'`
12150 { echo "$as_me:$LINENO: result: $ac_res" >&5
12151 echo "${ECHO_T}$ac_res" >&6; }
12152 if test `eval echo '${'$as_ac_var'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12161 # Check whether --enable-shared was given.
12162 if test "${enable_shared+set}" = set; then
12163 enableval=$enable_shared; p=${PACKAGE-default}
12165 yes) enable_shared=yes ;;
12166 no) enable_shared=no ;;
12169 # Look at the argument we got. We use all the common list separators.
12170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171 for pkg in $enableval; do
12173 if test "X$pkg" = "X$p"; then
12185 # Check whether --enable-static was given.
12186 if test "${enable_static+set}" = set; then
12187 enableval=$enable_static; p=${PACKAGE-default}
12189 yes) enable_static=yes ;;
12190 no) enable_static=no ;;
12193 # Look at the argument we got. We use all the common list separators.
12194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12195 for pkg in $enableval; do
12197 if test "X$pkg" = "X$p"; then
12209 # Check whether --enable-fast-install was given.
12210 if test "${enable_fast_install+set}" = set; then
12211 enableval=$enable_fast_install; p=${PACKAGE-default}
12213 yes) enable_fast_install=yes ;;
12214 no) enable_fast_install=no ;;
12216 enable_fast_install=no
12217 # Look at the argument we got. We use all the common list separators.
12218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12219 for pkg in $enableval; do
12221 if test "X$pkg" = "X$p"; then
12222 enable_fast_install=yes
12229 enable_fast_install=yes
12233 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12234 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12235 if test "${lt_cv_path_SED+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 # Loop through the user's path and test for sed and gsed.
12239 # Then use that list of sed's as ones to test for truncation.
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12244 test -z "$as_dir" && as_dir=.
12245 for lt_ac_prog in sed gsed; do
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12248 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12255 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12256 # along with /bin/sed that truncates output.
12257 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12258 test ! -f $lt_ac_sed && continue
12259 cat /dev/null > conftest.in
12261 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12262 # Check for GNU sed and select it if it is found.
12263 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12264 lt_cv_path_SED=$lt_ac_sed
12268 cat conftest.in conftest.in >conftest.tmp
12269 mv conftest.tmp conftest.in
12270 cp conftest.in conftest.nl
12272 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12273 cmp -s conftest.out conftest.nl || break
12274 # 10000 chars as input seems more than enough
12275 test $lt_ac_count -gt 10 && break
12276 lt_ac_count=`expr $lt_ac_count + 1`
12277 if test $lt_ac_count -gt $lt_ac_max; then
12278 lt_ac_max=$lt_ac_count
12279 lt_cv_path_SED=$lt_ac_sed
12286 SED=$lt_cv_path_SED
12287 { echo "$as_me:$LINENO: result: $SED" >&5
12288 echo "${ECHO_T}$SED" >&6; }
12291 # Check whether --with-gnu-ld was given.
12292 if test "${with_gnu_ld+set}" = set; then
12293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12299 if test "$GCC" = yes; then
12300 # Check if gcc -print-prog-name=ld gives a path.
12301 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12302 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12305 # gcc leaves a trailing carriage return which upsets mingw
12306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12311 # Accept absolute paths.
12313 re_direlt='/[^/][^/]*/\.\./'
12314 # Canonicalize the pathname of ld
12315 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12316 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12317 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12319 test -z "$LD" && LD="$ac_prog"
12322 # If it fails, then pretend we aren't using GCC.
12326 # If it is relative, then search for the first ld in PATH.
12327 with_gnu_ld=unknown
12330 elif test "$with_gnu_ld" = yes; then
12331 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12332 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12334 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12335 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12337 if test "${lt_cv_path_LD+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 if test -z "$LD"; then
12341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12342 for ac_dir in $PATH; do
12344 test -z "$ac_dir" && ac_dir=.
12345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12346 lt_cv_path_LD="$ac_dir/$ac_prog"
12347 # Check to see if the program is GNU ld. I'd rather use --version,
12348 # but apparently some variants of GNU ld only accept -v.
12349 # Break only if it was the GNU/non-GNU ld that we prefer.
12350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12351 *GNU* | *'with BFD'*)
12352 test "$with_gnu_ld" != no && break
12355 test "$with_gnu_ld" != yes && break
12362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12366 LD="$lt_cv_path_LD"
12367 if test -n "$LD"; then
12368 { echo "$as_me:$LINENO: result: $LD" >&5
12369 echo "${ECHO_T}$LD" >&6; }
12371 { echo "$as_me:$LINENO: result: no" >&5
12372 echo "${ECHO_T}no" >&6; }
12374 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12375 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12376 { (exit 1); exit 1; }; }
12377 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12378 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12379 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383 case `$LD -v 2>&1 </dev/null` in
12384 *GNU* | *'with BFD'*)
12385 lt_cv_prog_gnu_ld=yes
12388 lt_cv_prog_gnu_ld=no
12392 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12393 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12394 with_gnu_ld=$lt_cv_prog_gnu_ld
12397 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12398 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12399 if test "${lt_cv_ld_reload_flag+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 lt_cv_ld_reload_flag='-r'
12404 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12405 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12406 reload_flag=$lt_cv_ld_reload_flag
12407 case $reload_flag in
12409 *) reload_flag=" $reload_flag" ;;
12411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12414 if test "$GCC" = yes; then
12415 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12422 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12423 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12424 if test "${lt_cv_deplibs_check_method+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 lt_cv_file_magic_cmd='$MAGIC_CMD'
12428 lt_cv_file_magic_test_file=
12429 lt_cv_deplibs_check_method='unknown'
12430 # Need to set the preceding variable on all platforms that support
12431 # interlibrary dependencies.
12432 # 'none' -- dependencies not supported.
12433 # `unknown' -- same as none, but documents that we really don't know.
12434 # 'pass_all' -- all dependencies passed with no checks.
12435 # 'test_compile' -- check by making test program.
12436 # 'file_magic [[regex]]' -- check by looking for files in library path
12437 # which responds to the $file_magic_cmd with a given extended regex.
12438 # If you have `file' or equivalent on your system and you're not sure
12439 # whether `pass_all' will *always* work, you probably want this one.
12443 lt_cv_deplibs_check_method=pass_all
12447 lt_cv_deplibs_check_method=pass_all
12451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12452 lt_cv_file_magic_cmd='/usr/bin/file -L'
12453 lt_cv_file_magic_test_file=/shlib/libc.so
12457 # func_win32_libid is a shell function defined in ltmain.sh
12458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12459 lt_cv_file_magic_cmd='func_win32_libid'
12463 # Base MSYS/MinGW do not provide the 'file' command needed by
12464 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12465 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12466 lt_cv_file_magic_cmd='$OBJDUMP -f'
12469 darwin* | rhapsody*)
12470 lt_cv_deplibs_check_method=pass_all
12473 freebsd* | kfreebsd*-gnu | dragonfly*)
12474 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12477 # Not sure whether the presence of OpenBSD here was a mistake.
12478 # Let's accept both of them until this is cleared up.
12479 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12480 lt_cv_file_magic_cmd=/usr/bin/file
12481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12485 lt_cv_deplibs_check_method=pass_all
12490 lt_cv_deplibs_check_method=pass_all
12493 hpux10.20* | hpux11*)
12494 lt_cv_file_magic_cmd=/usr/bin/file
12497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12498 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12501 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]'
12502 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12506 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12512 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12516 irix5* | irix6* | nonstopux*)
12518 *-32|*"-32 ") libmagic=32-bit;;
12519 *-n32|*"-n32 ") libmagic=N32;;
12520 *-64|*"-64 ") libmagic=64-bit;;
12521 *) libmagic=never-match;;
12523 lt_cv_deplibs_check_method=pass_all
12526 # This must be Linux ELF.
12528 lt_cv_deplibs_check_method=pass_all
12532 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12541 lt_cv_file_magic_cmd=/usr/bin/file
12542 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12546 lt_cv_deplibs_check_method=unknown
12550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12557 osf3* | osf4* | osf5*)
12558 lt_cv_deplibs_check_method=pass_all
12562 lt_cv_deplibs_check_method=pass_all
12566 case $host_vendor in
12568 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]'
12569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12572 lt_cv_deplibs_check_method=pass_all
12575 lt_cv_file_magic_cmd='/bin/file'
12576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12579 lt_cv_file_magic_cmd='/bin/file'
12580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12581 lt_cv_file_magic_test_file=/lib/libc.so
12584 lt_cv_deplibs_check_method=pass_all
12587 lt_cv_deplibs_check_method=pass_all
12592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12593 lt_cv_deplibs_check_method=pass_all
12598 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12599 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12600 file_magic_cmd=$lt_cv_file_magic_cmd
12601 deplibs_check_method=$lt_cv_deplibs_check_method
12602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12606 # If no C compiler was specified, use CC.
12609 # If no C compiler flags were specified, use CFLAGS.
12610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12612 # Allow CC to be a program name with arguments.
12615 # Check whether --enable-libtool-lock was given.
12616 if test "${enable_libtool_lock+set}" = set; then
12617 enableval=$enable_libtool_lock;
12620 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12622 # Some flags need to be propagated to the compiler or linker for good
12626 # Find out which ABI we are using.
12627 echo 'int i;' > conftest.$ac_ext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; then
12633 case `/usr/bin/file conftest.$ac_objext` in
12635 HPUX_IA64_MODE="32"
12638 HPUX_IA64_MODE="64"
12645 # Find out which ABI we are using.
12646 echo '#line 12646 "configure"' > conftest.$ac_ext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12648 (eval $ac_compile) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; then
12652 if test "$lt_cv_prog_gnu_ld" = yes; then
12653 case `/usr/bin/file conftest.$ac_objext` in
12655 LD="${LD-ld} -melf32bsmip"
12658 LD="${LD-ld} -melf32bmipn32"
12661 LD="${LD-ld} -melf64bmip"
12665 case `/usr/bin/file conftest.$ac_objext` in
12681 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12682 # Find out which ABI we are using.
12683 echo 'int i;' > conftest.$ac_ext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; then
12689 case `/usr/bin/file conftest.o` in
12693 LD="${LD-ld} -m elf_i386"
12695 ppc64-*linux*|powerpc64-*linux*)
12696 LD="${LD-ld} -m elf32ppclinux"
12699 LD="${LD-ld} -m elf_s390"
12702 LD="${LD-ld} -m elf32_sparc"
12709 LD="${LD-ld} -m elf_x86_64"
12711 ppc*-*linux*|powerpc*-*linux*)
12712 LD="${LD-ld} -m elf64ppc"
12715 LD="${LD-ld} -m elf64_s390"
12718 LD="${LD-ld} -m elf64_sparc"
12728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12729 SAVE_CFLAGS="$CFLAGS"
12730 CFLAGS="$CFLAGS -belf"
12731 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12732 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12733 if test "${lt_cv_cc_needs_belf+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 ac_cpp='$CPP $CPPFLAGS'
12738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742 cat >conftest.$ac_ext <<_ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12757 rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (ac_try="$ac_link"
12759 case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_link") 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12772 { (case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_try") 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 lt_cv_cc_needs_belf=yes
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 lt_cv_cc_needs_belf=no
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12808 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12809 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12810 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12812 CFLAGS="$SAVE_CFLAGS"
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; then
12823 case `/usr/bin/file conftest.o` in
12825 case $lt_cv_prog_gnu_ld in
12826 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12827 *) LD="${LD-ld} -64" ;;
12838 need_locks="$enable_libtool_lock"
12843 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12844 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12845 (test "X$CXX" != "Xg++"))) ; then
12847 ac_cpp='$CXXCPP $CPPFLAGS'
12848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12851 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12852 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12853 if test -z "$CXXCPP"; then
12854 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 # Double quotes because CXXCPP needs to be expanded
12858 for CXXCPP in "$CXX -E" "/lib/cpp"
12860 ac_preproc_ok=false
12861 for ac_cxx_preproc_warn_flag in '' yes
12863 # Use a header file that comes with gcc, so configuring glibc
12864 # with a fresh cross-compiler works.
12865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12866 # <limits.h> exists even on freestanding compilers.
12867 # On the NeXT, cc -E runs the code through the compiler's parser,
12868 # not just through cpp. "Syntax error" is here to catch this case.
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12876 # include <limits.h>
12878 # include <assert.h>
12882 if { (ac_try="$ac_cpp conftest.$ac_ext"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1 >conftest.err
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev/null; then
12895 if test -s conftest.err; then
12896 ac_cpp_err=$ac_cxx_preproc_warn_flag
12897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12904 if test -z "$ac_cpp_err"; then
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 # Broken: fails on valid input.
12914 rm -f conftest.err conftest.$ac_ext
12916 # OK, works on sane cases. Now check whether nonexistent headers
12917 # can be detected and how.
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 #include <ac_nonexistent.h>
12926 if { (ac_try="$ac_cpp conftest.$ac_ext"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_cxx_preproc_warn_flag
12941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12948 if test -z "$ac_cpp_err"; then
12949 # Broken: success on invalid input.
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 # Passes both tests.
12960 rm -f conftest.err conftest.$ac_ext
12963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12964 rm -f conftest.err conftest.$ac_ext
12965 if $ac_preproc_ok; then
12970 ac_cv_prog_CXXCPP=$CXXCPP
12973 CXXCPP=$ac_cv_prog_CXXCPP
12975 ac_cv_prog_CXXCPP=$CXXCPP
12977 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12978 echo "${ECHO_T}$CXXCPP" >&6; }
12979 ac_preproc_ok=false
12980 for ac_cxx_preproc_warn_flag in '' yes
12982 # Use a header file that comes with gcc, so configuring glibc
12983 # with a fresh cross-compiler works.
12984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985 # <limits.h> exists even on freestanding compilers.
12986 # On the NeXT, cc -E runs the code through the compiler's parser,
12987 # not just through cpp. "Syntax error" is here to catch this case.
12988 cat >conftest.$ac_ext <<_ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12995 # include <limits.h>
12997 # include <assert.h>
13001 if { (ac_try="$ac_cpp conftest.$ac_ext"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13009 grep -v '^ *+' conftest.er1 >conftest.err
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } >/dev/null; then
13014 if test -s conftest.err; then
13015 ac_cpp_err=$ac_cxx_preproc_warn_flag
13016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13023 if test -z "$ac_cpp_err"; then
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 # Broken: fails on valid input.
13033 rm -f conftest.err conftest.$ac_ext
13035 # OK, works on sane cases. Now check whether nonexistent headers
13036 # can be detected and how.
13037 cat >conftest.$ac_ext <<_ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 #include <ac_nonexistent.h>
13045 if { (ac_try="$ac_cpp conftest.$ac_ext"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev/null; then
13058 if test -s conftest.err; then
13059 ac_cpp_err=$ac_cxx_preproc_warn_flag
13060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13067 if test -z "$ac_cpp_err"; then
13068 # Broken: success on invalid input.
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 # Passes both tests.
13079 rm -f conftest.err conftest.$ac_ext
13082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13083 rm -f conftest.err conftest.$ac_ext
13084 if $ac_preproc_ok; then
13087 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13088 See \`config.log' for more details." >&5
13089 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13090 See \`config.log' for more details." >&2;}
13091 { (exit 1); exit 1; }; }
13095 ac_cpp='$CXXCPP $CPPFLAGS'
13096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13104 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13105 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13107 if test -n "$ac_tool_prefix"; then
13108 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
13110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13114 if test "${ac_cv_prog_F77+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 if test -n "$F77"; then
13118 ac_cv_prog_F77="$F77" # Let the user override the test.
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 F77=$ac_cv_prog_F77
13138 if test -n "$F77"; then
13139 { echo "$as_me:$LINENO: result: $F77" >&5
13140 echo "${ECHO_T}$F77" >&6; }
13142 { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13147 test -n "$F77" && break
13150 if test -z "$F77"; then
13152 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
13154 # Extract the first word of "$ac_prog", so it can be a program name with args.
13155 set dummy $ac_prog; ac_word=$2
13156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 if test -n "$ac_ct_F77"; then
13162 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_prog_ac_ct_F77="$ac_prog"
13172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13181 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13182 if test -n "$ac_ct_F77"; then
13183 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13184 echo "${ECHO_T}$ac_ct_F77" >&6; }
13186 { echo "$as_me:$LINENO: result: no" >&5
13187 echo "${ECHO_T}no" >&6; }
13191 test -n "$ac_ct_F77" && break
13194 if test "x$ac_ct_F77" = x; then
13197 case $cross_compiling:$ac_tool_warned in
13199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13200 whose name does not start with the host triplet. If you think this
13201 configuration is useful to you, please write to autoconf@gnu.org." >&5
13202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13203 whose name does not start with the host triplet. If you think this
13204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13205 ac_tool_warned=yes ;;
13212 # Provide some information about the compiler.
13213 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13214 ac_compiler=`set X $ac_compile; echo $2`
13215 { (ac_try="$ac_compiler --version >&5"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_compiler --version >&5") 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }
13225 { (ac_try="$ac_compiler -v >&5"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_compiler -v >&5") 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }
13235 { (ac_try="$ac_compiler -V >&5"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compiler -V >&5") 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }
13247 # If we don't use `.F' as extension, the preprocessor is not run on the
13248 # input file. (Note that this only needs to work for GNU compilers.)
13249 ac_save_ext=$ac_ext
13251 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13252 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13253 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 cat >conftest.$ac_ext <<_ACEOF
13264 rm -f conftest.$ac_objext
13265 if { (ac_try="$ac_compile"
13266 case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_compile") 2>conftest.er1
13273 grep -v '^ *+' conftest.er1 >conftest.err
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13279 { (case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_try") 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest.$ac_objext'
13289 { (case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_try") 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_compiler_gnu=yes
13300 echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13310 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13311 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13312 ac_ext=$ac_save_ext
13313 ac_test_FFLAGS=${FFLAGS+set}
13314 ac_save_FFLAGS=$FFLAGS
13316 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13317 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13318 if test "${ac_cv_prog_f77_g+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 cat >conftest.$ac_ext <<_ACEOF
13327 rm -f conftest.$ac_objext
13328 if { (ac_try="$ac_compile"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_compile") 2>conftest.er1
13336 grep -v '^ *+' conftest.er1 >conftest.err
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_prog_f77_g=yes
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_cv_prog_f77_g=no
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13372 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13373 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13374 if test "$ac_test_FFLAGS" = set; then
13375 FFLAGS=$ac_save_FFLAGS
13376 elif test $ac_cv_prog_f77_g = yes; then
13377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13390 G77=`test $ac_compiler_gnu = yes && echo yes`
13392 ac_cpp='$CPP $CPPFLAGS'
13393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13399 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13401 # find the maximum length of command line arguments
13402 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13403 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13404 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 # On DJGPP, this test can blow up pretty badly due to problems in libc
13413 # (any single argument exceeding 2000 bytes causes a buffer overrun
13414 # during glob expansion). Even if it were fixed, the result of this
13415 # check would be larger than it should be.
13416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13420 # Under GNU Hurd, this test is not required because there is
13421 # no limit to the length of command line arguments.
13422 # Libtool will interpret -1 as no limit whatsoever
13423 lt_cv_sys_max_cmd_len=-1;
13427 # On Win9x/ME, this test blows up -- it succeeds, but takes
13428 # about 5 minutes as the teststring grows exponentially.
13429 # Worse, since 9x/ME are not pre-emptively multitasking,
13430 # you end up with a "frozen" computer, even though with patience
13431 # the test eventually succeeds (with a max line length of 256k).
13432 # Instead, let's just punt: use the minimum linelength reported by
13433 # all of the supported platforms: 8192 (on NT/2K/XP).
13434 lt_cv_sys_max_cmd_len=8192;
13438 # On AmigaOS with pdksh, this test takes hours, literally.
13439 # So we just punt and use a minimum line length of 8192.
13440 lt_cv_sys_max_cmd_len=8192;
13443 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13444 # This has been around since 386BSD, at least. Likely further.
13445 if test -x /sbin/sysctl; then
13446 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13447 elif test -x /usr/sbin/sysctl; then
13448 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13450 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13452 # And add a safety zone
13453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13458 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13459 lt_cv_sys_max_cmd_len=196608
13463 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13464 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13465 # nice to cause kernel panics so lets avoid the loop below.
13466 # First set a reasonable default.
13467 lt_cv_sys_max_cmd_len=16384
13469 if test -x /sbin/sysconfig; then
13470 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13471 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13476 lt_cv_sys_max_cmd_len=102400
13478 sysv5* | sco5v6* | sysv4.2uw2*)
13479 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13480 if test -n "$kargmax"; then
13481 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13483 lt_cv_sys_max_cmd_len=32768
13487 # If test is not a shell built-in, we'll probably end up computing a
13488 # maximum length that is only half of the actual maximum length, but
13490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13491 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13492 = "XX$teststring") >/dev/null 2>&1 &&
13493 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13494 lt_cv_sys_max_cmd_len=$new_result &&
13495 test $i != 17 # 1/2 MB should be enough
13498 teststring=$teststring$teststring
13501 # Add a significant safety factor because C++ compilers can tack on massive
13502 # amounts of additional arguments before passing them to the linker.
13503 # It appears as though 1/2 is a usable value.
13504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13510 if test -n $lt_cv_sys_max_cmd_len ; then
13511 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13512 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13514 { echo "$as_me:$LINENO: result: none" >&5
13515 echo "${ECHO_T}none" >&6; }
13521 # Check for command to grab the raw symbol name followed by C symbol from nm.
13522 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13523 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13524 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 # These are sane defaults that work on at least a few old systems.
13529 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13531 # Character class describing NM global symbol codes.
13532 symcode='[BCDEGRST]'
13534 # Regexp to match symbols that can be accessed directly from C.
13535 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13537 # Transform an extracted symbol line into a proper C declaration
13538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13540 # Transform an extracted symbol line into symbol name and symbol address
13541 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'"
13543 # Define system-specific variables.
13548 cygwin* | mingw* | pw32*)
13549 symcode='[ABCDGISTW]'
13551 hpux*) # Its linker distinguishes data from code symbols
13552 if test "$host_cpu" = ia64; then
13553 symcode='[ABCDEGRST]'
13555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13556 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'"
13559 if test "$host_cpu" = ia64; then
13560 symcode='[ABCDGIRSTW]'
13561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13562 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'"
13565 irix* | nonstopux*)
13566 symcode='[BCDEGRST]'
13569 symcode='[BCDEGQRST]'
13580 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13588 # Handle CRLF in mingw tool chain
13592 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13596 # If we're using GNU nm, then use its standard symbol codes.
13597 case `$NM -V 2>&1` in
13598 *GNU* | *'with BFD'*)
13599 symcode='[ABCDGIRSTW]' ;;
13602 # Try without a prefix undercore, then with it.
13603 for ac_symprfx in "" "_"; do
13605 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13606 symxfrm="\\1 $ac_symprfx\\2 \\2"
13608 # Write the raw and C identifiers.
13609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13611 # Check to see that the pipe works correctly.
13615 cat > conftest.$ac_ext <<EOF
13620 void nm_test_func(){}
13624 int main(){nm_test_var='a';nm_test_func();return(0);}
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; then
13632 # Now try to grab the symbols.
13634 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13635 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } && test -s "$nlist"; then
13639 # Try sorting and uniquifying the output.
13640 if sort "$nlist" | uniq > "$nlist"T; then
13641 mv -f "$nlist"T "$nlist"
13646 # Make sure that we snagged all the symbols we need.
13647 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13648 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13649 cat <<EOF > conftest.$ac_ext
13655 # Now generate the symbol file.
13656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13658 cat <<EOF >> conftest.$ac_ext
13659 #if defined (__STDC__) && __STDC__
13660 # define lt_ptr_t void *
13662 # define lt_ptr_t char *
13666 /* The mapping between symbol names and symbols. */
13671 lt_preloaded_symbols[] =
13674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13675 cat <<\EOF >> conftest.$ac_ext
13683 # Now try linking the two files.
13684 mv conftest.$ac_objext conftstm.$ac_objext
13685 lt_save_LIBS="$LIBS"
13686 lt_save_CFLAGS="$CFLAGS"
13687 LIBS="conftstm.$ac_objext"
13688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13696 LIBS="$lt_save_LIBS"
13697 CFLAGS="$lt_save_CFLAGS"
13699 echo "cannot find nm_test_func in $nlist" >&5
13702 echo "cannot find nm_test_var in $nlist" >&5
13705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13708 echo "$progname: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13711 rm -f conftest* conftst*
13713 # Do not use the global_symbol_pipe unless it works.
13714 if test "$pipe_works" = yes; then
13717 lt_cv_sys_global_symbol_pipe=
13723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13724 lt_cv_sys_global_symbol_to_cdecl=
13726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13727 { echo "$as_me:$LINENO: result: failed" >&5
13728 echo "${ECHO_T}failed" >&6; }
13730 { echo "$as_me:$LINENO: result: ok" >&5
13731 echo "${ECHO_T}ok" >&6; }
13734 { echo "$as_me:$LINENO: checking for objdir" >&5
13735 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13736 if test "${lt_cv_objdir+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 rm -f .libs 2>/dev/null
13740 mkdir .libs 2>/dev/null
13741 if test -d .libs; then
13744 # MS-DOS does not allow filenames that begin with a dot.
13747 rmdir .libs 2>/dev/null
13749 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13750 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13751 objdir=$lt_cv_objdir
13759 # AIX sometimes has problems with the GCC collect2 program. For some
13760 # reason, if we set the COLLECT_NAMES environment variable, the problems
13761 # vanish in a puff of smoke.
13762 if test "X${COLLECT_NAMES+set}" != Xset; then
13764 export COLLECT_NAMES
13769 # Sed substitution that helps us do robust quoting. It backslashifies
13770 # metacharacters that are still active within double-quoted strings.
13771 Xsed='sed -e 1s/^X//'
13772 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13774 # Same as above, but do not quote variable references.
13775 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13777 # Sed substitution to delay expansion of an escaped shell variable in a
13778 # double_quote_subst'ed string.
13779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13781 # Sed substitution to avoid accidental globbing in evaled expressions
13782 no_glob_subst='s/\*/\\\*/g'
13787 # Global variables:
13788 default_ofile=mklib
13789 can_build_shared=yes
13791 # All known linkers require a `.a' archive for static linking (except MSVC,
13792 # which needs '.lib').
13794 ltmain="$ac_aux_dir/ltmain.sh"
13795 ofile="$default_ofile"
13796 with_gnu_ld="$lt_cv_prog_gnu_ld"
13798 if test -n "$ac_tool_prefix"; then
13799 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13800 set dummy ${ac_tool_prefix}ar; ac_word=$2
13801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13803 if test "${ac_cv_prog_AR+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 if test -n "$AR"; then
13807 ac_cv_prog_AR="$AR" # Let the user override the test.
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13816 ac_cv_prog_AR="${ac_tool_prefix}ar"
13817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 if test -n "$AR"; then
13828 { echo "$as_me:$LINENO: result: $AR" >&5
13829 echo "${ECHO_T}$AR" >&6; }
13831 { echo "$as_me:$LINENO: result: no" >&5
13832 echo "${ECHO_T}no" >&6; }
13837 if test -z "$ac_cv_prog_AR"; then
13839 # Extract the first word of "ar", so it can be a program name with args.
13840 set dummy ar; ac_word=$2
13841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 if test -n "$ac_ct_AR"; then
13847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13856 ac_cv_prog_ac_ct_AR="ar"
13857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13867 if test -n "$ac_ct_AR"; then
13868 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13869 echo "${ECHO_T}$ac_ct_AR" >&6; }
13871 { echo "$as_me:$LINENO: result: no" >&5
13872 echo "${ECHO_T}no" >&6; }
13875 if test "x$ac_ct_AR" = x; then
13878 case $cross_compiling:$ac_tool_warned in
13880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13881 whose name does not start with the host triplet. If you think this
13882 configuration is useful to you, please write to autoconf@gnu.org." >&5
13883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13884 whose name does not start with the host triplet. If you think this
13885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13886 ac_tool_warned=yes ;;
13891 AR="$ac_cv_prog_AR"
13894 if test -n "$ac_tool_prefix"; then
13895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13899 if test "${ac_cv_prog_RANLIB+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 if test -n "$RANLIB"; then
13903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH
13909 test -z "$as_dir" && as_dir=.
13910 for ac_exec_ext in '' $ac_executable_extensions; do
13911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13922 RANLIB=$ac_cv_prog_RANLIB
13923 if test -n "$RANLIB"; then
13924 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13925 echo "${ECHO_T}$RANLIB" >&6; }
13927 { echo "$as_me:$LINENO: result: no" >&5
13928 echo "${ECHO_T}no" >&6; }
13933 if test -z "$ac_cv_prog_RANLIB"; then
13934 ac_ct_RANLIB=$RANLIB
13935 # Extract the first word of "ranlib", so it can be a program name with args.
13936 set dummy ranlib; ac_word=$2
13937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 if test -n "$ac_ct_RANLIB"; then
13943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13952 ac_cv_prog_ac_ct_RANLIB="ranlib"
13953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13963 if test -n "$ac_ct_RANLIB"; then
13964 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13965 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13967 { echo "$as_me:$LINENO: result: no" >&5
13968 echo "${ECHO_T}no" >&6; }
13971 if test "x$ac_ct_RANLIB" = x; then
13974 case $cross_compiling:$ac_tool_warned in
13976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13977 whose name does not start with the host triplet. If you think this
13978 configuration is useful to you, please write to autoconf@gnu.org." >&5
13979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13980 whose name does not start with the host triplet. If you think this
13981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13982 ac_tool_warned=yes ;;
13984 RANLIB=$ac_ct_RANLIB
13987 RANLIB="$ac_cv_prog_RANLIB"
13990 if test -n "$ac_tool_prefix"; then
13991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13992 set dummy ${ac_tool_prefix}strip; ac_word=$2
13993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13995 if test "${ac_cv_prog_STRIP+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 if test -n "$STRIP"; then
13999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $PATH
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 STRIP=$ac_cv_prog_STRIP
14019 if test -n "$STRIP"; then
14020 { echo "$as_me:$LINENO: result: $STRIP" >&5
14021 echo "${ECHO_T}$STRIP" >&6; }
14023 { echo "$as_me:$LINENO: result: no" >&5
14024 echo "${ECHO_T}no" >&6; }
14029 if test -z "$ac_cv_prog_STRIP"; then
14031 # Extract the first word of "strip", so it can be a program name with args.
14032 set dummy strip; ac_word=$2
14033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 if test -n "$ac_ct_STRIP"; then
14039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14048 ac_cv_prog_ac_ct_STRIP="strip"
14049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14059 if test -n "$ac_ct_STRIP"; then
14060 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14061 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14063 { echo "$as_me:$LINENO: result: no" >&5
14064 echo "${ECHO_T}no" >&6; }
14067 if test "x$ac_ct_STRIP" = x; then
14070 case $cross_compiling:$ac_tool_warned in
14072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14073 whose name does not start with the host triplet. If you think this
14074 configuration is useful to you, please write to autoconf@gnu.org." >&5
14075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14076 whose name does not start with the host triplet. If you think this
14077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14078 ac_tool_warned=yes ;;
14083 STRIP="$ac_cv_prog_STRIP"
14088 old_CFLAGS="$CFLAGS"
14090 # Set sane defaults for various variables
14091 test -z "$AR" && AR=ar
14092 test -z "$AR_FLAGS" && AR_FLAGS=cru
14093 test -z "$AS" && AS=as
14094 test -z "$CC" && CC=cc
14095 test -z "$LTCC" && LTCC=$CC
14096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14097 test -z "$DLLTOOL" && DLLTOOL=dlltool
14098 test -z "$LD" && LD=ld
14099 test -z "$LN_S" && LN_S="ln -s"
14100 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14101 test -z "$NM" && NM=nm
14102 test -z "$SED" && SED=sed
14103 test -z "$OBJDUMP" && OBJDUMP=objdump
14104 test -z "$RANLIB" && RANLIB=:
14105 test -z "$STRIP" && STRIP=:
14106 test -z "$ac_objext" && ac_objext=o
14108 # Determine commands to create old-style static archives.
14109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14110 old_postinstall_cmds='chmod 644 $oldlib'
14111 old_postuninstall_cmds=
14113 if test -n "$RANLIB"; then
14116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14125 for cc_temp in $compiler""; do
14127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14136 # Only perform the check for file, if the check method requires it
14137 case $deplibs_check_method in
14139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14140 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14141 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14142 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14150 lt_save_MAGIC_CMD="$MAGIC_CMD"
14151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14153 for ac_dir in $ac_dummy; do
14155 test -z "$ac_dir" && ac_dir=.
14156 if test -f $ac_dir/${ac_tool_prefix}file; then
14157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14158 if test -n "$file_magic_test_file"; then
14159 case $deplibs_check_method in
14161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14164 $EGREP "$file_magic_regex" > /dev/null; then
14169 *** Warning: the command libtool uses to detect shared libraries,
14170 *** $file_magic_cmd, produces output that libtool cannot recognize.
14171 *** The result is that libtool may fail to recognize shared libraries
14172 *** as such. This will affect the creation of libtool libraries that
14173 *** depend on shared libraries, but programs linked with such libtool
14174 *** libraries will work regardless of this problem. Nevertheless, you
14175 *** may want to report the problem to your system manager and/or to
14176 *** bug-libtool@gnu.org
14186 MAGIC_CMD="$lt_save_MAGIC_CMD"
14191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14192 if test -n "$MAGIC_CMD"; then
14193 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14194 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14196 { echo "$as_me:$LINENO: result: no" >&5
14197 echo "${ECHO_T}no" >&6; }
14200 if test -z "$lt_cv_path_MAGIC_CMD"; then
14201 if test -n "$ac_tool_prefix"; then
14202 { echo "$as_me:$LINENO: checking for file" >&5
14203 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14204 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14212 lt_save_MAGIC_CMD="$MAGIC_CMD"
14213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14215 for ac_dir in $ac_dummy; do
14217 test -z "$ac_dir" && ac_dir=.
14218 if test -f $ac_dir/file; then
14219 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14220 if test -n "$file_magic_test_file"; then
14221 case $deplibs_check_method in
14223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14226 $EGREP "$file_magic_regex" > /dev/null; then
14231 *** Warning: the command libtool uses to detect shared libraries,
14232 *** $file_magic_cmd, produces output that libtool cannot recognize.
14233 *** The result is that libtool may fail to recognize shared libraries
14234 *** as such. This will affect the creation of libtool libraries that
14235 *** depend on shared libraries, but programs linked with such libtool
14236 *** libraries will work regardless of this problem. Nevertheless, you
14237 *** may want to report the problem to your system manager and/or to
14238 *** bug-libtool@gnu.org
14248 MAGIC_CMD="$lt_save_MAGIC_CMD"
14253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14254 if test -n "$MAGIC_CMD"; then
14255 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14256 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14258 { echo "$as_me:$LINENO: result: no" >&5
14259 echo "${ECHO_T}no" >&6; }
14272 enable_win32_dll=no
14274 # Check whether --enable-libtool-lock was given.
14275 if test "${enable_libtool_lock+set}" = set; then
14276 enableval=$enable_libtool_lock;
14279 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14282 # Check whether --with-pic was given.
14283 if test "${with_pic+set}" = set; then
14284 withval=$with_pic; pic_mode="$withval"
14289 test -z "$pic_mode" && pic_mode=default
14291 # Use C for the default configuration in the libtool script
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14301 # Source file extension for C test sources.
14304 # Object file extension for compiled C test sources.
14308 # Code to be used in simple compile tests
14309 lt_simple_compile_test_code="int some_variable = 0;\n"
14311 # Code to be used in simple link tests
14312 lt_simple_link_test_code='int main(){return(0);}\n'
14315 # If no C compiler was specified, use CC.
14318 # If no C compiler flags were specified, use CFLAGS.
14319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14321 # Allow CC to be a program name with arguments.
14325 # save warnings/boilerplate of simple test code
14326 ac_outfile=conftest.$ac_objext
14327 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329 _lt_compiler_boilerplate=`cat conftest.err`
14332 ac_outfile=conftest.$ac_objext
14333 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14335 _lt_linker_boilerplate=`cat conftest.err`
14340 lt_prog_compiler_no_builtin_flag=
14342 if test "$GCC" = yes; then
14343 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14346 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14347 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14348 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 lt_cv_prog_compiler_rtti_exceptions=no
14352 ac_outfile=conftest.$ac_objext
14353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14354 lt_compiler_flag="-fno-rtti -fno-exceptions"
14355 # Insert the option either (1) after the last *FLAGS variable, or
14356 # (2) before a word containing "conftest.", or (3) at the end.
14357 # Note that $ac_compile itself does not contain backslashes and begins
14358 # with a dollar sign (not a hyphen), so the echo should work correctly.
14359 # The option is referenced via a variable to avoid confusing sed.
14360 lt_compile=`echo "$ac_compile" | $SED \
14361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14363 -e 's:$: $lt_compiler_flag:'`
14364 (eval echo "\"\$as_me:14364: $lt_compile\"" >&5)
14365 (eval "$lt_compile" 2>conftest.err)
14367 cat conftest.err >&5
14368 echo "$as_me:14368: \$? = $ac_status" >&5
14369 if (exit $ac_status) && test -s "$ac_outfile"; then
14370 # The compiler can only warn and ignore the option if not recognized
14371 # So say no if there are warnings other than the usual output.
14372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14375 lt_cv_prog_compiler_rtti_exceptions=yes
14381 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14382 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14384 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14392 lt_prog_compiler_wl=
14393 lt_prog_compiler_pic=
14394 lt_prog_compiler_static=
14396 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14397 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14399 if test "$GCC" = yes; then
14400 lt_prog_compiler_wl='-Wl,'
14401 lt_prog_compiler_static='-static'
14405 # All AIX code is PIC.
14406 if test "$host_cpu" = ia64; then
14407 # AIX 5 now supports IA64 processor
14408 lt_prog_compiler_static='-Bstatic'
14413 # FIXME: we need at least 68020 code to build shared libraries, but
14414 # adding the `-m68020' flag to GCC prevents building anything better,
14416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14419 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14420 # PIC is the default for these OSes.
14423 mingw* | pw32* | os2*)
14424 # This hack is so that the source file can tell whether it is being
14425 # built for inclusion in a dll (and should export symbols for example).
14426 lt_prog_compiler_pic='-DDLL_EXPORT'
14429 darwin* | rhapsody*)
14430 # PIC is the default on this platform
14431 # Common symbols not allowed in MH_DYLIB files
14432 lt_prog_compiler_pic='-fno-common'
14436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14437 # Instead, we relocate shared libraries at runtime.
14441 # Just because we use GCC doesn't mean we suddenly get shared libraries
14442 # on systems that don't support them.
14443 lt_prog_compiler_can_build_shared=no
14448 if test -d /usr/nec; then
14449 lt_prog_compiler_pic=-Kconform_pic
14454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14455 # not for PA HP-UX.
14461 lt_prog_compiler_pic='-fPIC'
14467 lt_prog_compiler_pic='-fPIC'
14471 # PORTME Check for flag to pass linker flags through the system compiler.
14474 lt_prog_compiler_wl='-Wl,'
14475 if test "$host_cpu" = ia64; then
14476 # AIX 5 now supports IA64 processor
14477 lt_prog_compiler_static='-Bstatic'
14479 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14483 # PIC is the default on this platform
14484 # Common symbols not allowed in MH_DYLIB files
14485 case $cc_basename in
14487 lt_prog_compiler_pic='-qnocommon'
14488 lt_prog_compiler_wl='-Wl,'
14493 mingw* | pw32* | os2*)
14494 # This hack is so that the source file can tell whether it is being
14495 # built for inclusion in a dll (and should export symbols for example).
14496 lt_prog_compiler_pic='-DDLL_EXPORT'
14499 hpux9* | hpux10* | hpux11*)
14500 lt_prog_compiler_wl='-Wl,'
14501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14502 # not for PA HP-UX.
14508 lt_prog_compiler_pic='+Z'
14511 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14512 lt_prog_compiler_static='${wl}-a ${wl}archive'
14515 irix5* | irix6* | nonstopux*)
14516 lt_prog_compiler_wl='-Wl,'
14517 # PIC (with -KPIC) is the default.
14518 lt_prog_compiler_static='-non_shared'
14522 lt_prog_compiler_pic='-KPIC'
14523 lt_prog_compiler_static='-Bstatic'
14527 case $cc_basename in
14529 lt_prog_compiler_wl='-Wl,'
14530 lt_prog_compiler_pic='-KPIC'
14531 lt_prog_compiler_static='-static'
14533 pgcc* | pgf77* | pgf90* | pgf95*)
14534 # Portland Group compilers (*not* the Pentium gcc compiler,
14535 # which looks to be a dead project)
14536 lt_prog_compiler_wl='-Wl,'
14537 lt_prog_compiler_pic='-fpic'
14538 lt_prog_compiler_static='-Bstatic'
14541 lt_prog_compiler_wl='-Wl,'
14542 # All Alpha code is PIC.
14543 lt_prog_compiler_static='-non_shared'
14548 osf3* | osf4* | osf5*)
14549 lt_prog_compiler_wl='-Wl,'
14550 # All OSF/1 code is PIC.
14551 lt_prog_compiler_static='-non_shared'
14555 lt_prog_compiler_pic='-KPIC'
14556 lt_prog_compiler_static='-Bstatic'
14557 case $cc_basename in
14558 f77* | f90* | f95*)
14559 lt_prog_compiler_wl='-Qoption ld ';;
14561 lt_prog_compiler_wl='-Wl,';;
14566 lt_prog_compiler_wl='-Qoption ld '
14567 lt_prog_compiler_pic='-PIC'
14568 lt_prog_compiler_static='-Bstatic'
14571 sysv4 | sysv4.2uw2* | sysv4.3*)
14572 lt_prog_compiler_wl='-Wl,'
14573 lt_prog_compiler_pic='-KPIC'
14574 lt_prog_compiler_static='-Bstatic'
14578 if test -d /usr/nec ;then
14579 lt_prog_compiler_pic='-Kconform_pic'
14580 lt_prog_compiler_static='-Bstatic'
14584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14585 lt_prog_compiler_wl='-Wl,'
14586 lt_prog_compiler_pic='-KPIC'
14587 lt_prog_compiler_static='-Bstatic'
14591 lt_prog_compiler_wl='-Wl,'
14592 lt_prog_compiler_can_build_shared=no
14596 lt_prog_compiler_pic='-pic'
14597 lt_prog_compiler_static='-Bstatic'
14601 lt_prog_compiler_can_build_shared=no
14606 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14607 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14610 # Check to make sure the PIC flag actually works.
14612 if test -n "$lt_prog_compiler_pic"; then
14614 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14616 if test "${lt_prog_compiler_pic_works+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 lt_prog_compiler_pic_works=no
14620 ac_outfile=conftest.$ac_objext
14621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14623 # Insert the option either (1) after the last *FLAGS variable, or
14624 # (2) before a word containing "conftest.", or (3) at the end.
14625 # Note that $ac_compile itself does not contain backslashes and begins
14626 # with a dollar sign (not a hyphen), so the echo should work correctly.
14627 # The option is referenced via a variable to avoid confusing sed.
14628 lt_compile=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
14632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633 (eval "$lt_compile" 2>conftest.err)
14635 cat conftest.err >&5
14636 echo "$as_me:14636: \$? = $ac_status" >&5
14637 if (exit $ac_status) && test -s "$ac_outfile"; then
14638 # The compiler can only warn and ignore the option if not recognized
14639 # So say no if there are warnings other than the usual output.
14640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14643 lt_prog_compiler_pic_works=yes
14649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14650 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14652 if test x"$lt_prog_compiler_pic_works" = xyes; then
14653 case $lt_prog_compiler_pic in
14655 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14658 lt_prog_compiler_pic=
14659 lt_prog_compiler_can_build_shared=no
14664 # For platforms which do not support PIC, -DPIC is meaningless:
14666 lt_prog_compiler_pic=
14669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14674 # Check to make sure the static flag actually works.
14676 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14677 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14678 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14679 if test "${lt_prog_compiler_static_works+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 lt_prog_compiler_static_works=no
14683 save_LDFLAGS="$LDFLAGS"
14684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14685 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14687 # The linker can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test -s conftest.err; then
14690 # Append any errors to the config.log.
14691 cat conftest.err 1>&5
14692 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14694 if diff conftest.exp conftest.er2 >/dev/null; then
14695 lt_prog_compiler_static_works=yes
14698 lt_prog_compiler_static_works=yes
14702 LDFLAGS="$save_LDFLAGS"
14705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14706 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14708 if test x"$lt_prog_compiler_static_works" = xyes; then
14711 lt_prog_compiler_static=
14715 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14717 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 lt_cv_prog_compiler_c_o=no
14721 $rm -r conftest 2>/dev/null
14725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14727 lt_compiler_flag="-o out/conftest2.$ac_objext"
14728 # Insert the option either (1) after the last *FLAGS variable, or
14729 # (2) before a word containing "conftest.", or (3) at the end.
14730 # Note that $ac_compile itself does not contain backslashes and begins
14731 # with a dollar sign (not a hyphen), so the echo should work correctly.
14732 lt_compile=`echo "$ac_compile" | $SED \
14733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14735 -e 's:$: $lt_compiler_flag:'`
14736 (eval echo "\"\$as_me:14736: $lt_compile\"" >&5)
14737 (eval "$lt_compile" 2>out/conftest.err)
14739 cat out/conftest.err >&5
14740 echo "$as_me:14740: \$? = $ac_status" >&5
14741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14743 # The compiler can only warn and ignore the option if not recognized
14744 # So say no if there are warnings
14745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14748 lt_cv_prog_compiler_c_o=yes
14753 # SGI C++ compiler will create directory out/ii_files/ for
14754 # template instantiation
14755 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14756 $rm out/* && rmdir out
14762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14766 hard_links="nottested"
14767 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14768 # do not overwrite the value of need_locks provided by the user
14769 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14775 ln conftest.a conftest.b 2>&5 || hard_links=no
14776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777 { echo "$as_me:$LINENO: result: $hard_links" >&5
14778 echo "${ECHO_T}$hard_links" >&6; }
14779 if test "$hard_links" = no; then
14780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14788 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14792 allow_undefined_flag=
14793 enable_shared_with_static_runtimes=no
14795 archive_expsym_cmds=
14796 old_archive_From_new_cmds=
14797 old_archive_from_expsyms_cmds=
14798 export_dynamic_flag_spec=
14799 whole_archive_flag_spec=
14800 thread_safe_flag_spec=
14801 hardcode_libdir_flag_spec=
14802 hardcode_libdir_flag_spec_ld=
14803 hardcode_libdir_separator=
14805 hardcode_minus_L=no
14806 hardcode_shlibpath_var=unsupported
14807 link_all_deplibs=unknown
14808 hardcode_automatic=no
14810 module_expsym_cmds=
14811 always_export_symbols=no
14812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14813 # include_expsyms should be a list of space-separated symbols to be *always*
14814 # included in the symbol list
14816 # exclude_expsyms can be an extended regexp of symbols to exclude
14817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14819 # as well as any symbol that contains `d'.
14820 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14822 # platforms (ab)use it in PIC code, but their linkers get confused if
14823 # the symbol is explicitly referenced. Since portable code cannot
14824 # rely on this symbol name, it's probably fine to never include it in
14825 # preloaded symbol tables.
14826 extract_expsyms_cmds=
14827 # Just being paranoid about ensuring that cc_basename is set.
14828 for cc_temp in $compiler""; do
14830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14836 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14839 cygwin* | mingw* | pw32*)
14840 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14841 # When not using gcc, we currently assume that we are using
14842 # Microsoft Visual C++.
14843 if test "$GCC" != yes; then
14848 # we just hope/assume this is gcc and not c89 (= MSVC++)
14857 if test "$with_gnu_ld" = yes; then
14858 # If archive_cmds runs LD, not CC, wlarc should be empty
14861 # Set some defaults for GNU ld with shared library support. These
14862 # are reset later if shared libraries are not supported. Putting them
14863 # here allows them to be overridden if necessary.
14864 runpath_var=LD_RUN_PATH
14865 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14866 export_dynamic_flag_spec='${wl}--export-dynamic'
14867 # ancient GNU ld didn't support --whole-archive et. al.
14868 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14871 whole_archive_flag_spec=
14873 supports_anon_versioning=no
14874 case `$LD -v 2>/dev/null` in
14875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14878 *\ 2.11.*) ;; # other 2.11 versions
14879 *) supports_anon_versioning=yes ;;
14882 # See if GNU ld supports shared libraries.
14884 aix3* | aix4* | aix5*)
14885 # On AIX/PPC, the GNU linker is very broken
14886 if test "$host_cpu" != ia64; then
14890 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14891 *** to be unable to reliably create shared libraries on AIX.
14892 *** Therefore, libtool is disabling shared libraries support. If you
14893 *** really care for shared libraries, you may want to modify your PATH
14894 *** so that a non-GNU linker is found, and then restart.
14901 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)'
14902 hardcode_libdir_flag_spec='-L$libdir'
14903 hardcode_minus_L=yes
14905 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14906 # that the semantics of dynamic libraries on AmigaOS, at least up
14907 # to version 4, is to share data among multiple programs linked
14908 # with the same dynamic library. Since this doesn't match the
14909 # behavior of shared libraries on other platforms, we can't use
14915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14916 allow_undefined_flag=unsupported
14917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14918 # support --undefined. This deserves some investigation. FIXME
14919 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14925 cygwin* | mingw* | pw32*)
14926 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14927 # as there is no search path for DLLs.
14928 hardcode_libdir_flag_spec='-L$libdir'
14929 allow_undefined_flag=unsupported
14930 always_export_symbols=no
14931 enable_shared_with_static_runtimes=yes
14932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14936 # If the export-symbols file already is a .def file (1st line
14937 # is EXPORTS), use it as is; otherwise, prepend...
14938 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14939 cp $export_symbols $output_objdir/$soname.def;
14941 echo EXPORTS > $output_objdir/$soname.def;
14942 cat $export_symbols >> $output_objdir/$soname.def;
14944 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14952 hardcode_shlibpath_var=no
14953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14954 export_dynamic_flag_spec='${wl}-E'
14955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14956 # Instead, shared libraries are loaded at an image base (0x10000000 by
14957 # default) and relocated if they conflict, which is a slow very memory
14958 # consuming and fragmenting process. To avoid this, we pick a random,
14959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14962 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'
14966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14968 case $cc_basename,$host_cpu in
14969 pgcc*) # Portland Group C compiler
14970 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'
14971 tmp_addflag=' $pic_flag'
14973 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14974 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'
14975 tmp_addflag=' $pic_flag -Mnomain' ;;
14976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14977 tmp_addflag=' -i_dynamic' ;;
14978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14979 tmp_addflag=' -i_dynamic -nofor_main' ;;
14980 ifc* | ifort*) # Intel Fortran compiler
14981 tmp_addflag=' -nofor_main' ;;
14983 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14985 if test $supports_anon_versioning = yes; then
14986 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14988 $echo "local: *; };" >> $output_objdir/$libname.ver~
14989 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15007 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15012 *** create shared libraries on Solaris systems. Therefore, libtool
15013 *** is disabling shared libraries support. We urge you to upgrade GNU
15014 *** binutils to release 2.9.1 or newer. Another option is to modify
15015 *** your PATH or compiler configuration so that the native linker is
15016 *** used, and then restart.
15019 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15028 case `$LD -v 2>&1` in
15029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15033 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15034 *** reliably create shared libraries on SCO systems. Therefore, libtool
15035 *** is disabling shared libraries support. We urge you to upgrade GNU
15036 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15037 *** your PATH or compiler configuration so that the native linker is
15038 *** used, and then restart.
15043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15044 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15055 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15057 hardcode_direct=yes
15058 hardcode_shlibpath_var=no
15062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15071 if test "$ld_shlibs" = no; then
15073 hardcode_libdir_flag_spec=
15074 export_dynamic_flag_spec=
15075 whole_archive_flag_spec=
15078 # PORTME fill in a description of your system's linker (not GNU ld)
15081 allow_undefined_flag=unsupported
15082 always_export_symbols=yes
15083 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'
15084 # Note: this linker hardcodes the directories in LIBPATH if there
15085 # are no directories specified by -L.
15086 hardcode_minus_L=yes
15087 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15088 # Neither direct hardcoding nor static linking is supported with a
15090 hardcode_direct=unsupported
15095 if test "$host_cpu" = ia64; then
15096 # On IA64, the linker does run time linking by default, so we don't
15097 # have to do anything special.
15098 aix_use_runtimelinking=no
15099 exp_sym_flag='-Bexport'
15102 # If we're using GNU nm, then we don't want the "-C" option.
15103 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15104 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15105 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'
15107 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'
15109 aix_use_runtimelinking=no
15111 # Test if we are trying to use run time linking or normal
15112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15113 # need to do runtime linking.
15114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15115 for ld_flag in $LDFLAGS; do
15116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15117 aix_use_runtimelinking=yes
15124 exp_sym_flag='-bexport'
15125 no_entry_flag='-bnoentry'
15128 # When large executables or shared objects are built, AIX ld can
15129 # have problems creating the table of contents. If linking a library
15130 # or program results in "error TOC overflow" add -mminimal-toc to
15131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15135 hardcode_direct=yes
15136 hardcode_libdir_separator=':'
15137 link_all_deplibs=yes
15139 if test "$GCC" = yes; then
15140 case $host_os in aix4.[012]|aix4.[012].*)
15141 # We only want to do this on AIX 4.2 and lower, the check
15142 # below for broken collect2 doesn't work under 4.3+
15143 collect2name=`${CC} -print-prog-name=collect2`
15144 if test -f "$collect2name" && \
15145 strings "$collect2name" | grep resolve_lib_name >/dev/null
15147 # We have reworked collect2
15148 hardcode_direct=yes
15150 # We have old collect2
15151 hardcode_direct=unsupported
15152 # It fails to find uninstalled libraries when the uninstalled
15153 # path is not listed in the libpath. Setting hardcode_minus_L
15154 # to unsupported forces relinking
15155 hardcode_minus_L=yes
15156 hardcode_libdir_flag_spec='-L$libdir'
15157 hardcode_libdir_separator=
15161 shared_flag='-shared'
15162 if test "$aix_use_runtimelinking" = yes; then
15163 shared_flag="$shared_flag "'${wl}-G'
15167 if test "$host_cpu" = ia64; then
15168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15169 # chokes on -Wl,-G. The following line is correct:
15172 if test "$aix_use_runtimelinking" = yes; then
15173 shared_flag='${wl}-G'
15175 shared_flag='${wl}-bM:SRE'
15180 # It seems that -bexpall does not export symbols beginning with
15181 # underscore (_), so it is better to generate a list of symbols to export.
15182 always_export_symbols=yes
15183 if test "$aix_use_runtimelinking" = yes; then
15184 # Warning - without using the other runtime loading flags (-brtl),
15185 # -berok will link without error, but may produce a broken library.
15186 allow_undefined_flag='-berok'
15187 # Determine the default libpath from the value encoded in an empty executable.
15188 cat >conftest.$ac_ext <<_ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest$ac_exeext'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15240 # Check for a 64-bit object if we didn't find anything.
15241 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; }
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15250 rm -f core conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15255 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"
15257 if test "$host_cpu" = ia64; then
15258 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15259 allow_undefined_flag="-z nodefs"
15260 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"
15262 # Determine the default libpath from the value encoded in an empty executable.
15263 cat >conftest.$ac_ext <<_ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (ac_try="$ac_link"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_link") 2>conftest.er1
15287 grep -v '^ *+' conftest.er1 >conftest.err
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15315 # Check for a 64-bit object if we didn't find anything.
15316 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; }
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15325 rm -f core conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15330 # Warning - without using the other run time loading flags,
15331 # -berok will link without error, but may produce a broken library.
15332 no_undefined_flag=' ${wl}-bernotok'
15333 allow_undefined_flag=' ${wl}-berok'
15334 # Exported symbols can be pulled into shared objects from archives
15335 whole_archive_flag_spec='$convenience'
15336 archive_cmds_need_lc=yes
15337 # This is similar to how AIX traditionally builds its shared libraries.
15338 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'
15344 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)'
15345 hardcode_libdir_flag_spec='-L$libdir'
15346 hardcode_minus_L=yes
15347 # see comment about different semantics on the GNU ld section
15352 export_dynamic_flag_spec=-rdynamic
15355 cygwin* | mingw* | pw32*)
15356 # When not using gcc, we currently assume that we are using
15357 # Microsoft Visual C++.
15358 # hardcode_libdir_flag_spec is actually meaningless, as there is
15359 # no search path for DLLs.
15360 hardcode_libdir_flag_spec=' '
15361 allow_undefined_flag=unsupported
15362 # Tell ltmain to make .lib files, not .a files.
15364 # Tell ltmain to make .dll files, not .so files.
15366 # FIXME: Setting linknames here is a bad hack.
15367 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15368 # The linker will automatically build a .lib file if we build a DLL.
15369 old_archive_From_new_cmds='true'
15370 # FIXME: Should let the user specify the lib program.
15371 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15372 fix_srcfile_path='`cygpath -w "$srcfile"`'
15373 enable_shared_with_static_runtimes=yes
15376 darwin* | rhapsody*)
15378 rhapsody* | darwin1.[012])
15379 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15383 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15385 case ${MACOSX_DEPLOYMENT_TARGET} in
15387 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15390 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15396 archive_cmds_need_lc=no
15398 hardcode_automatic=yes
15399 hardcode_shlibpath_var=unsupported
15400 whole_archive_flag_spec=''
15401 link_all_deplibs=yes
15402 if test "$GCC" = yes ; then
15403 output_verbose_link_cmd='echo'
15404 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15407 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}'
15408 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}'
15410 case $cc_basename in
15412 output_verbose_link_cmd='echo'
15413 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15414 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15415 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15416 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}'
15417 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}'
15427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_libdir_flag_spec='-L$libdir'
15429 hardcode_shlibpath_var=no
15436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15437 # support. Future versions do this automatically, but an explicit c++rt0.o
15438 # does not break anything, and helps significantly (at the cost of a little
15441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15442 hardcode_libdir_flag_spec='-R$libdir'
15443 hardcode_direct=yes
15444 hardcode_shlibpath_var=no
15447 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15450 hardcode_direct=yes
15451 hardcode_minus_L=yes
15452 hardcode_shlibpath_var=no
15455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15456 freebsd* | kfreebsd*-gnu | dragonfly*)
15457 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15458 hardcode_libdir_flag_spec='-R$libdir'
15459 hardcode_direct=yes
15460 hardcode_shlibpath_var=no
15464 if test "$GCC" = yes; then
15465 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'
15467 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'
15469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15470 hardcode_libdir_separator=:
15471 hardcode_direct=yes
15473 # hardcode_minus_L: Not really in the search PATH,
15474 # but as the default location of the library.
15475 hardcode_minus_L=yes
15476 export_dynamic_flag_spec='${wl}-E'
15480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15485 if test "$with_gnu_ld" = no; then
15486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15487 hardcode_libdir_separator=:
15489 hardcode_direct=yes
15490 export_dynamic_flag_spec='${wl}-E'
15492 # hardcode_minus_L: Not really in the search PATH,
15493 # but as the default location of the library.
15494 hardcode_minus_L=yes
15499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15524 if test "$with_gnu_ld" = no; then
15525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15526 hardcode_libdir_separator=:
15530 hardcode_libdir_flag_spec_ld='+b $libdir'
15532 hardcode_shlibpath_var=no
15535 hardcode_direct=yes
15536 export_dynamic_flag_spec='${wl}-E'
15538 # hardcode_minus_L: Not really in the search PATH,
15539 # but as the default location of the library.
15540 hardcode_minus_L=yes
15546 irix5* | irix6* | nonstopux*)
15547 if test "$GCC" = yes; then
15548 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'
15550 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'
15551 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15554 hardcode_libdir_separator=:
15555 link_all_deplibs=yes
15559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15564 hardcode_libdir_flag_spec='-R$libdir'
15565 hardcode_direct=yes
15566 hardcode_shlibpath_var=no
15570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_direct=yes
15572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15573 hardcode_libdir_separator=:
15574 hardcode_shlibpath_var=no
15578 hardcode_direct=yes
15579 hardcode_shlibpath_var=no
15580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15584 export_dynamic_flag_spec='${wl}-E'
15587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_libdir_flag_spec='-R$libdir'
15592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15600 hardcode_libdir_flag_spec='-L$libdir'
15601 hardcode_minus_L=yes
15602 allow_undefined_flag=unsupported
15603 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'
15604 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15608 if test "$GCC" = yes; then
15609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15610 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'
15612 allow_undefined_flag=' -expect_unresolved \*'
15613 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'
15615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15616 hardcode_libdir_separator=:
15619 osf4* | osf5*) # as osf3* with the addition of -msym flag
15620 if test "$GCC" = yes; then
15621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15622 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'
15623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15625 allow_undefined_flag=' -expect_unresolved \*'
15626 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'
15627 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15628 $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'
15630 # Both c and cxx compiler support -rpath directly
15631 hardcode_libdir_flag_spec='-rpath $libdir'
15633 hardcode_libdir_separator=:
15637 no_undefined_flag=' -z text'
15638 if test "$GCC" = yes; then
15640 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15645 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15649 hardcode_libdir_flag_spec='-R$libdir'
15650 hardcode_shlibpath_var=no
15652 solaris2.[0-5] | solaris2.[0-5].*) ;;
15654 # The compiler driver will combine linker options so we
15655 # cannot just pass the convience library names through
15656 # without $wl, iff we do not link with $LD.
15657 # Luckily, gcc supports the same syntax we need for Sun Studio.
15658 # Supported since Solaris 2.6 (maybe 2.5.1?)
15661 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15663 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' ;;
15666 link_all_deplibs=yes
15670 if test "x$host_vendor" = xsequent; then
15671 # Use $CC to link under sequent, because it throws in some extra .o
15672 # files that make .init and .fini sections work.
15673 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15675 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_libdir_flag_spec='-L$libdir'
15678 hardcode_direct=yes
15679 hardcode_minus_L=yes
15680 hardcode_shlibpath_var=no
15684 case $host_vendor in
15686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687 hardcode_direct=yes # is this really true???
15690 ## LD is ld it makes a PLAMLIB
15691 ## CC just makes a GrossModule.
15692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15693 reload_cmds='$CC -r -o $output$reload_objs'
15697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15701 runpath_var='LD_RUN_PATH'
15702 hardcode_shlibpath_var=no
15706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_shlibpath_var=no
15708 export_dynamic_flag_spec='-Bexport'
15712 if test -d /usr/nec; then
15713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_shlibpath_var=no
15715 runpath_var=LD_RUN_PATH
15716 hardcode_runpath_var=yes
15721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15722 no_undefined_flag='${wl}-z,text'
15723 archive_cmds_need_lc=no
15724 hardcode_shlibpath_var=no
15725 runpath_var='LD_RUN_PATH'
15727 if test "$GCC" = yes; then
15728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15736 sysv5* | sco3.2v5* | sco5v6*)
15737 # Note: We can NOT use -z defs as we might desire, because we do not
15738 # link with -lc, and that would cause any symbols used from libc to
15739 # always be unresolved, which means just about no library would
15740 # ever link correctly. If we're not using GNU ld we use -z text
15741 # though, which does catch some bad symbols but isn't as heavy-handed
15743 no_undefined_flag='${wl}-z,text'
15744 allow_undefined_flag='${wl}-z,nodefs'
15745 archive_cmds_need_lc=no
15746 hardcode_shlibpath_var=no
15747 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15748 hardcode_libdir_separator=':'
15749 link_all_deplibs=yes
15750 export_dynamic_flag_spec='${wl}-Bexport'
15751 runpath_var='LD_RUN_PATH'
15753 if test "$GCC" = yes; then
15754 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 hardcode_libdir_flag_spec='-L$libdir'
15765 hardcode_shlibpath_var=no
15774 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15775 echo "${ECHO_T}$ld_shlibs" >&6; }
15776 test "$ld_shlibs" = no && can_build_shared=no
15779 # Do we need to explicitly link libc?
15781 case "x$archive_cmds_need_lc" in
15783 # Assume -lc should be added
15784 archive_cmds_need_lc=yes
15786 if test "$enable_shared" = yes && test "$GCC" = yes; then
15787 case $archive_cmds in
15789 # FIXME: we may have to deal with multi-command sequences.
15792 # Test whether the compiler implicitly links with -lc since on some
15793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15794 # to ld, don't add -lc before -lgcc.
15795 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } 2>conftest.err; then
15807 libobjs=conftest.$ac_objext
15809 wl=$lt_prog_compiler_wl
15810 pic_flag=$lt_prog_compiler_pic
15816 lt_save_allow_undefined_flag=$allow_undefined_flag
15817 allow_undefined_flag=
15818 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15819 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }
15824 archive_cmds_need_lc=no
15826 archive_cmds_need_lc=yes
15828 allow_undefined_flag=$lt_save_allow_undefined_flag
15830 cat conftest.err 1>&5
15833 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15834 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15843 library_names_spec=
15844 libname_spec='lib$name'
15848 postuninstall_cmds=
15852 shlibpath_overrides_runpath=unknown
15854 dynamic_linker="$host_os ld.so"
15855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15856 if test "$GCC" = yes; then
15857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15859 # if the path contains ";" then we assume it to be the separator
15860 # otherwise default to the standard path separator (i.e. ":") - it is
15861 # assumed that no part of a normal pathname contains ";" but that should
15862 # okay in the real world where ";" in dirpaths is itself problematic.
15863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15870 need_lib_prefix=unknown
15871 hardcode_into_libs=no
15873 # when you set need_version to no, make sure it does not cause -set_version
15874 # flags to be left without arguments
15875 need_version=unknown
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15881 shlibpath_var=LIBPATH
15883 # AIX 3 has no versioning support, so we append a major version to the name.
15884 soname_spec='${libname}${release}${shared_ext}$major'
15891 hardcode_into_libs=yes
15892 if test "$host_cpu" = ia64; then
15893 # AIX 5 supports IA64
15894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15895 shlibpath_var=LD_LIBRARY_PATH
15897 # With GCC up to 2.95.x, collect2 would create an import file
15898 # for dependence libraries. The import file would start with
15899 # the line `#! .'. This would cause the generated library to
15900 # depend on `.', always an invalid library. This was fixed in
15901 # development snapshots of GCC prior to 3.0.
15903 aix4 | aix4.[01] | aix4.[01].*)
15904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15909 can_build_shared=no
15913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15914 # soname into executable. Probably we can add versioning support to
15915 # collect2, so additional links can be useful in future.
15916 if test "$aix_use_runtimelinking" = yes; then
15917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15918 # instead of lib<name>.a to let people know that these are not
15919 # typical AIX shared libraries.
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 # We preserve .a as extension for shared libraries through AIX4.2
15923 # and later when we are not doing run time linking.
15924 library_names_spec='${libname}${release}.a $libname.a'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15927 shlibpath_var=LIBPATH
15932 library_names_spec='$libname.ixlibrary $libname.a'
15933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15934 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'
15938 library_names_spec='${libname}${shared_ext}'
15939 dynamic_linker="$host_os ld.so"
15940 shlibpath_var=LIBRARY_PATH
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15952 # the default ld.so.conf also contains /usr/contrib/lib and
15953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15954 # libtool to hard-code these into programs
15957 cygwin* | mingw* | pw32*)
15958 version_type=windows
15963 case $GCC,$host_os in
15964 yes,cygwin* | yes,mingw* | yes,pw32*)
15965 library_names_spec='$libname.dll.a'
15966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15967 postinstall_cmds='base_file=`basename \${file}`~
15968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15969 dldir=$destdir/`dirname \$dlpath`~
15970 test -d \$dldir || mkdir -p \$dldir~
15971 $install_prog $dir/$dlname \$dldir/$dlname~
15972 chmod a+x \$dldir/$dlname'
15973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15974 dlpath=$dir/\$dldll~
15976 shlibpath_overrides_runpath=yes
15980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15985 # MinGW DLLs use traditional 'lib' prefix
15986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15989 # It is most probably a Windows format PATH printed by
15990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15991 # path with ; separators, and with drive letters. We can handle the
15992 # drive letters (cygwin fileutils understands them), so leave them,
15993 # especially as we might pass files found there to a mingw objdump,
15994 # which wouldn't understand a cygwinified path. Ahh.
15995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16001 # pw32 DLLs use 'pw' prefix rather than 'lib'
16002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16011 dynamic_linker='Win32 ld.exe'
16012 # FIXME: first we should search . and the directory the executable is in
16016 darwin* | rhapsody*)
16017 dynamic_linker="$host_os dyld"
16018 version_type=darwin
16021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16022 soname_spec='${libname}${release}${major}$shared_ext'
16023 shlibpath_overrides_runpath=yes
16024 shlibpath_var=DYLD_LIBRARY_PATH
16025 shrext_cmds='.dylib'
16026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16027 if test "$GCC" = yes; then
16028 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"`
16030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/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 shlibpath_var=LD_LIBRARY_PATH
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=no
16056 hardcode_into_libs=yes
16057 dynamic_linker='GNU ld.so'
16060 freebsd* | dragonfly*)
16061 # DragonFly does not have aout. When/if they implement a new
16062 # versioning mechanism, adjust this.
16063 if test -x /usr/bin/objformat; then
16064 objformat=`/usr/bin/objformat`
16067 freebsd[123]*) objformat=aout ;;
16068 *) objformat=elf ;;
16071 version_type=freebsd-$objformat
16072 case $version_type in
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16083 shlibpath_var=LD_LIBRARY_PATH
16086 shlibpath_overrides_runpath=yes
16088 freebsd3.[01]* | freebsdelf3.[01]*)
16089 shlibpath_overrides_runpath=yes
16090 hardcode_into_libs=yes
16092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16094 shlibpath_overrides_runpath=no
16095 hardcode_into_libs=yes
16097 freebsd*) # from 4.6 on
16098 shlibpath_overrides_runpath=yes
16099 hardcode_into_libs=yes
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 hardcode_into_libs=yes
16114 hpux9* | hpux10* | hpux11*)
16115 # Give a soname corresponding to the major version so that dld.sl refuses to
16116 # link against other versions.
16123 hardcode_into_libs=yes
16124 dynamic_linker="$host_os dld.so"
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 if test "X$HPUX_IA64_MODE" = X32; then
16130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16138 hardcode_into_libs=yes
16139 dynamic_linker="$host_os dld.sl"
16140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16149 dynamic_linker="$host_os dld.sl"
16150 shlibpath_var=SHLIB_PATH
16151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16157 postinstall_cmds='chmod 555 $lib'
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=no
16169 hardcode_into_libs=yes
16172 irix5* | irix6* | nonstopux*)
16174 nonstopux*) version_type=nonstopux ;;
16176 if test "$lt_cv_prog_gnu_ld" = yes; then
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16187 irix5* | nonstopux*)
16188 libsuff= shlibsuff=
16191 case $LD in # libtool.m4 will add one of these switches to LD
16192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16193 libsuff= shlibsuff= libmagic=32-bit;;
16194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16195 libsuff=32 shlibsuff=N32 libmagic=N32;;
16196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16198 *) libsuff= shlibsuff= libmagic=never-match;;
16202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16203 shlibpath_overrides_runpath=no
16204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16206 hardcode_into_libs=yes
16209 # No shared lib support for Linux oldld, aout, or coff.
16210 linux*oldld* | linux*aout* | linux*coff*)
16214 # This must be Linux ELF.
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16222 shlibpath_var=LD_LIBRARY_PATH
16223 shlibpath_overrides_runpath=no
16224 # This implies no fast_install, which is unacceptable.
16225 # Some rework will be needed to allow for fast_install
16226 # before this can be enabled.
16227 hardcode_into_libs=yes
16229 # Append ld.so.conf contents to the search path
16230 if test -f /etc/ld.so.conf; then
16231 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' ' '`
16232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16235 # We used to test for /lib/ld.so.1 and disable shared libraries on
16236 # powerpc, because MkLinux only supported shared libraries with the
16237 # GNU dynamic linker. Since this was broken with cross compilers,
16238 # most powerpc-linux boxes support dynamic linking these days and
16239 # people can always --disable-shared, the test was removed, and we
16240 # assume the GNU/Linux dynamic linker is in use.
16241 dynamic_linker='GNU/Linux ld.so'
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 shlibpath_overrides_runpath=no
16252 hardcode_into_libs=yes
16253 dynamic_linker='GNU ld.so'
16260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16263 dynamic_linker='NetBSD (a.out) ld.so'
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 dynamic_linker='NetBSD ld.elf_so'
16269 shlibpath_var=LD_LIBRARY_PATH
16270 shlibpath_overrides_runpath=yes
16271 hardcode_into_libs=yes
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=yes
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=yes
16293 sys_lib_dlsearch_path_spec="/usr/lib"
16295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16298 *) need_version=no ;;
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16305 openbsd2.[89] | openbsd2.[89].*)
16306 shlibpath_overrides_runpath=no
16309 shlibpath_overrides_runpath=yes
16313 shlibpath_overrides_runpath=yes
16318 libname_spec='$name'
16321 library_names_spec='$libname${shared_ext} $libname.a'
16322 dynamic_linker='OS/2 ld.exe'
16323 shlibpath_var=LIBPATH
16326 osf3* | osf4* | osf5*)
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 shlibpath_overrides_runpath=yes
16345 hardcode_into_libs=yes
16346 # ldd complains unless libraries are executable
16347 postinstall_cmds='chmod +x $lib'
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=yes
16356 if test "$with_gnu_ld" = yes; then
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365 soname_spec='${libname}${release}${shared_ext}$major'
16366 shlibpath_var=LD_LIBRARY_PATH
16367 case $host_vendor in
16369 shlibpath_overrides_runpath=no
16371 export_dynamic_flag_spec='${wl}-Blargedynsym'
16372 runpath_var=LD_RUN_PATH
16380 shlibpath_overrides_runpath=no
16381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16387 if test -d /usr/nec ;then
16389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16390 soname_spec='$libname${shared_ext}.$major'
16391 shlibpath_var=LD_LIBRARY_PATH
16395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16396 version_type=freebsd-elf
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 hardcode_into_libs=yes
16403 if test "$with_gnu_ld" = yes; then
16404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16405 shlibpath_overrides_runpath=no
16407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16408 shlibpath_overrides_runpath=yes
16411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16415 sys_lib_dlsearch_path_spec='/usr/lib'
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16430 echo "${ECHO_T}$dynamic_linker" >&6; }
16431 test "$dynamic_linker" = no && can_build_shared=no
16433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16434 if test "$GCC" = yes; then
16435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16438 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16439 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16441 if test -n "$hardcode_libdir_flag_spec" || \
16442 test -n "$runpath_var" || \
16443 test "X$hardcode_automatic" = "Xyes" ; then
16445 # We can hardcode non-existant directories.
16446 if test "$hardcode_direct" != no &&
16447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16448 # have to relink, otherwise we might link with an installed library
16449 # when we should be linking with a yet-to-be-installed one
16450 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16451 test "$hardcode_minus_L" != no; then
16452 # Linking always hardcodes the temporary library directory.
16453 hardcode_action=relink
16455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16456 hardcode_action=immediate
16459 # We cannot hardcode anything, or else we can only hardcode existing
16461 hardcode_action=unsupported
16463 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16464 echo "${ECHO_T}$hardcode_action" >&6; }
16466 if test "$hardcode_action" = relink; then
16467 # Fast installation is not supported
16468 enable_fast_install=no
16469 elif test "$shlibpath_overrides_runpath" = yes ||
16470 test "$enable_shared" = no; then
16471 # Fast installation is not necessary
16472 enable_fast_install=needless
16477 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16478 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16479 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16480 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16481 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16482 { echo "$as_me:$LINENO: result: yes" >&5
16483 echo "${ECHO_T}yes" >&6; }
16485 # FIXME - insert some real tests, host_os isn't really good enough
16488 if test -n "$STRIP" ; then
16489 striplib="$STRIP -x"
16490 { echo "$as_me:$LINENO: result: yes" >&5
16491 echo "${ECHO_T}yes" >&6; }
16493 { echo "$as_me:$LINENO: result: no" >&5
16494 echo "${ECHO_T}no" >&6; }
16498 { echo "$as_me:$LINENO: result: no" >&5
16499 echo "${ECHO_T}no" >&6; }
16504 if test "x$enable_dlopen" != xyes; then
16505 enable_dlopen=unknown
16506 enable_dlopen_self=unknown
16507 enable_dlopen_self_static=unknown
16514 lt_cv_dlopen="load_add_on"
16516 lt_cv_dlopen_self=yes
16520 lt_cv_dlopen="LoadLibrary"
16525 lt_cv_dlopen="dlopen"
16530 # if libdl is installed we need to link against it
16531 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 ac_check_lib_save_LIBS=$LIBS
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest$ac_exeext'
16585 { (case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_try") 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_cv_lib_dl_dlopen=yes
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ac_cv_lib_dl_dlopen=no
16602 rm -f core conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
16604 LIBS=$ac_check_lib_save_LIBS
16606 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16607 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16608 if test $ac_cv_lib_dl_dlopen = yes; then
16609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16612 lt_cv_dlopen="dyld"
16614 lt_cv_dlopen_self=yes
16621 { echo "$as_me:$LINENO: checking for shl_load" >&5
16622 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16623 if test "${ac_cv_func_shl_load+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16634 #define shl_load innocuous_shl_load
16636 /* System header to define __stub macros and hopefully few prototypes,
16637 which can conflict with char shl_load (); below.
16638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639 <limits.h> exists even on freestanding compilers. */
16642 # include <limits.h>
16644 # include <assert.h>
16649 /* Override any GCC internal prototype to avoid an error.
16650 Use char because int might match the return type of a GCC
16651 builtin and then its argument prototype would still apply. */
16656 /* The GNU C library defines this for functions which it implements
16657 to always fail with ENOSYS. Some functions are actually named
16658 something starting with __ and the normal name is an alias. */
16659 #if defined __stub_shl_load || defined __stub___shl_load
16666 return shl_load ();
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (ac_try="$ac_link"
16673 case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_link") 2>conftest.er1
16680 grep -v '^ *+' conftest.er1 >conftest.err
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest$ac_exeext'
16696 { (case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_try") 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_func_shl_load=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16710 ac_cv_func_shl_load=no
16713 rm -f core conftest.err conftest.$ac_objext \
16714 conftest$ac_exeext conftest.$ac_ext
16716 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16717 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16718 if test $ac_cv_func_shl_load = yes; then
16719 lt_cv_dlopen="shl_load"
16721 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16722 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16723 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 ac_check_lib_save_LIBS=$LIBS
16728 cat >conftest.$ac_ext <<_ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16735 /* Override any GCC internal prototype to avoid an error.
16736 Use char because int might match the return type of a GCC
16737 builtin and then its argument prototype would still apply. */
16745 return shl_load ();
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (ac_try="$ac_link"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_link") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest$ac_exeext'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_lib_dld_shl_load=yes
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_cv_lib_dld_shl_load=no
16792 rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16796 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16797 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16798 if test $ac_cv_lib_dld_shl_load = yes; then
16799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16801 { echo "$as_me:$LINENO: checking for dlopen" >&5
16802 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16803 if test "${ac_cv_func_dlopen+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16814 #define dlopen innocuous_dlopen
16816 /* System header to define __stub macros and hopefully few prototypes,
16817 which can conflict with char dlopen (); below.
16818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819 <limits.h> exists even on freestanding compilers. */
16822 # include <limits.h>
16824 # include <assert.h>
16829 /* Override any GCC internal prototype to avoid an error.
16830 Use char because int might match the return type of a GCC
16831 builtin and then its argument prototype would still apply. */
16836 /* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839 #if defined __stub_dlopen || defined __stub___dlopen
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_func_dlopen=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 ac_cv_func_dlopen=no
16893 rm -f core conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16896 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16897 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16898 if test $ac_cv_func_dlopen = yes; then
16899 lt_cv_dlopen="dlopen"
16901 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 ac_check_lib_save_LIBS=$LIBS
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16915 /* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (ac_try="$ac_link"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_link") 2>conftest.er1
16939 grep -v '^ *+' conftest.er1 >conftest.err
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest$ac_exeext'
16955 { (case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_try") 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 ac_cv_lib_dl_dlopen=yes
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_cv_lib_dl_dlopen=no
16972 rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16974 LIBS=$ac_check_lib_save_LIBS
16976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16978 if test $ac_cv_lib_dl_dlopen = yes; then
16979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16981 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 ac_check_lib_save_LIBS=$LIBS
16987 LIBS="-lsvld $LIBS"
16988 cat >conftest.$ac_ext <<_ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16995 /* Override any GCC internal prototype to avoid an error.
16996 Use char because int might match the return type of a GCC
16997 builtin and then its argument prototype would still apply. */
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17019 grep -v '^ *+' conftest.er1 >conftest.err
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_try") 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_lib_svld_dlopen=yes
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ac_cv_lib_svld_dlopen=no
17052 rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17056 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17058 if test $ac_cv_lib_svld_dlopen = yes; then
17059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17061 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 ac_check_lib_save_LIBS=$LIBS
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17085 return dld_link ();
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (ac_try="$ac_link"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_link") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest$ac_exeext'
17115 { (case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_try") 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_cv_lib_dld_dld_link=yes
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_lib_dld_dld_link=no
17132 rm -f core conftest.err conftest.$ac_objext \
17133 conftest$ac_exeext conftest.$ac_ext
17134 LIBS=$ac_check_lib_save_LIBS
17136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17137 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17138 if test $ac_cv_lib_dld_dld_link = yes; then
17139 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17160 if test "x$lt_cv_dlopen" != xno; then
17166 case $lt_cv_dlopen in
17168 save_CPPFLAGS="$CPPFLAGS"
17169 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17171 save_LDFLAGS="$LDFLAGS"
17172 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17175 LIBS="$lt_cv_dlopen_libs $LIBS"
17177 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17178 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17179 if test "${lt_cv_dlopen_self+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 if test "$cross_compiling" = yes; then :
17183 lt_cv_dlopen_self=cross
17185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17186 lt_status=$lt_dlunknown
17187 cat > conftest.$ac_ext <<EOF
17188 #line 17188 "configure"
17189 #include "confdefs.h"
17198 # define LT_DLGLOBAL RTLD_GLOBAL
17201 # define LT_DLGLOBAL DL_GLOBAL
17203 # define LT_DLGLOBAL 0
17207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17208 find out it does not work in some platform. */
17209 #ifndef LT_DLLAZY_OR_NOW
17211 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17214 # define LT_DLLAZY_OR_NOW DL_LAZY
17217 # define LT_DLLAZY_OR_NOW RTLD_NOW
17220 # define LT_DLLAZY_OR_NOW DL_NOW
17222 # define LT_DLLAZY_OR_NOW 0
17230 extern "C" void exit (int);
17233 void fnord() { int i=42;}
17236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17237 int status = $lt_dlunknown;
17241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17242 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17243 /* dlclose (self); */
17251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17252 (eval $ac_link) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17256 (./conftest; exit; ) >&5 2>/dev/null
17258 case x$lt_status in
17259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17264 # compilation failed
17265 lt_cv_dlopen_self=no
17272 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17275 if test "x$lt_cv_dlopen_self" = xyes; then
17276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17277 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17279 if test "${lt_cv_dlopen_self_static+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 if test "$cross_compiling" = yes; then :
17283 lt_cv_dlopen_self_static=cross
17285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17286 lt_status=$lt_dlunknown
17287 cat > conftest.$ac_ext <<EOF
17288 #line 17288 "configure"
17289 #include "confdefs.h"
17298 # define LT_DLGLOBAL RTLD_GLOBAL
17301 # define LT_DLGLOBAL DL_GLOBAL
17303 # define LT_DLGLOBAL 0
17307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17308 find out it does not work in some platform. */
17309 #ifndef LT_DLLAZY_OR_NOW
17311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17314 # define LT_DLLAZY_OR_NOW DL_LAZY
17317 # define LT_DLLAZY_OR_NOW RTLD_NOW
17320 # define LT_DLLAZY_OR_NOW DL_NOW
17322 # define LT_DLLAZY_OR_NOW 0
17330 extern "C" void exit (int);
17333 void fnord() { int i=42;}
17336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17337 int status = $lt_dlunknown;
17341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17343 /* dlclose (self); */
17351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352 (eval $ac_link) 2>&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17356 (./conftest; exit; ) >&5 2>/dev/null
17358 case x$lt_status in
17359 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17360 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17361 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17364 # compilation failed
17365 lt_cv_dlopen_self_static=no
17372 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17373 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17376 CPPFLAGS="$save_CPPFLAGS"
17377 LDFLAGS="$save_LDFLAGS"
17382 case $lt_cv_dlopen_self in
17383 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17384 *) enable_dlopen_self=unknown ;;
17387 case $lt_cv_dlopen_self_static in
17388 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17389 *) enable_dlopen_self_static=unknown ;;
17394 # Report which library types will actually be built
17395 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17396 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17397 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17398 echo "${ECHO_T}$can_build_shared" >&6; }
17400 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17401 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17402 test "$can_build_shared" = "no" && enable_shared=no
17404 # On AIX, shared libraries and static libraries use the same namespace, and
17405 # are all built from PIC.
17408 test "$enable_shared" = yes && enable_static=no
17409 if test -n "$RANLIB"; then
17410 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17411 postinstall_cmds='$RANLIB $lib'
17416 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17417 test "$enable_shared" = yes && enable_static=no
17421 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17422 echo "${ECHO_T}$enable_shared" >&6; }
17424 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17425 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17426 # Make sure either enable_shared or enable_static is yes.
17427 test "$enable_shared" = yes || enable_static=yes
17428 { echo "$as_me:$LINENO: result: $enable_static" >&5
17429 echo "${ECHO_T}$enable_static" >&6; }
17431 # The else clause should only fire when bootstrapping the
17432 # libtool distribution, otherwise you forgot to ship ltmain.sh
17433 # with your package, and you will get complaints that there are
17434 # no rules to generate ltmain.sh.
17435 if test -f "$ltmain"; then
17436 # See if we are running on zsh, and set the options which allow our commands through
17437 # without removal of \ escapes.
17438 if test -n "${ZSH_VERSION+set}" ; then
17439 setopt NO_GLOB_SUBST
17441 # Now quote all the things that may contain metacharacters while being
17442 # careful not to overquote the AC_SUBSTed values. We take copies of the
17443 # variables and quote the copies for generation of the libtool script.
17444 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17446 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17447 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17448 deplibs_check_method reload_flag reload_cmds need_locks \
17449 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17450 lt_cv_sys_global_symbol_to_c_name_address \
17451 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17452 old_postinstall_cmds old_postuninstall_cmds \
17456 lt_prog_compiler_wl \
17457 lt_prog_compiler_pic \
17458 lt_prog_compiler_static \
17459 lt_prog_compiler_no_builtin_flag \
17460 export_dynamic_flag_spec \
17461 thread_safe_flag_spec \
17462 whole_archive_flag_spec \
17463 enable_shared_with_static_runtimes \
17465 old_archive_from_new_cmds \
17470 compiler_lib_search_path \
17472 archive_expsym_cmds \
17474 postuninstall_cmds \
17475 old_archive_from_expsyms_cmds \
17476 allow_undefined_flag \
17477 no_undefined_flag \
17478 export_symbols_cmds \
17479 hardcode_libdir_flag_spec \
17480 hardcode_libdir_flag_spec_ld \
17481 hardcode_libdir_separator \
17482 hardcode_automatic \
17484 module_expsym_cmds \
17485 lt_cv_prog_compiler_c_o \
17487 include_expsyms; do
17490 old_archive_cmds | \
17491 old_archive_from_new_cmds | \
17493 archive_expsym_cmds | \
17495 module_expsym_cmds | \
17496 old_archive_from_expsyms_cmds | \
17497 export_symbols_cmds | \
17498 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17499 postinstall_cmds | postuninstall_cmds | \
17500 old_postinstall_cmds | old_postuninstall_cmds | \
17501 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17502 # Double-quote double-evaled strings.
17503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17512 *'\$0 --fallback-echo"')
17513 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17517 cfgfile="${ofile}T"
17518 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17520 { echo "$as_me:$LINENO: creating $ofile" >&5
17521 echo "$as_me: creating $ofile" >&6;}
17523 cat <<__EOF__ >> "$cfgfile"
17526 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17527 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17528 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17530 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17531 # Free Software Foundation, Inc.
17533 # This file is part of GNU Libtool:
17534 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17536 # This program is free software; you can redistribute it and/or modify
17537 # it under the terms of the GNU General Public License as published by
17538 # the Free Software Foundation; either version 2 of the License, or
17539 # (at your option) any later version.
17541 # This program is distributed in the hope that it will be useful, but
17542 # WITHOUT ANY WARRANTY; without even the implied warranty of
17543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17544 # General Public License for more details.
17546 # You should have received a copy of the GNU General Public License
17547 # along with this program; if not, write to the Free Software
17548 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17550 # As a special exception to the GNU General Public License, if you
17551 # distribute this file as part of a program that contains a
17552 # configuration script generated by Autoconf, you may include it under
17553 # the same distribution terms that you use for the rest of that program.
17555 # A sed program that does not truncate output.
17558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17559 Xsed="$SED -e 1s/^X//"
17561 # The HP-UX ksh and POSIX shell print the target directory to stdout
17562 # if CDPATH is set.
17563 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17565 # The names of the tagged configurations supported by this script.
17568 # ### BEGIN LIBTOOL CONFIG
17570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17572 # Shell to use when invoking shell scripts.
17575 # Whether or not to build shared libraries.
17576 build_libtool_libs=$enable_shared
17578 # Whether or not to build static libraries.
17579 build_old_libs=$enable_static
17581 # Whether or not to add -lc for building shared libraries.
17582 build_libtool_need_lc=$archive_cmds_need_lc
17584 # Whether or not to disallow shared libs when runtime libs are static
17585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17587 # Whether or not to optimize for fast installation.
17588 fast_install=$enable_fast_install
17591 host_alias=$host_alias
17595 # The build system.
17596 build_alias=$build_alias
17600 # An echo program that does not interpret backslashes.
17605 AR_FLAGS=$lt_AR_FLAGS
17610 # LTCC compiler flags.
17611 LTCFLAGS=$lt_LTCFLAGS
17613 # A language-specific compiler.
17616 # Is the compiler the GNU C compiler?
17622 # The linker used to build libraries.
17625 # Whether we need hard or soft links.
17628 # A BSD-compatible nm program.
17631 # A symbol stripping program
17634 # Used to examine libraries when file_magic_cmd begins "file"
17635 MAGIC_CMD=$MAGIC_CMD
17637 # Used on cygwin: DLL creation program.
17640 # Used on cygwin: object dumper.
17643 # Used on cygwin: assembler.
17646 # The name of the directory that contains temporary libtool files.
17649 # How to create reloadable object files.
17650 reload_flag=$lt_reload_flag
17651 reload_cmds=$lt_reload_cmds
17653 # How to pass a linker flag through the compiler.
17654 wl=$lt_lt_prog_compiler_wl
17656 # Object file suffix (normally "o").
17657 objext="$ac_objext"
17659 # Old archive suffix (normally "a").
17662 # Shared library suffix (normally ".so").
17663 shrext_cmds='$shrext_cmds'
17665 # Executable file suffix (normally "").
17668 # Additional compiler flags for building library objects.
17669 pic_flag=$lt_lt_prog_compiler_pic
17672 # What is the maximum length of a command?
17673 max_cmd_len=$lt_cv_sys_max_cmd_len
17675 # Does compiler simultaneously support -c and -o options?
17676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17678 # Must we lock files when doing compilation?
17679 need_locks=$lt_need_locks
17681 # Do we need the lib prefix for modules?
17682 need_lib_prefix=$need_lib_prefix
17684 # Do we need a version for libraries?
17685 need_version=$need_version
17687 # Whether dlopen is supported.
17688 dlopen_support=$enable_dlopen
17690 # Whether dlopen of programs is supported.
17691 dlopen_self=$enable_dlopen_self
17693 # Whether dlopen of statically linked programs is supported.
17694 dlopen_self_static=$enable_dlopen_self_static
17696 # Compiler flag to prevent dynamic linking.
17697 link_static_flag=$lt_lt_prog_compiler_static
17699 # Compiler flag to turn off builtin functions.
17700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17702 # Compiler flag to allow reflexive dlopens.
17703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17705 # Compiler flag to generate shared objects directly from archives.
17706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17708 # Compiler flag to generate thread-safe objects.
17709 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17711 # Library versioning type.
17712 version_type=$version_type
17714 # Format of library name prefix.
17715 libname_spec=$lt_libname_spec
17717 # List of archive names. First name is the real one, the rest are links.
17718 # The last name is the one that the linker finds with -lNAME.
17719 library_names_spec=$lt_library_names_spec
17721 # The coded name of the library, if different from the real name.
17722 soname_spec=$lt_soname_spec
17724 # Commands used to build and install an old-style archive.
17726 old_archive_cmds=$lt_old_archive_cmds
17727 old_postinstall_cmds=$lt_old_postinstall_cmds
17728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17730 # Create an old-style archive from a shared archive.
17731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17733 # Create a temporary old-style archive to link instead of a shared archive.
17734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17736 # Commands used to build and install a shared archive.
17737 archive_cmds=$lt_archive_cmds
17738 archive_expsym_cmds=$lt_archive_expsym_cmds
17739 postinstall_cmds=$lt_postinstall_cmds
17740 postuninstall_cmds=$lt_postuninstall_cmds
17742 # Commands used to build a loadable module (assumed same as above if empty)
17743 module_cmds=$lt_module_cmds
17744 module_expsym_cmds=$lt_module_expsym_cmds
17746 # Commands to strip libraries.
17747 old_striplib=$lt_old_striplib
17748 striplib=$lt_striplib
17750 # Dependencies to place before the objects being linked to create a
17752 predep_objects=$lt_predep_objects
17754 # Dependencies to place after the objects being linked to create a
17756 postdep_objects=$lt_postdep_objects
17758 # Dependencies to place before the objects being linked to create a
17760 predeps=$lt_predeps
17762 # Dependencies to place after the objects being linked to create a
17764 postdeps=$lt_postdeps
17766 # The library search path used internally by the compiler when linking
17767 # a shared library.
17768 compiler_lib_search_path=$lt_compiler_lib_search_path
17770 # Method to check whether dependent libraries are shared objects.
17771 deplibs_check_method=$lt_deplibs_check_method
17773 # Command to use when deplibs_check_method == file_magic.
17774 file_magic_cmd=$lt_file_magic_cmd
17776 # Flag that allows shared libraries with undefined symbols to be built.
17777 allow_undefined_flag=$lt_allow_undefined_flag
17779 # Flag that forces no undefined symbols.
17780 no_undefined_flag=$lt_no_undefined_flag
17782 # Commands used to finish a libtool library installation in a directory.
17783 finish_cmds=$lt_finish_cmds
17785 # Same as above, but a single script fragment to be evaled but not shown.
17786 finish_eval=$lt_finish_eval
17788 # Take the output of nm and produce a listing of raw symbols and C names.
17789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17791 # Transform the output of nm in a proper C declaration
17792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17794 # Transform the output of nm in a C name address pair
17795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17797 # This is the shared library runtime path variable.
17798 runpath_var=$runpath_var
17800 # This is the shared library path variable.
17801 shlibpath_var=$shlibpath_var
17803 # Is shlibpath searched before the hard-coded library search path?
17804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17806 # How to hardcode a shared library path into an executable.
17807 hardcode_action=$hardcode_action
17809 # Whether we should hardcode library paths into libraries.
17810 hardcode_into_libs=$hardcode_into_libs
17812 # Flag to hardcode \$libdir into a binary during linking.
17813 # This must work even if \$libdir does not exist.
17814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17816 # If ld is used when linking, flag to hardcode \$libdir into
17817 # a binary during linking. This must work even if \$libdir does
17819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17821 # Whether we need a single -rpath flag with a separated argument.
17822 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17825 # resulting binary.
17826 hardcode_direct=$hardcode_direct
17828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17829 # resulting binary.
17830 hardcode_minus_L=$hardcode_minus_L
17832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17833 # the resulting binary.
17834 hardcode_shlibpath_var=$hardcode_shlibpath_var
17836 # Set to yes if building a shared library automatically hardcodes DIR into the library
17837 # and all subsequent libraries and executables linked against it.
17838 hardcode_automatic=$hardcode_automatic
17840 # Variables whose values should be saved in libtool wrapper scripts and
17841 # restored at relink time.
17842 variables_saved_for_relink="$variables_saved_for_relink"
17844 # Whether libtool must link a program against all its dependency libraries.
17845 link_all_deplibs=$link_all_deplibs
17847 # Compile-time system search path for libraries
17848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17850 # Run-time system search path for libraries
17851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17853 # Fix the shell variable \$srcfile for the compiler.
17854 fix_srcfile_path="$fix_srcfile_path"
17856 # Set to yes if exported symbols are required.
17857 always_export_symbols=$always_export_symbols
17859 # The commands to list exported symbols.
17860 export_symbols_cmds=$lt_export_symbols_cmds
17862 # The commands to extract the exported symbol list from a shared archive.
17863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17865 # Symbols that should not be listed in the preloaded symbols.
17866 exclude_expsyms=$lt_exclude_expsyms
17868 # Symbols that must always be exported.
17869 include_expsyms=$lt_include_expsyms
17871 # ### END LIBTOOL CONFIG
17878 cat <<\EOF >> "$cfgfile"
17880 # AIX sometimes has problems with the GCC collect2 program. For some
17881 # reason, if we set the COLLECT_NAMES environment variable, the problems
17882 # vanish in a puff of smoke.
17883 if test "X${COLLECT_NAMES+set}" != Xset; then
17885 export COLLECT_NAMES
17891 # We use sed instead of cat because bash on DJGPP gets confused if
17892 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17893 # text mode, it properly converts lines to CR/LF. This bash problem
17894 # is reportedly fixed, but why not run on old versions too?
17895 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17897 mv -f "$cfgfile" "$ofile" || \
17898 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17902 # If there is no Makefile yet, we rely on a make rule to execute
17903 # `config.status --recheck' to rerun these tests and create the
17904 # libtool script then.
17905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17906 if test -f "$ltmain_in"; then
17907 test -f Makefile && make "$ltmain"
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17921 # Check whether --with-tags was given.
17922 if test "${with_tags+set}" = set; then
17923 withval=$with_tags; tagnames="$withval"
17927 if test -f "$ltmain" && test -n "$tagnames"; then
17928 if test ! -f "${ofile}"; then
17929 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17930 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17933 if test -z "$LTCC"; then
17934 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17935 if test -z "$LTCC"; then
17936 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17937 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17940 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17943 if test -z "$LTCFLAGS"; then
17944 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17947 # Extract list of available tagged configurations in $ofile.
17948 # Note that this assumes the entire list is on one line.
17949 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17952 for tagname in $tagnames; do
17954 # Check whether tagname contains only valid characters
17955 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17957 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17958 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17959 { (exit 1); exit 1; }; }
17963 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17965 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17966 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17967 { (exit 1); exit 1; }; }
17970 # Update the list of available tags.
17971 if test -n "$tagname"; then
17972 echo appending configuration tag \"$tagname\" to $ofile
17976 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17977 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17978 (test "X$CXX" != "Xg++"))) ; then
17980 ac_cpp='$CXXCPP $CPPFLAGS'
17981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17988 archive_cmds_need_lc_CXX=no
17989 allow_undefined_flag_CXX=
17990 always_export_symbols_CXX=no
17991 archive_expsym_cmds_CXX=
17992 export_dynamic_flag_spec_CXX=
17993 hardcode_direct_CXX=no
17994 hardcode_libdir_flag_spec_CXX=
17995 hardcode_libdir_flag_spec_ld_CXX=
17996 hardcode_libdir_separator_CXX=
17997 hardcode_minus_L_CXX=no
17998 hardcode_shlibpath_var_CXX=unsupported
17999 hardcode_automatic_CXX=no
18001 module_expsym_cmds_CXX=
18002 link_all_deplibs_CXX=unknown
18003 old_archive_cmds_CXX=$old_archive_cmds
18004 no_undefined_flag_CXX=
18005 whole_archive_flag_spec_CXX=
18006 enable_shared_with_static_runtimes_CXX=no
18008 # Dependencies to place before and after the object being linked:
18009 predep_objects_CXX=
18010 postdep_objects_CXX=
18013 compiler_lib_search_path_CXX=
18015 # Source file extension for C++ test sources.
18018 # Object file extension for compiled C++ test sources.
18022 # Code to be used in simple compile tests
18023 lt_simple_compile_test_code="int some_variable = 0;\n"
18025 # Code to be used in simple link tests
18026 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18028 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18030 # If no C compiler was specified, use CC.
18033 # If no C compiler flags were specified, use CFLAGS.
18034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18036 # Allow CC to be a program name with arguments.
18040 # save warnings/boilerplate of simple test code
18041 ac_outfile=conftest.$ac_objext
18042 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18043 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18044 _lt_compiler_boilerplate=`cat conftest.err`
18047 ac_outfile=conftest.$ac_objext
18048 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18049 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18050 _lt_linker_boilerplate=`cat conftest.err`
18054 # Allow CC to be a program name with arguments.
18059 lt_save_with_gnu_ld=$with_gnu_ld
18060 lt_save_path_LD=$lt_cv_path_LD
18061 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18062 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18064 $as_unset lt_cv_prog_gnu_ld
18066 if test -n "${lt_cv_path_LDCXX+set}"; then
18067 lt_cv_path_LD=$lt_cv_path_LDCXX
18069 $as_unset lt_cv_path_LD
18071 test -z "${LDCXX+set}" || LD=$LDCXX
18075 for cc_temp in $compiler""; do
18077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18083 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18086 # We don't want -fno-exception wen compiling C++ code, so set the
18087 # no_builtin_flag separately
18088 if test "$GXX" = yes; then
18089 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18091 lt_prog_compiler_no_builtin_flag_CXX=
18094 if test "$GXX" = yes; then
18095 # Set up default GNU C++ configuration
18098 # Check whether --with-gnu-ld was given.
18099 if test "${with_gnu_ld+set}" = set; then
18100 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18106 if test "$GCC" = yes; then
18107 # Check if gcc -print-prog-name=ld gives a path.
18108 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18109 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18112 # gcc leaves a trailing carriage return which upsets mingw
18113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18118 # Accept absolute paths.
18120 re_direlt='/[^/][^/]*/\.\./'
18121 # Canonicalize the pathname of ld
18122 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18123 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18124 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18126 test -z "$LD" && LD="$ac_prog"
18129 # If it fails, then pretend we aren't using GCC.
18133 # If it is relative, then search for the first ld in PATH.
18134 with_gnu_ld=unknown
18137 elif test "$with_gnu_ld" = yes; then
18138 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18139 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18141 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18142 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18144 if test "${lt_cv_path_LD+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 if test -z "$LD"; then
18148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18149 for ac_dir in $PATH; do
18151 test -z "$ac_dir" && ac_dir=.
18152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18153 lt_cv_path_LD="$ac_dir/$ac_prog"
18154 # Check to see if the program is GNU ld. I'd rather use --version,
18155 # but apparently some variants of GNU ld only accept -v.
18156 # Break only if it was the GNU/non-GNU ld that we prefer.
18157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18158 *GNU* | *'with BFD'*)
18159 test "$with_gnu_ld" != no && break
18162 test "$with_gnu_ld" != yes && break
18169 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18173 LD="$lt_cv_path_LD"
18174 if test -n "$LD"; then
18175 { echo "$as_me:$LINENO: result: $LD" >&5
18176 echo "${ECHO_T}$LD" >&6; }
18178 { echo "$as_me:$LINENO: result: no" >&5
18179 echo "${ECHO_T}no" >&6; }
18181 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18182 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18183 { (exit 1); exit 1; }; }
18184 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18185 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18186 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18190 case `$LD -v 2>&1 </dev/null` in
18191 *GNU* | *'with BFD'*)
18192 lt_cv_prog_gnu_ld=yes
18195 lt_cv_prog_gnu_ld=no
18199 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18200 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18201 with_gnu_ld=$lt_cv_prog_gnu_ld
18205 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18206 # archiving commands below assume that GNU ld is being used.
18207 if test "$with_gnu_ld" = yes; then
18208 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18209 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'
18211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18214 # If archive_cmds runs LD, not CC, wlarc should be empty
18215 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18216 # investigate it a little bit more. (MM)
18219 # ancient GNU ld didn't support --whole-archive et. al.
18220 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18221 grep 'no-whole-archive' > /dev/null; then
18222 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18224 whole_archive_flag_spec_CXX=
18230 # A generic and very simple default shared library creation
18231 # command for GNU C++ for the case where it uses the native
18232 # linker, instead of GNU ld. If possible, this setting should
18233 # overridden to take advantage of the native linker features on
18234 # the platform it is being used on.
18235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18238 # Commands to make compiler produce verbose output that lists
18239 # what "hidden" libraries, object files and flags are used when
18240 # linking a shared library.
18241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18249 # PORTME: fill in a description of your system's C++ link characteristics
18250 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18251 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18255 # FIXME: insert proper C++ library support
18259 if test "$host_cpu" = ia64; then
18260 # On IA64, the linker does run time linking by default, so we don't
18261 # have to do anything special.
18262 aix_use_runtimelinking=no
18263 exp_sym_flag='-Bexport'
18266 aix_use_runtimelinking=no
18268 # Test if we are trying to use run time linking or normal
18269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18270 # need to do runtime linking.
18271 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18272 for ld_flag in $LDFLAGS; do
18275 aix_use_runtimelinking=yes
18283 exp_sym_flag='-bexport'
18284 no_entry_flag='-bnoentry'
18287 # When large executables or shared objects are built, AIX ld can
18288 # have problems creating the table of contents. If linking a library
18289 # or program results in "error TOC overflow" add -mminimal-toc to
18290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18293 archive_cmds_CXX=''
18294 hardcode_direct_CXX=yes
18295 hardcode_libdir_separator_CXX=':'
18296 link_all_deplibs_CXX=yes
18298 if test "$GXX" = yes; then
18299 case $host_os in aix4.[012]|aix4.[012].*)
18300 # We only want to do this on AIX 4.2 and lower, the check
18301 # below for broken collect2 doesn't work under 4.3+
18302 collect2name=`${CC} -print-prog-name=collect2`
18303 if test -f "$collect2name" && \
18304 strings "$collect2name" | grep resolve_lib_name >/dev/null
18306 # We have reworked collect2
18307 hardcode_direct_CXX=yes
18309 # We have old collect2
18310 hardcode_direct_CXX=unsupported
18311 # It fails to find uninstalled libraries when the uninstalled
18312 # path is not listed in the libpath. Setting hardcode_minus_L
18313 # to unsupported forces relinking
18314 hardcode_minus_L_CXX=yes
18315 hardcode_libdir_flag_spec_CXX='-L$libdir'
18316 hardcode_libdir_separator_CXX=
18320 shared_flag='-shared'
18321 if test "$aix_use_runtimelinking" = yes; then
18322 shared_flag="$shared_flag "'${wl}-G'
18326 if test "$host_cpu" = ia64; then
18327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18328 # chokes on -Wl,-G. The following line is correct:
18331 if test "$aix_use_runtimelinking" = yes; then
18332 shared_flag='${wl}-G'
18334 shared_flag='${wl}-bM:SRE'
18339 # It seems that -bexpall does not export symbols beginning with
18340 # underscore (_), so it is better to generate a list of symbols to export.
18341 always_export_symbols_CXX=yes
18342 if test "$aix_use_runtimelinking" = yes; then
18343 # Warning - without using the other runtime loading flags (-brtl),
18344 # -berok will link without error, but may produce a broken library.
18345 allow_undefined_flag_CXX='-berok'
18346 # Determine the default libpath from the value encoded in an empty executable.
18347 cat >conftest.$ac_ext <<_ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_link") 2>conftest.er1
18371 grep -v '^ *+' conftest.er1 >conftest.err
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest$ac_exeext'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18399 # Check for a 64-bit object if we didn't find anything.
18400 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; }
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18409 rm -f core conftest.err conftest.$ac_objext \
18410 conftest$ac_exeext conftest.$ac_ext
18411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18413 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18415 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"
18417 if test "$host_cpu" = ia64; then
18418 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18419 allow_undefined_flag_CXX="-z nodefs"
18420 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"
18422 # Determine the default libpath from the value encoded in an empty executable.
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18475 # Check for a 64-bit object if we didn't find anything.
18476 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; }
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18485 rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18489 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18490 # Warning - without using the other run time loading flags,
18491 # -berok will link without error, but may produce a broken library.
18492 no_undefined_flag_CXX=' ${wl}-bernotok'
18493 allow_undefined_flag_CXX=' ${wl}-berok'
18494 # Exported symbols can be pulled into shared objects from archives
18495 whole_archive_flag_spec_CXX='$convenience'
18496 archive_cmds_need_lc_CXX=yes
18497 # This is similar to how AIX traditionally builds its shared libraries.
18498 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'
18504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18505 allow_undefined_flag_CXX=unsupported
18506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18507 # support --undefined. This deserves some investigation. FIXME
18508 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18515 case $cc_basename in
18517 # FIXME: insert proper C++ library support
18523 cygwin* | mingw* | pw32*)
18524 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18525 # as there is no search path for DLLs.
18526 hardcode_libdir_flag_spec_CXX='-L$libdir'
18527 allow_undefined_flag_CXX=unsupported
18528 always_export_symbols_CXX=no
18529 enable_shared_with_static_runtimes_CXX=yes
18531 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18532 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'
18533 # If the export-symbols file already is a .def file (1st line
18534 # is EXPORTS), use it as is; otherwise, prepend...
18535 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18536 cp $export_symbols $output_objdir/$soname.def;
18538 echo EXPORTS > $output_objdir/$soname.def;
18539 cat $export_symbols >> $output_objdir/$soname.def;
18541 $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'
18546 darwin* | rhapsody*)
18548 rhapsody* | darwin1.[012])
18549 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18552 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18553 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18555 case ${MACOSX_DEPLOYMENT_TARGET} in
18557 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18560 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18566 archive_cmds_need_lc_CXX=no
18567 hardcode_direct_CXX=no
18568 hardcode_automatic_CXX=yes
18569 hardcode_shlibpath_var_CXX=unsupported
18570 whole_archive_flag_spec_CXX=''
18571 link_all_deplibs_CXX=yes
18573 if test "$GXX" = yes ; then
18574 lt_int_apple_cc_single_mod=no
18575 output_verbose_link_cmd='echo'
18576 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18577 lt_int_apple_cc_single_mod=yes
18579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18580 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18582 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'
18584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18586 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18587 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}'
18589 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}'
18591 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}'
18593 case $cc_basename in
18595 output_verbose_link_cmd='echo'
18596 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'
18597 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18599 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}'
18600 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}'
18610 case $cc_basename in
18612 # FIXME: insert proper C++ library support
18616 # Green Hills C++ Compiler
18617 # FIXME: insert proper C++ library support
18621 # FIXME: insert proper C++ library support
18627 # C++ shared libraries reported to be fairly broken before switch to ELF
18631 archive_cmds_need_lc_CXX=no
18633 freebsd* | kfreebsd*-gnu | dragonfly*)
18634 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18641 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18642 hardcode_libdir_separator_CXX=:
18643 export_dynamic_flag_spec_CXX='${wl}-E'
18644 hardcode_direct_CXX=yes
18645 hardcode_minus_L_CXX=yes # Not in the search PATH,
18646 # but as the default
18647 # location of the library.
18649 case $cc_basename in
18651 # FIXME: insert proper C++ library support
18655 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'
18656 # Commands to make compiler produce verbose output that lists
18657 # what "hidden" libraries, object files and flags are used when
18658 # linking a shared library.
18660 # There doesn't appear to be a way to prevent this compiler from
18661 # explicitly linking system object files so we need to strip them
18662 # from the output so that they don't get included in the library
18664 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'
18667 if test "$GXX" = yes; then
18668 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'
18670 # FIXME: insert proper C++ library support
18677 if test $with_gnu_ld = no; then
18678 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18679 hardcode_libdir_separator_CXX=:
18683 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18686 export_dynamic_flag_spec_CXX='${wl}-E'
18692 hardcode_direct_CXX=no
18693 hardcode_shlibpath_var_CXX=no
18696 hardcode_direct_CXX=yes
18697 hardcode_minus_L_CXX=yes # Not in the search PATH,
18698 # but as the default
18699 # location of the library.
18703 case $cc_basename in
18705 # FIXME: insert proper C++ library support
18711 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18714 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18717 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18720 # Commands to make compiler produce verbose output that lists
18721 # what "hidden" libraries, object files and flags are used when
18722 # linking a shared library.
18724 # There doesn't appear to be a way to prevent this compiler from
18725 # explicitly linking system object files so we need to strip them
18726 # from the output so that they don't get included in the library
18728 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'
18731 if test "$GXX" = yes; then
18732 if test $with_gnu_ld = no; then
18735 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18738 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18741 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'
18746 # FIXME: insert proper C++ library support
18753 hardcode_direct_CXX=no
18754 hardcode_shlibpath_var_CXX=no
18755 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18756 export_dynamic_flag_spec_CXX='${wl}-E'
18757 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18758 # Instead, shared libraries are loaded at an image base (0x10000000 by
18759 # default) and relocated if they conflict, which is a slow very memory
18760 # consuming and fragmenting process. To avoid this, we pick a random,
18761 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18762 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18763 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'
18764 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'
18767 case $cc_basename in
18770 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'
18772 # Archives containing C++ object files must be created using
18773 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18774 # necessary to make sure instantiated templates are included
18776 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18779 if test "$GXX" = yes; then
18780 if test "$with_gnu_ld" = no; then
18781 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'
18783 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'
18786 link_all_deplibs_CXX=yes
18789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18790 hardcode_libdir_separator_CXX=:
18793 case $cc_basename in
18795 # Kuck and Associates, Inc. (KAI) C++ Compiler
18797 # KCC will only create a shared library if the output file
18798 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18799 # to its proper name (with version) after linking.
18800 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'
18801 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'
18802 # Commands to make compiler produce verbose output that lists
18803 # what "hidden" libraries, object files and flags are used when
18804 # linking a shared library.
18806 # There doesn't appear to be a way to prevent this compiler from
18807 # explicitly linking system object files so we need to strip them
18808 # from the output so that they don't get included in the library
18810 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'
18812 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18815 # Archives containing C++ object files must be created using
18816 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18817 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18822 # version 8.0 and above of icpc choke on multiply defined symbols
18823 # if we add $predep_objects and $postdep_objects, however 7.1 and
18824 # earlier do not add the objects themselves.
18825 case `$CC -V 2>&1` in
18827 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18828 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'
18830 *) # Version 8.0 or newer
18833 ia64*) tmp_idyn=' -i_dynamic';;
18835 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18836 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'
18839 archive_cmds_need_lc_CXX=no
18840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18842 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18845 # Portland Group C++ compiler
18846 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18847 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'
18849 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18850 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18851 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'
18855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18856 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'
18858 runpath_var=LD_RUN_PATH
18859 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18860 hardcode_libdir_separator_CXX=:
18862 # Commands to make compiler produce verbose output that lists
18863 # what "hidden" libraries, object files and flags are used when
18864 # linking a shared library.
18866 # There doesn't appear to be a way to prevent this compiler from
18867 # explicitly linking system object files so we need to strip them
18868 # from the output so that they don't get included in the library
18870 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'
18875 # FIXME: insert proper C++ library support
18879 # FIXME: insert proper C++ library support
18883 case $cc_basename in
18885 # FIXME: insert proper C++ library support
18889 # FIXME: insert proper C++ library support
18895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18896 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18898 hardcode_libdir_flag_spec_CXX='-R$libdir'
18899 hardcode_direct_CXX=yes
18900 hardcode_shlibpath_var_CXX=no
18902 # Workaround some broken pre-1.5 toolchains
18903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18906 # C++ shared libraries are fairly broken
18910 hardcode_direct_CXX=yes
18911 hardcode_shlibpath_var_CXX=no
18912 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18915 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18916 export_dynamic_flag_spec_CXX='${wl}-E'
18917 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18919 output_verbose_link_cmd='echo'
18922 case $cc_basename in
18924 # Kuck and Associates, Inc. (KAI) C++ Compiler
18926 # KCC will only create a shared library if the output file
18927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18928 # to its proper name (with version) after linking.
18929 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'
18931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18932 hardcode_libdir_separator_CXX=:
18934 # Archives containing C++ object files must be created using
18935 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18936 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18940 # Rational C++ 2.4.1
18941 # FIXME: insert proper C++ library support
18945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18946 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'
18948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18949 hardcode_libdir_separator_CXX=:
18951 # Commands to make compiler produce verbose output that lists
18952 # what "hidden" libraries, object files and flags are used when
18953 # linking a shared library.
18955 # There doesn't appear to be a way to prevent this compiler from
18956 # explicitly linking system object files so we need to strip them
18957 # from the output so that they don't get included in the library
18959 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'
18962 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18963 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18964 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'
18966 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18967 hardcode_libdir_separator_CXX=:
18969 # Commands to make compiler produce verbose output that lists
18970 # what "hidden" libraries, object files and flags are used when
18971 # linking a shared library.
18972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18975 # FIXME: insert proper C++ library support
18982 case $cc_basename in
18984 # Kuck and Associates, Inc. (KAI) C++ Compiler
18986 # KCC will only create a shared library if the output file
18987 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18988 # to its proper name (with version) after linking.
18989 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'
18991 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18992 hardcode_libdir_separator_CXX=:
18994 # Archives containing C++ object files must be created using
18995 # the KAI C++ compiler.
18996 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18999 # Rational C++ 2.4.1
19000 # FIXME: insert proper C++ library support
19004 allow_undefined_flag_CXX=' -expect_unresolved \*'
19005 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'
19006 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19007 echo "-hidden">> $lib.exp~
19008 $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~
19011 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19012 hardcode_libdir_separator_CXX=:
19014 # Commands to make compiler produce verbose output that lists
19015 # what "hidden" libraries, object files and flags are used when
19016 # linking a shared library.
19018 # There doesn't appear to be a way to prevent this compiler from
19019 # explicitly linking system object files so we need to strip them
19020 # from the output so that they don't get included in the library
19022 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'
19025 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19026 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19027 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'
19029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19030 hardcode_libdir_separator_CXX=:
19032 # Commands to make compiler produce verbose output that lists
19033 # what "hidden" libraries, object files and flags are used when
19034 # linking a shared library.
19035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19038 # FIXME: insert proper C++ library support
19045 # FIXME: insert proper C++ library support
19049 case $cc_basename in
19052 # FIXME: insert proper C++ library support
19057 # FIXME: insert proper C++ library support
19061 # FIXME: insert proper C++ library support
19067 case $cc_basename in
19069 # Sun C++ 4.2, 5.x and Centerline C++
19070 archive_cmds_need_lc_CXX=yes
19071 no_undefined_flag_CXX=' -zdefs'
19072 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19073 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19074 $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'
19076 hardcode_libdir_flag_spec_CXX='-R$libdir'
19077 hardcode_shlibpath_var_CXX=no
19079 solaris2.[0-5] | solaris2.[0-5].*) ;;
19081 # The C++ compiler is used as linker so we must use $wl
19082 # flag to pass the commands to the underlying system
19083 # linker. We must also pass each convience library through
19084 # to the system linker between allextract/defaultextract.
19085 # The C++ compiler will combine linker options so we
19086 # cannot just pass the convience library names through
19088 # Supported since Solaris 2.6 (maybe 2.5.1?)
19089 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'
19092 link_all_deplibs_CXX=yes
19094 output_verbose_link_cmd='echo'
19096 # Archives containing C++ object files must be created using
19097 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19098 # necessary to make sure instantiated templates are included
19100 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19103 # Green Hills C++ Compiler
19104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19106 # The C++ compiler must be used to create the archive.
19107 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19110 # GNU C++ compiler with Solaris linker
19111 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19112 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19113 if $CC --version | grep -v '^2\.7' > /dev/null; then
19114 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19115 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19116 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19118 # Commands to make compiler produce verbose output that lists
19119 # what "hidden" libraries, object files and flags are used when
19120 # linking a shared library.
19121 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19123 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19125 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19126 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19127 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19132 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19135 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19140 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19141 no_undefined_flag_CXX='${wl}-z,text'
19142 archive_cmds_need_lc_CXX=no
19143 hardcode_shlibpath_var_CXX=no
19144 runpath_var='LD_RUN_PATH'
19146 case $cc_basename in
19148 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19149 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19152 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19153 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19157 sysv5* | sco3.2v5* | sco5v6*)
19158 # Note: We can NOT use -z defs as we might desire, because we do not
19159 # link with -lc, and that would cause any symbols used from libc to
19160 # always be unresolved, which means just about no library would
19161 # ever link correctly. If we're not using GNU ld we use -z text
19162 # though, which does catch some bad symbols but isn't as heavy-handed
19164 # For security reasons, it is highly recommended that you always
19165 # use absolute paths for naming shared libraries, and exclude the
19166 # DT_RUNPATH tag from executables and libraries. But doing so
19167 # requires that you compile everything twice, which is a pain.
19168 # So that behaviour is only enabled if SCOABSPATH is set to a
19169 # non-empty value in the environment. Most likely only useful for
19170 # creating official distributions of packages.
19171 # This is a hack until libtool officially supports absolute path
19172 # names for shared libraries.
19173 no_undefined_flag_CXX='${wl}-z,text'
19174 allow_undefined_flag_CXX='${wl}-z,nodefs'
19175 archive_cmds_need_lc_CXX=no
19176 hardcode_shlibpath_var_CXX=no
19177 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19178 hardcode_libdir_separator_CXX=':'
19179 link_all_deplibs_CXX=yes
19180 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19181 runpath_var='LD_RUN_PATH'
19183 case $cc_basename in
19185 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19186 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19189 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19190 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 case $cc_basename in
19197 # NonStop-UX NCC 3.20
19198 # FIXME: insert proper C++ library support
19202 # FIXME: insert proper C++ library support
19208 # FIXME: insert proper C++ library support
19212 # FIXME: insert proper C++ library support
19216 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19217 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19218 test "$ld_shlibs_CXX" = no && can_build_shared=no
19224 cat > conftest.$ac_ext <<EOF
19228 Foo (void) { a = 0; }
19234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235 (eval $ac_compile) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; then
19239 # Parse the compiler output and extract the necessary
19240 # objects, libraries and library flags.
19242 # Sentinel used to keep track of whether or not we are before
19243 # the conftest object file.
19244 pre_test_object_deps_done=no
19246 # The `*' in the case matches for architectures that use `case' in
19247 # $output_verbose_cmd can trigger glob expansion during the loop
19248 # eval without this substitution.
19249 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19251 for p in `eval $output_verbose_link_cmd`; do
19255 # Some compilers place space between "-{L,R}" and the path.
19256 # Remove the space.
19257 if test $p = "-L" \
19258 || test $p = "-R"; then
19265 if test "$pre_test_object_deps_done" = no; then
19268 # Internal compiler library paths should come after those
19269 # provided the user. The postdeps already come after the
19270 # user supplied libs so there is no need to process them.
19271 if test -z "$compiler_lib_search_path_CXX"; then
19272 compiler_lib_search_path_CXX="${prev}${p}"
19274 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19277 # The "-l" case would never come before the object being
19278 # linked, so don't bother handling this case.
19281 if test -z "$postdeps_CXX"; then
19282 postdeps_CXX="${prev}${p}"
19284 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19290 # This assumes that the test object file only shows up
19291 # once in the compiler output.
19292 if test "$p" = "conftest.$objext"; then
19293 pre_test_object_deps_done=yes
19297 if test "$pre_test_object_deps_done" = no; then
19298 if test -z "$predep_objects_CXX"; then
19299 predep_objects_CXX="$p"
19301 predep_objects_CXX="$predep_objects_CXX $p"
19304 if test -z "$postdep_objects_CXX"; then
19305 postdep_objects_CXX="$p"
19307 postdep_objects_CXX="$postdep_objects_CXX $p"
19312 *) ;; # Ignore the rest.
19320 echo "libtool.m4: error: problem compiling CXX test program"
19323 $rm -f confest.$objext
19325 # PORTME: override above test on systems where it is broken
19328 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19329 # hack all around it, let's just trust "g++" to DTRT.
19330 predep_objects_CXX=
19331 postdep_objects_CXX=
19336 case $cc_basename in
19338 # Adding this requires a known-good setup of shared libraries for
19339 # Sun compiler versions before 5.6, else PIC objects from an old
19340 # archive will be linked into the output, leading to subtle bugs.
19341 postdeps_CXX='-lCstd -lCrun'
19348 case " $postdeps_CXX " in
19349 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19352 lt_prog_compiler_wl_CXX=
19353 lt_prog_compiler_pic_CXX=
19354 lt_prog_compiler_static_CXX=
19356 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19357 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19359 # C++ specific cases for pic, static, wl, etc.
19360 if test "$GXX" = yes; then
19361 lt_prog_compiler_wl_CXX='-Wl,'
19362 lt_prog_compiler_static_CXX='-static'
19366 # All AIX code is PIC.
19367 if test "$host_cpu" = ia64; then
19368 # AIX 5 now supports IA64 processor
19369 lt_prog_compiler_static_CXX='-Bstatic'
19373 # FIXME: we need at least 68020 code to build shared libraries, but
19374 # adding the `-m68020' flag to GCC prevents building anything better,
19376 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19378 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19379 # PIC is the default for these OSes.
19381 mingw* | os2* | pw32*)
19382 # This hack is so that the source file can tell whether it is being
19383 # built for inclusion in a dll (and should export symbols for example).
19384 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19386 darwin* | rhapsody*)
19387 # PIC is the default on this platform
19388 # Common symbols not allowed in MH_DYLIB files
19389 lt_prog_compiler_pic_CXX='-fno-common'
19392 # DJGPP does not support shared libraries at all
19393 lt_prog_compiler_pic_CXX=
19396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19397 # Instead, we relocate shared libraries at runtime.
19400 if test -d /usr/nec; then
19401 lt_prog_compiler_pic_CXX=-Kconform_pic
19405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19406 # not for PA HP-UX.
19411 lt_prog_compiler_pic_CXX='-fPIC'
19416 lt_prog_compiler_pic_CXX='-fPIC'
19422 # All AIX code is PIC.
19423 if test "$host_cpu" = ia64; then
19424 # AIX 5 now supports IA64 processor
19425 lt_prog_compiler_static_CXX='-Bstatic'
19427 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19431 case $cc_basename in
19433 # Green Hills C++ Compiler
19434 # _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"
19439 # PIC is the default on this platform
19440 # Common symbols not allowed in MH_DYLIB files
19441 case $cc_basename in
19443 lt_prog_compiler_pic_CXX='-qnocommon'
19444 lt_prog_compiler_wl_CXX='-Wl,'
19449 case $cc_basename in
19451 lt_prog_compiler_pic_CXX='-KPIC'
19454 # Green Hills C++ Compiler
19455 lt_prog_compiler_pic_CXX='-pic'
19461 freebsd* | kfreebsd*-gnu | dragonfly*)
19462 # FreeBSD uses GNU C++
19464 hpux9* | hpux10* | hpux11*)
19465 case $cc_basename in
19467 lt_prog_compiler_wl_CXX='-Wl,'
19468 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19469 if test "$host_cpu" != ia64; then
19470 lt_prog_compiler_pic_CXX='+Z'
19474 lt_prog_compiler_wl_CXX='-Wl,'
19475 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19481 lt_prog_compiler_pic_CXX='+Z'
19490 # This is c89, which is MS Visual C++ (no shared libs)
19491 # Anyone wants to do a port?
19493 irix5* | irix6* | nonstopux*)
19494 case $cc_basename in
19496 lt_prog_compiler_wl_CXX='-Wl,'
19497 lt_prog_compiler_static_CXX='-non_shared'
19498 # CC pic flag -KPIC is the default.
19505 case $cc_basename in
19508 lt_prog_compiler_wl_CXX='--backend -Wl,'
19509 lt_prog_compiler_pic_CXX='-fPIC'
19513 lt_prog_compiler_wl_CXX='-Wl,'
19514 lt_prog_compiler_pic_CXX='-KPIC'
19515 lt_prog_compiler_static_CXX='-static'
19518 # Portland Group C++ compiler.
19519 lt_prog_compiler_wl_CXX='-Wl,'
19520 lt_prog_compiler_pic_CXX='-fpic'
19521 lt_prog_compiler_static_CXX='-Bstatic'
19525 # Make sure the PIC flag is empty. It appears that all Alpha
19526 # Linux and Compaq Tru64 Unix objects are PIC.
19527 lt_prog_compiler_pic_CXX=
19528 lt_prog_compiler_static_CXX='-non_shared'
19539 case $cc_basename in
19541 lt_prog_compiler_pic_CXX='-W c,exportall'
19549 osf3* | osf4* | osf5*)
19550 case $cc_basename in
19552 lt_prog_compiler_wl_CXX='--backend -Wl,'
19555 # Rational C++ 2.4.1
19556 lt_prog_compiler_pic_CXX='-pic'
19559 # Digital/Compaq C++
19560 lt_prog_compiler_wl_CXX='-Wl,'
19561 # Make sure the PIC flag is empty. It appears that all Alpha
19562 # Linux and Compaq Tru64 Unix objects are PIC.
19563 lt_prog_compiler_pic_CXX=
19564 lt_prog_compiler_static_CXX='-non_shared'
19573 case $cc_basename in
19575 # Sun C++ 4.2, 5.x and Centerline C++
19576 lt_prog_compiler_pic_CXX='-KPIC'
19577 lt_prog_compiler_static_CXX='-Bstatic'
19578 lt_prog_compiler_wl_CXX='-Qoption ld '
19581 # Green Hills C++ Compiler
19582 lt_prog_compiler_pic_CXX='-PIC'
19589 case $cc_basename in
19592 lt_prog_compiler_pic_CXX='-pic'
19593 lt_prog_compiler_static_CXX='-Bstatic'
19597 lt_prog_compiler_pic_CXX='-pic'
19604 case $cc_basename in
19606 # NonStop-UX NCC 3.20
19607 lt_prog_compiler_pic_CXX='-KPIC'
19613 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19614 case $cc_basename in
19616 lt_prog_compiler_wl_CXX='-Wl,'
19617 lt_prog_compiler_pic_CXX='-KPIC'
19618 lt_prog_compiler_static_CXX='-Bstatic'
19625 lt_prog_compiler_can_build_shared_CXX=no
19630 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19631 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19634 # Check to make sure the PIC flag actually works.
19636 if test -n "$lt_prog_compiler_pic_CXX"; then
19638 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19640 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 lt_prog_compiler_pic_works_CXX=no
19644 ac_outfile=conftest.$ac_objext
19645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19646 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19647 # Insert the option either (1) after the last *FLAGS variable, or
19648 # (2) before a word containing "conftest.", or (3) at the end.
19649 # Note that $ac_compile itself does not contain backslashes and begins
19650 # with a dollar sign (not a hyphen), so the echo should work correctly.
19651 # The option is referenced via a variable to avoid confusing sed.
19652 lt_compile=`echo "$ac_compile" | $SED \
19653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19655 -e 's:$: $lt_compiler_flag:'`
19656 (eval echo "\"\$as_me:19656: $lt_compile\"" >&5)
19657 (eval "$lt_compile" 2>conftest.err)
19659 cat conftest.err >&5
19660 echo "$as_me:19660: \$? = $ac_status" >&5
19661 if (exit $ac_status) && test -s "$ac_outfile"; then
19662 # The compiler can only warn and ignore the option if not recognized
19663 # So say no if there are warnings other than the usual output.
19664 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19667 lt_prog_compiler_pic_works_CXX=yes
19673 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19674 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19676 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19677 case $lt_prog_compiler_pic_CXX in
19679 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19682 lt_prog_compiler_pic_CXX=
19683 lt_prog_compiler_can_build_shared_CXX=no
19688 # For platforms which do not support PIC, -DPIC is meaningless:
19690 lt_prog_compiler_pic_CXX=
19693 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19698 # Check to make sure the static flag actually works.
19700 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19701 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19702 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19703 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 lt_prog_compiler_static_works_CXX=no
19707 save_LDFLAGS="$LDFLAGS"
19708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19709 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19711 # The linker can only warn and ignore the option if not recognized
19712 # So say no if there are warnings
19713 if test -s conftest.err; then
19714 # Append any errors to the config.log.
19715 cat conftest.err 1>&5
19716 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19718 if diff conftest.exp conftest.er2 >/dev/null; then
19719 lt_prog_compiler_static_works_CXX=yes
19722 lt_prog_compiler_static_works_CXX=yes
19726 LDFLAGS="$save_LDFLAGS"
19729 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19730 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19732 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19735 lt_prog_compiler_static_CXX=
19739 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19741 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 lt_cv_prog_compiler_c_o_CXX=no
19745 $rm -r conftest 2>/dev/null
19749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19751 lt_compiler_flag="-o out/conftest2.$ac_objext"
19752 # Insert the option either (1) after the last *FLAGS variable, or
19753 # (2) before a word containing "conftest.", or (3) at the end.
19754 # Note that $ac_compile itself does not contain backslashes and begins
19755 # with a dollar sign (not a hyphen), so the echo should work correctly.
19756 lt_compile=`echo "$ac_compile" | $SED \
19757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19759 -e 's:$: $lt_compiler_flag:'`
19760 (eval echo "\"\$as_me:19760: $lt_compile\"" >&5)
19761 (eval "$lt_compile" 2>out/conftest.err)
19763 cat out/conftest.err >&5
19764 echo "$as_me:19764: \$? = $ac_status" >&5
19765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19767 # The compiler can only warn and ignore the option if not recognized
19768 # So say no if there are warnings
19769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19772 lt_cv_prog_compiler_c_o_CXX=yes
19777 # SGI C++ compiler will create directory out/ii_files/ for
19778 # template instantiation
19779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19780 $rm out/* && rmdir out
19786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19790 hard_links="nottested"
19791 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19792 # do not overwrite the value of need_locks provided by the user
19793 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19799 ln conftest.a conftest.b 2>&5 || hard_links=no
19800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19801 { echo "$as_me:$LINENO: result: $hard_links" >&5
19802 echo "${ECHO_T}$hard_links" >&6; }
19803 if test "$hard_links" = no; then
19804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19812 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19818 # If we're using GNU nm, then we don't want the "-C" option.
19819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19821 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'
19823 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'
19827 export_symbols_cmds_CXX="$ltdll_cmds"
19830 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'
19833 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19837 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19838 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19839 test "$ld_shlibs_CXX" = no && can_build_shared=no
19842 # Do we need to explicitly link libc?
19844 case "x$archive_cmds_need_lc_CXX" in
19846 # Assume -lc should be added
19847 archive_cmds_need_lc_CXX=yes
19849 if test "$enable_shared" = yes && test "$GCC" = yes; then
19850 case $archive_cmds_CXX in
19852 # FIXME: we may have to deal with multi-command sequences.
19855 # Test whether the compiler implicitly links with -lc since on some
19856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19857 # to ld, don't add -lc before -lgcc.
19858 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19859 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } 2>conftest.err; then
19870 libobjs=conftest.$ac_objext
19872 wl=$lt_prog_compiler_wl_CXX
19873 pic_flag=$lt_prog_compiler_pic_CXX
19879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19880 allow_undefined_flag_CXX=
19881 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19882 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }
19887 archive_cmds_need_lc_CXX=no
19889 archive_cmds_need_lc_CXX=yes
19891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19893 cat conftest.err 1>&5
19896 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19897 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19904 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19906 library_names_spec=
19907 libname_spec='lib$name'
19911 postuninstall_cmds=
19915 shlibpath_overrides_runpath=unknown
19917 dynamic_linker="$host_os ld.so"
19918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19919 if test "$GCC" = yes; then
19920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19921 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19922 # if the path contains ";" then we assume it to be the separator
19923 # otherwise default to the standard path separator (i.e. ":") - it is
19924 # assumed that no part of a normal pathname contains ";" but that should
19925 # okay in the real world where ";" in dirpaths is itself problematic.
19926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19933 need_lib_prefix=unknown
19934 hardcode_into_libs=no
19936 # when you set need_version to no, make sure it does not cause -set_version
19937 # flags to be left without arguments
19938 need_version=unknown
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19944 shlibpath_var=LIBPATH
19946 # AIX 3 has no versioning support, so we append a major version to the name.
19947 soname_spec='${libname}${release}${shared_ext}$major'
19954 hardcode_into_libs=yes
19955 if test "$host_cpu" = ia64; then
19956 # AIX 5 supports IA64
19957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19958 shlibpath_var=LD_LIBRARY_PATH
19960 # With GCC up to 2.95.x, collect2 would create an import file
19961 # for dependence libraries. The import file would start with
19962 # the line `#! .'. This would cause the generated library to
19963 # depend on `.', always an invalid library. This was fixed in
19964 # development snapshots of GCC prior to 3.0.
19966 aix4 | aix4.[01] | aix4.[01].*)
19967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19969 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19972 can_build_shared=no
19976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19977 # soname into executable. Probably we can add versioning support to
19978 # collect2, so additional links can be useful in future.
19979 if test "$aix_use_runtimelinking" = yes; then
19980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19981 # instead of lib<name>.a to let people know that these are not
19982 # typical AIX shared libraries.
19983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985 # We preserve .a as extension for shared libraries through AIX4.2
19986 # and later when we are not doing run time linking.
19987 library_names_spec='${libname}${release}.a $libname.a'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19990 shlibpath_var=LIBPATH
19995 library_names_spec='$libname.ixlibrary $libname.a'
19996 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19997 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'
20001 library_names_spec='${libname}${shared_ext}'
20002 dynamic_linker="$host_os ld.so"
20003 shlibpath_var=LIBRARY_PATH
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20012 shlibpath_var=LD_LIBRARY_PATH
20013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20015 # the default ld.so.conf also contains /usr/contrib/lib and
20016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20017 # libtool to hard-code these into programs
20020 cygwin* | mingw* | pw32*)
20021 version_type=windows
20026 case $GCC,$host_os in
20027 yes,cygwin* | yes,mingw* | yes,pw32*)
20028 library_names_spec='$libname.dll.a'
20029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20030 postinstall_cmds='base_file=`basename \${file}`~
20031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20032 dldir=$destdir/`dirname \$dlpath`~
20033 test -d \$dldir || mkdir -p \$dldir~
20034 $install_prog $dir/$dlname \$dldir/$dlname~
20035 chmod a+x \$dldir/$dlname'
20036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20037 dlpath=$dir/\$dldll~
20039 shlibpath_overrides_runpath=yes
20043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20045 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20048 # MinGW DLLs use traditional 'lib' prefix
20049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20051 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20052 # It is most probably a Windows format PATH printed by
20053 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20054 # path with ; separators, and with drive letters. We can handle the
20055 # drive letters (cygwin fileutils understands them), so leave them,
20056 # especially as we might pass files found there to a mingw objdump,
20057 # which wouldn't understand a cygwinified path. Ahh.
20058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20064 # pw32 DLLs use 'pw' prefix rather than 'lib'
20065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20074 dynamic_linker='Win32 ld.exe'
20075 # FIXME: first we should search . and the directory the executable is in
20079 darwin* | rhapsody*)
20080 dynamic_linker="$host_os dyld"
20081 version_type=darwin
20084 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20085 soname_spec='${libname}${release}${major}$shared_ext'
20086 shlibpath_overrides_runpath=yes
20087 shlibpath_var=DYLD_LIBRARY_PATH
20088 shrext_cmds='.dylib'
20089 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20090 if test "$GCC" = yes; then
20091 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"`
20093 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/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 shlibpath_var=LD_LIBRARY_PATH
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20116 soname_spec='${libname}${release}${shared_ext}$major'
20117 shlibpath_var=LD_LIBRARY_PATH
20118 shlibpath_overrides_runpath=no
20119 hardcode_into_libs=yes
20120 dynamic_linker='GNU ld.so'
20123 freebsd* | dragonfly*)
20124 # DragonFly does not have aout. When/if they implement a new
20125 # versioning mechanism, adjust this.
20126 if test -x /usr/bin/objformat; then
20127 objformat=`/usr/bin/objformat`
20130 freebsd[123]*) objformat=aout ;;
20131 *) objformat=elf ;;
20134 version_type=freebsd-$objformat
20135 case $version_type in
20137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20146 shlibpath_var=LD_LIBRARY_PATH
20149 shlibpath_overrides_runpath=yes
20151 freebsd3.[01]* | freebsdelf3.[01]*)
20152 shlibpath_overrides_runpath=yes
20153 hardcode_into_libs=yes
20155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20157 shlibpath_overrides_runpath=no
20158 hardcode_into_libs=yes
20160 freebsd*) # from 4.6 on
20161 shlibpath_overrides_runpath=yes
20162 hardcode_into_libs=yes
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 hardcode_into_libs=yes
20177 hpux9* | hpux10* | hpux11*)
20178 # Give a soname corresponding to the major version so that dld.sl refuses to
20179 # link against other versions.
20186 hardcode_into_libs=yes
20187 dynamic_linker="$host_os dld.so"
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191 soname_spec='${libname}${release}${shared_ext}$major'
20192 if test "X$HPUX_IA64_MODE" = X32; then
20193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20201 hardcode_into_libs=yes
20202 dynamic_linker="$host_os dld.sl"
20203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20206 soname_spec='${libname}${release}${shared_ext}$major'
20207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20212 dynamic_linker="$host_os dld.sl"
20213 shlibpath_var=SHLIB_PATH
20214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20220 postinstall_cmds='chmod 555 $lib'
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20230 shlibpath_var=LD_LIBRARY_PATH
20231 shlibpath_overrides_runpath=no
20232 hardcode_into_libs=yes
20235 irix5* | irix6* | nonstopux*)
20237 nonstopux*) version_type=nonstopux ;;
20239 if test "$lt_cv_prog_gnu_ld" = yes; then
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20250 irix5* | nonstopux*)
20251 libsuff= shlibsuff=
20254 case $LD in # libtool.m4 will add one of these switches to LD
20255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20256 libsuff= shlibsuff= libmagic=32-bit;;
20257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20258 libsuff=32 shlibsuff=N32 libmagic=N32;;
20259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20260 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20261 *) libsuff= shlibsuff= libmagic=never-match;;
20265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20266 shlibpath_overrides_runpath=no
20267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20269 hardcode_into_libs=yes
20272 # No shared lib support for Linux oldld, aout, or coff.
20273 linux*oldld* | linux*aout* | linux*coff*)
20277 # This must be Linux ELF.
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283 soname_spec='${libname}${release}${shared_ext}$major'
20284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20285 shlibpath_var=LD_LIBRARY_PATH
20286 shlibpath_overrides_runpath=no
20287 # This implies no fast_install, which is unacceptable.
20288 # Some rework will be needed to allow for fast_install
20289 # before this can be enabled.
20290 hardcode_into_libs=yes
20292 # Append ld.so.conf contents to the search path
20293 if test -f /etc/ld.so.conf; then
20294 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' ' '`
20295 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20298 # We used to test for /lib/ld.so.1 and disable shared libraries on
20299 # powerpc, because MkLinux only supported shared libraries with the
20300 # GNU dynamic linker. Since this was broken with cross compilers,
20301 # most powerpc-linux boxes support dynamic linking these days and
20302 # people can always --disable-shared, the test was removed, and we
20303 # assume the GNU/Linux dynamic linker is in use.
20304 dynamic_linker='GNU/Linux ld.so'
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 shlibpath_overrides_runpath=no
20315 hardcode_into_libs=yes
20316 dynamic_linker='GNU ld.so'
20323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20326 dynamic_linker='NetBSD (a.out) ld.so'
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 dynamic_linker='NetBSD ld.elf_so'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=yes
20334 hardcode_into_libs=yes
20339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=yes
20348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20349 soname_spec='${libname}${release}${shared_ext}$major'
20350 shlibpath_var=LD_LIBRARY_PATH
20351 shlibpath_overrides_runpath=yes
20356 sys_lib_dlsearch_path_spec="/usr/lib"
20358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20361 *) need_version=no ;;
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20368 openbsd2.[89] | openbsd2.[89].*)
20369 shlibpath_overrides_runpath=no
20372 shlibpath_overrides_runpath=yes
20376 shlibpath_overrides_runpath=yes
20381 libname_spec='$name'
20384 library_names_spec='$libname${shared_ext} $libname.a'
20385 dynamic_linker='OS/2 ld.exe'
20386 shlibpath_var=LIBPATH
20389 osf3* | osf4* | osf5*)
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405 soname_spec='${libname}${release}${shared_ext}$major'
20406 shlibpath_var=LD_LIBRARY_PATH
20407 shlibpath_overrides_runpath=yes
20408 hardcode_into_libs=yes
20409 # ldd complains unless libraries are executable
20410 postinstall_cmds='chmod +x $lib'
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=yes
20419 if test "$with_gnu_ld" = yes; then
20427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20428 soname_spec='${libname}${release}${shared_ext}$major'
20429 shlibpath_var=LD_LIBRARY_PATH
20430 case $host_vendor in
20432 shlibpath_overrides_runpath=no
20434 export_dynamic_flag_spec='${wl}-Blargedynsym'
20435 runpath_var=LD_RUN_PATH
20443 shlibpath_overrides_runpath=no
20444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20450 if test -d /usr/nec ;then
20452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20453 soname_spec='$libname${shared_ext}.$major'
20454 shlibpath_var=LD_LIBRARY_PATH
20458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20459 version_type=freebsd-elf
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 hardcode_into_libs=yes
20466 if test "$with_gnu_ld" = yes; then
20467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20468 shlibpath_overrides_runpath=no
20470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20471 shlibpath_overrides_runpath=yes
20474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20478 sys_lib_dlsearch_path_spec='/usr/lib'
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20492 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20493 echo "${ECHO_T}$dynamic_linker" >&6; }
20494 test "$dynamic_linker" = no && can_build_shared=no
20496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20497 if test "$GCC" = yes; then
20498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20501 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20502 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20503 hardcode_action_CXX=
20504 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20505 test -n "$runpath_var_CXX" || \
20506 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20508 # We can hardcode non-existant directories.
20509 if test "$hardcode_direct_CXX" != no &&
20510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20511 # have to relink, otherwise we might link with an installed library
20512 # when we should be linking with a yet-to-be-installed one
20513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20514 test "$hardcode_minus_L_CXX" != no; then
20515 # Linking always hardcodes the temporary library directory.
20516 hardcode_action_CXX=relink
20518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20519 hardcode_action_CXX=immediate
20522 # We cannot hardcode anything, or else we can only hardcode existing
20524 hardcode_action_CXX=unsupported
20526 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20527 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20529 if test "$hardcode_action_CXX" = relink; then
20530 # Fast installation is not supported
20531 enable_fast_install=no
20532 elif test "$shlibpath_overrides_runpath" = yes ||
20533 test "$enable_shared" = no; then
20534 # Fast installation is not necessary
20535 enable_fast_install=needless
20539 # The else clause should only fire when bootstrapping the
20540 # libtool distribution, otherwise you forgot to ship ltmain.sh
20541 # with your package, and you will get complaints that there are
20542 # no rules to generate ltmain.sh.
20543 if test -f "$ltmain"; then
20544 # See if we are running on zsh, and set the options which allow our commands through
20545 # without removal of \ escapes.
20546 if test -n "${ZSH_VERSION+set}" ; then
20547 setopt NO_GLOB_SUBST
20549 # Now quote all the things that may contain metacharacters while being
20550 # careful not to overquote the AC_SUBSTed values. We take copies of the
20551 # variables and quote the copies for generation of the libtool script.
20552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20556 deplibs_check_method reload_flag reload_cmds need_locks \
20557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20558 lt_cv_sys_global_symbol_to_c_name_address \
20559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20560 old_postinstall_cmds old_postuninstall_cmds \
20564 lt_prog_compiler_wl_CXX \
20565 lt_prog_compiler_pic_CXX \
20566 lt_prog_compiler_static_CXX \
20567 lt_prog_compiler_no_builtin_flag_CXX \
20568 export_dynamic_flag_spec_CXX \
20569 thread_safe_flag_spec_CXX \
20570 whole_archive_flag_spec_CXX \
20571 enable_shared_with_static_runtimes_CXX \
20572 old_archive_cmds_CXX \
20573 old_archive_from_new_cmds_CXX \
20574 predep_objects_CXX \
20575 postdep_objects_CXX \
20578 compiler_lib_search_path_CXX \
20580 archive_expsym_cmds_CXX \
20581 postinstall_cmds_CXX \
20582 postuninstall_cmds_CXX \
20583 old_archive_from_expsyms_cmds_CXX \
20584 allow_undefined_flag_CXX \
20585 no_undefined_flag_CXX \
20586 export_symbols_cmds_CXX \
20587 hardcode_libdir_flag_spec_CXX \
20588 hardcode_libdir_flag_spec_ld_CXX \
20589 hardcode_libdir_separator_CXX \
20590 hardcode_automatic_CXX \
20592 module_expsym_cmds_CXX \
20593 lt_cv_prog_compiler_c_o_CXX \
20594 exclude_expsyms_CXX \
20595 include_expsyms_CXX; do
20598 old_archive_cmds_CXX | \
20599 old_archive_from_new_cmds_CXX | \
20600 archive_cmds_CXX | \
20601 archive_expsym_cmds_CXX | \
20602 module_cmds_CXX | \
20603 module_expsym_cmds_CXX | \
20604 old_archive_from_expsyms_cmds_CXX | \
20605 export_symbols_cmds_CXX | \
20606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20607 postinstall_cmds | postuninstall_cmds | \
20608 old_postinstall_cmds | old_postuninstall_cmds | \
20609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20610 # Double-quote double-evaled strings.
20611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20620 *'\$0 --fallback-echo"')
20621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20627 cat <<__EOF__ >> "$cfgfile"
20628 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20630 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20632 # Shell to use when invoking shell scripts.
20635 # Whether or not to build shared libraries.
20636 build_libtool_libs=$enable_shared
20638 # Whether or not to build static libraries.
20639 build_old_libs=$enable_static
20641 # Whether or not to add -lc for building shared libraries.
20642 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20644 # Whether or not to disallow shared libs when runtime libs are static
20645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20647 # Whether or not to optimize for fast installation.
20648 fast_install=$enable_fast_install
20651 host_alias=$host_alias
20655 # The build system.
20656 build_alias=$build_alias
20660 # An echo program that does not interpret backslashes.
20665 AR_FLAGS=$lt_AR_FLAGS
20670 # LTCC compiler flags.
20671 LTCFLAGS=$lt_LTCFLAGS
20673 # A language-specific compiler.
20674 CC=$lt_compiler_CXX
20676 # Is the compiler the GNU C compiler?
20682 # The linker used to build libraries.
20685 # Whether we need hard or soft links.
20688 # A BSD-compatible nm program.
20691 # A symbol stripping program
20694 # Used to examine libraries when file_magic_cmd begins "file"
20695 MAGIC_CMD=$MAGIC_CMD
20697 # Used on cygwin: DLL creation program.
20700 # Used on cygwin: object dumper.
20703 # Used on cygwin: assembler.
20706 # The name of the directory that contains temporary libtool files.
20709 # How to create reloadable object files.
20710 reload_flag=$lt_reload_flag
20711 reload_cmds=$lt_reload_cmds
20713 # How to pass a linker flag through the compiler.
20714 wl=$lt_lt_prog_compiler_wl_CXX
20716 # Object file suffix (normally "o").
20717 objext="$ac_objext"
20719 # Old archive suffix (normally "a").
20722 # Shared library suffix (normally ".so").
20723 shrext_cmds='$shrext_cmds'
20725 # Executable file suffix (normally "").
20728 # Additional compiler flags for building library objects.
20729 pic_flag=$lt_lt_prog_compiler_pic_CXX
20732 # What is the maximum length of a command?
20733 max_cmd_len=$lt_cv_sys_max_cmd_len
20735 # Does compiler simultaneously support -c and -o options?
20736 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20738 # Must we lock files when doing compilation?
20739 need_locks=$lt_need_locks
20741 # Do we need the lib prefix for modules?
20742 need_lib_prefix=$need_lib_prefix
20744 # Do we need a version for libraries?
20745 need_version=$need_version
20747 # Whether dlopen is supported.
20748 dlopen_support=$enable_dlopen
20750 # Whether dlopen of programs is supported.
20751 dlopen_self=$enable_dlopen_self
20753 # Whether dlopen of statically linked programs is supported.
20754 dlopen_self_static=$enable_dlopen_self_static
20756 # Compiler flag to prevent dynamic linking.
20757 link_static_flag=$lt_lt_prog_compiler_static_CXX
20759 # Compiler flag to turn off builtin functions.
20760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20762 # Compiler flag to allow reflexive dlopens.
20763 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20765 # Compiler flag to generate shared objects directly from archives.
20766 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20768 # Compiler flag to generate thread-safe objects.
20769 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20771 # Library versioning type.
20772 version_type=$version_type
20774 # Format of library name prefix.
20775 libname_spec=$lt_libname_spec
20777 # List of archive names. First name is the real one, the rest are links.
20778 # The last name is the one that the linker finds with -lNAME.
20779 library_names_spec=$lt_library_names_spec
20781 # The coded name of the library, if different from the real name.
20782 soname_spec=$lt_soname_spec
20784 # Commands used to build and install an old-style archive.
20786 old_archive_cmds=$lt_old_archive_cmds_CXX
20787 old_postinstall_cmds=$lt_old_postinstall_cmds
20788 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20790 # Create an old-style archive from a shared archive.
20791 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20793 # Create a temporary old-style archive to link instead of a shared archive.
20794 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20796 # Commands used to build and install a shared archive.
20797 archive_cmds=$lt_archive_cmds_CXX
20798 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20799 postinstall_cmds=$lt_postinstall_cmds
20800 postuninstall_cmds=$lt_postuninstall_cmds
20802 # Commands used to build a loadable module (assumed same as above if empty)
20803 module_cmds=$lt_module_cmds_CXX
20804 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20806 # Commands to strip libraries.
20807 old_striplib=$lt_old_striplib
20808 striplib=$lt_striplib
20810 # Dependencies to place before the objects being linked to create a
20812 predep_objects=$lt_predep_objects_CXX
20814 # Dependencies to place after the objects being linked to create a
20816 postdep_objects=$lt_postdep_objects_CXX
20818 # Dependencies to place before the objects being linked to create a
20820 predeps=$lt_predeps_CXX
20822 # Dependencies to place after the objects being linked to create a
20824 postdeps=$lt_postdeps_CXX
20826 # The library search path used internally by the compiler when linking
20827 # a shared library.
20828 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20830 # Method to check whether dependent libraries are shared objects.
20831 deplibs_check_method=$lt_deplibs_check_method
20833 # Command to use when deplibs_check_method == file_magic.
20834 file_magic_cmd=$lt_file_magic_cmd
20836 # Flag that allows shared libraries with undefined symbols to be built.
20837 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20839 # Flag that forces no undefined symbols.
20840 no_undefined_flag=$lt_no_undefined_flag_CXX
20842 # Commands used to finish a libtool library installation in a directory.
20843 finish_cmds=$lt_finish_cmds
20845 # Same as above, but a single script fragment to be evaled but not shown.
20846 finish_eval=$lt_finish_eval
20848 # Take the output of nm and produce a listing of raw symbols and C names.
20849 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20851 # Transform the output of nm in a proper C declaration
20852 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20854 # Transform the output of nm in a C name address pair
20855 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20857 # This is the shared library runtime path variable.
20858 runpath_var=$runpath_var
20860 # This is the shared library path variable.
20861 shlibpath_var=$shlibpath_var
20863 # Is shlibpath searched before the hard-coded library search path?
20864 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20866 # How to hardcode a shared library path into an executable.
20867 hardcode_action=$hardcode_action_CXX
20869 # Whether we should hardcode library paths into libraries.
20870 hardcode_into_libs=$hardcode_into_libs
20872 # Flag to hardcode \$libdir into a binary during linking.
20873 # This must work even if \$libdir does not exist.
20874 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20876 # If ld is used when linking, flag to hardcode \$libdir into
20877 # a binary during linking. This must work even if \$libdir does
20879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20881 # Whether we need a single -rpath flag with a separated argument.
20882 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20884 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20885 # resulting binary.
20886 hardcode_direct=$hardcode_direct_CXX
20888 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20889 # resulting binary.
20890 hardcode_minus_L=$hardcode_minus_L_CXX
20892 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20893 # the resulting binary.
20894 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20896 # Set to yes if building a shared library automatically hardcodes DIR into the library
20897 # and all subsequent libraries and executables linked against it.
20898 hardcode_automatic=$hardcode_automatic_CXX
20900 # Variables whose values should be saved in libtool wrapper scripts and
20901 # restored at relink time.
20902 variables_saved_for_relink="$variables_saved_for_relink"
20904 # Whether libtool must link a program against all its dependency libraries.
20905 link_all_deplibs=$link_all_deplibs_CXX
20907 # Compile-time system search path for libraries
20908 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20910 # Run-time system search path for libraries
20911 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20913 # Fix the shell variable \$srcfile for the compiler.
20914 fix_srcfile_path="$fix_srcfile_path_CXX"
20916 # Set to yes if exported symbols are required.
20917 always_export_symbols=$always_export_symbols_CXX
20919 # The commands to list exported symbols.
20920 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20922 # The commands to extract the exported symbol list from a shared archive.
20923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20925 # Symbols that should not be listed in the preloaded symbols.
20926 exclude_expsyms=$lt_exclude_expsyms_CXX
20928 # Symbols that must always be exported.
20929 include_expsyms=$lt_include_expsyms_CXX
20931 # ### END LIBTOOL TAG CONFIG: $tagname
20937 # If there is no Makefile yet, we rely on a make rule to execute
20938 # `config.status --recheck' to rerun these tests and create the
20939 # libtool script then.
20940 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20941 if test -f "$ltmain_in"; then
20942 test -f Makefile && make "$ltmain"
20948 ac_cpp='$CPP $CPPFLAGS'
20949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957 with_gnu_ldcxx=$with_gnu_ld
20958 with_gnu_ld=$lt_save_with_gnu_ld
20959 lt_cv_path_LDCXX=$lt_cv_path_LD
20960 lt_cv_path_LD=$lt_save_path_LD
20961 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20962 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20970 if test -n "$F77" && test "X$F77" != "Xno"; then
20973 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20974 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20978 archive_cmds_need_lc_F77=no
20979 allow_undefined_flag_F77=
20980 always_export_symbols_F77=no
20981 archive_expsym_cmds_F77=
20982 export_dynamic_flag_spec_F77=
20983 hardcode_direct_F77=no
20984 hardcode_libdir_flag_spec_F77=
20985 hardcode_libdir_flag_spec_ld_F77=
20986 hardcode_libdir_separator_F77=
20987 hardcode_minus_L_F77=no
20988 hardcode_automatic_F77=no
20990 module_expsym_cmds_F77=
20991 link_all_deplibs_F77=unknown
20992 old_archive_cmds_F77=$old_archive_cmds
20993 no_undefined_flag_F77=
20994 whole_archive_flag_spec_F77=
20995 enable_shared_with_static_runtimes_F77=no
20997 # Source file extension for f77 test sources.
21000 # Object file extension for compiled f77 test sources.
21004 # Code to be used in simple compile tests
21005 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21007 # Code to be used in simple link tests
21008 lt_simple_link_test_code=" program t\n end\n"
21010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21012 # If no C compiler was specified, use CC.
21015 # If no C compiler flags were specified, use CFLAGS.
21016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21018 # Allow CC to be a program name with arguments.
21022 # save warnings/boilerplate of simple test code
21023 ac_outfile=conftest.$ac_objext
21024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21026 _lt_compiler_boilerplate=`cat conftest.err`
21029 ac_outfile=conftest.$ac_objext
21030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21032 _lt_linker_boilerplate=`cat conftest.err`
21036 # Allow CC to be a program name with arguments.
21041 for cc_temp in $compiler""; do
21043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21052 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21053 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21054 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21055 echo "${ECHO_T}$can_build_shared" >&6; }
21057 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21058 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21059 test "$can_build_shared" = "no" && enable_shared=no
21061 # On AIX, shared libraries and static libraries use the same namespace, and
21062 # are all built from PIC.
21065 test "$enable_shared" = yes && enable_static=no
21066 if test -n "$RANLIB"; then
21067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21068 postinstall_cmds='$RANLIB $lib'
21072 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21073 test "$enable_shared" = yes && enable_static=no
21077 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21078 echo "${ECHO_T}$enable_shared" >&6; }
21080 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21081 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21082 # Make sure either enable_shared or enable_static is yes.
21083 test "$enable_shared" = yes || enable_static=yes
21084 { echo "$as_me:$LINENO: result: $enable_static" >&5
21085 echo "${ECHO_T}$enable_static" >&6; }
21090 lt_prog_compiler_wl_F77=
21091 lt_prog_compiler_pic_F77=
21092 lt_prog_compiler_static_F77=
21094 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21095 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21097 if test "$GCC" = yes; then
21098 lt_prog_compiler_wl_F77='-Wl,'
21099 lt_prog_compiler_static_F77='-static'
21103 # All AIX code is PIC.
21104 if test "$host_cpu" = ia64; then
21105 # AIX 5 now supports IA64 processor
21106 lt_prog_compiler_static_F77='-Bstatic'
21111 # FIXME: we need at least 68020 code to build shared libraries, but
21112 # adding the `-m68020' flag to GCC prevents building anything better,
21114 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21117 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21118 # PIC is the default for these OSes.
21121 mingw* | pw32* | os2*)
21122 # This hack is so that the source file can tell whether it is being
21123 # built for inclusion in a dll (and should export symbols for example).
21124 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21127 darwin* | rhapsody*)
21128 # PIC is the default on this platform
21129 # Common symbols not allowed in MH_DYLIB files
21130 lt_prog_compiler_pic_F77='-fno-common'
21134 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21135 # Instead, we relocate shared libraries at runtime.
21139 # Just because we use GCC doesn't mean we suddenly get shared libraries
21140 # on systems that don't support them.
21141 lt_prog_compiler_can_build_shared_F77=no
21146 if test -d /usr/nec; then
21147 lt_prog_compiler_pic_F77=-Kconform_pic
21152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21153 # not for PA HP-UX.
21159 lt_prog_compiler_pic_F77='-fPIC'
21165 lt_prog_compiler_pic_F77='-fPIC'
21169 # PORTME Check for flag to pass linker flags through the system compiler.
21172 lt_prog_compiler_wl_F77='-Wl,'
21173 if test "$host_cpu" = ia64; then
21174 # AIX 5 now supports IA64 processor
21175 lt_prog_compiler_static_F77='-Bstatic'
21177 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21181 # PIC is the default on this platform
21182 # Common symbols not allowed in MH_DYLIB files
21183 case $cc_basename in
21185 lt_prog_compiler_pic_F77='-qnocommon'
21186 lt_prog_compiler_wl_F77='-Wl,'
21191 mingw* | pw32* | os2*)
21192 # This hack is so that the source file can tell whether it is being
21193 # built for inclusion in a dll (and should export symbols for example).
21194 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21197 hpux9* | hpux10* | hpux11*)
21198 lt_prog_compiler_wl_F77='-Wl,'
21199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21200 # not for PA HP-UX.
21206 lt_prog_compiler_pic_F77='+Z'
21209 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21210 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21213 irix5* | irix6* | nonstopux*)
21214 lt_prog_compiler_wl_F77='-Wl,'
21215 # PIC (with -KPIC) is the default.
21216 lt_prog_compiler_static_F77='-non_shared'
21220 lt_prog_compiler_pic_F77='-KPIC'
21221 lt_prog_compiler_static_F77='-Bstatic'
21225 case $cc_basename in
21227 lt_prog_compiler_wl_F77='-Wl,'
21228 lt_prog_compiler_pic_F77='-KPIC'
21229 lt_prog_compiler_static_F77='-static'
21231 pgcc* | pgf77* | pgf90* | pgf95*)
21232 # Portland Group compilers (*not* the Pentium gcc compiler,
21233 # which looks to be a dead project)
21234 lt_prog_compiler_wl_F77='-Wl,'
21235 lt_prog_compiler_pic_F77='-fpic'
21236 lt_prog_compiler_static_F77='-Bstatic'
21239 lt_prog_compiler_wl_F77='-Wl,'
21240 # All Alpha code is PIC.
21241 lt_prog_compiler_static_F77='-non_shared'
21246 osf3* | osf4* | osf5*)
21247 lt_prog_compiler_wl_F77='-Wl,'
21248 # All OSF/1 code is PIC.
21249 lt_prog_compiler_static_F77='-non_shared'
21253 lt_prog_compiler_pic_F77='-KPIC'
21254 lt_prog_compiler_static_F77='-Bstatic'
21255 case $cc_basename in
21256 f77* | f90* | f95*)
21257 lt_prog_compiler_wl_F77='-Qoption ld ';;
21259 lt_prog_compiler_wl_F77='-Wl,';;
21264 lt_prog_compiler_wl_F77='-Qoption ld '
21265 lt_prog_compiler_pic_F77='-PIC'
21266 lt_prog_compiler_static_F77='-Bstatic'
21269 sysv4 | sysv4.2uw2* | sysv4.3*)
21270 lt_prog_compiler_wl_F77='-Wl,'
21271 lt_prog_compiler_pic_F77='-KPIC'
21272 lt_prog_compiler_static_F77='-Bstatic'
21276 if test -d /usr/nec ;then
21277 lt_prog_compiler_pic_F77='-Kconform_pic'
21278 lt_prog_compiler_static_F77='-Bstatic'
21282 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21283 lt_prog_compiler_wl_F77='-Wl,'
21284 lt_prog_compiler_pic_F77='-KPIC'
21285 lt_prog_compiler_static_F77='-Bstatic'
21289 lt_prog_compiler_wl_F77='-Wl,'
21290 lt_prog_compiler_can_build_shared_F77=no
21294 lt_prog_compiler_pic_F77='-pic'
21295 lt_prog_compiler_static_F77='-Bstatic'
21299 lt_prog_compiler_can_build_shared_F77=no
21304 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21305 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21308 # Check to make sure the PIC flag actually works.
21310 if test -n "$lt_prog_compiler_pic_F77"; then
21312 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21313 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21314 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 lt_prog_compiler_pic_works_F77=no
21318 ac_outfile=conftest.$ac_objext
21319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21320 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21321 # Insert the option either (1) after the last *FLAGS variable, or
21322 # (2) before a word containing "conftest.", or (3) at the end.
21323 # Note that $ac_compile itself does not contain backslashes and begins
21324 # with a dollar sign (not a hyphen), so the echo should work correctly.
21325 # The option is referenced via a variable to avoid confusing sed.
21326 lt_compile=`echo "$ac_compile" | $SED \
21327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21329 -e 's:$: $lt_compiler_flag:'`
21330 (eval echo "\"\$as_me:21330: $lt_compile\"" >&5)
21331 (eval "$lt_compile" 2>conftest.err)
21333 cat conftest.err >&5
21334 echo "$as_me:21334: \$? = $ac_status" >&5
21335 if (exit $ac_status) && test -s "$ac_outfile"; then
21336 # The compiler can only warn and ignore the option if not recognized
21337 # So say no if there are warnings other than the usual output.
21338 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21341 lt_prog_compiler_pic_works_F77=yes
21347 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21348 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21350 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21351 case $lt_prog_compiler_pic_F77 in
21353 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21356 lt_prog_compiler_pic_F77=
21357 lt_prog_compiler_can_build_shared_F77=no
21362 # For platforms which do not support PIC, -DPIC is meaningless:
21364 lt_prog_compiler_pic_F77=
21367 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21372 # Check to make sure the static flag actually works.
21374 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21375 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21376 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21377 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 lt_prog_compiler_static_works_F77=no
21381 save_LDFLAGS="$LDFLAGS"
21382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21383 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21385 # The linker can only warn and ignore the option if not recognized
21386 # So say no if there are warnings
21387 if test -s conftest.err; then
21388 # Append any errors to the config.log.
21389 cat conftest.err 1>&5
21390 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21392 if diff conftest.exp conftest.er2 >/dev/null; then
21393 lt_prog_compiler_static_works_F77=yes
21396 lt_prog_compiler_static_works_F77=yes
21400 LDFLAGS="$save_LDFLAGS"
21403 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21404 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21406 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21409 lt_prog_compiler_static_F77=
21413 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21414 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21415 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21418 lt_cv_prog_compiler_c_o_F77=no
21419 $rm -r conftest 2>/dev/null
21423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21425 lt_compiler_flag="-o out/conftest2.$ac_objext"
21426 # Insert the option either (1) after the last *FLAGS variable, or
21427 # (2) before a word containing "conftest.", or (3) at the end.
21428 # Note that $ac_compile itself does not contain backslashes and begins
21429 # with a dollar sign (not a hyphen), so the echo should work correctly.
21430 lt_compile=`echo "$ac_compile" | $SED \
21431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21433 -e 's:$: $lt_compiler_flag:'`
21434 (eval echo "\"\$as_me:21434: $lt_compile\"" >&5)
21435 (eval "$lt_compile" 2>out/conftest.err)
21437 cat out/conftest.err >&5
21438 echo "$as_me:21438: \$? = $ac_status" >&5
21439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21441 # The compiler can only warn and ignore the option if not recognized
21442 # So say no if there are warnings
21443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21446 lt_cv_prog_compiler_c_o_F77=yes
21451 # SGI C++ compiler will create directory out/ii_files/ for
21452 # template instantiation
21453 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21454 $rm out/* && rmdir out
21460 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21461 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21464 hard_links="nottested"
21465 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21466 # do not overwrite the value of need_locks provided by the user
21467 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21468 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21473 ln conftest.a conftest.b 2>&5 || hard_links=no
21474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21475 { echo "$as_me:$LINENO: result: $hard_links" >&5
21476 echo "${ECHO_T}$hard_links" >&6; }
21477 if test "$hard_links" = no; then
21478 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21479 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21486 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21487 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21490 allow_undefined_flag_F77=
21491 enable_shared_with_static_runtimes_F77=no
21493 archive_expsym_cmds_F77=
21494 old_archive_From_new_cmds_F77=
21495 old_archive_from_expsyms_cmds_F77=
21496 export_dynamic_flag_spec_F77=
21497 whole_archive_flag_spec_F77=
21498 thread_safe_flag_spec_F77=
21499 hardcode_libdir_flag_spec_F77=
21500 hardcode_libdir_flag_spec_ld_F77=
21501 hardcode_libdir_separator_F77=
21502 hardcode_direct_F77=no
21503 hardcode_minus_L_F77=no
21504 hardcode_shlibpath_var_F77=unsupported
21505 link_all_deplibs_F77=unknown
21506 hardcode_automatic_F77=no
21508 module_expsym_cmds_F77=
21509 always_export_symbols_F77=no
21510 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21511 # include_expsyms should be a list of space-separated symbols to be *always*
21512 # included in the symbol list
21513 include_expsyms_F77=
21514 # exclude_expsyms can be an extended regexp of symbols to exclude
21515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21517 # as well as any symbol that contains `d'.
21518 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21520 # platforms (ab)use it in PIC code, but their linkers get confused if
21521 # the symbol is explicitly referenced. Since portable code cannot
21522 # rely on this symbol name, it's probably fine to never include it in
21523 # preloaded symbol tables.
21524 extract_expsyms_cmds=
21525 # Just being paranoid about ensuring that cc_basename is set.
21526 for cc_temp in $compiler""; do
21528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21534 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21537 cygwin* | mingw* | pw32*)
21538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21539 # When not using gcc, we currently assume that we are using
21540 # Microsoft Visual C++.
21541 if test "$GCC" != yes; then
21546 # we just hope/assume this is gcc and not c89 (= MSVC++)
21555 if test "$with_gnu_ld" = yes; then
21556 # If archive_cmds runs LD, not CC, wlarc should be empty
21559 # Set some defaults for GNU ld with shared library support. These
21560 # are reset later if shared libraries are not supported. Putting them
21561 # here allows them to be overridden if necessary.
21562 runpath_var=LD_RUN_PATH
21563 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21564 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21565 # ancient GNU ld didn't support --whole-archive et. al.
21566 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21567 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21569 whole_archive_flag_spec_F77=
21571 supports_anon_versioning=no
21572 case `$LD -v 2>/dev/null` in
21573 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21574 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21575 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21576 *\ 2.11.*) ;; # other 2.11 versions
21577 *) supports_anon_versioning=yes ;;
21580 # See if GNU ld supports shared libraries.
21582 aix3* | aix4* | aix5*)
21583 # On AIX/PPC, the GNU linker is very broken
21584 if test "$host_cpu" != ia64; then
21588 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21589 *** to be unable to reliably create shared libraries on AIX.
21590 *** Therefore, libtool is disabling shared libraries support. If you
21591 *** really care for shared libraries, you may want to modify your PATH
21592 *** so that a non-GNU linker is found, and then restart.
21599 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)'
21600 hardcode_libdir_flag_spec_F77='-L$libdir'
21601 hardcode_minus_L_F77=yes
21603 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21604 # that the semantics of dynamic libraries on AmigaOS, at least up
21605 # to version 4, is to share data among multiple programs linked
21606 # with the same dynamic library. Since this doesn't match the
21607 # behavior of shared libraries on other platforms, we can't use
21613 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21614 allow_undefined_flag_F77=unsupported
21615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21616 # support --undefined. This deserves some investigation. FIXME
21617 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21623 cygwin* | mingw* | pw32*)
21624 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21625 # as there is no search path for DLLs.
21626 hardcode_libdir_flag_spec_F77='-L$libdir'
21627 allow_undefined_flag_F77=unsupported
21628 always_export_symbols_F77=no
21629 enable_shared_with_static_runtimes_F77=yes
21630 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21632 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21633 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21634 # If the export-symbols file already is a .def file (1st line
21635 # is EXPORTS), use it as is; otherwise, prepend...
21636 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21637 cp $export_symbols $output_objdir/$soname.def;
21639 echo EXPORTS > $output_objdir/$soname.def;
21640 cat $export_symbols >> $output_objdir/$soname.def;
21642 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21649 hardcode_direct_F77=no
21650 hardcode_shlibpath_var_F77=no
21651 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21652 export_dynamic_flag_spec_F77='${wl}-E'
21653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21654 # Instead, shared libraries are loaded at an image base (0x10000000 by
21655 # default) and relocated if they conflict, which is a slow very memory
21656 # consuming and fragmenting process. To avoid this, we pick a random,
21657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21658 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21659 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'
21660 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'
21664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21666 case $cc_basename,$host_cpu in
21667 pgcc*) # Portland Group C compiler
21668 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'
21669 tmp_addflag=' $pic_flag'
21671 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21672 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'
21673 tmp_addflag=' $pic_flag -Mnomain' ;;
21674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21675 tmp_addflag=' -i_dynamic' ;;
21676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21677 tmp_addflag=' -i_dynamic -nofor_main' ;;
21678 ifc* | ifort*) # Intel Fortran compiler
21679 tmp_addflag=' -nofor_main' ;;
21681 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21683 if test $supports_anon_versioning = yes; then
21684 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21686 $echo "local: *; };" >> $output_objdir/$libname.ver~
21687 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21696 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21699 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21700 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21705 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21710 *** create shared libraries on Solaris systems. Therefore, libtool
21711 *** is disabling shared libraries support. We urge you to upgrade GNU
21712 *** binutils to release 2.9.1 or newer. Another option is to modify
21713 *** your PATH or compiler configuration so that the native linker is
21714 *** used, and then restart.
21717 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21718 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21719 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21726 case `$LD -v 2>&1` in
21727 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21732 *** reliably create shared libraries on SCO systems. Therefore, libtool
21733 *** is disabling shared libraries support. We urge you to upgrade GNU
21734 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21735 *** your PATH or compiler configuration so that the native linker is
21736 *** used, and then restart.
21741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21742 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21744 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21753 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21755 hardcode_direct_F77=yes
21756 hardcode_shlibpath_var_F77=no
21760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21762 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21769 if test "$ld_shlibs_F77" = no; then
21771 hardcode_libdir_flag_spec_F77=
21772 export_dynamic_flag_spec_F77=
21773 whole_archive_flag_spec_F77=
21776 # PORTME fill in a description of your system's linker (not GNU ld)
21779 allow_undefined_flag_F77=unsupported
21780 always_export_symbols_F77=yes
21781 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'
21782 # Note: this linker hardcodes the directories in LIBPATH if there
21783 # are no directories specified by -L.
21784 hardcode_minus_L_F77=yes
21785 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21786 # Neither direct hardcoding nor static linking is supported with a
21788 hardcode_direct_F77=unsupported
21793 if test "$host_cpu" = ia64; then
21794 # On IA64, the linker does run time linking by default, so we don't
21795 # have to do anything special.
21796 aix_use_runtimelinking=no
21797 exp_sym_flag='-Bexport'
21800 # If we're using GNU nm, then we don't want the "-C" option.
21801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21802 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21803 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'
21805 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'
21807 aix_use_runtimelinking=no
21809 # Test if we are trying to use run time linking or normal
21810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21811 # need to do runtime linking.
21812 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21813 for ld_flag in $LDFLAGS; do
21814 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21815 aix_use_runtimelinking=yes
21822 exp_sym_flag='-bexport'
21823 no_entry_flag='-bnoentry'
21826 # When large executables or shared objects are built, AIX ld can
21827 # have problems creating the table of contents. If linking a library
21828 # or program results in "error TOC overflow" add -mminimal-toc to
21829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21832 archive_cmds_F77=''
21833 hardcode_direct_F77=yes
21834 hardcode_libdir_separator_F77=':'
21835 link_all_deplibs_F77=yes
21837 if test "$GCC" = yes; then
21838 case $host_os in aix4.[012]|aix4.[012].*)
21839 # We only want to do this on AIX 4.2 and lower, the check
21840 # below for broken collect2 doesn't work under 4.3+
21841 collect2name=`${CC} -print-prog-name=collect2`
21842 if test -f "$collect2name" && \
21843 strings "$collect2name" | grep resolve_lib_name >/dev/null
21845 # We have reworked collect2
21846 hardcode_direct_F77=yes
21848 # We have old collect2
21849 hardcode_direct_F77=unsupported
21850 # It fails to find uninstalled libraries when the uninstalled
21851 # path is not listed in the libpath. Setting hardcode_minus_L
21852 # to unsupported forces relinking
21853 hardcode_minus_L_F77=yes
21854 hardcode_libdir_flag_spec_F77='-L$libdir'
21855 hardcode_libdir_separator_F77=
21859 shared_flag='-shared'
21860 if test "$aix_use_runtimelinking" = yes; then
21861 shared_flag="$shared_flag "'${wl}-G'
21865 if test "$host_cpu" = ia64; then
21866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21867 # chokes on -Wl,-G. The following line is correct:
21870 if test "$aix_use_runtimelinking" = yes; then
21871 shared_flag='${wl}-G'
21873 shared_flag='${wl}-bM:SRE'
21878 # It seems that -bexpall does not export symbols beginning with
21879 # underscore (_), so it is better to generate a list of symbols to export.
21880 always_export_symbols_F77=yes
21881 if test "$aix_use_runtimelinking" = yes; then
21882 # Warning - without using the other runtime loading flags (-brtl),
21883 # -berok will link without error, but may produce a broken library.
21884 allow_undefined_flag_F77='-berok'
21885 # Determine the default libpath from the value encoded in an empty executable.
21886 cat >conftest.$ac_ext <<_ACEOF
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>conftest.er1
21900 grep -v '^ *+' conftest.er1 >conftest.err
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
21905 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21906 { (case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_try") 2>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; } &&
21915 { ac_try='test -s conftest$ac_exeext'
21916 { (case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_try") 2>&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21928 # Check for a 64-bit object if we didn't find anything.
21929 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; }
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21938 rm -f core conftest.err conftest.$ac_objext \
21939 conftest$ac_exeext conftest.$ac_ext
21940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21942 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21943 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"
21945 if test "$host_cpu" = ia64; then
21946 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21947 allow_undefined_flag_F77="-z nodefs"
21948 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"
21950 # Determine the default libpath from the value encoded in an empty executable.
21951 cat >conftest.$ac_ext <<_ACEOF
21956 rm -f conftest.$ac_objext conftest$ac_exeext
21957 if { (ac_try="$ac_link"
21958 case "(($ac_try" in
21959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960 *) ac_try_echo=$ac_try;;
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963 (eval "$ac_link") 2>conftest.er1
21965 grep -v '^ *+' conftest.er1 >conftest.err
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } &&
21970 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21971 { (case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_try") 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest$ac_exeext'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; }; then
21991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21993 # Check for a 64-bit object if we didn't find anything.
21994 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; }
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22003 rm -f core conftest.err conftest.$ac_objext \
22004 conftest$ac_exeext conftest.$ac_ext
22005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22007 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22008 # Warning - without using the other run time loading flags,
22009 # -berok will link without error, but may produce a broken library.
22010 no_undefined_flag_F77=' ${wl}-bernotok'
22011 allow_undefined_flag_F77=' ${wl}-berok'
22012 # Exported symbols can be pulled into shared objects from archives
22013 whole_archive_flag_spec_F77='$convenience'
22014 archive_cmds_need_lc_F77=yes
22015 # This is similar to how AIX traditionally builds its shared libraries.
22016 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'
22022 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)'
22023 hardcode_libdir_flag_spec_F77='-L$libdir'
22024 hardcode_minus_L_F77=yes
22025 # see comment about different semantics on the GNU ld section
22030 export_dynamic_flag_spec_F77=-rdynamic
22033 cygwin* | mingw* | pw32*)
22034 # When not using gcc, we currently assume that we are using
22035 # Microsoft Visual C++.
22036 # hardcode_libdir_flag_spec is actually meaningless, as there is
22037 # no search path for DLLs.
22038 hardcode_libdir_flag_spec_F77=' '
22039 allow_undefined_flag_F77=unsupported
22040 # Tell ltmain to make .lib files, not .a files.
22042 # Tell ltmain to make .dll files, not .so files.
22044 # FIXME: Setting linknames here is a bad hack.
22045 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22046 # The linker will automatically build a .lib file if we build a DLL.
22047 old_archive_From_new_cmds_F77='true'
22048 # FIXME: Should let the user specify the lib program.
22049 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22050 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22051 enable_shared_with_static_runtimes_F77=yes
22054 darwin* | rhapsody*)
22056 rhapsody* | darwin1.[012])
22057 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22060 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22061 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22063 case ${MACOSX_DEPLOYMENT_TARGET} in
22065 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22068 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22074 archive_cmds_need_lc_F77=no
22075 hardcode_direct_F77=no
22076 hardcode_automatic_F77=yes
22077 hardcode_shlibpath_var_F77=unsupported
22078 whole_archive_flag_spec_F77=''
22079 link_all_deplibs_F77=yes
22080 if test "$GCC" = yes ; then
22081 output_verbose_link_cmd='echo'
22082 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22083 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22085 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}'
22086 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}'
22088 case $cc_basename in
22090 output_verbose_link_cmd='echo'
22091 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22092 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22094 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}'
22095 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}'
22105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22106 hardcode_libdir_flag_spec_F77='-L$libdir'
22107 hardcode_shlibpath_var_F77=no
22114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22115 # support. Future versions do this automatically, but an explicit c++rt0.o
22116 # does not break anything, and helps significantly (at the cost of a little
22119 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22120 hardcode_libdir_flag_spec_F77='-R$libdir'
22121 hardcode_direct_F77=yes
22122 hardcode_shlibpath_var_F77=no
22125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22127 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22128 hardcode_direct_F77=yes
22129 hardcode_minus_L_F77=yes
22130 hardcode_shlibpath_var_F77=no
22133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22134 freebsd* | kfreebsd*-gnu | dragonfly*)
22135 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22136 hardcode_libdir_flag_spec_F77='-R$libdir'
22137 hardcode_direct_F77=yes
22138 hardcode_shlibpath_var_F77=no
22142 if test "$GCC" = yes; then
22143 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'
22145 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'
22147 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22148 hardcode_libdir_separator_F77=:
22149 hardcode_direct_F77=yes
22151 # hardcode_minus_L: Not really in the search PATH,
22152 # but as the default location of the library.
22153 hardcode_minus_L_F77=yes
22154 export_dynamic_flag_spec_F77='${wl}-E'
22158 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22159 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22161 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22163 if test "$with_gnu_ld" = no; then
22164 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22165 hardcode_libdir_separator_F77=:
22167 hardcode_direct_F77=yes
22168 export_dynamic_flag_spec_F77='${wl}-E'
22170 # hardcode_minus_L: Not really in the search PATH,
22171 # but as the default location of the library.
22172 hardcode_minus_L_F77=yes
22177 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22180 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22183 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22186 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22192 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22195 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22198 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22202 if test "$with_gnu_ld" = no; then
22203 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22204 hardcode_libdir_separator_F77=:
22208 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22209 hardcode_direct_F77=no
22210 hardcode_shlibpath_var_F77=no
22213 hardcode_direct_F77=yes
22214 export_dynamic_flag_spec_F77='${wl}-E'
22216 # hardcode_minus_L: Not really in the search PATH,
22217 # but as the default location of the library.
22218 hardcode_minus_L_F77=yes
22224 irix5* | irix6* | nonstopux*)
22225 if test "$GCC" = yes; then
22226 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'
22228 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'
22229 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22231 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22232 hardcode_libdir_separator_F77=:
22233 link_all_deplibs_F77=yes
22237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22238 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22240 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22242 hardcode_libdir_flag_spec_F77='-R$libdir'
22243 hardcode_direct_F77=yes
22244 hardcode_shlibpath_var_F77=no
22248 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22249 hardcode_direct_F77=yes
22250 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22251 hardcode_libdir_separator_F77=:
22252 hardcode_shlibpath_var_F77=no
22256 hardcode_direct_F77=yes
22257 hardcode_shlibpath_var_F77=no
22258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22259 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22260 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22261 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22262 export_dynamic_flag_spec_F77='${wl}-E'
22265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22267 hardcode_libdir_flag_spec_F77='-R$libdir'
22270 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22271 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22278 hardcode_libdir_flag_spec_F77='-L$libdir'
22279 hardcode_minus_L_F77=yes
22280 allow_undefined_flag_F77=unsupported
22281 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'
22282 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22286 if test "$GCC" = yes; then
22287 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22288 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'
22290 allow_undefined_flag_F77=' -expect_unresolved \*'
22291 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'
22293 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22294 hardcode_libdir_separator_F77=:
22297 osf4* | osf5*) # as osf3* with the addition of -msym flag
22298 if test "$GCC" = yes; then
22299 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22300 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'
22301 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303 allow_undefined_flag_F77=' -expect_unresolved \*'
22304 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'
22305 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~
22306 $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'
22308 # Both c and cxx compiler support -rpath directly
22309 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22311 hardcode_libdir_separator_F77=:
22315 no_undefined_flag_F77=' -z text'
22316 if test "$GCC" = yes; then
22318 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22319 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22320 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22323 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22327 hardcode_libdir_flag_spec_F77='-R$libdir'
22328 hardcode_shlibpath_var_F77=no
22330 solaris2.[0-5] | solaris2.[0-5].*) ;;
22332 # The compiler driver will combine linker options so we
22333 # cannot just pass the convience library names through
22334 # without $wl, iff we do not link with $LD.
22335 # Luckily, gcc supports the same syntax we need for Sun Studio.
22336 # Supported since Solaris 2.6 (maybe 2.5.1?)
22339 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22341 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' ;;
22344 link_all_deplibs_F77=yes
22348 if test "x$host_vendor" = xsequent; then
22349 # Use $CC to link under sequent, because it throws in some extra .o
22350 # files that make .init and .fini sections work.
22351 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22353 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22355 hardcode_libdir_flag_spec_F77='-L$libdir'
22356 hardcode_direct_F77=yes
22357 hardcode_minus_L_F77=yes
22358 hardcode_shlibpath_var_F77=no
22362 case $host_vendor in
22364 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22365 hardcode_direct_F77=yes # is this really true???
22368 ## LD is ld it makes a PLAMLIB
22369 ## CC just makes a GrossModule.
22370 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22371 reload_cmds_F77='$CC -r -o $output$reload_objs'
22372 hardcode_direct_F77=no
22375 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22376 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22379 runpath_var='LD_RUN_PATH'
22380 hardcode_shlibpath_var_F77=no
22384 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22385 hardcode_shlibpath_var_F77=no
22386 export_dynamic_flag_spec_F77='-Bexport'
22390 if test -d /usr/nec; then
22391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392 hardcode_shlibpath_var_F77=no
22393 runpath_var=LD_RUN_PATH
22394 hardcode_runpath_var=yes
22399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22400 no_undefined_flag_F77='${wl}-z,text'
22401 archive_cmds_need_lc_F77=no
22402 hardcode_shlibpath_var_F77=no
22403 runpath_var='LD_RUN_PATH'
22405 if test "$GCC" = yes; then
22406 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22407 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22409 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22410 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22414 sysv5* | sco3.2v5* | sco5v6*)
22415 # Note: We can NOT use -z defs as we might desire, because we do not
22416 # link with -lc, and that would cause any symbols used from libc to
22417 # always be unresolved, which means just about no library would
22418 # ever link correctly. If we're not using GNU ld we use -z text
22419 # though, which does catch some bad symbols but isn't as heavy-handed
22421 no_undefined_flag_F77='${wl}-z,text'
22422 allow_undefined_flag_F77='${wl}-z,nodefs'
22423 archive_cmds_need_lc_F77=no
22424 hardcode_shlibpath_var_F77=no
22425 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22426 hardcode_libdir_separator_F77=':'
22427 link_all_deplibs_F77=yes
22428 export_dynamic_flag_spec_F77='${wl}-Bexport'
22429 runpath_var='LD_RUN_PATH'
22431 if test "$GCC" = yes; then
22432 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22433 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22435 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22436 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22441 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22442 hardcode_libdir_flag_spec_F77='-L$libdir'
22443 hardcode_shlibpath_var_F77=no
22452 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22453 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22454 test "$ld_shlibs_F77" = no && can_build_shared=no
22457 # Do we need to explicitly link libc?
22459 case "x$archive_cmds_need_lc_F77" in
22461 # Assume -lc should be added
22462 archive_cmds_need_lc_F77=yes
22464 if test "$enable_shared" = yes && test "$GCC" = yes; then
22465 case $archive_cmds_F77 in
22467 # FIXME: we may have to deal with multi-command sequences.
22470 # Test whether the compiler implicitly links with -lc since on some
22471 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22472 # to ld, don't add -lc before -lgcc.
22473 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22474 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479 (eval $ac_compile) 2>&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } 2>conftest.err; then
22485 libobjs=conftest.$ac_objext
22487 wl=$lt_prog_compiler_wl_F77
22488 pic_flag=$lt_prog_compiler_pic_F77
22494 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22495 allow_undefined_flag_F77=
22496 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22497 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }
22502 archive_cmds_need_lc_F77=no
22504 archive_cmds_need_lc_F77=yes
22506 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22508 cat conftest.err 1>&5
22511 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22512 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22519 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22520 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22521 library_names_spec=
22522 libname_spec='lib$name'
22526 postuninstall_cmds=
22530 shlibpath_overrides_runpath=unknown
22532 dynamic_linker="$host_os ld.so"
22533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22534 if test "$GCC" = yes; then
22535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22537 # if the path contains ";" then we assume it to be the separator
22538 # otherwise default to the standard path separator (i.e. ":") - it is
22539 # assumed that no part of a normal pathname contains ";" but that should
22540 # okay in the real world where ";" in dirpaths is itself problematic.
22541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22548 need_lib_prefix=unknown
22549 hardcode_into_libs=no
22551 # when you set need_version to no, make sure it does not cause -set_version
22552 # flags to be left without arguments
22553 need_version=unknown
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22559 shlibpath_var=LIBPATH
22561 # AIX 3 has no versioning support, so we append a major version to the name.
22562 soname_spec='${libname}${release}${shared_ext}$major'
22569 hardcode_into_libs=yes
22570 if test "$host_cpu" = ia64; then
22571 # AIX 5 supports IA64
22572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22573 shlibpath_var=LD_LIBRARY_PATH
22575 # With GCC up to 2.95.x, collect2 would create an import file
22576 # for dependence libraries. The import file would start with
22577 # the line `#! .'. This would cause the generated library to
22578 # depend on `.', always an invalid library. This was fixed in
22579 # development snapshots of GCC prior to 3.0.
22581 aix4 | aix4.[01] | aix4.[01].*)
22582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22587 can_build_shared=no
22591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22592 # soname into executable. Probably we can add versioning support to
22593 # collect2, so additional links can be useful in future.
22594 if test "$aix_use_runtimelinking" = yes; then
22595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22596 # instead of lib<name>.a to let people know that these are not
22597 # typical AIX shared libraries.
22598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22600 # We preserve .a as extension for shared libraries through AIX4.2
22601 # and later when we are not doing run time linking.
22602 library_names_spec='${libname}${release}.a $libname.a'
22603 soname_spec='${libname}${release}${shared_ext}$major'
22605 shlibpath_var=LIBPATH
22610 library_names_spec='$libname.ixlibrary $libname.a'
22611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22612 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'
22616 library_names_spec='${libname}${shared_ext}'
22617 dynamic_linker="$host_os ld.so"
22618 shlibpath_var=LIBRARY_PATH
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22625 soname_spec='${libname}${release}${shared_ext}$major'
22626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22627 shlibpath_var=LD_LIBRARY_PATH
22628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22630 # the default ld.so.conf also contains /usr/contrib/lib and
22631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22632 # libtool to hard-code these into programs
22635 cygwin* | mingw* | pw32*)
22636 version_type=windows
22641 case $GCC,$host_os in
22642 yes,cygwin* | yes,mingw* | yes,pw32*)
22643 library_names_spec='$libname.dll.a'
22644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22645 postinstall_cmds='base_file=`basename \${file}`~
22646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22647 dldir=$destdir/`dirname \$dlpath`~
22648 test -d \$dldir || mkdir -p \$dldir~
22649 $install_prog $dir/$dlname \$dldir/$dlname~
22650 chmod a+x \$dldir/$dlname'
22651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22652 dlpath=$dir/\$dldll~
22654 shlibpath_overrides_runpath=yes
22658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22663 # MinGW DLLs use traditional 'lib' prefix
22664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22667 # It is most probably a Windows format PATH printed by
22668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22669 # path with ; separators, and with drive letters. We can handle the
22670 # drive letters (cygwin fileutils understands them), so leave them,
22671 # especially as we might pass files found there to a mingw objdump,
22672 # which wouldn't understand a cygwinified path. Ahh.
22673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22679 # pw32 DLLs use 'pw' prefix rather than 'lib'
22680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22689 dynamic_linker='Win32 ld.exe'
22690 # FIXME: first we should search . and the directory the executable is in
22694 darwin* | rhapsody*)
22695 dynamic_linker="$host_os dyld"
22696 version_type=darwin
22699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22700 soname_spec='${libname}${release}${major}$shared_ext'
22701 shlibpath_overrides_runpath=yes
22702 shlibpath_var=DYLD_LIBRARY_PATH
22703 shrext_cmds='.dylib'
22704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22705 if test "$GCC" = yes; then
22706 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"`
22708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/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 shlibpath_var=LD_LIBRARY_PATH
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22731 soname_spec='${libname}${release}${shared_ext}$major'
22732 shlibpath_var=LD_LIBRARY_PATH
22733 shlibpath_overrides_runpath=no
22734 hardcode_into_libs=yes
22735 dynamic_linker='GNU ld.so'
22738 freebsd* | dragonfly*)
22739 # DragonFly does not have aout. When/if they implement a new
22740 # versioning mechanism, adjust this.
22741 if test -x /usr/bin/objformat; then
22742 objformat=`/usr/bin/objformat`
22745 freebsd[123]*) objformat=aout ;;
22746 *) objformat=elf ;;
22749 version_type=freebsd-$objformat
22750 case $version_type in
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22761 shlibpath_var=LD_LIBRARY_PATH
22764 shlibpath_overrides_runpath=yes
22766 freebsd3.[01]* | freebsdelf3.[01]*)
22767 shlibpath_overrides_runpath=yes
22768 hardcode_into_libs=yes
22770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22772 shlibpath_overrides_runpath=no
22773 hardcode_into_libs=yes
22775 freebsd*) # from 4.6 on
22776 shlibpath_overrides_runpath=yes
22777 hardcode_into_libs=yes
22786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22787 soname_spec='${libname}${release}${shared_ext}$major'
22788 shlibpath_var=LD_LIBRARY_PATH
22789 hardcode_into_libs=yes
22792 hpux9* | hpux10* | hpux11*)
22793 # Give a soname corresponding to the major version so that dld.sl refuses to
22794 # link against other versions.
22801 hardcode_into_libs=yes
22802 dynamic_linker="$host_os dld.so"
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22806 soname_spec='${libname}${release}${shared_ext}$major'
22807 if test "X$HPUX_IA64_MODE" = X32; then
22808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22816 hardcode_into_libs=yes
22817 dynamic_linker="$host_os dld.sl"
22818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22821 soname_spec='${libname}${release}${shared_ext}$major'
22822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22827 dynamic_linker="$host_os dld.sl"
22828 shlibpath_var=SHLIB_PATH
22829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22831 soname_spec='${libname}${release}${shared_ext}$major'
22834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22835 postinstall_cmds='chmod 555 $lib'
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22843 soname_spec='${libname}${release}${shared_ext}$major'
22844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22845 shlibpath_var=LD_LIBRARY_PATH
22846 shlibpath_overrides_runpath=no
22847 hardcode_into_libs=yes
22850 irix5* | irix6* | nonstopux*)
22852 nonstopux*) version_type=nonstopux ;;
22854 if test "$lt_cv_prog_gnu_ld" = yes; then
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22865 irix5* | nonstopux*)
22866 libsuff= shlibsuff=
22869 case $LD in # libtool.m4 will add one of these switches to LD
22870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22871 libsuff= shlibsuff= libmagic=32-bit;;
22872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22873 libsuff=32 shlibsuff=N32 libmagic=N32;;
22874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22876 *) libsuff= shlibsuff= libmagic=never-match;;
22880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22881 shlibpath_overrides_runpath=no
22882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22884 hardcode_into_libs=yes
22887 # No shared lib support for Linux oldld, aout, or coff.
22888 linux*oldld* | linux*aout* | linux*coff*)
22892 # This must be Linux ELF.
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22900 shlibpath_var=LD_LIBRARY_PATH
22901 shlibpath_overrides_runpath=no
22902 # This implies no fast_install, which is unacceptable.
22903 # Some rework will be needed to allow for fast_install
22904 # before this can be enabled.
22905 hardcode_into_libs=yes
22907 # Append ld.so.conf contents to the search path
22908 if test -f /etc/ld.so.conf; then
22909 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' ' '`
22910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22913 # We used to test for /lib/ld.so.1 and disable shared libraries on
22914 # powerpc, because MkLinux only supported shared libraries with the
22915 # GNU dynamic linker. Since this was broken with cross compilers,
22916 # most powerpc-linux boxes support dynamic linking these days and
22917 # people can always --disable-shared, the test was removed, and we
22918 # assume the GNU/Linux dynamic linker is in use.
22919 dynamic_linker='GNU/Linux ld.so'
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22929 shlibpath_overrides_runpath=no
22930 hardcode_into_libs=yes
22931 dynamic_linker='GNU ld.so'
22938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22941 dynamic_linker='NetBSD (a.out) ld.so'
22943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22944 soname_spec='${libname}${release}${shared_ext}$major'
22945 dynamic_linker='NetBSD ld.elf_so'
22947 shlibpath_var=LD_LIBRARY_PATH
22948 shlibpath_overrides_runpath=yes
22949 hardcode_into_libs=yes
22954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 shlibpath_overrides_runpath=yes
22963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22964 soname_spec='${libname}${release}${shared_ext}$major'
22965 shlibpath_var=LD_LIBRARY_PATH
22966 shlibpath_overrides_runpath=yes
22971 sys_lib_dlsearch_path_spec="/usr/lib"
22973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22976 *) need_version=no ;;
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22980 shlibpath_var=LD_LIBRARY_PATH
22981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22983 openbsd2.[89] | openbsd2.[89].*)
22984 shlibpath_overrides_runpath=no
22987 shlibpath_overrides_runpath=yes
22991 shlibpath_overrides_runpath=yes
22996 libname_spec='$name'
22999 library_names_spec='$libname${shared_ext} $libname.a'
23000 dynamic_linker='OS/2 ld.exe'
23001 shlibpath_var=LIBPATH
23004 osf3* | osf4* | osf5*)
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23020 soname_spec='${libname}${release}${shared_ext}$major'
23021 shlibpath_var=LD_LIBRARY_PATH
23022 shlibpath_overrides_runpath=yes
23023 hardcode_into_libs=yes
23024 # ldd complains unless libraries are executable
23025 postinstall_cmds='chmod +x $lib'
23030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23032 shlibpath_var=LD_LIBRARY_PATH
23033 shlibpath_overrides_runpath=yes
23034 if test "$with_gnu_ld" = yes; then
23042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23043 soname_spec='${libname}${release}${shared_ext}$major'
23044 shlibpath_var=LD_LIBRARY_PATH
23045 case $host_vendor in
23047 shlibpath_overrides_runpath=no
23049 export_dynamic_flag_spec='${wl}-Blargedynsym'
23050 runpath_var=LD_RUN_PATH
23058 shlibpath_overrides_runpath=no
23059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23065 if test -d /usr/nec ;then
23067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23068 soname_spec='$libname${shared_ext}.$major'
23069 shlibpath_var=LD_LIBRARY_PATH
23073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23074 version_type=freebsd-elf
23077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23078 soname_spec='${libname}${release}${shared_ext}$major'
23079 shlibpath_var=LD_LIBRARY_PATH
23080 hardcode_into_libs=yes
23081 if test "$with_gnu_ld" = yes; then
23082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23083 shlibpath_overrides_runpath=no
23085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23086 shlibpath_overrides_runpath=yes
23089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23093 sys_lib_dlsearch_path_spec='/usr/lib'
23098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23099 soname_spec='${libname}${release}${shared_ext}$major'
23100 shlibpath_var=LD_LIBRARY_PATH
23107 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23108 echo "${ECHO_T}$dynamic_linker" >&6; }
23109 test "$dynamic_linker" = no && can_build_shared=no
23111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23112 if test "$GCC" = yes; then
23113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23116 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23118 hardcode_action_F77=
23119 if test -n "$hardcode_libdir_flag_spec_F77" || \
23120 test -n "$runpath_var_F77" || \
23121 test "X$hardcode_automatic_F77" = "Xyes" ; then
23123 # We can hardcode non-existant directories.
23124 if test "$hardcode_direct_F77" != no &&
23125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23126 # have to relink, otherwise we might link with an installed library
23127 # when we should be linking with a yet-to-be-installed one
23128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23129 test "$hardcode_minus_L_F77" != no; then
23130 # Linking always hardcodes the temporary library directory.
23131 hardcode_action_F77=relink
23133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23134 hardcode_action_F77=immediate
23137 # We cannot hardcode anything, or else we can only hardcode existing
23139 hardcode_action_F77=unsupported
23141 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23142 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23144 if test "$hardcode_action_F77" = relink; then
23145 # Fast installation is not supported
23146 enable_fast_install=no
23147 elif test "$shlibpath_overrides_runpath" = yes ||
23148 test "$enable_shared" = no; then
23149 # Fast installation is not necessary
23150 enable_fast_install=needless
23154 # The else clause should only fire when bootstrapping the
23155 # libtool distribution, otherwise you forgot to ship ltmain.sh
23156 # with your package, and you will get complaints that there are
23157 # no rules to generate ltmain.sh.
23158 if test -f "$ltmain"; then
23159 # See if we are running on zsh, and set the options which allow our commands through
23160 # without removal of \ escapes.
23161 if test -n "${ZSH_VERSION+set}" ; then
23162 setopt NO_GLOB_SUBST
23164 # Now quote all the things that may contain metacharacters while being
23165 # careful not to overquote the AC_SUBSTed values. We take copies of the
23166 # variables and quote the copies for generation of the libtool script.
23167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23171 deplibs_check_method reload_flag reload_cmds need_locks \
23172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23173 lt_cv_sys_global_symbol_to_c_name_address \
23174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23175 old_postinstall_cmds old_postuninstall_cmds \
23179 lt_prog_compiler_wl_F77 \
23180 lt_prog_compiler_pic_F77 \
23181 lt_prog_compiler_static_F77 \
23182 lt_prog_compiler_no_builtin_flag_F77 \
23183 export_dynamic_flag_spec_F77 \
23184 thread_safe_flag_spec_F77 \
23185 whole_archive_flag_spec_F77 \
23186 enable_shared_with_static_runtimes_F77 \
23187 old_archive_cmds_F77 \
23188 old_archive_from_new_cmds_F77 \
23189 predep_objects_F77 \
23190 postdep_objects_F77 \
23193 compiler_lib_search_path_F77 \
23195 archive_expsym_cmds_F77 \
23196 postinstall_cmds_F77 \
23197 postuninstall_cmds_F77 \
23198 old_archive_from_expsyms_cmds_F77 \
23199 allow_undefined_flag_F77 \
23200 no_undefined_flag_F77 \
23201 export_symbols_cmds_F77 \
23202 hardcode_libdir_flag_spec_F77 \
23203 hardcode_libdir_flag_spec_ld_F77 \
23204 hardcode_libdir_separator_F77 \
23205 hardcode_automatic_F77 \
23207 module_expsym_cmds_F77 \
23208 lt_cv_prog_compiler_c_o_F77 \
23209 exclude_expsyms_F77 \
23210 include_expsyms_F77; do
23213 old_archive_cmds_F77 | \
23214 old_archive_from_new_cmds_F77 | \
23215 archive_cmds_F77 | \
23216 archive_expsym_cmds_F77 | \
23217 module_cmds_F77 | \
23218 module_expsym_cmds_F77 | \
23219 old_archive_from_expsyms_cmds_F77 | \
23220 export_symbols_cmds_F77 | \
23221 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23222 postinstall_cmds | postuninstall_cmds | \
23223 old_postinstall_cmds | old_postuninstall_cmds | \
23224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23225 # Double-quote double-evaled strings.
23226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23235 *'\$0 --fallback-echo"')
23236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23242 cat <<__EOF__ >> "$cfgfile"
23243 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23247 # Shell to use when invoking shell scripts.
23250 # Whether or not to build shared libraries.
23251 build_libtool_libs=$enable_shared
23253 # Whether or not to build static libraries.
23254 build_old_libs=$enable_static
23256 # Whether or not to add -lc for building shared libraries.
23257 build_libtool_need_lc=$archive_cmds_need_lc_F77
23259 # Whether or not to disallow shared libs when runtime libs are static
23260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23262 # Whether or not to optimize for fast installation.
23263 fast_install=$enable_fast_install
23266 host_alias=$host_alias
23270 # The build system.
23271 build_alias=$build_alias
23275 # An echo program that does not interpret backslashes.
23280 AR_FLAGS=$lt_AR_FLAGS
23285 # LTCC compiler flags.
23286 LTCFLAGS=$lt_LTCFLAGS
23288 # A language-specific compiler.
23289 CC=$lt_compiler_F77
23291 # Is the compiler the GNU C compiler?
23297 # The linker used to build libraries.
23300 # Whether we need hard or soft links.
23303 # A BSD-compatible nm program.
23306 # A symbol stripping program
23309 # Used to examine libraries when file_magic_cmd begins "file"
23310 MAGIC_CMD=$MAGIC_CMD
23312 # Used on cygwin: DLL creation program.
23315 # Used on cygwin: object dumper.
23318 # Used on cygwin: assembler.
23321 # The name of the directory that contains temporary libtool files.
23324 # How to create reloadable object files.
23325 reload_flag=$lt_reload_flag
23326 reload_cmds=$lt_reload_cmds
23328 # How to pass a linker flag through the compiler.
23329 wl=$lt_lt_prog_compiler_wl_F77
23331 # Object file suffix (normally "o").
23332 objext="$ac_objext"
23334 # Old archive suffix (normally "a").
23337 # Shared library suffix (normally ".so").
23338 shrext_cmds='$shrext_cmds'
23340 # Executable file suffix (normally "").
23343 # Additional compiler flags for building library objects.
23344 pic_flag=$lt_lt_prog_compiler_pic_F77
23347 # What is the maximum length of a command?
23348 max_cmd_len=$lt_cv_sys_max_cmd_len
23350 # Does compiler simultaneously support -c and -o options?
23351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23353 # Must we lock files when doing compilation?
23354 need_locks=$lt_need_locks
23356 # Do we need the lib prefix for modules?
23357 need_lib_prefix=$need_lib_prefix
23359 # Do we need a version for libraries?
23360 need_version=$need_version
23362 # Whether dlopen is supported.
23363 dlopen_support=$enable_dlopen
23365 # Whether dlopen of programs is supported.
23366 dlopen_self=$enable_dlopen_self
23368 # Whether dlopen of statically linked programs is supported.
23369 dlopen_self_static=$enable_dlopen_self_static
23371 # Compiler flag to prevent dynamic linking.
23372 link_static_flag=$lt_lt_prog_compiler_static_F77
23374 # Compiler flag to turn off builtin functions.
23375 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23377 # Compiler flag to allow reflexive dlopens.
23378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23380 # Compiler flag to generate shared objects directly from archives.
23381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23383 # Compiler flag to generate thread-safe objects.
23384 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23386 # Library versioning type.
23387 version_type=$version_type
23389 # Format of library name prefix.
23390 libname_spec=$lt_libname_spec
23392 # List of archive names. First name is the real one, the rest are links.
23393 # The last name is the one that the linker finds with -lNAME.
23394 library_names_spec=$lt_library_names_spec
23396 # The coded name of the library, if different from the real name.
23397 soname_spec=$lt_soname_spec
23399 # Commands used to build and install an old-style archive.
23401 old_archive_cmds=$lt_old_archive_cmds_F77
23402 old_postinstall_cmds=$lt_old_postinstall_cmds
23403 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23405 # Create an old-style archive from a shared archive.
23406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23408 # Create a temporary old-style archive to link instead of a shared archive.
23409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23411 # Commands used to build and install a shared archive.
23412 archive_cmds=$lt_archive_cmds_F77
23413 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23414 postinstall_cmds=$lt_postinstall_cmds
23415 postuninstall_cmds=$lt_postuninstall_cmds
23417 # Commands used to build a loadable module (assumed same as above if empty)
23418 module_cmds=$lt_module_cmds_F77
23419 module_expsym_cmds=$lt_module_expsym_cmds_F77
23421 # Commands to strip libraries.
23422 old_striplib=$lt_old_striplib
23423 striplib=$lt_striplib
23425 # Dependencies to place before the objects being linked to create a
23427 predep_objects=$lt_predep_objects_F77
23429 # Dependencies to place after the objects being linked to create a
23431 postdep_objects=$lt_postdep_objects_F77
23433 # Dependencies to place before the objects being linked to create a
23435 predeps=$lt_predeps_F77
23437 # Dependencies to place after the objects being linked to create a
23439 postdeps=$lt_postdeps_F77
23441 # The library search path used internally by the compiler when linking
23442 # a shared library.
23443 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23445 # Method to check whether dependent libraries are shared objects.
23446 deplibs_check_method=$lt_deplibs_check_method
23448 # Command to use when deplibs_check_method == file_magic.
23449 file_magic_cmd=$lt_file_magic_cmd
23451 # Flag that allows shared libraries with undefined symbols to be built.
23452 allow_undefined_flag=$lt_allow_undefined_flag_F77
23454 # Flag that forces no undefined symbols.
23455 no_undefined_flag=$lt_no_undefined_flag_F77
23457 # Commands used to finish a libtool library installation in a directory.
23458 finish_cmds=$lt_finish_cmds
23460 # Same as above, but a single script fragment to be evaled but not shown.
23461 finish_eval=$lt_finish_eval
23463 # Take the output of nm and produce a listing of raw symbols and C names.
23464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23466 # Transform the output of nm in a proper C declaration
23467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23469 # Transform the output of nm in a C name address pair
23470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23472 # This is the shared library runtime path variable.
23473 runpath_var=$runpath_var
23475 # This is the shared library path variable.
23476 shlibpath_var=$shlibpath_var
23478 # Is shlibpath searched before the hard-coded library search path?
23479 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23481 # How to hardcode a shared library path into an executable.
23482 hardcode_action=$hardcode_action_F77
23484 # Whether we should hardcode library paths into libraries.
23485 hardcode_into_libs=$hardcode_into_libs
23487 # Flag to hardcode \$libdir into a binary during linking.
23488 # This must work even if \$libdir does not exist.
23489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23491 # If ld is used when linking, flag to hardcode \$libdir into
23492 # a binary during linking. This must work even if \$libdir does
23494 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23496 # Whether we need a single -rpath flag with a separated argument.
23497 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23499 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23500 # resulting binary.
23501 hardcode_direct=$hardcode_direct_F77
23503 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23504 # resulting binary.
23505 hardcode_minus_L=$hardcode_minus_L_F77
23507 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23508 # the resulting binary.
23509 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23511 # Set to yes if building a shared library automatically hardcodes DIR into the library
23512 # and all subsequent libraries and executables linked against it.
23513 hardcode_automatic=$hardcode_automatic_F77
23515 # Variables whose values should be saved in libtool wrapper scripts and
23516 # restored at relink time.
23517 variables_saved_for_relink="$variables_saved_for_relink"
23519 # Whether libtool must link a program against all its dependency libraries.
23520 link_all_deplibs=$link_all_deplibs_F77
23522 # Compile-time system search path for libraries
23523 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23525 # Run-time system search path for libraries
23526 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23528 # Fix the shell variable \$srcfile for the compiler.
23529 fix_srcfile_path="$fix_srcfile_path_F77"
23531 # Set to yes if exported symbols are required.
23532 always_export_symbols=$always_export_symbols_F77
23534 # The commands to list exported symbols.
23535 export_symbols_cmds=$lt_export_symbols_cmds_F77
23537 # The commands to extract the exported symbol list from a shared archive.
23538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23540 # Symbols that should not be listed in the preloaded symbols.
23541 exclude_expsyms=$lt_exclude_expsyms_F77
23543 # Symbols that must always be exported.
23544 include_expsyms=$lt_include_expsyms_F77
23546 # ### END LIBTOOL TAG CONFIG: $tagname
23552 # If there is no Makefile yet, we rely on a make rule to execute
23553 # `config.status --recheck' to rerun these tests and create the
23554 # libtool script then.
23555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23556 if test -f "$ltmain_in"; then
23557 test -f Makefile && make "$ltmain"
23563 ac_cpp='$CPP $CPPFLAGS'
23564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23576 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23578 ac_cpp='$CPP $CPPFLAGS'
23579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23584 # Source file extension for Java test sources.
23587 # Object file extension for compiled Java test sources.
23591 # Code to be used in simple compile tests
23592 lt_simple_compile_test_code="class foo {}\n"
23594 # Code to be used in simple link tests
23595 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23597 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23599 # If no C compiler was specified, use CC.
23602 # If no C compiler flags were specified, use CFLAGS.
23603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23605 # Allow CC to be a program name with arguments.
23609 # save warnings/boilerplate of simple test code
23610 ac_outfile=conftest.$ac_objext
23611 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23612 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23613 _lt_compiler_boilerplate=`cat conftest.err`
23616 ac_outfile=conftest.$ac_objext
23617 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23618 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23619 _lt_linker_boilerplate=`cat conftest.err`
23623 # Allow CC to be a program name with arguments.
23628 for cc_temp in $compiler""; do
23630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23639 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23640 archive_cmds_need_lc_GCJ=no
23642 old_archive_cmds_GCJ=$old_archive_cmds
23645 lt_prog_compiler_no_builtin_flag_GCJ=
23647 if test "$GCC" = yes; then
23648 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23651 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23656 lt_cv_prog_compiler_rtti_exceptions=no
23657 ac_outfile=conftest.$ac_objext
23658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23659 lt_compiler_flag="-fno-rtti -fno-exceptions"
23660 # Insert the option either (1) after the last *FLAGS variable, or
23661 # (2) before a word containing "conftest.", or (3) at the end.
23662 # Note that $ac_compile itself does not contain backslashes and begins
23663 # with a dollar sign (not a hyphen), so the echo should work correctly.
23664 # The option is referenced via a variable to avoid confusing sed.
23665 lt_compile=`echo "$ac_compile" | $SED \
23666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23668 -e 's:$: $lt_compiler_flag:'`
23669 (eval echo "\"\$as_me:23669: $lt_compile\"" >&5)
23670 (eval "$lt_compile" 2>conftest.err)
23672 cat conftest.err >&5
23673 echo "$as_me:23673: \$? = $ac_status" >&5
23674 if (exit $ac_status) && test -s "$ac_outfile"; then
23675 # The compiler can only warn and ignore the option if not recognized
23676 # So say no if there are warnings other than the usual output.
23677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23680 lt_cv_prog_compiler_rtti_exceptions=yes
23686 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23690 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23697 lt_prog_compiler_wl_GCJ=
23698 lt_prog_compiler_pic_GCJ=
23699 lt_prog_compiler_static_GCJ=
23701 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23704 if test "$GCC" = yes; then
23705 lt_prog_compiler_wl_GCJ='-Wl,'
23706 lt_prog_compiler_static_GCJ='-static'
23710 # All AIX code is PIC.
23711 if test "$host_cpu" = ia64; then
23712 # AIX 5 now supports IA64 processor
23713 lt_prog_compiler_static_GCJ='-Bstatic'
23718 # FIXME: we need at least 68020 code to build shared libraries, but
23719 # adding the `-m68020' flag to GCC prevents building anything better,
23721 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23725 # PIC is the default for these OSes.
23728 mingw* | pw32* | os2*)
23729 # This hack is so that the source file can tell whether it is being
23730 # built for inclusion in a dll (and should export symbols for example).
23731 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23734 darwin* | rhapsody*)
23735 # PIC is the default on this platform
23736 # Common symbols not allowed in MH_DYLIB files
23737 lt_prog_compiler_pic_GCJ='-fno-common'
23741 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23742 # Instead, we relocate shared libraries at runtime.
23746 # Just because we use GCC doesn't mean we suddenly get shared libraries
23747 # on systems that don't support them.
23748 lt_prog_compiler_can_build_shared_GCJ=no
23753 if test -d /usr/nec; then
23754 lt_prog_compiler_pic_GCJ=-Kconform_pic
23759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23760 # not for PA HP-UX.
23766 lt_prog_compiler_pic_GCJ='-fPIC'
23772 lt_prog_compiler_pic_GCJ='-fPIC'
23776 # PORTME Check for flag to pass linker flags through the system compiler.
23779 lt_prog_compiler_wl_GCJ='-Wl,'
23780 if test "$host_cpu" = ia64; then
23781 # AIX 5 now supports IA64 processor
23782 lt_prog_compiler_static_GCJ='-Bstatic'
23784 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23788 # PIC is the default on this platform
23789 # Common symbols not allowed in MH_DYLIB files
23790 case $cc_basename in
23792 lt_prog_compiler_pic_GCJ='-qnocommon'
23793 lt_prog_compiler_wl_GCJ='-Wl,'
23798 mingw* | pw32* | os2*)
23799 # This hack is so that the source file can tell whether it is being
23800 # built for inclusion in a dll (and should export symbols for example).
23801 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23804 hpux9* | hpux10* | hpux11*)
23805 lt_prog_compiler_wl_GCJ='-Wl,'
23806 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23807 # not for PA HP-UX.
23813 lt_prog_compiler_pic_GCJ='+Z'
23816 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23817 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23820 irix5* | irix6* | nonstopux*)
23821 lt_prog_compiler_wl_GCJ='-Wl,'
23822 # PIC (with -KPIC) is the default.
23823 lt_prog_compiler_static_GCJ='-non_shared'
23827 lt_prog_compiler_pic_GCJ='-KPIC'
23828 lt_prog_compiler_static_GCJ='-Bstatic'
23832 case $cc_basename in
23834 lt_prog_compiler_wl_GCJ='-Wl,'
23835 lt_prog_compiler_pic_GCJ='-KPIC'
23836 lt_prog_compiler_static_GCJ='-static'
23838 pgcc* | pgf77* | pgf90* | pgf95*)
23839 # Portland Group compilers (*not* the Pentium gcc compiler,
23840 # which looks to be a dead project)
23841 lt_prog_compiler_wl_GCJ='-Wl,'
23842 lt_prog_compiler_pic_GCJ='-fpic'
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23846 lt_prog_compiler_wl_GCJ='-Wl,'
23847 # All Alpha code is PIC.
23848 lt_prog_compiler_static_GCJ='-non_shared'
23853 osf3* | osf4* | osf5*)
23854 lt_prog_compiler_wl_GCJ='-Wl,'
23855 # All OSF/1 code is PIC.
23856 lt_prog_compiler_static_GCJ='-non_shared'
23860 lt_prog_compiler_pic_GCJ='-KPIC'
23861 lt_prog_compiler_static_GCJ='-Bstatic'
23862 case $cc_basename in
23863 f77* | f90* | f95*)
23864 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23866 lt_prog_compiler_wl_GCJ='-Wl,';;
23871 lt_prog_compiler_wl_GCJ='-Qoption ld '
23872 lt_prog_compiler_pic_GCJ='-PIC'
23873 lt_prog_compiler_static_GCJ='-Bstatic'
23876 sysv4 | sysv4.2uw2* | sysv4.3*)
23877 lt_prog_compiler_wl_GCJ='-Wl,'
23878 lt_prog_compiler_pic_GCJ='-KPIC'
23879 lt_prog_compiler_static_GCJ='-Bstatic'
23883 if test -d /usr/nec ;then
23884 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23885 lt_prog_compiler_static_GCJ='-Bstatic'
23889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23890 lt_prog_compiler_wl_GCJ='-Wl,'
23891 lt_prog_compiler_pic_GCJ='-KPIC'
23892 lt_prog_compiler_static_GCJ='-Bstatic'
23896 lt_prog_compiler_wl_GCJ='-Wl,'
23897 lt_prog_compiler_can_build_shared_GCJ=no
23901 lt_prog_compiler_pic_GCJ='-pic'
23902 lt_prog_compiler_static_GCJ='-Bstatic'
23906 lt_prog_compiler_can_build_shared_GCJ=no
23911 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23912 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23915 # Check to make sure the PIC flag actually works.
23917 if test -n "$lt_prog_compiler_pic_GCJ"; then
23919 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23920 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23921 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23924 lt_prog_compiler_pic_works_GCJ=no
23925 ac_outfile=conftest.$ac_objext
23926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23927 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23928 # Insert the option either (1) after the last *FLAGS variable, or
23929 # (2) before a word containing "conftest.", or (3) at the end.
23930 # Note that $ac_compile itself does not contain backslashes and begins
23931 # with a dollar sign (not a hyphen), so the echo should work correctly.
23932 # The option is referenced via a variable to avoid confusing sed.
23933 lt_compile=`echo "$ac_compile" | $SED \
23934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23936 -e 's:$: $lt_compiler_flag:'`
23937 (eval echo "\"\$as_me:23937: $lt_compile\"" >&5)
23938 (eval "$lt_compile" 2>conftest.err)
23940 cat conftest.err >&5
23941 echo "$as_me:23941: \$? = $ac_status" >&5
23942 if (exit $ac_status) && test -s "$ac_outfile"; then
23943 # The compiler can only warn and ignore the option if not recognized
23944 # So say no if there are warnings other than the usual output.
23945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23948 lt_prog_compiler_pic_works_GCJ=yes
23954 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23955 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23957 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23958 case $lt_prog_compiler_pic_GCJ in
23960 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23963 lt_prog_compiler_pic_GCJ=
23964 lt_prog_compiler_can_build_shared_GCJ=no
23969 # For platforms which do not support PIC, -DPIC is meaningless:
23971 lt_prog_compiler_pic_GCJ=
23974 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23979 # Check to make sure the static flag actually works.
23981 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23982 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23983 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23984 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23987 lt_prog_compiler_static_works_GCJ=no
23988 save_LDFLAGS="$LDFLAGS"
23989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23990 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23992 # The linker can only warn and ignore the option if not recognized
23993 # So say no if there are warnings
23994 if test -s conftest.err; then
23995 # Append any errors to the config.log.
23996 cat conftest.err 1>&5
23997 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23999 if diff conftest.exp conftest.er2 >/dev/null; then
24000 lt_prog_compiler_static_works_GCJ=yes
24003 lt_prog_compiler_static_works_GCJ=yes
24007 LDFLAGS="$save_LDFLAGS"
24010 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24011 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24013 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24016 lt_prog_compiler_static_GCJ=
24020 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24021 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24022 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24023 echo $ECHO_N "(cached) $ECHO_C" >&6
24025 lt_cv_prog_compiler_c_o_GCJ=no
24026 $rm -r conftest 2>/dev/null
24030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24032 lt_compiler_flag="-o out/conftest2.$ac_objext"
24033 # Insert the option either (1) after the last *FLAGS variable, or
24034 # (2) before a word containing "conftest.", or (3) at the end.
24035 # Note that $ac_compile itself does not contain backslashes and begins
24036 # with a dollar sign (not a hyphen), so the echo should work correctly.
24037 lt_compile=`echo "$ac_compile" | $SED \
24038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24040 -e 's:$: $lt_compiler_flag:'`
24041 (eval echo "\"\$as_me:24041: $lt_compile\"" >&5)
24042 (eval "$lt_compile" 2>out/conftest.err)
24044 cat out/conftest.err >&5
24045 echo "$as_me:24045: \$? = $ac_status" >&5
24046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24048 # The compiler can only warn and ignore the option if not recognized
24049 # So say no if there are warnings
24050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24053 lt_cv_prog_compiler_c_o_GCJ=yes
24058 # SGI C++ compiler will create directory out/ii_files/ for
24059 # template instantiation
24060 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24061 $rm out/* && rmdir out
24067 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24068 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24071 hard_links="nottested"
24072 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24073 # do not overwrite the value of need_locks provided by the user
24074 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24075 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24080 ln conftest.a conftest.b 2>&5 || hard_links=no
24081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24082 { echo "$as_me:$LINENO: result: $hard_links" >&5
24083 echo "${ECHO_T}$hard_links" >&6; }
24084 if test "$hard_links" = no; then
24085 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24086 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24093 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24094 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24097 allow_undefined_flag_GCJ=
24098 enable_shared_with_static_runtimes_GCJ=no
24100 archive_expsym_cmds_GCJ=
24101 old_archive_From_new_cmds_GCJ=
24102 old_archive_from_expsyms_cmds_GCJ=
24103 export_dynamic_flag_spec_GCJ=
24104 whole_archive_flag_spec_GCJ=
24105 thread_safe_flag_spec_GCJ=
24106 hardcode_libdir_flag_spec_GCJ=
24107 hardcode_libdir_flag_spec_ld_GCJ=
24108 hardcode_libdir_separator_GCJ=
24109 hardcode_direct_GCJ=no
24110 hardcode_minus_L_GCJ=no
24111 hardcode_shlibpath_var_GCJ=unsupported
24112 link_all_deplibs_GCJ=unknown
24113 hardcode_automatic_GCJ=no
24115 module_expsym_cmds_GCJ=
24116 always_export_symbols_GCJ=no
24117 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24118 # include_expsyms should be a list of space-separated symbols to be *always*
24119 # included in the symbol list
24120 include_expsyms_GCJ=
24121 # exclude_expsyms can be an extended regexp of symbols to exclude
24122 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24124 # as well as any symbol that contains `d'.
24125 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24127 # platforms (ab)use it in PIC code, but their linkers get confused if
24128 # the symbol is explicitly referenced. Since portable code cannot
24129 # rely on this symbol name, it's probably fine to never include it in
24130 # preloaded symbol tables.
24131 extract_expsyms_cmds=
24132 # Just being paranoid about ensuring that cc_basename is set.
24133 for cc_temp in $compiler""; do
24135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24141 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24144 cygwin* | mingw* | pw32*)
24145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24146 # When not using gcc, we currently assume that we are using
24147 # Microsoft Visual C++.
24148 if test "$GCC" != yes; then
24153 # we just hope/assume this is gcc and not c89 (= MSVC++)
24162 if test "$with_gnu_ld" = yes; then
24163 # If archive_cmds runs LD, not CC, wlarc should be empty
24166 # Set some defaults for GNU ld with shared library support. These
24167 # are reset later if shared libraries are not supported. Putting them
24168 # here allows them to be overridden if necessary.
24169 runpath_var=LD_RUN_PATH
24170 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24171 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24172 # ancient GNU ld didn't support --whole-archive et. al.
24173 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24174 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24176 whole_archive_flag_spec_GCJ=
24178 supports_anon_versioning=no
24179 case `$LD -v 2>/dev/null` in
24180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24183 *\ 2.11.*) ;; # other 2.11 versions
24184 *) supports_anon_versioning=yes ;;
24187 # See if GNU ld supports shared libraries.
24189 aix3* | aix4* | aix5*)
24190 # On AIX/PPC, the GNU linker is very broken
24191 if test "$host_cpu" != ia64; then
24195 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24196 *** to be unable to reliably create shared libraries on AIX.
24197 *** Therefore, libtool is disabling shared libraries support. If you
24198 *** really care for shared libraries, you may want to modify your PATH
24199 *** so that a non-GNU linker is found, and then restart.
24206 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)'
24207 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24208 hardcode_minus_L_GCJ=yes
24210 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24211 # that the semantics of dynamic libraries on AmigaOS, at least up
24212 # to version 4, is to share data among multiple programs linked
24213 # with the same dynamic library. Since this doesn't match the
24214 # behavior of shared libraries on other platforms, we can't use
24220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24221 allow_undefined_flag_GCJ=unsupported
24222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24223 # support --undefined. This deserves some investigation. FIXME
24224 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24230 cygwin* | mingw* | pw32*)
24231 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24232 # as there is no search path for DLLs.
24233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24234 allow_undefined_flag_GCJ=unsupported
24235 always_export_symbols_GCJ=no
24236 enable_shared_with_static_runtimes_GCJ=yes
24237 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24239 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24240 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24241 # If the export-symbols file already is a .def file (1st line
24242 # is EXPORTS), use it as is; otherwise, prepend...
24243 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24244 cp $export_symbols $output_objdir/$soname.def;
24246 echo EXPORTS > $output_objdir/$soname.def;
24247 cat $export_symbols >> $output_objdir/$soname.def;
24249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24256 hardcode_direct_GCJ=no
24257 hardcode_shlibpath_var_GCJ=no
24258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24259 export_dynamic_flag_spec_GCJ='${wl}-E'
24260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24261 # Instead, shared libraries are loaded at an image base (0x10000000 by
24262 # default) and relocated if they conflict, which is a slow very memory
24263 # consuming and fragmenting process. To avoid this, we pick a random,
24264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24266 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'
24267 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'
24271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24273 case $cc_basename,$host_cpu in
24274 pgcc*) # Portland Group C compiler
24275 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'
24276 tmp_addflag=' $pic_flag'
24278 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24279 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'
24280 tmp_addflag=' $pic_flag -Mnomain' ;;
24281 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24282 tmp_addflag=' -i_dynamic' ;;
24283 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24284 tmp_addflag=' -i_dynamic -nofor_main' ;;
24285 ifc* | ifort*) # Intel Fortran compiler
24286 tmp_addflag=' -nofor_main' ;;
24288 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24290 if test $supports_anon_versioning = yes; then
24291 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24293 $echo "local: *; };" >> $output_objdir/$libname.ver~
24294 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24303 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24306 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24307 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24312 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24317 *** create shared libraries on Solaris systems. Therefore, libtool
24318 *** is disabling shared libraries support. We urge you to upgrade GNU
24319 *** binutils to release 2.9.1 or newer. Another option is to modify
24320 *** your PATH or compiler configuration so that the native linker is
24321 *** used, and then restart.
24324 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24325 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24326 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24333 case `$LD -v 2>&1` in
24334 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24338 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24339 *** reliably create shared libraries on SCO systems. Therefore, libtool
24340 *** is disabling shared libraries support. We urge you to upgrade GNU
24341 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24342 *** your PATH or compiler configuration so that the native linker is
24343 *** used, and then restart.
24348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24349 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24350 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24351 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24360 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24362 hardcode_direct_GCJ=yes
24363 hardcode_shlibpath_var_GCJ=no
24367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24368 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24369 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24376 if test "$ld_shlibs_GCJ" = no; then
24378 hardcode_libdir_flag_spec_GCJ=
24379 export_dynamic_flag_spec_GCJ=
24380 whole_archive_flag_spec_GCJ=
24383 # PORTME fill in a description of your system's linker (not GNU ld)
24386 allow_undefined_flag_GCJ=unsupported
24387 always_export_symbols_GCJ=yes
24388 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'
24389 # Note: this linker hardcodes the directories in LIBPATH if there
24390 # are no directories specified by -L.
24391 hardcode_minus_L_GCJ=yes
24392 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24393 # Neither direct hardcoding nor static linking is supported with a
24395 hardcode_direct_GCJ=unsupported
24400 if test "$host_cpu" = ia64; then
24401 # On IA64, the linker does run time linking by default, so we don't
24402 # have to do anything special.
24403 aix_use_runtimelinking=no
24404 exp_sym_flag='-Bexport'
24407 # If we're using GNU nm, then we don't want the "-C" option.
24408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24410 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'
24412 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'
24414 aix_use_runtimelinking=no
24416 # Test if we are trying to use run time linking or normal
24417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24418 # need to do runtime linking.
24419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24420 for ld_flag in $LDFLAGS; do
24421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24422 aix_use_runtimelinking=yes
24429 exp_sym_flag='-bexport'
24430 no_entry_flag='-bnoentry'
24433 # When large executables or shared objects are built, AIX ld can
24434 # have problems creating the table of contents. If linking a library
24435 # or program results in "error TOC overflow" add -mminimal-toc to
24436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24439 archive_cmds_GCJ=''
24440 hardcode_direct_GCJ=yes
24441 hardcode_libdir_separator_GCJ=':'
24442 link_all_deplibs_GCJ=yes
24444 if test "$GCC" = yes; then
24445 case $host_os in aix4.[012]|aix4.[012].*)
24446 # We only want to do this on AIX 4.2 and lower, the check
24447 # below for broken collect2 doesn't work under 4.3+
24448 collect2name=`${CC} -print-prog-name=collect2`
24449 if test -f "$collect2name" && \
24450 strings "$collect2name" | grep resolve_lib_name >/dev/null
24452 # We have reworked collect2
24453 hardcode_direct_GCJ=yes
24455 # We have old collect2
24456 hardcode_direct_GCJ=unsupported
24457 # It fails to find uninstalled libraries when the uninstalled
24458 # path is not listed in the libpath. Setting hardcode_minus_L
24459 # to unsupported forces relinking
24460 hardcode_minus_L_GCJ=yes
24461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24462 hardcode_libdir_separator_GCJ=
24466 shared_flag='-shared'
24467 if test "$aix_use_runtimelinking" = yes; then
24468 shared_flag="$shared_flag "'${wl}-G'
24472 if test "$host_cpu" = ia64; then
24473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24474 # chokes on -Wl,-G. The following line is correct:
24477 if test "$aix_use_runtimelinking" = yes; then
24478 shared_flag='${wl}-G'
24480 shared_flag='${wl}-bM:SRE'
24485 # It seems that -bexpall does not export symbols beginning with
24486 # underscore (_), so it is better to generate a list of symbols to export.
24487 always_export_symbols_GCJ=yes
24488 if test "$aix_use_runtimelinking" = yes; then
24489 # Warning - without using the other runtime loading flags (-brtl),
24490 # -berok will link without error, but may produce a broken library.
24491 allow_undefined_flag_GCJ='-berok'
24492 # Determine the default libpath from the value encoded in an empty executable.
24493 cat >conftest.$ac_ext <<_ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h. */
24508 rm -f conftest.$ac_objext conftest$ac_exeext
24509 if { (ac_try="$ac_link"
24510 case "(($ac_try" in
24511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512 *) ac_try_echo=$ac_try;;
24514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515 (eval "$ac_link") 2>conftest.er1
24517 grep -v '^ *+' conftest.er1 >conftest.err
24519 cat conftest.err >&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); } &&
24522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24523 { (case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_try") 2>&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; } &&
24532 { ac_try='test -s conftest$ac_exeext'
24533 { (case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538 (eval "$ac_try") 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24545 # Check for a 64-bit object if we didn't find anything.
24546 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; }
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24555 rm -f core conftest.err conftest.$ac_objext \
24556 conftest$ac_exeext conftest.$ac_ext
24557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24559 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24560 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"
24562 if test "$host_cpu" = ia64; then
24563 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24564 allow_undefined_flag_GCJ="-z nodefs"
24565 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"
24567 # Determine the default libpath from the value encoded in an empty executable.
24568 cat >conftest.$ac_ext <<_ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24583 rm -f conftest.$ac_objext conftest$ac_exeext
24584 if { (ac_try="$ac_link"
24585 case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590 (eval "$ac_link") 2>conftest.er1
24592 grep -v '^ *+' conftest.er1 >conftest.err
24594 cat conftest.err >&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } &&
24597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24598 { (case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_try") 2>&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest$ac_exeext'
24608 { (case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_try") 2>&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; }; then
24618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24620 # Check for a 64-bit object if we didn't find anything.
24621 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; }
24624 echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24630 rm -f core conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
24632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24634 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24635 # Warning - without using the other run time loading flags,
24636 # -berok will link without error, but may produce a broken library.
24637 no_undefined_flag_GCJ=' ${wl}-bernotok'
24638 allow_undefined_flag_GCJ=' ${wl}-berok'
24639 # Exported symbols can be pulled into shared objects from archives
24640 whole_archive_flag_spec_GCJ='$convenience'
24641 archive_cmds_need_lc_GCJ=yes
24642 # This is similar to how AIX traditionally builds its shared libraries.
24643 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'
24649 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)'
24650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24651 hardcode_minus_L_GCJ=yes
24652 # see comment about different semantics on the GNU ld section
24657 export_dynamic_flag_spec_GCJ=-rdynamic
24660 cygwin* | mingw* | pw32*)
24661 # When not using gcc, we currently assume that we are using
24662 # Microsoft Visual C++.
24663 # hardcode_libdir_flag_spec is actually meaningless, as there is
24664 # no search path for DLLs.
24665 hardcode_libdir_flag_spec_GCJ=' '
24666 allow_undefined_flag_GCJ=unsupported
24667 # Tell ltmain to make .lib files, not .a files.
24669 # Tell ltmain to make .dll files, not .so files.
24671 # FIXME: Setting linknames here is a bad hack.
24672 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24673 # The linker will automatically build a .lib file if we build a DLL.
24674 old_archive_From_new_cmds_GCJ='true'
24675 # FIXME: Should let the user specify the lib program.
24676 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24677 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24678 enable_shared_with_static_runtimes_GCJ=yes
24681 darwin* | rhapsody*)
24683 rhapsody* | darwin1.[012])
24684 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24687 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24688 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24690 case ${MACOSX_DEPLOYMENT_TARGET} in
24692 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24695 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24701 archive_cmds_need_lc_GCJ=no
24702 hardcode_direct_GCJ=no
24703 hardcode_automatic_GCJ=yes
24704 hardcode_shlibpath_var_GCJ=unsupported
24705 whole_archive_flag_spec_GCJ=''
24706 link_all_deplibs_GCJ=yes
24707 if test "$GCC" = yes ; then
24708 output_verbose_link_cmd='echo'
24709 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24710 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24711 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24712 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}'
24713 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}'
24715 case $cc_basename in
24717 output_verbose_link_cmd='echo'
24718 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24719 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24720 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24721 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}'
24722 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}'
24732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24734 hardcode_shlibpath_var_GCJ=no
24741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24742 # support. Future versions do this automatically, but an explicit c++rt0.o
24743 # does not break anything, and helps significantly (at the cost of a little
24746 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24747 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24748 hardcode_direct_GCJ=yes
24749 hardcode_shlibpath_var_GCJ=no
24752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24754 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24755 hardcode_direct_GCJ=yes
24756 hardcode_minus_L_GCJ=yes
24757 hardcode_shlibpath_var_GCJ=no
24760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24761 freebsd* | kfreebsd*-gnu | dragonfly*)
24762 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24763 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24764 hardcode_direct_GCJ=yes
24765 hardcode_shlibpath_var_GCJ=no
24769 if test "$GCC" = yes; then
24770 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'
24772 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'
24774 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24775 hardcode_libdir_separator_GCJ=:
24776 hardcode_direct_GCJ=yes
24778 # hardcode_minus_L: Not really in the search PATH,
24779 # but as the default location of the library.
24780 hardcode_minus_L_GCJ=yes
24781 export_dynamic_flag_spec_GCJ='${wl}-E'
24785 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24786 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24788 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24790 if test "$with_gnu_ld" = no; then
24791 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24792 hardcode_libdir_separator_GCJ=:
24794 hardcode_direct_GCJ=yes
24795 export_dynamic_flag_spec_GCJ='${wl}-E'
24797 # hardcode_minus_L: Not really in the search PATH,
24798 # but as the default location of the library.
24799 hardcode_minus_L_GCJ=yes
24804 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24807 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24810 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24813 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24819 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24822 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24825 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24829 if test "$with_gnu_ld" = no; then
24830 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24831 hardcode_libdir_separator_GCJ=:
24835 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24836 hardcode_direct_GCJ=no
24837 hardcode_shlibpath_var_GCJ=no
24840 hardcode_direct_GCJ=yes
24841 export_dynamic_flag_spec_GCJ='${wl}-E'
24843 # hardcode_minus_L: Not really in the search PATH,
24844 # but as the default location of the library.
24845 hardcode_minus_L_GCJ=yes
24851 irix5* | irix6* | nonstopux*)
24852 if test "$GCC" = yes; then
24853 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'
24855 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'
24856 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24858 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24859 hardcode_libdir_separator_GCJ=:
24860 link_all_deplibs_GCJ=yes
24864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24867 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24869 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24870 hardcode_direct_GCJ=yes
24871 hardcode_shlibpath_var_GCJ=no
24875 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24876 hardcode_direct_GCJ=yes
24877 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24878 hardcode_libdir_separator_GCJ=:
24879 hardcode_shlibpath_var_GCJ=no
24883 hardcode_direct_GCJ=yes
24884 hardcode_shlibpath_var_GCJ=no
24885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24886 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24887 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24888 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24889 export_dynamic_flag_spec_GCJ='${wl}-E'
24892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24897 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24898 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24906 hardcode_minus_L_GCJ=yes
24907 allow_undefined_flag_GCJ=unsupported
24908 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'
24909 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24913 if test "$GCC" = yes; then
24914 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24915 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'
24917 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24918 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'
24920 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24921 hardcode_libdir_separator_GCJ=:
24924 osf4* | osf5*) # as osf3* with the addition of -msym flag
24925 if test "$GCC" = yes; then
24926 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24927 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'
24928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24930 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24931 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'
24932 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~
24933 $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'
24935 # Both c and cxx compiler support -rpath directly
24936 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24938 hardcode_libdir_separator_GCJ=:
24942 no_undefined_flag_GCJ=' -z text'
24943 if test "$GCC" = yes; then
24945 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24946 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24947 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24950 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24954 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24955 hardcode_shlibpath_var_GCJ=no
24957 solaris2.[0-5] | solaris2.[0-5].*) ;;
24959 # The compiler driver will combine linker options so we
24960 # cannot just pass the convience library names through
24961 # without $wl, iff we do not link with $LD.
24962 # Luckily, gcc supports the same syntax we need for Sun Studio.
24963 # Supported since Solaris 2.6 (maybe 2.5.1?)
24966 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24968 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' ;;
24971 link_all_deplibs_GCJ=yes
24975 if test "x$host_vendor" = xsequent; then
24976 # Use $CC to link under sequent, because it throws in some extra .o
24977 # files that make .init and .fini sections work.
24978 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24980 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24982 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24983 hardcode_direct_GCJ=yes
24984 hardcode_minus_L_GCJ=yes
24985 hardcode_shlibpath_var_GCJ=no
24989 case $host_vendor in
24991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24992 hardcode_direct_GCJ=yes # is this really true???
24995 ## LD is ld it makes a PLAMLIB
24996 ## CC just makes a GrossModule.
24997 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24998 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24999 hardcode_direct_GCJ=no
25002 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25003 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25006 runpath_var='LD_RUN_PATH'
25007 hardcode_shlibpath_var_GCJ=no
25011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25012 hardcode_shlibpath_var_GCJ=no
25013 export_dynamic_flag_spec_GCJ='-Bexport'
25017 if test -d /usr/nec; then
25018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25019 hardcode_shlibpath_var_GCJ=no
25020 runpath_var=LD_RUN_PATH
25021 hardcode_runpath_var=yes
25026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25027 no_undefined_flag_GCJ='${wl}-z,text'
25028 archive_cmds_need_lc_GCJ=no
25029 hardcode_shlibpath_var_GCJ=no
25030 runpath_var='LD_RUN_PATH'
25032 if test "$GCC" = yes; then
25033 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25034 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25036 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25037 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25041 sysv5* | sco3.2v5* | sco5v6*)
25042 # Note: We can NOT use -z defs as we might desire, because we do not
25043 # link with -lc, and that would cause any symbols used from libc to
25044 # always be unresolved, which means just about no library would
25045 # ever link correctly. If we're not using GNU ld we use -z text
25046 # though, which does catch some bad symbols but isn't as heavy-handed
25048 no_undefined_flag_GCJ='${wl}-z,text'
25049 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25050 archive_cmds_need_lc_GCJ=no
25051 hardcode_shlibpath_var_GCJ=no
25052 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25053 hardcode_libdir_separator_GCJ=':'
25054 link_all_deplibs_GCJ=yes
25055 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25056 runpath_var='LD_RUN_PATH'
25058 if test "$GCC" = yes; then
25059 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25060 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25062 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25063 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25070 hardcode_shlibpath_var_GCJ=no
25079 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25080 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25081 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25084 # Do we need to explicitly link libc?
25086 case "x$archive_cmds_need_lc_GCJ" in
25088 # Assume -lc should be added
25089 archive_cmds_need_lc_GCJ=yes
25091 if test "$enable_shared" = yes && test "$GCC" = yes; then
25092 case $archive_cmds_GCJ in
25094 # FIXME: we may have to deal with multi-command sequences.
25097 # Test whether the compiler implicitly links with -lc since on some
25098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25099 # to ld, don't add -lc before -lgcc.
25100 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25101 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25106 (eval $ac_compile) 2>&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } 2>conftest.err; then
25112 libobjs=conftest.$ac_objext
25114 wl=$lt_prog_compiler_wl_GCJ
25115 pic_flag=$lt_prog_compiler_pic_GCJ
25121 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25122 allow_undefined_flag_GCJ=
25123 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25124 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }
25129 archive_cmds_need_lc_GCJ=no
25131 archive_cmds_need_lc_GCJ=yes
25133 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25135 cat conftest.err 1>&5
25138 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25139 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25146 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25147 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25148 library_names_spec=
25149 libname_spec='lib$name'
25153 postuninstall_cmds=
25157 shlibpath_overrides_runpath=unknown
25159 dynamic_linker="$host_os ld.so"
25160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25161 if test "$GCC" = yes; then
25162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25163 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25164 # if the path contains ";" then we assume it to be the separator
25165 # otherwise default to the standard path separator (i.e. ":") - it is
25166 # assumed that no part of a normal pathname contains ";" but that should
25167 # okay in the real world where ";" in dirpaths is itself problematic.
25168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25175 need_lib_prefix=unknown
25176 hardcode_into_libs=no
25178 # when you set need_version to no, make sure it does not cause -set_version
25179 # flags to be left without arguments
25180 need_version=unknown
25185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25186 shlibpath_var=LIBPATH
25188 # AIX 3 has no versioning support, so we append a major version to the name.
25189 soname_spec='${libname}${release}${shared_ext}$major'
25196 hardcode_into_libs=yes
25197 if test "$host_cpu" = ia64; then
25198 # AIX 5 supports IA64
25199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25200 shlibpath_var=LD_LIBRARY_PATH
25202 # With GCC up to 2.95.x, collect2 would create an import file
25203 # for dependence libraries. The import file would start with
25204 # the line `#! .'. This would cause the generated library to
25205 # depend on `.', always an invalid library. This was fixed in
25206 # development snapshots of GCC prior to 3.0.
25208 aix4 | aix4.[01] | aix4.[01].*)
25209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25211 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25214 can_build_shared=no
25218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25219 # soname into executable. Probably we can add versioning support to
25220 # collect2, so additional links can be useful in future.
25221 if test "$aix_use_runtimelinking" = yes; then
25222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25223 # instead of lib<name>.a to let people know that these are not
25224 # typical AIX shared libraries.
25225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25227 # We preserve .a as extension for shared libraries through AIX4.2
25228 # and later when we are not doing run time linking.
25229 library_names_spec='${libname}${release}.a $libname.a'
25230 soname_spec='${libname}${release}${shared_ext}$major'
25232 shlibpath_var=LIBPATH
25237 library_names_spec='$libname.ixlibrary $libname.a'
25238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25239 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'
25243 library_names_spec='${libname}${shared_ext}'
25244 dynamic_linker="$host_os ld.so"
25245 shlibpath_var=LIBRARY_PATH
25251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25252 soname_spec='${libname}${release}${shared_ext}$major'
25253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25254 shlibpath_var=LD_LIBRARY_PATH
25255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25257 # the default ld.so.conf also contains /usr/contrib/lib and
25258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25259 # libtool to hard-code these into programs
25262 cygwin* | mingw* | pw32*)
25263 version_type=windows
25268 case $GCC,$host_os in
25269 yes,cygwin* | yes,mingw* | yes,pw32*)
25270 library_names_spec='$libname.dll.a'
25271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25272 postinstall_cmds='base_file=`basename \${file}`~
25273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25274 dldir=$destdir/`dirname \$dlpath`~
25275 test -d \$dldir || mkdir -p \$dldir~
25276 $install_prog $dir/$dlname \$dldir/$dlname~
25277 chmod a+x \$dldir/$dlname'
25278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25279 dlpath=$dir/\$dldll~
25281 shlibpath_overrides_runpath=yes
25285 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25286 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25287 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25290 # MinGW DLLs use traditional 'lib' prefix
25291 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25293 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25294 # It is most probably a Windows format PATH printed by
25295 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25296 # path with ; separators, and with drive letters. We can handle the
25297 # drive letters (cygwin fileutils understands them), so leave them,
25298 # especially as we might pass files found there to a mingw objdump,
25299 # which wouldn't understand a cygwinified path. Ahh.
25300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25306 # pw32 DLLs use 'pw' prefix rather than 'lib'
25307 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25313 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25316 dynamic_linker='Win32 ld.exe'
25317 # FIXME: first we should search . and the directory the executable is in
25321 darwin* | rhapsody*)
25322 dynamic_linker="$host_os dyld"
25323 version_type=darwin
25326 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25327 soname_spec='${libname}${release}${major}$shared_ext'
25328 shlibpath_overrides_runpath=yes
25329 shlibpath_var=DYLD_LIBRARY_PATH
25330 shrext_cmds='.dylib'
25331 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25332 if test "$GCC" = yes; then
25333 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"`
25335 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25337 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/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 shlibpath_var=LD_LIBRARY_PATH
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25358 soname_spec='${libname}${release}${shared_ext}$major'
25359 shlibpath_var=LD_LIBRARY_PATH
25360 shlibpath_overrides_runpath=no
25361 hardcode_into_libs=yes
25362 dynamic_linker='GNU ld.so'
25365 freebsd* | dragonfly*)
25366 # DragonFly does not have aout. When/if they implement a new
25367 # versioning mechanism, adjust this.
25368 if test -x /usr/bin/objformat; then
25369 objformat=`/usr/bin/objformat`
25372 freebsd[123]*) objformat=aout ;;
25373 *) objformat=elf ;;
25376 version_type=freebsd-$objformat
25377 case $version_type in
25379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25388 shlibpath_var=LD_LIBRARY_PATH
25391 shlibpath_overrides_runpath=yes
25393 freebsd3.[01]* | freebsdelf3.[01]*)
25394 shlibpath_overrides_runpath=yes
25395 hardcode_into_libs=yes
25397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25399 shlibpath_overrides_runpath=no
25400 hardcode_into_libs=yes
25402 freebsd*) # from 4.6 on
25403 shlibpath_overrides_runpath=yes
25404 hardcode_into_libs=yes
25413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25414 soname_spec='${libname}${release}${shared_ext}$major'
25415 shlibpath_var=LD_LIBRARY_PATH
25416 hardcode_into_libs=yes
25419 hpux9* | hpux10* | hpux11*)
25420 # Give a soname corresponding to the major version so that dld.sl refuses to
25421 # link against other versions.
25428 hardcode_into_libs=yes
25429 dynamic_linker="$host_os dld.so"
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25433 soname_spec='${libname}${release}${shared_ext}$major'
25434 if test "X$HPUX_IA64_MODE" = X32; then
25435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25443 hardcode_into_libs=yes
25444 dynamic_linker="$host_os dld.sl"
25445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25448 soname_spec='${libname}${release}${shared_ext}$major'
25449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25454 dynamic_linker="$host_os dld.sl"
25455 shlibpath_var=SHLIB_PATH
25456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25458 soname_spec='${libname}${release}${shared_ext}$major'
25461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25462 postinstall_cmds='chmod 555 $lib'
25469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25470 soname_spec='${libname}${release}${shared_ext}$major'
25471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25472 shlibpath_var=LD_LIBRARY_PATH
25473 shlibpath_overrides_runpath=no
25474 hardcode_into_libs=yes
25477 irix5* | irix6* | nonstopux*)
25479 nonstopux*) version_type=nonstopux ;;
25481 if test "$lt_cv_prog_gnu_ld" = yes; then
25489 soname_spec='${libname}${release}${shared_ext}$major'
25490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25492 irix5* | nonstopux*)
25493 libsuff= shlibsuff=
25496 case $LD in # libtool.m4 will add one of these switches to LD
25497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25498 libsuff= shlibsuff= libmagic=32-bit;;
25499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25500 libsuff=32 shlibsuff=N32 libmagic=N32;;
25501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25503 *) libsuff= shlibsuff= libmagic=never-match;;
25507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25508 shlibpath_overrides_runpath=no
25509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25511 hardcode_into_libs=yes
25514 # No shared lib support for Linux oldld, aout, or coff.
25515 linux*oldld* | linux*aout* | linux*coff*)
25519 # This must be Linux ELF.
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25525 soname_spec='${libname}${release}${shared_ext}$major'
25526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25527 shlibpath_var=LD_LIBRARY_PATH
25528 shlibpath_overrides_runpath=no
25529 # This implies no fast_install, which is unacceptable.
25530 # Some rework will be needed to allow for fast_install
25531 # before this can be enabled.
25532 hardcode_into_libs=yes
25534 # Append ld.so.conf contents to the search path
25535 if test -f /etc/ld.so.conf; then
25536 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' ' '`
25537 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25540 # We used to test for /lib/ld.so.1 and disable shared libraries on
25541 # powerpc, because MkLinux only supported shared libraries with the
25542 # GNU dynamic linker. Since this was broken with cross compilers,
25543 # most powerpc-linux boxes support dynamic linking these days and
25544 # people can always --disable-shared, the test was removed, and we
25545 # assume the GNU/Linux dynamic linker is in use.
25546 dynamic_linker='GNU/Linux ld.so'
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25554 soname_spec='${libname}${release}${shared_ext}$major'
25555 shlibpath_var=LD_LIBRARY_PATH
25556 shlibpath_overrides_runpath=no
25557 hardcode_into_libs=yes
25558 dynamic_linker='GNU ld.so'
25565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25568 dynamic_linker='NetBSD (a.out) ld.so'
25570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25571 soname_spec='${libname}${release}${shared_ext}$major'
25572 dynamic_linker='NetBSD ld.elf_so'
25574 shlibpath_var=LD_LIBRARY_PATH
25575 shlibpath_overrides_runpath=yes
25576 hardcode_into_libs=yes
25581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 shlibpath_overrides_runpath=yes
25590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25591 soname_spec='${libname}${release}${shared_ext}$major'
25592 shlibpath_var=LD_LIBRARY_PATH
25593 shlibpath_overrides_runpath=yes
25598 sys_lib_dlsearch_path_spec="/usr/lib"
25600 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25602 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25603 *) need_version=no ;;
25605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25607 shlibpath_var=LD_LIBRARY_PATH
25608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25610 openbsd2.[89] | openbsd2.[89].*)
25611 shlibpath_overrides_runpath=no
25614 shlibpath_overrides_runpath=yes
25618 shlibpath_overrides_runpath=yes
25623 libname_spec='$name'
25626 library_names_spec='$libname${shared_ext} $libname.a'
25627 dynamic_linker='OS/2 ld.exe'
25628 shlibpath_var=LIBPATH
25631 osf3* | osf4* | osf5*)
25635 soname_spec='${libname}${release}${shared_ext}$major'
25636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25639 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25647 soname_spec='${libname}${release}${shared_ext}$major'
25648 shlibpath_var=LD_LIBRARY_PATH
25649 shlibpath_overrides_runpath=yes
25650 hardcode_into_libs=yes
25651 # ldd complains unless libraries are executable
25652 postinstall_cmds='chmod +x $lib'
25657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25658 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25659 shlibpath_var=LD_LIBRARY_PATH
25660 shlibpath_overrides_runpath=yes
25661 if test "$with_gnu_ld" = yes; then
25669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25670 soname_spec='${libname}${release}${shared_ext}$major'
25671 shlibpath_var=LD_LIBRARY_PATH
25672 case $host_vendor in
25674 shlibpath_overrides_runpath=no
25676 export_dynamic_flag_spec='${wl}-Blargedynsym'
25677 runpath_var=LD_RUN_PATH
25685 shlibpath_overrides_runpath=no
25686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25692 if test -d /usr/nec ;then
25694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25695 soname_spec='$libname${shared_ext}.$major'
25696 shlibpath_var=LD_LIBRARY_PATH
25700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25701 version_type=freebsd-elf
25704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25705 soname_spec='${libname}${release}${shared_ext}$major'
25706 shlibpath_var=LD_LIBRARY_PATH
25707 hardcode_into_libs=yes
25708 if test "$with_gnu_ld" = yes; then
25709 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25710 shlibpath_overrides_runpath=no
25712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25713 shlibpath_overrides_runpath=yes
25716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25720 sys_lib_dlsearch_path_spec='/usr/lib'
25725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25726 soname_spec='${libname}${release}${shared_ext}$major'
25727 shlibpath_var=LD_LIBRARY_PATH
25734 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25735 echo "${ECHO_T}$dynamic_linker" >&6; }
25736 test "$dynamic_linker" = no && can_build_shared=no
25738 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25739 if test "$GCC" = yes; then
25740 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25743 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25744 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25745 hardcode_action_GCJ=
25746 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25747 test -n "$runpath_var_GCJ" || \
25748 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25750 # We can hardcode non-existant directories.
25751 if test "$hardcode_direct_GCJ" != no &&
25752 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25753 # have to relink, otherwise we might link with an installed library
25754 # when we should be linking with a yet-to-be-installed one
25755 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25756 test "$hardcode_minus_L_GCJ" != no; then
25757 # Linking always hardcodes the temporary library directory.
25758 hardcode_action_GCJ=relink
25760 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25761 hardcode_action_GCJ=immediate
25764 # We cannot hardcode anything, or else we can only hardcode existing
25766 hardcode_action_GCJ=unsupported
25768 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25769 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25771 if test "$hardcode_action_GCJ" = relink; then
25772 # Fast installation is not supported
25773 enable_fast_install=no
25774 elif test "$shlibpath_overrides_runpath" = yes ||
25775 test "$enable_shared" = no; then
25776 # Fast installation is not necessary
25777 enable_fast_install=needless
25781 # The else clause should only fire when bootstrapping the
25782 # libtool distribution, otherwise you forgot to ship ltmain.sh
25783 # with your package, and you will get complaints that there are
25784 # no rules to generate ltmain.sh.
25785 if test -f "$ltmain"; then
25786 # See if we are running on zsh, and set the options which allow our commands through
25787 # without removal of \ escapes.
25788 if test -n "${ZSH_VERSION+set}" ; then
25789 setopt NO_GLOB_SUBST
25791 # Now quote all the things that may contain metacharacters while being
25792 # careful not to overquote the AC_SUBSTed values. We take copies of the
25793 # variables and quote the copies for generation of the libtool script.
25794 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25796 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25797 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25798 deplibs_check_method reload_flag reload_cmds need_locks \
25799 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25800 lt_cv_sys_global_symbol_to_c_name_address \
25801 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25802 old_postinstall_cmds old_postuninstall_cmds \
25806 lt_prog_compiler_wl_GCJ \
25807 lt_prog_compiler_pic_GCJ \
25808 lt_prog_compiler_static_GCJ \
25809 lt_prog_compiler_no_builtin_flag_GCJ \
25810 export_dynamic_flag_spec_GCJ \
25811 thread_safe_flag_spec_GCJ \
25812 whole_archive_flag_spec_GCJ \
25813 enable_shared_with_static_runtimes_GCJ \
25814 old_archive_cmds_GCJ \
25815 old_archive_from_new_cmds_GCJ \
25816 predep_objects_GCJ \
25817 postdep_objects_GCJ \
25820 compiler_lib_search_path_GCJ \
25822 archive_expsym_cmds_GCJ \
25823 postinstall_cmds_GCJ \
25824 postuninstall_cmds_GCJ \
25825 old_archive_from_expsyms_cmds_GCJ \
25826 allow_undefined_flag_GCJ \
25827 no_undefined_flag_GCJ \
25828 export_symbols_cmds_GCJ \
25829 hardcode_libdir_flag_spec_GCJ \
25830 hardcode_libdir_flag_spec_ld_GCJ \
25831 hardcode_libdir_separator_GCJ \
25832 hardcode_automatic_GCJ \
25834 module_expsym_cmds_GCJ \
25835 lt_cv_prog_compiler_c_o_GCJ \
25836 exclude_expsyms_GCJ \
25837 include_expsyms_GCJ; do
25840 old_archive_cmds_GCJ | \
25841 old_archive_from_new_cmds_GCJ | \
25842 archive_cmds_GCJ | \
25843 archive_expsym_cmds_GCJ | \
25844 module_cmds_GCJ | \
25845 module_expsym_cmds_GCJ | \
25846 old_archive_from_expsyms_cmds_GCJ | \
25847 export_symbols_cmds_GCJ | \
25848 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25849 postinstall_cmds | postuninstall_cmds | \
25850 old_postinstall_cmds | old_postuninstall_cmds | \
25851 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25852 # Double-quote double-evaled strings.
25853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25862 *'\$0 --fallback-echo"')
25863 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25869 cat <<__EOF__ >> "$cfgfile"
25870 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25874 # Shell to use when invoking shell scripts.
25877 # Whether or not to build shared libraries.
25878 build_libtool_libs=$enable_shared
25880 # Whether or not to build static libraries.
25881 build_old_libs=$enable_static
25883 # Whether or not to add -lc for building shared libraries.
25884 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25886 # Whether or not to disallow shared libs when runtime libs are static
25887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25889 # Whether or not to optimize for fast installation.
25890 fast_install=$enable_fast_install
25893 host_alias=$host_alias
25897 # The build system.
25898 build_alias=$build_alias
25902 # An echo program that does not interpret backslashes.
25907 AR_FLAGS=$lt_AR_FLAGS
25912 # LTCC compiler flags.
25913 LTCFLAGS=$lt_LTCFLAGS
25915 # A language-specific compiler.
25916 CC=$lt_compiler_GCJ
25918 # Is the compiler the GNU C compiler?
25924 # The linker used to build libraries.
25927 # Whether we need hard or soft links.
25930 # A BSD-compatible nm program.
25933 # A symbol stripping program
25936 # Used to examine libraries when file_magic_cmd begins "file"
25937 MAGIC_CMD=$MAGIC_CMD
25939 # Used on cygwin: DLL creation program.
25942 # Used on cygwin: object dumper.
25945 # Used on cygwin: assembler.
25948 # The name of the directory that contains temporary libtool files.
25951 # How to create reloadable object files.
25952 reload_flag=$lt_reload_flag
25953 reload_cmds=$lt_reload_cmds
25955 # How to pass a linker flag through the compiler.
25956 wl=$lt_lt_prog_compiler_wl_GCJ
25958 # Object file suffix (normally "o").
25959 objext="$ac_objext"
25961 # Old archive suffix (normally "a").
25964 # Shared library suffix (normally ".so").
25965 shrext_cmds='$shrext_cmds'
25967 # Executable file suffix (normally "").
25970 # Additional compiler flags for building library objects.
25971 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25974 # What is the maximum length of a command?
25975 max_cmd_len=$lt_cv_sys_max_cmd_len
25977 # Does compiler simultaneously support -c and -o options?
25978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25980 # Must we lock files when doing compilation?
25981 need_locks=$lt_need_locks
25983 # Do we need the lib prefix for modules?
25984 need_lib_prefix=$need_lib_prefix
25986 # Do we need a version for libraries?
25987 need_version=$need_version
25989 # Whether dlopen is supported.
25990 dlopen_support=$enable_dlopen
25992 # Whether dlopen of programs is supported.
25993 dlopen_self=$enable_dlopen_self
25995 # Whether dlopen of statically linked programs is supported.
25996 dlopen_self_static=$enable_dlopen_self_static
25998 # Compiler flag to prevent dynamic linking.
25999 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26001 # Compiler flag to turn off builtin functions.
26002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26004 # Compiler flag to allow reflexive dlopens.
26005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26007 # Compiler flag to generate shared objects directly from archives.
26008 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26010 # Compiler flag to generate thread-safe objects.
26011 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26013 # Library versioning type.
26014 version_type=$version_type
26016 # Format of library name prefix.
26017 libname_spec=$lt_libname_spec
26019 # List of archive names. First name is the real one, the rest are links.
26020 # The last name is the one that the linker finds with -lNAME.
26021 library_names_spec=$lt_library_names_spec
26023 # The coded name of the library, if different from the real name.
26024 soname_spec=$lt_soname_spec
26026 # Commands used to build and install an old-style archive.
26028 old_archive_cmds=$lt_old_archive_cmds_GCJ
26029 old_postinstall_cmds=$lt_old_postinstall_cmds
26030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26032 # Create an old-style archive from a shared archive.
26033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26035 # Create a temporary old-style archive to link instead of a shared archive.
26036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26038 # Commands used to build and install a shared archive.
26039 archive_cmds=$lt_archive_cmds_GCJ
26040 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26041 postinstall_cmds=$lt_postinstall_cmds
26042 postuninstall_cmds=$lt_postuninstall_cmds
26044 # Commands used to build a loadable module (assumed same as above if empty)
26045 module_cmds=$lt_module_cmds_GCJ
26046 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26048 # Commands to strip libraries.
26049 old_striplib=$lt_old_striplib
26050 striplib=$lt_striplib
26052 # Dependencies to place before the objects being linked to create a
26054 predep_objects=$lt_predep_objects_GCJ
26056 # Dependencies to place after the objects being linked to create a
26058 postdep_objects=$lt_postdep_objects_GCJ
26060 # Dependencies to place before the objects being linked to create a
26062 predeps=$lt_predeps_GCJ
26064 # Dependencies to place after the objects being linked to create a
26066 postdeps=$lt_postdeps_GCJ
26068 # The library search path used internally by the compiler when linking
26069 # a shared library.
26070 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26072 # Method to check whether dependent libraries are shared objects.
26073 deplibs_check_method=$lt_deplibs_check_method
26075 # Command to use when deplibs_check_method == file_magic.
26076 file_magic_cmd=$lt_file_magic_cmd
26078 # Flag that allows shared libraries with undefined symbols to be built.
26079 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26081 # Flag that forces no undefined symbols.
26082 no_undefined_flag=$lt_no_undefined_flag_GCJ
26084 # Commands used to finish a libtool library installation in a directory.
26085 finish_cmds=$lt_finish_cmds
26087 # Same as above, but a single script fragment to be evaled but not shown.
26088 finish_eval=$lt_finish_eval
26090 # Take the output of nm and produce a listing of raw symbols and C names.
26091 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26093 # Transform the output of nm in a proper C declaration
26094 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26096 # Transform the output of nm in a C name address pair
26097 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26099 # This is the shared library runtime path variable.
26100 runpath_var=$runpath_var
26102 # This is the shared library path variable.
26103 shlibpath_var=$shlibpath_var
26105 # Is shlibpath searched before the hard-coded library search path?
26106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26108 # How to hardcode a shared library path into an executable.
26109 hardcode_action=$hardcode_action_GCJ
26111 # Whether we should hardcode library paths into libraries.
26112 hardcode_into_libs=$hardcode_into_libs
26114 # Flag to hardcode \$libdir into a binary during linking.
26115 # This must work even if \$libdir does not exist.
26116 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26118 # If ld is used when linking, flag to hardcode \$libdir into
26119 # a binary during linking. This must work even if \$libdir does
26121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26123 # Whether we need a single -rpath flag with a separated argument.
26124 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26126 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26127 # resulting binary.
26128 hardcode_direct=$hardcode_direct_GCJ
26130 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26131 # resulting binary.
26132 hardcode_minus_L=$hardcode_minus_L_GCJ
26134 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26135 # the resulting binary.
26136 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26138 # Set to yes if building a shared library automatically hardcodes DIR into the library
26139 # and all subsequent libraries and executables linked against it.
26140 hardcode_automatic=$hardcode_automatic_GCJ
26142 # Variables whose values should be saved in libtool wrapper scripts and
26143 # restored at relink time.
26144 variables_saved_for_relink="$variables_saved_for_relink"
26146 # Whether libtool must link a program against all its dependency libraries.
26147 link_all_deplibs=$link_all_deplibs_GCJ
26149 # Compile-time system search path for libraries
26150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26152 # Run-time system search path for libraries
26153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26155 # Fix the shell variable \$srcfile for the compiler.
26156 fix_srcfile_path="$fix_srcfile_path_GCJ"
26158 # Set to yes if exported symbols are required.
26159 always_export_symbols=$always_export_symbols_GCJ
26161 # The commands to list exported symbols.
26162 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26164 # The commands to extract the exported symbol list from a shared archive.
26165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26167 # Symbols that should not be listed in the preloaded symbols.
26168 exclude_expsyms=$lt_exclude_expsyms_GCJ
26170 # Symbols that must always be exported.
26171 include_expsyms=$lt_include_expsyms_GCJ
26173 # ### END LIBTOOL TAG CONFIG: $tagname
26179 # If there is no Makefile yet, we rely on a make rule to execute
26180 # `config.status --recheck' to rerun these tests and create the
26181 # libtool script then.
26182 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26183 if test -f "$ltmain_in"; then
26184 test -f Makefile && make "$ltmain"
26190 ac_cpp='$CPP $CPPFLAGS'
26191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26204 ac_cpp='$CPP $CPPFLAGS'
26205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26210 # Source file extension for RC test sources.
26213 # Object file extension for compiled RC test sources.
26217 # Code to be used in simple compile tests
26218 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26220 # Code to be used in simple link tests
26221 lt_simple_link_test_code="$lt_simple_compile_test_code"
26223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26225 # If no C compiler was specified, use CC.
26228 # If no C compiler flags were specified, use CFLAGS.
26229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26231 # Allow CC to be a program name with arguments.
26235 # save warnings/boilerplate of simple test code
26236 ac_outfile=conftest.$ac_objext
26237 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26239 _lt_compiler_boilerplate=`cat conftest.err`
26242 ac_outfile=conftest.$ac_objext
26243 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26245 _lt_linker_boilerplate=`cat conftest.err`
26249 # Allow CC to be a program name with arguments.
26254 for cc_temp in $compiler""; do
26256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26264 lt_cv_prog_compiler_c_o_RC=yes
26266 # The else clause should only fire when bootstrapping the
26267 # libtool distribution, otherwise you forgot to ship ltmain.sh
26268 # with your package, and you will get complaints that there are
26269 # no rules to generate ltmain.sh.
26270 if test -f "$ltmain"; then
26271 # See if we are running on zsh, and set the options which allow our commands through
26272 # without removal of \ escapes.
26273 if test -n "${ZSH_VERSION+set}" ; then
26274 setopt NO_GLOB_SUBST
26276 # Now quote all the things that may contain metacharacters while being
26277 # careful not to overquote the AC_SUBSTed values. We take copies of the
26278 # variables and quote the copies for generation of the libtool script.
26279 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26281 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26282 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26283 deplibs_check_method reload_flag reload_cmds need_locks \
26284 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26285 lt_cv_sys_global_symbol_to_c_name_address \
26286 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26287 old_postinstall_cmds old_postuninstall_cmds \
26291 lt_prog_compiler_wl_RC \
26292 lt_prog_compiler_pic_RC \
26293 lt_prog_compiler_static_RC \
26294 lt_prog_compiler_no_builtin_flag_RC \
26295 export_dynamic_flag_spec_RC \
26296 thread_safe_flag_spec_RC \
26297 whole_archive_flag_spec_RC \
26298 enable_shared_with_static_runtimes_RC \
26299 old_archive_cmds_RC \
26300 old_archive_from_new_cmds_RC \
26301 predep_objects_RC \
26302 postdep_objects_RC \
26305 compiler_lib_search_path_RC \
26307 archive_expsym_cmds_RC \
26308 postinstall_cmds_RC \
26309 postuninstall_cmds_RC \
26310 old_archive_from_expsyms_cmds_RC \
26311 allow_undefined_flag_RC \
26312 no_undefined_flag_RC \
26313 export_symbols_cmds_RC \
26314 hardcode_libdir_flag_spec_RC \
26315 hardcode_libdir_flag_spec_ld_RC \
26316 hardcode_libdir_separator_RC \
26317 hardcode_automatic_RC \
26319 module_expsym_cmds_RC \
26320 lt_cv_prog_compiler_c_o_RC \
26321 exclude_expsyms_RC \
26322 include_expsyms_RC; do
26325 old_archive_cmds_RC | \
26326 old_archive_from_new_cmds_RC | \
26327 archive_cmds_RC | \
26328 archive_expsym_cmds_RC | \
26330 module_expsym_cmds_RC | \
26331 old_archive_from_expsyms_cmds_RC | \
26332 export_symbols_cmds_RC | \
26333 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26334 postinstall_cmds | postuninstall_cmds | \
26335 old_postinstall_cmds | old_postuninstall_cmds | \
26336 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26337 # Double-quote double-evaled strings.
26338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26347 *'\$0 --fallback-echo"')
26348 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26354 cat <<__EOF__ >> "$cfgfile"
26355 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26359 # Shell to use when invoking shell scripts.
26362 # Whether or not to build shared libraries.
26363 build_libtool_libs=$enable_shared
26365 # Whether or not to build static libraries.
26366 build_old_libs=$enable_static
26368 # Whether or not to add -lc for building shared libraries.
26369 build_libtool_need_lc=$archive_cmds_need_lc_RC
26371 # Whether or not to disallow shared libs when runtime libs are static
26372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26374 # Whether or not to optimize for fast installation.
26375 fast_install=$enable_fast_install
26378 host_alias=$host_alias
26382 # The build system.
26383 build_alias=$build_alias
26387 # An echo program that does not interpret backslashes.
26392 AR_FLAGS=$lt_AR_FLAGS
26397 # LTCC compiler flags.
26398 LTCFLAGS=$lt_LTCFLAGS
26400 # A language-specific compiler.
26403 # Is the compiler the GNU C compiler?
26409 # The linker used to build libraries.
26412 # Whether we need hard or soft links.
26415 # A BSD-compatible nm program.
26418 # A symbol stripping program
26421 # Used to examine libraries when file_magic_cmd begins "file"
26422 MAGIC_CMD=$MAGIC_CMD
26424 # Used on cygwin: DLL creation program.
26427 # Used on cygwin: object dumper.
26430 # Used on cygwin: assembler.
26433 # The name of the directory that contains temporary libtool files.
26436 # How to create reloadable object files.
26437 reload_flag=$lt_reload_flag
26438 reload_cmds=$lt_reload_cmds
26440 # How to pass a linker flag through the compiler.
26441 wl=$lt_lt_prog_compiler_wl_RC
26443 # Object file suffix (normally "o").
26444 objext="$ac_objext"
26446 # Old archive suffix (normally "a").
26449 # Shared library suffix (normally ".so").
26450 shrext_cmds='$shrext_cmds'
26452 # Executable file suffix (normally "").
26455 # Additional compiler flags for building library objects.
26456 pic_flag=$lt_lt_prog_compiler_pic_RC
26459 # What is the maximum length of a command?
26460 max_cmd_len=$lt_cv_sys_max_cmd_len
26462 # Does compiler simultaneously support -c and -o options?
26463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26465 # Must we lock files when doing compilation?
26466 need_locks=$lt_need_locks
26468 # Do we need the lib prefix for modules?
26469 need_lib_prefix=$need_lib_prefix
26471 # Do we need a version for libraries?
26472 need_version=$need_version
26474 # Whether dlopen is supported.
26475 dlopen_support=$enable_dlopen
26477 # Whether dlopen of programs is supported.
26478 dlopen_self=$enable_dlopen_self
26480 # Whether dlopen of statically linked programs is supported.
26481 dlopen_self_static=$enable_dlopen_self_static
26483 # Compiler flag to prevent dynamic linking.
26484 link_static_flag=$lt_lt_prog_compiler_static_RC
26486 # Compiler flag to turn off builtin functions.
26487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26489 # Compiler flag to allow reflexive dlopens.
26490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26492 # Compiler flag to generate shared objects directly from archives.
26493 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26495 # Compiler flag to generate thread-safe objects.
26496 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26498 # Library versioning type.
26499 version_type=$version_type
26501 # Format of library name prefix.
26502 libname_spec=$lt_libname_spec
26504 # List of archive names. First name is the real one, the rest are links.
26505 # The last name is the one that the linker finds with -lNAME.
26506 library_names_spec=$lt_library_names_spec
26508 # The coded name of the library, if different from the real name.
26509 soname_spec=$lt_soname_spec
26511 # Commands used to build and install an old-style archive.
26513 old_archive_cmds=$lt_old_archive_cmds_RC
26514 old_postinstall_cmds=$lt_old_postinstall_cmds
26515 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26517 # Create an old-style archive from a shared archive.
26518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26520 # Create a temporary old-style archive to link instead of a shared archive.
26521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26523 # Commands used to build and install a shared archive.
26524 archive_cmds=$lt_archive_cmds_RC
26525 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26526 postinstall_cmds=$lt_postinstall_cmds
26527 postuninstall_cmds=$lt_postuninstall_cmds
26529 # Commands used to build a loadable module (assumed same as above if empty)
26530 module_cmds=$lt_module_cmds_RC
26531 module_expsym_cmds=$lt_module_expsym_cmds_RC
26533 # Commands to strip libraries.
26534 old_striplib=$lt_old_striplib
26535 striplib=$lt_striplib
26537 # Dependencies to place before the objects being linked to create a
26539 predep_objects=$lt_predep_objects_RC
26541 # Dependencies to place after the objects being linked to create a
26543 postdep_objects=$lt_postdep_objects_RC
26545 # Dependencies to place before the objects being linked to create a
26547 predeps=$lt_predeps_RC
26549 # Dependencies to place after the objects being linked to create a
26551 postdeps=$lt_postdeps_RC
26553 # The library search path used internally by the compiler when linking
26554 # a shared library.
26555 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26557 # Method to check whether dependent libraries are shared objects.
26558 deplibs_check_method=$lt_deplibs_check_method
26560 # Command to use when deplibs_check_method == file_magic.
26561 file_magic_cmd=$lt_file_magic_cmd
26563 # Flag that allows shared libraries with undefined symbols to be built.
26564 allow_undefined_flag=$lt_allow_undefined_flag_RC
26566 # Flag that forces no undefined symbols.
26567 no_undefined_flag=$lt_no_undefined_flag_RC
26569 # Commands used to finish a libtool library installation in a directory.
26570 finish_cmds=$lt_finish_cmds
26572 # Same as above, but a single script fragment to be evaled but not shown.
26573 finish_eval=$lt_finish_eval
26575 # Take the output of nm and produce a listing of raw symbols and C names.
26576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26578 # Transform the output of nm in a proper C declaration
26579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26581 # Transform the output of nm in a C name address pair
26582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26584 # This is the shared library runtime path variable.
26585 runpath_var=$runpath_var
26587 # This is the shared library path variable.
26588 shlibpath_var=$shlibpath_var
26590 # Is shlibpath searched before the hard-coded library search path?
26591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26593 # How to hardcode a shared library path into an executable.
26594 hardcode_action=$hardcode_action_RC
26596 # Whether we should hardcode library paths into libraries.
26597 hardcode_into_libs=$hardcode_into_libs
26599 # Flag to hardcode \$libdir into a binary during linking.
26600 # This must work even if \$libdir does not exist.
26601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26603 # If ld is used when linking, flag to hardcode \$libdir into
26604 # a binary during linking. This must work even if \$libdir does
26606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26608 # Whether we need a single -rpath flag with a separated argument.
26609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26611 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26612 # resulting binary.
26613 hardcode_direct=$hardcode_direct_RC
26615 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26616 # resulting binary.
26617 hardcode_minus_L=$hardcode_minus_L_RC
26619 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26620 # the resulting binary.
26621 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26623 # Set to yes if building a shared library automatically hardcodes DIR into the library
26624 # and all subsequent libraries and executables linked against it.
26625 hardcode_automatic=$hardcode_automatic_RC
26627 # Variables whose values should be saved in libtool wrapper scripts and
26628 # restored at relink time.
26629 variables_saved_for_relink="$variables_saved_for_relink"
26631 # Whether libtool must link a program against all its dependency libraries.
26632 link_all_deplibs=$link_all_deplibs_RC
26634 # Compile-time system search path for libraries
26635 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26637 # Run-time system search path for libraries
26638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26640 # Fix the shell variable \$srcfile for the compiler.
26641 fix_srcfile_path="$fix_srcfile_path_RC"
26643 # Set to yes if exported symbols are required.
26644 always_export_symbols=$always_export_symbols_RC
26646 # The commands to list exported symbols.
26647 export_symbols_cmds=$lt_export_symbols_cmds_RC
26649 # The commands to extract the exported symbol list from a shared archive.
26650 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26652 # Symbols that should not be listed in the preloaded symbols.
26653 exclude_expsyms=$lt_exclude_expsyms_RC
26655 # Symbols that must always be exported.
26656 include_expsyms=$lt_include_expsyms_RC
26658 # ### END LIBTOOL TAG CONFIG: $tagname
26664 # If there is no Makefile yet, we rely on a make rule to execute
26665 # `config.status --recheck' to rerun these tests and create the
26666 # libtool script then.
26667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26668 if test -f "$ltmain_in"; then
26669 test -f Makefile && make "$ltmain"
26675 ac_cpp='$CPP $CPPFLAGS'
26676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26685 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26686 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26687 { (exit 1); exit 1; }; }
26691 # Append the new tag name to the list of available tags.
26692 if test -n "$tagname" ; then
26693 available_tags="$available_tags $tagname"
26699 # Now substitute the updated list of available tags.
26700 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26701 mv "${ofile}T" "$ofile"
26705 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26706 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26707 { (exit 1); exit 1; }; }
26713 # This can be used to rebuild libtool when needed
26714 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26716 # Always use our own libtool.
26717 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26719 # Prevent multiple expansion
26741 if test "$lt_cv_dlopen_self" = "yes" ; then
26743 cat >>confdefs.h <<\_ACEOF
26744 #define CAN_DLOPEN_SELF 1
26749 if test "$WITH_LLVMGCCDIR" = "default" ; then
26750 LLVMGCC="llvm-gcc${EXEEXT}"
26751 LLVMGXX="llvm-g++${EXEEXT}"
26752 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26753 set dummy $LLVMGCC; ac_word=$2
26754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26756 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26761 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765 for as_dir in $PATH
26768 test -z "$as_dir" && as_dir=.
26769 for ac_exec_ext in '' $ac_executable_extensions; do
26770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26771 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26782 LLVMGCC=$ac_cv_path_LLVMGCC
26783 if test -n "$LLVMGCC"; then
26784 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26785 echo "${ECHO_T}$LLVMGCC" >&6; }
26787 { echo "$as_me:$LINENO: result: no" >&5
26788 echo "${ECHO_T}no" >&6; }
26792 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26793 set dummy $LLVMGXX; ac_word=$2
26794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26796 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26801 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26805 for as_dir in $PATH
26808 test -z "$as_dir" && as_dir=.
26809 for ac_exec_ext in '' $ac_executable_extensions; do
26810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26811 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26822 LLVMGXX=$ac_cv_path_LLVMGXX
26823 if test -n "$LLVMGXX"; then
26824 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26825 echo "${ECHO_T}$LLVMGXX" >&6; }
26827 { echo "$as_me:$LINENO: result: no" >&5
26828 echo "${ECHO_T}no" >&6; }
26833 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26834 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26841 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26842 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26855 if test "$GCC" != "yes" && test "$ICC" != "yes"
26857 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26858 echo "$as_me: error: gcc|icc required but not found" >&2;}
26859 { (exit 1); exit 1; }; }
26862 if test "$GXX" != "yes" && test "$IXX" != "yes"
26864 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26865 echo "$as_me: error: g++|icc required but not found" >&2;}
26866 { (exit 1); exit 1; }; }
26869 if test "$GCC" = "yes"
26871 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26872 if test "$gccmajor" -lt "3"
26874 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26875 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26876 { (exit 1); exit 1; }; }
26880 if test -z "$llvm_cv_gnu_make_command"
26882 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26883 echo "$as_me: error: GNU Make required but not found" >&2;}
26884 { (exit 1); exit 1; }; }
26887 { echo "$as_me:$LINENO: result: ok" >&5
26888 echo "${ECHO_T}ok" >&6; }
26892 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26893 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26894 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26895 echo $ECHO_N "(cached) $ECHO_C" >&6
26897 ac_check_lib_save_LIBS=$LIBS
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26906 /* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26916 return elf_begin ();
26921 rm -f conftest.$ac_objext conftest$ac_exeext
26922 if { (ac_try="$ac_link"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_link") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936 { (case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_try") 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; } &&
26945 { ac_try='test -s conftest$ac_exeext'
26946 { (case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_try") 2>&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; }; then
26955 ac_cv_lib_elf_elf_begin=yes
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26960 ac_cv_lib_elf_elf_begin=no
26963 rm -f core conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
26965 LIBS=$ac_check_lib_save_LIBS
26967 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26968 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26969 if test $ac_cv_lib_elf_elf_begin = yes; then
26970 cat >>confdefs.h <<_ACEOF
26971 #define HAVE_LIBELF 1
26979 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26980 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26981 if test "${ac_cv_lib_m_sin+set}" = set; then
26982 echo $ECHO_N "(cached) $ECHO_C" >&6
26984 ac_check_lib_save_LIBS=$LIBS
26986 cat >conftest.$ac_ext <<_ACEOF
26989 cat confdefs.h >>conftest.$ac_ext
26990 cat >>conftest.$ac_ext <<_ACEOF
26991 /* end confdefs.h. */
26993 /* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
27008 rm -f conftest.$ac_objext conftest$ac_exeext
27009 if { (ac_try="$ac_link"
27010 case "(($ac_try" in
27011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012 *) ac_try_echo=$ac_try;;
27014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015 (eval "$ac_link") 2>conftest.er1
27017 grep -v '^ *+' conftest.er1 >conftest.err
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023 { (case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_try") 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest$ac_exeext'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
27042 ac_cv_lib_m_sin=yes
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27050 rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_check_lib_save_LIBS
27054 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27055 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27056 if test $ac_cv_lib_m_sin = yes; then
27057 cat >>confdefs.h <<_ACEOF
27058 #define HAVE_LIBM 1
27065 if test "$llvm_cv_os_type" = "MingW" ; then
27067 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27068 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27069 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27072 ac_check_lib_save_LIBS=$LIBS
27073 LIBS="-limagehlp $LIBS"
27074 cat >conftest.$ac_ext <<_ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h. */
27090 rm -f conftest.$ac_objext conftest$ac_exeext
27091 if { (ac_try="$ac_link"
27092 case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_link") 2>conftest.er1
27099 grep -v '^ *+' conftest.er1 >conftest.err
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; } &&
27114 { ac_try='test -s conftest$ac_exeext'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ac_cv_lib_imagehlp_main=yes
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27129 ac_cv_lib_imagehlp_main=no
27132 rm -f core conftest.err conftest.$ac_objext \
27133 conftest$ac_exeext conftest.$ac_ext
27134 LIBS=$ac_check_lib_save_LIBS
27136 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27137 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27138 if test $ac_cv_lib_imagehlp_main = yes; then
27139 cat >>confdefs.h <<_ACEOF
27140 #define HAVE_LIBIMAGEHLP 1
27143 LIBS="-limagehlp $LIBS"
27148 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27149 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27150 if test "${ac_cv_lib_psapi_main+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 ac_check_lib_save_LIBS=$LIBS
27154 LIBS="-lpsapi $LIBS"
27155 cat >conftest.$ac_ext <<_ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (ac_try="$ac_link"
27173 case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178 (eval "$ac_link") 2>conftest.er1
27180 grep -v '^ *+' conftest.er1 >conftest.err
27182 cat conftest.err >&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } &&
27185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27186 { (case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_try") 2>&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; } &&
27195 { ac_try='test -s conftest$ac_exeext'
27196 { (case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_try") 2>&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }; then
27205 ac_cv_lib_psapi_main=yes
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27210 ac_cv_lib_psapi_main=no
27213 rm -f core conftest.err conftest.$ac_objext \
27214 conftest$ac_exeext conftest.$ac_ext
27215 LIBS=$ac_check_lib_save_LIBS
27217 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27218 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27219 if test $ac_cv_lib_psapi_main = yes; then
27220 cat >>confdefs.h <<_ACEOF
27221 #define HAVE_LIBPSAPI 1
27224 LIBS="-lpsapi $LIBS"
27230 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27231 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27232 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27235 ac_func_search_save_LIBS=$LIBS
27236 cat >conftest.$ac_ext <<_ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h. */
27243 /* Override any GCC internal prototype to avoid an error.
27244 Use char because int might match the return type of a GCC
27245 builtin and then its argument prototype would still apply. */
27253 return lt_dlopen ();
27258 for ac_lib in '' ltdl; do
27259 if test -z "$ac_lib"; then
27260 ac_res="none required"
27263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27265 rm -f conftest.$ac_objext conftest$ac_exeext
27266 if { (ac_try="$ac_link"
27267 case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_link") 2>conftest.er1
27274 grep -v '^ *+' conftest.er1 >conftest.err
27276 cat conftest.err >&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } &&
27279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27280 { (case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_try") 2>&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; } &&
27289 { ac_try='test -s conftest$ac_exeext'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_try") 2>&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; }; then
27299 ac_cv_search_lt_dlopen=$ac_res
27301 echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27307 rm -f core conftest.err conftest.$ac_objext \
27309 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27313 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27316 ac_cv_search_lt_dlopen=no
27318 rm conftest.$ac_ext
27319 LIBS=$ac_func_search_save_LIBS
27321 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27322 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27323 ac_res=$ac_cv_search_lt_dlopen
27324 if test "$ac_res" != no; then
27325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27327 cat >>confdefs.h <<\_ACEOF
27328 #define HAVE_LT_DLOPEN 1
27332 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27333 not be available" >&5
27334 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27335 not be available" >&2;}
27339 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27340 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27341 if test "${ac_cv_search_dlopen+set}" = set; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27344 ac_func_search_save_LIBS=$LIBS
27345 cat >conftest.$ac_ext <<_ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h. */
27352 /* Override any GCC internal prototype to avoid an error.
27353 Use char because int might match the return type of a GCC
27354 builtin and then its argument prototype would still apply. */
27367 for ac_lib in '' dl; do
27368 if test -z "$ac_lib"; then
27369 ac_res="none required"
27372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27374 rm -f conftest.$ac_objext conftest$ac_exeext
27375 if { (ac_try="$ac_link"
27376 case "(($ac_try" in
27377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378 *) ac_try_echo=$ac_try;;
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381 (eval "$ac_link") 2>conftest.er1
27383 grep -v '^ *+' conftest.er1 >conftest.err
27385 cat conftest.err >&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } &&
27398 { ac_try='test -s conftest$ac_exeext'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; }; then
27408 ac_cv_search_dlopen=$ac_res
27410 echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27416 rm -f core conftest.err conftest.$ac_objext \
27418 if test "${ac_cv_search_dlopen+set}" = set; then
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27425 ac_cv_search_dlopen=no
27427 rm conftest.$ac_ext
27428 LIBS=$ac_func_search_save_LIBS
27430 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432 ac_res=$ac_cv_search_dlopen
27433 if test "$ac_res" != no; then
27434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27436 cat >>confdefs.h <<\_ACEOF
27437 #define HAVE_DLOPEN 1
27441 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27442 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27446 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27447 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27448 if test "${ac_cv_search_mallinfo+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27451 ac_func_search_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27459 /* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27469 return mallinfo ();
27474 for ac_lib in '' malloc; do
27475 if test -z "$ac_lib"; then
27476 ac_res="none required"
27479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
27490 grep -v '^ *+' conftest.er1 >conftest.err
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; }; then
27515 ac_cv_search_mallinfo=$ac_res
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27523 rm -f core conftest.err conftest.$ac_objext \
27525 if test "${ac_cv_search_mallinfo+set}" = set; then
27529 if test "${ac_cv_search_mallinfo+set}" = set; then
27532 ac_cv_search_mallinfo=no
27534 rm conftest.$ac_ext
27535 LIBS=$ac_func_search_save_LIBS
27537 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27538 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27539 ac_res=$ac_cv_search_mallinfo
27540 if test "$ac_res" != no; then
27541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_MALLINFO 1
27550 if test "$ENABLE_THREADS" -eq 1 ; then
27552 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27553 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27554 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27557 ac_check_lib_save_LIBS=$LIBS
27558 LIBS="-lpthread $LIBS"
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27566 /* Override any GCC internal prototype to avoid an error.
27567 Use char because int might match the return type of a GCC
27568 builtin and then its argument prototype would still apply. */
27572 char pthread_mutex_init ();
27576 return pthread_mutex_init ();
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (ac_try="$ac_link"
27583 case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_link") 2>conftest.er1
27590 grep -v '^ *+' conftest.er1 >conftest.err
27592 cat conftest.err >&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); } &&
27595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_try") 2>&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; } &&
27605 { ac_try='test -s conftest$ac_exeext'
27606 { (case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
27615 ac_cv_lib_pthread_pthread_mutex_init=yes
27617 echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27620 ac_cv_lib_pthread_pthread_mutex_init=no
27623 rm -f core conftest.err conftest.$ac_objext \
27624 conftest$ac_exeext conftest.$ac_ext
27625 LIBS=$ac_check_lib_save_LIBS
27627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27628 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27629 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27630 cat >>confdefs.h <<_ACEOF
27631 #define HAVE_LIBPTHREAD 1
27634 LIBS="-lpthread $LIBS"
27638 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27639 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27640 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 ac_func_search_save_LIBS=$LIBS
27644 cat >conftest.$ac_ext <<_ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h. */
27651 /* Override any GCC internal prototype to avoid an error.
27652 Use char because int might match the return type of a GCC
27653 builtin and then its argument prototype would still apply. */
27657 char pthread_mutex_lock ();
27661 return pthread_mutex_lock ();
27666 for ac_lib in '' pthread; do
27667 if test -z "$ac_lib"; then
27668 ac_res="none required"
27671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_link") 2>conftest.er1
27682 grep -v '^ *+' conftest.er1 >conftest.err
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } &&
27687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27688 { (case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_try") 2>&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest$ac_exeext'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; }; then
27707 ac_cv_search_pthread_mutex_lock=$ac_res
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27715 rm -f core conftest.err conftest.$ac_objext \
27717 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27721 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27724 ac_cv_search_pthread_mutex_lock=no
27726 rm conftest.$ac_ext
27727 LIBS=$ac_func_search_save_LIBS
27729 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27730 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27731 ac_res=$ac_cv_search_pthread_mutex_lock
27732 if test "$ac_res" != no; then
27733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27735 cat >>confdefs.h <<\_ACEOF
27736 #define HAVE_PTHREAD_MUTEX_LOCK 1
27744 # Check whether --with-udis86 was given.
27745 if test "${with_udis86+set}" = set; then
27746 withval=$with_udis86;
27751 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27754 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27755 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27756 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 ac_check_lib_save_LIBS=$LIBS
27760 LIBS="-ludis86 $LIBS"
27761 cat >conftest.$ac_ext <<_ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h. */
27768 /* Override any GCC internal prototype to avoid an error.
27769 Use char because int might match the return type of a GCC
27770 builtin and then its argument prototype would still apply. */
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784 if { (ac_try="$ac_link"
27785 case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790 (eval "$ac_link") 2>conftest.er1
27792 grep -v '^ *+' conftest.er1 >conftest.err
27794 cat conftest.err >&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } &&
27797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27807 { ac_try='test -s conftest$ac_exeext'
27808 { (case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_try") 2>&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; }; then
27817 ac_cv_lib_udis86_ud_init=yes
27819 echo "$as_me: failed program was:" >&5
27820 sed 's/^/| /' conftest.$ac_ext >&5
27822 ac_cv_lib_udis86_ud_init=no
27825 rm -f core conftest.err conftest.$ac_objext \
27826 conftest$ac_exeext conftest.$ac_ext
27827 LIBS=$ac_check_lib_save_LIBS
27829 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27830 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27831 if test $ac_cv_lib_udis86_ud_init = yes; then
27832 cat >>confdefs.h <<_ACEOF
27833 #define HAVE_LIBUDIS86 1
27836 LIBS="-ludis86 $LIBS"
27840 echo "Error! You need to have libudis86 around."
27852 cat >>confdefs.h <<_ACEOF
27853 #define USE_UDIS86 $USE_UDIS86
27863 ac_header_dirent=no
27864 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27865 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27866 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27867 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27869 echo $ECHO_N "(cached) $ECHO_C" >&6
27871 cat >conftest.$ac_ext <<_ACEOF
27874 cat confdefs.h >>conftest.$ac_ext
27875 cat >>conftest.$ac_ext <<_ACEOF
27876 /* end confdefs.h. */
27877 #include <sys/types.h>
27889 rm -f conftest.$ac_objext
27890 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27898 grep -v '^ *+' conftest.er1 >conftest.err
27900 cat conftest.err >&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } &&
27903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27904 { (case "(($ac_try" in
27905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27906 *) ac_try_echo=$ac_try;;
27908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27909 (eval "$ac_try") 2>&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; } &&
27913 { ac_try='test -s conftest.$ac_objext'
27914 { (case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919 (eval "$ac_try") 2>&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; }; then
27923 eval "$as_ac_Header=yes"
27925 echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27928 eval "$as_ac_Header=no"
27931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27933 ac_res=`eval echo '${'$as_ac_Header'}'`
27934 { echo "$as_me:$LINENO: result: $ac_res" >&5
27935 echo "${ECHO_T}$ac_res" >&6; }
27936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27937 cat >>confdefs.h <<_ACEOF
27938 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27941 ac_header_dirent=$ac_hdr; break
27945 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27946 if test $ac_header_dirent = dirent.h; then
27947 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27948 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27949 if test "${ac_cv_search_opendir+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 ac_func_search_save_LIBS=$LIBS
27953 cat >conftest.$ac_ext <<_ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27960 /* Override any GCC internal prototype to avoid an error.
27961 Use char because int might match the return type of a GCC
27962 builtin and then its argument prototype would still apply. */
27975 for ac_lib in '' dir; do
27976 if test -z "$ac_lib"; then
27977 ac_res="none required"
27980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27982 rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (ac_try="$ac_link"
27984 case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_link") 2>conftest.er1
27991 grep -v '^ *+' conftest.er1 >conftest.err
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } &&
27996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27997 { (case "(($ac_try" in
27998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999 *) ac_try_echo=$ac_try;;
28001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002 (eval "$ac_try") 2>&5
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); }; } &&
28006 { ac_try='test -s conftest$ac_exeext'
28007 { (case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_try") 2>&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 ac_cv_search_opendir=$ac_res
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28024 rm -f core conftest.err conftest.$ac_objext \
28026 if test "${ac_cv_search_opendir+set}" = set; then
28030 if test "${ac_cv_search_opendir+set}" = set; then
28033 ac_cv_search_opendir=no
28035 rm conftest.$ac_ext
28036 LIBS=$ac_func_search_save_LIBS
28038 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28039 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28040 ac_res=$ac_cv_search_opendir
28041 if test "$ac_res" != no; then
28042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28049 if test "${ac_cv_search_opendir+set}" = set; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 ac_func_search_save_LIBS=$LIBS
28053 cat >conftest.$ac_ext <<_ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28060 /* Override any GCC internal prototype to avoid an error.
28061 Use char because int might match the return type of a GCC
28062 builtin and then its argument prototype would still apply. */
28075 for ac_lib in '' x; do
28076 if test -z "$ac_lib"; then
28077 ac_res="none required"
28080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28082 rm -f conftest.$ac_objext conftest$ac_exeext
28083 if { (ac_try="$ac_link"
28084 case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_link") 2>conftest.er1
28091 grep -v '^ *+' conftest.er1 >conftest.err
28093 cat conftest.err >&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
28096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; } &&
28106 { ac_try='test -s conftest$ac_exeext'
28107 { (case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112 (eval "$ac_try") 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; }; then
28116 ac_cv_search_opendir=$ac_res
28118 echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28124 rm -f core conftest.err conftest.$ac_objext \
28126 if test "${ac_cv_search_opendir+set}" = set; then
28130 if test "${ac_cv_search_opendir+set}" = set; then
28133 ac_cv_search_opendir=no
28135 rm conftest.$ac_ext
28136 LIBS=$ac_func_search_save_LIBS
28138 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28139 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28140 ac_res=$ac_cv_search_opendir
28141 if test "$ac_res" != no; then
28142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28148 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28149 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28150 if test "${ac_cv_header_mmap_anon+set}" = set; then
28151 echo $ECHO_N "(cached) $ECHO_C" >&6
28154 ac_cpp='$CPP $CPPFLAGS'
28155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28159 cat >conftest.$ac_ext <<_ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h. */
28165 #include <sys/mman.h>
28166 #include <unistd.h>
28171 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28176 rm -f conftest.$ac_objext
28177 if { (ac_try="$ac_compile"
28178 case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_compile") 2>conftest.er1
28185 grep -v '^ *+' conftest.er1 >conftest.err
28187 cat conftest.err >&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
28190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28191 { (case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_try") 2>&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; } &&
28200 { ac_try='test -s conftest.$ac_objext'
28201 { (case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_try") 2>&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210 ac_cv_header_mmap_anon=yes
28212 echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28215 ac_cv_header_mmap_anon=no
28218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28220 ac_cpp='$CPP $CPPFLAGS'
28221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28227 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28228 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28229 if test "$ac_cv_header_mmap_anon" = yes; then
28231 cat >>confdefs.h <<\_ACEOF
28232 #define HAVE_MMAP_ANONYMOUS 1
28237 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28238 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28239 if test "${ac_cv_header_stat_broken+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28242 cat >conftest.$ac_ext <<_ACEOF
28245 cat confdefs.h >>conftest.$ac_ext
28246 cat >>conftest.$ac_ext <<_ACEOF
28247 /* end confdefs.h. */
28248 #include <sys/types.h>
28249 #include <sys/stat.h>
28251 #if defined S_ISBLK && defined S_IFDIR
28252 # if S_ISBLK (S_IFDIR)
28257 #if defined S_ISBLK && defined S_IFCHR
28258 # if S_ISBLK (S_IFCHR)
28263 #if defined S_ISLNK && defined S_IFREG
28264 # if S_ISLNK (S_IFREG)
28269 #if defined S_ISSOCK && defined S_IFREG
28270 # if S_ISSOCK (S_IFREG)
28276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28277 $EGREP "You lose" >/dev/null 2>&1; then
28278 ac_cv_header_stat_broken=yes
28280 ac_cv_header_stat_broken=no
28285 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28286 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28287 if test $ac_cv_header_stat_broken = yes; then
28289 cat >>confdefs.h <<\_ACEOF
28290 #define STAT_MACROS_BROKEN 1
28295 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28296 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28297 if test "${ac_cv_header_stdc+set}" = set; then
28298 echo $ECHO_N "(cached) $ECHO_C" >&6
28300 cat >conftest.$ac_ext <<_ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h. */
28306 #include <stdlib.h>
28307 #include <stdarg.h>
28308 #include <string.h>
28319 rm -f conftest.$ac_objext
28320 if { (ac_try="$ac_compile"
28321 case "(($ac_try" in
28322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323 *) ac_try_echo=$ac_try;;
28325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28326 (eval "$ac_compile") 2>conftest.er1
28328 grep -v '^ *+' conftest.er1 >conftest.err
28330 cat conftest.err >&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } &&
28333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28334 { (case "(($ac_try" in
28335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336 *) ac_try_echo=$ac_try;;
28338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28339 (eval "$ac_try") 2>&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; } &&
28343 { ac_try='test -s conftest.$ac_objext'
28344 { (case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349 (eval "$ac_try") 2>&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; }; then
28353 ac_cv_header_stdc=yes
28355 echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28358 ac_cv_header_stdc=no
28361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28363 if test $ac_cv_header_stdc = yes; then
28364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28365 cat >conftest.$ac_ext <<_ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28371 #include <string.h>
28374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28375 $EGREP "memchr" >/dev/null 2>&1; then
28378 ac_cv_header_stdc=no
28384 if test $ac_cv_header_stdc = yes; then
28385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28392 #include <stdlib.h>
28395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28396 $EGREP "free" >/dev/null 2>&1; then
28399 ac_cv_header_stdc=no
28405 if test $ac_cv_header_stdc = yes; then
28406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28407 if test "$cross_compiling" = yes; then
28410 cat >conftest.$ac_ext <<_ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h. */
28417 #include <stdlib.h>
28418 #if ((' ' & 0x0FF) == 0x020)
28419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28422 # define ISLOWER(c) \
28423 (('a' <= (c) && (c) <= 'i') \
28424 || ('j' <= (c) && (c) <= 'r') \
28425 || ('s' <= (c) && (c) <= 'z'))
28426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28434 for (i = 0; i < 256; i++)
28435 if (XOR (islower (i), ISLOWER (i))
28436 || toupper (i) != TOUPPER (i))
28441 rm -f conftest$ac_exeext
28442 if { (ac_try="$ac_link"
28443 case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448 (eval "$ac_link") 2>&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28452 { (case "(($ac_try" in
28453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454 *) ac_try_echo=$ac_try;;
28456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457 (eval "$ac_try") 2>&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; }; then
28463 echo "$as_me: program exited with status $ac_status" >&5
28464 echo "$as_me: failed program was:" >&5
28465 sed 's/^/| /' conftest.$ac_ext >&5
28467 ( exit $ac_status )
28468 ac_cv_header_stdc=no
28470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28478 if test $ac_cv_header_stdc = yes; then
28480 cat >>confdefs.h <<\_ACEOF
28481 #define STDC_HEADERS 1
28486 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28489 echo $ECHO_N "(cached) $ECHO_C" >&6
28491 cat >conftest.$ac_ext <<_ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28497 #include <sys/types.h>
28498 #include <sys/wait.h>
28499 #ifndef WEXITSTATUS
28500 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28511 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28516 rm -f conftest.$ac_objext
28517 if { (ac_try="$ac_compile"
28518 case "(($ac_try" in
28519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520 *) ac_try_echo=$ac_try;;
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523 (eval "$ac_compile") 2>conftest.er1
28525 grep -v '^ *+' conftest.er1 >conftest.err
28527 cat conftest.err >&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } &&
28530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28531 { (case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try='test -s conftest.$ac_objext'
28541 { (case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_try") 2>&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_header_sys_wait_h=yes
28552 echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28555 ac_cv_header_sys_wait_h=no
28558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28560 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28561 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28562 if test $ac_cv_header_sys_wait_h = yes; then
28564 cat >>confdefs.h <<\_ACEOF
28565 #define HAVE_SYS_WAIT_H 1
28570 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28571 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28572 if test "${ac_cv_header_time+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28575 cat >conftest.$ac_ext <<_ACEOF
28578 cat confdefs.h >>conftest.$ac_ext
28579 cat >>conftest.$ac_ext <<_ACEOF
28580 /* end confdefs.h. */
28581 #include <sys/types.h>
28582 #include <sys/time.h>
28588 if ((struct tm *) 0)
28594 rm -f conftest.$ac_objext
28595 if { (ac_try="$ac_compile"
28596 case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_compile") 2>conftest.er1
28603 grep -v '^ *+' conftest.er1 >conftest.err
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } &&
28608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28609 { (case "(($ac_try" in
28610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28611 *) ac_try_echo=$ac_try;;
28613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28614 (eval "$ac_try") 2>&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; } &&
28618 { ac_try='test -s conftest.$ac_objext'
28619 { (case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_try") 2>&5
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 ac_cv_header_time=yes
28630 echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28633 ac_cv_header_time=no
28636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28638 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28639 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28640 if test $ac_cv_header_time = yes; then
28642 cat >>confdefs.h <<\_ACEOF
28643 #define TIME_WITH_SYS_TIME 1
28655 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28664 ac_res=`eval echo '${'$as_ac_Header'}'`
28665 { echo "$as_me:$LINENO: result: $ac_res" >&5
28666 echo "${ECHO_T}$ac_res" >&6; }
28668 # Is the header compilable?
28669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28671 cat >conftest.$ac_ext <<_ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h. */
28677 $ac_includes_default
28678 #include <$ac_header>
28680 rm -f conftest.$ac_objext
28681 if { (ac_try="$ac_compile"
28682 case "(($ac_try" in
28683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684 *) ac_try_echo=$ac_try;;
28686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687 (eval "$ac_compile") 2>conftest.er1
28689 grep -v '^ *+' conftest.er1 >conftest.err
28691 cat conftest.err >&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } &&
28694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; } &&
28704 { ac_try='test -s conftest.$ac_objext'
28705 { (case "(($ac_try" in
28706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707 *) ac_try_echo=$ac_try;;
28709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710 (eval "$ac_try") 2>&5
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; }; then
28714 ac_header_compiler=yes
28716 echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28719 ac_header_compiler=no
28722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28724 echo "${ECHO_T}$ac_header_compiler" >&6; }
28726 # Is the header present?
28727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28728 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
28737 if { (ac_try="$ac_cpp conftest.$ac_ext"
28738 case "(($ac_try" in
28739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740 *) ac_try_echo=$ac_try;;
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28745 grep -v '^ *+' conftest.er1 >conftest.err
28747 cat conftest.err >&5
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } >/dev/null; then
28750 if test -s conftest.err; then
28751 ac_cpp_err=$ac_c_preproc_warn_flag
28752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28759 if test -z "$ac_cpp_err"; then
28760 ac_header_preproc=yes
28762 echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28765 ac_header_preproc=no
28768 rm -f conftest.err conftest.$ac_ext
28769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28770 echo "${ECHO_T}$ac_header_preproc" >&6; }
28772 # So? What about this header?
28773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28779 ac_header_preproc=yes
28782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28795 ## ----------------------------------- ##
28796 ## Report this to llvmbugs@cs.uiuc.edu ##
28797 ## ----------------------------------- ##
28799 ) | sed "s/^/$as_me: WARNING: /" >&2
28802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28805 echo $ECHO_N "(cached) $ECHO_C" >&6
28807 eval "$as_ac_Header=\$ac_header_preproc"
28809 ac_res=`eval echo '${'$as_ac_Header'}'`
28810 { echo "$as_me:$LINENO: result: $ac_res" >&5
28811 echo "${ECHO_T}$ac_res" >&6; }
28814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28815 cat >>confdefs.h <<_ACEOF
28816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28829 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28838 ac_res=`eval echo '${'$as_ac_Header'}'`
28839 { echo "$as_me:$LINENO: result: $ac_res" >&5
28840 echo "${ECHO_T}$ac_res" >&6; }
28842 # Is the header compilable?
28843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28845 cat >conftest.$ac_ext <<_ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h. */
28851 $ac_includes_default
28852 #include <$ac_header>
28854 rm -f conftest.$ac_objext
28855 if { (ac_try="$ac_compile"
28856 case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_compile") 2>conftest.er1
28863 grep -v '^ *+' conftest.er1 >conftest.err
28865 cat conftest.err >&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } &&
28868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28869 { (case "(($ac_try" in
28870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871 *) ac_try_echo=$ac_try;;
28873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874 (eval "$ac_try") 2>&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest.$ac_objext'
28879 { (case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_try") 2>&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; }; then
28888 ac_header_compiler=yes
28890 echo "$as_me: failed program was:" >&5
28891 sed 's/^/| /' conftest.$ac_ext >&5
28893 ac_header_compiler=no
28896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28898 echo "${ECHO_T}$ac_header_compiler" >&6; }
28900 # Is the header present?
28901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28903 cat >conftest.$ac_ext <<_ACEOF
28906 cat confdefs.h >>conftest.$ac_ext
28907 cat >>conftest.$ac_ext <<_ACEOF
28908 /* end confdefs.h. */
28909 #include <$ac_header>
28911 if { (ac_try="$ac_cpp conftest.$ac_ext"
28912 case "(($ac_try" in
28913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914 *) ac_try_echo=$ac_try;;
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28919 grep -v '^ *+' conftest.er1 >conftest.err
28921 cat conftest.err >&5
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); } >/dev/null; then
28924 if test -s conftest.err; then
28925 ac_cpp_err=$ac_c_preproc_warn_flag
28926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28933 if test -z "$ac_cpp_err"; then
28934 ac_header_preproc=yes
28936 echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28939 ac_header_preproc=no
28942 rm -f conftest.err conftest.$ac_ext
28943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28944 echo "${ECHO_T}$ac_header_preproc" >&6; }
28946 # So? What about this header?
28947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28953 ac_header_preproc=yes
28956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28969 ## ----------------------------------- ##
28970 ## Report this to llvmbugs@cs.uiuc.edu ##
28971 ## ----------------------------------- ##
28973 ) | sed "s/^/$as_me: WARNING: /" >&2
28976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28981 eval "$as_ac_Header=\$ac_header_preproc"
28983 ac_res=`eval echo '${'$as_ac_Header'}'`
28984 { echo "$as_me:$LINENO: result: $ac_res" >&5
28985 echo "${ECHO_T}$ac_res" >&6; }
28988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28989 cat >>confdefs.h <<_ACEOF
28990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28998 for ac_header in windows.h
29000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29005 echo $ECHO_N "(cached) $ECHO_C" >&6
29007 ac_res=`eval echo '${'$as_ac_Header'}'`
29008 { echo "$as_me:$LINENO: result: $ac_res" >&5
29009 echo "${ECHO_T}$ac_res" >&6; }
29011 # Is the header compilable?
29012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29014 cat >conftest.$ac_ext <<_ACEOF
29017 cat confdefs.h >>conftest.$ac_ext
29018 cat >>conftest.$ac_ext <<_ACEOF
29019 /* end confdefs.h. */
29020 $ac_includes_default
29021 #include <$ac_header>
29023 rm -f conftest.$ac_objext
29024 if { (ac_try="$ac_compile"
29025 case "(($ac_try" in
29026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29027 *) ac_try_echo=$ac_try;;
29029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29030 (eval "$ac_compile") 2>conftest.er1
29032 grep -v '^ *+' conftest.er1 >conftest.err
29034 cat conftest.err >&5
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } &&
29037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29038 { (case "(($ac_try" in
29039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043 (eval "$ac_try") 2>&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); }; } &&
29047 { ac_try='test -s conftest.$ac_objext'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; }; then
29057 ac_header_compiler=yes
29059 echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29062 ac_header_compiler=no
29065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29067 echo "${ECHO_T}$ac_header_compiler" >&6; }
29069 # Is the header present?
29070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29072 cat >conftest.$ac_ext <<_ACEOF
29075 cat confdefs.h >>conftest.$ac_ext
29076 cat >>conftest.$ac_ext <<_ACEOF
29077 /* end confdefs.h. */
29078 #include <$ac_header>
29080 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
29093 if test -s conftest.err; then
29094 ac_cpp_err=$ac_c_preproc_warn_flag
29095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29102 if test -z "$ac_cpp_err"; then
29103 ac_header_preproc=yes
29105 echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29108 ac_header_preproc=no
29111 rm -f conftest.err conftest.$ac_ext
29112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29113 echo "${ECHO_T}$ac_header_preproc" >&6; }
29115 # So? What about this header?
29116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29122 ac_header_preproc=yes
29125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29138 ## ----------------------------------- ##
29139 ## Report this to llvmbugs@cs.uiuc.edu ##
29140 ## ----------------------------------- ##
29142 ) | sed "s/^/$as_me: WARNING: /" >&2
29145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29150 eval "$as_ac_Header=\$ac_header_preproc"
29152 ac_res=`eval echo '${'$as_ac_Header'}'`
29153 { echo "$as_me:$LINENO: result: $ac_res" >&5
29154 echo "${ECHO_T}$ac_res" >&6; }
29157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29158 cat >>confdefs.h <<_ACEOF
29159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29170 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29177 echo $ECHO_N "(cached) $ECHO_C" >&6
29179 ac_res=`eval echo '${'$as_ac_Header'}'`
29180 { echo "$as_me:$LINENO: result: $ac_res" >&5
29181 echo "${ECHO_T}$ac_res" >&6; }
29183 # Is the header compilable?
29184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29186 cat >conftest.$ac_ext <<_ACEOF
29189 cat confdefs.h >>conftest.$ac_ext
29190 cat >>conftest.$ac_ext <<_ACEOF
29191 /* end confdefs.h. */
29192 $ac_includes_default
29193 #include <$ac_header>
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202 (eval "$ac_compile") 2>conftest.er1
29204 grep -v '^ *+' conftest.er1 >conftest.err
29206 cat conftest.err >&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } &&
29209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29210 { (case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_try") 2>&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; } &&
29219 { ac_try='test -s conftest.$ac_objext'
29220 { (case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225 (eval "$ac_try") 2>&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; }; then
29229 ac_header_compiler=yes
29231 echo "$as_me: failed program was:" >&5
29232 sed 's/^/| /' conftest.$ac_ext >&5
29234 ac_header_compiler=no
29237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29239 echo "${ECHO_T}$ac_header_compiler" >&6; }
29241 # Is the header present?
29242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29244 cat >conftest.$ac_ext <<_ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h. */
29250 #include <$ac_header>
29252 if { (ac_try="$ac_cpp conftest.$ac_ext"
29253 case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29260 grep -v '^ *+' conftest.er1 >conftest.err
29262 cat conftest.err >&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } >/dev/null; then
29265 if test -s conftest.err; then
29266 ac_cpp_err=$ac_c_preproc_warn_flag
29267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29274 if test -z "$ac_cpp_err"; then
29275 ac_header_preproc=yes
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_header_preproc=no
29283 rm -f conftest.err conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29285 echo "${ECHO_T}$ac_header_preproc" >&6; }
29287 # So? What about this header?
29288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29294 ac_header_preproc=yes
29297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29310 ## ----------------------------------- ##
29311 ## Report this to llvmbugs@cs.uiuc.edu ##
29312 ## ----------------------------------- ##
29314 ) | sed "s/^/$as_me: WARNING: /" >&2
29317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29320 echo $ECHO_N "(cached) $ECHO_C" >&6
29322 eval "$as_ac_Header=\$ac_header_preproc"
29324 ac_res=`eval echo '${'$as_ac_Header'}'`
29325 { echo "$as_me:$LINENO: result: $ac_res" >&5
29326 echo "${ECHO_T}$ac_res" >&6; }
29329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29330 cat >>confdefs.h <<_ACEOF
29331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29341 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29348 echo $ECHO_N "(cached) $ECHO_C" >&6
29350 ac_res=`eval echo '${'$as_ac_Header'}'`
29351 { echo "$as_me:$LINENO: result: $ac_res" >&5
29352 echo "${ECHO_T}$ac_res" >&6; }
29354 # Is the header compilable?
29355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29357 cat >conftest.$ac_ext <<_ACEOF
29360 cat confdefs.h >>conftest.$ac_ext
29361 cat >>conftest.$ac_ext <<_ACEOF
29362 /* end confdefs.h. */
29363 $ac_includes_default
29364 #include <$ac_header>
29366 rm -f conftest.$ac_objext
29367 if { (ac_try="$ac_compile"
29368 case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373 (eval "$ac_compile") 2>conftest.er1
29375 grep -v '^ *+' conftest.er1 >conftest.err
29377 cat conftest.err >&5
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } &&
29380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29381 { (case "(($ac_try" in
29382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29383 *) ac_try_echo=$ac_try;;
29385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29386 (eval "$ac_try") 2>&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); }; } &&
29390 { ac_try='test -s conftest.$ac_objext'
29391 { (case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_try") 2>&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; }; then
29400 ac_header_compiler=yes
29402 echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29405 ac_header_compiler=no
29408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29410 echo "${ECHO_T}$ac_header_compiler" >&6; }
29412 # Is the header present?
29413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29415 cat >conftest.$ac_ext <<_ACEOF
29418 cat confdefs.h >>conftest.$ac_ext
29419 cat >>conftest.$ac_ext <<_ACEOF
29420 /* end confdefs.h. */
29421 #include <$ac_header>
29423 if { (ac_try="$ac_cpp conftest.$ac_ext"
29424 case "(($ac_try" in
29425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426 *) ac_try_echo=$ac_try;;
29428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29431 grep -v '^ *+' conftest.er1 >conftest.err
29433 cat conftest.err >&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } >/dev/null; then
29436 if test -s conftest.err; then
29437 ac_cpp_err=$ac_c_preproc_warn_flag
29438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29445 if test -z "$ac_cpp_err"; then
29446 ac_header_preproc=yes
29448 echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29451 ac_header_preproc=no
29454 rm -f conftest.err conftest.$ac_ext
29455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29456 echo "${ECHO_T}$ac_header_preproc" >&6; }
29458 # So? What about this header?
29459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29465 ac_header_preproc=yes
29468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29481 ## ----------------------------------- ##
29482 ## Report this to llvmbugs@cs.uiuc.edu ##
29483 ## ----------------------------------- ##
29485 ) | sed "s/^/$as_me: WARNING: /" >&2
29488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29491 echo $ECHO_N "(cached) $ECHO_C" >&6
29493 eval "$as_ac_Header=\$ac_header_preproc"
29495 ac_res=`eval echo '${'$as_ac_Header'}'`
29496 { echo "$as_me:$LINENO: result: $ac_res" >&5
29497 echo "${ECHO_T}$ac_res" >&6; }
29500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29501 cat >>confdefs.h <<_ACEOF
29502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29509 if test "$ENABLE_THREADS" -eq 1 ; then
29511 for ac_header in pthread.h
29513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29518 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 ac_res=`eval echo '${'$as_ac_Header'}'`
29521 { echo "$as_me:$LINENO: result: $ac_res" >&5
29522 echo "${ECHO_T}$ac_res" >&6; }
29524 # Is the header compilable?
29525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29527 cat >conftest.$ac_ext <<_ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h. */
29533 $ac_includes_default
29534 #include <$ac_header>
29536 rm -f conftest.$ac_objext
29537 if { (ac_try="$ac_compile"
29538 case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_compile") 2>conftest.er1
29545 grep -v '^ *+' conftest.er1 >conftest.err
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } &&
29550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29551 { (case "(($ac_try" in
29552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553 *) ac_try_echo=$ac_try;;
29555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556 (eval "$ac_try") 2>&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; } &&
29560 { ac_try='test -s conftest.$ac_objext'
29561 { (case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_try") 2>&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; }; then
29570 ac_header_compiler=yes
29572 echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29575 ac_header_compiler=no
29578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29580 echo "${ECHO_T}$ac_header_compiler" >&6; }
29582 # Is the header present?
29583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29585 cat >conftest.$ac_ext <<_ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29591 #include <$ac_header>
29593 if { (ac_try="$ac_cpp conftest.$ac_ext"
29594 case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29601 grep -v '^ *+' conftest.er1 >conftest.err
29603 cat conftest.err >&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } >/dev/null; then
29606 if test -s conftest.err; then
29607 ac_cpp_err=$ac_c_preproc_warn_flag
29608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29615 if test -z "$ac_cpp_err"; then
29616 ac_header_preproc=yes
29618 echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29621 ac_header_preproc=no
29624 rm -f conftest.err conftest.$ac_ext
29625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29626 echo "${ECHO_T}$ac_header_preproc" >&6; }
29628 # So? What about this header?
29629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29635 ac_header_preproc=yes
29638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29651 ## ----------------------------------- ##
29652 ## Report this to llvmbugs@cs.uiuc.edu ##
29653 ## ----------------------------------- ##
29655 ) | sed "s/^/$as_me: WARNING: /" >&2
29658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29661 echo $ECHO_N "(cached) $ECHO_C" >&6
29663 eval "$as_ac_Header=\$ac_header_preproc"
29665 ac_res=`eval echo '${'$as_ac_Header'}'`
29666 { echo "$as_me:$LINENO: result: $ac_res" >&5
29667 echo "${ECHO_T}$ac_res" >&6; }
29670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29671 cat >>confdefs.h <<_ACEOF
29672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29690 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29691 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29692 if test "${ac_cv_huge_val_sanity+set}" = set; then
29693 echo $ECHO_N "(cached) $ECHO_C" >&6
29697 ac_cpp='$CXXCPP $CPPFLAGS'
29698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29703 if test "$cross_compiling" = yes; then
29704 ac_cv_huge_val_sanity=yes
29706 cat >conftest.$ac_ext <<_ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h. */
29716 double x = HUGE_VAL; return x != x;
29721 rm -f conftest$ac_exeext
29722 if { (ac_try="$ac_link"
29723 case "(($ac_try" in
29724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725 *) ac_try_echo=$ac_try;;
29727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728 (eval "$ac_link") 2>&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29732 { (case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737 (eval "$ac_try") 2>&5
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; }; then
29741 ac_cv_huge_val_sanity=yes
29743 echo "$as_me: program exited with status $ac_status" >&5
29744 echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29747 ( exit $ac_status )
29748 ac_cv_huge_val_sanity=no
29750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29755 ac_cpp='$CPP $CPPFLAGS'
29756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29762 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29763 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29764 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29767 { echo "$as_me:$LINENO: checking for pid_t" >&5
29768 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29769 if test "${ac_cv_type_pid_t+set}" = set; then
29770 echo $ECHO_N "(cached) $ECHO_C" >&6
29772 cat >conftest.$ac_ext <<_ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h. */
29778 $ac_includes_default
29779 typedef pid_t ac__type_new_;
29783 if ((ac__type_new_ *) 0)
29785 if (sizeof (ac__type_new_))
29791 rm -f conftest.$ac_objext
29792 if { (ac_try="$ac_compile"
29793 case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_compile") 2>conftest.er1
29800 grep -v '^ *+' conftest.er1 >conftest.err
29802 cat conftest.err >&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); } &&
29805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29806 { (case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_try") 2>&5
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; } &&
29815 { ac_try='test -s conftest.$ac_objext'
29816 { (case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_try") 2>&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); }; }; then
29825 ac_cv_type_pid_t=yes
29827 echo "$as_me: failed program was:" >&5
29828 sed 's/^/| /' conftest.$ac_ext >&5
29830 ac_cv_type_pid_t=no
29833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29835 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29836 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29837 if test $ac_cv_type_pid_t = yes; then
29841 cat >>confdefs.h <<_ACEOF
29847 { echo "$as_me:$LINENO: checking for size_t" >&5
29848 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29849 if test "${ac_cv_type_size_t+set}" = set; then
29850 echo $ECHO_N "(cached) $ECHO_C" >&6
29852 cat >conftest.$ac_ext <<_ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h. */
29858 $ac_includes_default
29859 typedef size_t ac__type_new_;
29863 if ((ac__type_new_ *) 0)
29865 if (sizeof (ac__type_new_))
29871 rm -f conftest.$ac_objext
29872 if { (ac_try="$ac_compile"
29873 case "(($ac_try" in
29874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875 *) ac_try_echo=$ac_try;;
29877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878 (eval "$ac_compile") 2>conftest.er1
29880 grep -v '^ *+' conftest.er1 >conftest.err
29882 cat conftest.err >&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
29885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29886 { (case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891 (eval "$ac_try") 2>&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; } &&
29895 { ac_try='test -s conftest.$ac_objext'
29896 { (case "(($ac_try" in
29897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898 *) ac_try_echo=$ac_try;;
29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901 (eval "$ac_try") 2>&5
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; }; then
29905 ac_cv_type_size_t=yes
29907 echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29910 ac_cv_type_size_t=no
29913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29915 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29916 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29917 if test $ac_cv_type_size_t = yes; then
29921 cat >>confdefs.h <<_ACEOF
29922 #define size_t unsigned int
29927 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29928 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29929 if test "${ac_cv_type_signal+set}" = set; then
29930 echo $ECHO_N "(cached) $ECHO_C" >&6
29932 cat >conftest.$ac_ext <<_ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h. */
29938 #include <sys/types.h>
29939 #include <signal.h>
29944 return *(signal (0, 0)) (0) == 1;
29949 rm -f conftest.$ac_objext
29950 if { (ac_try="$ac_compile"
29951 case "(($ac_try" in
29952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953 *) ac_try_echo=$ac_try;;
29955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29956 (eval "$ac_compile") 2>conftest.er1
29958 grep -v '^ *+' conftest.er1 >conftest.err
29960 cat conftest.err >&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } &&
29963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29964 { (case "(($ac_try" in
29965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966 *) ac_try_echo=$ac_try;;
29968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29969 (eval "$ac_try") 2>&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; } &&
29973 { ac_try='test -s conftest.$ac_objext'
29974 { (case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_try") 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; }; then
29983 ac_cv_type_signal=int
29985 echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29988 ac_cv_type_signal=void
29991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29993 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29994 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29996 cat >>confdefs.h <<_ACEOF
29997 #define RETSIGTYPE $ac_cv_type_signal
30001 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30003 if test "${ac_cv_struct_tm+set}" = set; then
30004 echo $ECHO_N "(cached) $ECHO_C" >&6
30006 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30012 #include <sys/types.h>
30018 struct tm *tp; tp->tm_sec;
30023 rm -f conftest.$ac_objext
30024 if { (ac_try="$ac_compile"
30025 case "(($ac_try" in
30026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027 *) ac_try_echo=$ac_try;;
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030 (eval "$ac_compile") 2>conftest.er1
30032 grep -v '^ *+' conftest.er1 >conftest.err
30034 cat conftest.err >&5
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); } &&
30037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30038 { (case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_try") 2>&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; } &&
30047 { ac_try='test -s conftest.$ac_objext'
30048 { (case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_try") 2>&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; }; then
30057 ac_cv_struct_tm=time.h
30059 echo "$as_me: failed program was:" >&5
30060 sed 's/^/| /' conftest.$ac_ext >&5
30062 ac_cv_struct_tm=sys/time.h
30065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30067 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30068 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30069 if test $ac_cv_struct_tm = sys/time.h; then
30071 cat >>confdefs.h <<\_ACEOF
30072 #define TM_IN_SYS_TIME 1
30077 { echo "$as_me:$LINENO: checking for int64_t" >&5
30078 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30079 if test "${ac_cv_type_int64_t+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30082 cat >conftest.$ac_ext <<_ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h. */
30088 $ac_includes_default
30089 typedef int64_t ac__type_new_;
30093 if ((ac__type_new_ *) 0)
30095 if (sizeof (ac__type_new_))
30101 rm -f conftest.$ac_objext
30102 if { (ac_try="$ac_compile"
30103 case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_compile") 2>conftest.er1
30110 grep -v '^ *+' conftest.er1 >conftest.err
30112 cat conftest.err >&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } &&
30115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30116 { (case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_try") 2>&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; } &&
30125 { ac_try='test -s conftest.$ac_objext'
30126 { (case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_try") 2>&5
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; }; then
30135 ac_cv_type_int64_t=yes
30137 echo "$as_me: failed program was:" >&5
30138 sed 's/^/| /' conftest.$ac_ext >&5
30140 ac_cv_type_int64_t=no
30143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30145 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30146 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30147 if test $ac_cv_type_int64_t = yes; then
30149 cat >>confdefs.h <<_ACEOF
30150 #define HAVE_INT64_T 1
30155 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30156 echo "$as_me: error: Type int64_t required but not found" >&2;}
30157 { (exit 1); exit 1; }; }
30160 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30161 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30162 if test "${ac_cv_type_uint64_t+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30165 cat >conftest.$ac_ext <<_ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h. */
30171 $ac_includes_default
30172 typedef uint64_t ac__type_new_;
30176 if ((ac__type_new_ *) 0)
30178 if (sizeof (ac__type_new_))
30184 rm -f conftest.$ac_objext
30185 if { (ac_try="$ac_compile"
30186 case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_compile") 2>conftest.er1
30193 grep -v '^ *+' conftest.er1 >conftest.err
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } &&
30198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30199 { (case "(($ac_try" in
30200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201 *) ac_try_echo=$ac_try;;
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204 (eval "$ac_try") 2>&5
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); }; } &&
30208 { ac_try='test -s conftest.$ac_objext'
30209 { (case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_try") 2>&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); }; }; then
30218 ac_cv_type_uint64_t=yes
30220 echo "$as_me: failed program was:" >&5
30221 sed 's/^/| /' conftest.$ac_ext >&5
30223 ac_cv_type_uint64_t=no
30226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30228 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30229 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30230 if test $ac_cv_type_uint64_t = yes; then
30232 cat >>confdefs.h <<_ACEOF
30233 #define HAVE_UINT64_T 1
30238 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30239 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30240 if test "${ac_cv_type_u_int64_t+set}" = set; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30243 cat >conftest.$ac_ext <<_ACEOF
30246 cat confdefs.h >>conftest.$ac_ext
30247 cat >>conftest.$ac_ext <<_ACEOF
30248 /* end confdefs.h. */
30249 $ac_includes_default
30250 typedef u_int64_t ac__type_new_;
30254 if ((ac__type_new_ *) 0)
30256 if (sizeof (ac__type_new_))
30262 rm -f conftest.$ac_objext
30263 if { (ac_try="$ac_compile"
30264 case "(($ac_try" in
30265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30266 *) ac_try_echo=$ac_try;;
30268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30269 (eval "$ac_compile") 2>conftest.er1
30271 grep -v '^ *+' conftest.er1 >conftest.err
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30277 { (case "(($ac_try" in
30278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30279 *) ac_try_echo=$ac_try;;
30281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30282 (eval "$ac_try") 2>&5
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); }; } &&
30286 { ac_try='test -s conftest.$ac_objext'
30287 { (case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_try") 2>&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; }; then
30296 ac_cv_type_u_int64_t=yes
30298 echo "$as_me: failed program was:" >&5
30299 sed 's/^/| /' conftest.$ac_ext >&5
30301 ac_cv_type_u_int64_t=no
30304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30306 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30307 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30308 if test $ac_cv_type_u_int64_t = yes; then
30310 cat >>confdefs.h <<_ACEOF
30311 #define HAVE_U_INT64_T 1
30316 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30317 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30318 { (exit 1); exit 1; }; }
30332 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30338 echo $ECHO_N "(cached) $ECHO_C" >&6
30340 cat >conftest.$ac_ext <<_ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h. */
30346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30348 #define $ac_func innocuous_$ac_func
30350 /* System header to define __stub macros and hopefully few prototypes,
30351 which can conflict with char $ac_func (); below.
30352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30353 <limits.h> exists even on freestanding compilers. */
30356 # include <limits.h>
30358 # include <assert.h>
30363 /* Override any GCC internal prototype to avoid an error.
30364 Use char because int might match the return type of a GCC
30365 builtin and then its argument prototype would still apply. */
30370 /* The GNU C library defines this for functions which it implements
30371 to always fail with ENOSYS. Some functions are actually named
30372 something starting with __ and the normal name is an alias. */
30373 #if defined __stub_$ac_func || defined __stub___$ac_func
30380 return $ac_func ();
30385 rm -f conftest.$ac_objext conftest$ac_exeext
30386 if { (ac_try="$ac_link"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_link") 2>conftest.er1
30394 grep -v '^ *+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
30399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30400 { (case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_try") 2>&5
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; } &&
30409 { ac_try='test -s conftest$ac_exeext'
30410 { (case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_try") 2>&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; }; then
30419 eval "$as_ac_var=yes"
30421 echo "$as_me: failed program was:" >&5
30422 sed 's/^/| /' conftest.$ac_ext >&5
30424 eval "$as_ac_var=no"
30427 rm -f core conftest.err conftest.$ac_objext \
30428 conftest$ac_exeext conftest.$ac_ext
30430 ac_res=`eval echo '${'$as_ac_var'}'`
30431 { echo "$as_me:$LINENO: result: $ac_res" >&5
30432 echo "${ECHO_T}$ac_res" >&6; }
30433 if test `eval echo '${'$as_ac_var'}'` = yes; then
30434 cat >>confdefs.h <<_ACEOF
30435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30445 for ac_func in powf fmodf strtof round
30447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30453 cat >conftest.$ac_ext <<_ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h. */
30459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30461 #define $ac_func innocuous_$ac_func
30463 /* System header to define __stub macros and hopefully few prototypes,
30464 which can conflict with char $ac_func (); below.
30465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30466 <limits.h> exists even on freestanding compilers. */
30469 # include <limits.h>
30471 # include <assert.h>
30476 /* Override any GCC internal prototype to avoid an error.
30477 Use char because int might match the return type of a GCC
30478 builtin and then its argument prototype would still apply. */
30483 /* The GNU C library defines this for functions which it implements
30484 to always fail with ENOSYS. Some functions are actually named
30485 something starting with __ and the normal name is an alias. */
30486 #if defined __stub_$ac_func || defined __stub___$ac_func
30493 return $ac_func ();
30498 rm -f conftest.$ac_objext conftest$ac_exeext
30499 if { (ac_try="$ac_link"
30500 case "(($ac_try" in
30501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30502 *) ac_try_echo=$ac_try;;
30504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30505 (eval "$ac_link") 2>conftest.er1
30507 grep -v '^ *+' conftest.er1 >conftest.err
30509 cat conftest.err >&5
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); } &&
30512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30513 { (case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_try") 2>&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); }; } &&
30522 { ac_try='test -s conftest$ac_exeext'
30523 { (case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_try") 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; }; then
30532 eval "$as_ac_var=yes"
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30537 eval "$as_ac_var=no"
30540 rm -f core conftest.err conftest.$ac_objext \
30541 conftest$ac_exeext conftest.$ac_ext
30543 ac_res=`eval echo '${'$as_ac_var'}'`
30544 { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30546 if test `eval echo '${'$as_ac_var'}'` = yes; then
30547 cat >>confdefs.h <<_ACEOF
30548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30559 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 cat >conftest.$ac_ext <<_ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h. */
30573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30575 #define $ac_func innocuous_$ac_func
30577 /* System header to define __stub macros and hopefully few prototypes,
30578 which can conflict with char $ac_func (); below.
30579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30580 <limits.h> exists even on freestanding compilers. */
30583 # include <limits.h>
30585 # include <assert.h>
30590 /* Override any GCC internal prototype to avoid an error.
30591 Use char because int might match the return type of a GCC
30592 builtin and then its argument prototype would still apply. */
30597 /* The GNU C library defines this for functions which it implements
30598 to always fail with ENOSYS. Some functions are actually named
30599 something starting with __ and the normal name is an alias. */
30600 #if defined __stub_$ac_func || defined __stub___$ac_func
30607 return $ac_func ();
30612 rm -f conftest.$ac_objext conftest$ac_exeext
30613 if { (ac_try="$ac_link"
30614 case "(($ac_try" in
30615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30616 *) ac_try_echo=$ac_try;;
30618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30619 (eval "$ac_link") 2>conftest.er1
30621 grep -v '^ *+' conftest.er1 >conftest.err
30623 cat conftest.err >&5
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); } &&
30626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; } &&
30636 { ac_try='test -s conftest$ac_exeext'
30637 { (case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_try") 2>&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); }; }; then
30646 eval "$as_ac_var=yes"
30648 echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.$ac_ext >&5
30651 eval "$as_ac_var=no"
30654 rm -f core conftest.err conftest.$ac_objext \
30655 conftest$ac_exeext conftest.$ac_ext
30657 ac_res=`eval echo '${'$as_ac_var'}'`
30658 { echo "$as_me:$LINENO: result: $ac_res" >&5
30659 echo "${ECHO_T}$ac_res" >&6; }
30660 if test `eval echo '${'$as_ac_var'}'` = yes; then
30661 cat >>confdefs.h <<_ACEOF
30662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30671 for ac_func in isatty mkdtemp mkstemp
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
30787 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30795 cat >conftest.$ac_ext <<_ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h. */
30801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30803 #define $ac_func innocuous_$ac_func
30805 /* System header to define __stub macros and hopefully few prototypes,
30806 which can conflict with char $ac_func (); below.
30807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808 <limits.h> exists even on freestanding compilers. */
30811 # include <limits.h>
30813 # include <assert.h>
30818 /* Override any GCC internal prototype to avoid an error.
30819 Use char because int might match the return type of a GCC
30820 builtin and then its argument prototype would still apply. */
30825 /* The GNU C library defines this for functions which it implements
30826 to always fail with ENOSYS. Some functions are actually named
30827 something starting with __ and the normal name is an alias. */
30828 #if defined __stub_$ac_func || defined __stub___$ac_func
30835 return $ac_func ();
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844 *) ac_try_echo=$ac_try;;
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847 (eval "$ac_link") 2>conftest.er1
30849 grep -v '^ *+' conftest.er1 >conftest.err
30851 cat conftest.err >&5
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); } &&
30854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30855 { (case "(($ac_try" in
30856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857 *) ac_try_echo=$ac_try;;
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860 (eval "$ac_try") 2>&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; } &&
30864 { ac_try='test -s conftest$ac_exeext'
30865 { (case "(($ac_try" in
30866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867 *) ac_try_echo=$ac_try;;
30869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870 (eval "$ac_try") 2>&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; }; then
30874 eval "$as_ac_var=yes"
30876 echo "$as_me: failed program was:" >&5
30877 sed 's/^/| /' conftest.$ac_ext >&5
30879 eval "$as_ac_var=no"
30882 rm -f core conftest.err conftest.$ac_objext \
30883 conftest$ac_exeext conftest.$ac_ext
30885 ac_res=`eval echo '${'$as_ac_var'}'`
30886 { echo "$as_me:$LINENO: result: $ac_res" >&5
30887 echo "${ECHO_T}$ac_res" >&6; }
30888 if test `eval echo '${'$as_ac_var'}'` = yes; then
30889 cat >>confdefs.h <<_ACEOF
30890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30900 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30906 echo $ECHO_N "(cached) $ECHO_C" >&6
30908 cat >conftest.$ac_ext <<_ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30916 #define $ac_func innocuous_$ac_func
30918 /* System header to define __stub macros and hopefully few prototypes,
30919 which can conflict with char $ac_func (); below.
30920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30921 <limits.h> exists even on freestanding compilers. */
30924 # include <limits.h>
30926 # include <assert.h>
30931 /* Override any GCC internal prototype to avoid an error.
30932 Use char because int might match the return type of a GCC
30933 builtin and then its argument prototype would still apply. */
30938 /* The GNU C library defines this for functions which it implements
30939 to always fail with ENOSYS. Some functions are actually named
30940 something starting with __ and the normal name is an alias. */
30941 #if defined __stub_$ac_func || defined __stub___$ac_func
30948 return $ac_func ();
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (ac_try="$ac_link"
30955 case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_link") 2>conftest.er1
30962 grep -v '^ *+' conftest.er1 >conftest.err
30964 cat conftest.err >&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } &&
30967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30968 { (case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_try") 2>&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; } &&
30977 { ac_try='test -s conftest$ac_exeext'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 eval "$as_ac_var=yes"
30989 echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30992 eval "$as_ac_var=no"
30995 rm -f core conftest.err conftest.$ac_objext \
30996 conftest$ac_exeext conftest.$ac_ext
30998 ac_res=`eval echo '${'$as_ac_var'}'`
30999 { echo "$as_me:$LINENO: result: $ac_res" >&5
31000 echo "${ECHO_T}$ac_res" >&6; }
31001 if test `eval echo '${'$as_ac_var'}'` = yes; then
31002 cat >>confdefs.h <<_ACEOF
31003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31013 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31021 cat >conftest.$ac_ext <<_ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h. */
31027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31029 #define $ac_func innocuous_$ac_func
31031 /* System header to define __stub macros and hopefully few prototypes,
31032 which can conflict with char $ac_func (); below.
31033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31034 <limits.h> exists even on freestanding compilers. */
31037 # include <limits.h>
31039 # include <assert.h>
31044 /* Override any GCC internal prototype to avoid an error.
31045 Use char because int might match the return type of a GCC
31046 builtin and then its argument prototype would still apply. */
31051 /* The GNU C library defines this for functions which it implements
31052 to always fail with ENOSYS. Some functions are actually named
31053 something starting with __ and the normal name is an alias. */
31054 #if defined __stub_$ac_func || defined __stub___$ac_func
31061 return $ac_func ();
31066 rm -f conftest.$ac_objext conftest$ac_exeext
31067 if { (ac_try="$ac_link"
31068 case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_link") 2>conftest.er1
31075 grep -v '^ *+' conftest.er1 >conftest.err
31077 cat conftest.err >&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } &&
31080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; } &&
31090 { ac_try='test -s conftest$ac_exeext'
31091 { (case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_try") 2>&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; }; then
31100 eval "$as_ac_var=yes"
31102 echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31105 eval "$as_ac_var=no"
31108 rm -f core conftest.err conftest.$ac_objext \
31109 conftest$ac_exeext conftest.$ac_ext
31111 ac_res=`eval echo '${'$as_ac_var'}'`
31112 { echo "$as_me:$LINENO: result: $ac_res" >&5
31113 echo "${ECHO_T}$ac_res" >&6; }
31114 if test `eval echo '${'$as_ac_var'}'` = yes; then
31115 cat >>confdefs.h <<_ACEOF
31116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31122 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31123 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31124 if test "${llvm_cv_c_printf_a+set}" = set; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31128 ac_cpp='$CPP $CPPFLAGS'
31129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31133 if test "$cross_compiling" = yes; then
31134 llvmac_cv_c_printf_a=no
31136 cat >conftest.$ac_ext <<_ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h. */
31145 #include <stdlib.h>
31151 volatile double A, B;
31155 sprintf(Buffer, "%a", A);
31159 if (A != 0x1.999999999999ap-4)
31166 rm -f conftest$ac_exeext
31167 if { (ac_try="$ac_link"
31168 case "(($ac_try" in
31169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170 *) ac_try_echo=$ac_try;;
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173 (eval "$ac_link") 2>&5
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31177 { (case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_try") 2>&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; }; then
31186 llvm_cv_c_printf_a=yes
31188 echo "$as_me: program exited with status $ac_status" >&5
31189 echo "$as_me: failed program was:" >&5
31190 sed 's/^/| /' conftest.$ac_ext >&5
31192 ( exit $ac_status )
31193 llvmac_cv_c_printf_a=no
31195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31200 ac_cpp='$CPP $CPPFLAGS'
31201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31206 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31207 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31208 if test "$llvm_cv_c_printf_a" = "yes"; then
31210 cat >>confdefs.h <<\_ACEOF
31211 #define HAVE_PRINTF_A 1
31216 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31217 # for constant arguments. Useless!
31218 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31219 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31220 if test "${ac_cv_working_alloca_h+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31223 cat >conftest.$ac_ext <<_ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h. */
31229 #include <alloca.h>
31233 char *p = (char *) alloca (2 * sizeof (int));
31239 rm -f conftest.$ac_objext conftest$ac_exeext
31240 if { (ac_try="$ac_link"
31241 case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_link") 2>conftest.er1
31248 grep -v '^ *+' conftest.er1 >conftest.err
31250 cat conftest.err >&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } &&
31253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31254 { (case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_try") 2>&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; } &&
31263 { ac_try='test -s conftest$ac_exeext'
31264 { (case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
31273 ac_cv_working_alloca_h=yes
31275 echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31278 ac_cv_working_alloca_h=no
31281 rm -f core conftest.err conftest.$ac_objext \
31282 conftest$ac_exeext conftest.$ac_ext
31284 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31285 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31286 if test $ac_cv_working_alloca_h = yes; then
31288 cat >>confdefs.h <<\_ACEOF
31289 #define HAVE_ALLOCA_H 1
31294 { echo "$as_me:$LINENO: checking for alloca" >&5
31295 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31296 if test "${ac_cv_func_alloca_works+set}" = set; then
31297 echo $ECHO_N "(cached) $ECHO_C" >&6
31299 cat >conftest.$ac_ext <<_ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h. */
31306 # define alloca __builtin_alloca
31309 # include <malloc.h>
31310 # define alloca _alloca
31313 # include <alloca.h>
31318 # ifndef alloca /* predefined by HP cc +Olibcalls */
31329 char *p = (char *) alloca (1);
31335 rm -f conftest.$ac_objext conftest$ac_exeext
31336 if { (ac_try="$ac_link"
31337 case "(($ac_try" in
31338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339 *) ac_try_echo=$ac_try;;
31341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342 (eval "$ac_link") 2>conftest.er1
31344 grep -v '^ *+' conftest.er1 >conftest.err
31346 cat conftest.err >&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
31349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31350 { (case "(($ac_try" in
31351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352 *) ac_try_echo=$ac_try;;
31354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355 (eval "$ac_try") 2>&5
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); }; } &&
31359 { ac_try='test -s conftest$ac_exeext'
31360 { (case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_try") 2>&5
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; }; then
31369 ac_cv_func_alloca_works=yes
31371 echo "$as_me: failed program was:" >&5
31372 sed 's/^/| /' conftest.$ac_ext >&5
31374 ac_cv_func_alloca_works=no
31377 rm -f core conftest.err conftest.$ac_objext \
31378 conftest$ac_exeext conftest.$ac_ext
31380 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31381 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31383 if test $ac_cv_func_alloca_works = yes; then
31385 cat >>confdefs.h <<\_ACEOF
31386 #define HAVE_ALLOCA 1
31390 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31391 # that cause trouble. Some versions do not even contain alloca or
31392 # contain a buggy version. If you still want to use their alloca,
31393 # use ar to extract alloca.o from them instead of compiling alloca.c.
31395 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31397 cat >>confdefs.h <<\_ACEOF
31402 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31403 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31404 if test "${ac_cv_os_cray+set}" = set; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31407 cat >conftest.$ac_ext <<_ACEOF
31410 cat confdefs.h >>conftest.$ac_ext
31411 cat >>conftest.$ac_ext <<_ACEOF
31412 /* end confdefs.h. */
31413 #if defined CRAY && ! defined CRAY2
31420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31421 $EGREP "webecray" >/dev/null 2>&1; then
31429 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31430 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31431 if test $ac_cv_os_cray = yes; then
31432 for ac_func in _getb67 GETB67 getb67; do
31433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31439 cat >conftest.$ac_ext <<_ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31447 #define $ac_func innocuous_$ac_func
31449 /* System header to define __stub macros and hopefully few prototypes,
31450 which can conflict with char $ac_func (); below.
31451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31452 <limits.h> exists even on freestanding compilers. */
31455 # include <limits.h>
31457 # include <assert.h>
31462 /* Override any GCC internal prototype to avoid an error.
31463 Use char because int might match the return type of a GCC
31464 builtin and then its argument prototype would still apply. */
31469 /* The GNU C library defines this for functions which it implements
31470 to always fail with ENOSYS. Some functions are actually named
31471 something starting with __ and the normal name is an alias. */
31472 #if defined __stub_$ac_func || defined __stub___$ac_func
31479 return $ac_func ();
31484 rm -f conftest.$ac_objext conftest$ac_exeext
31485 if { (ac_try="$ac_link"
31486 case "(($ac_try" in
31487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488 *) ac_try_echo=$ac_try;;
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491 (eval "$ac_link") 2>conftest.er1
31493 grep -v '^ *+' conftest.er1 >conftest.err
31495 cat conftest.err >&5
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); } &&
31498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31499 { (case "(($ac_try" in
31500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501 *) ac_try_echo=$ac_try;;
31503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504 (eval "$ac_try") 2>&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest$ac_exeext'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 eval "$as_ac_var=yes"
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31523 eval "$as_ac_var=no"
31526 rm -f core conftest.err conftest.$ac_objext \
31527 conftest$ac_exeext conftest.$ac_ext
31529 ac_res=`eval echo '${'$as_ac_var'}'`
31530 { echo "$as_me:$LINENO: result: $ac_res" >&5
31531 echo "${ECHO_T}$ac_res" >&6; }
31532 if test `eval echo '${'$as_ac_var'}'` = yes; then
31534 cat >>confdefs.h <<_ACEOF
31535 #define CRAY_STACKSEG_END $ac_func
31544 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31545 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31546 if test "${ac_cv_c_stack_direction+set}" = set; then
31547 echo $ECHO_N "(cached) $ECHO_C" >&6
31549 if test "$cross_compiling" = yes; then
31550 ac_cv_c_stack_direction=0
31552 cat >conftest.$ac_ext <<_ACEOF
31555 cat confdefs.h >>conftest.$ac_ext
31556 cat >>conftest.$ac_ext <<_ACEOF
31557 /* end confdefs.h. */
31558 $ac_includes_default
31560 find_stack_direction ()
31562 static char *addr = 0;
31567 return find_stack_direction ();
31570 return (&dummy > addr) ? 1 : -1;
31576 return find_stack_direction () < 0;
31579 rm -f conftest$ac_exeext
31580 if { (ac_try="$ac_link"
31581 case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_link") 2>&5
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31590 { (case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_try") 2>&5
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; }; then
31599 ac_cv_c_stack_direction=1
31601 echo "$as_me: program exited with status $ac_status" >&5
31602 echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31605 ( exit $ac_status )
31606 ac_cv_c_stack_direction=-1
31608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31613 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31614 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31616 cat >>confdefs.h <<_ACEOF
31617 #define STACK_DIRECTION $ac_cv_c_stack_direction
31624 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31625 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31626 if test "${ac_cv_func_rand48+set}" = set; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31630 ac_cpp='$CXXCPP $CPPFLAGS'
31631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31635 cat >conftest.$ac_ext <<_ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31641 #include <stdlib.h>
31645 srand48(0);lrand48();drand48();
31650 rm -f conftest.$ac_objext
31651 if { (ac_try="$ac_compile"
31652 case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_compile") 2>conftest.er1
31659 grep -v '^ *+' conftest.er1 >conftest.err
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } &&
31664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31665 { (case "(($ac_try" in
31666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667 *) ac_try_echo=$ac_try;;
31669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670 (eval "$ac_try") 2>&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; } &&
31674 { ac_try='test -s conftest.$ac_objext'
31675 { (case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_try") 2>&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; }; then
31684 ac_cv_func_rand48=yes
31686 echo "$as_me: failed program was:" >&5
31687 sed 's/^/| /' conftest.$ac_ext >&5
31689 ac_cv_func_rand48=no
31692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31694 ac_cpp='$CPP $CPPFLAGS'
31695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31700 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31701 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31703 if test "$ac_cv_func_rand48" = "yes" ; then
31705 cat >>confdefs.h <<\_ACEOF
31706 #define HAVE_RAND48 1
31712 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31713 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31714 if test "${ac_cv_cxx_namespaces+set}" = set; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31718 ac_cpp='$CXXCPP $CPPFLAGS'
31719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31723 cat >conftest.$ac_ext <<_ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h. */
31729 namespace Outer { namespace Inner { int i = 0; }}
31733 using namespace Outer::Inner; return i;
31738 rm -f conftest.$ac_objext
31739 if { (ac_try="$ac_compile"
31740 case "(($ac_try" in
31741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742 *) ac_try_echo=$ac_try;;
31744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745 (eval "$ac_compile") 2>conftest.er1
31747 grep -v '^ *+' conftest.er1 >conftest.err
31749 cat conftest.err >&5
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); } &&
31752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31753 { (case "(($ac_try" in
31754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755 *) ac_try_echo=$ac_try;;
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758 (eval "$ac_try") 2>&5
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 (exit $ac_status); }; } &&
31762 { ac_try='test -s conftest.$ac_objext'
31763 { (case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_try") 2>&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; }; then
31772 ac_cv_cxx_namespaces=yes
31774 echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31777 ac_cv_cxx_namespaces=no
31780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 ac_cpp='$CPP $CPPFLAGS'
31783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31789 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31790 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31791 if test "$ac_cv_cxx_namespaces" = yes; then
31793 cat >>confdefs.h <<\_ACEOF
31794 #define HAVE_NAMESPACES
31799 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31800 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31801 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31806 ac_cpp='$CXXCPP $CPPFLAGS'
31807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31811 cat >conftest.$ac_ext <<_ACEOF
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h. */
31817 #include <ext/hash_map>
31818 #ifdef HAVE_NAMESPACES
31819 using namespace std;
31824 hash_map<int, int> t;
31829 rm -f conftest.$ac_objext
31830 if { (ac_try="$ac_compile"
31831 case "(($ac_try" in
31832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833 *) ac_try_echo=$ac_try;;
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_compile") 2>conftest.er1
31838 grep -v '^ *+' conftest.er1 >conftest.err
31840 cat conftest.err >&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } &&
31843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; } &&
31853 { ac_try='test -s conftest.$ac_objext'
31854 { (case "(($ac_try" in
31855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856 *) ac_try_echo=$ac_try;;
31858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31859 (eval "$ac_try") 2>&5
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); }; }; then
31863 ac_cv_cxx_have_std_ext_hash_map=yes
31865 echo "$as_me: failed program was:" >&5
31866 sed 's/^/| /' conftest.$ac_ext >&5
31868 ac_cv_cxx_have_std_ext_hash_map=no
31871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31873 ac_cpp='$CPP $CPPFLAGS'
31874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31879 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31880 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31881 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31884 cat >>confdefs.h <<\_ACEOF
31885 #define HAVE_STD_EXT_HASH_MAP 1
31890 cat >>confdefs.h <<\_ACEOF
31891 #define HAVE_STD_EXT_HASH_MAP 0
31896 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31897 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31898 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31903 ac_cpp='$CXXCPP $CPPFLAGS'
31904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31908 cat >conftest.$ac_ext <<_ACEOF
31911 cat confdefs.h >>conftest.$ac_ext
31912 cat >>conftest.$ac_ext <<_ACEOF
31913 /* end confdefs.h. */
31914 #include <ext/hash_map>
31915 #ifdef HAVE_NAMESPACES
31916 using namespace __gnu_cxx;
31921 hash_map<int,int> t;
31926 rm -f conftest.$ac_objext
31927 if { (ac_try="$ac_compile"
31928 case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_compile") 2>conftest.er1
31935 grep -v '^ *+' conftest.er1 >conftest.err
31937 cat conftest.err >&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); } &&
31940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31941 { (case "(($ac_try" in
31942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943 *) ac_try_echo=$ac_try;;
31945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946 (eval "$ac_try") 2>&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; } &&
31950 { ac_try='test -s conftest.$ac_objext'
31951 { (case "(($ac_try" in
31952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953 *) ac_try_echo=$ac_try;;
31955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956 (eval "$ac_try") 2>&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; }; then
31960 ac_cv_cxx_have_gnu_ext_hash_map=yes
31962 echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31965 ac_cv_cxx_have_gnu_ext_hash_map=no
31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31970 ac_cpp='$CPP $CPPFLAGS'
31971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31977 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31978 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31981 cat >>confdefs.h <<\_ACEOF
31982 #define HAVE_GNU_EXT_HASH_MAP 1
31987 cat >>confdefs.h <<\_ACEOF
31988 #define HAVE_GNU_EXT_HASH_MAP 0
31993 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31994 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31995 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31996 echo $ECHO_N "(cached) $ECHO_C" >&6
32000 ac_cpp='$CXXCPP $CPPFLAGS'
32001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32005 cat >conftest.$ac_ext <<_ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h. */
32011 #include <hash_map>
32015 hash_map<int,int> t;
32020 rm -f conftest.$ac_objext
32021 if { (ac_try="$ac_compile"
32022 case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_compile") 2>conftest.er1
32029 grep -v '^ *+' conftest.er1 >conftest.err
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } &&
32034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32035 { (case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_try") 2>&5
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; } &&
32044 { ac_try='test -s conftest.$ac_objext'
32045 { (case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_try") 2>&5
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
32054 ac_cv_cxx_have_global_hash_map=yes
32056 echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32059 ac_cv_cxx_have_global_hash_map=no
32062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32064 ac_cpp='$CPP $CPPFLAGS'
32065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32070 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32071 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32072 if test "$ac_cv_cxx_have_global_hash_map" = yes
32075 cat >>confdefs.h <<\_ACEOF
32076 #define HAVE_GLOBAL_HASH_MAP 1
32081 cat >>confdefs.h <<\_ACEOF
32082 #define HAVE_GLOBAL_HASH_MAP 0
32087 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32088 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32089 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32090 echo $ECHO_N "(cached) $ECHO_C" >&6
32094 ac_cpp='$CXXCPP $CPPFLAGS'
32095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32099 cat >conftest.$ac_ext <<_ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h. */
32105 #include <ext/hash_set>
32106 #ifdef HAVE_NAMESPACES
32107 using namespace std;
32117 rm -f conftest.$ac_objext
32118 if { (ac_try="$ac_compile"
32119 case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124 (eval "$ac_compile") 2>conftest.er1
32126 grep -v '^ *+' conftest.er1 >conftest.err
32128 cat conftest.err >&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } &&
32131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; } &&
32141 { ac_try='test -s conftest.$ac_objext'
32142 { (case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_try") 2>&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
32151 ac_cv_cxx_have_std_ext_hash_set=yes
32153 echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32156 ac_cv_cxx_have_std_ext_hash_set=no
32159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32161 ac_cpp='$CPP $CPPFLAGS'
32162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32167 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32168 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32169 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32172 cat >>confdefs.h <<\_ACEOF
32173 #define HAVE_STD_EXT_HASH_SET 1
32178 cat >>confdefs.h <<\_ACEOF
32179 #define HAVE_STD_EXT_HASH_SET 0
32184 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32185 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32186 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32191 ac_cpp='$CXXCPP $CPPFLAGS'
32192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32196 cat >conftest.$ac_ext <<_ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h. */
32202 #include <ext/hash_set>
32203 #ifdef HAVE_NAMESPACES
32204 using namespace __gnu_cxx;
32214 rm -f conftest.$ac_objext
32215 if { (ac_try="$ac_compile"
32216 case "(($ac_try" in
32217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218 *) ac_try_echo=$ac_try;;
32220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221 (eval "$ac_compile") 2>conftest.er1
32223 grep -v '^ *+' conftest.er1 >conftest.err
32225 cat conftest.err >&5
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } &&
32228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32229 { (case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_try") 2>&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; } &&
32238 { ac_try='test -s conftest.$ac_objext'
32239 { (case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_try") 2>&5
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; }; then
32248 ac_cv_cxx_have_gnu_ext_hash_set=yes
32250 echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32253 ac_cv_cxx_have_gnu_ext_hash_set=no
32256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32258 ac_cpp='$CPP $CPPFLAGS'
32259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32265 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32266 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32269 cat >>confdefs.h <<\_ACEOF
32270 #define HAVE_GNU_EXT_HASH_SET 1
32275 cat >>confdefs.h <<\_ACEOF
32276 #define HAVE_GNU_EXT_HASH_SET 0
32281 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32282 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32283 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32284 echo $ECHO_N "(cached) $ECHO_C" >&6
32288 ac_cpp='$CXXCPP $CPPFLAGS'
32289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32293 cat >conftest.$ac_ext <<_ACEOF
32296 cat confdefs.h >>conftest.$ac_ext
32297 cat >>conftest.$ac_ext <<_ACEOF
32298 /* end confdefs.h. */
32299 #include <hash_set>
32303 hash_set<int> t; return 0;
32308 rm -f conftest.$ac_objext
32309 if { (ac_try="$ac_compile"
32310 case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315 (eval "$ac_compile") 2>conftest.er1
32317 grep -v '^ *+' conftest.er1 >conftest.err
32319 cat conftest.err >&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
32322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32323 { (case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_try") 2>&5
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; } &&
32332 { ac_try='test -s conftest.$ac_objext'
32333 { (case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_try") 2>&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_cv_cxx_have_global_hash_set=yes
32344 echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.$ac_ext >&5
32347 ac_cv_cxx_have_global_hash_set=no
32350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32352 ac_cpp='$CPP $CPPFLAGS'
32353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32358 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32359 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32360 if test "$ac_cv_cxx_have_global_hash_set" = yes
32363 cat >>confdefs.h <<\_ACEOF
32364 #define HAVE_GLOBAL_HASH_SET 1
32369 cat >>confdefs.h <<\_ACEOF
32370 #define HAVE_GLOBAL_HASH_SET 0
32375 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32376 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32377 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32382 ac_cpp='$CXXCPP $CPPFLAGS'
32383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32387 cat >conftest.$ac_ext <<_ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h. */
32393 #include <iterator>
32394 #ifdef HAVE_NAMESPACES
32395 using namespace std;
32400 iterator<int,int,int> t; return 0;
32405 rm -f conftest.$ac_objext
32406 if { (ac_try="$ac_compile"
32407 case "(($ac_try" in
32408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409 *) ac_try_echo=$ac_try;;
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412 (eval "$ac_compile") 2>conftest.er1
32414 grep -v '^ *+' conftest.er1 >conftest.err
32416 cat conftest.err >&5
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); } &&
32419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32420 { (case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_try") 2>&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; } &&
32429 { ac_try='test -s conftest.$ac_objext'
32430 { (case "(($ac_try" in
32431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432 *) ac_try_echo=$ac_try;;
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435 (eval "$ac_try") 2>&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; }; then
32439 ac_cv_cxx_have_std_iterator=yes
32441 echo "$as_me: failed program was:" >&5
32442 sed 's/^/| /' conftest.$ac_ext >&5
32444 ac_cv_cxx_have_std_iterator=no
32447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32449 ac_cpp='$CPP $CPPFLAGS'
32450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32456 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32457 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32458 if test "$ac_cv_cxx_have_std_iterator" = yes
32461 cat >>confdefs.h <<\_ACEOF
32462 #define HAVE_STD_ITERATOR 1
32467 cat >>confdefs.h <<\_ACEOF
32468 #define HAVE_STD_ITERATOR 0
32473 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32474 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32475 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32480 ac_cpp='$CXXCPP $CPPFLAGS'
32481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32485 cat >conftest.$ac_ext <<_ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h. */
32491 #include <iterator>
32492 #ifdef HAVE_NAMESPACES
32493 using namespace std;
32498 bidirectional_iterator<int,int> t; return 0;
32503 rm -f conftest.$ac_objext
32504 if { (ac_try="$ac_compile"
32505 case "(($ac_try" in
32506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507 *) ac_try_echo=$ac_try;;
32509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32510 (eval "$ac_compile") 2>conftest.er1
32512 grep -v '^ *+' conftest.er1 >conftest.err
32514 cat conftest.err >&5
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); } &&
32517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32518 { (case "(($ac_try" in
32519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520 *) ac_try_echo=$ac_try;;
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523 (eval "$ac_try") 2>&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); }; } &&
32527 { ac_try='test -s conftest.$ac_objext'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; }; then
32537 ac_cv_cxx_have_bi_iterator=yes
32539 echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32542 ac_cv_cxx_have_bi_iterator=no
32545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32547 ac_cpp='$CPP $CPPFLAGS'
32548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32554 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32555 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32556 if test "$ac_cv_cxx_have_bi_iterator" = yes
32559 cat >>confdefs.h <<\_ACEOF
32560 #define HAVE_BI_ITERATOR 1
32565 cat >>confdefs.h <<\_ACEOF
32566 #define HAVE_BI_ITERATOR 0
32571 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32572 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32573 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32574 echo $ECHO_N "(cached) $ECHO_C" >&6
32578 ac_cpp='$CXXCPP $CPPFLAGS'
32579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32583 cat >conftest.$ac_ext <<_ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h. */
32589 #include <iterator>
32590 #ifdef HAVE_NAMESPACES
32591 using namespace std;
32596 forward_iterator<int,int> t; return 0;
32601 rm -f conftest.$ac_objext
32602 if { (ac_try="$ac_compile"
32603 case "(($ac_try" in
32604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32605 *) ac_try_echo=$ac_try;;
32607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32608 (eval "$ac_compile") 2>conftest.er1
32610 grep -v '^ *+' conftest.er1 >conftest.err
32612 cat conftest.err >&5
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); } &&
32615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32616 { (case "(($ac_try" in
32617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618 *) ac_try_echo=$ac_try;;
32620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621 (eval "$ac_try") 2>&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; } &&
32625 { ac_try='test -s conftest.$ac_objext'
32626 { (case "(($ac_try" in
32627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32628 *) ac_try_echo=$ac_try;;
32630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32631 (eval "$ac_try") 2>&5
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; }; then
32635 ac_cv_cxx_have_fwd_iterator=yes
32637 echo "$as_me: failed program was:" >&5
32638 sed 's/^/| /' conftest.$ac_ext >&5
32640 ac_cv_cxx_have_fwd_iterator=no
32643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32645 ac_cpp='$CPP $CPPFLAGS'
32646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32652 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32653 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32654 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32657 cat >>confdefs.h <<\_ACEOF
32658 #define HAVE_FWD_ITERATOR 1
32663 cat >>confdefs.h <<\_ACEOF
32664 #define HAVE_FWD_ITERATOR 0
32670 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32671 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32672 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32673 echo $ECHO_N "(cached) $ECHO_C" >&6
32676 ac_cpp='$CXXCPP $CPPFLAGS'
32677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32681 cat >conftest.$ac_ext <<_ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h. */
32696 rm -f conftest.$ac_objext
32697 if { (ac_try="$ac_compile"
32698 case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_compile") 2>conftest.er1
32705 grep -v '^ *+' conftest.er1 >conftest.err
32707 cat conftest.err >&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); } &&
32710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32711 { (case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_try") 2>&5
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; } &&
32720 { ac_try='test -s conftest.$ac_objext'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; }; then
32730 ac_cv_func_isnan_in_math_h=yes
32732 echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32735 ac_cv_func_isnan_in_math_h=no
32738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32740 ac_cpp='$CPP $CPPFLAGS'
32741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32746 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32747 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32750 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32752 cat >>confdefs.h <<\_ACEOF
32753 #define HAVE_ISNAN_IN_MATH_H 1
32758 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32759 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32760 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32764 ac_cpp='$CXXCPP $CPPFLAGS'
32765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32769 cat >conftest.$ac_ext <<_ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32784 rm -f conftest.$ac_objext
32785 if { (ac_try="$ac_compile"
32786 case "(($ac_try" in
32787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788 *) ac_try_echo=$ac_try;;
32790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791 (eval "$ac_compile") 2>conftest.er1
32793 grep -v '^ *+' conftest.er1 >conftest.err
32795 cat conftest.err >&5
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); } &&
32798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32799 { (case "(($ac_try" in
32800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801 *) ac_try_echo=$ac_try;;
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804 (eval "$ac_try") 2>&5
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; } &&
32808 { ac_try='test -s conftest.$ac_objext'
32809 { (case "(($ac_try" in
32810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32811 *) ac_try_echo=$ac_try;;
32813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32814 (eval "$ac_try") 2>&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; }; then
32818 ac_cv_func_isnan_in_cmath=yes
32820 echo "$as_me: failed program was:" >&5
32821 sed 's/^/| /' conftest.$ac_ext >&5
32823 ac_cv_func_isnan_in_cmath=no
32826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32828 ac_cpp='$CPP $CPPFLAGS'
32829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32834 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32835 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32837 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32839 cat >>confdefs.h <<\_ACEOF
32840 #define HAVE_ISNAN_IN_CMATH 1
32845 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32846 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32847 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32848 echo $ECHO_N "(cached) $ECHO_C" >&6
32851 ac_cpp='$CXXCPP $CPPFLAGS'
32852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32856 cat >conftest.$ac_ext <<_ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h. */
32866 float f; std::isnan(f);
32871 rm -f conftest.$ac_objext
32872 if { (ac_try="$ac_compile"
32873 case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_compile") 2>conftest.er1
32880 grep -v '^ *+' conftest.er1 >conftest.err
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32886 { (case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_try") 2>&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest.$ac_objext'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 ac_cv_func_std_isnan_in_cmath=yes
32907 echo "$as_me: failed program was:" >&5
32908 sed 's/^/| /' conftest.$ac_ext >&5
32910 ac_cv_func_std_isnan_in_cmath=no
32913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32915 ac_cpp='$CPP $CPPFLAGS'
32916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32921 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32922 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32924 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32926 cat >>confdefs.h <<\_ACEOF
32927 #define HAVE_STD_ISNAN_IN_CMATH 1
32933 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32934 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32935 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32936 echo $ECHO_N "(cached) $ECHO_C" >&6
32939 ac_cpp='$CXXCPP $CPPFLAGS'
32940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32944 cat >conftest.$ac_ext <<_ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h. */
32959 rm -f conftest.$ac_objext
32960 if { (ac_try="$ac_compile"
32961 case "(($ac_try" in
32962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963 *) ac_try_echo=$ac_try;;
32965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966 (eval "$ac_compile") 2>conftest.er1
32968 grep -v '^ *+' conftest.er1 >conftest.err
32970 cat conftest.err >&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } &&
32973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32974 { (case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_try") 2>&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; } &&
32983 { ac_try='test -s conftest.$ac_objext'
32984 { (case "(($ac_try" in
32985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986 *) ac_try_echo=$ac_try;;
32988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989 (eval "$ac_try") 2>&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; }; then
32993 ac_cv_func_isinf_in_math_h=yes
32995 echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32998 ac_cv_func_isinf_in_math_h=no
33001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33003 ac_cpp='$CPP $CPPFLAGS'
33004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33009 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33010 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33012 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33014 cat >>confdefs.h <<\_ACEOF
33015 #define HAVE_ISINF_IN_MATH_H 1
33020 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33021 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33022 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33026 ac_cpp='$CXXCPP $CPPFLAGS'
33027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33031 cat >conftest.$ac_ext <<_ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h. */
33046 rm -f conftest.$ac_objext
33047 if { (ac_try="$ac_compile"
33048 case "(($ac_try" in
33049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050 *) ac_try_echo=$ac_try;;
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053 (eval "$ac_compile") 2>conftest.er1
33055 grep -v '^ *+' conftest.er1 >conftest.err
33057 cat conftest.err >&5
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
33060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33061 { (case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_try") 2>&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; } &&
33070 { ac_try='test -s conftest.$ac_objext'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; }; then
33080 ac_cv_func_isinf_in_cmath=yes
33082 echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33085 ac_cv_func_isinf_in_cmath=no
33088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33090 ac_cpp='$CPP $CPPFLAGS'
33091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33096 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33097 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33099 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_ISINF_IN_CMATH 1
33107 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33108 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33109 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 ac_cpp='$CXXCPP $CPPFLAGS'
33114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33118 cat >conftest.$ac_ext <<_ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33128 float f; std::isinf(f)}
33133 rm -f conftest.$ac_objext
33134 if { (ac_try="$ac_compile"
33135 case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_compile") 2>conftest.er1
33142 grep -v '^ *+' conftest.er1 >conftest.err
33144 cat conftest.err >&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } &&
33147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33148 { (case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_try") 2>&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; } &&
33157 { ac_try='test -s conftest.$ac_objext'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
33167 ac_cv_func_std_isinf_in_cmath=yes
33169 echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33172 ac_cv_func_std_isinf_in_cmath=no
33175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33177 ac_cpp='$CPP $CPPFLAGS'
33178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33183 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33184 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33186 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33188 cat >>confdefs.h <<\_ACEOF
33189 #define HAVE_STD_ISINF_IN_CMATH 1
33194 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33195 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33196 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33200 ac_cpp='$CXXCPP $CPPFLAGS'
33201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33205 cat >conftest.$ac_ext <<_ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h. */
33211 #include <ieeefp.h>
33215 float f; finite(f);
33220 rm -f conftest.$ac_objext
33221 if { (ac_try="$ac_compile"
33222 case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_compile") 2>conftest.er1
33229 grep -v '^ *+' conftest.er1 >conftest.err
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } &&
33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_func_finite_in_ieeefp_h=yes
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33259 ac_cv_func_finite_in_ieeefp_h=no
33262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33264 ac_cpp='$CPP $CPPFLAGS'
33265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33270 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33271 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33273 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_FINITE_IN_IEEEFP_H 1
33283 if test "$llvm_cv_platform_type" = "Unix" ; then
33286 for ac_header in stdlib.h unistd.h
33288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33293 echo $ECHO_N "(cached) $ECHO_C" >&6
33295 ac_res=`eval echo '${'$as_ac_Header'}'`
33296 { echo "$as_me:$LINENO: result: $ac_res" >&5
33297 echo "${ECHO_T}$ac_res" >&6; }
33299 # Is the header compilable?
33300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33302 cat >conftest.$ac_ext <<_ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h. */
33308 $ac_includes_default
33309 #include <$ac_header>
33311 rm -f conftest.$ac_objext
33312 if { (ac_try="$ac_compile"
33313 case "(($ac_try" in
33314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33315 *) ac_try_echo=$ac_try;;
33317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33318 (eval "$ac_compile") 2>conftest.er1
33320 grep -v '^ *+' conftest.er1 >conftest.err
33322 cat conftest.err >&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } &&
33325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33326 { (case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_try") 2>&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; } &&
33335 { ac_try='test -s conftest.$ac_objext'
33336 { (case "(($ac_try" in
33337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338 *) ac_try_echo=$ac_try;;
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341 (eval "$ac_try") 2>&5
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; }; then
33345 ac_header_compiler=yes
33347 echo "$as_me: failed program was:" >&5
33348 sed 's/^/| /' conftest.$ac_ext >&5
33350 ac_header_compiler=no
33353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33355 echo "${ECHO_T}$ac_header_compiler" >&6; }
33357 # Is the header present?
33358 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33360 cat >conftest.$ac_ext <<_ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h. */
33366 #include <$ac_header>
33368 if { (ac_try="$ac_cpp conftest.$ac_ext"
33369 case "(($ac_try" in
33370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371 *) ac_try_echo=$ac_try;;
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33376 grep -v '^ *+' conftest.er1 >conftest.err
33378 cat conftest.err >&5
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); } >/dev/null; then
33381 if test -s conftest.err; then
33382 ac_cpp_err=$ac_c_preproc_warn_flag
33383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33390 if test -z "$ac_cpp_err"; then
33391 ac_header_preproc=yes
33393 echo "$as_me: failed program was:" >&5
33394 sed 's/^/| /' conftest.$ac_ext >&5
33396 ac_header_preproc=no
33399 rm -f conftest.err conftest.$ac_ext
33400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33401 echo "${ECHO_T}$ac_header_preproc" >&6; }
33403 # So? What about this header?
33404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33410 ac_header_preproc=yes
33413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33426 ## ----------------------------------- ##
33427 ## Report this to llvmbugs@cs.uiuc.edu ##
33428 ## ----------------------------------- ##
33430 ) | sed "s/^/$as_me: WARNING: /" >&2
33433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33436 echo $ECHO_N "(cached) $ECHO_C" >&6
33438 eval "$as_ac_Header=\$ac_header_preproc"
33440 ac_res=`eval echo '${'$as_ac_Header'}'`
33441 { echo "$as_me:$LINENO: result: $ac_res" >&5
33442 echo "${ECHO_T}$ac_res" >&6; }
33445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33446 cat >>confdefs.h <<_ACEOF
33447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33455 for ac_func in getpagesize
33457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33463 cat >conftest.$ac_ext <<_ACEOF
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h. */
33469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33471 #define $ac_func innocuous_$ac_func
33473 /* System header to define __stub macros and hopefully few prototypes,
33474 which can conflict with char $ac_func (); below.
33475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33476 <limits.h> exists even on freestanding compilers. */
33479 # include <limits.h>
33481 # include <assert.h>
33486 /* Override any GCC internal prototype to avoid an error.
33487 Use char because int might match the return type of a GCC
33488 builtin and then its argument prototype would still apply. */
33493 /* The GNU C library defines this for functions which it implements
33494 to always fail with ENOSYS. Some functions are actually named
33495 something starting with __ and the normal name is an alias. */
33496 #if defined __stub_$ac_func || defined __stub___$ac_func
33503 return $ac_func ();
33508 rm -f conftest.$ac_objext conftest$ac_exeext
33509 if { (ac_try="$ac_link"
33510 case "(($ac_try" in
33511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512 *) ac_try_echo=$ac_try;;
33514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515 (eval "$ac_link") 2>conftest.er1
33517 grep -v '^ *+' conftest.er1 >conftest.err
33519 cat conftest.err >&5
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } &&
33522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33523 { (case "(($ac_try" in
33524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525 *) ac_try_echo=$ac_try;;
33527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528 (eval "$ac_try") 2>&5
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; } &&
33532 { ac_try='test -s conftest$ac_exeext'
33533 { (case "(($ac_try" in
33534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535 *) ac_try_echo=$ac_try;;
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538 (eval "$ac_try") 2>&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; }; then
33542 eval "$as_ac_var=yes"
33544 echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33547 eval "$as_ac_var=no"
33550 rm -f core conftest.err conftest.$ac_objext \
33551 conftest$ac_exeext conftest.$ac_ext
33553 ac_res=`eval echo '${'$as_ac_var'}'`
33554 { echo "$as_me:$LINENO: result: $ac_res" >&5
33555 echo "${ECHO_T}$ac_res" >&6; }
33556 if test `eval echo '${'$as_ac_var'}'` = yes; then
33557 cat >>confdefs.h <<_ACEOF
33558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33564 { echo "$as_me:$LINENO: checking for working mmap" >&5
33565 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33566 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33569 if test "$cross_compiling" = yes; then
33570 ac_cv_func_mmap_fixed_mapped=no
33572 cat >conftest.$ac_ext <<_ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h. */
33578 $ac_includes_default
33579 /* malloc might have been renamed as rpl_malloc. */
33582 /* Thanks to Mike Haertel and Jim Avera for this test.
33583 Here is a matrix of mmap possibilities:
33584 mmap private not fixed
33585 mmap private fixed at somewhere currently unmapped
33586 mmap private fixed at somewhere already mapped
33587 mmap shared not fixed
33588 mmap shared fixed at somewhere currently unmapped
33589 mmap shared fixed at somewhere already mapped
33590 For private mappings, we should verify that changes cannot be read()
33591 back from the file, nor mmap's back from the file at a different
33592 address. (There have been systems where private was not correctly
33593 implemented like the infamous i386 svr4.0, and systems where the
33594 VM page cache was not coherent with the file system buffer cache
33595 like early versions of FreeBSD and possibly contemporary NetBSD.)
33596 For shared mappings, we should conversely verify that changes get
33597 propagated back to all the places they're supposed to be.
33599 Grep wants private fixed already mapped.
33600 The main things grep needs to know about mmap are:
33601 * does it exist and is it safe to write into the mmap'd area
33602 * how to use it (BSD variants) */
33605 #include <sys/mman.h>
33607 #if !STDC_HEADERS && !HAVE_STDLIB_H
33611 /* This mess was copied from the GNU getpagesize.h. */
33612 #if !HAVE_GETPAGESIZE
33613 /* Assume that all systems that can run configure have sys/param.h. */
33614 # if !HAVE_SYS_PARAM_H
33615 # define HAVE_SYS_PARAM_H 1
33618 # ifdef _SC_PAGESIZE
33619 # define getpagesize() sysconf(_SC_PAGESIZE)
33620 # else /* no _SC_PAGESIZE */
33621 # if HAVE_SYS_PARAM_H
33622 # include <sys/param.h>
33623 # ifdef EXEC_PAGESIZE
33624 # define getpagesize() EXEC_PAGESIZE
33625 # else /* no EXEC_PAGESIZE */
33627 # define getpagesize() NBPG * CLSIZE
33630 # endif /* no CLSIZE */
33631 # else /* no NBPG */
33633 # define getpagesize() NBPC
33634 # else /* no NBPC */
33636 # define getpagesize() PAGESIZE
33637 # endif /* PAGESIZE */
33638 # endif /* no NBPC */
33639 # endif /* no NBPG */
33640 # endif /* no EXEC_PAGESIZE */
33641 # else /* no HAVE_SYS_PARAM_H */
33642 # define getpagesize() 8192 /* punt totally */
33643 # endif /* no HAVE_SYS_PARAM_H */
33644 # endif /* no _SC_PAGESIZE */
33646 #endif /* no HAVE_GETPAGESIZE */
33651 char *data, *data2, *data3;
33655 pagesize = getpagesize ();
33657 /* First, make a file with some known garbage in it. */
33658 data = (char *) malloc (pagesize);
33661 for (i = 0; i < pagesize; ++i)
33662 *(data + i) = rand ();
33664 fd = creat ("conftest.mmap", 0600);
33667 if (write (fd, data, pagesize) != pagesize)
33671 /* Next, try to mmap the file at a fixed address which already has
33672 something else allocated at it. If we can, also make sure that
33673 we see the same garbage. */
33674 fd = open ("conftest.mmap", O_RDWR);
33677 data2 = (char *) malloc (2 * pagesize);
33680 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33681 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33682 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33684 for (i = 0; i < pagesize; ++i)
33685 if (*(data + i) != *(data2 + i))
33688 /* Finally, make sure that changes to the mapped area do not
33689 percolate back to the file as seen by read(). (This is a bug on
33690 some variants of i386 svr4.0.) */
33691 for (i = 0; i < pagesize; ++i)
33692 *(data2 + i) = *(data2 + i) + 1;
33693 data3 = (char *) malloc (pagesize);
33696 if (read (fd, data3, pagesize) != pagesize)
33698 for (i = 0; i < pagesize; ++i)
33699 if (*(data + i) != *(data3 + i))
33705 rm -f conftest$ac_exeext
33706 if { (ac_try="$ac_link"
33707 case "(($ac_try" in
33708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33709 *) ac_try_echo=$ac_try;;
33711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33712 (eval "$ac_link") 2>&5
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33716 { (case "(($ac_try" in
33717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718 *) ac_try_echo=$ac_try;;
33720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33721 (eval "$ac_try") 2>&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); }; }; then
33725 ac_cv_func_mmap_fixed_mapped=yes
33727 echo "$as_me: program exited with status $ac_status" >&5
33728 echo "$as_me: failed program was:" >&5
33729 sed 's/^/| /' conftest.$ac_ext >&5
33731 ( exit $ac_status )
33732 ac_cv_func_mmap_fixed_mapped=no
33734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33739 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33740 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33741 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33743 cat >>confdefs.h <<\_ACEOF
33744 #define HAVE_MMAP 1
33748 rm -f conftest.mmap
33750 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33751 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33752 if test "${ac_cv_func_mmap_file+set}" = set; then
33753 echo $ECHO_N "(cached) $ECHO_C" >&6
33756 ac_cpp='$CPP $CPPFLAGS'
33757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33761 if test "$cross_compiling" = yes; then
33762 ac_cv_func_mmap_file=no
33764 cat >conftest.$ac_ext <<_ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h. */
33772 #include <sys/types.h>
33773 #include <sys/mman.h>
33781 fd = creat ("foo",0777);
33782 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33784 return (fd != (int) MAP_FAILED);
33789 rm -f conftest$ac_exeext
33790 if { (ac_try="$ac_link"
33791 case "(($ac_try" in
33792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793 *) ac_try_echo=$ac_try;;
33795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33796 (eval "$ac_link") 2>&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33800 { (case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_try") 2>&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; }; then
33809 ac_cv_func_mmap_file=yes
33811 echo "$as_me: program exited with status $ac_status" >&5
33812 echo "$as_me: failed program was:" >&5
33813 sed 's/^/| /' conftest.$ac_ext >&5
33815 ( exit $ac_status )
33816 ac_cv_func_mmap_file=no
33818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33823 ac_cpp='$CPP $CPPFLAGS'
33824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33830 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33831 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33832 if test "$ac_cv_func_mmap_file" = yes; then
33834 cat >>confdefs.h <<\_ACEOF
33835 #define HAVE_MMAP_FILE
33842 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33843 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33844 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33845 echo $ECHO_N "(cached) $ECHO_C" >&6
33847 if test "$llvm_cv_os_type" = "Interix" ; then
33848 ac_cv_need_dev_zero_for_mmap=yes
33850 ac_cv_need_dev_zero_for_mmap=no
33854 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33855 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33856 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33858 cat >>confdefs.h <<\_ACEOF
33859 #define NEED_DEV_ZERO_FOR_MMAP 1
33864 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33866 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33867 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33869 if test "$ac_cv_func_mmap_file" = "no"
33871 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33872 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33878 for ac_func in __dso_handle
33880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33884 echo $ECHO_N "(cached) $ECHO_C" >&6
33886 cat >conftest.$ac_ext <<_ACEOF
33889 cat confdefs.h >>conftest.$ac_ext
33890 cat >>conftest.$ac_ext <<_ACEOF
33891 /* end confdefs.h. */
33892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33894 #define $ac_func innocuous_$ac_func
33896 /* System header to define __stub macros and hopefully few prototypes,
33897 which can conflict with char $ac_func (); below.
33898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33899 <limits.h> exists even on freestanding compilers. */
33902 # include <limits.h>
33904 # include <assert.h>
33909 /* Override any GCC internal prototype to avoid an error.
33910 Use char because int might match the return type of a GCC
33911 builtin and then its argument prototype would still apply. */
33916 /* The GNU C library defines this for functions which it implements
33917 to always fail with ENOSYS. Some functions are actually named
33918 something starting with __ and the normal name is an alias. */
33919 #if defined __stub_$ac_func || defined __stub___$ac_func
33926 return $ac_func ();
33931 rm -f conftest.$ac_objext conftest$ac_exeext
33932 if { (ac_try="$ac_link"
33933 case "(($ac_try" in
33934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33935 *) ac_try_echo=$ac_try;;
33937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33938 (eval "$ac_link") 2>conftest.er1
33940 grep -v '^ *+' conftest.er1 >conftest.err
33942 cat conftest.err >&5
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); } &&
33945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33946 { (case "(($ac_try" in
33947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948 *) ac_try_echo=$ac_try;;
33950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951 (eval "$ac_try") 2>&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); }; } &&
33955 { ac_try='test -s conftest$ac_exeext'
33956 { (case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_try") 2>&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; }; then
33965 eval "$as_ac_var=yes"
33967 echo "$as_me: failed program was:" >&5
33968 sed 's/^/| /' conftest.$ac_ext >&5
33970 eval "$as_ac_var=no"
33973 rm -f core conftest.err conftest.$ac_objext \
33974 conftest$ac_exeext conftest.$ac_ext
33976 ac_res=`eval echo '${'$as_ac_var'}'`
33977 { echo "$as_me:$LINENO: result: $ac_res" >&5
33978 echo "${ECHO_T}$ac_res" >&6; }
33979 if test `eval echo '${'$as_ac_var'}'` = yes; then
33980 cat >>confdefs.h <<_ACEOF
33981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33988 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33989 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33990 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33991 echo $ECHO_N "(cached) $ECHO_C" >&6
33993 llvm_cv_llvmgcc_sanity="no"
33994 if test -x "$LLVMGCC" ; then
33995 cp /dev/null conftest.c
33996 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33997 grep 'target datalayout =' > /dev/null 2>&1
33998 if test $? -eq 0 ; then
33999 llvm_cv_llvmgcc_sanity="yes"
34004 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34005 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34007 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34008 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34009 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34010 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34011 LLVMCC1=$llvmcc1path
34013 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34014 LLVMCC1PLUS=$llvmcc1pluspath
34016 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34017 LLVMGCCDIR=$llvmgccdir
34019 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34020 LLVMGCCLIBEXEC=$llvmgcclibexec
34022 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34023 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34024 LLVMGCC_VERSION=$llvmgccversion
34026 LLVMGCC_MAJVERS=$llvmgccmajvers
34028 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34029 LLVMGCC_LANGS=$llvmgcclangs
34031 { echo "$as_me:$LINENO: result: ok" >&5
34032 echo "${ECHO_T}ok" >&6; }
34035 SHLIBEXT=$libltdl_cv_shlibext
34038 # Translate the various configuration directories and other basic
34039 # information into substitutions that will end up in Makefile.config.in
34040 # that these configured values can be used by the makefiles
34041 if test "${prefix}" = "NONE" ; then
34042 prefix="/usr/local"
34044 eval LLVM_PREFIX="${prefix}";
34045 eval LLVM_BINDIR="${prefix}/bin";
34046 eval LLVM_LIBDIR="${prefix}/lib";
34047 eval LLVM_DATADIR="${prefix}/share/llvm";
34048 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34049 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34050 eval LLVM_INCLUDEDIR="${prefix}/include";
34051 eval LLVM_INFODIR="${prefix}/info";
34052 eval LLVM_MANDIR="${prefix}/man";
34053 LLVM_CONFIGTIME=`date`
34065 # Place the various directores into the config.h file as #defines so that we
34066 # can know about the installation paths within LLVM.
34068 cat >>confdefs.h <<_ACEOF
34069 #define LLVM_PREFIX "$LLVM_PREFIX"
34073 cat >>confdefs.h <<_ACEOF
34074 #define LLVM_BINDIR "$LLVM_BINDIR"
34078 cat >>confdefs.h <<_ACEOF
34079 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34083 cat >>confdefs.h <<_ACEOF
34084 #define LLVM_DATADIR "$LLVM_DATADIR"
34088 cat >>confdefs.h <<_ACEOF
34089 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34093 cat >>confdefs.h <<_ACEOF
34094 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34098 cat >>confdefs.h <<_ACEOF
34099 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34103 cat >>confdefs.h <<_ACEOF
34104 #define LLVM_INFODIR "$LLVM_INFODIR"
34108 cat >>confdefs.h <<_ACEOF
34109 #define LLVM_MANDIR "$LLVM_MANDIR"
34113 cat >>confdefs.h <<_ACEOF
34114 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34119 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34121 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34123 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34125 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34127 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34130 ac_config_files="$ac_config_files Makefile.config"
34133 ac_config_files="$ac_config_files llvm.spec"
34136 ac_config_files="$ac_config_files docs/doxygen.cfg"
34139 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34142 ac_config_commands="$ac_config_commands setup"
34144 ac_config_commands="$ac_config_commands Makefile"
34147 ac_config_commands="$ac_config_commands Makefile.common"
34150 ac_config_commands="$ac_config_commands examples/Makefile"
34153 ac_config_commands="$ac_config_commands lib/Makefile"
34156 ac_config_commands="$ac_config_commands runtime/Makefile"
34159 ac_config_commands="$ac_config_commands test/Makefile"
34162 ac_config_commands="$ac_config_commands test/Makefile.tests"
34165 ac_config_commands="$ac_config_commands tools/Makefile"
34168 ac_config_commands="$ac_config_commands utils/Makefile"
34171 ac_config_commands="$ac_config_commands projects/Makefile"
34174 ac_config_commands="$ac_config_commands bindings/Makefile"
34177 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34181 cat >confcache <<\_ACEOF
34182 # This file is a shell script that caches the results of configure
34183 # tests run on this system so they can be shared between configure
34184 # scripts and configure runs, see configure's option --config-cache.
34185 # It is not useful on other systems. If it contains results you don't
34186 # want to keep, you may remove or edit it.
34188 # config.status only pays attention to the cache file if you give it
34189 # the --recheck option to rerun configure.
34191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34193 # following values.
34197 # The following way of writing the cache mishandles newlines in values,
34198 # but we know of no workaround that is simple, portable, and efficient.
34199 # So, we kill variables containing newlines.
34200 # Ultrix sh set writes to stderr and can't be redirected directly,
34201 # and sets the high bit in the cache file unless we assign to the vars.
34203 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34204 eval ac_val=\$$ac_var
34208 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34209 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34212 _ | IFS | as_nl) ;; #(
34213 *) $as_unset $ac_var ;;
34219 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34220 *${as_nl}ac_space=\ *)
34221 # `set' does not quote correctly, so add quotes (double-quote
34222 # substitution turns \\\\ into \\, and sed turns \\ into \).
34225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34228 # `set' quotes correctly as required by POSIX, so do not add quotes.
34229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34242 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34243 if test -w "$cache_file"; then
34244 test "x$cache_file" != "x/dev/null" &&
34245 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34246 echo "$as_me: updating cache $cache_file" >&6;}
34247 cat confcache >$cache_file
34249 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34250 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34256 # Let make expand exec_prefix.
34257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34259 DEFS=-DHAVE_CONFIG_H
34263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34264 # 1. Remove the extension, and $U if already installed.
34265 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34266 ac_i=`echo "$ac_i" | sed "$ac_script"`
34267 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34268 # will be set to the directory where LIBOBJS objects are built.
34269 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34270 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34272 LIBOBJS=$ac_libobjs
34274 LTLIBOBJS=$ac_ltlibobjs
34277 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34278 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34279 Usually this means the macro was only invoked conditionally." >&5
34280 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34281 Usually this means the macro was only invoked conditionally." >&2;}
34282 { (exit 1); exit 1; }; }
34284 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34285 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34286 Usually this means the macro was only invoked conditionally." >&5
34287 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34288 Usually this means the macro was only invoked conditionally." >&2;}
34289 { (exit 1); exit 1; }; }
34292 : ${CONFIG_STATUS=./config.status}
34293 ac_clean_files_save=$ac_clean_files
34294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34297 cat >$CONFIG_STATUS <<_ACEOF
34299 # Generated by $as_me.
34300 # Run this file to recreate the current configuration.
34301 # Compiler output produced by configure, useful for debugging
34302 # configure, is in config.log if it exists.
34305 ac_cs_recheck=false
34307 SHELL=\${CONFIG_SHELL-$SHELL}
34310 cat >>$CONFIG_STATUS <<\_ACEOF
34311 ## --------------------- ##
34312 ## M4sh Initialization. ##
34313 ## --------------------- ##
34315 # Be Bourne compatible
34316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34320 # is contrary to our usage. Disable this feature.
34321 alias -g '${1+"$@"}'='"$@"'
34322 setopt NO_GLOB_SUBST
34324 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34326 BIN_SH=xpg4; export BIN_SH # for Tru64
34327 DUALCASE=1; export DUALCASE # for MKS sh
34331 # Avoid depending upon Character Ranges.
34332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34335 as_cr_digits='0123456789'
34336 as_cr_alnum=$as_cr_Letters$as_cr_digits
34338 # The user is always right.
34339 if test "${PATH_SEPARATOR+set}" != set; then
34340 echo "#! /bin/sh" >conf$$.sh
34341 echo "exit 0" >>conf$$.sh
34343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34351 # Support unset when possible.
34352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34360 # We need space, tab and new line, in precisely that order. Quoting is
34361 # there to prevent editors from complaining about space-tab.
34362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34363 # splitting by setting IFS to empty value.)
34368 # Find who we are. Look in the path if we contain no directory separator.
34370 *[\\/]* ) as_myself=$0 ;;
34371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34372 for as_dir in $PATH
34375 test -z "$as_dir" && as_dir=.
34376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34382 # We did not find ourselves, most probably we were run as `sh COMMAND'
34383 # in which case we are not to be found in the path.
34384 if test "x$as_myself" = x; then
34387 if test ! -f "$as_myself"; then
34388 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34389 { (exit 1); exit 1; }
34392 # Work around bugs in pre-3.0 UWIN ksh.
34393 for as_var in ENV MAIL MAILPATH
34394 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34402 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34403 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34404 LC_TELEPHONE LC_TIME
34406 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34407 eval $as_var=C; export $as_var
34409 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34413 # Required to use basename.
34414 if expr a : '\(a\)' >/dev/null 2>&1 &&
34415 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34421 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34422 as_basename=basename
34428 # Name of the executable.
34429 as_me=`$as_basename -- "$0" ||
34430 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34431 X"$0" : 'X\(//\)$' \| \
34432 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34434 sed '/^.*\/\([^/][^/]*\)\/*$/{
34453 as_lineno_1=$LINENO
34454 as_lineno_2=$LINENO
34455 test "x$as_lineno_1" != "x$as_lineno_2" &&
34456 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34459 # uniformly replaced by the line number. The first 'sed' inserts a
34460 # line-number line after each line using $LINENO; the second 'sed'
34461 # does the real work. The second script uses 'N' to pair each
34462 # line-number line with the line containing $LINENO, and appends
34463 # trailing '-' during substitution so that $LINENO is not a special
34464 # case at line end.
34465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34466 # scripts with optimization help from Paolo Bonzini. Blame Lee
34467 # E. McMahon (1931-1989) for sed's syntax. :-)
34479 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34482 ' >$as_me.lineno &&
34483 chmod +x "$as_me.lineno" ||
34484 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34485 { (exit 1); exit 1; }; }
34487 # Don't try to exec as it changes $[0], causing all sort of problems
34488 # (the dirname of $[0] is not the place where we might find the
34489 # original and so on. Autoconf is especially sensitive to this).
34490 . "./$as_me.lineno"
34491 # Exit status is that of the last command.
34496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34502 ECHO_C= ECHO_N= ECHO_T=
34503 case `echo -n x` in
34505 case `echo 'x\c'` in
34506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34513 if expr a : '\(a\)' >/dev/null 2>&1 &&
34514 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34520 rm -f conf$$ conf$$.exe conf$$.file
34521 if test -d conf$$.dir; then
34522 rm -f conf$$.dir/conf$$.file
34528 if ln -s conf$$.file conf$$ 2>/dev/null; then
34530 # ... but there are two gotchas:
34531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34533 # In both cases, we have to default to `cp -p'.
34534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34536 elif ln conf$$.file conf$$ 2>/dev/null; then
34541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34542 rmdir conf$$.dir 2>/dev/null
34544 if mkdir -p . 2>/dev/null; then
34547 test -d ./-p && rmdir ./-p
34551 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34552 # systems may use methods other than mode bits to determine executability.
34553 cat >conf$$.file <<_ASEOF
34557 chmod +x conf$$.file
34558 if test -x conf$$.file >/dev/null 2>&1; then
34559 as_executable_p="test -x"
34565 # Sed expression to map a string onto a valid CPP name.
34566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34568 # Sed expression to map a string onto a valid variable name.
34569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34574 # Save the log message, to keep $[0] and so on meaningful, and to
34575 # report actual input values of CONFIG_FILES etc. instead of their
34576 # values after options handling.
34578 This file was extended by llvm $as_me 2.2svn, which was
34579 generated by GNU Autoconf 2.60. Invocation command line was
34581 CONFIG_FILES = $CONFIG_FILES
34582 CONFIG_HEADERS = $CONFIG_HEADERS
34583 CONFIG_LINKS = $CONFIG_LINKS
34584 CONFIG_COMMANDS = $CONFIG_COMMANDS
34587 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34592 cat >>$CONFIG_STATUS <<_ACEOF
34593 # Files that config.status was made for.
34594 config_files="$ac_config_files"
34595 config_headers="$ac_config_headers"
34596 config_commands="$ac_config_commands"
34600 cat >>$CONFIG_STATUS <<\_ACEOF
34602 \`$as_me' instantiates files from templates according to the
34603 current configuration.
34605 Usage: $0 [OPTIONS] [FILE]...
34607 -h, --help print this help, then exit
34608 -V, --version print version number, then exit
34609 -q, --quiet do not print progress messages
34610 -d, --debug don't remove temporary files
34611 --recheck update $as_me by reconfiguring in the same conditions
34612 --file=FILE[:TEMPLATE]
34613 instantiate the configuration file FILE
34614 --header=FILE[:TEMPLATE]
34615 instantiate the configuration header FILE
34617 Configuration files:
34620 Configuration headers:
34623 Configuration commands:
34626 Report bugs to <bug-autoconf@gnu.org>."
34629 cat >>$CONFIG_STATUS <<_ACEOF
34631 llvm config.status 2.2svn
34632 configured by $0, generated by GNU Autoconf 2.60,
34633 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34635 Copyright (C) 2006 Free Software Foundation, Inc.
34636 This config.status script is free software; the Free Software Foundation
34637 gives unlimited permission to copy, distribute and modify it."
34644 cat >>$CONFIG_STATUS <<\_ACEOF
34645 # If no file are specified by the user, then we need to provide default
34646 # value. By we need to know if files were specified by the user.
34652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34664 # Handling of the options.
34665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34668 echo "$ac_cs_version"; exit ;;
34669 --debug | --debu | --deb | --de | --d | -d )
34671 --file | --fil | --fi | --f )
34673 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34674 ac_need_defaults=false;;
34675 --header | --heade | --head | --hea )
34677 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34678 ac_need_defaults=false;;
34680 # Conflict between --help and --header
34681 { echo "$as_me: error: ambiguous option: $1
34682 Try \`$0 --help' for more information." >&2
34683 { (exit 1); exit 1; }; };;
34684 --help | --hel | -h )
34685 echo "$ac_cs_usage"; exit ;;
34686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34690 # This is an error.
34691 -*) { echo "$as_me: error: unrecognized option: $1
34692 Try \`$0 --help' for more information." >&2
34693 { (exit 1); exit 1; }; } ;;
34695 *) ac_config_targets="$ac_config_targets $1"
34696 ac_need_defaults=false ;;
34702 ac_configure_extra_args=
34704 if $ac_cs_silent; then
34706 ac_configure_extra_args="$ac_configure_extra_args --silent"
34710 cat >>$CONFIG_STATUS <<_ACEOF
34711 if \$ac_cs_recheck; then
34712 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34713 CONFIG_SHELL=$SHELL
34714 export CONFIG_SHELL
34715 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34719 cat >>$CONFIG_STATUS <<\_ACEOF
34723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34724 ## Running $as_me. ##
34730 cat >>$CONFIG_STATUS <<_ACEOF
34734 llvm_src="${srcdir}"
34738 cat >>$CONFIG_STATUS <<\_ACEOF
34740 # Handling of arguments.
34741 for ac_config_target in $ac_config_targets
34743 case $ac_config_target in
34744 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34745 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34746 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34747 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34748 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34749 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34750 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34751 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34752 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34753 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34754 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34755 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34756 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34757 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34758 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34759 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34760 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34761 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34762 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34763 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34764 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34765 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34767 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34768 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34769 { (exit 1); exit 1; }; };;
34774 # If the user did not use the arguments to specify the items to instantiate,
34775 # then the envvar interface is used. Set only those that are not.
34776 # We use the long form for the default assignment because of an extremely
34777 # bizarre bug on SunOS 4.1.3.
34778 if $ac_need_defaults; then
34779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34784 # Have a temporary directory for convenience. Make it in the build tree
34785 # simply because there is no reason against having it here, and in addition,
34786 # creating and moving files from /tmp can sometimes cause problems.
34787 # Hook for its removal unless debugging.
34788 # Note that there is a small window in which the directory will not be cleaned:
34789 # after its creation but before its name has been assigned to `$tmp'.
34793 trap 'exit_status=$?
34794 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34796 trap '{ (exit 1); exit 1; }' 1 2 13 15
34798 # Create a (secure) tmp directory for tmp files.
34801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34802 test -n "$tmp" && test -d "$tmp"
34805 tmp=./conf$$-$RANDOM
34806 (umask 077 && mkdir "$tmp")
34809 echo "$me: cannot create a temporary directory in ." >&2
34810 { (exit 1); exit 1; }
34814 # Set up the sed scripts for CONFIG_FILES section.
34817 # No need to generate the scripts if there are no CONFIG_FILES.
34818 # This happens for instance when ./config.status config.h
34819 if test -n "$CONFIG_FILES"; then
34826 for ac_last_try in false false false false false :; do
34827 cat >conf$$subs.sed <<_ACEOF
34828 SHELL!$SHELL$ac_delim
34829 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34830 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34831 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34832 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34833 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34834 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34835 exec_prefix!$exec_prefix$ac_delim
34836 prefix!$prefix$ac_delim
34837 program_transform_name!$program_transform_name$ac_delim
34838 bindir!$bindir$ac_delim
34839 sbindir!$sbindir$ac_delim
34840 libexecdir!$libexecdir$ac_delim
34841 datarootdir!$datarootdir$ac_delim
34842 datadir!$datadir$ac_delim
34843 sysconfdir!$sysconfdir$ac_delim
34844 sharedstatedir!$sharedstatedir$ac_delim
34845 localstatedir!$localstatedir$ac_delim
34846 includedir!$includedir$ac_delim
34847 oldincludedir!$oldincludedir$ac_delim
34848 docdir!$docdir$ac_delim
34849 infodir!$infodir$ac_delim
34850 htmldir!$htmldir$ac_delim
34851 dvidir!$dvidir$ac_delim
34852 pdfdir!$pdfdir$ac_delim
34853 psdir!$psdir$ac_delim
34854 libdir!$libdir$ac_delim
34855 localedir!$localedir$ac_delim
34856 mandir!$mandir$ac_delim
34857 DEFS!$DEFS$ac_delim
34858 ECHO_C!$ECHO_C$ac_delim
34859 ECHO_N!$ECHO_N$ac_delim
34860 ECHO_T!$ECHO_T$ac_delim
34861 LIBS!$LIBS$ac_delim
34862 build_alias!$build_alias$ac_delim
34863 host_alias!$host_alias$ac_delim
34864 target_alias!$target_alias$ac_delim
34865 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34866 subdirs!$subdirs$ac_delim
34867 build!$build$ac_delim
34868 build_cpu!$build_cpu$ac_delim
34869 build_vendor!$build_vendor$ac_delim
34870 build_os!$build_os$ac_delim
34871 host!$host$ac_delim
34872 host_cpu!$host_cpu$ac_delim
34873 host_vendor!$host_vendor$ac_delim
34874 host_os!$host_os$ac_delim
34875 target!$target$ac_delim
34876 target_cpu!$target_cpu$ac_delim
34877 target_vendor!$target_vendor$ac_delim
34878 target_os!$target_os$ac_delim
34880 LINKALL!$LINKALL$ac_delim
34881 NOLINKALL!$NOLINKALL$ac_delim
34882 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34883 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34884 ARCH!$ARCH$ac_delim
34885 ENDIAN!$ENDIAN$ac_delim
34887 CFLAGS!$CFLAGS$ac_delim
34888 LDFLAGS!$LDFLAGS$ac_delim
34889 CPPFLAGS!$CPPFLAGS$ac_delim
34890 ac_ct_CC!$ac_ct_CC$ac_delim
34891 EXEEXT!$EXEEXT$ac_delim
34892 OBJEXT!$OBJEXT$ac_delim
34894 GREP!$GREP$ac_delim
34895 EGREP!$EGREP$ac_delim
34896 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34897 BUILD_CC!$BUILD_CC$ac_delim
34898 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34899 CVSBUILD!$CVSBUILD$ac_delim
34900 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34901 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34902 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34903 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34904 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34906 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34907 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34908 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34909 ENABLE_PIC!$ENABLE_PIC$ac_delim
34910 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34911 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34912 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34914 CXXFLAGS!$CXXFLAGS$ac_delim
34915 ac_ct_CXX!$ac_ct_CXX$ac_delim
34917 LEXLIB!$LEXLIB$ac_delim
34918 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34919 FLEX!$FLEX$ac_delim
34920 YACC!$YACC$ac_delim
34921 YFLAGS!$YFLAGS$ac_delim
34922 BISON!$BISON$ac_delim
34924 ifGNUmake!$ifGNUmake$ac_delim
34927 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34929 elif $ac_last_try; then
34930 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34931 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34932 { (exit 1); exit 1; }; }
34934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34938 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34939 if test -n "$ac_eof"; then
34940 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34941 ac_eof=`expr $ac_eof + 1`
34944 cat >>$CONFIG_STATUS <<_ACEOF
34945 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34949 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34950 s/^/s,@/; s/!/@,|#_!!_#|/
34953 s/'"$ac_delim"'$/,g/; t
34955 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34956 ' >>$CONFIG_STATUS <conf$$subs.sed
34957 rm -f conf$$subs.sed
34958 cat >>$CONFIG_STATUS <<_ACEOF
34964 for ac_last_try in false false false false false :; do
34965 cat >conf$$subs.sed <<_ACEOF
34966 LN_S!$LN_S$ac_delim
34969 DATE!$DATE$ac_delim
34970 FIND!$FIND$ac_delim
34971 MKDIR!$MKDIR$ac_delim
34973 RANLIB!$RANLIB$ac_delim
34977 BINPWD!$BINPWD$ac_delim
34978 GRAPHVIZ!$GRAPHVIZ$ac_delim
34981 DOTTY!$DOTTY$ac_delim
34982 PERL!$PERL$ac_delim
34983 HAVE_PERL!$HAVE_PERL$ac_delim
34984 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34985 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34986 INSTALL_DATA!$INSTALL_DATA$ac_delim
34987 BZIP2!$BZIP2$ac_delim
34988 DOXYGEN!$DOXYGEN$ac_delim
34989 GROFF!$GROFF$ac_delim
34990 GZIP!$GZIP$ac_delim
34991 POD2HTML!$POD2HTML$ac_delim
34992 POD2MAN!$POD2MAN$ac_delim
34993 RUNTEST!$RUNTEST$ac_delim
34994 TCLSH!$TCLSH$ac_delim
34996 OCAMLC!$OCAMLC$ac_delim
34997 OCAMLOPT!$OCAMLOPT$ac_delim
34998 OCAMLDEP!$OCAMLDEP$ac_delim
34999 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35000 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35001 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35002 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35003 LIBADD_DL!$LIBADD_DL$ac_delim
35004 ECHO!$ECHO$ac_delim
35006 STRIP!$STRIP$ac_delim
35007 CXXCPP!$CXXCPP$ac_delim
35009 FFLAGS!$FFLAGS$ac_delim
35010 ac_ct_F77!$ac_ct_F77$ac_delim
35011 LIBTOOL!$LIBTOOL$ac_delim
35012 LLVMGCC!$LLVMGCC$ac_delim
35013 LLVMGXX!$LLVMGXX$ac_delim
35014 USE_UDIS86!$USE_UDIS86$ac_delim
35015 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35016 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35017 ALLOCA!$ALLOCA$ac_delim
35018 MMAP_FILE!$MMAP_FILE$ac_delim
35019 LLVMCC1!$LLVMCC1$ac_delim
35020 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35021 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35022 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35023 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35024 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35025 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35026 SHLIBEXT!$SHLIBEXT$ac_delim
35027 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35028 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35029 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35030 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35031 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35032 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35033 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35034 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35035 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35036 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35037 LIBOBJS!$LIBOBJS$ac_delim
35038 LTLIBOBJS!$LTLIBOBJS$ac_delim
35041 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
35043 elif $ac_last_try; then
35044 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35045 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35046 { (exit 1); exit 1; }; }
35048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35052 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35053 if test -n "$ac_eof"; then
35054 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35055 ac_eof=`expr $ac_eof + 1`
35058 cat >>$CONFIG_STATUS <<_ACEOF
35059 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35063 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35064 s/^/s,@/; s/!/@,|#_!!_#|/
35067 s/'"$ac_delim"'$/,g/; t
35069 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35070 ' >>$CONFIG_STATUS <conf$$subs.sed
35071 rm -f conf$$subs.sed
35072 cat >>$CONFIG_STATUS <<_ACEOF
35079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35081 # trailing colons and then remove the whole line if VPATH becomes empty
35082 # (actually we leave an empty line to preserve line numbers).
35083 if test "x$srcdir" = x.; then
35084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35085 s/:*\$(srcdir):*/:/
35086 s/:*\${srcdir}:*/:/
35088 s/^\([^=]*=[ ]*\):*/\1/
35094 cat >>$CONFIG_STATUS <<\_ACEOF
35095 fi # test -n "$CONFIG_FILES"
35098 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35101 :[FHLC]) ac_mode=$ac_tag; continue;;
35103 case $ac_mode$ac_tag in
35105 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35106 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35107 { (exit 1); exit 1; }; };;
35108 :[FH]-) ac_tag=-:-;;
35109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35126 -) ac_f="$tmp/stdin";;
35127 *) # Look for the file first in the build tree, then in the source tree
35128 # (if the path is not absolute). The absolute path cannot be DOS-style,
35129 # because $ac_f cannot contain `:'.
35133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35135 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35136 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35137 { (exit 1); exit 1; }; };;
35139 ac_file_inputs="$ac_file_inputs $ac_f"
35142 # Let's still pretend it is `configure' which instantiates (i.e., don't
35143 # use $as_me), people would be surprised to read:
35144 # /* config.h. Generated by config.status. */
35145 configure_input="Generated from "`IFS=:
35146 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35147 if test x"$ac_file" != x-; then
35148 configure_input="$ac_file. $configure_input"
35149 { echo "$as_me:$LINENO: creating $ac_file" >&5
35150 echo "$as_me: creating $ac_file" >&6;}
35154 *:-:* | *:-) cat >"$tmp/stdin";;
35159 ac_dir=`$as_dirname -- "$ac_file" ||
35160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35161 X"$ac_file" : 'X\(//\)[^/]' \| \
35162 X"$ac_file" : 'X\(//\)$' \| \
35163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35169 /^X\(\/\/\)[^/].*/{
35184 -*) as_dir=./$as_dir;;
35186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35190 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35191 *) as_qdir=$as_dir;;
35193 as_dirs="'$as_qdir' $as_dirs"
35194 as_dir=`$as_dirname -- "$as_dir" ||
35195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35196 X"$as_dir" : 'X\(//\)[^/]' \| \
35197 X"$as_dir" : 'X\(//\)$' \| \
35198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35204 /^X\(\/\/\)[^/].*/{
35217 test -d "$as_dir" && break
35219 test -z "$as_dirs" || eval "mkdir $as_dirs"
35220 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35222 { (exit 1); exit 1; }; }; }
35226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35229 # A ".." for each directory in $ac_dir_suffix.
35230 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35231 case $ac_top_builddir_sub in
35232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35236 ac_abs_top_builddir=$ac_pwd
35237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35238 # for backward compatibility:
35239 ac_top_builddir=$ac_top_build_prefix
35242 .) # We are building in place.
35244 ac_top_srcdir=$ac_top_builddir_sub
35245 ac_abs_top_srcdir=$ac_pwd ;;
35246 [\\/]* | ?:[\\/]* ) # Absolute name.
35247 ac_srcdir=$srcdir$ac_dir_suffix;
35248 ac_top_srcdir=$srcdir
35249 ac_abs_top_srcdir=$srcdir ;;
35250 *) # Relative name.
35251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35252 ac_top_srcdir=$ac_top_build_prefix$srcdir
35253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35270 cat >>$CONFIG_STATUS <<\_ACEOF
35271 # If the template does not know about datarootdir, expand it.
35272 # FIXME: This hack should be removed a few years after 2.60.
35273 ac_datarootdir_hack=; ac_datarootdir_seen=
35275 case `sed -n '/datarootdir/ {
35284 ' $ac_file_inputs` in
35285 *datarootdir*) ac_datarootdir_seen=yes;;
35286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35287 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35288 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35290 cat >>$CONFIG_STATUS <<_ACEOF
35291 ac_datarootdir_hack='
35292 s&@datadir@&$datadir&g
35293 s&@docdir@&$docdir&g
35294 s&@infodir@&$infodir&g
35295 s&@localedir@&$localedir&g
35296 s&@mandir@&$mandir&g
35297 s&\\\${datarootdir}&$datarootdir&g' ;;
35301 # Neutralize VPATH when `$srcdir' = `.'.
35302 # Shell code in configure.ac might set extrasub.
35303 # FIXME: do we really want to maintain this feature?
35304 cat >>$CONFIG_STATUS <<_ACEOF
35308 cat >>$CONFIG_STATUS <<\_ACEOF
35310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35311 s&@configure_input@&$configure_input&;t t
35312 s&@top_builddir@&$ac_top_builddir_sub&;t t
35313 s&@srcdir@&$ac_srcdir&;t t
35314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35315 s&@top_srcdir@&$ac_top_srcdir&;t t
35316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35317 s&@builddir@&$ac_builddir&;t t
35318 s&@abs_builddir@&$ac_abs_builddir&;t t
35319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35320 s&@INSTALL@&$ac_INSTALL&;t t
35321 $ac_datarootdir_hack
35322 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35324 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35327 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35328 which seems to be undefined. Please make sure it is defined." >&5
35329 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35330 which seems to be undefined. Please make sure it is defined." >&2;}
35334 -) cat "$tmp/out"; rm -f "$tmp/out";;
35335 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35344 # Transform confdefs.h into a sed script `conftest.defines', that
35345 # substitutes the proper values into config.h.in to produce config.h.
35346 rm -f conftest.defines conftest.tail
35347 # First, append a space to every undef/define line, to ease matching.
35348 echo 's/$/ /' >conftest.defines
35349 # Then, protect against being on the right side of a sed subst, or in
35350 # an unquoted here document, in config.status. If some macros were
35351 # called several times there might be several #defines for the same
35352 # symbol, which is useless. But do not sort them, since the last
35353 # AC_DEFINE must be honored.
35354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35355 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35356 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35357 # PARAMS is the parameter list in the macro definition--in most cases, it's
35358 # just an empty string.
35359 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35360 ac_dB='\\)[ (].*,\\1define\\2'
35368 s/^[ ]*#[ ]*define[ ][ ]*//
35373 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35374 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35375 ' >>conftest.defines
35377 # Remove the space that was appended to ease matching.
35378 # Then replace #undef with comments. This is necessary, for
35379 # example, in the case of _POSIX_SOURCE, which is predefined and required
35380 # on some systems where configure will not decide to define it.
35381 # (The regexp can be short, since the line contains either #define or #undef.)
35383 s,^[ #]*u.*,/* & */,' >>conftest.defines
35385 # Break up conftest.defines:
35386 ac_max_sed_lines=50
35388 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35389 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35390 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35392 ac_in='$ac_file_inputs'
35393 ac_out='"$tmp/out1"'
35394 ac_nxt='"$tmp/out2"'
35398 # Write a here document:
35399 cat >>$CONFIG_STATUS <<_ACEOF
35400 # First, check the format of the line:
35401 cat >"\$tmp/defines.sed" <<\\CEOF
35402 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35403 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35407 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35409 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35410 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35411 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35412 grep . conftest.tail >/dev/null || break
35413 rm -f conftest.defines
35414 mv conftest.tail conftest.defines
35416 rm -f conftest.defines conftest.tail
35418 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35419 cat >>$CONFIG_STATUS <<\_ACEOF
35420 if test x"$ac_file" != x-; then
35421 echo "/* $configure_input */" >"$tmp/config.h"
35422 cat "$ac_result" >>"$tmp/config.h"
35423 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35424 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35425 echo "$as_me: $ac_file is unchanged" >&6;}
35428 mv "$tmp/config.h" $ac_file
35431 echo "/* $configure_input */"
35437 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35438 echo "$as_me: executing $ac_file commands" >&6;}
35443 case $ac_file$ac_mode in
35444 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35445 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35446 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35447 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35448 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35449 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35450 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35451 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35452 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35453 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35454 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35455 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35456 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35457 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35458 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35459 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35460 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35461 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35462 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35463 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35464 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35465 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35466 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35467 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35473 { (exit 0); exit 0; }
35475 chmod +x $CONFIG_STATUS
35476 ac_clean_files=$ac_clean_files_save
35479 # configure is writing to config.log, and then calls config.status.
35480 # config.status does its own redirection, appending to config.log.
35481 # Unfortunately, on DOS this fails, as config.log is still kept open
35482 # by configure, so config.status won't be able to write to it; its
35483 # output is simply discarded. So we exec the FD to /dev/null,
35484 # effectively closing config.log, so it can be properly (re)opened and
35485 # appended to by config.status. When coming back to configure, we
35486 # need to make the FD available again.
35487 if test "$no_create" != yes; then
35489 ac_config_status_args=
35490 test "$silent" = yes &&
35491 ac_config_status_args="$ac_config_status_args --quiet"
35493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35496 # would make configure fail if this is the last instruction.
35497 $ac_cs_success || { (exit 1); exit 1; }
35501 # CONFIG_SUBDIRS section.
35503 if test "$no_recursion" != yes; then
35505 # Remove --cache-file and --srcdir arguments so they do not pile up.
35506 ac_sub_configure_args=
35508 eval "set x $ac_configure_args"
35512 if test -n "$ac_prev"; then
35517 -cache-file | --cache-file | --cache-fil | --cache-fi \
35518 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35519 ac_prev=cache_file ;;
35520 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35521 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35524 --config-cache | -C)
35526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35530 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35532 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35536 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35538 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35542 # Always prepend --prefix to ensure using the same prefix
35543 # in subdir configurations.
35544 ac_arg="--prefix=$prefix"
35546 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35548 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35551 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35553 # Do not complain, so a configure script can configure whichever
35554 # parts of a large source tree are present.
35555 test -d "$srcdir/$ac_dir" || continue
35557 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35558 echo "$as_me:$LINENO: $ac_msg" >&5
35562 -*) as_dir=./$as_dir;;
35564 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35568 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35569 *) as_qdir=$as_dir;;
35571 as_dirs="'$as_qdir' $as_dirs"
35572 as_dir=`$as_dirname -- "$as_dir" ||
35573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35574 X"$as_dir" : 'X\(//\)[^/]' \| \
35575 X"$as_dir" : 'X\(//\)$' \| \
35576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35582 /^X\(\/\/\)[^/].*/{
35595 test -d "$as_dir" && break
35597 test -z "$as_dirs" || eval "mkdir $as_dirs"
35598 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35599 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35600 { (exit 1); exit 1; }; }; }
35604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35607 # A ".." for each directory in $ac_dir_suffix.
35608 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35609 case $ac_top_builddir_sub in
35610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35614 ac_abs_top_builddir=$ac_pwd
35615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35616 # for backward compatibility:
35617 ac_top_builddir=$ac_top_build_prefix
35620 .) # We are building in place.
35622 ac_top_srcdir=$ac_top_builddir_sub
35623 ac_abs_top_srcdir=$ac_pwd ;;
35624 [\\/]* | ?:[\\/]* ) # Absolute name.
35625 ac_srcdir=$srcdir$ac_dir_suffix;
35626 ac_top_srcdir=$srcdir
35627 ac_abs_top_srcdir=$srcdir ;;
35628 *) # Relative name.
35629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35630 ac_top_srcdir=$ac_top_build_prefix$srcdir
35631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35638 # Check for guested configure; otherwise get Cygnus style configure.
35639 if test -f "$ac_srcdir/configure.gnu"; then
35640 ac_sub_configure=$ac_srcdir/configure.gnu
35641 elif test -f "$ac_srcdir/configure"; then
35642 ac_sub_configure=$ac_srcdir/configure
35643 elif test -f "$ac_srcdir/configure.in"; then
35644 # This should be Cygnus configure.
35645 ac_sub_configure=$ac_aux_dir/configure
35647 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35648 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35652 # The recursion is here.
35653 if test -n "$ac_sub_configure"; then
35654 # Make the cache file name correct relative to the subdirectory.
35655 case $cache_file in
35656 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35657 *) # Relative name.
35658 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35661 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35662 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35663 # The eval makes quoting arguments work.
35664 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35665 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35666 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35667 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35668 { (exit 1); exit 1; }; }