2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
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.0cvs'
719 PACKAGE_STRING='llvm 2.0cvs'
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
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
925 ac_precious_vars='build_alias
941 ac_subdirs_all='projects/sample
943 projects/llvm-stacker
949 projects/llvm-poolalloc
950 projects/llvm-kernel'
952 # Initialize some variables set by options.
954 ac_init_version=false
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1059 eval enable_$ac_feature=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1078 eval enable_$ac_feature=\$ac_optarg ;;
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 htmldir=$ac_optarg ;;
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1123 -libdir | --libdir | --libdi | --libd)
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1214 -psdir | --psdir | --psdi | --psd | --ps)
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 sbindir=$ac_optarg ;;
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 sharedstatedir=$ac_optarg ;;
1240 -site | --site | --sit)
1242 -site=* | --site=* | --sit=*)
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1269 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package| sed 's/-/_/g'`
1275 eval with_$ac_package=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/-/_/g'`
1284 eval with_$ac_package=no ;;
1287 # Obsolete; use --with-x.
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) { echo "$as_me: error: unrecognized option: $ac_option
1305 Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 { echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
1335 # Be sure to have absolute directory names.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val=\$$ac_var
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { echo "$as_me: error: Working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$0" ||
1389 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$0" : 'X\(//\)[^/]' \| \
1391 X"$0" : 'X\(//\)$' \| \
1392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421 { (exit 1); exit 1; }; }
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426 { (exit 1); exit 1; }; }
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --enable-debug-runtime
1528 --enable-jit Enable Just In Time Compiling (default is YES)
1529 --enable-doxygen Build doxygen documentation (default is NO)
1530 --enable-threads Use threads if available (default is YES)
1531 --enable-pic Build LLVM with Position Independent Code (default
1533 --enable-targets Build specific host targets:
1534 all,host-only,{target-name} (default=all)
1535 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1537 --enable-ltdl-install install libltdl
1538 --enable-shared[=PKGS] build shared libraries
1539 [default=enable_shared_default]
1540 --enable-static[=PKGS] build static libraries
1541 [default=enable_static_default]
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation
1544 [default=enable_Fast_install_default]
1545 --disable-libtool-lock avoid locking (might break parallel builds)
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1552 --with-extra-options Specify addtional options to compile LLVM with
1553 --with-tclinclude directory where tcl headers are
1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-pic try to use only PIC/non-PIC objects [default=use
1557 --with-tags[=TAGS] include additional configurations [automatic]
1558 --with-udis86=<path> Use udis86 external x86 disassembler library
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1570 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1571 the first program found out of: `bison -y', `byacc', `yacc'.
1572 YFLAGS The list of arguments that will be passed by default to $YACC.
1573 This script will default YFLAGS to the empty string to avoid a
1574 default value of `-d' given by some make applications.
1575 CXXCPP C++ preprocessor
1576 F77 Fortran 77 compiler command
1577 FFLAGS Fortran 77 compiler flags
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1582 Report bugs to <llvmbugs@cs.uiuc.edu>.
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" || continue
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1610 .) # We are building in place.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1634 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1643 llvm configure 2.0cvs
1644 generated by GNU Autoconf 2.60
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1647 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1651 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1655 cat >config.log <<_ACEOF
1656 This file contains any messages produced by compilers while
1657 running configure, to aid debugging if configure makes a mistake.
1659 It was created by llvm $as_me 2.0cvs, which was
1660 generated by GNU Autoconf 2.60. Invocation command line was
1672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 test -z "$as_dir" && as_dir=.
1696 echo "PATH: $as_dir"
1712 # Keep a trace of the command line.
1713 # Strip out --no-create and --no-recursion so they do not pile up.
1714 # Strip out --silent because we don't want to record it for future runs.
1715 # Also quote any args containing shell meta-characters.
1716 # Make two passes to allow for proper duplicate-argument suppression.
1720 ac_must_keep_next=false
1726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728 | -silent | --silent | --silen | --sile | --sil)
1731 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737 if test $ac_must_keep_next = true; then
1738 ac_must_keep_next=false # Got value, back to normal.
1741 *=* | --config-cache | -C | -disable-* | --disable-* \
1742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744 | -with-* | --with-* | -without-* | --without-* | --x)
1745 case "$ac_configure_args0 " in
1746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749 -* ) ac_must_keep_next=true ;;
1752 ac_configure_args="$ac_configure_args '$ac_arg'"
1757 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760 # When interrupted or exit'd, cleanup temporary files, and complete
1761 # config.log. We remove comments because anyway the quotes in there
1762 # would cause problems or look ugly.
1763 # WARNING: Use '\'' to represent an apostrophe within the trap.
1764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1765 trap 'exit_status=$?
1766 # Save into config.log some information that might help in debugging.
1771 ## ---------------- ##
1772 ## Cache variables. ##
1773 ## ---------------- ##
1776 # The following way of writing the cache mishandles newlines in values,
1778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779 eval ac_val=\$$ac_var
1783 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1787 _ | IFS | as_nl) ;; #(
1788 *) $as_unset $ac_var ;;
1793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1794 *${as_nl}ac_space=\ *)
1796 "s/'\''/'\''\\\\'\'''\''/g;
1797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808 ## ----------------- ##
1809 ## Output variables. ##
1810 ## ----------------- ##
1813 for ac_var in $ac_subst_vars
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 echo "$ac_var='\''$ac_val'\''"
1823 if test -n "$ac_subst_files"; then
1825 ## ------------------- ##
1826 ## File substitutions. ##
1827 ## ------------------- ##
1830 for ac_var in $ac_subst_files
1832 eval ac_val=\$$ac_var
1834 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 echo "$ac_var='\''$ac_val'\''"
1841 if test -s confdefs.h; then
1851 test "$ac_signal" != 0 &&
1852 echo "$as_me: caught signal $ac_signal"
1853 echo "$as_me: exit $exit_status"
1855 rm -f core *.core core.conftest.* &&
1856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859 for ac_signal in 1 2 13 15; do
1860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1865 rm -f -r conftest* confdefs.h
1867 # Predefined preprocessor variables.
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_NAME "$PACKAGE_NAME"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_STRING "$PACKAGE_STRING"
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1894 # Let the site file select an alternate cache file if it wants to.
1895 # Prefer explicitly selected file to automatically selected ones.
1896 if test -n "$CONFIG_SITE"; then
1897 set x "$CONFIG_SITE"
1898 elif test "x$prefix" != xNONE; then
1899 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901 set x "$ac_default_prefix/share/config.site" \
1902 "$ac_default_prefix/etc/config.site"
1907 if test -r "$ac_site_file"; then
1908 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909 echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1915 if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special
1917 # files actually), so we avoid doing that.
1918 if test -f "$cache_file"; then
1919 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920 echo "$as_me: loading cache $cache_file" >&6;}
1922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
1927 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928 echo "$as_me: creating cache $cache_file" >&6;}
1932 # Check that the precious variables saved in the cache have kept the same
1934 ac_cache_corrupted=false
1935 for ac_var in $ac_precious_vars; do
1936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937 eval ac_new_set=\$ac_env_${ac_var}_set
1938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939 eval ac_new_val=\$ac_env_${ac_var}_value
1940 case $ac_old_set,$ac_new_set in
1942 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1946 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1951 if test "x$ac_old_val" != "x$ac_new_val"; then
1952 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1953 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1954 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1955 echo "$as_me: former value: $ac_old_val" >&2;}
1956 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1957 echo "$as_me: current value: $ac_new_val" >&2;}
1958 ac_cache_corrupted=:
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1964 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965 *) ac_arg=$ac_var=$ac_new_val ;;
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973 if $ac_cache_corrupted; then
1974 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978 { (exit 1); exit 1; }; }
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2022 for ac_dir in autoconf "$srcdir"/autoconf; do
2023 if test -f "$ac_dir/install-sh"; then
2025 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 elif test -f "$ac_dir/install.sh"; then
2029 ac_install_sh="$ac_aux_dir/install.sh -c"
2031 elif test -f "$ac_dir/shtool"; then
2033 ac_install_sh="$ac_aux_dir/shtool install -c"
2037 if test -z "$ac_aux_dir"; then
2038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2039 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2040 { (exit 1); exit 1; }; }
2043 # These three variables are undocumented and unsupported,
2044 # and are intended to be withdrawn in a future Autoconf release.
2045 # They can cause serious problems if a builder's source tree is in a directory
2046 # whose full name contains unusual characters.
2047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2053 if test ${srcdir} != "." ; then
2054 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2055 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2056 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2057 { (exit 1); exit 1; }; }
2061 for i in `ls ${srcdir}/projects`
2063 if test -d ${srcdir}/projects/${i} ; then
2066 sample) subdirs="$subdirs projects/sample"
2068 privbracket) subdirs="$subdirs projects/privbracket"
2070 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2072 llvm-test) subdirs="$subdirs projects/llvm-test"
2074 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2076 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2078 llvm-java) subdirs="$subdirs projects/llvm-java"
2080 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2082 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2084 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2087 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2088 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2095 # Make sure we can run config.sub.
2096 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2099 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: checking build system type" >&5
2102 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 ac_build_alias=$build_alias
2107 test "x$ac_build_alias" = x &&
2108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109 test "x$ac_build_alias" = x &&
2110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
2113 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120 echo "${ECHO_T}$ac_cv_build" >&6; }
2121 case $ac_cv_build in
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124 echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2128 ac_save_IFS=$IFS; IFS='-'
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2141 { echo "$as_me:$LINENO: checking host system type" >&5
2142 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test "x$host_alias" = x; then
2147 ac_cv_host=$ac_cv_build
2149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157 echo "${ECHO_T}$ac_cv_host" >&6; }
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161 echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2165 ac_save_IFS=$IFS; IFS='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2178 { echo "$as_me:$LINENO: checking target system type" >&5
2179 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_target+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test "x$target_alias" = x; then
2184 ac_cv_target=$ac_cv_host
2186 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2193 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2194 echo "${ECHO_T}$ac_cv_target" >&6; }
2195 case $ac_cv_target in
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2198 echo "$as_me: error: invalid value of canonical target" >&2;}
2199 { (exit 1); exit 1; }; };;
2201 target=$ac_cv_target
2202 ac_save_IFS=$IFS; IFS='-'
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2212 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2215 # The aliases save the names the user supplied, while $host etc.
2216 # will get canonicalized.
2217 test -n "$target_alias" &&
2218 test "$program_prefix$program_suffix$program_transform_name" = \
2220 program_prefix=${target_alias}-
2222 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2223 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2224 if test "${llvm_cv_os_type+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="AIX"
2232 llvm_cv_platform_type="Unix" ;;
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="IRIX"
2237 llvm_cv_platform_type="Unix" ;;
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="Cygwin"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option="-Wl,-all_load"
2245 llvm_cv_link_all_option="-Wl,-noall_load"
2246 llvm_cv_os_type="Darwin"
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="FreeBSD"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="OpenBSD"
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="NetBSD"
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="HP-UX"
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="Interix"
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="Linux"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,-z,allextract"
2280 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2281 llvm_cv_os_type="SunOS"
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="Win32"
2287 llvm_cv_platform_type="Win32" ;;
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="MingW"
2292 llvm_cv_platform_type="Win32" ;;
2294 llvm_cv_link_all_option=""
2295 llvm_cv_no_link_all_option=""
2296 llvm_cv_os_type="Unknown"
2297 llvm_cv_platform_type="Unknown" ;;
2300 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
2312 LINKALL=$llvm_cv_link_all_option
2314 NOLINKALL=$llvm_cv_no_link_all_option
2317 case $llvm_cv_platform_type in
2320 cat >>confdefs.h <<\_ACEOF
2321 #define LLVM_ON_UNIX 1
2331 cat >>confdefs.h <<\_ACEOF
2332 #define LLVM_ON_WIN32 1
2342 { echo "$as_me:$LINENO: checking target architecture" >&5
2343 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2344 if test "${llvm_cv_target_arch+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 i?86-*) llvm_cv_target_arch="x86" ;;
2349 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2350 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2351 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2352 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2353 ia64-*) llvm_cv_target_arch="IA64" ;;
2354 arm-*) llvm_cv_target_arch="ARM" ;;
2355 *) llvm_cv_target_arch="Unknown" ;;
2358 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2359 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2361 if test "$llvm_cv_target_arch" = "Unknown" ; then
2362 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2363 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2366 ARCH=$llvm_cv_target_arch
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 if test -n "$ac_tool_prefix"; then
2375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$CC"; then
2383 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 if test -n "$CC"; then
2404 { echo "$as_me:$LINENO: result: $CC" >&5
2405 echo "${ECHO_T}$CC" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2413 if test -z "$ac_cv_prog_CC"; then
2415 # Extract the first word of "gcc", so it can be a program name with args.
2416 set dummy gcc; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$ac_ct_CC"; then
2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_ac_ct_CC="gcc"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2443 if test -n "$ac_ct_CC"; then
2444 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2445 echo "${ECHO_T}$ac_ct_CC" >&6; }
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2451 if test "x$ac_ct_CC" = x; then
2454 case $cross_compiling:$ac_tool_warned in
2456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2457 whose name does not start with the host triplet. If you think this
2458 configuration is useful to you, please write to autoconf@gnu.org." >&5
2459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2460 whose name does not start with the host triplet. If you think this
2461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2462 ac_tool_warned=yes ;;
2470 if test -z "$CC"; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}cc; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_CC="${ac_tool_prefix}cc"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 if test -n "$CC"; then
2501 { echo "$as_me:$LINENO: result: $CC" >&5
2502 echo "${ECHO_T}$CC" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2511 if test -z "$CC"; then
2512 # Extract the first word of "cc", so it can be a program name with args.
2513 set dummy cc; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2531 ac_prog_rejected=yes
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 if test $ac_prog_rejected = yes; then
2543 # We found a bogon in the path, so make sure we never use it.
2544 set dummy $ac_cv_prog_CC
2546 if test $# != 0; then
2547 # We chose a different compiler from the bogus one.
2548 # However, it has the same basename, so the bogon will be chosen
2549 # first if we set CC to just the basename; use the full file name.
2551 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2567 if test -z "$CC"; then
2568 if test -n "$ac_tool_prefix"; then
2569 for ac_prog in cl.exe
2571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test -n "$CC"; then
2600 { echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6; }
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2608 test -n "$CC" && break
2611 if test -z "$CC"; then
2613 for ac_prog in cl.exe
2615 # Extract the first word of "$ac_prog", so it can be a program name with args.
2616 set dummy $ac_prog; ac_word=$2
2617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 if test -n "$ac_ct_CC"; then
2623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_ac_ct_CC="$ac_prog"
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643 if test -n "$ac_ct_CC"; then
2644 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645 echo "${ECHO_T}$ac_ct_CC" >&6; }
2647 { echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6; }
2652 test -n "$ac_ct_CC" && break
2655 if test "x$ac_ct_CC" = x; then
2658 case $cross_compiling:$ac_tool_warned in
2660 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2661 whose name does not start with the host triplet. If you think this
2662 configuration is useful to you, please write to autoconf@gnu.org." >&5
2663 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2664 whose name does not start with the host triplet. If you think this
2665 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2666 ac_tool_warned=yes ;;
2675 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2676 See \`config.log' for more details." >&5
2677 echo "$as_me: error: no acceptable C compiler found in \$PATH
2678 See \`config.log' for more details." >&2;}
2679 { (exit 1); exit 1; }; }
2681 # Provide some information about the compiler.
2682 echo "$as_me:$LINENO: checking for C compiler version" >&5
2683 ac_compiler=`set X $ac_compile; echo $2`
2684 { (ac_try="$ac_compiler --version >&5"
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compiler --version >&5") 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694 { (ac_try="$ac_compiler -v >&5"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler -v >&5") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704 { (ac_try="$ac_compiler -V >&5"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler -V >&5") 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2730 ac_clean_files_save=$ac_clean_files
2731 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2732 # Try to create an executable without -o first, disregard a.out.
2733 # It will help us diagnose broken compilers, and finding out an intuition
2735 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2736 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2737 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2739 # List of possible output files, starting from the most likely.
2740 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2741 # only as a last resort. b.out is created by i960 compilers.
2742 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2744 # The IRIX 6 linker writes into existing files which may not be
2745 # executable, retaining their permissions. Remove them first so a
2746 # subsequent execution test works.
2748 for ac_file in $ac_files
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2752 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2757 if { (ac_try="$ac_link_default"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_link_default") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; then
2767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2768 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2769 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2770 # so that the user can short-circuit this test for compilers unknown to
2772 for ac_file in $ac_files
2774 test -f "$ac_file" || continue
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2779 # We found the default executable, but exeext='' is most
2783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787 # We set ac_cv_exeext here because the later test for it is not
2788 # safe: cross compilers may not add the suffix if given an `-o'
2789 # argument, so we may need to know it at that point already.
2790 # Even if this section looks crufty: it has the advantage of
2797 test "$ac_cv_exeext" = no && ac_cv_exeext=
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: C compiler cannot create executables
2806 See \`config.log' for more details." >&2;}
2807 { (exit 77); exit 77; }; }
2810 ac_exeext=$ac_cv_exeext
2811 { echo "$as_me:$LINENO: result: $ac_file" >&5
2812 echo "${ECHO_T}$ac_file" >&6; }
2814 # Check that the compiler produces executables we can run. If not, either
2815 # the compiler is broken, or we cross compile.
2816 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2817 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2818 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2819 # If not cross compiling, check that we can run a simple program.
2820 if test "$cross_compiling" != yes; then
2821 if { ac_try='./$ac_file'
2822 { (case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_try") 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2833 if test "$cross_compiling" = maybe; then
2836 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2837 If you meant to cross compile, use \`--host'.
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: cannot run C compiled programs.
2840 If you meant to cross compile, use \`--host'.
2841 See \`config.log' for more details." >&2;}
2842 { (exit 1); exit 1; }; }
2846 { echo "$as_me:$LINENO: result: yes" >&5
2847 echo "${ECHO_T}yes" >&6; }
2849 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2850 ac_clean_files=$ac_clean_files_save
2851 # Check that the compiler produces executables we can run. If not, either
2852 # the compiler is broken, or we cross compile.
2853 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2854 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2855 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2856 echo "${ECHO_T}$cross_compiling" >&6; }
2858 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2859 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2860 if { (ac_try="$ac_link"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_link") 2>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; then
2870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2871 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2872 # work properly (i.e., refer to `conftest.exe'), while it won't with
2874 for ac_file in conftest.exe conftest conftest.*; do
2875 test -f "$ac_file" || continue
2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2884 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }
2891 rm -f conftest$ac_cv_exeext
2892 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2893 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2895 rm -f conftest.$ac_ext
2896 EXEEXT=$ac_cv_exeext
2898 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2899 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2900 if test "${ac_cv_objext+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2918 rm -f conftest.o conftest.obj
2919 if { (ac_try="$ac_compile"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compile") 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 for ac_file in conftest.o conftest.obj conftest.*; do
2930 test -f "$ac_file" || continue;
2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2944 See \`config.log' for more details." >&2;}
2945 { (exit 1); exit 1; }; }
2948 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2950 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2951 echo "${ECHO_T}$ac_cv_objext" >&6; }
2952 OBJEXT=$ac_cv_objext
2954 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2955 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2956 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2977 rm -f conftest.$ac_objext
2978 if { (ac_try="$ac_compile"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; } &&
3001 { ac_try='test -s conftest.$ac_objext'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_try") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3023 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3025 GCC=`test $ac_compiler_gnu = yes && echo yes`
3026 ac_test_CFLAGS=${CFLAGS+set}
3027 ac_save_CFLAGS=$CFLAGS
3028 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_g+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_save_c_werror_flag=$ac_c_werror_flag
3034 ac_c_werror_flag=yes
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3052 rm -f conftest.$ac_objext
3053 if { (ac_try="$ac_compile"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>conftest.er1
3061 grep -v '^ *+' conftest.er1 >conftest.err
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; } &&
3076 { ac_try='test -s conftest.$ac_objext'
3077 { (case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_try") 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3107 rm -f conftest.$ac_objext
3108 if { (ac_try="$ac_compile"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_compile") 2>conftest.er1
3116 grep -v '^ *+' conftest.er1 >conftest.err
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3122 { (case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_try") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 ac_c_werror_flag=$ac_save_c_werror_flag
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3214 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3215 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3216 if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS=$ac_save_CFLAGS
3218 elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3225 if test "$GCC" = yes; then
3231 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3232 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_cc_c89+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 ac_cv_prog_cc_c89=no
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3246 #include <sys/types.h>
3247 #include <sys/stat.h>
3248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3249 struct buf { int x; };
3250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251 static char *e (p, i)
3257 static char *f (char * (*g) (char **, int), char **p, ...)
3262 s = g (p, va_arg (v,int));
3267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3268 function prototypes and stuff, but not '\xHH' hex character constants.
3269 These don't provoke an error unfortunately, instead are silently treated
3270 as 'x'. The following induces an error, until -std is added to get
3271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3272 array size at least. It's necessary to write '\x00'==0 to get something
3273 that's true only with -std. */
3274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277 inside strings and character constants. */
3279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281 int test (int i, double x);
3282 struct s1 {int (*f) (int a);};
3283 struct s2 {int (*f) (double a);};
3284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3298 CC="$ac_save_CC $ac_arg"
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314 { (case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_try") 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_try") 2>&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_cv_prog_cc_c89=$ac_arg
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3341 rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 rm -f conftest.$ac_ext
3349 case "x$ac_cv_prog_cc_c89" in
3351 { echo "$as_me:$LINENO: result: none needed" >&5
3352 echo "${ECHO_T}none needed" >&6; } ;;
3354 { echo "$as_me:$LINENO: result: unsupported" >&5
3355 echo "${ECHO_T}unsupported" >&6; } ;;
3357 CC="$CC $ac_cv_prog_cc_c89"
3358 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3359 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3377 # On Suns, sometimes $CPP names a directory.
3378 if test -n "$CPP" && test -d "$CPP"; then
3381 if test -z "$CPP"; then
3382 if test "${ac_cv_prog_CPP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 # Double quotes because CPP needs to be expanded
3386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3404 # include <limits.h>
3406 # include <assert.h>
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3442 rm -f conftest.err conftest.$ac_ext
3444 # OK, works on sane cases. Now check whether nonexistent headers
3445 # can be detected and how.
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3477 # Broken: success on invalid input.
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Passes both tests.
3488 rm -f conftest.err conftest.$ac_ext
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3505 { echo "$as_me:$LINENO: result: $CPP" >&5
3506 echo "${ECHO_T}$CPP" >&6; }
3508 for ac_c_preproc_warn_flag in '' yes
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3523 # include <limits.h>
3525 # include <assert.h>
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3551 if test -z "$ac_cpp_err"; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 # Broken: fails on valid input.
3561 rm -f conftest.err conftest.$ac_ext
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #include <ac_nonexistent.h>
3573 if { (ac_try="$ac_cpp conftest.$ac_ext"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3595 if test -z "$ac_cpp_err"; then
3596 # Broken: success on invalid input.
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 # Passes both tests.
3607 rm -f conftest.err conftest.$ac_ext
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.err conftest.$ac_ext
3612 if $ac_preproc_ok; then
3615 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3616 See \`config.log' for more details." >&5
3617 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3618 See \`config.log' for more details." >&2;}
3619 { (exit 1); exit 1; }; }
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3630 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3631 if test "${ac_cv_path_GREP+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 # Extract the first word of "grep ggrep" to use in msg output
3635 if test -z "$GREP"; then
3636 set dummy grep ggrep; ac_prog_name=$2
3637 if test "${ac_cv_path_GREP+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 ac_path_GREP_found=false
3641 # Loop through the user's path and test for each of PROGNAME-LIST
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3646 test -z "$as_dir" && as_dir=.
3647 for ac_prog in grep ggrep; do
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3650 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3651 # Check for GNU ac_path_GREP and select it if it is found.
3652 # Check for GNU $ac_path_GREP
3653 case `"$ac_path_GREP" --version 2>&1` in
3655 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3658 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3661 cat "conftest.in" "conftest.in" >"conftest.tmp"
3662 mv "conftest.tmp" "conftest.in"
3663 cp "conftest.in" "conftest.nl"
3664 echo 'GREP' >> "conftest.nl"
3665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3667 ac_count=`expr $ac_count + 1`
3668 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3669 # Best one so far, save it but keep looking for a better one
3670 ac_cv_path_GREP="$ac_path_GREP"
3671 ac_path_GREP_max=$ac_count
3673 # 10*(2^10) chars as input seems more than enough
3674 test $ac_count -gt 10 && break
3676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3680 $ac_path_GREP_found && break 3
3690 GREP="$ac_cv_path_GREP"
3691 if test -z "$GREP"; then
3692 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3693 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3694 { (exit 1); exit 1; }; }
3698 ac_cv_path_GREP=$GREP
3703 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3704 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3705 GREP="$ac_cv_path_GREP"
3708 { echo "$as_me:$LINENO: checking for egrep" >&5
3709 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3710 if test "${ac_cv_path_EGREP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3714 then ac_cv_path_EGREP="$GREP -E"
3716 # Extract the first word of "egrep" to use in msg output
3717 if test -z "$EGREP"; then
3718 set dummy egrep; ac_prog_name=$2
3719 if test "${ac_cv_path_EGREP+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_path_EGREP_found=false
3723 # Loop through the user's path and test for each of PROGNAME-LIST
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3728 test -z "$as_dir" && as_dir=.
3729 for ac_prog in egrep; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3732 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3733 # Check for GNU ac_path_EGREP and select it if it is found.
3734 # Check for GNU $ac_path_EGREP
3735 case `"$ac_path_EGREP" --version 2>&1` in
3737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3740 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3743 cat "conftest.in" "conftest.in" >"conftest.tmp"
3744 mv "conftest.tmp" "conftest.in"
3745 cp "conftest.in" "conftest.nl"
3746 echo 'EGREP' >> "conftest.nl"
3747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749 ac_count=`expr $ac_count + 1`
3750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3751 # Best one so far, save it but keep looking for a better one
3752 ac_cv_path_EGREP="$ac_path_EGREP"
3753 ac_path_EGREP_max=$ac_count
3755 # 10*(2^10) chars as input seems more than enough
3756 test $ac_count -gt 10 && break
3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3762 $ac_path_EGREP_found && break 3
3772 EGREP="$ac_cv_path_EGREP"
3773 if test -z "$EGREP"; then
3774 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776 { (exit 1); exit 1; }; }
3780 ac_cv_path_EGREP=$EGREP
3786 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3787 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3788 EGREP="$ac_cv_path_EGREP"
3791 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3792 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3793 if test "${ac_cv_header_stdc+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3815 rm -f conftest.$ac_objext
3816 if { (ac_try="$ac_compile"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3830 { (case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_try") 2>&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_try") 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_cv_header_stdc=yes
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 ac_cv_header_stdc=no
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 if test $ac_cv_header_stdc = yes; then
3860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "memchr" >/dev/null 2>&1; then
3874 ac_cv_header_stdc=no
3880 if test $ac_cv_header_stdc = yes; then
3881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3882 cat >conftest.$ac_ext <<_ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892 $EGREP "free" >/dev/null 2>&1; then
3895 ac_cv_header_stdc=no
3901 if test $ac_cv_header_stdc = yes; then
3902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3903 if test "$cross_compiling" = yes; then
3906 cat >conftest.$ac_ext <<_ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3914 #if ((' ' & 0x0FF) == 0x020)
3915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918 # define ISLOWER(c) \
3919 (('a' <= (c) && (c) <= 'i') \
3920 || ('j' <= (c) && (c) <= 'r') \
3921 || ('s' <= (c) && (c) <= 'z'))
3922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3930 for (i = 0; i < 256; i++)
3931 if (XOR (islower (i), ISLOWER (i))
3932 || toupper (i) != TOUPPER (i))
3937 rm -f conftest$ac_exeext
3938 if { (ac_try="$ac_link"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_link") 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3948 { (case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_try") 2>&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3959 echo "$as_me: program exited with status $ac_status" >&5
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3964 ac_cv_header_stdc=no
3966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3972 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3973 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3974 if test $ac_cv_header_stdc = yes; then
3976 cat >>confdefs.h <<\_ACEOF
3977 #define STDC_HEADERS 1
3982 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3992 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3993 inttypes.h stdint.h unistd.h
3995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 $ac_includes_default
4009 #include <$ac_header>
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 eval "$as_ac_Header=yes"
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 eval "$as_ac_Header=no"
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 ac_res=`eval echo '${'$as_ac_Header'}'`
4056 { echo "$as_me:$LINENO: result: $ac_res" >&5
4057 echo "${ECHO_T}$ac_res" >&6; }
4058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4068 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4069 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4070 if test "${ac_cv_c_bigendian+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 # See if sys/param.h defines the BYTE_ORDER macro.
4074 cat >conftest.$ac_ext <<_ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 #include <sys/types.h>
4081 #include <sys/param.h>
4086 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 # It does; now see whether it defined to BIG_ENDIAN or not.
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <sys/types.h>
4136 #include <sys/param.h>
4141 #if BYTE_ORDER != BIG_ENDIAN
4149 rm -f conftest.$ac_objext
4150 if { (ac_try="$ac_compile"
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_compile") 2>conftest.er1
4158 grep -v '^ *+' conftest.er1 >conftest.err
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 ac_cv_c_bigendian=yes
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 ac_cv_c_bigendian=no
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 # It does not; compile a test program.
4197 if test "$cross_compiling" = yes; then
4198 # try to guess the endianness by grepping values into an object file
4199 ac_cv_c_bigendian=unknown
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4207 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4208 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4209 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4210 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4211 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4215 _ascii (); _ebcdic ();
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_try") 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4255 ac_cv_c_bigendian=yes
4257 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4258 if test "$ac_cv_c_bigendian" = unknown; then
4259 ac_cv_c_bigendian=no
4261 # finding both strings is unlikely to happen, but who knows?
4262 ac_cv_c_bigendian=unknown
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 $ac_includes_default
4285 /* Are we little or big endian? From Harbison&Steele. */
4289 char c[sizeof (long int)];
4292 return u.c[sizeof (long int) - 1] == 1;
4298 rm -f conftest$ac_exeext
4299 if { (ac_try="$ac_link"
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_link") 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4309 { (case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_try") 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_c_bigendian=no
4320 echo "$as_me: program exited with status $ac_status" >&5
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4325 ac_cv_c_bigendian=yes
4327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4336 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4337 case $ac_cv_c_bigendian in
4345 { { echo "$as_me:$LINENO: error: unknown endianness
4346 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4347 echo "$as_me: error: unknown endianness
4348 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4349 { (exit 1); exit 1; }; } ;;
4353 if test "$cross_compiling" = yes; then
4354 LLVM_CROSS_COMPILING=1
4357 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4358 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4359 if test "${ac_cv_build_exeext+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4363 ac_cv_build_exeext=.exe
4365 ac_build_prefix=${build_alias}-
4367 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4368 set dummy ${ac_build_prefix}gcc; ac_word=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 if test -n "$BUILD_CC"; then
4375 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 BUILD_CC=$ac_cv_prog_BUILD_CC
4395 if test -n "$BUILD_CC"; then
4396 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4397 echo "${ECHO_T}$BUILD_CC" >&6; }
4399 { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4404 if test -z "$BUILD_CC"; then
4405 # Extract the first word of "gcc", so it can be a program name with args.
4406 set dummy gcc; ac_word=$2
4407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 if test -n "$BUILD_CC"; then
4413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_BUILD_CC="gcc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 BUILD_CC=$ac_cv_prog_BUILD_CC
4433 if test -n "$BUILD_CC"; then
4434 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435 echo "${ECHO_T}$BUILD_CC" >&6; }
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4442 if test -z "$BUILD_CC"; then
4443 # Extract the first word of "cc", so it can be a program name with args.
4444 set dummy cc; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if test -n "$BUILD_CC"; then
4451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4461 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4462 ac_prog_rejected=yes
4465 ac_cv_prog_BUILD_CC="cc"
4466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 if test $ac_prog_rejected = yes; then
4474 # We found a bogon in the path, so make sure we never use it.
4475 set dummy $ac_cv_prog_BUILD_CC
4477 if test $# != 0; then
4478 # We chose a different compiler from the bogus one.
4479 # However, it has the same basename, so the bogon will be chosen
4480 # first if we set BUILD_CC to just the basename; use the full file name.
4482 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4487 BUILD_CC=$ac_cv_prog_BUILD_CC
4488 if test -n "$BUILD_CC"; then
4489 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4490 echo "${ECHO_T}$BUILD_CC" >&6; }
4492 { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }
4499 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4500 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4501 { (exit 1); exit 1; }; }
4502 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4504 echo 'int main () { return 0; }' > conftest.$ac_ext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4507 (eval $ac_build_link) 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; then
4511 for file in conftest.*; do
4513 *.c | *.o | *.obj) ;;
4514 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4518 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4519 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4520 { (exit 1); exit 1; }; }
4523 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4528 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4529 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4530 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4531 ac_build_exeext=$BUILD_EXEEXT
4534 LLVM_CROSS_COMPILING=0
4538 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4549 # Check whether --enable-optimized was given.
4550 if test "${enable_optimized+set}" = set; then
4551 enableval=$enable_optimized;
4556 if test ${enableval} = "no" ; then
4560 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4564 # Check whether --enable-assertions was given.
4565 if test "${enable_assertions+set}" = set; then
4566 enableval=$enable_assertions;
4571 if test ${enableval} = "yes" ; then
4575 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4579 # Check whether --enable-debug-runtime was given.
4580 if test "${enable_debug_runtime+set}" = set; then
4581 enableval=$enable_debug_runtime;
4586 if test ${enableval} = "no" ; then
4590 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4594 # Check whether --enable-jit was given.
4595 if test "${enable_jit+set}" = set; then
4596 enableval=$enable_jit;
4601 if test ${enableval} = "no"
4606 case "$llvm_cv_target_arch" in
4607 x86) TARGET_HAS_JIT=1
4609 Sparc) TARGET_HAS_JIT=0
4611 PowerPC) TARGET_HAS_JIT=1
4613 x86_64) TARGET_HAS_JIT=1
4615 Alpha) TARGET_HAS_JIT=1
4617 IA64) TARGET_HAS_JIT=0
4619 ARM) TARGET_HAS_JIT=0
4626 # Check whether --enable-doxygen was given.
4627 if test "${enable_doxygen+set}" = set; then
4628 enableval=$enable_doxygen;
4633 case "$enableval" in
4634 yes) ENABLE_DOXYGEN=1
4636 no) ENABLE_DOXYGEN=0
4638 default) ENABLE_DOXYGEN=0
4640 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4641 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4642 { (exit 1); exit 1; }; } ;;
4645 # Check whether --enable-threads was given.
4646 if test "${enable_threads+set}" = set; then
4647 enableval=$enable_threads;
4652 case "$enableval" in
4653 yes) ENABLE_THREADS=1
4655 no) ENABLE_THREADS=0
4657 default) ENABLE_THREADS=1
4659 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4660 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4661 { (exit 1); exit 1; }; } ;;
4664 cat >>confdefs.h <<_ACEOF
4665 #define ENABLE_THREADS $ENABLE_THREADS
4669 # Check whether --enable-pic was given.
4670 if test "${enable_pic+set}" = set; then
4671 enableval=$enable_pic;
4676 case "$enableval" in
4681 default) ENABLE_PIC=0
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4684 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4688 cat >>confdefs.h <<_ACEOF
4689 #define ENABLE_PIC $ENABLE_PIC
4694 # Check whether --enable-targets was given.
4695 if test "${enable_targets+set}" = set; then
4696 enableval=$enable_targets;
4701 case "$enableval" in
4702 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4704 case "$llvm_cv_target_arch" in
4705 x86) TARGETS_TO_BUILD="X86" ;;
4706 x86_64) TARGETS_TO_BUILD="X86" ;;
4707 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4708 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4709 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4710 IA64) TARGETS_TO_BUILD="IA64" ;;
4711 ARM) TARGETS_TO_BUILD="ARM" ;;
4712 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4713 echo "$as_me: error: Can not set target to build" >&2;}
4714 { (exit 1); exit 1; }; } ;;
4717 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4719 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4720 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4722 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4723 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4724 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4725 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4726 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4727 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4733 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4734 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4737 # Check whether --enable-cbe-printf-a was given.
4738 if test "${enable_cbe_printf_a+set}" = set; then
4739 enableval=$enable_cbe_printf_a;
4744 case "$enableval" in
4745 yes) ENABLE_CBE_PRINTF_A=1
4747 no) ENABLE_CBE_PRINTF_A=0
4749 default) ENABLE_CBE_PRINTF_A=1
4751 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4752 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4753 { (exit 1); exit 1; }; } ;;
4756 cat >>confdefs.h <<_ACEOF
4757 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4762 # Check whether --with-llvmgccdir was given.
4763 if test "${with_llvmgccdir+set}" = set; then
4764 withval=$with_llvmgccdir;
4770 default) WITH_LLVMGCCDIR=default ;;
4771 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4772 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4773 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4774 { (exit 1); exit 1; }; } ;;
4778 # Check whether --with-extra-options was given.
4779 if test "${with_extra_options+set}" = set; then
4780 withval=$with_extra_options;
4786 default) EXTRA_OPTIONS= ;;
4787 *) EXTRA_OPTIONS=$withval ;;
4789 EXTRA_OPTIONS=$EXTRA_OPTIONS
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4799 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4800 # On Suns, sometimes $CPP names a directory.
4801 if test -n "$CPP" && test -d "$CPP"; then
4804 if test -z "$CPP"; then
4805 if test "${ac_cv_prog_CPP+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 # Double quotes because CPP needs to be expanded
4809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4812 for ac_c_preproc_warn_flag in '' yes
4814 # Use a header file that comes with gcc, so configuring glibc
4815 # with a fresh cross-compiler works.
4816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4817 # <limits.h> exists even on freestanding compilers.
4818 # On the NeXT, cc -E runs the code through the compiler's parser,
4819 # not just through cpp. "Syntax error" is here to catch this case.
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4827 # include <limits.h>
4829 # include <assert.h>
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_c_preproc_warn_flag
4848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855 if test -z "$ac_cpp_err"; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 # Broken: fails on valid input.
4865 rm -f conftest.err conftest.$ac_ext
4867 # OK, works on sane cases. Now check whether nonexistent headers
4868 # can be detected and how.
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 #include <ac_nonexistent.h>
4877 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4899 if test -z "$ac_cpp_err"; then
4900 # Broken: success on invalid input.
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 # Passes both tests.
4911 rm -f conftest.err conftest.$ac_ext
4914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4915 rm -f conftest.err conftest.$ac_ext
4916 if $ac_preproc_ok; then
4928 { echo "$as_me:$LINENO: result: $CPP" >&5
4929 echo "${ECHO_T}$CPP" >&6; }
4931 for ac_c_preproc_warn_flag in '' yes
4933 # Use a header file that comes with gcc, so configuring glibc
4934 # with a fresh cross-compiler works.
4935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936 # <limits.h> exists even on freestanding compilers.
4937 # On the NeXT, cc -E runs the code through the compiler's parser,
4938 # not just through cpp. "Syntax error" is here to catch this case.
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4946 # include <limits.h>
4948 # include <assert.h>
4952 if { (ac_try="$ac_cpp conftest.$ac_ext"
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_c_preproc_warn_flag
4967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4974 if test -z "$ac_cpp_err"; then
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4980 # Broken: fails on valid input.
4984 rm -f conftest.err conftest.$ac_ext
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 #include <ac_nonexistent.h>
4996 if { (ac_try="$ac_cpp conftest.$ac_ext"
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null; then
5009 if test -s conftest.err; then
5010 ac_cpp_err=$ac_c_preproc_warn_flag
5011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5018 if test -z "$ac_cpp_err"; then
5019 # Broken: success on invalid input.
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 # Passes both tests.
5030 rm -f conftest.err conftest.$ac_ext
5033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034 rm -f conftest.err conftest.$ac_ext
5035 if $ac_preproc_ok; then
5038 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5039 See \`config.log' for more details." >&5
5040 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5041 See \`config.log' for more details." >&2;}
5042 { (exit 1); exit 1; }; }
5046 ac_cpp='$CPP $CPPFLAGS'
5047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056 if test -n "$ac_tool_prefix"; then
5059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_prog_CC+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 if test -n "$CC"; then
5067 ac_cv_prog_CC="$CC" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 if test -n "$CC"; then
5088 { echo "$as_me:$LINENO: result: $CC" >&5
5089 echo "${ECHO_T}$CC" >&6; }
5091 { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5096 test -n "$CC" && break
5099 if test -z "$CC"; then
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 if test -n "$ac_ct_CC"; then
5111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_ac_ct_CC="$ac_prog"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5131 if test -n "$ac_ct_CC"; then
5132 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5133 echo "${ECHO_T}$ac_ct_CC" >&6; }
5135 { echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6; }
5140 test -n "$ac_ct_CC" && break
5143 if test "x$ac_ct_CC" = x; then
5146 case $cross_compiling:$ac_tool_warned in
5148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5149 whose name does not start with the host triplet. If you think this
5150 configuration is useful to you, please write to autoconf@gnu.org." >&5
5151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5152 whose name does not start with the host triplet. If you think this
5153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5154 ac_tool_warned=yes ;;
5161 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5162 See \`config.log' for more details." >&5
5163 echo "$as_me: error: no acceptable C compiler found in \$PATH
5164 See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5167 # Provide some information about the compiler.
5168 echo "$as_me:$LINENO: checking for C compiler version" >&5
5169 ac_compiler=`set X $ac_compile; echo $2`
5170 { (ac_try="$ac_compiler --version >&5"
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compiler --version >&5") 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }
5180 { (ac_try="$ac_compiler -v >&5"
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_compiler -v >&5") 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }
5190 { (ac_try="$ac_compiler -V >&5"
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_compiler -V >&5") 2>&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }
5201 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5202 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5203 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5239 { (case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_try") 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_try") 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5270 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5271 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5272 GCC=`test $ac_compiler_gnu = yes && echo yes`
5273 ac_test_CFLAGS=${CFLAGS+set}
5274 ac_save_CFLAGS=$CFLAGS
5275 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5276 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5277 if test "${ac_cv_prog_cc_g+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_save_c_werror_flag=$ac_c_werror_flag
5281 ac_c_werror_flag=yes
5284 cat >conftest.$ac_ext <<_ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5299 rm -f conftest.$ac_objext
5300 if { (ac_try="$ac_compile"
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5314 { (case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_try") 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_try") 2>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5363 grep -v '^ *+' conftest.er1 >conftest.err
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5369 { (case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_try") 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try='test -s conftest.$ac_objext'
5379 { (case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_try") 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_c_werror_flag=$ac_save_c_werror_flag
5395 cat >conftest.$ac_ext <<_ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5410 rm -f conftest.$ac_objext
5411 if { (ac_try="$ac_compile"
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5419 grep -v '^ *+' conftest.er1 >conftest.err
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5425 { (case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_try") 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_try") 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_c_werror_flag=$ac_save_c_werror_flag
5461 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5462 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5463 if test "$ac_test_CFLAGS" = set; then
5464 CFLAGS=$ac_save_CFLAGS
5465 elif test $ac_cv_prog_cc_g = yes; then
5466 if test "$GCC" = yes; then
5472 if test "$GCC" = yes; then
5478 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5479 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5480 if test "${ac_cv_prog_cc_c89+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 ac_cv_prog_cc_c89=no
5485 cat >conftest.$ac_ext <<_ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5493 #include <sys/types.h>
5494 #include <sys/stat.h>
5495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5496 struct buf { int x; };
5497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5498 static char *e (p, i)
5504 static char *f (char * (*g) (char **, int), char **p, ...)
5509 s = g (p, va_arg (v,int));
5514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5515 function prototypes and stuff, but not '\xHH' hex character constants.
5516 These don't provoke an error unfortunately, instead are silently treated
5517 as 'x'. The following induces an error, until -std is added to get
5518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5519 array size at least. It's necessary to write '\x00'==0 to get something
5520 that's true only with -std. */
5521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5523 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5524 inside strings and character constants. */
5526 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5528 int test (int i, double x);
5529 struct s1 {int (*f) (int a);};
5530 struct s2 {int (*f) (double a);};
5531 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5537 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5542 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5543 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5545 CC="$ac_save_CC $ac_arg"
5546 rm -f conftest.$ac_objext
5547 if { (ac_try="$ac_compile"
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } &&
5560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5561 { (case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_try") 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_try") 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 ac_cv_prog_cc_c89=$ac_arg
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5588 rm -f core conftest.err conftest.$ac_objext
5589 test "x$ac_cv_prog_cc_c89" != "xno" && break
5591 rm -f conftest.$ac_ext
5596 case "x$ac_cv_prog_cc_c89" in
5598 { echo "$as_me:$LINENO: result: none needed" >&5
5599 echo "${ECHO_T}none needed" >&6; } ;;
5601 { echo "$as_me:$LINENO: result: unsupported" >&5
5602 echo "${ECHO_T}unsupported" >&6; } ;;
5604 CC="$CC $ac_cv_prog_cc_c89"
5605 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5606 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617 ac_cpp='$CXXCPP $CPPFLAGS'
5618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5621 if test -z "$CXX"; then
5622 if test -n "$CCC"; then
5625 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_CXX+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test -n "$CXX"; then
5636 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 if test -n "$CXX"; then
5657 { echo "$as_me:$LINENO: result: $CXX" >&5
5658 echo "${ECHO_T}$CXX" >&6; }
5660 { echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6; }
5665 test -n "$CXX" && break
5668 if test -z "$CXX"; then
5672 # Extract the first word of "$ac_prog", so it can be a program name with args.
5673 set dummy $ac_prog; ac_word=$2
5674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5676 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 if test -n "$ac_ct_CXX"; then
5680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_ac_ct_CXX="$ac_prog"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5700 if test -n "$ac_ct_CXX"; then
5701 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5702 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5704 { echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6; }
5709 test -n "$ac_ct_CXX" && break
5712 if test "x$ac_ct_CXX" = x; then
5715 case $cross_compiling:$ac_tool_warned in
5717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5718 whose name does not start with the host triplet. If you think this
5719 configuration is useful to you, please write to autoconf@gnu.org." >&5
5720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5721 whose name does not start with the host triplet. If you think this
5722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5723 ac_tool_warned=yes ;;
5731 # Provide some information about the compiler.
5732 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5733 ac_compiler=`set X $ac_compile; echo $2`
5734 { (ac_try="$ac_compiler --version >&5"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compiler --version >&5") 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }
5744 { (ac_try="$ac_compiler -v >&5"
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compiler -v >&5") 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
5754 { (ac_try="$ac_compiler -V >&5"
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_compiler -V >&5") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }
5765 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5766 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5767 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 cat >conftest.$ac_ext <<_ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest.$ac_objext'
5813 { (case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_try") 2>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5834 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5835 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5836 GXX=`test $ac_compiler_gnu = yes && echo yes`
5837 ac_test_CXXFLAGS=${CXXFLAGS+set}
5838 ac_save_CXXFLAGS=$CXXFLAGS
5839 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5840 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5841 if test "${ac_cv_prog_cxx_g+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5845 ac_cxx_werror_flag=yes
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_try") 2>&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_prog_cxx_g=yes
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5918 rm -f conftest.$ac_objext
5919 if { (ac_try="$ac_compile"
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compile") 2>conftest.er1
5927 grep -v '^ *+' conftest.er1 >conftest.err
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5933 { (case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_try") 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_try") 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_prog_cxx_g=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6025 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6026 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6027 if test "$ac_test_CXXFLAGS" = set; then
6028 CXXFLAGS=$ac_save_CXXFLAGS
6029 elif test $ac_cv_prog_cxx_g = yes; then
6030 if test "$GXX" = yes; then
6036 if test "$GXX" = yes; then
6043 ac_cpp='$CPP $CPPFLAGS'
6044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048 { echo "$as_me:$LINENO: checking " >&5
6049 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6050 if test "${ac_cv_has_flex+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 for ac_prog in flex lex
6055 # Extract the first word of "$ac_prog", so it can be a program name with args.
6056 set dummy $ac_prog; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_prog_LEX+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 if test -n "$LEX"; then
6063 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_LEX="$ac_prog"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 if test -n "$LEX"; then
6084 { echo "$as_me:$LINENO: result: $LEX" >&5
6085 echo "${ECHO_T}$LEX" >&6; }
6087 { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6092 test -n "$LEX" && break
6094 test -n "$LEX" || LEX=":"
6096 if test -z "$LEXLIB"
6098 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6099 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6100 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 ac_check_lib_save_LIBS=$LIBS
6105 cat >conftest.$ac_ext <<_ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6112 /* Override any GCC internal prototype to avoid an error.
6113 Use char because int might match the return type of a GCC
6114 builtin and then its argument prototype would still apply. */
6127 rm -f conftest.$ac_objext conftest$ac_exeext
6128 if { (ac_try="$ac_link"
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_link") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6142 { (case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_try") 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_lib_fl_yywrap=yes
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_cv_lib_fl_yywrap=no
6169 rm -f core conftest.err conftest.$ac_objext \
6170 conftest$ac_exeext conftest.$ac_ext
6171 LIBS=$ac_check_lib_save_LIBS
6173 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6174 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6175 if test $ac_cv_lib_fl_yywrap = yes; then
6178 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6179 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6180 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 ac_check_lib_save_LIBS=$LIBS
6185 cat >conftest.$ac_ext <<_ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6192 /* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (ac_try="$ac_link"
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
6216 grep -v '^ *+' conftest.er1 >conftest.err
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_l_yywrap=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_lib_l_yywrap=no
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 LIBS=$ac_check_lib_save_LIBS
6253 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6254 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6255 if test $ac_cv_lib_l_yywrap = yes; then
6263 if test "x$LEX" != "x:"; then
6264 { echo "$as_me:$LINENO: checking lex output file root" >&5
6265 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_lex_root+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 # The minimal lex program is just a single line: %%. But some broken lexes
6270 # (Solaris, I think it was) want two %% lines, so accommodate them.
6271 cat >conftest.l <<_ACEOF
6275 { (ac_try="$LEX conftest.l"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$LEX conftest.l") 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }
6285 if test -f lex.yy.c; then
6286 ac_cv_prog_lex_root=lex.yy
6287 elif test -f lexyy.c; then
6288 ac_cv_prog_lex_root=lexyy
6290 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6291 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6292 { (exit 1); exit 1; }; }
6295 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6296 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6298 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6300 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6301 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6302 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 # POSIX says lex can declare yytext either as a pointer or an array; the
6306 # default is implementation-dependent. Figure out which it is, since
6307 # not all implementations provide the %pointer and %array declarations.
6308 ac_cv_prog_lex_yytext_pointer=no
6309 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6311 LIBS="$LIBS $LEXLIB"
6312 cat >conftest.$ac_ext <<_ACEOF
6313 `cat $LEX_OUTPUT_ROOT.c`
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (ac_try="$ac_link"
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_link") 2>conftest.er1
6324 grep -v '^ *+' conftest.er1 >conftest.err
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest$ac_exeext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_prog_lex_yytext_pointer=yes
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6357 rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6360 rm -f "${LEX_OUTPUT_ROOT}.c"
6363 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6364 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6365 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6367 cat >>confdefs.h <<\_ACEOF
6368 #define YYTEXT_POINTER 1
6376 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6377 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6378 if test "$LEX" != "flex"; then
6379 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6380 echo "$as_me: error: flex not found but required" >&2;}
6381 { (exit 1); exit 1; }; }
6387 { echo "$as_me:$LINENO: checking " >&5
6388 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6389 if test "${llvm_cv_has_bison+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 for ac_prog in 'bison -y' byacc
6394 # Extract the first word of "$ac_prog", so it can be a program name with args.
6395 set dummy $ac_prog; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_YACC+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 if test -n "$YACC"; then
6402 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_YACC="$ac_prog"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 YACC=$ac_cv_prog_YACC
6422 if test -n "$YACC"; then
6423 { echo "$as_me:$LINENO: result: $YACC" >&5
6424 echo "${ECHO_T}$YACC" >&6; }
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6431 test -n "$YACC" && break
6433 test -n "$YACC" || YACC="yacc"
6436 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6437 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6438 if test "$YACC" != "bison -y"; then
6440 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6441 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6447 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6448 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6449 if test "${lt_cv_path_NM+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test -n "$NM"; then
6453 # Let the user override the test.
6456 lt_nm_to_check="${ac_tool_prefix}nm"
6457 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6458 lt_nm_to_check="$lt_nm_to_check nm"
6460 for lt_tmp_nm in $lt_nm_to_check; do
6461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6462 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6464 test -z "$ac_dir" && ac_dir=.
6465 tmp_nm="$ac_dir/$lt_tmp_nm"
6466 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6467 # Check to see if the nm accepts a BSD-compat flag.
6468 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6469 # nm: unknown option "B" ignored
6470 # Tru64's nm complains that /dev/null is an invalid object file
6471 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6472 */dev/null* | *'Invalid file or object type'*)
6473 lt_cv_path_NM="$tmp_nm -B"
6477 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6479 lt_cv_path_NM="$tmp_nm -p"
6483 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6484 continue # so that we can try to find one that supports BSD flags
6493 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6496 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6497 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6502 { echo "$as_me:$LINENO: checking for GNU make" >&5
6503 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6504 if test "${llvm_cv_gnu_make_command+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 llvm_cv_gnu_make_command=''
6508 for a in "$MAKE" make gmake gnumake ; do
6509 if test -z "$a" ; then continue ; fi ;
6510 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6512 llvm_cv_gnu_make_command=$a ;
6517 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6518 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6519 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6523 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6524 echo "${ECHO_T}\"Not found\"" >&6; };
6528 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6529 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6531 if test "$LN_S" = "ln -s"; then
6532 { echo "$as_me:$LINENO: result: yes" >&5
6533 echo "${ECHO_T}yes" >&6; }
6535 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6536 echo "${ECHO_T}no, using $LN_S" >&6; }
6539 # Extract the first word of "cmp", so it can be a program name with args.
6540 set dummy cmp; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_CMP+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6571 if test -n "$CMP"; then
6572 { echo "$as_me:$LINENO: result: $CMP" >&5
6573 echo "${ECHO_T}$CMP" >&6; }
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6580 # Extract the first word of "cp", so it can be a program name with args.
6581 set dummy cp; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_CP+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6612 if test -n "$CP"; then
6613 { echo "$as_me:$LINENO: result: $CP" >&5
6614 echo "${ECHO_T}$CP" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6621 # Extract the first word of "date", so it can be a program name with args.
6622 set dummy date; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_DATE+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6652 DATE=$ac_cv_path_DATE
6653 if test -n "$DATE"; then
6654 { echo "$as_me:$LINENO: result: $DATE" >&5
6655 echo "${ECHO_T}$DATE" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6662 # Extract the first word of "find", so it can be a program name with args.
6663 set dummy find; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_path_FIND+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6693 FIND=$ac_cv_path_FIND
6694 if test -n "$FIND"; then
6695 { echo "$as_me:$LINENO: result: $FIND" >&5
6696 echo "${ECHO_T}$FIND" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6703 # Extract the first word of "grep", so it can be a program name with args.
6704 set dummy grep; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_path_GREP+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6734 GREP=$ac_cv_path_GREP
6735 if test -n "$GREP"; then
6736 { echo "$as_me:$LINENO: result: $GREP" >&5
6737 echo "${ECHO_T}$GREP" >&6; }
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6744 # Extract the first word of "mkdir", so it can be a program name with args.
6745 set dummy mkdir; ac_word=$2
6746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748 if test "${ac_cv_path_MKDIR+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6775 MKDIR=$ac_cv_path_MKDIR
6776 if test -n "$MKDIR"; then
6777 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6778 echo "${ECHO_T}$MKDIR" >&6; }
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6785 # Extract the first word of "mv", so it can be a program name with args.
6786 set dummy mv; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_path_MV+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6817 if test -n "$MV"; then
6818 { echo "$as_me:$LINENO: result: $MV" >&5
6819 echo "${ECHO_T}$MV" >&6; }
6821 { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_prog_RANLIB+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 if test -n "$RANLIB"; then
6835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 RANLIB=$ac_cv_prog_RANLIB
6855 if test -n "$RANLIB"; then
6856 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6857 echo "${ECHO_T}$RANLIB" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6865 if test -z "$ac_cv_prog_RANLIB"; then
6866 ac_ct_RANLIB=$RANLIB
6867 # Extract the first word of "ranlib", so it can be a program name with args.
6868 set dummy ranlib; ac_word=$2
6869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 if test -n "$ac_ct_RANLIB"; then
6875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_ac_ct_RANLIB="ranlib"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6895 if test -n "$ac_ct_RANLIB"; then
6896 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6897 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6903 if test "x$ac_ct_RANLIB" = x; then
6906 case $cross_compiling:$ac_tool_warned in
6908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6909 whose name does not start with the host triplet. If you think this
6910 configuration is useful to you, please write to autoconf@gnu.org." >&5
6911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6912 whose name does not start with the host triplet. If you think this
6913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6914 ac_tool_warned=yes ;;
6916 RANLIB=$ac_ct_RANLIB
6919 RANLIB="$ac_cv_prog_RANLIB"
6922 # Extract the first word of "rm", so it can be a program name with args.
6923 set dummy rm; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_RM+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6954 if test -n "$RM"; then
6955 { echo "$as_me:$LINENO: result: $RM" >&5
6956 echo "${ECHO_T}$RM" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 # Extract the first word of "sed", so it can be a program name with args.
6964 set dummy sed; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_SED+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6995 if test -n "$SED"; then
6996 { echo "$as_me:$LINENO: result: $SED" >&5
6997 echo "${ECHO_T}$SED" >&6; }
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7004 # Extract the first word of "tar", so it can be a program name with args.
7005 set dummy tar; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_TAR+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7036 if test -n "$TAR"; then
7037 { echo "$as_me:$LINENO: result: $TAR" >&5
7038 echo "${ECHO_T}$TAR" >&6; }
7040 { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7045 # Extract the first word of "pwd", so it can be a program name with args.
7046 set dummy pwd; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_path_BINPWD+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7076 BINPWD=$ac_cv_path_BINPWD
7077 if test -n "$BINPWD"; then
7078 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7079 echo "${ECHO_T}$BINPWD" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7087 # Extract the first word of "Graphviz", so it can be a program name with args.
7088 set dummy Graphviz; ac_word=$2
7089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7091 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7118 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7119 if test -n "$GRAPHVIZ"; then
7120 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7121 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7123 { echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6; }
7128 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7130 cat >>confdefs.h <<\_ACEOF
7131 #define HAVE_GRAPHVIZ 1
7134 if test "$llvm_cv_os_type" = "MingW" ; then
7135 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7138 cat >>confdefs.h <<_ACEOF
7139 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7143 # Extract the first word of "dot", so it can be a program name with args.
7144 set dummy dot; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_DOT+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7175 if test -n "$DOT"; then
7176 { echo "$as_me:$LINENO: result: $DOT" >&5
7177 echo "${ECHO_T}$DOT" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7184 if test "$DOT" != "echo dot" ; then
7186 cat >>confdefs.h <<\_ACEOF
7190 if test "$llvm_cv_os_type" = "MingW" ; then
7191 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7194 cat >>confdefs.h <<_ACEOF
7195 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7199 for ac_prog in gv gsview32
7201 # Extract the first word of "$ac_prog", so it can be a program name with args.
7202 set dummy $ac_prog; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_GV+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 if test -n "$GV"; then
7233 { echo "$as_me:$LINENO: result: $GV" >&5
7234 echo "${ECHO_T}$GV" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 test -n "$GV" && break
7243 test -n "$GV" || GV="echo gv"
7245 if test "$GV" != "echo gv" ; then
7247 cat >>confdefs.h <<\_ACEOF
7251 if test "$llvm_cv_os_type" = "MingW" ; then
7252 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7255 cat >>confdefs.h <<_ACEOF
7256 #define LLVM_PATH_GV "$GV${EXEEXT}"
7260 # Extract the first word of "dotty", so it can be a program name with args.
7261 set dummy dotty; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_DOTTY+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7291 DOTTY=$ac_cv_path_DOTTY
7292 if test -n "$DOTTY"; then
7293 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7294 echo "${ECHO_T}$DOTTY" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 if test "$DOTTY" != "echo dotty" ; then
7303 cat >>confdefs.h <<\_ACEOF
7304 #define HAVE_DOTTY 1
7307 if test "$llvm_cv_os_type" = "MingW" ; then
7308 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7311 cat >>confdefs.h <<_ACEOF
7312 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7318 # Extract the first word of "perl", so it can be a program name with args.
7319 set dummy perl; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_PERL+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7349 PERL=$ac_cv_path_PERL
7350 if test -n "$PERL"; then
7351 { echo "$as_me:$LINENO: result: $PERL" >&5
7352 echo "${ECHO_T}$PERL" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7359 if test "$PERL" != "none"; then
7360 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7361 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7362 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7363 { echo "$as_me:$LINENO: result: yes" >&5
7364 echo "${ECHO_T}yes" >&6; }
7367 { echo "$as_me:$LINENO: result: not found" >&5
7368 echo "${ECHO_T}not found" >&6; }
7373 if test x"$PERL" = xnone; then
7381 # Find a good install program. We prefer a C program (faster),
7382 # so one script is as good as another. But avoid the broken or
7383 # incompatible versions:
7384 # SysV /etc/install, /usr/sbin/install
7385 # SunOS /usr/etc/install
7386 # IRIX /sbin/install
7388 # AmigaOS /C/install, which installs bootblocks on floppy discs
7389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7392 # OS/2's system install, which has a completely different semantic
7393 # ./install, which can be erroneously created by make from ./install.sh.
7394 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7395 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7396 if test -z "$INSTALL"; then
7397 if test "${ac_cv_path_install+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 # Account for people who put trailing slashes in PATH elements.
7407 ./ | .// | /cC/* | \
7408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7409 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7412 # OSF1 and SCO ODT 3.0 have their own names for install.
7413 # Don't use installbsd from OSF since it installs stuff as root
7415 for ac_prog in ginstall scoinst install; do
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7418 if test $ac_prog = install &&
7419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7420 # AIX install. It has an incompatible calling convention.
7422 elif test $ac_prog = install &&
7423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7424 # program-specific install script used by HP pwplus--don't use.
7427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7440 if test "${ac_cv_path_install+set}" = set; then
7441 INSTALL=$ac_cv_path_install
7443 # As a last resort, use the slow shell script. Don't cache a
7444 # value for INSTALL within a source directory, because that will
7445 # break other packages using the cache if that directory is
7446 # removed, or if the value is a relative name.
7447 INSTALL=$ac_install_sh
7450 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7451 echo "${ECHO_T}$INSTALL" >&6; }
7453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7454 # It thinks the first close brace ends the variable substitution.
7455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7462 # Extract the first word of "bzip2", so it can be a program name with args.
7463 set dummy bzip2; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_BZIP2+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7493 BZIP2=$ac_cv_path_BZIP2
7494 if test -n "$BZIP2"; then
7495 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7496 echo "${ECHO_T}$BZIP2" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 # Extract the first word of "doxygen", so it can be a program name with args.
7504 set dummy doxygen; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7534 DOXYGEN=$ac_cv_path_DOXYGEN
7535 if test -n "$DOXYGEN"; then
7536 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7537 echo "${ECHO_T}$DOXYGEN" >&6; }
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7544 # Extract the first word of "groff", so it can be a program name with args.
7545 set dummy groff; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_GROFF+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7575 GROFF=$ac_cv_path_GROFF
7576 if test -n "$GROFF"; then
7577 { echo "$as_me:$LINENO: result: $GROFF" >&5
7578 echo "${ECHO_T}$GROFF" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 # Extract the first word of "gzip", so it can be a program name with args.
7586 set dummy gzip; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_GZIP+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7616 GZIP=$ac_cv_path_GZIP
7617 if test -n "$GZIP"; then
7618 { echo "$as_me:$LINENO: result: $GZIP" >&5
7619 echo "${ECHO_T}$GZIP" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 # Extract the first word of "pod2html", so it can be a program name with args.
7627 set dummy pod2html; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_POD2HTML+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7657 POD2HTML=$ac_cv_path_POD2HTML
7658 if test -n "$POD2HTML"; then
7659 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7660 echo "${ECHO_T}$POD2HTML" >&6; }
7662 { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7667 # Extract the first word of "pod2man", so it can be a program name with args.
7668 set dummy pod2man; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_POD2MAN+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7698 POD2MAN=$ac_cv_path_POD2MAN
7699 if test -n "$POD2MAN"; then
7700 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7701 echo "${ECHO_T}$POD2MAN" >&6; }
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7708 # Extract the first word of "runtest", so it can be a program name with args.
7709 set dummy runtest; ac_word=$2
7710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7712 if test "${ac_cv_path_RUNTEST+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7739 RUNTEST=$ac_cv_path_RUNTEST
7740 if test -n "$RUNTEST"; then
7741 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7742 echo "${ECHO_T}$RUNTEST" >&6; }
7744 { echo "$as_me:$LINENO: result: no" >&5
7745 echo "${ECHO_T}no" >&6; }
7751 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7752 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7754 # Check whether --with-tclinclude was given.
7755 if test "${with_tclinclude+set}" = set; then
7756 withval=$with_tclinclude; with_tclinclude=${withval}
7761 if test "${ac_cv_path_tclsh+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 if test x"${with_tclinclude}" != x ; then
7766 if test -f ${with_tclinclude}/tclsh ; then
7767 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7768 elif test -f ${with_tclinclude}/src/tclsh ; then
7769 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7771 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7772 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7773 { (exit 1); exit 1; }; }
7777 if test x"${ac_cv_path_tclsh}" = x ; then
7778 { echo "$as_me:$LINENO: result: none" >&5
7779 echo "${ECHO_T}none" >&6; }
7780 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
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_TCLSH+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 TCLSH=$ac_cv_path_TCLSH
7813 if test -n "$TCLSH"; then
7814 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7815 echo "${ECHO_T}$TCLSH" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 test -n "$TCLSH" && break
7825 if test x"${TCLSH}" = x ; then
7826 ac_cv_path_tclsh='';
7828 ac_cv_path_tclsh="${TCLSH}";
7831 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7832 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7833 TCLSH="${ac_cv_path_tclsh}"
7839 # Extract the first word of "zip", so it can be a program name with args.
7840 set dummy zip; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_path_ZIP+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7871 if test -n "$ZIP"; then
7872 { echo "$as_me:$LINENO: result: $ZIP" >&5
7873 echo "${ECHO_T}$ZIP" >&6; }
7875 { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7881 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7882 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7883 if test "${llvm_cv_link_use_r+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893 CFLAGS="$CFLAGS -Wl,-R."
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7904 int main() { return 0; }
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_link") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7924 { (case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_try") 2>&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_try") 2>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7943 llvm_cv_link_use_r=yes
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 llvm_cv_link_use_r=no
7951 rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7955 ac_cpp='$CPP $CPPFLAGS'
7956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7963 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7964 if test "$llvm_cv_link_use_r" = yes ; then
7966 cat >>confdefs.h <<\_ACEOF
7967 #define HAVE_LINK_R 1
7975 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7976 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7977 if test "${ac_cv_c_const+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7990 /* FIXME: Include the comments suggested by Paul. */
7992 /* Ultrix mips cc rejects this. */
7993 typedef int charset[2];
7995 /* SunOS 4.1.1 cc rejects this. */
7996 char const *const *ccp;
7998 /* NEC SVR4.0.2 mips cc rejects this. */
7999 struct point {int x, y;};
8000 static struct point const zero = {0,0};
8001 /* AIX XL C 1.02.0.0 rejects this.
8002 It does not let you subtract one const X* pointer from another in
8003 an arm of an if-expression whose if-part is not a constant
8005 const char *g = "string";
8006 ccp = &g + (g ? g-g : 0);
8007 /* HPUX 7.0 cc rejects these. */
8010 ccp = (char const *const *) p;
8011 { /* SCO 3.2v4 cc rejects this. */
8013 char const *s = 0 ? (char *) 0 : (char const *) 0;
8018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8020 const int *foo = &x[0];
8023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8024 typedef const int *iptr;
8028 { /* AIX XL C 1.02.0.0 rejects this saying
8029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8030 struct s { int j; const int *ap[3]; };
8031 struct s *b; b->j = 5;
8033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8037 return !x[0] && !zero.x;
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest.$ac_objext'
8069 { (case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_try") 2>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8089 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8090 if test $ac_cv_c_const = no; then
8092 cat >>confdefs.h <<\_ACEOF
8104 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8105 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8106 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8107 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 #include <sys/types.h>
8129 rm -f conftest.$ac_objext
8130 if { (ac_try="$ac_compile"
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_compile") 2>conftest.er1
8138 grep -v '^ *+' conftest.er1 >conftest.err
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
8143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8144 { (case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_try") 2>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest.$ac_objext'
8154 { (case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_try") 2>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 eval "$as_ac_Header=yes"
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8168 eval "$as_ac_Header=no"
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 ac_res=`eval echo '${'$as_ac_Header'}'`
8174 { echo "$as_me:$LINENO: result: $ac_res" >&5
8175 echo "${ECHO_T}$ac_res" >&6; }
8176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8177 cat >>confdefs.h <<_ACEOF
8178 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8181 ac_header_dirent=$ac_hdr; break
8185 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8186 if test $ac_header_dirent = dirent.h; then
8187 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8188 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8189 if test "${ac_cv_search_opendir+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 ac_func_search_save_LIBS=$LIBS
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8215 for ac_lib in '' dir; do
8216 if test -z "$ac_lib"; then
8217 ac_res="none required"
8220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8237 { (case "(($ac_try" in
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_try") 2>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_try") 2>&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_search_opendir=$ac_res
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8264 rm -f core conftest.err conftest.$ac_objext \
8266 if test "${ac_cv_search_opendir+set}" = set; then
8270 if test "${ac_cv_search_opendir+set}" = set; then
8273 ac_cv_search_opendir=no
8276 LIBS=$ac_func_search_save_LIBS
8278 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8279 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8280 ac_res=$ac_cv_search_opendir
8281 if test "$ac_res" != no; then
8282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8287 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8289 if test "${ac_cv_search_opendir+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 ac_func_search_save_LIBS=$LIBS
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8300 /* Override any GCC internal prototype to avoid an error.
8301 Use char because int might match the return type of a GCC
8302 builtin and then its argument prototype would still apply. */
8315 for ac_lib in '' x; do
8316 if test -z "$ac_lib"; then
8317 ac_res="none required"
8320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (ac_try="$ac_link"
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_link") 2>conftest.er1
8331 grep -v '^ *+' conftest.er1 >conftest.err
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8337 { (case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_try") 2>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_try") 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_search_opendir=$ac_res
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8364 rm -f core conftest.err conftest.$ac_objext \
8366 if test "${ac_cv_search_opendir+set}" = set; then
8370 if test "${ac_cv_search_opendir+set}" = set; then
8373 ac_cv_search_opendir=no
8376 LIBS=$ac_func_search_save_LIBS
8378 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8379 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8380 ac_res=$ac_cv_search_opendir
8381 if test "$ac_res" != no; then
8382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8389 for ac_header in dlfcn.h
8391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 ac_res=`eval echo '${'$as_ac_Header'}'`
8399 { echo "$as_me:$LINENO: result: $ac_res" >&5
8400 echo "${ECHO_T}$ac_res" >&6; }
8402 # Is the header compilable?
8403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #include <$ac_header>
8414 rm -f conftest.$ac_objext
8415 if { (ac_try="$ac_compile"
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest.$ac_objext'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_header_compiler=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_header_compiler=no
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458 echo "${ECHO_T}$ac_header_compiler" >&6; }
8460 # Is the header present?
8461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 #include <$ac_header>
8471 if { (ac_try="$ac_cpp conftest.$ac_ext"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } >/dev/null; then
8484 if test -s conftest.err; then
8485 ac_cpp_err=$ac_c_preproc_warn_flag
8486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8493 if test -z "$ac_cpp_err"; then
8494 ac_header_preproc=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_header_preproc=no
8502 rm -f conftest.err conftest.$ac_ext
8503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8504 echo "${ECHO_T}$ac_header_preproc" >&6; }
8506 # So? What about this header?
8507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8513 ac_header_preproc=yes
8516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8529 ## ----------------------------------- ##
8530 ## Report this to llvmbugs@cs.uiuc.edu ##
8531 ## ----------------------------------- ##
8533 ) | sed "s/^/$as_me: WARNING: /" >&2
8536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 eval "$as_ac_Header=\$ac_header_preproc"
8543 ac_res=`eval echo '${'$as_ac_Header'}'`
8544 { echo "$as_me:$LINENO: result: $ac_res" >&5
8545 echo "${ECHO_T}$ac_res" >&6; }
8548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549 cat >>confdefs.h <<_ACEOF
8550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8557 # Check whether --enable-ltdl-install was given.
8558 if test "${enable_ltdl_install+set}" = set; then
8559 enableval=$enable_ltdl_install;
8565 if test x"${enable_ltdl_install-no}" != xno; then
8567 INSTALL_LTDL_FALSE='#'
8569 INSTALL_LTDL_TRUE='#'
8575 if test x"${enable_ltdl_convenience-no}" != xno; then
8576 CONVENIENCE_LTDL_TRUE=
8577 CONVENIENCE_LTDL_FALSE='#'
8579 CONVENIENCE_LTDL_TRUE='#'
8580 CONVENIENCE_LTDL_FALSE=
8584 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8585 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8587 libname_spec='lib$name'
8595 shlibpath_overrides_runpath=unknown
8597 dynamic_linker="$host_os ld.so"
8598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8599 if test "$GCC" = yes; then
8600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8601 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8602 # if the path contains ";" then we assume it to be the separator
8603 # otherwise default to the standard path separator (i.e. ":") - it is
8604 # assumed that no part of a normal pathname contains ";" but that should
8605 # okay in the real world where ";" in dirpaths is itself problematic.
8606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8613 need_lib_prefix=unknown
8614 hardcode_into_libs=no
8616 # when you set need_version to no, make sure it does not cause -set_version
8617 # flags to be left without arguments
8618 need_version=unknown
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8624 shlibpath_var=LIBPATH
8626 # AIX 3 has no versioning support, so we append a major version to the name.
8627 soname_spec='${libname}${release}${shared_ext}$major'
8634 hardcode_into_libs=yes
8635 if test "$host_cpu" = ia64; then
8636 # AIX 5 supports IA64
8637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8638 shlibpath_var=LD_LIBRARY_PATH
8640 # With GCC up to 2.95.x, collect2 would create an import file
8641 # for dependence libraries. The import file would start with
8642 # the line `#! .'. This would cause the generated library to
8643 # depend on `.', always an invalid library. This was fixed in
8644 # development snapshots of GCC prior to 3.0.
8646 aix4 | aix4.[01] | aix4.[01].*)
8647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8649 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8657 # soname into executable. Probably we can add versioning support to
8658 # collect2, so additional links can be useful in future.
8659 if test "$aix_use_runtimelinking" = yes; then
8660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8661 # instead of lib<name>.a to let people know that these are not
8662 # typical AIX shared libraries.
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8665 # We preserve .a as extension for shared libraries through AIX4.2
8666 # and later when we are not doing run time linking.
8667 library_names_spec='${libname}${release}.a $libname.a'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8670 shlibpath_var=LIBPATH
8675 library_names_spec='$libname.ixlibrary $libname.a'
8676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8677 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'
8681 library_names_spec='${libname}${shared_ext}'
8682 dynamic_linker="$host_os ld.so"
8683 shlibpath_var=LIBRARY_PATH
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8695 # the default ld.so.conf also contains /usr/contrib/lib and
8696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8697 # libtool to hard-code these into programs
8700 cygwin* | mingw* | pw32*)
8701 version_type=windows
8706 case $GCC,$host_os in
8707 yes,cygwin* | yes,mingw* | yes,pw32*)
8708 library_names_spec='$libname.dll.a'
8709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8710 postinstall_cmds='base_file=`basename \${file}`~
8711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8712 dldir=$destdir/`dirname \$dlpath`~
8713 test -d \$dldir || mkdir -p \$dldir~
8714 $install_prog $dir/$dlname \$dldir/$dlname~
8715 chmod a+x \$dldir/$dlname'
8716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8717 dlpath=$dir/\$dldll~
8719 shlibpath_overrides_runpath=yes
8723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8728 # MinGW DLLs use traditional 'lib' prefix
8729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8732 # It is most probably a Windows format PATH printed by
8733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8734 # path with ; separators, and with drive letters. We can handle the
8735 # drive letters (cygwin fileutils understands them), so leave them,
8736 # especially as we might pass files found there to a mingw objdump,
8737 # which wouldn't understand a cygwinified path. Ahh.
8738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8744 # pw32 DLLs use 'pw' prefix rather than 'lib'
8745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8754 dynamic_linker='Win32 ld.exe'
8755 # FIXME: first we should search . and the directory the executable is in
8759 darwin* | rhapsody*)
8760 dynamic_linker="$host_os dyld"
8764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8765 soname_spec='${libname}${release}${major}$shared_ext'
8766 shlibpath_overrides_runpath=yes
8767 shlibpath_var=DYLD_LIBRARY_PATH
8768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8769 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8770 if test "$GCC" = yes; then
8771 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"`
8773 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LD_LIBRARY_PATH
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8796 soname_spec='${libname}${release}${shared_ext}$major'
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=no
8799 hardcode_into_libs=yes
8800 dynamic_linker='GNU ld.so'
8803 freebsd* | dragonfly*)
8804 # DragonFly does not have aout. When/if they implement a new
8805 # versioning mechanism, adjust this.
8806 if test -x /usr/bin/objformat; then
8807 objformat=`/usr/bin/objformat`
8810 freebsd[123]*) objformat=aout ;;
8814 version_type=freebsd-$objformat
8815 case $version_type in
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8826 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=yes
8831 freebsd3.[01]* | freebsdelf3.[01]*)
8832 shlibpath_overrides_runpath=yes
8833 hardcode_into_libs=yes
8835 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8836 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8837 shlibpath_overrides_runpath=no
8838 hardcode_into_libs=yes
8840 freebsd*) # from 4.6 on
8841 shlibpath_overrides_runpath=yes
8842 hardcode_into_libs=yes
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 hardcode_into_libs=yes
8857 hpux9* | hpux10* | hpux11*)
8858 # Give a soname corresponding to the major version so that dld.sl refuses to
8859 # link against other versions.
8866 hardcode_into_libs=yes
8867 dynamic_linker="$host_os dld.so"
8868 shlibpath_var=LD_LIBRARY_PATH
8869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 if test "X$HPUX_IA64_MODE" = X32; then
8873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8881 hardcode_into_libs=yes
8882 dynamic_linker="$host_os dld.sl"
8883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8892 dynamic_linker="$host_os dld.sl"
8893 shlibpath_var=SHLIB_PATH
8894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8899 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8900 postinstall_cmds='chmod 555 $lib'
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8910 shlibpath_var=LD_LIBRARY_PATH
8911 shlibpath_overrides_runpath=no
8912 hardcode_into_libs=yes
8915 irix5* | irix6* | nonstopux*)
8917 nonstopux*) version_type=nonstopux ;;
8919 if test "$lt_cv_prog_gnu_ld" = yes; then
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8930 irix5* | nonstopux*)
8934 case $LD in # libtool.m4 will add one of these switches to LD
8935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8936 libsuff= shlibsuff= libmagic=32-bit;;
8937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8938 libsuff=32 shlibsuff=N32 libmagic=N32;;
8939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8940 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8941 *) libsuff= shlibsuff= libmagic=never-match;;
8945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8946 shlibpath_overrides_runpath=no
8947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8949 hardcode_into_libs=yes
8952 # No shared lib support for Linux oldld, aout, or coff.
8953 linux*oldld* | linux*aout* | linux*coff*)
8957 # This must be Linux ELF.
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=no
8967 # This implies no fast_install, which is unacceptable.
8968 # Some rework will be needed to allow for fast_install
8969 # before this can be enabled.
8970 hardcode_into_libs=yes
8972 # Append ld.so.conf contents to the search path
8973 if test -f /etc/ld.so.conf; then
8974 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' ' '`
8975 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8978 # We used to test for /lib/ld.so.1 and disable shared libraries on
8979 # powerpc, because MkLinux only supported shared libraries with the
8980 # GNU dynamic linker. Since this was broken with cross compilers,
8981 # most powerpc-linux boxes support dynamic linking these days and
8982 # people can always --disable-shared, the test was removed, and we
8983 # assume the GNU/Linux dynamic linker is in use.
8984 dynamic_linker='GNU/Linux ld.so'
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=no
8995 hardcode_into_libs=yes
8996 dynamic_linker='GNU ld.so'
9003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9006 dynamic_linker='NetBSD (a.out) ld.so'
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 dynamic_linker='NetBSD ld.elf_so'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9014 hardcode_into_libs=yes
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=yes
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9036 sys_lib_dlsearch_path_spec="/usr/lib"
9038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9041 *) need_version=no ;;
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9048 openbsd2.[89] | openbsd2.[89].*)
9049 shlibpath_overrides_runpath=no
9052 shlibpath_overrides_runpath=yes
9056 shlibpath_overrides_runpath=yes
9061 libname_spec='$name'
9064 library_names_spec='$libname${shared_ext} $libname.a'
9065 dynamic_linker='OS/2 ld.exe'
9066 shlibpath_var=LIBPATH
9069 osf3* | osf4* | osf5*)
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9089 # ldd complains unless libraries are executable
9090 postinstall_cmds='chmod +x $lib'
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=yes
9099 if test "$with_gnu_ld" = yes; then
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 case $host_vendor in
9112 shlibpath_overrides_runpath=no
9114 export_dynamic_flag_spec='${wl}-Blargedynsym'
9115 runpath_var=LD_RUN_PATH
9123 shlibpath_overrides_runpath=no
9124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9130 if test -d /usr/nec ;then
9132 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9133 soname_spec='$libname${shared_ext}.$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9139 version_type=freebsd-elf
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 hardcode_into_libs=yes
9146 if test "$with_gnu_ld" = yes; then
9147 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9148 shlibpath_overrides_runpath=no
9150 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9151 shlibpath_overrides_runpath=yes
9154 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9158 sys_lib_dlsearch_path_spec='/usr/lib'
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9172 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9173 echo "${ECHO_T}$dynamic_linker" >&6; }
9174 test "$dynamic_linker" = no && can_build_shared=no
9176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9177 if test "$GCC" = yes; then
9178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9182 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9183 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9184 if test "${libltdl_cv_shlibext+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 eval libltdl_cv_shlibext=$shrext_cmds
9192 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9193 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9194 if test -n "$libltdl_cv_shlibext"; then
9196 cat >>confdefs.h <<_ACEOF
9197 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9203 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9204 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9205 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 libltdl_cv_shlibpath_var="$shlibpath_var"
9210 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9211 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9212 if test -n "$libltdl_cv_shlibpath_var"; then
9214 cat >>confdefs.h <<_ACEOF
9215 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9221 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9222 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9223 if test "${libltdl_cv_sys_search_path+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9228 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9229 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9230 if test -n "$libltdl_cv_sys_search_path"; then
9232 for dir in $libltdl_cv_sys_search_path; do
9233 if test -z "$sys_search_path"; then
9234 sys_search_path="$dir"
9236 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9240 cat >>confdefs.h <<_ACEOF
9241 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9246 { echo "$as_me:$LINENO: checking for objdir" >&5
9247 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9248 if test "${libltdl_cv_objdir+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 libltdl_cv_objdir="$objdir"
9252 if test -n "$objdir"; then
9255 rm -f .libs 2>/dev/null
9256 mkdir .libs 2>/dev/null
9257 if test -d .libs; then
9258 libltdl_cv_objdir=.libs
9260 # MS-DOS does not allow filenames that begin with a dot.
9261 libltdl_cv_objdir=_libs
9263 rmdir .libs 2>/dev/null
9267 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9268 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9270 cat >>confdefs.h <<_ACEOF
9271 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9279 # Check for command to grab the raw symbol name followed by C symbol from nm.
9280 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9281 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9282 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 # These are sane defaults that work on at least a few old systems.
9287 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9289 # Character class describing NM global symbol codes.
9290 symcode='[BCDEGRST]'
9292 # Regexp to match symbols that can be accessed directly from C.
9293 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9295 # Transform an extracted symbol line into a proper C declaration
9296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9298 # Transform an extracted symbol line into symbol name and symbol address
9299 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'"
9301 # Define system-specific variables.
9306 cygwin* | mingw* | pw32*)
9307 symcode='[ABCDGISTW]'
9309 hpux*) # Its linker distinguishes data from code symbols
9310 if test "$host_cpu" = ia64; then
9311 symcode='[ABCDEGRST]'
9313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9314 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'"
9317 if test "$host_cpu" = ia64; then
9318 symcode='[ABCDGIRSTW]'
9319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9320 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'"
9324 symcode='[BCDEGRST]'
9327 symcode='[BCDEGQRST]'
9338 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9346 # Handle CRLF in mingw tool chain
9350 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9354 # If we're using GNU nm, then use its standard symbol codes.
9355 case `$NM -V 2>&1` in
9356 *GNU* | *'with BFD'*)
9357 symcode='[ABCDGIRSTW]' ;;
9360 # Try without a prefix undercore, then with it.
9361 for ac_symprfx in "" "_"; do
9363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9364 symxfrm="\\1 $ac_symprfx\\2 \\2"
9366 # Write the raw and C identifiers.
9367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9369 # Check to see that the pipe works correctly.
9373 cat > conftest.$ac_ext <<EOF
9378 void nm_test_func(){}
9382 int main(){nm_test_var='a';nm_test_func();return(0);}
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; then
9390 # Now try to grab the symbols.
9392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && test -s "$nlist"; then
9397 # Try sorting and uniquifying the output.
9398 if sort "$nlist" | uniq > "$nlist"T; then
9399 mv -f "$nlist"T "$nlist"
9404 # Make sure that we snagged all the symbols we need.
9405 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9406 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9407 cat <<EOF > conftest.$ac_ext
9413 # Now generate the symbol file.
9414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9416 cat <<EOF >> conftest.$ac_ext
9417 #if defined (__STDC__) && __STDC__
9418 # define lt_ptr_t void *
9420 # define lt_ptr_t char *
9424 /* The mapping between symbol names and symbols. */
9429 lt_preloaded_symbols[] =
9432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9433 cat <<\EOF >> conftest.$ac_ext
9441 # Now try linking the two files.
9442 mv conftest.$ac_objext conftstm.$ac_objext
9443 lt_save_LIBS="$LIBS"
9444 lt_save_CFLAGS="$CFLAGS"
9445 LIBS="conftstm.$ac_objext"
9446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9454 LIBS="$lt_save_LIBS"
9455 CFLAGS="$lt_save_CFLAGS"
9457 echo "cannot find nm_test_func in $nlist" >&5
9460 echo "cannot find nm_test_var in $nlist" >&5
9463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9466 echo "$progname: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9469 rm -f conftest* conftst*
9471 # Do not use the global_symbol_pipe unless it works.
9472 if test "$pipe_works" = yes; then
9475 lt_cv_sys_global_symbol_pipe=
9481 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9482 lt_cv_sys_global_symbol_to_cdecl=
9484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9485 { echo "$as_me:$LINENO: result: failed" >&5
9486 echo "${ECHO_T}failed" >&6; }
9488 { echo "$as_me:$LINENO: result: ok" >&5
9489 echo "${ECHO_T}ok" >&6; }
9493 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9494 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9495 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9499 libltdl_cv_preloaded_symbols=yes
9501 libltdl_cv_preloaded_symbols=no
9505 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9506 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9507 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9509 cat >>confdefs.h <<\_ACEOF
9510 #define HAVE_PRELOADED_SYMBOLS 1
9518 ac_cpp='$CPP $CPPFLAGS'
9519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9524 { echo "$as_me:$LINENO: checking for shl_load" >&5
9525 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9526 if test "${ac_cv_func_shl_load+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9537 #define shl_load innocuous_shl_load
9539 /* System header to define __stub macros and hopefully few prototypes,
9540 which can conflict with char shl_load (); below.
9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542 <limits.h> exists even on freestanding compilers. */
9545 # include <limits.h>
9547 # include <assert.h>
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9559 /* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */
9562 #if defined __stub_shl_load || defined __stub___shl_load
9574 rm -f conftest.$ac_objext conftest$ac_exeext
9575 if { (ac_try="$ac_link"
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_try") 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_try") 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 ac_cv_func_shl_load=yes
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9613 ac_cv_func_shl_load=no
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9619 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9620 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9621 if test $ac_cv_func_shl_load = yes; then
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_SHL_LOAD 1
9628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9629 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9630 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_check_lib_save_LIBS=$LIBS
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1 >conftest.err
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9672 { (case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_try") 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_try") 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_lib_dld_shl_load=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_lib_dld_shl_load=no
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9705 if test $ac_cv_lib_dld_shl_load = yes; then
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_SHL_LOAD 1
9711 LIBADD_DL="$LIBADD_DL -ldld"
9713 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 ac_check_lib_save_LIBS=$LIBS
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9727 /* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_dl_dlopen=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_lib_dl_dlopen=no
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 LIBS=$ac_check_lib_save_LIBS
9788 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9789 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9790 if test $ac_cv_lib_dl_dlopen = yes; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_LIBDL 1
9796 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_LIBDL 1
9854 libltdl_cv_func_dlopen="yes"
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9860 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9861 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 ac_check_lib_save_LIBS=$LIBS
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_svld_dlopen=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_lib_svld_dlopen=no
9930 rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9935 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9936 if test $ac_cv_lib_svld_dlopen = yes; then
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_LIBDL 1
9942 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9944 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9945 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9946 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_check_lib_save_LIBS=$LIBS
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9958 /* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (ac_try="$ac_link"
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dld_dld_link=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_dld_dld_link=no
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10021 if test $ac_cv_lib_dld_dld_link = yes; then
10023 cat >>confdefs.h <<\_ACEOF
10027 LIBADD_DL="$LIBADD_DL -ldld"
10029 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10030 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10031 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10042 #define _dyld_func_lookup innocuous__dyld_func_lookup
10044 /* System header to define __stub macros and hopefully few prototypes,
10045 which can conflict with char _dyld_func_lookup (); below.
10046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10047 <limits.h> exists even on freestanding compilers. */
10050 # include <limits.h>
10052 # include <assert.h>
10055 #undef _dyld_func_lookup
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10063 char _dyld_func_lookup ();
10064 /* The GNU C library defines this for functions which it implements
10065 to always fail with ENOSYS. Some functions are actually named
10066 something starting with __ and the normal name is an alias. */
10067 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10074 return _dyld_func_lookup ();
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (ac_try="$ac_link"
10081 case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_link") 2>conftest.er1
10088 grep -v '^ *+' conftest.er1 >conftest.err
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10094 { (case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_try") 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_func__dyld_func_lookup=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_func__dyld_func_lookup=no
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10124 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10125 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10126 if test $ac_cv_func__dyld_func_lookup = yes; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_DYLD 1
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10155 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10157 lt_save_LIBS="$LIBS"
10158 LIBS="$LIBS $LIBADD_DL"
10160 for ac_func in dlerror
10162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10176 #define $ac_func innocuous_$ac_func
10178 /* System header to define __stub macros and hopefully few prototypes,
10179 which can conflict with char $ac_func (); below.
10180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10181 <limits.h> exists even on freestanding compilers. */
10184 # include <limits.h>
10186 # include <assert.h>
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10198 /* The GNU C library defines this for functions which it implements
10199 to always fail with ENOSYS. Some functions are actually named
10200 something starting with __ and the normal name is an alias. */
10201 #if defined __stub_$ac_func || defined __stub___$ac_func
10208 return $ac_func ();
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (ac_try="$ac_link"
10215 case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_link") 2>conftest.er1
10222 grep -v '^ *+' conftest.er1 >conftest.err
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try='test -s conftest$ac_exeext'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 eval "$as_ac_var=yes"
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 eval "$as_ac_var=no"
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10258 ac_res=`eval echo '${'$as_ac_var'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260 echo "${ECHO_T}$ac_res" >&6; }
10261 if test `eval echo '${'$as_ac_var'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10269 LIBS="$lt_save_LIBS"
10272 ac_cpp='$CPP $CPPFLAGS'
10273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10279 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10280 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10281 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 ac_cv_sys_symbol_underscore=no
10285 cat > conftest.$ac_ext <<EOF
10286 void nm_test_func(){}
10287 int main(){nm_test_func;return 0;}
10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290 (eval $ac_compile) 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; then
10294 # Now try to grab the symbols.
10295 ac_nlist=conftest.nm
10296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && test -s "$ac_nlist"; then
10301 # See whether the symbols have a leading underscore.
10302 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10303 ac_cv_sys_symbol_underscore=yes
10305 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10308 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10312 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10315 echo "configure: failed program was:" >&5
10321 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10322 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10325 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10326 if test x"$libltdl_cv_func_dlopen" = xyes ||
10327 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10328 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10329 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10330 if test "${libltdl_cv_need_uscore+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 libltdl_cv_need_uscore=unknown
10335 LIBS="$LIBS $LIBADD_DL"
10336 if test "$cross_compiling" = yes; then :
10337 libltdl_cv_need_uscore=cross
10339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340 lt_status=$lt_dlunknown
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10342 "configure"
10343 #include "confdefs.h"
10352 # define LT_DLGLOBAL RTLD_GLOBAL
10355 # define LT_DLGLOBAL DL_GLOBAL
10357 # define LT_DLGLOBAL 0
10361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362 find out it does not work in some platform. */
10363 #ifndef LT_DLLAZY_OR_NOW
10365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10368 # define LT_DLLAZY_OR_NOW DL_LAZY
10371 # define LT_DLLAZY_OR_NOW RTLD_NOW
10374 # define LT_DLLAZY_OR_NOW DL_NOW
10376 # define LT_DLLAZY_OR_NOW 0
10384 extern "C" void exit (int);
10387 void fnord() { int i=42;}
10390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391 int status = $lt_dlunknown;
10395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10397 /* dlclose (self); */
10405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406 (eval $ac_link) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10410 (./conftest; exit; ) >&5 2>/dev/null
10412 case x$lt_status in
10413 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10414 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10415 x$lt_dlunknown|x*) ;;
10418 # compilation failed
10427 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10428 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10432 if test x"$libltdl_cv_need_uscore" = xyes; then
10434 cat >>confdefs.h <<\_ACEOF
10435 #define NEED_USCORE 1
10441 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10442 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10443 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 # PORTME does your system automatically load deplibs for dlopen?
10447 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10448 # For now, we just catch OSes we know something about -- in the
10449 # future, we'll try test this programmatically.
10450 libltdl_cv_sys_dlopen_deplibs=unknown
10452 aix3*|aix4.1.*|aix4.2.*)
10453 # Unknown whether this is true for these versions of AIX, but
10454 # we want this `case' here to explicitly catch those versions.
10455 libltdl_cv_sys_dlopen_deplibs=unknown
10458 libltdl_cv_sys_dlopen_deplibs=yes
10461 # Assuming the user has installed a libdl from somewhere, this is true
10462 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10463 libltdl_cv_sys_dlopen_deplibs=yes
10465 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10466 # GNU and its variants, using gnu ld.so (Glibc)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10470 libltdl_cv_sys_dlopen_deplibs=yes
10473 libltdl_cv_sys_dlopen_deplibs=yes
10475 irix[12345]*|irix6.[01]*)
10476 # Catch all versions of IRIX before 6.2, and indicate that we don't
10477 # know how it worked for any of those versions.
10478 libltdl_cv_sys_dlopen_deplibs=unknown
10481 # The case above catches anything before 6.2, and it's known that
10482 # at 6.2 and later dlopen does load deplibs.
10483 libltdl_cv_sys_dlopen_deplibs=yes
10486 libltdl_cv_sys_dlopen_deplibs=yes
10489 libltdl_cv_sys_dlopen_deplibs=yes
10492 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10493 # it did *not* use an RPATH in a shared library to find objects the
10494 # library depends on, so we explictly say `no'.
10495 libltdl_cv_sys_dlopen_deplibs=no
10497 osf5.0|osf5.0a|osf5.1)
10498 # dlopen *does* load deplibs and with the right loader patch applied
10499 # it even uses RPATH in a shared library to search for shared objects
10500 # that the library depends on, but there's no easy way to know if that
10501 # patch is installed. Since this is the case, all we can really
10502 # say is unknown -- it depends on the patch being installed. If
10503 # it is, this changes to `yes'. Without it, it would be `no'.
10504 libltdl_cv_sys_dlopen_deplibs=unknown
10507 # the two cases above should catch all versions of osf <= 5.1. Read
10508 # the comments above for what we know about them.
10509 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10510 # is used to find them so we can finally say `yes'.
10511 libltdl_cv_sys_dlopen_deplibs=yes
10514 libltdl_cv_sys_dlopen_deplibs=yes
10516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10517 libltdl_cv_sys_dlopen_deplibs=yes
10522 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10523 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10524 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10526 cat >>confdefs.h <<\_ACEOF
10527 #define LTDL_DLOPEN_DEPLIBS 1
10533 for ac_header in argz.h
10535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 ac_res=`eval echo '${'$as_ac_Header'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544 echo "${ECHO_T}$ac_res" >&6; }
10546 # Is the header compilable?
10547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10549 cat >conftest.$ac_ext <<_ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 $ac_includes_default
10556 #include <$ac_header>
10558 rm -f conftest.$ac_objext
10559 if { (ac_try="$ac_compile"
10560 case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_compile") 2>conftest.er1
10567 grep -v '^ *+' conftest.er1 >conftest.err
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10573 { (case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_try") 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_header_compiler=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_header_compiler=no
10600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602 echo "${ECHO_T}$ac_header_compiler" >&6; }
10604 # Is the header present?
10605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <$ac_header>
10615 if { (ac_try="$ac_cpp conftest.$ac_ext"
10616 case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev/null; then
10628 if test -s conftest.err; then
10629 ac_cpp_err=$ac_c_preproc_warn_flag
10630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10637 if test -z "$ac_cpp_err"; then
10638 ac_header_preproc=yes
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_header_preproc=no
10646 rm -f conftest.err conftest.$ac_ext
10647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648 echo "${ECHO_T}$ac_header_preproc" >&6; }
10650 # So? What about this header?
10651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673 ## ----------------------------------- ##
10674 ## Report this to llvmbugs@cs.uiuc.edu ##
10675 ## ----------------------------------- ##
10677 ) | sed "s/^/$as_me: WARNING: /" >&2
10680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 eval "$as_ac_Header=\$ac_header_preproc"
10687 ac_res=`eval echo '${'$as_ac_Header'}'`
10688 { echo "$as_me:$LINENO: result: $ac_res" >&5
10689 echo "${ECHO_T}$ac_res" >&6; }
10692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693 cat >>confdefs.h <<_ACEOF
10694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10702 { echo "$as_me:$LINENO: checking for error_t" >&5
10703 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10704 if test "${ac_cv_type_error_t+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10717 typedef error_t ac__type_new_;
10721 if ((ac__type_new_ *) 0)
10723 if (sizeof (ac__type_new_))
10729 rm -f conftest.$ac_objext
10730 if { (ac_try="$ac_compile"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_try") 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_cv_type_error_t=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_cv_type_error_t=no
10771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10774 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10775 if test $ac_cv_type_error_t = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_ERROR_T 1
10784 cat >>confdefs.h <<\_ACEOF
10785 #define error_t int
10796 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812 #define $ac_func innocuous_$ac_func
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10820 # include <limits.h>
10822 # include <assert.h>
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined __stub_$ac_func || defined __stub___$ac_func
10844 return $ac_func ();
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 eval "$as_ac_var=yes"
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 eval "$as_ac_var=no"
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10894 ac_res=`eval echo '${'$as_ac_var'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896 echo "${ECHO_T}$ac_res" >&6; }
10897 if test `eval echo '${'$as_ac_var'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10932 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 ac_res=`eval echo '${'$as_ac_Header'}'`
10943 { echo "$as_me:$LINENO: result: $ac_res" >&5
10944 echo "${ECHO_T}$ac_res" >&6; }
10946 # Is the header compilable?
10947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10949 cat >conftest.$ac_ext <<_ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 $ac_includes_default
10956 #include <$ac_header>
10958 rm -f conftest.$ac_objext
10959 if { (ac_try="$ac_compile"
10960 case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_compile") 2>conftest.er1
10967 grep -v '^ *+' conftest.er1 >conftest.err
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10973 { (case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_try") 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest.$ac_objext'
10983 { (case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_try") 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 ac_header_compiler=yes
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 ac_header_compiler=no
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11002 echo "${ECHO_T}$ac_header_compiler" >&6; }
11004 # Is the header present?
11005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #include <$ac_header>
11015 if { (ac_try="$ac_cpp conftest.$ac_ext"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11023 grep -v '^ *+' conftest.er1 >conftest.err
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } >/dev/null; then
11028 if test -s conftest.err; then
11029 ac_cpp_err=$ac_c_preproc_warn_flag
11030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11037 if test -z "$ac_cpp_err"; then
11038 ac_header_preproc=yes
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_header_preproc=no
11046 rm -f conftest.err conftest.$ac_ext
11047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11048 echo "${ECHO_T}$ac_header_preproc" >&6; }
11050 # So? What about this header?
11051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11057 ac_header_preproc=yes
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11073 ## ----------------------------------- ##
11074 ## Report this to llvmbugs@cs.uiuc.edu ##
11075 ## ----------------------------------- ##
11077 ) | sed "s/^/$as_me: WARNING: /" >&2
11080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 eval "$as_ac_Header=\$ac_header_preproc"
11087 ac_res=`eval echo '${'$as_ac_Header'}'`
11088 { echo "$as_me:$LINENO: result: $ac_res" >&5
11089 echo "${ECHO_T}$ac_res" >&6; }
11092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11093 cat >>confdefs.h <<_ACEOF
11094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11105 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 ac_res=`eval echo '${'$as_ac_Header'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11118 # Is the header compilable?
11119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 $ac_includes_default
11128 #include <$ac_header>
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_compile") 2>conftest.er1
11139 grep -v '^ *+' conftest.er1 >conftest.err
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11164 ac_header_compiler=yes
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 ac_header_compiler=no
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11174 echo "${ECHO_T}$ac_header_compiler" >&6; }
11176 # Is the header present?
11177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 #include <$ac_header>
11187 if { (ac_try="$ac_cpp conftest.$ac_ext"
11188 case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11195 grep -v '^ *+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } >/dev/null; then
11200 if test -s conftest.err; then
11201 ac_cpp_err=$ac_c_preproc_warn_flag
11202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11209 if test -z "$ac_cpp_err"; then
11210 ac_header_preproc=yes
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ac_header_preproc=no
11218 rm -f conftest.err conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11220 echo "${ECHO_T}$ac_header_preproc" >&6; }
11222 # So? What about this header?
11223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11229 ac_header_preproc=yes
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11245 ## ----------------------------------- ##
11246 ## Report this to llvmbugs@cs.uiuc.edu ##
11247 ## ----------------------------------- ##
11249 ) | sed "s/^/$as_me: WARNING: /" >&2
11252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 eval "$as_ac_Header=\$ac_header_preproc"
11259 ac_res=`eval echo '${'$as_ac_Header'}'`
11260 { echo "$as_me:$LINENO: result: $ac_res" >&5
11261 echo "${ECHO_T}$ac_res" >&6; }
11264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11275 for ac_header in string.h strings.h
11277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 ac_res=`eval echo '${'$as_ac_Header'}'`
11285 { echo "$as_me:$LINENO: result: $ac_res" >&5
11286 echo "${ECHO_T}$ac_res" >&6; }
11288 # Is the header compilable?
11289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 $ac_includes_default
11298 #include <$ac_header>
11300 rm -f conftest.$ac_objext
11301 if { (ac_try="$ac_compile"
11302 case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_compile") 2>conftest.er1
11309 grep -v '^ *+' conftest.er1 >conftest.err
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11324 { ac_try='test -s conftest.$ac_objext'
11325 { (case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_try") 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 ac_header_compiler=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_compiler=no
11342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11344 echo "${ECHO_T}$ac_header_compiler" >&6; }
11346 # Is the header present?
11347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <$ac_header>
11357 if { (ac_try="$ac_cpp conftest.$ac_ext"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev/null; then
11370 if test -s conftest.err; then
11371 ac_cpp_err=$ac_c_preproc_warn_flag
11372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11379 if test -z "$ac_cpp_err"; then
11380 ac_header_preproc=yes
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_preproc=no
11388 rm -f conftest.err conftest.$ac_ext
11389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390 echo "${ECHO_T}$ac_header_preproc" >&6; }
11392 # So? What about this header?
11393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11399 ac_header_preproc=yes
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11415 ## ----------------------------------- ##
11416 ## Report this to llvmbugs@cs.uiuc.edu ##
11417 ## ----------------------------------- ##
11419 ) | sed "s/^/$as_me: WARNING: /" >&2
11422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 eval "$as_ac_Header=\$ac_header_preproc"
11429 ac_res=`eval echo '${'$as_ac_Header'}'`
11430 { echo "$as_me:$LINENO: result: $ac_res" >&5
11431 echo "${ECHO_T}$ac_res" >&6; }
11434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11435 cat >>confdefs.h <<_ACEOF
11436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446 for ac_func in strchr index
11448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 cat >conftest.$ac_ext <<_ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11462 #define $ac_func innocuous_$ac_func
11464 /* System header to define __stub macros and hopefully few prototypes,
11465 which can conflict with char $ac_func (); below.
11466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11467 <limits.h> exists even on freestanding compilers. */
11470 # include <limits.h>
11472 # include <assert.h>
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11484 /* The GNU C library defines this for functions which it implements
11485 to always fail with ENOSYS. Some functions are actually named
11486 something starting with __ and the normal name is an alias. */
11487 #if defined __stub_$ac_func || defined __stub___$ac_func
11494 return $ac_func ();
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (ac_try="$ac_link"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_link") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11514 { (case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_try") 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest$ac_exeext'
11524 { (case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_try") 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 eval "$as_ac_var=yes"
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 eval "$as_ac_var=no"
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11544 ac_res=`eval echo '${'$as_ac_var'}'`
11545 { echo "$as_me:$LINENO: result: $ac_res" >&5
11546 echo "${ECHO_T}$ac_res" >&6; }
11547 if test `eval echo '${'$as_ac_var'}'` = yes; then
11548 cat >>confdefs.h <<_ACEOF
11549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11557 for ac_func in strrchr rindex
11559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11573 #define $ac_func innocuous_$ac_func
11575 /* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char $ac_func (); below.
11577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578 <limits.h> exists even on freestanding compilers. */
11581 # include <limits.h>
11583 # include <assert.h>
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined __stub_$ac_func || defined __stub___$ac_func
11605 return $ac_func ();
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (ac_try="$ac_link"
11612 case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_link") 2>conftest.er1
11619 grep -v '^ *+' conftest.er1 >conftest.err
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest$ac_exeext'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 eval "$as_ac_var=yes"
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 eval "$as_ac_var=no"
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11655 ac_res=`eval echo '${'$as_ac_var'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11658 if test `eval echo '${'$as_ac_var'}'` = yes; then
11659 cat >>confdefs.h <<_ACEOF
11660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668 for ac_func in memcpy bcopy
11670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 cat >conftest.$ac_ext <<_ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684 #define $ac_func innocuous_$ac_func
11686 /* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11692 # include <limits.h>
11694 # include <assert.h>
11699 /* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
11706 /* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
11709 #if defined __stub_$ac_func || defined __stub___$ac_func
11716 return $ac_func ();
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_link") 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11736 { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_try") 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 eval "$as_ac_var=yes"
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 eval "$as_ac_var=no"
11763 rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11766 ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11779 for ac_func in memmove strcmp
11781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 cat >conftest.$ac_ext <<_ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11795 #define $ac_func innocuous_$ac_func
11797 /* System header to define __stub macros and hopefully few prototypes,
11798 which can conflict with char $ac_func (); below.
11799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800 <limits.h> exists even on freestanding compilers. */
11803 # include <limits.h>
11805 # include <assert.h>
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11817 /* The GNU C library defines this for functions which it implements
11818 to always fail with ENOSYS. Some functions are actually named
11819 something starting with __ and the normal name is an alias. */
11820 #if defined __stub_$ac_func || defined __stub___$ac_func
11827 return $ac_func ();
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (ac_try="$ac_link"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_link") 2>conftest.er1
11841 grep -v '^ *+' conftest.er1 >conftest.err
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11847 { (case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_try") 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 eval "$as_ac_var=yes"
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 eval "$as_ac_var=no"
11874 rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11877 ac_res=`eval echo '${'$as_ac_var'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879 echo "${ECHO_T}$ac_res" >&6; }
11880 if test `eval echo '${'$as_ac_var'}'` = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11891 for ac_func in closedir opendir readdir
11893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11907 #define $ac_func innocuous_$ac_func
11909 /* System header to define __stub macros and hopefully few prototypes,
11910 which can conflict with char $ac_func (); below.
11911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912 <limits.h> exists even on freestanding compilers. */
11915 # include <limits.h>
11917 # include <assert.h>
11922 /* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
11929 /* The GNU C library defines this for functions which it implements
11930 to always fail with ENOSYS. Some functions are actually named
11931 something starting with __ and the normal name is an alias. */
11932 #if defined __stub_$ac_func || defined __stub___$ac_func
11939 return $ac_func ();
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (ac_try="$ac_link"
11946 case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_link") 2>conftest.er1
11953 grep -v '^ *+' conftest.er1 >conftest.err
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11959 { (case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_try") 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest$ac_exeext'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 eval "$as_ac_var=yes"
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 eval "$as_ac_var=no"
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11989 ac_res=`eval echo '${'$as_ac_var'}'`
11990 { echo "$as_me:$LINENO: result: $ac_res" >&5
11991 echo "${ECHO_T}$ac_res" >&6; }
11992 if test `eval echo '${'$as_ac_var'}'` = yes; then
11993 cat >>confdefs.h <<_ACEOF
11994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12001 # Check whether --enable-shared was given.
12002 if test "${enable_shared+set}" = set; then
12003 enableval=$enable_shared; p=${PACKAGE-default}
12005 yes) enable_shared=yes ;;
12006 no) enable_shared=no ;;
12009 # Look at the argument we got. We use all the common list separators.
12010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12011 for pkg in $enableval; do
12013 if test "X$pkg" = "X$p"; then
12025 # Check whether --enable-static was given.
12026 if test "${enable_static+set}" = set; then
12027 enableval=$enable_static; p=${PACKAGE-default}
12029 yes) enable_static=yes ;;
12030 no) enable_static=no ;;
12033 # Look at the argument we got. We use all the common list separators.
12034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12035 for pkg in $enableval; do
12037 if test "X$pkg" = "X$p"; then
12049 # Check whether --enable-fast-install was given.
12050 if test "${enable_fast_install+set}" = set; then
12051 enableval=$enable_fast_install; p=${PACKAGE-default}
12053 yes) enable_fast_install=yes ;;
12054 no) enable_fast_install=no ;;
12056 enable_fast_install=no
12057 # Look at the argument we got. We use all the common list separators.
12058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12059 for pkg in $enableval; do
12061 if test "X$pkg" = "X$p"; then
12062 enable_fast_install=yes
12069 enable_fast_install=yes
12073 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12074 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12075 if test "${lt_cv_path_SED+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 # Loop through the user's path and test for sed and gsed.
12079 # Then use that list of sed's as ones to test for truncation.
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12084 test -z "$as_dir" && as_dir=.
12085 for lt_ac_prog in sed gsed; do
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12088 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12095 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12096 # along with /bin/sed that truncates output.
12097 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12098 test ! -f $lt_ac_sed && continue
12099 cat /dev/null > conftest.in
12101 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12102 # Check for GNU sed and select it if it is found.
12103 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12104 lt_cv_path_SED=$lt_ac_sed
12108 cat conftest.in conftest.in >conftest.tmp
12109 mv conftest.tmp conftest.in
12110 cp conftest.in conftest.nl
12112 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12113 cmp -s conftest.out conftest.nl || break
12114 # 10000 chars as input seems more than enough
12115 test $lt_ac_count -gt 10 && break
12116 lt_ac_count=`expr $lt_ac_count + 1`
12117 if test $lt_ac_count -gt $lt_ac_max; then
12118 lt_ac_max=$lt_ac_count
12119 lt_cv_path_SED=$lt_ac_sed
12126 SED=$lt_cv_path_SED
12127 { echo "$as_me:$LINENO: result: $SED" >&5
12128 echo "${ECHO_T}$SED" >&6; }
12131 # Check whether --with-gnu-ld was given.
12132 if test "${with_gnu_ld+set}" = set; then
12133 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12139 if test "$GCC" = yes; then
12140 # Check if gcc -print-prog-name=ld gives a path.
12141 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12142 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12145 # gcc leaves a trailing carriage return which upsets mingw
12146 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12148 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12151 # Accept absolute paths.
12153 re_direlt='/[^/][^/]*/\.\./'
12154 # Canonicalize the pathname of ld
12155 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12156 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12157 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12159 test -z "$LD" && LD="$ac_prog"
12162 # If it fails, then pretend we aren't using GCC.
12166 # If it is relative, then search for the first ld in PATH.
12167 with_gnu_ld=unknown
12170 elif test "$with_gnu_ld" = yes; then
12171 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12172 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12174 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12175 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12177 if test "${lt_cv_path_LD+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 if test -z "$LD"; then
12181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12182 for ac_dir in $PATH; do
12184 test -z "$ac_dir" && ac_dir=.
12185 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12186 lt_cv_path_LD="$ac_dir/$ac_prog"
12187 # Check to see if the program is GNU ld. I'd rather use --version,
12188 # but apparently some variants of GNU ld only accept -v.
12189 # Break only if it was the GNU/non-GNU ld that we prefer.
12190 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12191 *GNU* | *'with BFD'*)
12192 test "$with_gnu_ld" != no && break
12195 test "$with_gnu_ld" != yes && break
12202 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12206 LD="$lt_cv_path_LD"
12207 if test -n "$LD"; then
12208 { echo "$as_me:$LINENO: result: $LD" >&5
12209 echo "${ECHO_T}$LD" >&6; }
12211 { echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6; }
12214 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12215 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12216 { (exit 1); exit 1; }; }
12217 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12218 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12219 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12223 case `$LD -v 2>&1 </dev/null` in
12224 *GNU* | *'with BFD'*)
12225 lt_cv_prog_gnu_ld=yes
12228 lt_cv_prog_gnu_ld=no
12232 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12233 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12234 with_gnu_ld=$lt_cv_prog_gnu_ld
12237 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12238 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12239 if test "${lt_cv_ld_reload_flag+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 lt_cv_ld_reload_flag='-r'
12244 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12245 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12246 reload_flag=$lt_cv_ld_reload_flag
12247 case $reload_flag in
12249 *) reload_flag=" $reload_flag" ;;
12251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12254 if test "$GCC" = yes; then
12255 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12257 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12262 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12263 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12264 if test "${lt_cv_deplibs_check_method+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 lt_cv_file_magic_cmd='$MAGIC_CMD'
12268 lt_cv_file_magic_test_file=
12269 lt_cv_deplibs_check_method='unknown'
12270 # Need to set the preceding variable on all platforms that support
12271 # interlibrary dependencies.
12272 # 'none' -- dependencies not supported.
12273 # `unknown' -- same as none, but documents that we really don't know.
12274 # 'pass_all' -- all dependencies passed with no checks.
12275 # 'test_compile' -- check by making test program.
12276 # 'file_magic [[regex]]' -- check by looking for files in library path
12277 # which responds to the $file_magic_cmd with a given extended regex.
12278 # If you have `file' or equivalent on your system and you're not sure
12279 # whether `pass_all' will *always* work, you probably want this one.
12283 lt_cv_deplibs_check_method=pass_all
12287 lt_cv_deplibs_check_method=pass_all
12291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12292 lt_cv_file_magic_cmd='/usr/bin/file -L'
12293 lt_cv_file_magic_test_file=/shlib/libc.so
12297 # func_win32_libid is a shell function defined in ltmain.sh
12298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12299 lt_cv_file_magic_cmd='func_win32_libid'
12303 # Base MSYS/MinGW do not provide the 'file' command needed by
12304 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12305 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12306 lt_cv_file_magic_cmd='$OBJDUMP -f'
12309 darwin* | rhapsody*)
12310 lt_cv_deplibs_check_method=pass_all
12313 freebsd* | kfreebsd*-gnu | dragonfly*)
12314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12317 # Not sure whether the presence of OpenBSD here was a mistake.
12318 # Let's accept both of them until this is cleared up.
12319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12320 lt_cv_file_magic_cmd=/usr/bin/file
12321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12325 lt_cv_deplibs_check_method=pass_all
12330 lt_cv_deplibs_check_method=pass_all
12333 hpux10.20* | hpux11*)
12334 lt_cv_file_magic_cmd=/usr/bin/file
12337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12341 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]'
12342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12346 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12356 irix5* | irix6* | nonstopux*)
12358 *-32|*"-32 ") libmagic=32-bit;;
12359 *-n32|*"-n32 ") libmagic=N32;;
12360 *-64|*"-64 ") libmagic=64-bit;;
12361 *) libmagic=never-match;;
12363 lt_cv_deplibs_check_method=pass_all
12366 # This must be Linux ELF.
12368 lt_cv_deplibs_check_method=pass_all
12372 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12381 lt_cv_file_magic_cmd=/usr/bin/file
12382 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12386 lt_cv_deplibs_check_method=unknown
12390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12397 osf3* | osf4* | osf5*)
12398 lt_cv_deplibs_check_method=pass_all
12402 lt_cv_deplibs_check_method=pass_all
12406 case $host_vendor in
12408 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]'
12409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12412 lt_cv_deplibs_check_method=pass_all
12415 lt_cv_file_magic_cmd='/bin/file'
12416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12419 lt_cv_file_magic_cmd='/bin/file'
12420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12421 lt_cv_file_magic_test_file=/lib/libc.so
12424 lt_cv_deplibs_check_method=pass_all
12427 lt_cv_deplibs_check_method=pass_all
12432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12433 lt_cv_deplibs_check_method=pass_all
12438 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12439 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12440 file_magic_cmd=$lt_cv_file_magic_cmd
12441 deplibs_check_method=$lt_cv_deplibs_check_method
12442 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12446 # If no C compiler was specified, use CC.
12449 # If no C compiler flags were specified, use CFLAGS.
12450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12452 # Allow CC to be a program name with arguments.
12455 # Check whether --enable-libtool-lock was given.
12456 if test "${enable_libtool_lock+set}" = set; then
12457 enableval=$enable_libtool_lock;
12460 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12462 # Some flags need to be propagated to the compiler or linker for good
12466 # Find out which ABI we are using.
12467 echo 'int i;' > conftest.$ac_ext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12469 (eval $ac_compile) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; then
12473 case `/usr/bin/file conftest.$ac_objext` in
12475 HPUX_IA64_MODE="32"
12478 HPUX_IA64_MODE="64"
12485 # Find out which ABI we are using.
12486 echo '#line 12486 "configure"' > conftest.$ac_ext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488 (eval $ac_compile) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; then
12492 if test "$lt_cv_prog_gnu_ld" = yes; then
12493 case `/usr/bin/file conftest.$ac_objext` in
12495 LD="${LD-ld} -melf32bsmip"
12498 LD="${LD-ld} -melf32bmipn32"
12501 LD="${LD-ld} -melf64bmip"
12505 case `/usr/bin/file conftest.$ac_objext` in
12521 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12522 # Find out which ABI we are using.
12523 echo 'int i;' > conftest.$ac_ext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525 (eval $ac_compile) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; then
12529 case `/usr/bin/file conftest.o` in
12533 LD="${LD-ld} -m elf_i386"
12535 ppc64-*linux*|powerpc64-*linux*)
12536 LD="${LD-ld} -m elf32ppclinux"
12539 LD="${LD-ld} -m elf_s390"
12542 LD="${LD-ld} -m elf32_sparc"
12549 LD="${LD-ld} -m elf_x86_64"
12551 ppc*-*linux*|powerpc*-*linux*)
12552 LD="${LD-ld} -m elf64ppc"
12555 LD="${LD-ld} -m elf64_s390"
12558 LD="${LD-ld} -m elf64_sparc"
12568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12569 SAVE_CFLAGS="$CFLAGS"
12570 CFLAGS="$CFLAGS -belf"
12571 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12572 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12573 if test "${lt_cv_cc_needs_belf+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (ac_try="$ac_link"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_link") 2>conftest.er1
12606 grep -v '^ *+' conftest.er1 >conftest.err
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_try") 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest$ac_exeext'
12622 { (case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_try") 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 lt_cv_cc_needs_belf=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 lt_cv_cc_needs_belf=no
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12642 ac_cpp='$CPP $CPPFLAGS'
12643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12648 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12649 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12650 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12651 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12652 CFLAGS="$SAVE_CFLAGS"
12656 # Find out which ABI we are using.
12657 echo 'int i;' > conftest.$ac_ext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; then
12663 case `/usr/bin/file conftest.o` in
12665 case $lt_cv_prog_gnu_ld in
12666 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12667 *) LD="${LD-ld} -64" ;;
12678 need_locks="$enable_libtool_lock"
12683 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12684 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12685 (test "X$CXX" != "Xg++"))) ; then
12687 ac_cpp='$CXXCPP $CPPFLAGS'
12688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12691 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12692 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12693 if test -z "$CXXCPP"; then
12694 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 # Double quotes because CXXCPP needs to be expanded
12698 for CXXCPP in "$CXX -E" "/lib/cpp"
12700 ac_preproc_ok=false
12701 for ac_cxx_preproc_warn_flag in '' yes
12703 # Use a header file that comes with gcc, so configuring glibc
12704 # with a fresh cross-compiler works.
12705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706 # <limits.h> exists even on freestanding compilers.
12707 # On the NeXT, cc -E runs the code through the compiler's parser,
12708 # not just through cpp. "Syntax error" is here to catch this case.
12709 cat >conftest.$ac_ext <<_ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12716 # include <limits.h>
12718 # include <assert.h>
12722 if { (ac_try="$ac_cpp conftest.$ac_ext"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } >/dev/null; then
12735 if test -s conftest.err; then
12736 ac_cpp_err=$ac_cxx_preproc_warn_flag
12737 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12744 if test -z "$ac_cpp_err"; then
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12750 # Broken: fails on valid input.
12754 rm -f conftest.err conftest.$ac_ext
12756 # OK, works on sane cases. Now check whether nonexistent headers
12757 # can be detected and how.
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 #include <ac_nonexistent.h>
12766 if { (ac_try="$ac_cpp conftest.$ac_ext"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev/null; then
12779 if test -s conftest.err; then
12780 ac_cpp_err=$ac_cxx_preproc_warn_flag
12781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12788 if test -z "$ac_cpp_err"; then
12789 # Broken: success on invalid input.
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 # Passes both tests.
12800 rm -f conftest.err conftest.$ac_ext
12803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12804 rm -f conftest.err conftest.$ac_ext
12805 if $ac_preproc_ok; then
12810 ac_cv_prog_CXXCPP=$CXXCPP
12813 CXXCPP=$ac_cv_prog_CXXCPP
12815 ac_cv_prog_CXXCPP=$CXXCPP
12817 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12818 echo "${ECHO_T}$CXXCPP" >&6; }
12819 ac_preproc_ok=false
12820 for ac_cxx_preproc_warn_flag in '' yes
12822 # Use a header file that comes with gcc, so configuring glibc
12823 # with a fresh cross-compiler works.
12824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12825 # <limits.h> exists even on freestanding compilers.
12826 # On the NeXT, cc -E runs the code through the compiler's parser,
12827 # not just through cpp. "Syntax error" is here to catch this case.
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 # include <limits.h>
12837 # include <assert.h>
12841 if { (ac_try="$ac_cpp conftest.$ac_ext"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null; then
12854 if test -s conftest.err; then
12855 ac_cpp_err=$ac_cxx_preproc_warn_flag
12856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12863 if test -z "$ac_cpp_err"; then
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 # Broken: fails on valid input.
12873 rm -f conftest.err conftest.$ac_ext
12875 # OK, works on sane cases. Now check whether nonexistent headers
12876 # can be detected and how.
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 #include <ac_nonexistent.h>
12885 if { (ac_try="$ac_cpp conftest.$ac_ext"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893 grep -v '^ *+' conftest.er1 >conftest.err
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null; then
12898 if test -s conftest.err; then
12899 ac_cpp_err=$ac_cxx_preproc_warn_flag
12900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12907 if test -z "$ac_cpp_err"; then
12908 # Broken: success on invalid input.
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 # Passes both tests.
12919 rm -f conftest.err conftest.$ac_ext
12922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12923 rm -f conftest.err conftest.$ac_ext
12924 if $ac_preproc_ok; then
12927 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12928 See \`config.log' for more details." >&5
12929 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12930 See \`config.log' for more details." >&2;}
12931 { (exit 1); exit 1; }; }
12935 ac_cpp='$CXXCPP $CPPFLAGS'
12936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12947 if test -n "$ac_tool_prefix"; then
12948 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
12950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12954 if test "${ac_cv_prog_F77+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 if test -n "$F77"; then
12958 ac_cv_prog_F77="$F77" # Let the user override the test.
12960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961 for as_dir in $PATH
12964 test -z "$as_dir" && as_dir=.
12965 for ac_exec_ext in '' $ac_executable_extensions; do
12966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12967 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 F77=$ac_cv_prog_F77
12978 if test -n "$F77"; then
12979 { echo "$as_me:$LINENO: result: $F77" >&5
12980 echo "${ECHO_T}$F77" >&6; }
12982 { echo "$as_me:$LINENO: result: no" >&5
12983 echo "${ECHO_T}no" >&6; }
12987 test -n "$F77" && break
12990 if test -z "$F77"; then
12992 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
12994 # Extract the first word of "$ac_prog", so it can be a program name with args.
12995 set dummy $ac_prog; ac_word=$2
12996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12998 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 if test -n "$ac_ct_F77"; then
13002 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13011 ac_cv_prog_ac_ct_F77="$ac_prog"
13012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13022 if test -n "$ac_ct_F77"; then
13023 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13024 echo "${ECHO_T}$ac_ct_F77" >&6; }
13026 { echo "$as_me:$LINENO: result: no" >&5
13027 echo "${ECHO_T}no" >&6; }
13031 test -n "$ac_ct_F77" && break
13034 if test "x$ac_ct_F77" = x; then
13037 case $cross_compiling:$ac_tool_warned in
13039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13040 whose name does not start with the host triplet. If you think this
13041 configuration is useful to you, please write to autoconf@gnu.org." >&5
13042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13043 whose name does not start with the host triplet. If you think this
13044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13045 ac_tool_warned=yes ;;
13052 # Provide some information about the compiler.
13053 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13054 ac_compiler=`set X $ac_compile; echo $2`
13055 { (ac_try="$ac_compiler --version >&5"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compiler --version >&5") 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }
13065 { (ac_try="$ac_compiler -v >&5"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compiler -v >&5") 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }
13075 { (ac_try="$ac_compiler -V >&5"
13076 case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_compiler -V >&5") 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }
13087 # If we don't use `.F' as extension, the preprocessor is not run on the
13088 # input file. (Note that this only needs to work for GNU compilers.)
13089 ac_save_ext=$ac_ext
13091 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13092 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13093 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 cat >conftest.$ac_ext <<_ACEOF
13104 rm -f conftest.$ac_objext
13105 if { (ac_try="$ac_compile"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_compile") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_compiler_gnu=yes
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13150 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13151 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13152 ac_ext=$ac_save_ext
13153 ac_test_FFLAGS=${FFLAGS+set}
13154 ac_save_FFLAGS=$FFLAGS
13156 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13157 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13158 if test "${ac_cv_prog_f77_g+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (ac_try="$ac_compile"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compile") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest.$ac_objext'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_cv_prog_f77_g=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_cv_prog_f77_g=no
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13213 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13214 if test "$ac_test_FFLAGS" = set; then
13215 FFLAGS=$ac_save_FFLAGS
13216 elif test $ac_cv_prog_f77_g = yes; then
13217 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13223 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13230 G77=`test $ac_compiler_gnu = yes && echo yes`
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13241 # find the maximum length of command line arguments
13242 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13243 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13244 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 # On DJGPP, this test can blow up pretty badly due to problems in libc
13253 # (any single argument exceeding 2000 bytes causes a buffer overrun
13254 # during glob expansion). Even if it were fixed, the result of this
13255 # check would be larger than it should be.
13256 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13260 # Under GNU Hurd, this test is not required because there is
13261 # no limit to the length of command line arguments.
13262 # Libtool will interpret -1 as no limit whatsoever
13263 lt_cv_sys_max_cmd_len=-1;
13267 # On Win9x/ME, this test blows up -- it succeeds, but takes
13268 # about 5 minutes as the teststring grows exponentially.
13269 # Worse, since 9x/ME are not pre-emptively multitasking,
13270 # you end up with a "frozen" computer, even though with patience
13271 # the test eventually succeeds (with a max line length of 256k).
13272 # Instead, let's just punt: use the minimum linelength reported by
13273 # all of the supported platforms: 8192 (on NT/2K/XP).
13274 lt_cv_sys_max_cmd_len=8192;
13278 # On AmigaOS with pdksh, this test takes hours, literally.
13279 # So we just punt and use a minimum line length of 8192.
13280 lt_cv_sys_max_cmd_len=8192;
13283 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13284 # This has been around since 386BSD, at least. Likely further.
13285 if test -x /sbin/sysctl; then
13286 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13287 elif test -x /usr/sbin/sysctl; then
13288 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13290 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13292 # And add a safety zone
13293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13298 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13299 lt_cv_sys_max_cmd_len=196608
13303 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13304 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13305 # nice to cause kernel panics so lets avoid the loop below.
13306 # First set a reasonable default.
13307 lt_cv_sys_max_cmd_len=16384
13309 if test -x /sbin/sysconfig; then
13310 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13311 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13316 lt_cv_sys_max_cmd_len=102400
13318 sysv5* | sco5v6* | sysv4.2uw2*)
13319 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13320 if test -n "$kargmax"; then
13321 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13323 lt_cv_sys_max_cmd_len=32768
13327 # If test is not a shell built-in, we'll probably end up computing a
13328 # maximum length that is only half of the actual maximum length, but
13330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13331 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13332 = "XX$teststring") >/dev/null 2>&1 &&
13333 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13334 lt_cv_sys_max_cmd_len=$new_result &&
13335 test $i != 17 # 1/2 MB should be enough
13338 teststring=$teststring$teststring
13341 # Add a significant safety factor because C++ compilers can tack on massive
13342 # amounts of additional arguments before passing them to the linker.
13343 # It appears as though 1/2 is a usable value.
13344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13350 if test -n $lt_cv_sys_max_cmd_len ; then
13351 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13352 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13354 { echo "$as_me:$LINENO: result: none" >&5
13355 echo "${ECHO_T}none" >&6; }
13361 # Check for command to grab the raw symbol name followed by C symbol from nm.
13362 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13363 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13364 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 # These are sane defaults that work on at least a few old systems.
13369 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13371 # Character class describing NM global symbol codes.
13372 symcode='[BCDEGRST]'
13374 # Regexp to match symbols that can be accessed directly from C.
13375 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13377 # Transform an extracted symbol line into a proper C declaration
13378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13380 # Transform an extracted symbol line into symbol name and symbol address
13381 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'"
13383 # Define system-specific variables.
13388 cygwin* | mingw* | pw32*)
13389 symcode='[ABCDGISTW]'
13391 hpux*) # Its linker distinguishes data from code symbols
13392 if test "$host_cpu" = ia64; then
13393 symcode='[ABCDEGRST]'
13395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13396 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'"
13399 if test "$host_cpu" = ia64; then
13400 symcode='[ABCDGIRSTW]'
13401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13402 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'"
13405 irix* | nonstopux*)
13406 symcode='[BCDEGRST]'
13409 symcode='[BCDEGQRST]'
13420 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13428 # Handle CRLF in mingw tool chain
13432 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13436 # If we're using GNU nm, then use its standard symbol codes.
13437 case `$NM -V 2>&1` in
13438 *GNU* | *'with BFD'*)
13439 symcode='[ABCDGIRSTW]' ;;
13442 # Try without a prefix undercore, then with it.
13443 for ac_symprfx in "" "_"; do
13445 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13446 symxfrm="\\1 $ac_symprfx\\2 \\2"
13448 # Write the raw and C identifiers.
13449 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13451 # Check to see that the pipe works correctly.
13455 cat > conftest.$ac_ext <<EOF
13460 void nm_test_func(){}
13464 int main(){nm_test_var='a';nm_test_func();return(0);}
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; then
13472 # Now try to grab the symbols.
13474 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13475 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && test -s "$nlist"; then
13479 # Try sorting and uniquifying the output.
13480 if sort "$nlist" | uniq > "$nlist"T; then
13481 mv -f "$nlist"T "$nlist"
13486 # Make sure that we snagged all the symbols we need.
13487 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13488 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13489 cat <<EOF > conftest.$ac_ext
13495 # Now generate the symbol file.
13496 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13498 cat <<EOF >> conftest.$ac_ext
13499 #if defined (__STDC__) && __STDC__
13500 # define lt_ptr_t void *
13502 # define lt_ptr_t char *
13506 /* The mapping between symbol names and symbols. */
13511 lt_preloaded_symbols[] =
13514 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13515 cat <<\EOF >> conftest.$ac_ext
13523 # Now try linking the two files.
13524 mv conftest.$ac_objext conftstm.$ac_objext
13525 lt_save_LIBS="$LIBS"
13526 lt_save_CFLAGS="$CFLAGS"
13527 LIBS="conftstm.$ac_objext"
13528 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13536 LIBS="$lt_save_LIBS"
13537 CFLAGS="$lt_save_CFLAGS"
13539 echo "cannot find nm_test_func in $nlist" >&5
13542 echo "cannot find nm_test_var in $nlist" >&5
13545 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13548 echo "$progname: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13551 rm -f conftest* conftst*
13553 # Do not use the global_symbol_pipe unless it works.
13554 if test "$pipe_works" = yes; then
13557 lt_cv_sys_global_symbol_pipe=
13563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13564 lt_cv_sys_global_symbol_to_cdecl=
13566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13567 { echo "$as_me:$LINENO: result: failed" >&5
13568 echo "${ECHO_T}failed" >&6; }
13570 { echo "$as_me:$LINENO: result: ok" >&5
13571 echo "${ECHO_T}ok" >&6; }
13574 { echo "$as_me:$LINENO: checking for objdir" >&5
13575 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13576 if test "${lt_cv_objdir+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 rm -f .libs 2>/dev/null
13580 mkdir .libs 2>/dev/null
13581 if test -d .libs; then
13584 # MS-DOS does not allow filenames that begin with a dot.
13587 rmdir .libs 2>/dev/null
13589 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13590 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13591 objdir=$lt_cv_objdir
13599 # AIX sometimes has problems with the GCC collect2 program. For some
13600 # reason, if we set the COLLECT_NAMES environment variable, the problems
13601 # vanish in a puff of smoke.
13602 if test "X${COLLECT_NAMES+set}" != Xset; then
13604 export COLLECT_NAMES
13609 # Sed substitution that helps us do robust quoting. It backslashifies
13610 # metacharacters that are still active within double-quoted strings.
13611 Xsed='sed -e 1s/^X//'
13612 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13614 # Same as above, but do not quote variable references.
13615 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13617 # Sed substitution to delay expansion of an escaped shell variable in a
13618 # double_quote_subst'ed string.
13619 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13621 # Sed substitution to avoid accidental globbing in evaled expressions
13622 no_glob_subst='s/\*/\\\*/g'
13627 # Global variables:
13628 default_ofile=mklib
13629 can_build_shared=yes
13631 # All known linkers require a `.a' archive for static linking (except MSVC,
13632 # which needs '.lib').
13634 ltmain="$ac_aux_dir/ltmain.sh"
13635 ofile="$default_ofile"
13636 with_gnu_ld="$lt_cv_prog_gnu_ld"
13638 if test -n "$ac_tool_prefix"; then
13639 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13640 set dummy ${ac_tool_prefix}ar; ac_word=$2
13641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13643 if test "${ac_cv_prog_AR+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 if test -n "$AR"; then
13647 ac_cv_prog_AR="$AR" # Let the user override the test.
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13656 ac_cv_prog_AR="${ac_tool_prefix}ar"
13657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13667 if test -n "$AR"; then
13668 { echo "$as_me:$LINENO: result: $AR" >&5
13669 echo "${ECHO_T}$AR" >&6; }
13671 { echo "$as_me:$LINENO: result: no" >&5
13672 echo "${ECHO_T}no" >&6; }
13677 if test -z "$ac_cv_prog_AR"; then
13679 # Extract the first word of "ar", so it can be a program name with args.
13680 set dummy ar; ac_word=$2
13681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13683 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 if test -n "$ac_ct_AR"; then
13687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690 for as_dir in $PATH
13693 test -z "$as_dir" && as_dir=.
13694 for ac_exec_ext in '' $ac_executable_extensions; do
13695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13696 ac_cv_prog_ac_ct_AR="ar"
13697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13706 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13707 if test -n "$ac_ct_AR"; then
13708 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13709 echo "${ECHO_T}$ac_ct_AR" >&6; }
13711 { echo "$as_me:$LINENO: result: no" >&5
13712 echo "${ECHO_T}no" >&6; }
13715 if test "x$ac_ct_AR" = x; then
13718 case $cross_compiling:$ac_tool_warned in
13720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13721 whose name does not start with the host triplet. If you think this
13722 configuration is useful to you, please write to autoconf@gnu.org." >&5
13723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13724 whose name does not start with the host triplet. If you think this
13725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13726 ac_tool_warned=yes ;;
13731 AR="$ac_cv_prog_AR"
13734 if test -n "$ac_tool_prefix"; then
13735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13736 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13739 if test "${ac_cv_prog_RANLIB+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 if test -n "$RANLIB"; then
13743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13752 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 RANLIB=$ac_cv_prog_RANLIB
13763 if test -n "$RANLIB"; then
13764 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13765 echo "${ECHO_T}$RANLIB" >&6; }
13767 { echo "$as_me:$LINENO: result: no" >&5
13768 echo "${ECHO_T}no" >&6; }
13773 if test -z "$ac_cv_prog_RANLIB"; then
13774 ac_ct_RANLIB=$RANLIB
13775 # Extract the first word of "ranlib", so it can be a program name with args.
13776 set dummy ranlib; ac_word=$2
13777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13779 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 if test -n "$ac_ct_RANLIB"; then
13783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786 for as_dir in $PATH
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13792 ac_cv_prog_ac_ct_RANLIB="ranlib"
13793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13802 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13803 if test -n "$ac_ct_RANLIB"; then
13804 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13805 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13807 { echo "$as_me:$LINENO: result: no" >&5
13808 echo "${ECHO_T}no" >&6; }
13811 if test "x$ac_ct_RANLIB" = x; then
13814 case $cross_compiling:$ac_tool_warned in
13816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13817 whose name does not start with the host triplet. If you think this
13818 configuration is useful to you, please write to autoconf@gnu.org." >&5
13819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13820 whose name does not start with the host triplet. If you think this
13821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13822 ac_tool_warned=yes ;;
13824 RANLIB=$ac_ct_RANLIB
13827 RANLIB="$ac_cv_prog_RANLIB"
13830 if test -n "$ac_tool_prefix"; then
13831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13832 set dummy ${ac_tool_prefix}strip; ac_word=$2
13833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13835 if test "${ac_cv_prog_STRIP+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 if test -n "$STRIP"; then
13839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 STRIP=$ac_cv_prog_STRIP
13859 if test -n "$STRIP"; then
13860 { echo "$as_me:$LINENO: result: $STRIP" >&5
13861 echo "${ECHO_T}$STRIP" >&6; }
13863 { echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6; }
13869 if test -z "$ac_cv_prog_STRIP"; then
13871 # Extract the first word of "strip", so it can be a program name with args.
13872 set dummy strip; ac_word=$2
13873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13875 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 if test -n "$ac_ct_STRIP"; then
13879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882 for as_dir in $PATH
13885 test -z "$as_dir" && as_dir=.
13886 for ac_exec_ext in '' $ac_executable_extensions; do
13887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13888 ac_cv_prog_ac_ct_STRIP="strip"
13889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13899 if test -n "$ac_ct_STRIP"; then
13900 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13901 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13903 { echo "$as_me:$LINENO: result: no" >&5
13904 echo "${ECHO_T}no" >&6; }
13907 if test "x$ac_ct_STRIP" = x; then
13910 case $cross_compiling:$ac_tool_warned in
13912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13913 whose name does not start with the host triplet. If you think this
13914 configuration is useful to you, please write to autoconf@gnu.org." >&5
13915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13916 whose name does not start with the host triplet. If you think this
13917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13918 ac_tool_warned=yes ;;
13923 STRIP="$ac_cv_prog_STRIP"
13928 old_CFLAGS="$CFLAGS"
13930 # Set sane defaults for various variables
13931 test -z "$AR" && AR=ar
13932 test -z "$AR_FLAGS" && AR_FLAGS=cru
13933 test -z "$AS" && AS=as
13934 test -z "$CC" && CC=cc
13935 test -z "$LTCC" && LTCC=$CC
13936 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13937 test -z "$DLLTOOL" && DLLTOOL=dlltool
13938 test -z "$LD" && LD=ld
13939 test -z "$LN_S" && LN_S="ln -s"
13940 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13941 test -z "$NM" && NM=nm
13942 test -z "$SED" && SED=sed
13943 test -z "$OBJDUMP" && OBJDUMP=objdump
13944 test -z "$RANLIB" && RANLIB=:
13945 test -z "$STRIP" && STRIP=:
13946 test -z "$ac_objext" && ac_objext=o
13948 # Determine commands to create old-style static archives.
13949 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13950 old_postinstall_cmds='chmod 644 $oldlib'
13951 old_postuninstall_cmds=
13953 if test -n "$RANLIB"; then
13956 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13962 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13965 for cc_temp in $compiler""; do
13967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13976 # Only perform the check for file, if the check method requires it
13977 case $deplibs_check_method in
13979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13980 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13981 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13990 lt_save_MAGIC_CMD="$MAGIC_CMD"
13991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13993 for ac_dir in $ac_dummy; do
13995 test -z "$ac_dir" && ac_dir=.
13996 if test -f $ac_dir/${ac_tool_prefix}file; then
13997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13998 if test -n "$file_magic_test_file"; then
13999 case $deplibs_check_method in
14001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14004 $EGREP "$file_magic_regex" > /dev/null; then
14009 *** Warning: the command libtool uses to detect shared libraries,
14010 *** $file_magic_cmd, produces output that libtool cannot recognize.
14011 *** The result is that libtool may fail to recognize shared libraries
14012 *** as such. This will affect the creation of libtool libraries that
14013 *** depend on shared libraries, but programs linked with such libtool
14014 *** libraries will work regardless of this problem. Nevertheless, you
14015 *** may want to report the problem to your system manager and/or to
14016 *** bug-libtool@gnu.org
14026 MAGIC_CMD="$lt_save_MAGIC_CMD"
14031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14032 if test -n "$MAGIC_CMD"; then
14033 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14034 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14036 { echo "$as_me:$LINENO: result: no" >&5
14037 echo "${ECHO_T}no" >&6; }
14040 if test -z "$lt_cv_path_MAGIC_CMD"; then
14041 if test -n "$ac_tool_prefix"; then
14042 { echo "$as_me:$LINENO: checking for file" >&5
14043 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14052 lt_save_MAGIC_CMD="$MAGIC_CMD"
14053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14055 for ac_dir in $ac_dummy; do
14057 test -z "$ac_dir" && ac_dir=.
14058 if test -f $ac_dir/file; then
14059 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14060 if test -n "$file_magic_test_file"; then
14061 case $deplibs_check_method in
14063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14066 $EGREP "$file_magic_regex" > /dev/null; then
14071 *** Warning: the command libtool uses to detect shared libraries,
14072 *** $file_magic_cmd, produces output that libtool cannot recognize.
14073 *** The result is that libtool may fail to recognize shared libraries
14074 *** as such. This will affect the creation of libtool libraries that
14075 *** depend on shared libraries, but programs linked with such libtool
14076 *** libraries will work regardless of this problem. Nevertheless, you
14077 *** may want to report the problem to your system manager and/or to
14078 *** bug-libtool@gnu.org
14088 MAGIC_CMD="$lt_save_MAGIC_CMD"
14093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14094 if test -n "$MAGIC_CMD"; then
14095 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14096 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14098 { echo "$as_me:$LINENO: result: no" >&5
14099 echo "${ECHO_T}no" >&6; }
14112 enable_win32_dll=no
14114 # Check whether --enable-libtool-lock was given.
14115 if test "${enable_libtool_lock+set}" = set; then
14116 enableval=$enable_libtool_lock;
14119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14122 # Check whether --with-pic was given.
14123 if test "${with_pic+set}" = set; then
14124 withval=$with_pic; pic_mode="$withval"
14129 test -z "$pic_mode" && pic_mode=default
14131 # Use C for the default configuration in the libtool script
14135 ac_cpp='$CPP $CPPFLAGS'
14136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14141 # Source file extension for C test sources.
14144 # Object file extension for compiled C test sources.
14148 # Code to be used in simple compile tests
14149 lt_simple_compile_test_code="int some_variable = 0;\n"
14151 # Code to be used in simple link tests
14152 lt_simple_link_test_code='int main(){return(0);}\n'
14155 # If no C compiler was specified, use CC.
14158 # If no C compiler flags were specified, use CFLAGS.
14159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14161 # Allow CC to be a program name with arguments.
14165 # save warnings/boilerplate of simple test code
14166 ac_outfile=conftest.$ac_objext
14167 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14169 _lt_compiler_boilerplate=`cat conftest.err`
14172 ac_outfile=conftest.$ac_objext
14173 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14175 _lt_linker_boilerplate=`cat conftest.err`
14180 lt_prog_compiler_no_builtin_flag=
14182 if test "$GCC" = yes; then
14183 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14186 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14187 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14188 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 lt_cv_prog_compiler_rtti_exceptions=no
14192 ac_outfile=conftest.$ac_objext
14193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194 lt_compiler_flag="-fno-rtti -fno-exceptions"
14195 # Insert the option either (1) after the last *FLAGS variable, or
14196 # (2) before a word containing "conftest.", or (3) at the end.
14197 # Note that $ac_compile itself does not contain backslashes and begins
14198 # with a dollar sign (not a hyphen), so the echo should work correctly.
14199 # The option is referenced via a variable to avoid confusing sed.
14200 lt_compile=`echo "$ac_compile" | $SED \
14201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14203 -e 's:$: $lt_compiler_flag:'`
14204 (eval echo "\"\$as_me:14204: $lt_compile\"" >&5)
14205 (eval "$lt_compile" 2>conftest.err)
14207 cat conftest.err >&5
14208 echo "$as_me:14208: \$? = $ac_status" >&5
14209 if (exit $ac_status) && test -s "$ac_outfile"; then
14210 # The compiler can only warn and ignore the option if not recognized
14211 # So say no if there are warnings other than the usual output.
14212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14215 lt_cv_prog_compiler_rtti_exceptions=yes
14221 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14222 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14224 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14225 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14232 lt_prog_compiler_wl=
14233 lt_prog_compiler_pic=
14234 lt_prog_compiler_static=
14236 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14237 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14239 if test "$GCC" = yes; then
14240 lt_prog_compiler_wl='-Wl,'
14241 lt_prog_compiler_static='-static'
14245 # All AIX code is PIC.
14246 if test "$host_cpu" = ia64; then
14247 # AIX 5 now supports IA64 processor
14248 lt_prog_compiler_static='-Bstatic'
14253 # FIXME: we need at least 68020 code to build shared libraries, but
14254 # adding the `-m68020' flag to GCC prevents building anything better,
14256 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14259 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14260 # PIC is the default for these OSes.
14263 mingw* | pw32* | os2*)
14264 # This hack is so that the source file can tell whether it is being
14265 # built for inclusion in a dll (and should export symbols for example).
14266 lt_prog_compiler_pic='-DDLL_EXPORT'
14269 darwin* | rhapsody*)
14270 # PIC is the default on this platform
14271 # Common symbols not allowed in MH_DYLIB files
14272 lt_prog_compiler_pic='-fno-common'
14276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14277 # Instead, we relocate shared libraries at runtime.
14281 # Just because we use GCC doesn't mean we suddenly get shared libraries
14282 # on systems that don't support them.
14283 lt_prog_compiler_can_build_shared=no
14288 if test -d /usr/nec; then
14289 lt_prog_compiler_pic=-Kconform_pic
14294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14295 # not for PA HP-UX.
14301 lt_prog_compiler_pic='-fPIC'
14307 lt_prog_compiler_pic='-fPIC'
14311 # PORTME Check for flag to pass linker flags through the system compiler.
14314 lt_prog_compiler_wl='-Wl,'
14315 if test "$host_cpu" = ia64; then
14316 # AIX 5 now supports IA64 processor
14317 lt_prog_compiler_static='-Bstatic'
14319 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14323 # PIC is the default on this platform
14324 # Common symbols not allowed in MH_DYLIB files
14325 case $cc_basename in
14327 lt_prog_compiler_pic='-qnocommon'
14328 lt_prog_compiler_wl='-Wl,'
14333 mingw* | pw32* | os2*)
14334 # This hack is so that the source file can tell whether it is being
14335 # built for inclusion in a dll (and should export symbols for example).
14336 lt_prog_compiler_pic='-DDLL_EXPORT'
14339 hpux9* | hpux10* | hpux11*)
14340 lt_prog_compiler_wl='-Wl,'
14341 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14342 # not for PA HP-UX.
14348 lt_prog_compiler_pic='+Z'
14351 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14352 lt_prog_compiler_static='${wl}-a ${wl}archive'
14355 irix5* | irix6* | nonstopux*)
14356 lt_prog_compiler_wl='-Wl,'
14357 # PIC (with -KPIC) is the default.
14358 lt_prog_compiler_static='-non_shared'
14362 lt_prog_compiler_pic='-KPIC'
14363 lt_prog_compiler_static='-Bstatic'
14367 case $cc_basename in
14369 lt_prog_compiler_wl='-Wl,'
14370 lt_prog_compiler_pic='-KPIC'
14371 lt_prog_compiler_static='-static'
14373 pgcc* | pgf77* | pgf90* | pgf95*)
14374 # Portland Group compilers (*not* the Pentium gcc compiler,
14375 # which looks to be a dead project)
14376 lt_prog_compiler_wl='-Wl,'
14377 lt_prog_compiler_pic='-fpic'
14378 lt_prog_compiler_static='-Bstatic'
14381 lt_prog_compiler_wl='-Wl,'
14382 # All Alpha code is PIC.
14383 lt_prog_compiler_static='-non_shared'
14388 osf3* | osf4* | osf5*)
14389 lt_prog_compiler_wl='-Wl,'
14390 # All OSF/1 code is PIC.
14391 lt_prog_compiler_static='-non_shared'
14395 lt_prog_compiler_pic='-KPIC'
14396 lt_prog_compiler_static='-Bstatic'
14397 case $cc_basename in
14398 f77* | f90* | f95*)
14399 lt_prog_compiler_wl='-Qoption ld ';;
14401 lt_prog_compiler_wl='-Wl,';;
14406 lt_prog_compiler_wl='-Qoption ld '
14407 lt_prog_compiler_pic='-PIC'
14408 lt_prog_compiler_static='-Bstatic'
14411 sysv4 | sysv4.2uw2* | sysv4.3*)
14412 lt_prog_compiler_wl='-Wl,'
14413 lt_prog_compiler_pic='-KPIC'
14414 lt_prog_compiler_static='-Bstatic'
14418 if test -d /usr/nec ;then
14419 lt_prog_compiler_pic='-Kconform_pic'
14420 lt_prog_compiler_static='-Bstatic'
14424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14425 lt_prog_compiler_wl='-Wl,'
14426 lt_prog_compiler_pic='-KPIC'
14427 lt_prog_compiler_static='-Bstatic'
14431 lt_prog_compiler_wl='-Wl,'
14432 lt_prog_compiler_can_build_shared=no
14436 lt_prog_compiler_pic='-pic'
14437 lt_prog_compiler_static='-Bstatic'
14441 lt_prog_compiler_can_build_shared=no
14446 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14447 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14450 # Check to make sure the PIC flag actually works.
14452 if test -n "$lt_prog_compiler_pic"; then
14454 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14455 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14456 if test "${lt_prog_compiler_pic_works+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 lt_prog_compiler_pic_works=no
14460 ac_outfile=conftest.$ac_objext
14461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14463 # Insert the option either (1) after the last *FLAGS variable, or
14464 # (2) before a word containing "conftest.", or (3) at the end.
14465 # Note that $ac_compile itself does not contain backslashes and begins
14466 # with a dollar sign (not a hyphen), so the echo should work correctly.
14467 # The option is referenced via a variable to avoid confusing sed.
14468 lt_compile=`echo "$ac_compile" | $SED \
14469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14471 -e 's:$: $lt_compiler_flag:'`
14472 (eval echo "\"\$as_me:14472: $lt_compile\"" >&5)
14473 (eval "$lt_compile" 2>conftest.err)
14475 cat conftest.err >&5
14476 echo "$as_me:14476: \$? = $ac_status" >&5
14477 if (exit $ac_status) && test -s "$ac_outfile"; then
14478 # The compiler can only warn and ignore the option if not recognized
14479 # So say no if there are warnings other than the usual output.
14480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14483 lt_prog_compiler_pic_works=yes
14489 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14490 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14492 if test x"$lt_prog_compiler_pic_works" = xyes; then
14493 case $lt_prog_compiler_pic in
14495 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14498 lt_prog_compiler_pic=
14499 lt_prog_compiler_can_build_shared=no
14504 # For platforms which do not support PIC, -DPIC is meaningless:
14506 lt_prog_compiler_pic=
14509 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14514 # Check to make sure the static flag actually works.
14516 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14517 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14518 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14519 if test "${lt_prog_compiler_static_works+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 lt_prog_compiler_static_works=no
14523 save_LDFLAGS="$LDFLAGS"
14524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14525 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14527 # The linker can only warn and ignore the option if not recognized
14528 # So say no if there are warnings
14529 if test -s conftest.err; then
14530 # Append any errors to the config.log.
14531 cat conftest.err 1>&5
14532 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14534 if diff conftest.exp conftest.er2 >/dev/null; then
14535 lt_prog_compiler_static_works=yes
14538 lt_prog_compiler_static_works=yes
14542 LDFLAGS="$save_LDFLAGS"
14545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14546 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14548 if test x"$lt_prog_compiler_static_works" = xyes; then
14551 lt_prog_compiler_static=
14555 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 lt_cv_prog_compiler_c_o=no
14561 $rm -r conftest 2>/dev/null
14565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14567 lt_compiler_flag="-o out/conftest2.$ac_objext"
14568 # Insert the option either (1) after the last *FLAGS variable, or
14569 # (2) before a word containing "conftest.", or (3) at the end.
14570 # Note that $ac_compile itself does not contain backslashes and begins
14571 # with a dollar sign (not a hyphen), so the echo should work correctly.
14572 lt_compile=`echo "$ac_compile" | $SED \
14573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14575 -e 's:$: $lt_compiler_flag:'`
14576 (eval echo "\"\$as_me:14576: $lt_compile\"" >&5)
14577 (eval "$lt_compile" 2>out/conftest.err)
14579 cat out/conftest.err >&5
14580 echo "$as_me:14580: \$? = $ac_status" >&5
14581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14583 # The compiler can only warn and ignore the option if not recognized
14584 # So say no if there are warnings
14585 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14588 lt_cv_prog_compiler_c_o=yes
14593 # SGI C++ compiler will create directory out/ii_files/ for
14594 # template instantiation
14595 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14596 $rm out/* && rmdir out
14602 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14603 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14606 hard_links="nottested"
14607 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14608 # do not overwrite the value of need_locks provided by the user
14609 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14610 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615 ln conftest.a conftest.b 2>&5 || hard_links=no
14616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14617 { echo "$as_me:$LINENO: result: $hard_links" >&5
14618 echo "${ECHO_T}$hard_links" >&6; }
14619 if test "$hard_links" = no; then
14620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14621 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14628 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14632 allow_undefined_flag=
14633 enable_shared_with_static_runtimes=no
14635 archive_expsym_cmds=
14636 old_archive_From_new_cmds=
14637 old_archive_from_expsyms_cmds=
14638 export_dynamic_flag_spec=
14639 whole_archive_flag_spec=
14640 thread_safe_flag_spec=
14641 hardcode_libdir_flag_spec=
14642 hardcode_libdir_flag_spec_ld=
14643 hardcode_libdir_separator=
14645 hardcode_minus_L=no
14646 hardcode_shlibpath_var=unsupported
14647 link_all_deplibs=unknown
14648 hardcode_automatic=no
14650 module_expsym_cmds=
14651 always_export_symbols=no
14652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14653 # include_expsyms should be a list of space-separated symbols to be *always*
14654 # included in the symbol list
14656 # exclude_expsyms can be an extended regexp of symbols to exclude
14657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14659 # as well as any symbol that contains `d'.
14660 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14662 # platforms (ab)use it in PIC code, but their linkers get confused if
14663 # the symbol is explicitly referenced. Since portable code cannot
14664 # rely on this symbol name, it's probably fine to never include it in
14665 # preloaded symbol tables.
14666 extract_expsyms_cmds=
14667 # Just being paranoid about ensuring that cc_basename is set.
14668 for cc_temp in $compiler""; do
14670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14679 cygwin* | mingw* | pw32*)
14680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14681 # When not using gcc, we currently assume that we are using
14682 # Microsoft Visual C++.
14683 if test "$GCC" != yes; then
14688 # we just hope/assume this is gcc and not c89 (= MSVC++)
14697 if test "$with_gnu_ld" = yes; then
14698 # If archive_cmds runs LD, not CC, wlarc should be empty
14701 # Set some defaults for GNU ld with shared library support. These
14702 # are reset later if shared libraries are not supported. Putting them
14703 # here allows them to be overridden if necessary.
14704 runpath_var=LD_RUN_PATH
14705 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14706 export_dynamic_flag_spec='${wl}--export-dynamic'
14707 # ancient GNU ld didn't support --whole-archive et. al.
14708 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14709 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14711 whole_archive_flag_spec=
14713 supports_anon_versioning=no
14714 case `$LD -v 2>/dev/null` in
14715 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14718 *\ 2.11.*) ;; # other 2.11 versions
14719 *) supports_anon_versioning=yes ;;
14722 # See if GNU ld supports shared libraries.
14724 aix3* | aix4* | aix5*)
14725 # On AIX/PPC, the GNU linker is very broken
14726 if test "$host_cpu" != ia64; then
14730 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14731 *** to be unable to reliably create shared libraries on AIX.
14732 *** Therefore, libtool is disabling shared libraries support. If you
14733 *** really care for shared libraries, you may want to modify your PATH
14734 *** so that a non-GNU linker is found, and then restart.
14741 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)'
14742 hardcode_libdir_flag_spec='-L$libdir'
14743 hardcode_minus_L=yes
14745 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14746 # that the semantics of dynamic libraries on AmigaOS, at least up
14747 # to version 4, is to share data among multiple programs linked
14748 # with the same dynamic library. Since this doesn't match the
14749 # behavior of shared libraries on other platforms, we can't use
14755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14756 allow_undefined_flag=unsupported
14757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14758 # support --undefined. This deserves some investigation. FIXME
14759 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14765 cygwin* | mingw* | pw32*)
14766 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14767 # as there is no search path for DLLs.
14768 hardcode_libdir_flag_spec='-L$libdir'
14769 allow_undefined_flag=unsupported
14770 always_export_symbols=no
14771 enable_shared_with_static_runtimes=yes
14772 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14774 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14776 # If the export-symbols file already is a .def file (1st line
14777 # is EXPORTS), use it as is; otherwise, prepend...
14778 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14779 cp $export_symbols $output_objdir/$soname.def;
14781 echo EXPORTS > $output_objdir/$soname.def;
14782 cat $export_symbols >> $output_objdir/$soname.def;
14784 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14792 hardcode_shlibpath_var=no
14793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14794 export_dynamic_flag_spec='${wl}-E'
14795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14796 # Instead, shared libraries are loaded at an image base (0x10000000 by
14797 # default) and relocated if they conflict, which is a slow very memory
14798 # consuming and fragmenting process. To avoid this, we pick a random,
14799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14802 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'
14806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14808 case $cc_basename,$host_cpu in
14809 pgcc*) # Portland Group C compiler
14810 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'
14811 tmp_addflag=' $pic_flag'
14813 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14814 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'
14815 tmp_addflag=' $pic_flag -Mnomain' ;;
14816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14817 tmp_addflag=' -i_dynamic' ;;
14818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14819 tmp_addflag=' -i_dynamic -nofor_main' ;;
14820 ifc* | ifort*) # Intel Fortran compiler
14821 tmp_addflag=' -nofor_main' ;;
14823 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14825 if test $supports_anon_versioning = yes; then
14826 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14828 $echo "local: *; };" >> $output_objdir/$libname.ver~
14829 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14847 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14852 *** create shared libraries on Solaris systems. Therefore, libtool
14853 *** is disabling shared libraries support. We urge you to upgrade GNU
14854 *** binutils to release 2.9.1 or newer. Another option is to modify
14855 *** your PATH or compiler configuration so that the native linker is
14856 *** used, and then restart.
14859 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14868 case `$LD -v 2>&1` in
14869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14873 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14874 *** reliably create shared libraries on SCO systems. Therefore, libtool
14875 *** is disabling shared libraries support. We urge you to upgrade GNU
14876 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14877 *** your PATH or compiler configuration so that the native linker is
14878 *** used, and then restart.
14883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14884 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14895 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14897 hardcode_direct=yes
14898 hardcode_shlibpath_var=no
14902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14911 if test "$ld_shlibs" = no; then
14913 hardcode_libdir_flag_spec=
14914 export_dynamic_flag_spec=
14915 whole_archive_flag_spec=
14918 # PORTME fill in a description of your system's linker (not GNU ld)
14921 allow_undefined_flag=unsupported
14922 always_export_symbols=yes
14923 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'
14924 # Note: this linker hardcodes the directories in LIBPATH if there
14925 # are no directories specified by -L.
14926 hardcode_minus_L=yes
14927 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14928 # Neither direct hardcoding nor static linking is supported with a
14930 hardcode_direct=unsupported
14935 if test "$host_cpu" = ia64; then
14936 # On IA64, the linker does run time linking by default, so we don't
14937 # have to do anything special.
14938 aix_use_runtimelinking=no
14939 exp_sym_flag='-Bexport'
14942 # If we're using GNU nm, then we don't want the "-C" option.
14943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14944 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14945 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'
14947 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'
14949 aix_use_runtimelinking=no
14951 # Test if we are trying to use run time linking or normal
14952 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14953 # need to do runtime linking.
14954 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14955 for ld_flag in $LDFLAGS; do
14956 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14957 aix_use_runtimelinking=yes
14964 exp_sym_flag='-bexport'
14965 no_entry_flag='-bnoentry'
14968 # When large executables or shared objects are built, AIX ld can
14969 # have problems creating the table of contents. If linking a library
14970 # or program results in "error TOC overflow" add -mminimal-toc to
14971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14975 hardcode_direct=yes
14976 hardcode_libdir_separator=':'
14977 link_all_deplibs=yes
14979 if test "$GCC" = yes; then
14980 case $host_os in aix4.[012]|aix4.[012].*)
14981 # We only want to do this on AIX 4.2 and lower, the check
14982 # below for broken collect2 doesn't work under 4.3+
14983 collect2name=`${CC} -print-prog-name=collect2`
14984 if test -f "$collect2name" && \
14985 strings "$collect2name" | grep resolve_lib_name >/dev/null
14987 # We have reworked collect2
14988 hardcode_direct=yes
14990 # We have old collect2
14991 hardcode_direct=unsupported
14992 # It fails to find uninstalled libraries when the uninstalled
14993 # path is not listed in the libpath. Setting hardcode_minus_L
14994 # to unsupported forces relinking
14995 hardcode_minus_L=yes
14996 hardcode_libdir_flag_spec='-L$libdir'
14997 hardcode_libdir_separator=
15001 shared_flag='-shared'
15002 if test "$aix_use_runtimelinking" = yes; then
15003 shared_flag="$shared_flag "'${wl}-G'
15007 if test "$host_cpu" = ia64; then
15008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15009 # chokes on -Wl,-G. The following line is correct:
15012 if test "$aix_use_runtimelinking" = yes; then
15013 shared_flag='${wl}-G'
15015 shared_flag='${wl}-bM:SRE'
15020 # It seems that -bexpall does not export symbols beginning with
15021 # underscore (_), so it is better to generate a list of symbols to export.
15022 always_export_symbols=yes
15023 if test "$aix_use_runtimelinking" = yes; then
15024 # Warning - without using the other runtime loading flags (-brtl),
15025 # -berok will link without error, but may produce a broken library.
15026 allow_undefined_flag='-berok'
15027 # Determine the default libpath from the value encoded in an empty executable.
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15043 rm -f conftest.$ac_objext conftest$ac_exeext
15044 if { (ac_try="$ac_link"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest$ac_exeext'
15068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15080 # Check for a 64-bit object if we didn't find anything.
15081 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; }
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15090 rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext conftest.$ac_ext
15092 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15094 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15095 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"
15097 if test "$host_cpu" = ia64; then
15098 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15099 allow_undefined_flag="-z nodefs"
15100 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"
15102 # Determine the default libpath from the value encoded in an empty executable.
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15118 rm -f conftest.$ac_objext conftest$ac_exeext
15119 if { (ac_try="$ac_link"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15133 { (case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_try") 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest$ac_exeext'
15143 { (case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_try") 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15155 # Check for a 64-bit object if we didn't find anything.
15156 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; }
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15165 rm -f core conftest.err conftest.$ac_objext \
15166 conftest$ac_exeext conftest.$ac_ext
15167 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15169 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15170 # Warning - without using the other run time loading flags,
15171 # -berok will link without error, but may produce a broken library.
15172 no_undefined_flag=' ${wl}-bernotok'
15173 allow_undefined_flag=' ${wl}-berok'
15174 # Exported symbols can be pulled into shared objects from archives
15175 whole_archive_flag_spec='$convenience'
15176 archive_cmds_need_lc=yes
15177 # This is similar to how AIX traditionally builds its shared libraries.
15178 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'
15184 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)'
15185 hardcode_libdir_flag_spec='-L$libdir'
15186 hardcode_minus_L=yes
15187 # see comment about different semantics on the GNU ld section
15192 export_dynamic_flag_spec=-rdynamic
15195 cygwin* | mingw* | pw32*)
15196 # When not using gcc, we currently assume that we are using
15197 # Microsoft Visual C++.
15198 # hardcode_libdir_flag_spec is actually meaningless, as there is
15199 # no search path for DLLs.
15200 hardcode_libdir_flag_spec=' '
15201 allow_undefined_flag=unsupported
15202 # Tell ltmain to make .lib files, not .a files.
15204 # Tell ltmain to make .dll files, not .so files.
15206 # FIXME: Setting linknames here is a bad hack.
15207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15208 # The linker will automatically build a .lib file if we build a DLL.
15209 old_archive_From_new_cmds='true'
15210 # FIXME: Should let the user specify the lib program.
15211 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15212 fix_srcfile_path='`cygpath -w "$srcfile"`'
15213 enable_shared_with_static_runtimes=yes
15216 darwin* | rhapsody*)
15218 rhapsody* | darwin1.[012])
15219 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15222 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15223 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225 case ${MACOSX_DEPLOYMENT_TARGET} in
15227 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15230 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15236 archive_cmds_need_lc=no
15238 hardcode_automatic=yes
15239 hardcode_shlibpath_var=unsupported
15240 whole_archive_flag_spec=''
15241 link_all_deplibs=yes
15242 if test "$GCC" = yes ; then
15243 output_verbose_link_cmd='echo'
15244 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15245 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15246 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15247 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}'
15248 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}'
15250 case $cc_basename in
15252 output_verbose_link_cmd='echo'
15253 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15254 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15256 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}'
15257 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}'
15267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15268 hardcode_libdir_flag_spec='-L$libdir'
15269 hardcode_shlibpath_var=no
15276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15277 # support. Future versions do this automatically, but an explicit c++rt0.o
15278 # does not break anything, and helps significantly (at the cost of a little
15281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15282 hardcode_libdir_flag_spec='-R$libdir'
15283 hardcode_direct=yes
15284 hardcode_shlibpath_var=no
15287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15290 hardcode_direct=yes
15291 hardcode_minus_L=yes
15292 hardcode_shlibpath_var=no
15295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15296 freebsd* | kfreebsd*-gnu | dragonfly*)
15297 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15298 hardcode_libdir_flag_spec='-R$libdir'
15299 hardcode_direct=yes
15300 hardcode_shlibpath_var=no
15304 if test "$GCC" = yes; then
15305 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'
15307 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'
15309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15310 hardcode_libdir_separator=:
15311 hardcode_direct=yes
15313 # hardcode_minus_L: Not really in the search PATH,
15314 # but as the default location of the library.
15315 hardcode_minus_L=yes
15316 export_dynamic_flag_spec='${wl}-E'
15320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15325 if test "$with_gnu_ld" = no; then
15326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15327 hardcode_libdir_separator=:
15329 hardcode_direct=yes
15330 export_dynamic_flag_spec='${wl}-E'
15332 # hardcode_minus_L: Not really in the search PATH,
15333 # but as the default location of the library.
15334 hardcode_minus_L=yes
15339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15354 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15364 if test "$with_gnu_ld" = no; then
15365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15366 hardcode_libdir_separator=:
15370 hardcode_libdir_flag_spec_ld='+b $libdir'
15372 hardcode_shlibpath_var=no
15375 hardcode_direct=yes
15376 export_dynamic_flag_spec='${wl}-E'
15378 # hardcode_minus_L: Not really in the search PATH,
15379 # but as the default location of the library.
15380 hardcode_minus_L=yes
15386 irix5* | irix6* | nonstopux*)
15387 if test "$GCC" = yes; then
15388 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'
15390 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'
15391 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15394 hardcode_libdir_separator=:
15395 link_all_deplibs=yes
15399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15402 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15404 hardcode_libdir_flag_spec='-R$libdir'
15405 hardcode_direct=yes
15406 hardcode_shlibpath_var=no
15410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15411 hardcode_direct=yes
15412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15413 hardcode_libdir_separator=:
15414 hardcode_shlibpath_var=no
15418 hardcode_direct=yes
15419 hardcode_shlibpath_var=no
15420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15422 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15424 export_dynamic_flag_spec='${wl}-E'
15427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15429 hardcode_libdir_flag_spec='-R$libdir'
15432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15440 hardcode_libdir_flag_spec='-L$libdir'
15441 hardcode_minus_L=yes
15442 allow_undefined_flag=unsupported
15443 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'
15444 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15448 if test "$GCC" = yes; then
15449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15450 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'
15452 allow_undefined_flag=' -expect_unresolved \*'
15453 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'
15455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15456 hardcode_libdir_separator=:
15459 osf4* | osf5*) # as osf3* with the addition of -msym flag
15460 if test "$GCC" = yes; then
15461 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15462 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'
15463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15465 allow_undefined_flag=' -expect_unresolved \*'
15466 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'
15467 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15468 $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'
15470 # Both c and cxx compiler support -rpath directly
15471 hardcode_libdir_flag_spec='-rpath $libdir'
15473 hardcode_libdir_separator=:
15477 no_undefined_flag=' -z text'
15478 if test "$GCC" = yes; then
15480 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15481 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15482 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15485 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15487 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15489 hardcode_libdir_flag_spec='-R$libdir'
15490 hardcode_shlibpath_var=no
15492 solaris2.[0-5] | solaris2.[0-5].*) ;;
15494 # The compiler driver will combine linker options so we
15495 # cannot just pass the convience library names through
15496 # without $wl, iff we do not link with $LD.
15497 # Luckily, gcc supports the same syntax we need for Sun Studio.
15498 # Supported since Solaris 2.6 (maybe 2.5.1?)
15501 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15503 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' ;;
15506 link_all_deplibs=yes
15510 if test "x$host_vendor" = xsequent; then
15511 # Use $CC to link under sequent, because it throws in some extra .o
15512 # files that make .init and .fini sections work.
15513 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15515 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15517 hardcode_libdir_flag_spec='-L$libdir'
15518 hardcode_direct=yes
15519 hardcode_minus_L=yes
15520 hardcode_shlibpath_var=no
15524 case $host_vendor in
15526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15527 hardcode_direct=yes # is this really true???
15530 ## LD is ld it makes a PLAMLIB
15531 ## CC just makes a GrossModule.
15532 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15533 reload_cmds='$CC -r -o $output$reload_objs'
15537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15538 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15541 runpath_var='LD_RUN_PATH'
15542 hardcode_shlibpath_var=no
15546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 hardcode_shlibpath_var=no
15548 export_dynamic_flag_spec='-Bexport'
15552 if test -d /usr/nec; then
15553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_shlibpath_var=no
15555 runpath_var=LD_RUN_PATH
15556 hardcode_runpath_var=yes
15561 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15562 no_undefined_flag='${wl}-z,text'
15563 archive_cmds_need_lc=no
15564 hardcode_shlibpath_var=no
15565 runpath_var='LD_RUN_PATH'
15567 if test "$GCC" = yes; then
15568 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15569 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 sysv5* | sco3.2v5* | sco5v6*)
15577 # Note: We can NOT use -z defs as we might desire, because we do not
15578 # link with -lc, and that would cause any symbols used from libc to
15579 # always be unresolved, which means just about no library would
15580 # ever link correctly. If we're not using GNU ld we use -z text
15581 # though, which does catch some bad symbols but isn't as heavy-handed
15583 no_undefined_flag='${wl}-z,text'
15584 allow_undefined_flag='${wl}-z,nodefs'
15585 archive_cmds_need_lc=no
15586 hardcode_shlibpath_var=no
15587 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15588 hardcode_libdir_separator=':'
15589 link_all_deplibs=yes
15590 export_dynamic_flag_spec='${wl}-Bexport'
15591 runpath_var='LD_RUN_PATH'
15593 if test "$GCC" = yes; then
15594 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15604 hardcode_libdir_flag_spec='-L$libdir'
15605 hardcode_shlibpath_var=no
15614 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15615 echo "${ECHO_T}$ld_shlibs" >&6; }
15616 test "$ld_shlibs" = no && can_build_shared=no
15619 # Do we need to explicitly link libc?
15621 case "x$archive_cmds_need_lc" in
15623 # Assume -lc should be added
15624 archive_cmds_need_lc=yes
15626 if test "$enable_shared" = yes && test "$GCC" = yes; then
15627 case $archive_cmds in
15629 # FIXME: we may have to deal with multi-command sequences.
15632 # Test whether the compiler implicitly links with -lc since on some
15633 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15634 # to ld, don't add -lc before -lgcc.
15635 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15636 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15638 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } 2>conftest.err; then
15647 libobjs=conftest.$ac_objext
15649 wl=$lt_prog_compiler_wl
15650 pic_flag=$lt_prog_compiler_pic
15656 lt_save_allow_undefined_flag=$allow_undefined_flag
15657 allow_undefined_flag=
15658 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15659 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }
15664 archive_cmds_need_lc=no
15666 archive_cmds_need_lc=yes
15668 allow_undefined_flag=$lt_save_allow_undefined_flag
15670 cat conftest.err 1>&5
15673 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15674 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15681 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15682 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15683 library_names_spec=
15684 libname_spec='lib$name'
15688 postuninstall_cmds=
15692 shlibpath_overrides_runpath=unknown
15694 dynamic_linker="$host_os ld.so"
15695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15696 if test "$GCC" = yes; then
15697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15699 # if the path contains ";" then we assume it to be the separator
15700 # otherwise default to the standard path separator (i.e. ":") - it is
15701 # assumed that no part of a normal pathname contains ";" but that should
15702 # okay in the real world where ";" in dirpaths is itself problematic.
15703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15710 need_lib_prefix=unknown
15711 hardcode_into_libs=no
15713 # when you set need_version to no, make sure it does not cause -set_version
15714 # flags to be left without arguments
15715 need_version=unknown
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15721 shlibpath_var=LIBPATH
15723 # AIX 3 has no versioning support, so we append a major version to the name.
15724 soname_spec='${libname}${release}${shared_ext}$major'
15731 hardcode_into_libs=yes
15732 if test "$host_cpu" = ia64; then
15733 # AIX 5 supports IA64
15734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15735 shlibpath_var=LD_LIBRARY_PATH
15737 # With GCC up to 2.95.x, collect2 would create an import file
15738 # for dependence libraries. The import file would start with
15739 # the line `#! .'. This would cause the generated library to
15740 # depend on `.', always an invalid library. This was fixed in
15741 # development snapshots of GCC prior to 3.0.
15743 aix4 | aix4.[01] | aix4.[01].*)
15744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15749 can_build_shared=no
15753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15754 # soname into executable. Probably we can add versioning support to
15755 # collect2, so additional links can be useful in future.
15756 if test "$aix_use_runtimelinking" = yes; then
15757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15758 # instead of lib<name>.a to let people know that these are not
15759 # typical AIX shared libraries.
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762 # We preserve .a as extension for shared libraries through AIX4.2
15763 # and later when we are not doing run time linking.
15764 library_names_spec='${libname}${release}.a $libname.a'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15767 shlibpath_var=LIBPATH
15772 library_names_spec='$libname.ixlibrary $libname.a'
15773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15774 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'
15778 library_names_spec='${libname}${shared_ext}'
15779 dynamic_linker="$host_os ld.so"
15780 shlibpath_var=LIBRARY_PATH
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787 soname_spec='${libname}${release}${shared_ext}$major'
15788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15792 # the default ld.so.conf also contains /usr/contrib/lib and
15793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15794 # libtool to hard-code these into programs
15797 cygwin* | mingw* | pw32*)
15798 version_type=windows
15803 case $GCC,$host_os in
15804 yes,cygwin* | yes,mingw* | yes,pw32*)
15805 library_names_spec='$libname.dll.a'
15806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15807 postinstall_cmds='base_file=`basename \${file}`~
15808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15809 dldir=$destdir/`dirname \$dlpath`~
15810 test -d \$dldir || mkdir -p \$dldir~
15811 $install_prog $dir/$dlname \$dldir/$dlname~
15812 chmod a+x \$dldir/$dlname'
15813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15814 dlpath=$dir/\$dldll~
15816 shlibpath_overrides_runpath=yes
15820 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15821 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15822 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15825 # MinGW DLLs use traditional 'lib' prefix
15826 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15827 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15828 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15829 # It is most probably a Windows format PATH printed by
15830 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15831 # path with ; separators, and with drive letters. We can handle the
15832 # drive letters (cygwin fileutils understands them), so leave them,
15833 # especially as we might pass files found there to a mingw objdump,
15834 # which wouldn't understand a cygwinified path. Ahh.
15835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15841 # pw32 DLLs use 'pw' prefix rather than 'lib'
15842 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15848 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15851 dynamic_linker='Win32 ld.exe'
15852 # FIXME: first we should search . and the directory the executable is in
15856 darwin* | rhapsody*)
15857 dynamic_linker="$host_os dyld"
15858 version_type=darwin
15861 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15862 soname_spec='${libname}${release}${major}$shared_ext'
15863 shlibpath_overrides_runpath=yes
15864 shlibpath_var=DYLD_LIBRARY_PATH
15865 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15866 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15867 if test "$GCC" = yes; then
15868 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"`
15870 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15872 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=no
15896 hardcode_into_libs=yes
15897 dynamic_linker='GNU ld.so'
15900 freebsd* | dragonfly*)
15901 # DragonFly does not have aout. When/if they implement a new
15902 # versioning mechanism, adjust this.
15903 if test -x /usr/bin/objformat; then
15904 objformat=`/usr/bin/objformat`
15907 freebsd[123]*) objformat=aout ;;
15908 *) objformat=elf ;;
15911 version_type=freebsd-$objformat
15912 case $version_type in
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15923 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=yes
15928 freebsd3.[01]* | freebsdelf3.[01]*)
15929 shlibpath_overrides_runpath=yes
15930 hardcode_into_libs=yes
15932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15934 shlibpath_overrides_runpath=no
15935 hardcode_into_libs=yes
15937 freebsd*) # from 4.6 on
15938 shlibpath_overrides_runpath=yes
15939 hardcode_into_libs=yes
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 shlibpath_var=LD_LIBRARY_PATH
15951 hardcode_into_libs=yes
15954 hpux9* | hpux10* | hpux11*)
15955 # Give a soname corresponding to the major version so that dld.sl refuses to
15956 # link against other versions.
15963 hardcode_into_libs=yes
15964 dynamic_linker="$host_os dld.so"
15965 shlibpath_var=LD_LIBRARY_PATH
15966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 if test "X$HPUX_IA64_MODE" = X32; then
15970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15978 hardcode_into_libs=yes
15979 dynamic_linker="$host_os dld.sl"
15980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15989 dynamic_linker="$host_os dld.sl"
15990 shlibpath_var=SHLIB_PATH
15991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15996 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15997 postinstall_cmds='chmod 555 $lib'
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 shlibpath_overrides_runpath=no
16009 hardcode_into_libs=yes
16012 irix5* | irix6* | nonstopux*)
16014 nonstopux*) version_type=nonstopux ;;
16016 if test "$lt_cv_prog_gnu_ld" = yes; then
16024 soname_spec='${libname}${release}${shared_ext}$major'
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16027 irix5* | nonstopux*)
16028 libsuff= shlibsuff=
16031 case $LD in # libtool.m4 will add one of these switches to LD
16032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16033 libsuff= shlibsuff= libmagic=32-bit;;
16034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16035 libsuff=32 shlibsuff=N32 libmagic=N32;;
16036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16038 *) libsuff= shlibsuff= libmagic=never-match;;
16042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16043 shlibpath_overrides_runpath=no
16044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16046 hardcode_into_libs=yes
16049 # No shared lib support for Linux oldld, aout, or coff.
16050 linux*oldld* | linux*aout* | linux*coff*)
16054 # This must be Linux ELF.
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=no
16064 # This implies no fast_install, which is unacceptable.
16065 # Some rework will be needed to allow for fast_install
16066 # before this can be enabled.
16067 hardcode_into_libs=yes
16069 # Append ld.so.conf contents to the search path
16070 if test -f /etc/ld.so.conf; then
16071 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' ' '`
16072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16075 # We used to test for /lib/ld.so.1 and disable shared libraries on
16076 # powerpc, because MkLinux only supported shared libraries with the
16077 # GNU dynamic linker. Since this was broken with cross compilers,
16078 # most powerpc-linux boxes support dynamic linking these days and
16079 # people can always --disable-shared, the test was removed, and we
16080 # assume the GNU/Linux dynamic linker is in use.
16081 dynamic_linker='GNU/Linux ld.so'
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16089 soname_spec='${libname}${release}${shared_ext}$major'
16090 shlibpath_var=LD_LIBRARY_PATH
16091 shlibpath_overrides_runpath=no
16092 hardcode_into_libs=yes
16093 dynamic_linker='GNU ld.so'
16100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16103 dynamic_linker='NetBSD (a.out) ld.so'
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16106 soname_spec='${libname}${release}${shared_ext}$major'
16107 dynamic_linker='NetBSD ld.elf_so'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 shlibpath_overrides_runpath=yes
16111 hardcode_into_libs=yes
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=yes
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16126 soname_spec='${libname}${release}${shared_ext}$major'
16127 shlibpath_var=LD_LIBRARY_PATH
16128 shlibpath_overrides_runpath=yes
16133 sys_lib_dlsearch_path_spec="/usr/lib"
16135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16138 *) need_version=no ;;
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16145 openbsd2.[89] | openbsd2.[89].*)
16146 shlibpath_overrides_runpath=no
16149 shlibpath_overrides_runpath=yes
16153 shlibpath_overrides_runpath=yes
16158 libname_spec='$name'
16161 library_names_spec='$libname${shared_ext} $libname.a'
16162 dynamic_linker='OS/2 ld.exe'
16163 shlibpath_var=LIBPATH
16166 osf3* | osf4* | osf5*)
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 shlibpath_var=LD_LIBRARY_PATH
16173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16186 # ldd complains unless libraries are executable
16187 postinstall_cmds='chmod +x $lib'
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=yes
16196 if test "$with_gnu_ld" = yes; then
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 shlibpath_var=LD_LIBRARY_PATH
16207 case $host_vendor in
16209 shlibpath_overrides_runpath=no
16211 export_dynamic_flag_spec='${wl}-Blargedynsym'
16212 runpath_var=LD_RUN_PATH
16220 shlibpath_overrides_runpath=no
16221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16227 if test -d /usr/nec ;then
16229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16230 soname_spec='$libname${shared_ext}.$major'
16231 shlibpath_var=LD_LIBRARY_PATH
16235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16236 version_type=freebsd-elf
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 hardcode_into_libs=yes
16243 if test "$with_gnu_ld" = yes; then
16244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16245 shlibpath_overrides_runpath=no
16247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16248 shlibpath_overrides_runpath=yes
16251 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16255 sys_lib_dlsearch_path_spec='/usr/lib'
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 shlibpath_var=LD_LIBRARY_PATH
16269 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16270 echo "${ECHO_T}$dynamic_linker" >&6; }
16271 test "$dynamic_linker" = no && can_build_shared=no
16273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16274 if test "$GCC" = yes; then
16275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16278 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16279 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16281 if test -n "$hardcode_libdir_flag_spec" || \
16282 test -n "$runpath_var" || \
16283 test "X$hardcode_automatic" = "Xyes" ; then
16285 # We can hardcode non-existant directories.
16286 if test "$hardcode_direct" != no &&
16287 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16288 # have to relink, otherwise we might link with an installed library
16289 # when we should be linking with a yet-to-be-installed one
16290 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16291 test "$hardcode_minus_L" != no; then
16292 # Linking always hardcodes the temporary library directory.
16293 hardcode_action=relink
16295 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16296 hardcode_action=immediate
16299 # We cannot hardcode anything, or else we can only hardcode existing
16301 hardcode_action=unsupported
16303 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16304 echo "${ECHO_T}$hardcode_action" >&6; }
16306 if test "$hardcode_action" = relink; then
16307 # Fast installation is not supported
16308 enable_fast_install=no
16309 elif test "$shlibpath_overrides_runpath" = yes ||
16310 test "$enable_shared" = no; then
16311 # Fast installation is not necessary
16312 enable_fast_install=needless
16317 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16318 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16319 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16320 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16321 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16322 { echo "$as_me:$LINENO: result: yes" >&5
16323 echo "${ECHO_T}yes" >&6; }
16325 # FIXME - insert some real tests, host_os isn't really good enough
16328 if test -n "$STRIP" ; then
16329 striplib="$STRIP -x"
16330 { echo "$as_me:$LINENO: result: yes" >&5
16331 echo "${ECHO_T}yes" >&6; }
16333 { echo "$as_me:$LINENO: result: no" >&5
16334 echo "${ECHO_T}no" >&6; }
16338 { echo "$as_me:$LINENO: result: no" >&5
16339 echo "${ECHO_T}no" >&6; }
16344 if test "x$enable_dlopen" != xyes; then
16345 enable_dlopen=unknown
16346 enable_dlopen_self=unknown
16347 enable_dlopen_self_static=unknown
16354 lt_cv_dlopen="load_add_on"
16356 lt_cv_dlopen_self=yes
16360 lt_cv_dlopen="LoadLibrary"
16365 lt_cv_dlopen="dlopen"
16370 # if libdl is installed we need to link against it
16371 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16372 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16373 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 ac_check_lib_save_LIBS=$LIBS
16378 cat >conftest.$ac_ext <<_ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16385 /* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (ac_try="$ac_link"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_link") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_cv_lib_dl_dlopen=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_cv_lib_dl_dlopen=no
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 LIBS=$ac_check_lib_save_LIBS
16446 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16447 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16448 if test $ac_cv_lib_dl_dlopen = yes; then
16449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16452 lt_cv_dlopen="dyld"
16454 lt_cv_dlopen_self=yes
16461 { echo "$as_me:$LINENO: checking for shl_load" >&5
16462 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16463 if test "${ac_cv_func_shl_load+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 cat >conftest.$ac_ext <<_ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16474 #define shl_load innocuous_shl_load
16476 /* System header to define __stub macros and hopefully few prototypes,
16477 which can conflict with char shl_load (); below.
16478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16479 <limits.h> exists even on freestanding compilers. */
16482 # include <limits.h>
16484 # include <assert.h>
16489 /* Override any GCC internal prototype to avoid an error.
16490 Use char because int might match the return type of a GCC
16491 builtin and then its argument prototype would still apply. */
16496 /* The GNU C library defines this for functions which it implements
16497 to always fail with ENOSYS. Some functions are actually named
16498 something starting with __ and the normal name is an alias. */
16499 #if defined __stub_shl_load || defined __stub___shl_load
16506 return shl_load ();
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_func_shl_load=yes
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_func_shl_load=no
16553 rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16556 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16557 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16558 if test $ac_cv_func_shl_load = yes; then
16559 lt_cv_dlopen="shl_load"
16561 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16562 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16563 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 ac_check_lib_save_LIBS=$LIBS
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16575 /* Override any GCC internal prototype to avoid an error.
16576 Use char because int might match the return type of a GCC
16577 builtin and then its argument prototype would still apply. */
16585 return shl_load ();
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (ac_try="$ac_link"
16592 case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_link") 2>conftest.er1
16599 grep -v '^ *+' conftest.er1 >conftest.err
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16605 { (case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_try") 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; } &&
16614 { ac_try='test -s conftest$ac_exeext'
16615 { (case "(($ac_try" in
16616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617 *) ac_try_echo=$ac_try;;
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620 (eval "$ac_try") 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_dld_shl_load=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_cv_lib_dld_shl_load=no
16632 rm -f core conftest.err conftest.$ac_objext \
16633 conftest$ac_exeext conftest.$ac_ext
16634 LIBS=$ac_check_lib_save_LIBS
16636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16637 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16638 if test $ac_cv_lib_dld_shl_load = yes; then
16639 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16641 { echo "$as_me:$LINENO: checking for dlopen" >&5
16642 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16643 if test "${ac_cv_func_dlopen+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 cat >conftest.$ac_ext <<_ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16654 #define dlopen innocuous_dlopen
16656 /* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char dlopen (); below.
16658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16659 <limits.h> exists even on freestanding compilers. */
16662 # include <limits.h>
16664 # include <assert.h>
16669 /* Override any GCC internal prototype to avoid an error.
16670 Use char because int might match the return type of a GCC
16671 builtin and then its argument prototype would still apply. */
16676 /* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679 #if defined __stub_dlopen || defined __stub___dlopen
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
16700 grep -v '^ *+' conftest.er1 >conftest.err
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_func_dlopen=yes
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_cv_func_dlopen=no
16733 rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16736 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16737 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16738 if test $ac_cv_func_dlopen = yes; then
16739 lt_cv_dlopen="dlopen"
16741 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16742 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16743 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 ac_check_lib_save_LIBS=$LIBS
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16755 /* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
16770 rm -f conftest.$ac_objext conftest$ac_exeext
16771 if { (ac_try="$ac_link"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_link") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1 >conftest.err
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
16784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16785 { (case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_try") 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest$ac_exeext'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_lib_dl_dlopen=yes
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_cv_lib_dl_dlopen=no
16812 rm -f core conftest.err conftest.$ac_objext \
16813 conftest$ac_exeext conftest.$ac_ext
16814 LIBS=$ac_check_lib_save_LIBS
16816 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16817 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16818 if test $ac_cv_lib_dl_dlopen = yes; then
16819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16821 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16822 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16823 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lsvld $LIBS"
16828 cat >conftest.$ac_ext <<_ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16835 /* Override any GCC internal prototype to avoid an error.
16836 Use char because int might match the return type of a GCC
16837 builtin and then its argument prototype would still apply. */
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
16864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16865 { (case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_try") 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest$ac_exeext'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 ac_cv_lib_svld_dlopen=yes
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16889 ac_cv_lib_svld_dlopen=no
16892 rm -f core conftest.err conftest.$ac_objext \
16893 conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16896 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16897 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16898 if test $ac_cv_lib_svld_dlopen = yes; then
16899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16901 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16902 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16903 if test "${ac_cv_lib_dld_dld_link+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. */
16925 return dld_link ();
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_dld_dld_link=yes
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
16977 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16978 if test $ac_cv_lib_dld_dld_link = yes; then
16979 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17000 if test "x$lt_cv_dlopen" != xno; then
17006 case $lt_cv_dlopen in
17008 save_CPPFLAGS="$CPPFLAGS"
17009 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17011 save_LDFLAGS="$LDFLAGS"
17012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17015 LIBS="$lt_cv_dlopen_libs $LIBS"
17017 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17018 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17019 if test "${lt_cv_dlopen_self+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 if test "$cross_compiling" = yes; then :
17023 lt_cv_dlopen_self=cross
17025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17026 lt_status=$lt_dlunknown
17027 cat > conftest.$ac_ext <<EOF
17028 #line 17028 "configure"
17029 #include "confdefs.h"
17038 # define LT_DLGLOBAL RTLD_GLOBAL
17041 # define LT_DLGLOBAL DL_GLOBAL
17043 # define LT_DLGLOBAL 0
17047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17048 find out it does not work in some platform. */
17049 #ifndef LT_DLLAZY_OR_NOW
17051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17054 # define LT_DLLAZY_OR_NOW DL_LAZY
17057 # define LT_DLLAZY_OR_NOW RTLD_NOW
17060 # define LT_DLLAZY_OR_NOW DL_NOW
17062 # define LT_DLLAZY_OR_NOW 0
17070 extern "C" void exit (int);
17073 void fnord() { int i=42;}
17076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17077 int status = $lt_dlunknown;
17081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17083 /* dlclose (self); */
17091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092 (eval $ac_link) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17096 (./conftest; exit; ) >&5 2>/dev/null
17098 case x$lt_status in
17099 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17100 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17101 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17104 # compilation failed
17105 lt_cv_dlopen_self=no
17112 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17113 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17115 if test "x$lt_cv_dlopen_self" = xyes; then
17116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17117 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17118 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17119 if test "${lt_cv_dlopen_self_static+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17122 if test "$cross_compiling" = yes; then :
17123 lt_cv_dlopen_self_static=cross
17125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17126 lt_status=$lt_dlunknown
17127 cat > conftest.$ac_ext <<EOF
17128 #line 17128 "configure"
17129 #include "confdefs.h"
17138 # define LT_DLGLOBAL RTLD_GLOBAL
17141 # define LT_DLGLOBAL DL_GLOBAL
17143 # define LT_DLGLOBAL 0
17147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17148 find out it does not work in some platform. */
17149 #ifndef LT_DLLAZY_OR_NOW
17151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17154 # define LT_DLLAZY_OR_NOW DL_LAZY
17157 # define LT_DLLAZY_OR_NOW RTLD_NOW
17160 # define LT_DLLAZY_OR_NOW DL_NOW
17162 # define LT_DLLAZY_OR_NOW 0
17170 extern "C" void exit (int);
17173 void fnord() { int i=42;}
17176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17177 int status = $lt_dlunknown;
17181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17183 /* dlclose (self); */
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17196 (./conftest; exit; ) >&5 2>/dev/null
17198 case x$lt_status in
17199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17204 # compilation failed
17205 lt_cv_dlopen_self_static=no
17212 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17213 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17216 CPPFLAGS="$save_CPPFLAGS"
17217 LDFLAGS="$save_LDFLAGS"
17222 case $lt_cv_dlopen_self in
17223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17224 *) enable_dlopen_self=unknown ;;
17227 case $lt_cv_dlopen_self_static in
17228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17229 *) enable_dlopen_self_static=unknown ;;
17234 # Report which library types will actually be built
17235 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17236 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17237 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17238 echo "${ECHO_T}$can_build_shared" >&6; }
17240 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17241 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17242 test "$can_build_shared" = "no" && enable_shared=no
17244 # On AIX, shared libraries and static libraries use the same namespace, and
17245 # are all built from PIC.
17248 test "$enable_shared" = yes && enable_static=no
17249 if test -n "$RANLIB"; then
17250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17251 postinstall_cmds='$RANLIB $lib'
17256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17257 test "$enable_shared" = yes && enable_static=no
17261 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17262 echo "${ECHO_T}$enable_shared" >&6; }
17264 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17265 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17266 # Make sure either enable_shared or enable_static is yes.
17267 test "$enable_shared" = yes || enable_static=yes
17268 { echo "$as_me:$LINENO: result: $enable_static" >&5
17269 echo "${ECHO_T}$enable_static" >&6; }
17271 # The else clause should only fire when bootstrapping the
17272 # libtool distribution, otherwise you forgot to ship ltmain.sh
17273 # with your package, and you will get complaints that there are
17274 # no rules to generate ltmain.sh.
17275 if test -f "$ltmain"; then
17276 # See if we are running on zsh, and set the options which allow our commands through
17277 # without removal of \ escapes.
17278 if test -n "${ZSH_VERSION+set}" ; then
17279 setopt NO_GLOB_SUBST
17281 # Now quote all the things that may contain metacharacters while being
17282 # careful not to overquote the AC_SUBSTed values. We take copies of the
17283 # variables and quote the copies for generation of the libtool script.
17284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17288 deplibs_check_method reload_flag reload_cmds need_locks \
17289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17290 lt_cv_sys_global_symbol_to_c_name_address \
17291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17292 old_postinstall_cmds old_postuninstall_cmds \
17296 lt_prog_compiler_wl \
17297 lt_prog_compiler_pic \
17298 lt_prog_compiler_static \
17299 lt_prog_compiler_no_builtin_flag \
17300 export_dynamic_flag_spec \
17301 thread_safe_flag_spec \
17302 whole_archive_flag_spec \
17303 enable_shared_with_static_runtimes \
17305 old_archive_from_new_cmds \
17310 compiler_lib_search_path \
17312 archive_expsym_cmds \
17314 postuninstall_cmds \
17315 old_archive_from_expsyms_cmds \
17316 allow_undefined_flag \
17317 no_undefined_flag \
17318 export_symbols_cmds \
17319 hardcode_libdir_flag_spec \
17320 hardcode_libdir_flag_spec_ld \
17321 hardcode_libdir_separator \
17322 hardcode_automatic \
17324 module_expsym_cmds \
17325 lt_cv_prog_compiler_c_o \
17327 include_expsyms; do
17330 old_archive_cmds | \
17331 old_archive_from_new_cmds | \
17333 archive_expsym_cmds | \
17335 module_expsym_cmds | \
17336 old_archive_from_expsyms_cmds | \
17337 export_symbols_cmds | \
17338 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17339 postinstall_cmds | postuninstall_cmds | \
17340 old_postinstall_cmds | old_postuninstall_cmds | \
17341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17342 # Double-quote double-evaled strings.
17343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17352 *'\$0 --fallback-echo"')
17353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17357 cfgfile="${ofile}T"
17358 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17360 { echo "$as_me:$LINENO: creating $ofile" >&5
17361 echo "$as_me: creating $ofile" >&6;}
17363 cat <<__EOF__ >> "$cfgfile"
17366 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17367 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17368 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17370 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17371 # Free Software Foundation, Inc.
17373 # This file is part of GNU Libtool:
17374 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17376 # This program is free software; you can redistribute it and/or modify
17377 # it under the terms of the GNU General Public License as published by
17378 # the Free Software Foundation; either version 2 of the License, or
17379 # (at your option) any later version.
17381 # This program is distributed in the hope that it will be useful, but
17382 # WITHOUT ANY WARRANTY; without even the implied warranty of
17383 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17384 # General Public License for more details.
17386 # You should have received a copy of the GNU General Public License
17387 # along with this program; if not, write to the Free Software
17388 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17390 # As a special exception to the GNU General Public License, if you
17391 # distribute this file as part of a program that contains a
17392 # configuration script generated by Autoconf, you may include it under
17393 # the same distribution terms that you use for the rest of that program.
17395 # A sed program that does not truncate output.
17398 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17399 Xsed="$SED -e 1s/^X//"
17401 # The HP-UX ksh and POSIX shell print the target directory to stdout
17402 # if CDPATH is set.
17403 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17405 # The names of the tagged configurations supported by this script.
17408 # ### BEGIN LIBTOOL CONFIG
17410 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17412 # Shell to use when invoking shell scripts.
17415 # Whether or not to build shared libraries.
17416 build_libtool_libs=$enable_shared
17418 # Whether or not to build static libraries.
17419 build_old_libs=$enable_static
17421 # Whether or not to add -lc for building shared libraries.
17422 build_libtool_need_lc=$archive_cmds_need_lc
17424 # Whether or not to disallow shared libs when runtime libs are static
17425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17427 # Whether or not to optimize for fast installation.
17428 fast_install=$enable_fast_install
17431 host_alias=$host_alias
17435 # The build system.
17436 build_alias=$build_alias
17440 # An echo program that does not interpret backslashes.
17445 AR_FLAGS=$lt_AR_FLAGS
17450 # LTCC compiler flags.
17451 LTCFLAGS=$lt_LTCFLAGS
17453 # A language-specific compiler.
17456 # Is the compiler the GNU C compiler?
17462 # The linker used to build libraries.
17465 # Whether we need hard or soft links.
17468 # A BSD-compatible nm program.
17471 # A symbol stripping program
17474 # Used to examine libraries when file_magic_cmd begins "file"
17475 MAGIC_CMD=$MAGIC_CMD
17477 # Used on cygwin: DLL creation program.
17480 # Used on cygwin: object dumper.
17483 # Used on cygwin: assembler.
17486 # The name of the directory that contains temporary libtool files.
17489 # How to create reloadable object files.
17490 reload_flag=$lt_reload_flag
17491 reload_cmds=$lt_reload_cmds
17493 # How to pass a linker flag through the compiler.
17494 wl=$lt_lt_prog_compiler_wl
17496 # Object file suffix (normally "o").
17497 objext="$ac_objext"
17499 # Old archive suffix (normally "a").
17502 # Shared library suffix (normally ".so").
17503 shrext_cmds='$shrext_cmds'
17505 # Executable file suffix (normally "").
17508 # Additional compiler flags for building library objects.
17509 pic_flag=$lt_lt_prog_compiler_pic
17512 # What is the maximum length of a command?
17513 max_cmd_len=$lt_cv_sys_max_cmd_len
17515 # Does compiler simultaneously support -c and -o options?
17516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17518 # Must we lock files when doing compilation?
17519 need_locks=$lt_need_locks
17521 # Do we need the lib prefix for modules?
17522 need_lib_prefix=$need_lib_prefix
17524 # Do we need a version for libraries?
17525 need_version=$need_version
17527 # Whether dlopen is supported.
17528 dlopen_support=$enable_dlopen
17530 # Whether dlopen of programs is supported.
17531 dlopen_self=$enable_dlopen_self
17533 # Whether dlopen of statically linked programs is supported.
17534 dlopen_self_static=$enable_dlopen_self_static
17536 # Compiler flag to prevent dynamic linking.
17537 link_static_flag=$lt_lt_prog_compiler_static
17539 # Compiler flag to turn off builtin functions.
17540 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17542 # Compiler flag to allow reflexive dlopens.
17543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17545 # Compiler flag to generate shared objects directly from archives.
17546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17548 # Compiler flag to generate thread-safe objects.
17549 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17551 # Library versioning type.
17552 version_type=$version_type
17554 # Format of library name prefix.
17555 libname_spec=$lt_libname_spec
17557 # List of archive names. First name is the real one, the rest are links.
17558 # The last name is the one that the linker finds with -lNAME.
17559 library_names_spec=$lt_library_names_spec
17561 # The coded name of the library, if different from the real name.
17562 soname_spec=$lt_soname_spec
17564 # Commands used to build and install an old-style archive.
17566 old_archive_cmds=$lt_old_archive_cmds
17567 old_postinstall_cmds=$lt_old_postinstall_cmds
17568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17570 # Create an old-style archive from a shared archive.
17571 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17573 # Create a temporary old-style archive to link instead of a shared archive.
17574 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17576 # Commands used to build and install a shared archive.
17577 archive_cmds=$lt_archive_cmds
17578 archive_expsym_cmds=$lt_archive_expsym_cmds
17579 postinstall_cmds=$lt_postinstall_cmds
17580 postuninstall_cmds=$lt_postuninstall_cmds
17582 # Commands used to build a loadable module (assumed same as above if empty)
17583 module_cmds=$lt_module_cmds
17584 module_expsym_cmds=$lt_module_expsym_cmds
17586 # Commands to strip libraries.
17587 old_striplib=$lt_old_striplib
17588 striplib=$lt_striplib
17590 # Dependencies to place before the objects being linked to create a
17592 predep_objects=$lt_predep_objects
17594 # Dependencies to place after the objects being linked to create a
17596 postdep_objects=$lt_postdep_objects
17598 # Dependencies to place before the objects being linked to create a
17600 predeps=$lt_predeps
17602 # Dependencies to place after the objects being linked to create a
17604 postdeps=$lt_postdeps
17606 # The library search path used internally by the compiler when linking
17607 # a shared library.
17608 compiler_lib_search_path=$lt_compiler_lib_search_path
17610 # Method to check whether dependent libraries are shared objects.
17611 deplibs_check_method=$lt_deplibs_check_method
17613 # Command to use when deplibs_check_method == file_magic.
17614 file_magic_cmd=$lt_file_magic_cmd
17616 # Flag that allows shared libraries with undefined symbols to be built.
17617 allow_undefined_flag=$lt_allow_undefined_flag
17619 # Flag that forces no undefined symbols.
17620 no_undefined_flag=$lt_no_undefined_flag
17622 # Commands used to finish a libtool library installation in a directory.
17623 finish_cmds=$lt_finish_cmds
17625 # Same as above, but a single script fragment to be evaled but not shown.
17626 finish_eval=$lt_finish_eval
17628 # Take the output of nm and produce a listing of raw symbols and C names.
17629 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17631 # Transform the output of nm in a proper C declaration
17632 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17634 # Transform the output of nm in a C name address pair
17635 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17637 # This is the shared library runtime path variable.
17638 runpath_var=$runpath_var
17640 # This is the shared library path variable.
17641 shlibpath_var=$shlibpath_var
17643 # Is shlibpath searched before the hard-coded library search path?
17644 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17646 # How to hardcode a shared library path into an executable.
17647 hardcode_action=$hardcode_action
17649 # Whether we should hardcode library paths into libraries.
17650 hardcode_into_libs=$hardcode_into_libs
17652 # Flag to hardcode \$libdir into a binary during linking.
17653 # This must work even if \$libdir does not exist.
17654 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17656 # If ld is used when linking, flag to hardcode \$libdir into
17657 # a binary during linking. This must work even if \$libdir does
17659 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17661 # Whether we need a single -rpath flag with a separated argument.
17662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17664 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17665 # resulting binary.
17666 hardcode_direct=$hardcode_direct
17668 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17669 # resulting binary.
17670 hardcode_minus_L=$hardcode_minus_L
17672 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17673 # the resulting binary.
17674 hardcode_shlibpath_var=$hardcode_shlibpath_var
17676 # Set to yes if building a shared library automatically hardcodes DIR into the library
17677 # and all subsequent libraries and executables linked against it.
17678 hardcode_automatic=$hardcode_automatic
17680 # Variables whose values should be saved in libtool wrapper scripts and
17681 # restored at relink time.
17682 variables_saved_for_relink="$variables_saved_for_relink"
17684 # Whether libtool must link a program against all its dependency libraries.
17685 link_all_deplibs=$link_all_deplibs
17687 # Compile-time system search path for libraries
17688 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17690 # Run-time system search path for libraries
17691 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17693 # Fix the shell variable \$srcfile for the compiler.
17694 fix_srcfile_path="$fix_srcfile_path"
17696 # Set to yes if exported symbols are required.
17697 always_export_symbols=$always_export_symbols
17699 # The commands to list exported symbols.
17700 export_symbols_cmds=$lt_export_symbols_cmds
17702 # The commands to extract the exported symbol list from a shared archive.
17703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17705 # Symbols that should not be listed in the preloaded symbols.
17706 exclude_expsyms=$lt_exclude_expsyms
17708 # Symbols that must always be exported.
17709 include_expsyms=$lt_include_expsyms
17711 # ### END LIBTOOL CONFIG
17718 cat <<\EOF >> "$cfgfile"
17720 # AIX sometimes has problems with the GCC collect2 program. For some
17721 # reason, if we set the COLLECT_NAMES environment variable, the problems
17722 # vanish in a puff of smoke.
17723 if test "X${COLLECT_NAMES+set}" != Xset; then
17725 export COLLECT_NAMES
17731 # We use sed instead of cat because bash on DJGPP gets confused if
17732 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17733 # text mode, it properly converts lines to CR/LF. This bash problem
17734 # is reportedly fixed, but why not run on old versions too?
17735 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17737 mv -f "$cfgfile" "$ofile" || \
17738 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17742 # If there is no Makefile yet, we rely on a make rule to execute
17743 # `config.status --recheck' to rerun these tests and create the
17744 # libtool script then.
17745 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17746 if test -f "$ltmain_in"; then
17747 test -f Makefile && make "$ltmain"
17753 ac_cpp='$CPP $CPPFLAGS'
17754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761 # Check whether --with-tags was given.
17762 if test "${with_tags+set}" = set; then
17763 withval=$with_tags; tagnames="$withval"
17767 if test -f "$ltmain" && test -n "$tagnames"; then
17768 if test ! -f "${ofile}"; then
17769 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17770 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17773 if test -z "$LTCC"; then
17774 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17775 if test -z "$LTCC"; then
17776 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17777 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17779 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17780 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17783 if test -z "$LTCFLAGS"; then
17784 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17787 # Extract list of available tagged configurations in $ofile.
17788 # Note that this assumes the entire list is on one line.
17789 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17792 for tagname in $tagnames; do
17794 # Check whether tagname contains only valid characters
17795 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17797 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17798 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17799 { (exit 1); exit 1; }; }
17803 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17805 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17806 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17807 { (exit 1); exit 1; }; }
17810 # Update the list of available tags.
17811 if test -n "$tagname"; then
17812 echo appending configuration tag \"$tagname\" to $ofile
17816 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17817 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17818 (test "X$CXX" != "Xg++"))) ; then
17820 ac_cpp='$CXXCPP $CPPFLAGS'
17821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17828 archive_cmds_need_lc_CXX=no
17829 allow_undefined_flag_CXX=
17830 always_export_symbols_CXX=no
17831 archive_expsym_cmds_CXX=
17832 export_dynamic_flag_spec_CXX=
17833 hardcode_direct_CXX=no
17834 hardcode_libdir_flag_spec_CXX=
17835 hardcode_libdir_flag_spec_ld_CXX=
17836 hardcode_libdir_separator_CXX=
17837 hardcode_minus_L_CXX=no
17838 hardcode_shlibpath_var_CXX=unsupported
17839 hardcode_automatic_CXX=no
17841 module_expsym_cmds_CXX=
17842 link_all_deplibs_CXX=unknown
17843 old_archive_cmds_CXX=$old_archive_cmds
17844 no_undefined_flag_CXX=
17845 whole_archive_flag_spec_CXX=
17846 enable_shared_with_static_runtimes_CXX=no
17848 # Dependencies to place before and after the object being linked:
17849 predep_objects_CXX=
17850 postdep_objects_CXX=
17853 compiler_lib_search_path_CXX=
17855 # Source file extension for C++ test sources.
17858 # Object file extension for compiled C++ test sources.
17862 # Code to be used in simple compile tests
17863 lt_simple_compile_test_code="int some_variable = 0;\n"
17865 # Code to be used in simple link tests
17866 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17870 # If no C compiler was specified, use CC.
17873 # If no C compiler flags were specified, use CFLAGS.
17874 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17876 # Allow CC to be a program name with arguments.
17880 # save warnings/boilerplate of simple test code
17881 ac_outfile=conftest.$ac_objext
17882 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17883 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17884 _lt_compiler_boilerplate=`cat conftest.err`
17887 ac_outfile=conftest.$ac_objext
17888 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17889 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17890 _lt_linker_boilerplate=`cat conftest.err`
17894 # Allow CC to be a program name with arguments.
17899 lt_save_with_gnu_ld=$with_gnu_ld
17900 lt_save_path_LD=$lt_cv_path_LD
17901 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17902 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17904 $as_unset lt_cv_prog_gnu_ld
17906 if test -n "${lt_cv_path_LDCXX+set}"; then
17907 lt_cv_path_LD=$lt_cv_path_LDCXX
17909 $as_unset lt_cv_path_LD
17911 test -z "${LDCXX+set}" || LD=$LDCXX
17915 for cc_temp in $compiler""; do
17917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17926 # We don't want -fno-exception wen compiling C++ code, so set the
17927 # no_builtin_flag separately
17928 if test "$GXX" = yes; then
17929 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17931 lt_prog_compiler_no_builtin_flag_CXX=
17934 if test "$GXX" = yes; then
17935 # Set up default GNU C++ configuration
17938 # Check whether --with-gnu-ld was given.
17939 if test "${with_gnu_ld+set}" = set; then
17940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17946 if test "$GCC" = yes; then
17947 # Check if gcc -print-prog-name=ld gives a path.
17948 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17949 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17952 # gcc leaves a trailing carriage return which upsets mingw
17953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17958 # Accept absolute paths.
17960 re_direlt='/[^/][^/]*/\.\./'
17961 # Canonicalize the pathname of ld
17962 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17963 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17964 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17966 test -z "$LD" && LD="$ac_prog"
17969 # If it fails, then pretend we aren't using GCC.
17973 # If it is relative, then search for the first ld in PATH.
17974 with_gnu_ld=unknown
17977 elif test "$with_gnu_ld" = yes; then
17978 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17979 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17981 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17982 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17984 if test "${lt_cv_path_LD+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 if test -z "$LD"; then
17988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17989 for ac_dir in $PATH; do
17991 test -z "$ac_dir" && ac_dir=.
17992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17993 lt_cv_path_LD="$ac_dir/$ac_prog"
17994 # Check to see if the program is GNU ld. I'd rather use --version,
17995 # but apparently some variants of GNU ld only accept -v.
17996 # Break only if it was the GNU/non-GNU ld that we prefer.
17997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17998 *GNU* | *'with BFD'*)
17999 test "$with_gnu_ld" != no && break
18002 test "$with_gnu_ld" != yes && break
18009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18013 LD="$lt_cv_path_LD"
18014 if test -n "$LD"; then
18015 { echo "$as_me:$LINENO: result: $LD" >&5
18016 echo "${ECHO_T}$LD" >&6; }
18018 { echo "$as_me:$LINENO: result: no" >&5
18019 echo "${ECHO_T}no" >&6; }
18021 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18022 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18023 { (exit 1); exit 1; }; }
18024 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18025 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18026 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18030 case `$LD -v 2>&1 </dev/null` in
18031 *GNU* | *'with BFD'*)
18032 lt_cv_prog_gnu_ld=yes
18035 lt_cv_prog_gnu_ld=no
18039 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18040 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18041 with_gnu_ld=$lt_cv_prog_gnu_ld
18045 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18046 # archiving commands below assume that GNU ld is being used.
18047 if test "$with_gnu_ld" = yes; then
18048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18049 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'
18051 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18054 # If archive_cmds runs LD, not CC, wlarc should be empty
18055 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18056 # investigate it a little bit more. (MM)
18059 # ancient GNU ld didn't support --whole-archive et. al.
18060 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18061 grep 'no-whole-archive' > /dev/null; then
18062 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18064 whole_archive_flag_spec_CXX=
18070 # A generic and very simple default shared library creation
18071 # command for GNU C++ for the case where it uses the native
18072 # linker, instead of GNU ld. If possible, this setting should
18073 # overridden to take advantage of the native linker features on
18074 # the platform it is being used on.
18075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18078 # Commands to make compiler produce verbose output that lists
18079 # what "hidden" libraries, object files and flags are used when
18080 # linking a shared library.
18081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18089 # PORTME: fill in a description of your system's C++ link characteristics
18090 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18091 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18095 # FIXME: insert proper C++ library support
18099 if test "$host_cpu" = ia64; then
18100 # On IA64, the linker does run time linking by default, so we don't
18101 # have to do anything special.
18102 aix_use_runtimelinking=no
18103 exp_sym_flag='-Bexport'
18106 aix_use_runtimelinking=no
18108 # Test if we are trying to use run time linking or normal
18109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18110 # need to do runtime linking.
18111 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18112 for ld_flag in $LDFLAGS; do
18115 aix_use_runtimelinking=yes
18123 exp_sym_flag='-bexport'
18124 no_entry_flag='-bnoentry'
18127 # When large executables or shared objects are built, AIX ld can
18128 # have problems creating the table of contents. If linking a library
18129 # or program results in "error TOC overflow" add -mminimal-toc to
18130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18133 archive_cmds_CXX=''
18134 hardcode_direct_CXX=yes
18135 hardcode_libdir_separator_CXX=':'
18136 link_all_deplibs_CXX=yes
18138 if test "$GXX" = yes; then
18139 case $host_os in aix4.[012]|aix4.[012].*)
18140 # We only want to do this on AIX 4.2 and lower, the check
18141 # below for broken collect2 doesn't work under 4.3+
18142 collect2name=`${CC} -print-prog-name=collect2`
18143 if test -f "$collect2name" && \
18144 strings "$collect2name" | grep resolve_lib_name >/dev/null
18146 # We have reworked collect2
18147 hardcode_direct_CXX=yes
18149 # We have old collect2
18150 hardcode_direct_CXX=unsupported
18151 # It fails to find uninstalled libraries when the uninstalled
18152 # path is not listed in the libpath. Setting hardcode_minus_L
18153 # to unsupported forces relinking
18154 hardcode_minus_L_CXX=yes
18155 hardcode_libdir_flag_spec_CXX='-L$libdir'
18156 hardcode_libdir_separator_CXX=
18160 shared_flag='-shared'
18161 if test "$aix_use_runtimelinking" = yes; then
18162 shared_flag="$shared_flag "'${wl}-G'
18166 if test "$host_cpu" = ia64; then
18167 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18168 # chokes on -Wl,-G. The following line is correct:
18171 if test "$aix_use_runtimelinking" = yes; then
18172 shared_flag='${wl}-G'
18174 shared_flag='${wl}-bM:SRE'
18179 # It seems that -bexpall does not export symbols beginning with
18180 # underscore (_), so it is better to generate a list of symbols to export.
18181 always_export_symbols_CXX=yes
18182 if test "$aix_use_runtimelinking" = yes; then
18183 # Warning - without using the other runtime loading flags (-brtl),
18184 # -berok will link without error, but may produce a broken library.
18185 allow_undefined_flag_CXX='-berok'
18186 # Determine the default libpath from the value encoded in an empty executable.
18187 cat >conftest.$ac_ext <<_ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18202 rm -f conftest.$ac_objext conftest$ac_exeext
18203 if { (ac_try="$ac_link"
18204 case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_link") 2>conftest.er1
18211 grep -v '^ *+' conftest.er1 >conftest.err
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18217 { (case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_try") 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest$ac_exeext'
18227 { (case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_try") 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18239 # Check for a 64-bit object if we didn't find anything.
18240 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; }
18243 echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18253 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18255 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"
18257 if test "$host_cpu" = ia64; then
18258 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18259 allow_undefined_flag_CXX="-z nodefs"
18260 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"
18262 # Determine the default libpath from the value encoded in an empty executable.
18263 cat >conftest.$ac_ext <<_ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18278 rm -f conftest.$ac_objext conftest$ac_exeext
18279 if { (ac_try="$ac_link"
18280 case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_link") 2>conftest.er1
18287 grep -v '^ *+' conftest.er1 >conftest.err
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
18292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try='test -s conftest$ac_exeext'
18303 { (case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_try") 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18315 # Check for a 64-bit object if we didn't find anything.
18316 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; }
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18325 rm -f core conftest.err conftest.$ac_objext \
18326 conftest$ac_exeext conftest.$ac_ext
18327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18329 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18330 # Warning - without using the other run time loading flags,
18331 # -berok will link without error, but may produce a broken library.
18332 no_undefined_flag_CXX=' ${wl}-bernotok'
18333 allow_undefined_flag_CXX=' ${wl}-berok'
18334 # Exported symbols can be pulled into shared objects from archives
18335 whole_archive_flag_spec_CXX='$convenience'
18336 archive_cmds_need_lc_CXX=yes
18337 # This is similar to how AIX traditionally builds its shared libraries.
18338 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'
18344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18345 allow_undefined_flag_CXX=unsupported
18346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18347 # support --undefined. This deserves some investigation. FIXME
18348 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18355 case $cc_basename in
18357 # FIXME: insert proper C++ library support
18363 cygwin* | mingw* | pw32*)
18364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18365 # as there is no search path for DLLs.
18366 hardcode_libdir_flag_spec_CXX='-L$libdir'
18367 allow_undefined_flag_CXX=unsupported
18368 always_export_symbols_CXX=no
18369 enable_shared_with_static_runtimes_CXX=yes
18371 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18372 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'
18373 # If the export-symbols file already is a .def file (1st line
18374 # is EXPORTS), use it as is; otherwise, prepend...
18375 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18376 cp $export_symbols $output_objdir/$soname.def;
18378 echo EXPORTS > $output_objdir/$soname.def;
18379 cat $export_symbols >> $output_objdir/$soname.def;
18381 $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'
18386 darwin* | rhapsody*)
18388 rhapsody* | darwin1.[012])
18389 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18392 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18393 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18395 case ${MACOSX_DEPLOYMENT_TARGET} in
18397 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18400 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18406 archive_cmds_need_lc_CXX=no
18407 hardcode_direct_CXX=no
18408 hardcode_automatic_CXX=yes
18409 hardcode_shlibpath_var_CXX=unsupported
18410 whole_archive_flag_spec_CXX=''
18411 link_all_deplibs_CXX=yes
18413 if test "$GXX" = yes ; then
18414 lt_int_apple_cc_single_mod=no
18415 output_verbose_link_cmd='echo'
18416 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18417 lt_int_apple_cc_single_mod=yes
18419 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18420 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18422 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'
18424 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18426 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18427 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}'
18429 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}'
18431 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}'
18433 case $cc_basename in
18435 output_verbose_link_cmd='echo'
18436 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'
18437 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18439 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}'
18440 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}'
18450 case $cc_basename in
18452 # FIXME: insert proper C++ library support
18456 # Green Hills C++ Compiler
18457 # FIXME: insert proper C++ library support
18461 # FIXME: insert proper C++ library support
18467 # C++ shared libraries reported to be fairly broken before switch to ELF
18471 archive_cmds_need_lc_CXX=no
18473 freebsd* | kfreebsd*-gnu | dragonfly*)
18474 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18482 hardcode_libdir_separator_CXX=:
18483 export_dynamic_flag_spec_CXX='${wl}-E'
18484 hardcode_direct_CXX=yes
18485 hardcode_minus_L_CXX=yes # Not in the search PATH,
18486 # but as the default
18487 # location of the library.
18489 case $cc_basename in
18491 # FIXME: insert proper C++ library support
18495 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'
18496 # Commands to make compiler produce verbose output that lists
18497 # what "hidden" libraries, object files and flags are used when
18498 # linking a shared library.
18500 # There doesn't appear to be a way to prevent this compiler from
18501 # explicitly linking system object files so we need to strip them
18502 # from the output so that they don't get included in the library
18504 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'
18507 if test "$GXX" = yes; then
18508 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'
18510 # FIXME: insert proper C++ library support
18517 if test $with_gnu_ld = no; then
18518 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18519 hardcode_libdir_separator_CXX=:
18523 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18526 export_dynamic_flag_spec_CXX='${wl}-E'
18532 hardcode_direct_CXX=no
18533 hardcode_shlibpath_var_CXX=no
18536 hardcode_direct_CXX=yes
18537 hardcode_minus_L_CXX=yes # Not in the search PATH,
18538 # but as the default
18539 # location of the library.
18543 case $cc_basename in
18545 # FIXME: insert proper C++ library support
18551 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18554 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18557 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18560 # Commands to make compiler produce verbose output that lists
18561 # what "hidden" libraries, object files and flags are used when
18562 # linking a shared library.
18564 # There doesn't appear to be a way to prevent this compiler from
18565 # explicitly linking system object files so we need to strip them
18566 # from the output so that they don't get included in the library
18568 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'
18571 if test "$GXX" = yes; then
18572 if test $with_gnu_ld = no; then
18575 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18578 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18581 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'
18586 # FIXME: insert proper C++ library support
18593 hardcode_direct_CXX=no
18594 hardcode_shlibpath_var_CXX=no
18595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18596 export_dynamic_flag_spec_CXX='${wl}-E'
18597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18598 # Instead, shared libraries are loaded at an image base (0x10000000 by
18599 # default) and relocated if they conflict, which is a slow very memory
18600 # consuming and fragmenting process. To avoid this, we pick a random,
18601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18603 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'
18604 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'
18607 case $cc_basename in
18610 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'
18612 # Archives containing C++ object files must be created using
18613 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18614 # necessary to make sure instantiated templates are included
18616 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18619 if test "$GXX" = yes; then
18620 if test "$with_gnu_ld" = no; then
18621 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'
18623 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'
18626 link_all_deplibs_CXX=yes
18629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18630 hardcode_libdir_separator_CXX=:
18633 case $cc_basename in
18635 # Kuck and Associates, Inc. (KAI) C++ Compiler
18637 # KCC will only create a shared library if the output file
18638 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18639 # to its proper name (with version) after linking.
18640 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'
18641 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'
18642 # Commands to make compiler produce verbose output that lists
18643 # what "hidden" libraries, object files and flags are used when
18644 # linking a shared library.
18646 # There doesn't appear to be a way to prevent this compiler from
18647 # explicitly linking system object files so we need to strip them
18648 # from the output so that they don't get included in the library
18650 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'
18652 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18653 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18655 # Archives containing C++ object files must be created using
18656 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18657 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18662 # version 8.0 and above of icpc choke on multiply defined symbols
18663 # if we add $predep_objects and $postdep_objects, however 7.1 and
18664 # earlier do not add the objects themselves.
18665 case `$CC -V 2>&1` in
18667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18668 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'
18670 *) # Version 8.0 or newer
18673 ia64*) tmp_idyn=' -i_dynamic';;
18675 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18676 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'
18679 archive_cmds_need_lc_CXX=no
18680 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18682 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18685 # Portland Group C++ compiler
18686 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18687 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'
18689 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18691 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'
18695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18696 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'
18698 runpath_var=LD_RUN_PATH
18699 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18700 hardcode_libdir_separator_CXX=:
18702 # Commands to make compiler produce verbose output that lists
18703 # what "hidden" libraries, object files and flags are used when
18704 # linking a shared library.
18706 # There doesn't appear to be a way to prevent this compiler from
18707 # explicitly linking system object files so we need to strip them
18708 # from the output so that they don't get included in the library
18710 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'
18715 # FIXME: insert proper C++ library support
18719 # FIXME: insert proper C++ library support
18723 case $cc_basename in
18725 # FIXME: insert proper C++ library support
18729 # FIXME: insert proper C++ library support
18735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18736 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18738 hardcode_libdir_flag_spec_CXX='-R$libdir'
18739 hardcode_direct_CXX=yes
18740 hardcode_shlibpath_var_CXX=no
18742 # Workaround some broken pre-1.5 toolchains
18743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18746 # C++ shared libraries are fairly broken
18750 hardcode_direct_CXX=yes
18751 hardcode_shlibpath_var_CXX=no
18752 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18755 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18756 export_dynamic_flag_spec_CXX='${wl}-E'
18757 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18759 output_verbose_link_cmd='echo'
18762 case $cc_basename in
18764 # Kuck and Associates, Inc. (KAI) C++ Compiler
18766 # KCC will only create a shared library if the output file
18767 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18768 # to its proper name (with version) after linking.
18769 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'
18771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18772 hardcode_libdir_separator_CXX=:
18774 # Archives containing C++ object files must be created using
18775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18780 # Rational C++ 2.4.1
18781 # FIXME: insert proper C++ library support
18785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18786 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'
18788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18789 hardcode_libdir_separator_CXX=:
18791 # Commands to make compiler produce verbose output that lists
18792 # what "hidden" libraries, object files and flags are used when
18793 # linking a shared library.
18795 # There doesn't appear to be a way to prevent this compiler from
18796 # explicitly linking system object files so we need to strip them
18797 # from the output so that they don't get included in the library
18799 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'
18802 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18803 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18804 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'
18806 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18807 hardcode_libdir_separator_CXX=:
18809 # Commands to make compiler produce verbose output that lists
18810 # what "hidden" libraries, object files and flags are used when
18811 # linking a shared library.
18812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18815 # FIXME: insert proper C++ library support
18822 case $cc_basename in
18824 # Kuck and Associates, Inc. (KAI) C++ Compiler
18826 # KCC will only create a shared library if the output file
18827 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18828 # to its proper name (with version) after linking.
18829 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'
18831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18832 hardcode_libdir_separator_CXX=:
18834 # Archives containing C++ object files must be created using
18835 # the KAI C++ compiler.
18836 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18839 # Rational C++ 2.4.1
18840 # FIXME: insert proper C++ library support
18844 allow_undefined_flag_CXX=' -expect_unresolved \*'
18845 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'
18846 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18847 echo "-hidden">> $lib.exp~
18848 $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~
18851 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18852 hardcode_libdir_separator_CXX=:
18854 # Commands to make compiler produce verbose output that lists
18855 # what "hidden" libraries, object files and flags are used when
18856 # linking a shared library.
18858 # There doesn't appear to be a way to prevent this compiler from
18859 # explicitly linking system object files so we need to strip them
18860 # from the output so that they don't get included in the library
18862 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'
18865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18867 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'
18869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18870 hardcode_libdir_separator_CXX=:
18872 # Commands to make compiler produce verbose output that lists
18873 # what "hidden" libraries, object files and flags are used when
18874 # linking a shared library.
18875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18878 # FIXME: insert proper C++ library support
18885 # FIXME: insert proper C++ library support
18889 case $cc_basename in
18892 # FIXME: insert proper C++ library support
18897 # FIXME: insert proper C++ library support
18901 # FIXME: insert proper C++ library support
18907 case $cc_basename in
18909 # Sun C++ 4.2, 5.x and Centerline C++
18910 archive_cmds_need_lc_CXX=yes
18911 no_undefined_flag_CXX=' -zdefs'
18912 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18913 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18914 $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'
18916 hardcode_libdir_flag_spec_CXX='-R$libdir'
18917 hardcode_shlibpath_var_CXX=no
18919 solaris2.[0-5] | solaris2.[0-5].*) ;;
18921 # The C++ compiler is used as linker so we must use $wl
18922 # flag to pass the commands to the underlying system
18923 # linker. We must also pass each convience library through
18924 # to the system linker between allextract/defaultextract.
18925 # The C++ compiler will combine linker options so we
18926 # cannot just pass the convience library names through
18928 # Supported since Solaris 2.6 (maybe 2.5.1?)
18929 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'
18932 link_all_deplibs_CXX=yes
18934 output_verbose_link_cmd='echo'
18936 # Archives containing C++ object files must be created using
18937 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18938 # necessary to make sure instantiated templates are included
18940 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18943 # Green Hills C++ Compiler
18944 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18946 # The C++ compiler must be used to create the archive.
18947 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18950 # GNU C++ compiler with Solaris linker
18951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18952 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18953 if $CC --version | grep -v '^2\.7' > /dev/null; then
18954 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18955 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18956 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18958 # Commands to make compiler produce verbose output that lists
18959 # what "hidden" libraries, object files and flags are used when
18960 # linking a shared library.
18961 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18963 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18965 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18966 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18967 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18975 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18981 no_undefined_flag_CXX='${wl}-z,text'
18982 archive_cmds_need_lc_CXX=no
18983 hardcode_shlibpath_var_CXX=no
18984 runpath_var='LD_RUN_PATH'
18986 case $cc_basename in
18988 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18992 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18997 sysv5* | sco3.2v5* | sco5v6*)
18998 # Note: We can NOT use -z defs as we might desire, because we do not
18999 # link with -lc, and that would cause any symbols used from libc to
19000 # always be unresolved, which means just about no library would
19001 # ever link correctly. If we're not using GNU ld we use -z text
19002 # though, which does catch some bad symbols but isn't as heavy-handed
19004 # For security reasons, it is highly recommended that you always
19005 # use absolute paths for naming shared libraries, and exclude the
19006 # DT_RUNPATH tag from executables and libraries. But doing so
19007 # requires that you compile everything twice, which is a pain.
19008 # So that behaviour is only enabled if SCOABSPATH is set to a
19009 # non-empty value in the environment. Most likely only useful for
19010 # creating official distributions of packages.
19011 # This is a hack until libtool officially supports absolute path
19012 # names for shared libraries.
19013 no_undefined_flag_CXX='${wl}-z,text'
19014 allow_undefined_flag_CXX='${wl}-z,nodefs'
19015 archive_cmds_need_lc_CXX=no
19016 hardcode_shlibpath_var_CXX=no
19017 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19018 hardcode_libdir_separator_CXX=':'
19019 link_all_deplibs_CXX=yes
19020 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19021 runpath_var='LD_RUN_PATH'
19023 case $cc_basename in
19025 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19026 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19029 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19035 case $cc_basename in
19037 # NonStop-UX NCC 3.20
19038 # FIXME: insert proper C++ library support
19042 # FIXME: insert proper C++ library support
19048 # FIXME: insert proper C++ library support
19052 # FIXME: insert proper C++ library support
19056 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19057 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19058 test "$ld_shlibs_CXX" = no && can_build_shared=no
19064 cat > conftest.$ac_ext <<EOF
19068 Foo (void) { a = 0; }
19074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075 (eval $ac_compile) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; then
19079 # Parse the compiler output and extract the necessary
19080 # objects, libraries and library flags.
19082 # Sentinel used to keep track of whether or not we are before
19083 # the conftest object file.
19084 pre_test_object_deps_done=no
19086 # The `*' in the case matches for architectures that use `case' in
19087 # $output_verbose_cmd can trigger glob expansion during the loop
19088 # eval without this substitution.
19089 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19091 for p in `eval $output_verbose_link_cmd`; do
19095 # Some compilers place space between "-{L,R}" and the path.
19096 # Remove the space.
19097 if test $p = "-L" \
19098 || test $p = "-R"; then
19105 if test "$pre_test_object_deps_done" = no; then
19108 # Internal compiler library paths should come after those
19109 # provided the user. The postdeps already come after the
19110 # user supplied libs so there is no need to process them.
19111 if test -z "$compiler_lib_search_path_CXX"; then
19112 compiler_lib_search_path_CXX="${prev}${p}"
19114 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19117 # The "-l" case would never come before the object being
19118 # linked, so don't bother handling this case.
19121 if test -z "$postdeps_CXX"; then
19122 postdeps_CXX="${prev}${p}"
19124 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19130 # This assumes that the test object file only shows up
19131 # once in the compiler output.
19132 if test "$p" = "conftest.$objext"; then
19133 pre_test_object_deps_done=yes
19137 if test "$pre_test_object_deps_done" = no; then
19138 if test -z "$predep_objects_CXX"; then
19139 predep_objects_CXX="$p"
19141 predep_objects_CXX="$predep_objects_CXX $p"
19144 if test -z "$postdep_objects_CXX"; then
19145 postdep_objects_CXX="$p"
19147 postdep_objects_CXX="$postdep_objects_CXX $p"
19152 *) ;; # Ignore the rest.
19160 echo "libtool.m4: error: problem compiling CXX test program"
19163 $rm -f confest.$objext
19165 # PORTME: override above test on systems where it is broken
19168 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19169 # hack all around it, let's just trust "g++" to DTRT.
19170 predep_objects_CXX=
19171 postdep_objects_CXX=
19176 case $cc_basename in
19178 # Adding this requires a known-good setup of shared libraries for
19179 # Sun compiler versions before 5.6, else PIC objects from an old
19180 # archive will be linked into the output, leading to subtle bugs.
19181 postdeps_CXX='-lCstd -lCrun'
19188 case " $postdeps_CXX " in
19189 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19192 lt_prog_compiler_wl_CXX=
19193 lt_prog_compiler_pic_CXX=
19194 lt_prog_compiler_static_CXX=
19196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19199 # C++ specific cases for pic, static, wl, etc.
19200 if test "$GXX" = yes; then
19201 lt_prog_compiler_wl_CXX='-Wl,'
19202 lt_prog_compiler_static_CXX='-static'
19206 # All AIX code is PIC.
19207 if test "$host_cpu" = ia64; then
19208 # AIX 5 now supports IA64 processor
19209 lt_prog_compiler_static_CXX='-Bstatic'
19213 # FIXME: we need at least 68020 code to build shared libraries, but
19214 # adding the `-m68020' flag to GCC prevents building anything better,
19216 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19219 # PIC is the default for these OSes.
19221 mingw* | os2* | pw32*)
19222 # This hack is so that the source file can tell whether it is being
19223 # built for inclusion in a dll (and should export symbols for example).
19224 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19226 darwin* | rhapsody*)
19227 # PIC is the default on this platform
19228 # Common symbols not allowed in MH_DYLIB files
19229 lt_prog_compiler_pic_CXX='-fno-common'
19232 # DJGPP does not support shared libraries at all
19233 lt_prog_compiler_pic_CXX=
19236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19237 # Instead, we relocate shared libraries at runtime.
19240 if test -d /usr/nec; then
19241 lt_prog_compiler_pic_CXX=-Kconform_pic
19245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19246 # not for PA HP-UX.
19251 lt_prog_compiler_pic_CXX='-fPIC'
19256 lt_prog_compiler_pic_CXX='-fPIC'
19262 # All AIX code is PIC.
19263 if test "$host_cpu" = ia64; then
19264 # AIX 5 now supports IA64 processor
19265 lt_prog_compiler_static_CXX='-Bstatic'
19267 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19271 case $cc_basename in
19273 # Green Hills C++ Compiler
19274 # _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"
19279 # PIC is the default on this platform
19280 # Common symbols not allowed in MH_DYLIB files
19281 case $cc_basename in
19283 lt_prog_compiler_pic_CXX='-qnocommon'
19284 lt_prog_compiler_wl_CXX='-Wl,'
19289 case $cc_basename in
19291 lt_prog_compiler_pic_CXX='-KPIC'
19294 # Green Hills C++ Compiler
19295 lt_prog_compiler_pic_CXX='-pic'
19301 freebsd* | kfreebsd*-gnu | dragonfly*)
19302 # FreeBSD uses GNU C++
19304 hpux9* | hpux10* | hpux11*)
19305 case $cc_basename in
19307 lt_prog_compiler_wl_CXX='-Wl,'
19308 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19309 if test "$host_cpu" != ia64; then
19310 lt_prog_compiler_pic_CXX='+Z'
19314 lt_prog_compiler_wl_CXX='-Wl,'
19315 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19321 lt_prog_compiler_pic_CXX='+Z'
19330 # This is c89, which is MS Visual C++ (no shared libs)
19331 # Anyone wants to do a port?
19333 irix5* | irix6* | nonstopux*)
19334 case $cc_basename in
19336 lt_prog_compiler_wl_CXX='-Wl,'
19337 lt_prog_compiler_static_CXX='-non_shared'
19338 # CC pic flag -KPIC is the default.
19345 case $cc_basename in
19348 lt_prog_compiler_wl_CXX='--backend -Wl,'
19349 lt_prog_compiler_pic_CXX='-fPIC'
19353 lt_prog_compiler_wl_CXX='-Wl,'
19354 lt_prog_compiler_pic_CXX='-KPIC'
19355 lt_prog_compiler_static_CXX='-static'
19358 # Portland Group C++ compiler.
19359 lt_prog_compiler_wl_CXX='-Wl,'
19360 lt_prog_compiler_pic_CXX='-fpic'
19361 lt_prog_compiler_static_CXX='-Bstatic'
19365 # Make sure the PIC flag is empty. It appears that all Alpha
19366 # Linux and Compaq Tru64 Unix objects are PIC.
19367 lt_prog_compiler_pic_CXX=
19368 lt_prog_compiler_static_CXX='-non_shared'
19379 case $cc_basename in
19381 lt_prog_compiler_pic_CXX='-W c,exportall'
19389 osf3* | osf4* | osf5*)
19390 case $cc_basename in
19392 lt_prog_compiler_wl_CXX='--backend -Wl,'
19395 # Rational C++ 2.4.1
19396 lt_prog_compiler_pic_CXX='-pic'
19399 # Digital/Compaq C++
19400 lt_prog_compiler_wl_CXX='-Wl,'
19401 # Make sure the PIC flag is empty. It appears that all Alpha
19402 # Linux and Compaq Tru64 Unix objects are PIC.
19403 lt_prog_compiler_pic_CXX=
19404 lt_prog_compiler_static_CXX='-non_shared'
19413 case $cc_basename in
19415 # Sun C++ 4.2, 5.x and Centerline C++
19416 lt_prog_compiler_pic_CXX='-KPIC'
19417 lt_prog_compiler_static_CXX='-Bstatic'
19418 lt_prog_compiler_wl_CXX='-Qoption ld '
19421 # Green Hills C++ Compiler
19422 lt_prog_compiler_pic_CXX='-PIC'
19429 case $cc_basename in
19432 lt_prog_compiler_pic_CXX='-pic'
19433 lt_prog_compiler_static_CXX='-Bstatic'
19437 lt_prog_compiler_pic_CXX='-pic'
19444 case $cc_basename in
19446 # NonStop-UX NCC 3.20
19447 lt_prog_compiler_pic_CXX='-KPIC'
19453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19454 case $cc_basename in
19456 lt_prog_compiler_wl_CXX='-Wl,'
19457 lt_prog_compiler_pic_CXX='-KPIC'
19458 lt_prog_compiler_static_CXX='-Bstatic'
19465 lt_prog_compiler_can_build_shared_CXX=no
19470 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19471 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19474 # Check to make sure the PIC flag actually works.
19476 if test -n "$lt_prog_compiler_pic_CXX"; then
19478 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19479 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19480 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 lt_prog_compiler_pic_works_CXX=no
19484 ac_outfile=conftest.$ac_objext
19485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19486 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19487 # Insert the option either (1) after the last *FLAGS variable, or
19488 # (2) before a word containing "conftest.", or (3) at the end.
19489 # Note that $ac_compile itself does not contain backslashes and begins
19490 # with a dollar sign (not a hyphen), so the echo should work correctly.
19491 # The option is referenced via a variable to avoid confusing sed.
19492 lt_compile=`echo "$ac_compile" | $SED \
19493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19495 -e 's:$: $lt_compiler_flag:'`
19496 (eval echo "\"\$as_me:19496: $lt_compile\"" >&5)
19497 (eval "$lt_compile" 2>conftest.err)
19499 cat conftest.err >&5
19500 echo "$as_me:19500: \$? = $ac_status" >&5
19501 if (exit $ac_status) && test -s "$ac_outfile"; then
19502 # The compiler can only warn and ignore the option if not recognized
19503 # So say no if there are warnings other than the usual output.
19504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19507 lt_prog_compiler_pic_works_CXX=yes
19513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19514 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19516 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19517 case $lt_prog_compiler_pic_CXX in
19519 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19522 lt_prog_compiler_pic_CXX=
19523 lt_prog_compiler_can_build_shared_CXX=no
19528 # For platforms which do not support PIC, -DPIC is meaningless:
19530 lt_prog_compiler_pic_CXX=
19533 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19538 # Check to make sure the static flag actually works.
19540 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19541 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19542 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19543 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 lt_prog_compiler_static_works_CXX=no
19547 save_LDFLAGS="$LDFLAGS"
19548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19549 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19551 # The linker can only warn and ignore the option if not recognized
19552 # So say no if there are warnings
19553 if test -s conftest.err; then
19554 # Append any errors to the config.log.
19555 cat conftest.err 1>&5
19556 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19558 if diff conftest.exp conftest.er2 >/dev/null; then
19559 lt_prog_compiler_static_works_CXX=yes
19562 lt_prog_compiler_static_works_CXX=yes
19566 LDFLAGS="$save_LDFLAGS"
19569 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19570 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19572 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19575 lt_prog_compiler_static_CXX=
19579 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19580 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19581 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 lt_cv_prog_compiler_c_o_CXX=no
19585 $rm -r conftest 2>/dev/null
19589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19591 lt_compiler_flag="-o out/conftest2.$ac_objext"
19592 # Insert the option either (1) after the last *FLAGS variable, or
19593 # (2) before a word containing "conftest.", or (3) at the end.
19594 # Note that $ac_compile itself does not contain backslashes and begins
19595 # with a dollar sign (not a hyphen), so the echo should work correctly.
19596 lt_compile=`echo "$ac_compile" | $SED \
19597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19599 -e 's:$: $lt_compiler_flag:'`
19600 (eval echo "\"\$as_me:19600: $lt_compile\"" >&5)
19601 (eval "$lt_compile" 2>out/conftest.err)
19603 cat out/conftest.err >&5
19604 echo "$as_me:19604: \$? = $ac_status" >&5
19605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19607 # The compiler can only warn and ignore the option if not recognized
19608 # So say no if there are warnings
19609 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19612 lt_cv_prog_compiler_c_o_CXX=yes
19617 # SGI C++ compiler will create directory out/ii_files/ for
19618 # template instantiation
19619 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19620 $rm out/* && rmdir out
19626 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19627 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19630 hard_links="nottested"
19631 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19632 # do not overwrite the value of need_locks provided by the user
19633 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19634 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19639 ln conftest.a conftest.b 2>&5 || hard_links=no
19640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19641 { echo "$as_me:$LINENO: result: $hard_links" >&5
19642 echo "${ECHO_T}$hard_links" >&6; }
19643 if test "$hard_links" = no; then
19644 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19645 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19652 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19653 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19658 # If we're using GNU nm, then we don't want the "-C" option.
19659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19660 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19661 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'
19663 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'
19667 export_symbols_cmds_CXX="$ltdll_cmds"
19670 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'
19673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19677 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19678 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19679 test "$ld_shlibs_CXX" = no && can_build_shared=no
19682 # Do we need to explicitly link libc?
19684 case "x$archive_cmds_need_lc_CXX" in
19686 # Assume -lc should be added
19687 archive_cmds_need_lc_CXX=yes
19689 if test "$enable_shared" = yes && test "$GCC" = yes; then
19690 case $archive_cmds_CXX in
19692 # FIXME: we may have to deal with multi-command sequences.
19695 # Test whether the compiler implicitly links with -lc since on some
19696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19697 # to ld, don't add -lc before -lgcc.
19698 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19699 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } 2>conftest.err; then
19710 libobjs=conftest.$ac_objext
19712 wl=$lt_prog_compiler_wl_CXX
19713 pic_flag=$lt_prog_compiler_pic_CXX
19719 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19720 allow_undefined_flag_CXX=
19721 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19722 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }
19727 archive_cmds_need_lc_CXX=no
19729 archive_cmds_need_lc_CXX=yes
19731 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19733 cat conftest.err 1>&5
19736 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19737 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19744 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19745 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19746 library_names_spec=
19747 libname_spec='lib$name'
19751 postuninstall_cmds=
19755 shlibpath_overrides_runpath=unknown
19757 dynamic_linker="$host_os ld.so"
19758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19759 if test "$GCC" = yes; then
19760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19761 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19762 # if the path contains ";" then we assume it to be the separator
19763 # otherwise default to the standard path separator (i.e. ":") - it is
19764 # assumed that no part of a normal pathname contains ";" but that should
19765 # okay in the real world where ";" in dirpaths is itself problematic.
19766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19773 need_lib_prefix=unknown
19774 hardcode_into_libs=no
19776 # when you set need_version to no, make sure it does not cause -set_version
19777 # flags to be left without arguments
19778 need_version=unknown
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19784 shlibpath_var=LIBPATH
19786 # AIX 3 has no versioning support, so we append a major version to the name.
19787 soname_spec='${libname}${release}${shared_ext}$major'
19794 hardcode_into_libs=yes
19795 if test "$host_cpu" = ia64; then
19796 # AIX 5 supports IA64
19797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19798 shlibpath_var=LD_LIBRARY_PATH
19800 # With GCC up to 2.95.x, collect2 would create an import file
19801 # for dependence libraries. The import file would start with
19802 # the line `#! .'. This would cause the generated library to
19803 # depend on `.', always an invalid library. This was fixed in
19804 # development snapshots of GCC prior to 3.0.
19806 aix4 | aix4.[01] | aix4.[01].*)
19807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19812 can_build_shared=no
19816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19817 # soname into executable. Probably we can add versioning support to
19818 # collect2, so additional links can be useful in future.
19819 if test "$aix_use_runtimelinking" = yes; then
19820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19821 # instead of lib<name>.a to let people know that these are not
19822 # typical AIX shared libraries.
19823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 # We preserve .a as extension for shared libraries through AIX4.2
19826 # and later when we are not doing run time linking.
19827 library_names_spec='${libname}${release}.a $libname.a'
19828 soname_spec='${libname}${release}${shared_ext}$major'
19830 shlibpath_var=LIBPATH
19835 library_names_spec='$libname.ixlibrary $libname.a'
19836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19837 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'
19841 library_names_spec='${libname}${shared_ext}'
19842 dynamic_linker="$host_os ld.so"
19843 shlibpath_var=LIBRARY_PATH
19849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850 soname_spec='${libname}${release}${shared_ext}$major'
19851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19852 shlibpath_var=LD_LIBRARY_PATH
19853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19855 # the default ld.so.conf also contains /usr/contrib/lib and
19856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19857 # libtool to hard-code these into programs
19860 cygwin* | mingw* | pw32*)
19861 version_type=windows
19866 case $GCC,$host_os in
19867 yes,cygwin* | yes,mingw* | yes,pw32*)
19868 library_names_spec='$libname.dll.a'
19869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19870 postinstall_cmds='base_file=`basename \${file}`~
19871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19872 dldir=$destdir/`dirname \$dlpath`~
19873 test -d \$dldir || mkdir -p \$dldir~
19874 $install_prog $dir/$dlname \$dldir/$dlname~
19875 chmod a+x \$dldir/$dlname'
19876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19877 dlpath=$dir/\$dldll~
19879 shlibpath_overrides_runpath=yes
19883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19885 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19888 # MinGW DLLs use traditional 'lib' prefix
19889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19892 # It is most probably a Windows format PATH printed by
19893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19894 # path with ; separators, and with drive letters. We can handle the
19895 # drive letters (cygwin fileutils understands them), so leave them,
19896 # especially as we might pass files found there to a mingw objdump,
19897 # which wouldn't understand a cygwinified path. Ahh.
19898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19904 # pw32 DLLs use 'pw' prefix rather than 'lib'
19905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19914 dynamic_linker='Win32 ld.exe'
19915 # FIXME: first we should search . and the directory the executable is in
19919 darwin* | rhapsody*)
19920 dynamic_linker="$host_os dyld"
19921 version_type=darwin
19924 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19925 soname_spec='${libname}${release}${major}$shared_ext'
19926 shlibpath_overrides_runpath=yes
19927 shlibpath_var=DYLD_LIBRARY_PATH
19928 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19929 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19930 if test "$GCC" = yes; then
19931 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"`
19933 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19943 soname_spec='${libname}${release}${shared_ext}$major'
19944 shlibpath_var=LD_LIBRARY_PATH
19955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19956 soname_spec='${libname}${release}${shared_ext}$major'
19957 shlibpath_var=LD_LIBRARY_PATH
19958 shlibpath_overrides_runpath=no
19959 hardcode_into_libs=yes
19960 dynamic_linker='GNU ld.so'
19963 freebsd* | dragonfly*)
19964 # DragonFly does not have aout. When/if they implement a new
19965 # versioning mechanism, adjust this.
19966 if test -x /usr/bin/objformat; then
19967 objformat=`/usr/bin/objformat`
19970 freebsd[123]*) objformat=aout ;;
19971 *) objformat=elf ;;
19974 version_type=freebsd-$objformat
19975 case $version_type in
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19986 shlibpath_var=LD_LIBRARY_PATH
19989 shlibpath_overrides_runpath=yes
19991 freebsd3.[01]* | freebsdelf3.[01]*)
19992 shlibpath_overrides_runpath=yes
19993 hardcode_into_libs=yes
19995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19997 shlibpath_overrides_runpath=no
19998 hardcode_into_libs=yes
20000 freebsd*) # from 4.6 on
20001 shlibpath_overrides_runpath=yes
20002 hardcode_into_libs=yes
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20012 soname_spec='${libname}${release}${shared_ext}$major'
20013 shlibpath_var=LD_LIBRARY_PATH
20014 hardcode_into_libs=yes
20017 hpux9* | hpux10* | hpux11*)
20018 # Give a soname corresponding to the major version so that dld.sl refuses to
20019 # link against other versions.
20026 hardcode_into_libs=yes
20027 dynamic_linker="$host_os dld.so"
20028 shlibpath_var=LD_LIBRARY_PATH
20029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20031 soname_spec='${libname}${release}${shared_ext}$major'
20032 if test "X$HPUX_IA64_MODE" = X32; then
20033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20041 hardcode_into_libs=yes
20042 dynamic_linker="$host_os dld.sl"
20043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20052 dynamic_linker="$host_os dld.sl"
20053 shlibpath_var=SHLIB_PATH
20054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20060 postinstall_cmds='chmod 555 $lib'
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20070 shlibpath_var=LD_LIBRARY_PATH
20071 shlibpath_overrides_runpath=no
20072 hardcode_into_libs=yes
20075 irix5* | irix6* | nonstopux*)
20077 nonstopux*) version_type=nonstopux ;;
20079 if test "$lt_cv_prog_gnu_ld" = yes; then
20087 soname_spec='${libname}${release}${shared_ext}$major'
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20090 irix5* | nonstopux*)
20091 libsuff= shlibsuff=
20094 case $LD in # libtool.m4 will add one of these switches to LD
20095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20096 libsuff= shlibsuff= libmagic=32-bit;;
20097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20098 libsuff=32 shlibsuff=N32 libmagic=N32;;
20099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20101 *) libsuff= shlibsuff= libmagic=never-match;;
20105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20106 shlibpath_overrides_runpath=no
20107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20109 hardcode_into_libs=yes
20112 # No shared lib support for Linux oldld, aout, or coff.
20113 linux*oldld* | linux*aout* | linux*coff*)
20117 # This must be Linux ELF.
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 shlibpath_overrides_runpath=no
20127 # This implies no fast_install, which is unacceptable.
20128 # Some rework will be needed to allow for fast_install
20129 # before this can be enabled.
20130 hardcode_into_libs=yes
20132 # Append ld.so.conf contents to the search path
20133 if test -f /etc/ld.so.conf; then
20134 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' ' '`
20135 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20138 # We used to test for /lib/ld.so.1 and disable shared libraries on
20139 # powerpc, because MkLinux only supported shared libraries with the
20140 # GNU dynamic linker. Since this was broken with cross compilers,
20141 # most powerpc-linux boxes support dynamic linking these days and
20142 # people can always --disable-shared, the test was removed, and we
20143 # assume the GNU/Linux dynamic linker is in use.
20144 dynamic_linker='GNU/Linux ld.so'
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20152 soname_spec='${libname}${release}${shared_ext}$major'
20153 shlibpath_var=LD_LIBRARY_PATH
20154 shlibpath_overrides_runpath=no
20155 hardcode_into_libs=yes
20156 dynamic_linker='GNU ld.so'
20163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20166 dynamic_linker='NetBSD (a.out) ld.so'
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20169 soname_spec='${libname}${release}${shared_ext}$major'
20170 dynamic_linker='NetBSD ld.elf_so'
20172 shlibpath_var=LD_LIBRARY_PATH
20173 shlibpath_overrides_runpath=yes
20174 hardcode_into_libs=yes
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=yes
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189 soname_spec='${libname}${release}${shared_ext}$major'
20190 shlibpath_var=LD_LIBRARY_PATH
20191 shlibpath_overrides_runpath=yes
20196 sys_lib_dlsearch_path_spec="/usr/lib"
20198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20201 *) need_version=no ;;
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20208 openbsd2.[89] | openbsd2.[89].*)
20209 shlibpath_overrides_runpath=no
20212 shlibpath_overrides_runpath=yes
20216 shlibpath_overrides_runpath=yes
20221 libname_spec='$name'
20224 library_names_spec='$libname${shared_ext} $libname.a'
20225 dynamic_linker='OS/2 ld.exe'
20226 shlibpath_var=LIBPATH
20229 osf3* | osf4* | osf5*)
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 shlibpath_var=LD_LIBRARY_PATH
20236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 shlibpath_overrides_runpath=yes
20248 hardcode_into_libs=yes
20249 # ldd complains unless libraries are executable
20250 postinstall_cmds='chmod +x $lib'
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=yes
20259 if test "$with_gnu_ld" = yes; then
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 case $host_vendor in
20272 shlibpath_overrides_runpath=no
20274 export_dynamic_flag_spec='${wl}-Blargedynsym'
20275 runpath_var=LD_RUN_PATH
20283 shlibpath_overrides_runpath=no
20284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20290 if test -d /usr/nec ;then
20292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20293 soname_spec='$libname${shared_ext}.$major'
20294 shlibpath_var=LD_LIBRARY_PATH
20298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20299 version_type=freebsd-elf
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 hardcode_into_libs=yes
20306 if test "$with_gnu_ld" = yes; then
20307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20308 shlibpath_overrides_runpath=no
20310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20311 shlibpath_overrides_runpath=yes
20314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20318 sys_lib_dlsearch_path_spec='/usr/lib'
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 shlibpath_var=LD_LIBRARY_PATH
20332 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20333 echo "${ECHO_T}$dynamic_linker" >&6; }
20334 test "$dynamic_linker" = no && can_build_shared=no
20336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20337 if test "$GCC" = yes; then
20338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20341 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20343 hardcode_action_CXX=
20344 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20345 test -n "$runpath_var_CXX" || \
20346 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20348 # We can hardcode non-existant directories.
20349 if test "$hardcode_direct_CXX" != no &&
20350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20351 # have to relink, otherwise we might link with an installed library
20352 # when we should be linking with a yet-to-be-installed one
20353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20354 test "$hardcode_minus_L_CXX" != no; then
20355 # Linking always hardcodes the temporary library directory.
20356 hardcode_action_CXX=relink
20358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20359 hardcode_action_CXX=immediate
20362 # We cannot hardcode anything, or else we can only hardcode existing
20364 hardcode_action_CXX=unsupported
20366 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20367 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20369 if test "$hardcode_action_CXX" = relink; then
20370 # Fast installation is not supported
20371 enable_fast_install=no
20372 elif test "$shlibpath_overrides_runpath" = yes ||
20373 test "$enable_shared" = no; then
20374 # Fast installation is not necessary
20375 enable_fast_install=needless
20379 # The else clause should only fire when bootstrapping the
20380 # libtool distribution, otherwise you forgot to ship ltmain.sh
20381 # with your package, and you will get complaints that there are
20382 # no rules to generate ltmain.sh.
20383 if test -f "$ltmain"; then
20384 # See if we are running on zsh, and set the options which allow our commands through
20385 # without removal of \ escapes.
20386 if test -n "${ZSH_VERSION+set}" ; then
20387 setopt NO_GLOB_SUBST
20389 # Now quote all the things that may contain metacharacters while being
20390 # careful not to overquote the AC_SUBSTed values. We take copies of the
20391 # variables and quote the copies for generation of the libtool script.
20392 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20394 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20395 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20396 deplibs_check_method reload_flag reload_cmds need_locks \
20397 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20398 lt_cv_sys_global_symbol_to_c_name_address \
20399 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20400 old_postinstall_cmds old_postuninstall_cmds \
20404 lt_prog_compiler_wl_CXX \
20405 lt_prog_compiler_pic_CXX \
20406 lt_prog_compiler_static_CXX \
20407 lt_prog_compiler_no_builtin_flag_CXX \
20408 export_dynamic_flag_spec_CXX \
20409 thread_safe_flag_spec_CXX \
20410 whole_archive_flag_spec_CXX \
20411 enable_shared_with_static_runtimes_CXX \
20412 old_archive_cmds_CXX \
20413 old_archive_from_new_cmds_CXX \
20414 predep_objects_CXX \
20415 postdep_objects_CXX \
20418 compiler_lib_search_path_CXX \
20420 archive_expsym_cmds_CXX \
20421 postinstall_cmds_CXX \
20422 postuninstall_cmds_CXX \
20423 old_archive_from_expsyms_cmds_CXX \
20424 allow_undefined_flag_CXX \
20425 no_undefined_flag_CXX \
20426 export_symbols_cmds_CXX \
20427 hardcode_libdir_flag_spec_CXX \
20428 hardcode_libdir_flag_spec_ld_CXX \
20429 hardcode_libdir_separator_CXX \
20430 hardcode_automatic_CXX \
20432 module_expsym_cmds_CXX \
20433 lt_cv_prog_compiler_c_o_CXX \
20434 exclude_expsyms_CXX \
20435 include_expsyms_CXX; do
20438 old_archive_cmds_CXX | \
20439 old_archive_from_new_cmds_CXX | \
20440 archive_cmds_CXX | \
20441 archive_expsym_cmds_CXX | \
20442 module_cmds_CXX | \
20443 module_expsym_cmds_CXX | \
20444 old_archive_from_expsyms_cmds_CXX | \
20445 export_symbols_cmds_CXX | \
20446 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20447 postinstall_cmds | postuninstall_cmds | \
20448 old_postinstall_cmds | old_postuninstall_cmds | \
20449 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20450 # Double-quote double-evaled strings.
20451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20460 *'\$0 --fallback-echo"')
20461 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20467 cat <<__EOF__ >> "$cfgfile"
20468 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20470 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20472 # Shell to use when invoking shell scripts.
20475 # Whether or not to build shared libraries.
20476 build_libtool_libs=$enable_shared
20478 # Whether or not to build static libraries.
20479 build_old_libs=$enable_static
20481 # Whether or not to add -lc for building shared libraries.
20482 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20484 # Whether or not to disallow shared libs when runtime libs are static
20485 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20487 # Whether or not to optimize for fast installation.
20488 fast_install=$enable_fast_install
20491 host_alias=$host_alias
20495 # The build system.
20496 build_alias=$build_alias
20500 # An echo program that does not interpret backslashes.
20505 AR_FLAGS=$lt_AR_FLAGS
20510 # LTCC compiler flags.
20511 LTCFLAGS=$lt_LTCFLAGS
20513 # A language-specific compiler.
20514 CC=$lt_compiler_CXX
20516 # Is the compiler the GNU C compiler?
20522 # The linker used to build libraries.
20525 # Whether we need hard or soft links.
20528 # A BSD-compatible nm program.
20531 # A symbol stripping program
20534 # Used to examine libraries when file_magic_cmd begins "file"
20535 MAGIC_CMD=$MAGIC_CMD
20537 # Used on cygwin: DLL creation program.
20540 # Used on cygwin: object dumper.
20543 # Used on cygwin: assembler.
20546 # The name of the directory that contains temporary libtool files.
20549 # How to create reloadable object files.
20550 reload_flag=$lt_reload_flag
20551 reload_cmds=$lt_reload_cmds
20553 # How to pass a linker flag through the compiler.
20554 wl=$lt_lt_prog_compiler_wl_CXX
20556 # Object file suffix (normally "o").
20557 objext="$ac_objext"
20559 # Old archive suffix (normally "a").
20562 # Shared library suffix (normally ".so").
20563 shrext_cmds='$shrext_cmds'
20565 # Executable file suffix (normally "").
20568 # Additional compiler flags for building library objects.
20569 pic_flag=$lt_lt_prog_compiler_pic_CXX
20572 # What is the maximum length of a command?
20573 max_cmd_len=$lt_cv_sys_max_cmd_len
20575 # Does compiler simultaneously support -c and -o options?
20576 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20578 # Must we lock files when doing compilation?
20579 need_locks=$lt_need_locks
20581 # Do we need the lib prefix for modules?
20582 need_lib_prefix=$need_lib_prefix
20584 # Do we need a version for libraries?
20585 need_version=$need_version
20587 # Whether dlopen is supported.
20588 dlopen_support=$enable_dlopen
20590 # Whether dlopen of programs is supported.
20591 dlopen_self=$enable_dlopen_self
20593 # Whether dlopen of statically linked programs is supported.
20594 dlopen_self_static=$enable_dlopen_self_static
20596 # Compiler flag to prevent dynamic linking.
20597 link_static_flag=$lt_lt_prog_compiler_static_CXX
20599 # Compiler flag to turn off builtin functions.
20600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20602 # Compiler flag to allow reflexive dlopens.
20603 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20605 # Compiler flag to generate shared objects directly from archives.
20606 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20608 # Compiler flag to generate thread-safe objects.
20609 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20611 # Library versioning type.
20612 version_type=$version_type
20614 # Format of library name prefix.
20615 libname_spec=$lt_libname_spec
20617 # List of archive names. First name is the real one, the rest are links.
20618 # The last name is the one that the linker finds with -lNAME.
20619 library_names_spec=$lt_library_names_spec
20621 # The coded name of the library, if different from the real name.
20622 soname_spec=$lt_soname_spec
20624 # Commands used to build and install an old-style archive.
20626 old_archive_cmds=$lt_old_archive_cmds_CXX
20627 old_postinstall_cmds=$lt_old_postinstall_cmds
20628 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20630 # Create an old-style archive from a shared archive.
20631 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20633 # Create a temporary old-style archive to link instead of a shared archive.
20634 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20636 # Commands used to build and install a shared archive.
20637 archive_cmds=$lt_archive_cmds_CXX
20638 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20639 postinstall_cmds=$lt_postinstall_cmds
20640 postuninstall_cmds=$lt_postuninstall_cmds
20642 # Commands used to build a loadable module (assumed same as above if empty)
20643 module_cmds=$lt_module_cmds_CXX
20644 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20646 # Commands to strip libraries.
20647 old_striplib=$lt_old_striplib
20648 striplib=$lt_striplib
20650 # Dependencies to place before the objects being linked to create a
20652 predep_objects=$lt_predep_objects_CXX
20654 # Dependencies to place after the objects being linked to create a
20656 postdep_objects=$lt_postdep_objects_CXX
20658 # Dependencies to place before the objects being linked to create a
20660 predeps=$lt_predeps_CXX
20662 # Dependencies to place after the objects being linked to create a
20664 postdeps=$lt_postdeps_CXX
20666 # The library search path used internally by the compiler when linking
20667 # a shared library.
20668 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20670 # Method to check whether dependent libraries are shared objects.
20671 deplibs_check_method=$lt_deplibs_check_method
20673 # Command to use when deplibs_check_method == file_magic.
20674 file_magic_cmd=$lt_file_magic_cmd
20676 # Flag that allows shared libraries with undefined symbols to be built.
20677 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20679 # Flag that forces no undefined symbols.
20680 no_undefined_flag=$lt_no_undefined_flag_CXX
20682 # Commands used to finish a libtool library installation in a directory.
20683 finish_cmds=$lt_finish_cmds
20685 # Same as above, but a single script fragment to be evaled but not shown.
20686 finish_eval=$lt_finish_eval
20688 # Take the output of nm and produce a listing of raw symbols and C names.
20689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20691 # Transform the output of nm in a proper C declaration
20692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20694 # Transform the output of nm in a C name address pair
20695 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20697 # This is the shared library runtime path variable.
20698 runpath_var=$runpath_var
20700 # This is the shared library path variable.
20701 shlibpath_var=$shlibpath_var
20703 # Is shlibpath searched before the hard-coded library search path?
20704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20706 # How to hardcode a shared library path into an executable.
20707 hardcode_action=$hardcode_action_CXX
20709 # Whether we should hardcode library paths into libraries.
20710 hardcode_into_libs=$hardcode_into_libs
20712 # Flag to hardcode \$libdir into a binary during linking.
20713 # This must work even if \$libdir does not exist.
20714 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20716 # If ld is used when linking, flag to hardcode \$libdir into
20717 # a binary during linking. This must work even if \$libdir does
20719 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20721 # Whether we need a single -rpath flag with a separated argument.
20722 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20724 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20725 # resulting binary.
20726 hardcode_direct=$hardcode_direct_CXX
20728 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20729 # resulting binary.
20730 hardcode_minus_L=$hardcode_minus_L_CXX
20732 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20733 # the resulting binary.
20734 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20736 # Set to yes if building a shared library automatically hardcodes DIR into the library
20737 # and all subsequent libraries and executables linked against it.
20738 hardcode_automatic=$hardcode_automatic_CXX
20740 # Variables whose values should be saved in libtool wrapper scripts and
20741 # restored at relink time.
20742 variables_saved_for_relink="$variables_saved_for_relink"
20744 # Whether libtool must link a program against all its dependency libraries.
20745 link_all_deplibs=$link_all_deplibs_CXX
20747 # Compile-time system search path for libraries
20748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20750 # Run-time system search path for libraries
20751 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20753 # Fix the shell variable \$srcfile for the compiler.
20754 fix_srcfile_path="$fix_srcfile_path_CXX"
20756 # Set to yes if exported symbols are required.
20757 always_export_symbols=$always_export_symbols_CXX
20759 # The commands to list exported symbols.
20760 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20762 # The commands to extract the exported symbol list from a shared archive.
20763 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20765 # Symbols that should not be listed in the preloaded symbols.
20766 exclude_expsyms=$lt_exclude_expsyms_CXX
20768 # Symbols that must always be exported.
20769 include_expsyms=$lt_include_expsyms_CXX
20771 # ### END LIBTOOL TAG CONFIG: $tagname
20777 # If there is no Makefile yet, we rely on a make rule to execute
20778 # `config.status --recheck' to rerun these tests and create the
20779 # libtool script then.
20780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20781 if test -f "$ltmain_in"; then
20782 test -f Makefile && make "$ltmain"
20788 ac_cpp='$CPP $CPPFLAGS'
20789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797 with_gnu_ldcxx=$with_gnu_ld
20798 with_gnu_ld=$lt_save_with_gnu_ld
20799 lt_cv_path_LDCXX=$lt_cv_path_LD
20800 lt_cv_path_LD=$lt_save_path_LD
20801 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20802 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20810 if test -n "$F77" && test "X$F77" != "Xno"; then
20813 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20814 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20815 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20818 archive_cmds_need_lc_F77=no
20819 allow_undefined_flag_F77=
20820 always_export_symbols_F77=no
20821 archive_expsym_cmds_F77=
20822 export_dynamic_flag_spec_F77=
20823 hardcode_direct_F77=no
20824 hardcode_libdir_flag_spec_F77=
20825 hardcode_libdir_flag_spec_ld_F77=
20826 hardcode_libdir_separator_F77=
20827 hardcode_minus_L_F77=no
20828 hardcode_automatic_F77=no
20830 module_expsym_cmds_F77=
20831 link_all_deplibs_F77=unknown
20832 old_archive_cmds_F77=$old_archive_cmds
20833 no_undefined_flag_F77=
20834 whole_archive_flag_spec_F77=
20835 enable_shared_with_static_runtimes_F77=no
20837 # Source file extension for f77 test sources.
20840 # Object file extension for compiled f77 test sources.
20844 # Code to be used in simple compile tests
20845 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20847 # Code to be used in simple link tests
20848 lt_simple_link_test_code=" program t\n end\n"
20850 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20852 # If no C compiler was specified, use CC.
20855 # If no C compiler flags were specified, use CFLAGS.
20856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20858 # Allow CC to be a program name with arguments.
20862 # save warnings/boilerplate of simple test code
20863 ac_outfile=conftest.$ac_objext
20864 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20866 _lt_compiler_boilerplate=`cat conftest.err`
20869 ac_outfile=conftest.$ac_objext
20870 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20872 _lt_linker_boilerplate=`cat conftest.err`
20876 # Allow CC to be a program name with arguments.
20881 for cc_temp in $compiler""; do
20883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20892 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20893 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20894 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20895 echo "${ECHO_T}$can_build_shared" >&6; }
20897 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20898 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20899 test "$can_build_shared" = "no" && enable_shared=no
20901 # On AIX, shared libraries and static libraries use the same namespace, and
20902 # are all built from PIC.
20905 test "$enable_shared" = yes && enable_static=no
20906 if test -n "$RANLIB"; then
20907 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20908 postinstall_cmds='$RANLIB $lib'
20912 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20913 test "$enable_shared" = yes && enable_static=no
20917 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20918 echo "${ECHO_T}$enable_shared" >&6; }
20920 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20921 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20922 # Make sure either enable_shared or enable_static is yes.
20923 test "$enable_shared" = yes || enable_static=yes
20924 { echo "$as_me:$LINENO: result: $enable_static" >&5
20925 echo "${ECHO_T}$enable_static" >&6; }
20930 lt_prog_compiler_wl_F77=
20931 lt_prog_compiler_pic_F77=
20932 lt_prog_compiler_static_F77=
20934 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20935 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20937 if test "$GCC" = yes; then
20938 lt_prog_compiler_wl_F77='-Wl,'
20939 lt_prog_compiler_static_F77='-static'
20943 # All AIX code is PIC.
20944 if test "$host_cpu" = ia64; then
20945 # AIX 5 now supports IA64 processor
20946 lt_prog_compiler_static_F77='-Bstatic'
20951 # FIXME: we need at least 68020 code to build shared libraries, but
20952 # adding the `-m68020' flag to GCC prevents building anything better,
20954 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20957 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20958 # PIC is the default for these OSes.
20961 mingw* | pw32* | os2*)
20962 # This hack is so that the source file can tell whether it is being
20963 # built for inclusion in a dll (and should export symbols for example).
20964 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20967 darwin* | rhapsody*)
20968 # PIC is the default on this platform
20969 # Common symbols not allowed in MH_DYLIB files
20970 lt_prog_compiler_pic_F77='-fno-common'
20974 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20975 # Instead, we relocate shared libraries at runtime.
20979 # Just because we use GCC doesn't mean we suddenly get shared libraries
20980 # on systems that don't support them.
20981 lt_prog_compiler_can_build_shared_F77=no
20986 if test -d /usr/nec; then
20987 lt_prog_compiler_pic_F77=-Kconform_pic
20992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20993 # not for PA HP-UX.
20999 lt_prog_compiler_pic_F77='-fPIC'
21005 lt_prog_compiler_pic_F77='-fPIC'
21009 # PORTME Check for flag to pass linker flags through the system compiler.
21012 lt_prog_compiler_wl_F77='-Wl,'
21013 if test "$host_cpu" = ia64; then
21014 # AIX 5 now supports IA64 processor
21015 lt_prog_compiler_static_F77='-Bstatic'
21017 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21021 # PIC is the default on this platform
21022 # Common symbols not allowed in MH_DYLIB files
21023 case $cc_basename in
21025 lt_prog_compiler_pic_F77='-qnocommon'
21026 lt_prog_compiler_wl_F77='-Wl,'
21031 mingw* | pw32* | os2*)
21032 # This hack is so that the source file can tell whether it is being
21033 # built for inclusion in a dll (and should export symbols for example).
21034 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21037 hpux9* | hpux10* | hpux11*)
21038 lt_prog_compiler_wl_F77='-Wl,'
21039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21040 # not for PA HP-UX.
21046 lt_prog_compiler_pic_F77='+Z'
21049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21050 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21053 irix5* | irix6* | nonstopux*)
21054 lt_prog_compiler_wl_F77='-Wl,'
21055 # PIC (with -KPIC) is the default.
21056 lt_prog_compiler_static_F77='-non_shared'
21060 lt_prog_compiler_pic_F77='-KPIC'
21061 lt_prog_compiler_static_F77='-Bstatic'
21065 case $cc_basename in
21067 lt_prog_compiler_wl_F77='-Wl,'
21068 lt_prog_compiler_pic_F77='-KPIC'
21069 lt_prog_compiler_static_F77='-static'
21071 pgcc* | pgf77* | pgf90* | pgf95*)
21072 # Portland Group compilers (*not* the Pentium gcc compiler,
21073 # which looks to be a dead project)
21074 lt_prog_compiler_wl_F77='-Wl,'
21075 lt_prog_compiler_pic_F77='-fpic'
21076 lt_prog_compiler_static_F77='-Bstatic'
21079 lt_prog_compiler_wl_F77='-Wl,'
21080 # All Alpha code is PIC.
21081 lt_prog_compiler_static_F77='-non_shared'
21086 osf3* | osf4* | osf5*)
21087 lt_prog_compiler_wl_F77='-Wl,'
21088 # All OSF/1 code is PIC.
21089 lt_prog_compiler_static_F77='-non_shared'
21093 lt_prog_compiler_pic_F77='-KPIC'
21094 lt_prog_compiler_static_F77='-Bstatic'
21095 case $cc_basename in
21096 f77* | f90* | f95*)
21097 lt_prog_compiler_wl_F77='-Qoption ld ';;
21099 lt_prog_compiler_wl_F77='-Wl,';;
21104 lt_prog_compiler_wl_F77='-Qoption ld '
21105 lt_prog_compiler_pic_F77='-PIC'
21106 lt_prog_compiler_static_F77='-Bstatic'
21109 sysv4 | sysv4.2uw2* | sysv4.3*)
21110 lt_prog_compiler_wl_F77='-Wl,'
21111 lt_prog_compiler_pic_F77='-KPIC'
21112 lt_prog_compiler_static_F77='-Bstatic'
21116 if test -d /usr/nec ;then
21117 lt_prog_compiler_pic_F77='-Kconform_pic'
21118 lt_prog_compiler_static_F77='-Bstatic'
21122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21123 lt_prog_compiler_wl_F77='-Wl,'
21124 lt_prog_compiler_pic_F77='-KPIC'
21125 lt_prog_compiler_static_F77='-Bstatic'
21129 lt_prog_compiler_wl_F77='-Wl,'
21130 lt_prog_compiler_can_build_shared_F77=no
21134 lt_prog_compiler_pic_F77='-pic'
21135 lt_prog_compiler_static_F77='-Bstatic'
21139 lt_prog_compiler_can_build_shared_F77=no
21144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21145 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21148 # Check to make sure the PIC flag actually works.
21150 if test -n "$lt_prog_compiler_pic_F77"; then
21152 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21153 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21154 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 lt_prog_compiler_pic_works_F77=no
21158 ac_outfile=conftest.$ac_objext
21159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21160 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21161 # Insert the option either (1) after the last *FLAGS variable, or
21162 # (2) before a word containing "conftest.", or (3) at the end.
21163 # Note that $ac_compile itself does not contain backslashes and begins
21164 # with a dollar sign (not a hyphen), so the echo should work correctly.
21165 # The option is referenced via a variable to avoid confusing sed.
21166 lt_compile=`echo "$ac_compile" | $SED \
21167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21169 -e 's:$: $lt_compiler_flag:'`
21170 (eval echo "\"\$as_me:21170: $lt_compile\"" >&5)
21171 (eval "$lt_compile" 2>conftest.err)
21173 cat conftest.err >&5
21174 echo "$as_me:21174: \$? = $ac_status" >&5
21175 if (exit $ac_status) && test -s "$ac_outfile"; then
21176 # The compiler can only warn and ignore the option if not recognized
21177 # So say no if there are warnings other than the usual output.
21178 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21181 lt_prog_compiler_pic_works_F77=yes
21187 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21188 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21190 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21191 case $lt_prog_compiler_pic_F77 in
21193 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21196 lt_prog_compiler_pic_F77=
21197 lt_prog_compiler_can_build_shared_F77=no
21202 # For platforms which do not support PIC, -DPIC is meaningless:
21204 lt_prog_compiler_pic_F77=
21207 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21212 # Check to make sure the static flag actually works.
21214 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21215 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21216 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21217 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 lt_prog_compiler_static_works_F77=no
21221 save_LDFLAGS="$LDFLAGS"
21222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21223 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21225 # The linker can only warn and ignore the option if not recognized
21226 # So say no if there are warnings
21227 if test -s conftest.err; then
21228 # Append any errors to the config.log.
21229 cat conftest.err 1>&5
21230 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21232 if diff conftest.exp conftest.er2 >/dev/null; then
21233 lt_prog_compiler_static_works_F77=yes
21236 lt_prog_compiler_static_works_F77=yes
21240 LDFLAGS="$save_LDFLAGS"
21243 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21244 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21246 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21249 lt_prog_compiler_static_F77=
21253 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21254 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21255 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 lt_cv_prog_compiler_c_o_F77=no
21259 $rm -r conftest 2>/dev/null
21263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21265 lt_compiler_flag="-o out/conftest2.$ac_objext"
21266 # Insert the option either (1) after the last *FLAGS variable, or
21267 # (2) before a word containing "conftest.", or (3) at the end.
21268 # Note that $ac_compile itself does not contain backslashes and begins
21269 # with a dollar sign (not a hyphen), so the echo should work correctly.
21270 lt_compile=`echo "$ac_compile" | $SED \
21271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21273 -e 's:$: $lt_compiler_flag:'`
21274 (eval echo "\"\$as_me:21274: $lt_compile\"" >&5)
21275 (eval "$lt_compile" 2>out/conftest.err)
21277 cat out/conftest.err >&5
21278 echo "$as_me:21278: \$? = $ac_status" >&5
21279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21281 # The compiler can only warn and ignore the option if not recognized
21282 # So say no if there are warnings
21283 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21286 lt_cv_prog_compiler_c_o_F77=yes
21291 # SGI C++ compiler will create directory out/ii_files/ for
21292 # template instantiation
21293 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21294 $rm out/* && rmdir out
21300 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21301 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21304 hard_links="nottested"
21305 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21306 # do not overwrite the value of need_locks provided by the user
21307 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21308 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21313 ln conftest.a conftest.b 2>&5 || hard_links=no
21314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21315 { echo "$as_me:$LINENO: result: $hard_links" >&5
21316 echo "${ECHO_T}$hard_links" >&6; }
21317 if test "$hard_links" = no; then
21318 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21319 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21326 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21327 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21330 allow_undefined_flag_F77=
21331 enable_shared_with_static_runtimes_F77=no
21333 archive_expsym_cmds_F77=
21334 old_archive_From_new_cmds_F77=
21335 old_archive_from_expsyms_cmds_F77=
21336 export_dynamic_flag_spec_F77=
21337 whole_archive_flag_spec_F77=
21338 thread_safe_flag_spec_F77=
21339 hardcode_libdir_flag_spec_F77=
21340 hardcode_libdir_flag_spec_ld_F77=
21341 hardcode_libdir_separator_F77=
21342 hardcode_direct_F77=no
21343 hardcode_minus_L_F77=no
21344 hardcode_shlibpath_var_F77=unsupported
21345 link_all_deplibs_F77=unknown
21346 hardcode_automatic_F77=no
21348 module_expsym_cmds_F77=
21349 always_export_symbols_F77=no
21350 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21351 # include_expsyms should be a list of space-separated symbols to be *always*
21352 # included in the symbol list
21353 include_expsyms_F77=
21354 # exclude_expsyms can be an extended regexp of symbols to exclude
21355 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21356 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21357 # as well as any symbol that contains `d'.
21358 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21359 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21360 # platforms (ab)use it in PIC code, but their linkers get confused if
21361 # the symbol is explicitly referenced. Since portable code cannot
21362 # rely on this symbol name, it's probably fine to never include it in
21363 # preloaded symbol tables.
21364 extract_expsyms_cmds=
21365 # Just being paranoid about ensuring that cc_basename is set.
21366 for cc_temp in $compiler""; do
21368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21374 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21377 cygwin* | mingw* | pw32*)
21378 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21379 # When not using gcc, we currently assume that we are using
21380 # Microsoft Visual C++.
21381 if test "$GCC" != yes; then
21386 # we just hope/assume this is gcc and not c89 (= MSVC++)
21395 if test "$with_gnu_ld" = yes; then
21396 # If archive_cmds runs LD, not CC, wlarc should be empty
21399 # Set some defaults for GNU ld with shared library support. These
21400 # are reset later if shared libraries are not supported. Putting them
21401 # here allows them to be overridden if necessary.
21402 runpath_var=LD_RUN_PATH
21403 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21404 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21405 # ancient GNU ld didn't support --whole-archive et. al.
21406 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21407 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21409 whole_archive_flag_spec_F77=
21411 supports_anon_versioning=no
21412 case `$LD -v 2>/dev/null` in
21413 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21414 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21415 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21416 *\ 2.11.*) ;; # other 2.11 versions
21417 *) supports_anon_versioning=yes ;;
21420 # See if GNU ld supports shared libraries.
21422 aix3* | aix4* | aix5*)
21423 # On AIX/PPC, the GNU linker is very broken
21424 if test "$host_cpu" != ia64; then
21428 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21429 *** to be unable to reliably create shared libraries on AIX.
21430 *** Therefore, libtool is disabling shared libraries support. If you
21431 *** really care for shared libraries, you may want to modify your PATH
21432 *** so that a non-GNU linker is found, and then restart.
21439 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)'
21440 hardcode_libdir_flag_spec_F77='-L$libdir'
21441 hardcode_minus_L_F77=yes
21443 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21444 # that the semantics of dynamic libraries on AmigaOS, at least up
21445 # to version 4, is to share data among multiple programs linked
21446 # with the same dynamic library. Since this doesn't match the
21447 # behavior of shared libraries on other platforms, we can't use
21453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21454 allow_undefined_flag_F77=unsupported
21455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21456 # support --undefined. This deserves some investigation. FIXME
21457 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21463 cygwin* | mingw* | pw32*)
21464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21465 # as there is no search path for DLLs.
21466 hardcode_libdir_flag_spec_F77='-L$libdir'
21467 allow_undefined_flag_F77=unsupported
21468 always_export_symbols_F77=no
21469 enable_shared_with_static_runtimes_F77=yes
21470 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21472 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21473 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21474 # If the export-symbols file already is a .def file (1st line
21475 # is EXPORTS), use it as is; otherwise, prepend...
21476 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21477 cp $export_symbols $output_objdir/$soname.def;
21479 echo EXPORTS > $output_objdir/$soname.def;
21480 cat $export_symbols >> $output_objdir/$soname.def;
21482 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21489 hardcode_direct_F77=no
21490 hardcode_shlibpath_var_F77=no
21491 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21492 export_dynamic_flag_spec_F77='${wl}-E'
21493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21494 # Instead, shared libraries are loaded at an image base (0x10000000 by
21495 # default) and relocated if they conflict, which is a slow very memory
21496 # consuming and fragmenting process. To avoid this, we pick a random,
21497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21499 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'
21500 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'
21504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21506 case $cc_basename,$host_cpu in
21507 pgcc*) # Portland Group C compiler
21508 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'
21509 tmp_addflag=' $pic_flag'
21511 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21512 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'
21513 tmp_addflag=' $pic_flag -Mnomain' ;;
21514 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21515 tmp_addflag=' -i_dynamic' ;;
21516 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21517 tmp_addflag=' -i_dynamic -nofor_main' ;;
21518 ifc* | ifort*) # Intel Fortran compiler
21519 tmp_addflag=' -nofor_main' ;;
21521 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21523 if test $supports_anon_versioning = yes; then
21524 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21526 $echo "local: *; };" >> $output_objdir/$libname.ver~
21527 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21536 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21539 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21540 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21545 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21549 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21550 *** create shared libraries on Solaris systems. Therefore, libtool
21551 *** is disabling shared libraries support. We urge you to upgrade GNU
21552 *** binutils to release 2.9.1 or newer. Another option is to modify
21553 *** your PATH or compiler configuration so that the native linker is
21554 *** used, and then restart.
21557 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21558 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21559 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21566 case `$LD -v 2>&1` in
21567 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21571 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21572 *** reliably create shared libraries on SCO systems. Therefore, libtool
21573 *** is disabling shared libraries support. We urge you to upgrade GNU
21574 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21575 *** your PATH or compiler configuration so that the native linker is
21576 *** used, and then restart.
21581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21582 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21583 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21584 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21593 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21595 hardcode_direct_F77=yes
21596 hardcode_shlibpath_var_F77=no
21600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21601 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21602 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21609 if test "$ld_shlibs_F77" = no; then
21611 hardcode_libdir_flag_spec_F77=
21612 export_dynamic_flag_spec_F77=
21613 whole_archive_flag_spec_F77=
21616 # PORTME fill in a description of your system's linker (not GNU ld)
21619 allow_undefined_flag_F77=unsupported
21620 always_export_symbols_F77=yes
21621 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'
21622 # Note: this linker hardcodes the directories in LIBPATH if there
21623 # are no directories specified by -L.
21624 hardcode_minus_L_F77=yes
21625 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21626 # Neither direct hardcoding nor static linking is supported with a
21628 hardcode_direct_F77=unsupported
21633 if test "$host_cpu" = ia64; then
21634 # On IA64, the linker does run time linking by default, so we don't
21635 # have to do anything special.
21636 aix_use_runtimelinking=no
21637 exp_sym_flag='-Bexport'
21640 # If we're using GNU nm, then we don't want the "-C" option.
21641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21643 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'
21645 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'
21647 aix_use_runtimelinking=no
21649 # Test if we are trying to use run time linking or normal
21650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21651 # need to do runtime linking.
21652 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21653 for ld_flag in $LDFLAGS; do
21654 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21655 aix_use_runtimelinking=yes
21662 exp_sym_flag='-bexport'
21663 no_entry_flag='-bnoentry'
21666 # When large executables or shared objects are built, AIX ld can
21667 # have problems creating the table of contents. If linking a library
21668 # or program results in "error TOC overflow" add -mminimal-toc to
21669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21672 archive_cmds_F77=''
21673 hardcode_direct_F77=yes
21674 hardcode_libdir_separator_F77=':'
21675 link_all_deplibs_F77=yes
21677 if test "$GCC" = yes; then
21678 case $host_os in aix4.[012]|aix4.[012].*)
21679 # We only want to do this on AIX 4.2 and lower, the check
21680 # below for broken collect2 doesn't work under 4.3+
21681 collect2name=`${CC} -print-prog-name=collect2`
21682 if test -f "$collect2name" && \
21683 strings "$collect2name" | grep resolve_lib_name >/dev/null
21685 # We have reworked collect2
21686 hardcode_direct_F77=yes
21688 # We have old collect2
21689 hardcode_direct_F77=unsupported
21690 # It fails to find uninstalled libraries when the uninstalled
21691 # path is not listed in the libpath. Setting hardcode_minus_L
21692 # to unsupported forces relinking
21693 hardcode_minus_L_F77=yes
21694 hardcode_libdir_flag_spec_F77='-L$libdir'
21695 hardcode_libdir_separator_F77=
21699 shared_flag='-shared'
21700 if test "$aix_use_runtimelinking" = yes; then
21701 shared_flag="$shared_flag "'${wl}-G'
21705 if test "$host_cpu" = ia64; then
21706 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21707 # chokes on -Wl,-G. The following line is correct:
21710 if test "$aix_use_runtimelinking" = yes; then
21711 shared_flag='${wl}-G'
21713 shared_flag='${wl}-bM:SRE'
21718 # It seems that -bexpall does not export symbols beginning with
21719 # underscore (_), so it is better to generate a list of symbols to export.
21720 always_export_symbols_F77=yes
21721 if test "$aix_use_runtimelinking" = yes; then
21722 # Warning - without using the other runtime loading flags (-brtl),
21723 # -berok will link without error, but may produce a broken library.
21724 allow_undefined_flag_F77='-berok'
21725 # Determine the default libpath from the value encoded in an empty executable.
21726 cat >conftest.$ac_ext <<_ACEOF
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_link") 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
21745 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21746 { (case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_try") 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; } &&
21755 { ac_try='test -s conftest$ac_exeext'
21756 { (case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_try") 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21768 # Check for a 64-bit object if we didn't find anything.
21769 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; }
21772 echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21778 rm -f core conftest.err conftest.$ac_objext \
21779 conftest$ac_exeext conftest.$ac_ext
21780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21782 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21783 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"
21785 if test "$host_cpu" = ia64; then
21786 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21787 allow_undefined_flag_F77="-z nodefs"
21788 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"
21790 # Determine the default libpath from the value encoded in an empty executable.
21791 cat >conftest.$ac_ext <<_ACEOF
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (ac_try="$ac_link"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_link") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21811 { (case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_try") 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest$ac_exeext'
21821 { (case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_try") 2>&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21833 # Check for a 64-bit object if we didn't find anything.
21834 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; }
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21843 rm -f core conftest.err conftest.$ac_objext \
21844 conftest$ac_exeext conftest.$ac_ext
21845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21847 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21848 # Warning - without using the other run time loading flags,
21849 # -berok will link without error, but may produce a broken library.
21850 no_undefined_flag_F77=' ${wl}-bernotok'
21851 allow_undefined_flag_F77=' ${wl}-berok'
21852 # Exported symbols can be pulled into shared objects from archives
21853 whole_archive_flag_spec_F77='$convenience'
21854 archive_cmds_need_lc_F77=yes
21855 # This is similar to how AIX traditionally builds its shared libraries.
21856 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'
21862 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)'
21863 hardcode_libdir_flag_spec_F77='-L$libdir'
21864 hardcode_minus_L_F77=yes
21865 # see comment about different semantics on the GNU ld section
21870 export_dynamic_flag_spec_F77=-rdynamic
21873 cygwin* | mingw* | pw32*)
21874 # When not using gcc, we currently assume that we are using
21875 # Microsoft Visual C++.
21876 # hardcode_libdir_flag_spec is actually meaningless, as there is
21877 # no search path for DLLs.
21878 hardcode_libdir_flag_spec_F77=' '
21879 allow_undefined_flag_F77=unsupported
21880 # Tell ltmain to make .lib files, not .a files.
21882 # Tell ltmain to make .dll files, not .so files.
21884 # FIXME: Setting linknames here is a bad hack.
21885 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21886 # The linker will automatically build a .lib file if we build a DLL.
21887 old_archive_From_new_cmds_F77='true'
21888 # FIXME: Should let the user specify the lib program.
21889 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21890 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21891 enable_shared_with_static_runtimes_F77=yes
21894 darwin* | rhapsody*)
21896 rhapsody* | darwin1.[012])
21897 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21900 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21901 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21903 case ${MACOSX_DEPLOYMENT_TARGET} in
21905 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21908 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21914 archive_cmds_need_lc_F77=no
21915 hardcode_direct_F77=no
21916 hardcode_automatic_F77=yes
21917 hardcode_shlibpath_var_F77=unsupported
21918 whole_archive_flag_spec_F77=''
21919 link_all_deplibs_F77=yes
21920 if test "$GCC" = yes ; then
21921 output_verbose_link_cmd='echo'
21922 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21923 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21924 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21925 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}'
21926 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}'
21928 case $cc_basename in
21930 output_verbose_link_cmd='echo'
21931 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21932 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21933 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21934 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}'
21935 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}'
21945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21946 hardcode_libdir_flag_spec_F77='-L$libdir'
21947 hardcode_shlibpath_var_F77=no
21954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21955 # support. Future versions do this automatically, but an explicit c++rt0.o
21956 # does not break anything, and helps significantly (at the cost of a little
21959 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21960 hardcode_libdir_flag_spec_F77='-R$libdir'
21961 hardcode_direct_F77=yes
21962 hardcode_shlibpath_var_F77=no
21965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21967 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21968 hardcode_direct_F77=yes
21969 hardcode_minus_L_F77=yes
21970 hardcode_shlibpath_var_F77=no
21973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21974 freebsd* | kfreebsd*-gnu | dragonfly*)
21975 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21976 hardcode_libdir_flag_spec_F77='-R$libdir'
21977 hardcode_direct_F77=yes
21978 hardcode_shlibpath_var_F77=no
21982 if test "$GCC" = yes; then
21983 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'
21985 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'
21987 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21988 hardcode_libdir_separator_F77=:
21989 hardcode_direct_F77=yes
21991 # hardcode_minus_L: Not really in the search PATH,
21992 # but as the default location of the library.
21993 hardcode_minus_L_F77=yes
21994 export_dynamic_flag_spec_F77='${wl}-E'
21998 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21999 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22001 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22003 if test "$with_gnu_ld" = no; then
22004 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22005 hardcode_libdir_separator_F77=:
22007 hardcode_direct_F77=yes
22008 export_dynamic_flag_spec_F77='${wl}-E'
22010 # hardcode_minus_L: Not really in the search PATH,
22011 # but as the default location of the library.
22012 hardcode_minus_L_F77=yes
22017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22020 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22023 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22026 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22032 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22035 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22038 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22042 if test "$with_gnu_ld" = no; then
22043 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22044 hardcode_libdir_separator_F77=:
22048 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22049 hardcode_direct_F77=no
22050 hardcode_shlibpath_var_F77=no
22053 hardcode_direct_F77=yes
22054 export_dynamic_flag_spec_F77='${wl}-E'
22056 # hardcode_minus_L: Not really in the search PATH,
22057 # but as the default location of the library.
22058 hardcode_minus_L_F77=yes
22064 irix5* | irix6* | nonstopux*)
22065 if test "$GCC" = yes; then
22066 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'
22068 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'
22069 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22072 hardcode_libdir_separator_F77=:
22073 link_all_deplibs_F77=yes
22077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22080 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22082 hardcode_libdir_flag_spec_F77='-R$libdir'
22083 hardcode_direct_F77=yes
22084 hardcode_shlibpath_var_F77=no
22088 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22089 hardcode_direct_F77=yes
22090 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22091 hardcode_libdir_separator_F77=:
22092 hardcode_shlibpath_var_F77=no
22096 hardcode_direct_F77=yes
22097 hardcode_shlibpath_var_F77=no
22098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22099 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22100 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22101 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22102 export_dynamic_flag_spec_F77='${wl}-E'
22105 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22106 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22107 hardcode_libdir_flag_spec_F77='-R$libdir'
22110 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22111 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22118 hardcode_libdir_flag_spec_F77='-L$libdir'
22119 hardcode_minus_L_F77=yes
22120 allow_undefined_flag_F77=unsupported
22121 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'
22122 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22126 if test "$GCC" = yes; then
22127 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22128 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'
22130 allow_undefined_flag_F77=' -expect_unresolved \*'
22131 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'
22133 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22134 hardcode_libdir_separator_F77=:
22137 osf4* | osf5*) # as osf3* with the addition of -msym flag
22138 if test "$GCC" = yes; then
22139 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22140 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'
22141 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22143 allow_undefined_flag_F77=' -expect_unresolved \*'
22144 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'
22145 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~
22146 $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'
22148 # Both c and cxx compiler support -rpath directly
22149 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22151 hardcode_libdir_separator_F77=:
22155 no_undefined_flag_F77=' -z text'
22156 if test "$GCC" = yes; then
22158 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22159 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22160 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22163 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22164 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22165 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22167 hardcode_libdir_flag_spec_F77='-R$libdir'
22168 hardcode_shlibpath_var_F77=no
22170 solaris2.[0-5] | solaris2.[0-5].*) ;;
22172 # The compiler driver will combine linker options so we
22173 # cannot just pass the convience library names through
22174 # without $wl, iff we do not link with $LD.
22175 # Luckily, gcc supports the same syntax we need for Sun Studio.
22176 # Supported since Solaris 2.6 (maybe 2.5.1?)
22179 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22181 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' ;;
22184 link_all_deplibs_F77=yes
22188 if test "x$host_vendor" = xsequent; then
22189 # Use $CC to link under sequent, because it throws in some extra .o
22190 # files that make .init and .fini sections work.
22191 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22193 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22195 hardcode_libdir_flag_spec_F77='-L$libdir'
22196 hardcode_direct_F77=yes
22197 hardcode_minus_L_F77=yes
22198 hardcode_shlibpath_var_F77=no
22202 case $host_vendor in
22204 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22205 hardcode_direct_F77=yes # is this really true???
22208 ## LD is ld it makes a PLAMLIB
22209 ## CC just makes a GrossModule.
22210 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22211 reload_cmds_F77='$CC -r -o $output$reload_objs'
22212 hardcode_direct_F77=no
22215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22216 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22219 runpath_var='LD_RUN_PATH'
22220 hardcode_shlibpath_var_F77=no
22224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225 hardcode_shlibpath_var_F77=no
22226 export_dynamic_flag_spec_F77='-Bexport'
22230 if test -d /usr/nec; then
22231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22232 hardcode_shlibpath_var_F77=no
22233 runpath_var=LD_RUN_PATH
22234 hardcode_runpath_var=yes
22239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22240 no_undefined_flag_F77='${wl}-z,text'
22241 archive_cmds_need_lc_F77=no
22242 hardcode_shlibpath_var_F77=no
22243 runpath_var='LD_RUN_PATH'
22245 if test "$GCC" = yes; then
22246 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22247 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22249 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22250 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22254 sysv5* | sco3.2v5* | sco5v6*)
22255 # Note: We can NOT use -z defs as we might desire, because we do not
22256 # link with -lc, and that would cause any symbols used from libc to
22257 # always be unresolved, which means just about no library would
22258 # ever link correctly. If we're not using GNU ld we use -z text
22259 # though, which does catch some bad symbols but isn't as heavy-handed
22261 no_undefined_flag_F77='${wl}-z,text'
22262 allow_undefined_flag_F77='${wl}-z,nodefs'
22263 archive_cmds_need_lc_F77=no
22264 hardcode_shlibpath_var_F77=no
22265 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22266 hardcode_libdir_separator_F77=':'
22267 link_all_deplibs_F77=yes
22268 export_dynamic_flag_spec_F77='${wl}-Bexport'
22269 runpath_var='LD_RUN_PATH'
22271 if test "$GCC" = yes; then
22272 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22273 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22275 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282 hardcode_libdir_flag_spec_F77='-L$libdir'
22283 hardcode_shlibpath_var_F77=no
22292 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22293 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22294 test "$ld_shlibs_F77" = no && can_build_shared=no
22297 # Do we need to explicitly link libc?
22299 case "x$archive_cmds_need_lc_F77" in
22301 # Assume -lc should be added
22302 archive_cmds_need_lc_F77=yes
22304 if test "$enable_shared" = yes && test "$GCC" = yes; then
22305 case $archive_cmds_F77 in
22307 # FIXME: we may have to deal with multi-command sequences.
22310 # Test whether the compiler implicitly links with -lc since on some
22311 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22312 # to ld, don't add -lc before -lgcc.
22313 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22314 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } 2>conftest.err; then
22325 libobjs=conftest.$ac_objext
22327 wl=$lt_prog_compiler_wl_F77
22328 pic_flag=$lt_prog_compiler_pic_F77
22334 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22335 allow_undefined_flag_F77=
22336 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22337 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }
22342 archive_cmds_need_lc_F77=no
22344 archive_cmds_need_lc_F77=yes
22346 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22348 cat conftest.err 1>&5
22351 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22352 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22359 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22360 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22361 library_names_spec=
22362 libname_spec='lib$name'
22366 postuninstall_cmds=
22370 shlibpath_overrides_runpath=unknown
22372 dynamic_linker="$host_os ld.so"
22373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22374 if test "$GCC" = yes; then
22375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22376 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22377 # if the path contains ";" then we assume it to be the separator
22378 # otherwise default to the standard path separator (i.e. ":") - it is
22379 # assumed that no part of a normal pathname contains ";" but that should
22380 # okay in the real world where ";" in dirpaths is itself problematic.
22381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22388 need_lib_prefix=unknown
22389 hardcode_into_libs=no
22391 # when you set need_version to no, make sure it does not cause -set_version
22392 # flags to be left without arguments
22393 need_version=unknown
22398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22399 shlibpath_var=LIBPATH
22401 # AIX 3 has no versioning support, so we append a major version to the name.
22402 soname_spec='${libname}${release}${shared_ext}$major'
22409 hardcode_into_libs=yes
22410 if test "$host_cpu" = ia64; then
22411 # AIX 5 supports IA64
22412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22413 shlibpath_var=LD_LIBRARY_PATH
22415 # With GCC up to 2.95.x, collect2 would create an import file
22416 # for dependence libraries. The import file would start with
22417 # the line `#! .'. This would cause the generated library to
22418 # depend on `.', always an invalid library. This was fixed in
22419 # development snapshots of GCC prior to 3.0.
22421 aix4 | aix4.[01] | aix4.[01].*)
22422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22427 can_build_shared=no
22431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22432 # soname into executable. Probably we can add versioning support to
22433 # collect2, so additional links can be useful in future.
22434 if test "$aix_use_runtimelinking" = yes; then
22435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22436 # instead of lib<name>.a to let people know that these are not
22437 # typical AIX shared libraries.
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440 # We preserve .a as extension for shared libraries through AIX4.2
22441 # and later when we are not doing run time linking.
22442 library_names_spec='${libname}${release}.a $libname.a'
22443 soname_spec='${libname}${release}${shared_ext}$major'
22445 shlibpath_var=LIBPATH
22450 library_names_spec='$libname.ixlibrary $libname.a'
22451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22452 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'
22456 library_names_spec='${libname}${shared_ext}'
22457 dynamic_linker="$host_os ld.so"
22458 shlibpath_var=LIBRARY_PATH
22464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22465 soname_spec='${libname}${release}${shared_ext}$major'
22466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22467 shlibpath_var=LD_LIBRARY_PATH
22468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22470 # the default ld.so.conf also contains /usr/contrib/lib and
22471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22472 # libtool to hard-code these into programs
22475 cygwin* | mingw* | pw32*)
22476 version_type=windows
22481 case $GCC,$host_os in
22482 yes,cygwin* | yes,mingw* | yes,pw32*)
22483 library_names_spec='$libname.dll.a'
22484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22485 postinstall_cmds='base_file=`basename \${file}`~
22486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22487 dldir=$destdir/`dirname \$dlpath`~
22488 test -d \$dldir || mkdir -p \$dldir~
22489 $install_prog $dir/$dlname \$dldir/$dlname~
22490 chmod a+x \$dldir/$dlname'
22491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22492 dlpath=$dir/\$dldll~
22494 shlibpath_overrides_runpath=yes
22498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22500 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22503 # MinGW DLLs use traditional 'lib' prefix
22504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22505 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22506 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22507 # It is most probably a Windows format PATH printed by
22508 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22509 # path with ; separators, and with drive letters. We can handle the
22510 # drive letters (cygwin fileutils understands them), so leave them,
22511 # especially as we might pass files found there to a mingw objdump,
22512 # which wouldn't understand a cygwinified path. Ahh.
22513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22519 # pw32 DLLs use 'pw' prefix rather than 'lib'
22520 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22526 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22529 dynamic_linker='Win32 ld.exe'
22530 # FIXME: first we should search . and the directory the executable is in
22534 darwin* | rhapsody*)
22535 dynamic_linker="$host_os dyld"
22536 version_type=darwin
22539 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22540 soname_spec='${libname}${release}${major}$shared_ext'
22541 shlibpath_overrides_runpath=yes
22542 shlibpath_var=DYLD_LIBRARY_PATH
22543 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22544 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22545 if test "$GCC" = yes; then
22546 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"`
22548 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22558 soname_spec='${libname}${release}${shared_ext}$major'
22559 shlibpath_var=LD_LIBRARY_PATH
22570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22571 soname_spec='${libname}${release}${shared_ext}$major'
22572 shlibpath_var=LD_LIBRARY_PATH
22573 shlibpath_overrides_runpath=no
22574 hardcode_into_libs=yes
22575 dynamic_linker='GNU ld.so'
22578 freebsd* | dragonfly*)
22579 # DragonFly does not have aout. When/if they implement a new
22580 # versioning mechanism, adjust this.
22581 if test -x /usr/bin/objformat; then
22582 objformat=`/usr/bin/objformat`
22585 freebsd[123]*) objformat=aout ;;
22586 *) objformat=elf ;;
22589 version_type=freebsd-$objformat
22590 case $version_type in
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22601 shlibpath_var=LD_LIBRARY_PATH
22604 shlibpath_overrides_runpath=yes
22606 freebsd3.[01]* | freebsdelf3.[01]*)
22607 shlibpath_overrides_runpath=yes
22608 hardcode_into_libs=yes
22610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22612 shlibpath_overrides_runpath=no
22613 hardcode_into_libs=yes
22615 freebsd*) # from 4.6 on
22616 shlibpath_overrides_runpath=yes
22617 hardcode_into_libs=yes
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 shlibpath_var=LD_LIBRARY_PATH
22629 hardcode_into_libs=yes
22632 hpux9* | hpux10* | hpux11*)
22633 # Give a soname corresponding to the major version so that dld.sl refuses to
22634 # link against other versions.
22641 hardcode_into_libs=yes
22642 dynamic_linker="$host_os dld.so"
22643 shlibpath_var=LD_LIBRARY_PATH
22644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22646 soname_spec='${libname}${release}${shared_ext}$major'
22647 if test "X$HPUX_IA64_MODE" = X32; then
22648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22656 hardcode_into_libs=yes
22657 dynamic_linker="$host_os dld.sl"
22658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22667 dynamic_linker="$host_os dld.sl"
22668 shlibpath_var=SHLIB_PATH
22669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22674 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22675 postinstall_cmds='chmod 555 $lib'
22682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22683 soname_spec='${libname}${release}${shared_ext}$major'
22684 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22685 shlibpath_var=LD_LIBRARY_PATH
22686 shlibpath_overrides_runpath=no
22687 hardcode_into_libs=yes
22690 irix5* | irix6* | nonstopux*)
22692 nonstopux*) version_type=nonstopux ;;
22694 if test "$lt_cv_prog_gnu_ld" = yes; then
22702 soname_spec='${libname}${release}${shared_ext}$major'
22703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22705 irix5* | nonstopux*)
22706 libsuff= shlibsuff=
22709 case $LD in # libtool.m4 will add one of these switches to LD
22710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22711 libsuff= shlibsuff= libmagic=32-bit;;
22712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22713 libsuff=32 shlibsuff=N32 libmagic=N32;;
22714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22716 *) libsuff= shlibsuff= libmagic=never-match;;
22720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22721 shlibpath_overrides_runpath=no
22722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22724 hardcode_into_libs=yes
22727 # No shared lib support for Linux oldld, aout, or coff.
22728 linux*oldld* | linux*aout* | linux*coff*)
22732 # This must be Linux ELF.
22737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22738 soname_spec='${libname}${release}${shared_ext}$major'
22739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 shlibpath_overrides_runpath=no
22742 # This implies no fast_install, which is unacceptable.
22743 # Some rework will be needed to allow for fast_install
22744 # before this can be enabled.
22745 hardcode_into_libs=yes
22747 # Append ld.so.conf contents to the search path
22748 if test -f /etc/ld.so.conf; then
22749 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' ' '`
22750 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22753 # We used to test for /lib/ld.so.1 and disable shared libraries on
22754 # powerpc, because MkLinux only supported shared libraries with the
22755 # GNU dynamic linker. Since this was broken with cross compilers,
22756 # most powerpc-linux boxes support dynamic linking these days and
22757 # people can always --disable-shared, the test was removed, and we
22758 # assume the GNU/Linux dynamic linker is in use.
22759 dynamic_linker='GNU/Linux ld.so'
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22767 soname_spec='${libname}${release}${shared_ext}$major'
22768 shlibpath_var=LD_LIBRARY_PATH
22769 shlibpath_overrides_runpath=no
22770 hardcode_into_libs=yes
22771 dynamic_linker='GNU ld.so'
22778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22781 dynamic_linker='NetBSD (a.out) ld.so'
22783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22784 soname_spec='${libname}${release}${shared_ext}$major'
22785 dynamic_linker='NetBSD ld.elf_so'
22787 shlibpath_var=LD_LIBRARY_PATH
22788 shlibpath_overrides_runpath=yes
22789 hardcode_into_libs=yes
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=yes
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22804 soname_spec='${libname}${release}${shared_ext}$major'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 shlibpath_overrides_runpath=yes
22811 sys_lib_dlsearch_path_spec="/usr/lib"
22813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22816 *) need_version=no ;;
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22820 shlibpath_var=LD_LIBRARY_PATH
22821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22823 openbsd2.[89] | openbsd2.[89].*)
22824 shlibpath_overrides_runpath=no
22827 shlibpath_overrides_runpath=yes
22831 shlibpath_overrides_runpath=yes
22836 libname_spec='$name'
22839 library_names_spec='$libname${shared_ext} $libname.a'
22840 dynamic_linker='OS/2 ld.exe'
22841 shlibpath_var=LIBPATH
22844 osf3* | osf4* | osf5*)
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 shlibpath_var=LD_LIBRARY_PATH
22851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 shlibpath_overrides_runpath=yes
22863 hardcode_into_libs=yes
22864 # ldd complains unless libraries are executable
22865 postinstall_cmds='chmod +x $lib'
22870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=yes
22874 if test "$with_gnu_ld" = yes; then
22882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22883 soname_spec='${libname}${release}${shared_ext}$major'
22884 shlibpath_var=LD_LIBRARY_PATH
22885 case $host_vendor in
22887 shlibpath_overrides_runpath=no
22889 export_dynamic_flag_spec='${wl}-Blargedynsym'
22890 runpath_var=LD_RUN_PATH
22898 shlibpath_overrides_runpath=no
22899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22905 if test -d /usr/nec ;then
22907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22908 soname_spec='$libname${shared_ext}.$major'
22909 shlibpath_var=LD_LIBRARY_PATH
22913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22914 version_type=freebsd-elf
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 hardcode_into_libs=yes
22921 if test "$with_gnu_ld" = yes; then
22922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22923 shlibpath_overrides_runpath=no
22925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22926 shlibpath_overrides_runpath=yes
22929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22933 sys_lib_dlsearch_path_spec='/usr/lib'
22938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22939 soname_spec='${libname}${release}${shared_ext}$major'
22940 shlibpath_var=LD_LIBRARY_PATH
22947 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22948 echo "${ECHO_T}$dynamic_linker" >&6; }
22949 test "$dynamic_linker" = no && can_build_shared=no
22951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22952 if test "$GCC" = yes; then
22953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22956 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22957 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22958 hardcode_action_F77=
22959 if test -n "$hardcode_libdir_flag_spec_F77" || \
22960 test -n "$runpath_var_F77" || \
22961 test "X$hardcode_automatic_F77" = "Xyes" ; then
22963 # We can hardcode non-existant directories.
22964 if test "$hardcode_direct_F77" != no &&
22965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22966 # have to relink, otherwise we might link with an installed library
22967 # when we should be linking with a yet-to-be-installed one
22968 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22969 test "$hardcode_minus_L_F77" != no; then
22970 # Linking always hardcodes the temporary library directory.
22971 hardcode_action_F77=relink
22973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22974 hardcode_action_F77=immediate
22977 # We cannot hardcode anything, or else we can only hardcode existing
22979 hardcode_action_F77=unsupported
22981 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22982 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22984 if test "$hardcode_action_F77" = relink; then
22985 # Fast installation is not supported
22986 enable_fast_install=no
22987 elif test "$shlibpath_overrides_runpath" = yes ||
22988 test "$enable_shared" = no; then
22989 # Fast installation is not necessary
22990 enable_fast_install=needless
22994 # The else clause should only fire when bootstrapping the
22995 # libtool distribution, otherwise you forgot to ship ltmain.sh
22996 # with your package, and you will get complaints that there are
22997 # no rules to generate ltmain.sh.
22998 if test -f "$ltmain"; then
22999 # See if we are running on zsh, and set the options which allow our commands through
23000 # without removal of \ escapes.
23001 if test -n "${ZSH_VERSION+set}" ; then
23002 setopt NO_GLOB_SUBST
23004 # Now quote all the things that may contain metacharacters while being
23005 # careful not to overquote the AC_SUBSTed values. We take copies of the
23006 # variables and quote the copies for generation of the libtool script.
23007 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23009 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23010 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23011 deplibs_check_method reload_flag reload_cmds need_locks \
23012 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23013 lt_cv_sys_global_symbol_to_c_name_address \
23014 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23015 old_postinstall_cmds old_postuninstall_cmds \
23019 lt_prog_compiler_wl_F77 \
23020 lt_prog_compiler_pic_F77 \
23021 lt_prog_compiler_static_F77 \
23022 lt_prog_compiler_no_builtin_flag_F77 \
23023 export_dynamic_flag_spec_F77 \
23024 thread_safe_flag_spec_F77 \
23025 whole_archive_flag_spec_F77 \
23026 enable_shared_with_static_runtimes_F77 \
23027 old_archive_cmds_F77 \
23028 old_archive_from_new_cmds_F77 \
23029 predep_objects_F77 \
23030 postdep_objects_F77 \
23033 compiler_lib_search_path_F77 \
23035 archive_expsym_cmds_F77 \
23036 postinstall_cmds_F77 \
23037 postuninstall_cmds_F77 \
23038 old_archive_from_expsyms_cmds_F77 \
23039 allow_undefined_flag_F77 \
23040 no_undefined_flag_F77 \
23041 export_symbols_cmds_F77 \
23042 hardcode_libdir_flag_spec_F77 \
23043 hardcode_libdir_flag_spec_ld_F77 \
23044 hardcode_libdir_separator_F77 \
23045 hardcode_automatic_F77 \
23047 module_expsym_cmds_F77 \
23048 lt_cv_prog_compiler_c_o_F77 \
23049 exclude_expsyms_F77 \
23050 include_expsyms_F77; do
23053 old_archive_cmds_F77 | \
23054 old_archive_from_new_cmds_F77 | \
23055 archive_cmds_F77 | \
23056 archive_expsym_cmds_F77 | \
23057 module_cmds_F77 | \
23058 module_expsym_cmds_F77 | \
23059 old_archive_from_expsyms_cmds_F77 | \
23060 export_symbols_cmds_F77 | \
23061 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23062 postinstall_cmds | postuninstall_cmds | \
23063 old_postinstall_cmds | old_postuninstall_cmds | \
23064 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23065 # Double-quote double-evaled strings.
23066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23075 *'\$0 --fallback-echo"')
23076 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23082 cat <<__EOF__ >> "$cfgfile"
23083 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23085 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23087 # Shell to use when invoking shell scripts.
23090 # Whether or not to build shared libraries.
23091 build_libtool_libs=$enable_shared
23093 # Whether or not to build static libraries.
23094 build_old_libs=$enable_static
23096 # Whether or not to add -lc for building shared libraries.
23097 build_libtool_need_lc=$archive_cmds_need_lc_F77
23099 # Whether or not to disallow shared libs when runtime libs are static
23100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23102 # Whether or not to optimize for fast installation.
23103 fast_install=$enable_fast_install
23106 host_alias=$host_alias
23110 # The build system.
23111 build_alias=$build_alias
23115 # An echo program that does not interpret backslashes.
23120 AR_FLAGS=$lt_AR_FLAGS
23125 # LTCC compiler flags.
23126 LTCFLAGS=$lt_LTCFLAGS
23128 # A language-specific compiler.
23129 CC=$lt_compiler_F77
23131 # Is the compiler the GNU C compiler?
23137 # The linker used to build libraries.
23140 # Whether we need hard or soft links.
23143 # A BSD-compatible nm program.
23146 # A symbol stripping program
23149 # Used to examine libraries when file_magic_cmd begins "file"
23150 MAGIC_CMD=$MAGIC_CMD
23152 # Used on cygwin: DLL creation program.
23155 # Used on cygwin: object dumper.
23158 # Used on cygwin: assembler.
23161 # The name of the directory that contains temporary libtool files.
23164 # How to create reloadable object files.
23165 reload_flag=$lt_reload_flag
23166 reload_cmds=$lt_reload_cmds
23168 # How to pass a linker flag through the compiler.
23169 wl=$lt_lt_prog_compiler_wl_F77
23171 # Object file suffix (normally "o").
23172 objext="$ac_objext"
23174 # Old archive suffix (normally "a").
23177 # Shared library suffix (normally ".so").
23178 shrext_cmds='$shrext_cmds'
23180 # Executable file suffix (normally "").
23183 # Additional compiler flags for building library objects.
23184 pic_flag=$lt_lt_prog_compiler_pic_F77
23187 # What is the maximum length of a command?
23188 max_cmd_len=$lt_cv_sys_max_cmd_len
23190 # Does compiler simultaneously support -c and -o options?
23191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23193 # Must we lock files when doing compilation?
23194 need_locks=$lt_need_locks
23196 # Do we need the lib prefix for modules?
23197 need_lib_prefix=$need_lib_prefix
23199 # Do we need a version for libraries?
23200 need_version=$need_version
23202 # Whether dlopen is supported.
23203 dlopen_support=$enable_dlopen
23205 # Whether dlopen of programs is supported.
23206 dlopen_self=$enable_dlopen_self
23208 # Whether dlopen of statically linked programs is supported.
23209 dlopen_self_static=$enable_dlopen_self_static
23211 # Compiler flag to prevent dynamic linking.
23212 link_static_flag=$lt_lt_prog_compiler_static_F77
23214 # Compiler flag to turn off builtin functions.
23215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23217 # Compiler flag to allow reflexive dlopens.
23218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23220 # Compiler flag to generate shared objects directly from archives.
23221 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23223 # Compiler flag to generate thread-safe objects.
23224 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23226 # Library versioning type.
23227 version_type=$version_type
23229 # Format of library name prefix.
23230 libname_spec=$lt_libname_spec
23232 # List of archive names. First name is the real one, the rest are links.
23233 # The last name is the one that the linker finds with -lNAME.
23234 library_names_spec=$lt_library_names_spec
23236 # The coded name of the library, if different from the real name.
23237 soname_spec=$lt_soname_spec
23239 # Commands used to build and install an old-style archive.
23241 old_archive_cmds=$lt_old_archive_cmds_F77
23242 old_postinstall_cmds=$lt_old_postinstall_cmds
23243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23245 # Create an old-style archive from a shared archive.
23246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23248 # Create a temporary old-style archive to link instead of a shared archive.
23249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23251 # Commands used to build and install a shared archive.
23252 archive_cmds=$lt_archive_cmds_F77
23253 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23254 postinstall_cmds=$lt_postinstall_cmds
23255 postuninstall_cmds=$lt_postuninstall_cmds
23257 # Commands used to build a loadable module (assumed same as above if empty)
23258 module_cmds=$lt_module_cmds_F77
23259 module_expsym_cmds=$lt_module_expsym_cmds_F77
23261 # Commands to strip libraries.
23262 old_striplib=$lt_old_striplib
23263 striplib=$lt_striplib
23265 # Dependencies to place before the objects being linked to create a
23267 predep_objects=$lt_predep_objects_F77
23269 # Dependencies to place after the objects being linked to create a
23271 postdep_objects=$lt_postdep_objects_F77
23273 # Dependencies to place before the objects being linked to create a
23275 predeps=$lt_predeps_F77
23277 # Dependencies to place after the objects being linked to create a
23279 postdeps=$lt_postdeps_F77
23281 # The library search path used internally by the compiler when linking
23282 # a shared library.
23283 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23285 # Method to check whether dependent libraries are shared objects.
23286 deplibs_check_method=$lt_deplibs_check_method
23288 # Command to use when deplibs_check_method == file_magic.
23289 file_magic_cmd=$lt_file_magic_cmd
23291 # Flag that allows shared libraries with undefined symbols to be built.
23292 allow_undefined_flag=$lt_allow_undefined_flag_F77
23294 # Flag that forces no undefined symbols.
23295 no_undefined_flag=$lt_no_undefined_flag_F77
23297 # Commands used to finish a libtool library installation in a directory.
23298 finish_cmds=$lt_finish_cmds
23300 # Same as above, but a single script fragment to be evaled but not shown.
23301 finish_eval=$lt_finish_eval
23303 # Take the output of nm and produce a listing of raw symbols and C names.
23304 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23306 # Transform the output of nm in a proper C declaration
23307 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23309 # Transform the output of nm in a C name address pair
23310 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23312 # This is the shared library runtime path variable.
23313 runpath_var=$runpath_var
23315 # This is the shared library path variable.
23316 shlibpath_var=$shlibpath_var
23318 # Is shlibpath searched before the hard-coded library search path?
23319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23321 # How to hardcode a shared library path into an executable.
23322 hardcode_action=$hardcode_action_F77
23324 # Whether we should hardcode library paths into libraries.
23325 hardcode_into_libs=$hardcode_into_libs
23327 # Flag to hardcode \$libdir into a binary during linking.
23328 # This must work even if \$libdir does not exist.
23329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23331 # If ld is used when linking, flag to hardcode \$libdir into
23332 # a binary during linking. This must work even if \$libdir does
23334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23336 # Whether we need a single -rpath flag with a separated argument.
23337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23339 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23340 # resulting binary.
23341 hardcode_direct=$hardcode_direct_F77
23343 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23344 # resulting binary.
23345 hardcode_minus_L=$hardcode_minus_L_F77
23347 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23348 # the resulting binary.
23349 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23351 # Set to yes if building a shared library automatically hardcodes DIR into the library
23352 # and all subsequent libraries and executables linked against it.
23353 hardcode_automatic=$hardcode_automatic_F77
23355 # Variables whose values should be saved in libtool wrapper scripts and
23356 # restored at relink time.
23357 variables_saved_for_relink="$variables_saved_for_relink"
23359 # Whether libtool must link a program against all its dependency libraries.
23360 link_all_deplibs=$link_all_deplibs_F77
23362 # Compile-time system search path for libraries
23363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23365 # Run-time system search path for libraries
23366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23368 # Fix the shell variable \$srcfile for the compiler.
23369 fix_srcfile_path="$fix_srcfile_path_F77"
23371 # Set to yes if exported symbols are required.
23372 always_export_symbols=$always_export_symbols_F77
23374 # The commands to list exported symbols.
23375 export_symbols_cmds=$lt_export_symbols_cmds_F77
23377 # The commands to extract the exported symbol list from a shared archive.
23378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23380 # Symbols that should not be listed in the preloaded symbols.
23381 exclude_expsyms=$lt_exclude_expsyms_F77
23383 # Symbols that must always be exported.
23384 include_expsyms=$lt_include_expsyms_F77
23386 # ### END LIBTOOL TAG CONFIG: $tagname
23392 # If there is no Makefile yet, we rely on a make rule to execute
23393 # `config.status --recheck' to rerun these tests and create the
23394 # libtool script then.
23395 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23396 if test -f "$ltmain_in"; then
23397 test -f Makefile && make "$ltmain"
23403 ac_cpp='$CPP $CPPFLAGS'
23404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23416 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23418 ac_cpp='$CPP $CPPFLAGS'
23419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23424 # Source file extension for Java test sources.
23427 # Object file extension for compiled Java test sources.
23431 # Code to be used in simple compile tests
23432 lt_simple_compile_test_code="class foo {}\n"
23434 # Code to be used in simple link tests
23435 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23439 # If no C compiler was specified, use CC.
23442 # If no C compiler flags were specified, use CFLAGS.
23443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23445 # Allow CC to be a program name with arguments.
23449 # save warnings/boilerplate of simple test code
23450 ac_outfile=conftest.$ac_objext
23451 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23453 _lt_compiler_boilerplate=`cat conftest.err`
23456 ac_outfile=conftest.$ac_objext
23457 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23459 _lt_linker_boilerplate=`cat conftest.err`
23463 # Allow CC to be a program name with arguments.
23468 for cc_temp in $compiler""; do
23470 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23471 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23476 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23479 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23480 archive_cmds_need_lc_GCJ=no
23482 old_archive_cmds_GCJ=$old_archive_cmds
23485 lt_prog_compiler_no_builtin_flag_GCJ=
23487 if test "$GCC" = yes; then
23488 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23491 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23492 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23493 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23496 lt_cv_prog_compiler_rtti_exceptions=no
23497 ac_outfile=conftest.$ac_objext
23498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23499 lt_compiler_flag="-fno-rtti -fno-exceptions"
23500 # Insert the option either (1) after the last *FLAGS variable, or
23501 # (2) before a word containing "conftest.", or (3) at the end.
23502 # Note that $ac_compile itself does not contain backslashes and begins
23503 # with a dollar sign (not a hyphen), so the echo should work correctly.
23504 # The option is referenced via a variable to avoid confusing sed.
23505 lt_compile=`echo "$ac_compile" | $SED \
23506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23508 -e 's:$: $lt_compiler_flag:'`
23509 (eval echo "\"\$as_me:23509: $lt_compile\"" >&5)
23510 (eval "$lt_compile" 2>conftest.err)
23512 cat conftest.err >&5
23513 echo "$as_me:23513: \$? = $ac_status" >&5
23514 if (exit $ac_status) && test -s "$ac_outfile"; then
23515 # The compiler can only warn and ignore the option if not recognized
23516 # So say no if there are warnings other than the usual output.
23517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23520 lt_cv_prog_compiler_rtti_exceptions=yes
23526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23527 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23529 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23530 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23537 lt_prog_compiler_wl_GCJ=
23538 lt_prog_compiler_pic_GCJ=
23539 lt_prog_compiler_static_GCJ=
23541 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23542 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23544 if test "$GCC" = yes; then
23545 lt_prog_compiler_wl_GCJ='-Wl,'
23546 lt_prog_compiler_static_GCJ='-static'
23550 # All AIX code is PIC.
23551 if test "$host_cpu" = ia64; then
23552 # AIX 5 now supports IA64 processor
23553 lt_prog_compiler_static_GCJ='-Bstatic'
23558 # FIXME: we need at least 68020 code to build shared libraries, but
23559 # adding the `-m68020' flag to GCC prevents building anything better,
23561 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23564 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23565 # PIC is the default for these OSes.
23568 mingw* | pw32* | os2*)
23569 # This hack is so that the source file can tell whether it is being
23570 # built for inclusion in a dll (and should export symbols for example).
23571 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23574 darwin* | rhapsody*)
23575 # PIC is the default on this platform
23576 # Common symbols not allowed in MH_DYLIB files
23577 lt_prog_compiler_pic_GCJ='-fno-common'
23581 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23582 # Instead, we relocate shared libraries at runtime.
23586 # Just because we use GCC doesn't mean we suddenly get shared libraries
23587 # on systems that don't support them.
23588 lt_prog_compiler_can_build_shared_GCJ=no
23593 if test -d /usr/nec; then
23594 lt_prog_compiler_pic_GCJ=-Kconform_pic
23599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23600 # not for PA HP-UX.
23606 lt_prog_compiler_pic_GCJ='-fPIC'
23612 lt_prog_compiler_pic_GCJ='-fPIC'
23616 # PORTME Check for flag to pass linker flags through the system compiler.
23619 lt_prog_compiler_wl_GCJ='-Wl,'
23620 if test "$host_cpu" = ia64; then
23621 # AIX 5 now supports IA64 processor
23622 lt_prog_compiler_static_GCJ='-Bstatic'
23624 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23628 # PIC is the default on this platform
23629 # Common symbols not allowed in MH_DYLIB files
23630 case $cc_basename in
23632 lt_prog_compiler_pic_GCJ='-qnocommon'
23633 lt_prog_compiler_wl_GCJ='-Wl,'
23638 mingw* | pw32* | os2*)
23639 # This hack is so that the source file can tell whether it is being
23640 # built for inclusion in a dll (and should export symbols for example).
23641 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23644 hpux9* | hpux10* | hpux11*)
23645 lt_prog_compiler_wl_GCJ='-Wl,'
23646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23647 # not for PA HP-UX.
23653 lt_prog_compiler_pic_GCJ='+Z'
23656 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23657 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23660 irix5* | irix6* | nonstopux*)
23661 lt_prog_compiler_wl_GCJ='-Wl,'
23662 # PIC (with -KPIC) is the default.
23663 lt_prog_compiler_static_GCJ='-non_shared'
23667 lt_prog_compiler_pic_GCJ='-KPIC'
23668 lt_prog_compiler_static_GCJ='-Bstatic'
23672 case $cc_basename in
23674 lt_prog_compiler_wl_GCJ='-Wl,'
23675 lt_prog_compiler_pic_GCJ='-KPIC'
23676 lt_prog_compiler_static_GCJ='-static'
23678 pgcc* | pgf77* | pgf90* | pgf95*)
23679 # Portland Group compilers (*not* the Pentium gcc compiler,
23680 # which looks to be a dead project)
23681 lt_prog_compiler_wl_GCJ='-Wl,'
23682 lt_prog_compiler_pic_GCJ='-fpic'
23683 lt_prog_compiler_static_GCJ='-Bstatic'
23686 lt_prog_compiler_wl_GCJ='-Wl,'
23687 # All Alpha code is PIC.
23688 lt_prog_compiler_static_GCJ='-non_shared'
23693 osf3* | osf4* | osf5*)
23694 lt_prog_compiler_wl_GCJ='-Wl,'
23695 # All OSF/1 code is PIC.
23696 lt_prog_compiler_static_GCJ='-non_shared'
23700 lt_prog_compiler_pic_GCJ='-KPIC'
23701 lt_prog_compiler_static_GCJ='-Bstatic'
23702 case $cc_basename in
23703 f77* | f90* | f95*)
23704 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23706 lt_prog_compiler_wl_GCJ='-Wl,';;
23711 lt_prog_compiler_wl_GCJ='-Qoption ld '
23712 lt_prog_compiler_pic_GCJ='-PIC'
23713 lt_prog_compiler_static_GCJ='-Bstatic'
23716 sysv4 | sysv4.2uw2* | sysv4.3*)
23717 lt_prog_compiler_wl_GCJ='-Wl,'
23718 lt_prog_compiler_pic_GCJ='-KPIC'
23719 lt_prog_compiler_static_GCJ='-Bstatic'
23723 if test -d /usr/nec ;then
23724 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23725 lt_prog_compiler_static_GCJ='-Bstatic'
23729 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23730 lt_prog_compiler_wl_GCJ='-Wl,'
23731 lt_prog_compiler_pic_GCJ='-KPIC'
23732 lt_prog_compiler_static_GCJ='-Bstatic'
23736 lt_prog_compiler_wl_GCJ='-Wl,'
23737 lt_prog_compiler_can_build_shared_GCJ=no
23741 lt_prog_compiler_pic_GCJ='-pic'
23742 lt_prog_compiler_static_GCJ='-Bstatic'
23746 lt_prog_compiler_can_build_shared_GCJ=no
23751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23752 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23755 # Check to make sure the PIC flag actually works.
23757 if test -n "$lt_prog_compiler_pic_GCJ"; then
23759 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23760 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23761 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23762 echo $ECHO_N "(cached) $ECHO_C" >&6
23764 lt_prog_compiler_pic_works_GCJ=no
23765 ac_outfile=conftest.$ac_objext
23766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23767 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23768 # Insert the option either (1) after the last *FLAGS variable, or
23769 # (2) before a word containing "conftest.", or (3) at the end.
23770 # Note that $ac_compile itself does not contain backslashes and begins
23771 # with a dollar sign (not a hyphen), so the echo should work correctly.
23772 # The option is referenced via a variable to avoid confusing sed.
23773 lt_compile=`echo "$ac_compile" | $SED \
23774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23776 -e 's:$: $lt_compiler_flag:'`
23777 (eval echo "\"\$as_me:23777: $lt_compile\"" >&5)
23778 (eval "$lt_compile" 2>conftest.err)
23780 cat conftest.err >&5
23781 echo "$as_me:23781: \$? = $ac_status" >&5
23782 if (exit $ac_status) && test -s "$ac_outfile"; then
23783 # The compiler can only warn and ignore the option if not recognized
23784 # So say no if there are warnings other than the usual output.
23785 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23788 lt_prog_compiler_pic_works_GCJ=yes
23794 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23795 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23797 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23798 case $lt_prog_compiler_pic_GCJ in
23800 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23803 lt_prog_compiler_pic_GCJ=
23804 lt_prog_compiler_can_build_shared_GCJ=no
23809 # For platforms which do not support PIC, -DPIC is meaningless:
23811 lt_prog_compiler_pic_GCJ=
23814 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23819 # Check to make sure the static flag actually works.
23821 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23822 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23823 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23824 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23825 echo $ECHO_N "(cached) $ECHO_C" >&6
23827 lt_prog_compiler_static_works_GCJ=no
23828 save_LDFLAGS="$LDFLAGS"
23829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23830 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23832 # The linker can only warn and ignore the option if not recognized
23833 # So say no if there are warnings
23834 if test -s conftest.err; then
23835 # Append any errors to the config.log.
23836 cat conftest.err 1>&5
23837 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23839 if diff conftest.exp conftest.er2 >/dev/null; then
23840 lt_prog_compiler_static_works_GCJ=yes
23843 lt_prog_compiler_static_works_GCJ=yes
23847 LDFLAGS="$save_LDFLAGS"
23850 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23851 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23853 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23856 lt_prog_compiler_static_GCJ=
23860 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23862 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23863 echo $ECHO_N "(cached) $ECHO_C" >&6
23865 lt_cv_prog_compiler_c_o_GCJ=no
23866 $rm -r conftest 2>/dev/null
23870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23872 lt_compiler_flag="-o out/conftest2.$ac_objext"
23873 # Insert the option either (1) after the last *FLAGS variable, or
23874 # (2) before a word containing "conftest.", or (3) at the end.
23875 # Note that $ac_compile itself does not contain backslashes and begins
23876 # with a dollar sign (not a hyphen), so the echo should work correctly.
23877 lt_compile=`echo "$ac_compile" | $SED \
23878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23880 -e 's:$: $lt_compiler_flag:'`
23881 (eval echo "\"\$as_me:23881: $lt_compile\"" >&5)
23882 (eval "$lt_compile" 2>out/conftest.err)
23884 cat out/conftest.err >&5
23885 echo "$as_me:23885: \$? = $ac_status" >&5
23886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23888 # The compiler can only warn and ignore the option if not recognized
23889 # So say no if there are warnings
23890 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23893 lt_cv_prog_compiler_c_o_GCJ=yes
23898 # SGI C++ compiler will create directory out/ii_files/ for
23899 # template instantiation
23900 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23901 $rm out/* && rmdir out
23907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23911 hard_links="nottested"
23912 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23913 # do not overwrite the value of need_locks provided by the user
23914 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23915 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23920 ln conftest.a conftest.b 2>&5 || hard_links=no
23921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23922 { echo "$as_me:$LINENO: result: $hard_links" >&5
23923 echo "${ECHO_T}$hard_links" >&6; }
23924 if test "$hard_links" = no; then
23925 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23926 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23933 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23934 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23937 allow_undefined_flag_GCJ=
23938 enable_shared_with_static_runtimes_GCJ=no
23940 archive_expsym_cmds_GCJ=
23941 old_archive_From_new_cmds_GCJ=
23942 old_archive_from_expsyms_cmds_GCJ=
23943 export_dynamic_flag_spec_GCJ=
23944 whole_archive_flag_spec_GCJ=
23945 thread_safe_flag_spec_GCJ=
23946 hardcode_libdir_flag_spec_GCJ=
23947 hardcode_libdir_flag_spec_ld_GCJ=
23948 hardcode_libdir_separator_GCJ=
23949 hardcode_direct_GCJ=no
23950 hardcode_minus_L_GCJ=no
23951 hardcode_shlibpath_var_GCJ=unsupported
23952 link_all_deplibs_GCJ=unknown
23953 hardcode_automatic_GCJ=no
23955 module_expsym_cmds_GCJ=
23956 always_export_symbols_GCJ=no
23957 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23958 # include_expsyms should be a list of space-separated symbols to be *always*
23959 # included in the symbol list
23960 include_expsyms_GCJ=
23961 # exclude_expsyms can be an extended regexp of symbols to exclude
23962 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23963 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23964 # as well as any symbol that contains `d'.
23965 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23966 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23967 # platforms (ab)use it in PIC code, but their linkers get confused if
23968 # the symbol is explicitly referenced. Since portable code cannot
23969 # rely on this symbol name, it's probably fine to never include it in
23970 # preloaded symbol tables.
23971 extract_expsyms_cmds=
23972 # Just being paranoid about ensuring that cc_basename is set.
23973 for cc_temp in $compiler""; do
23975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23984 cygwin* | mingw* | pw32*)
23985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23986 # When not using gcc, we currently assume that we are using
23987 # Microsoft Visual C++.
23988 if test "$GCC" != yes; then
23993 # we just hope/assume this is gcc and not c89 (= MSVC++)
24002 if test "$with_gnu_ld" = yes; then
24003 # If archive_cmds runs LD, not CC, wlarc should be empty
24006 # Set some defaults for GNU ld with shared library support. These
24007 # are reset later if shared libraries are not supported. Putting them
24008 # here allows them to be overridden if necessary.
24009 runpath_var=LD_RUN_PATH
24010 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24011 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24012 # ancient GNU ld didn't support --whole-archive et. al.
24013 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24014 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24016 whole_archive_flag_spec_GCJ=
24018 supports_anon_versioning=no
24019 case `$LD -v 2>/dev/null` in
24020 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24023 *\ 2.11.*) ;; # other 2.11 versions
24024 *) supports_anon_versioning=yes ;;
24027 # See if GNU ld supports shared libraries.
24029 aix3* | aix4* | aix5*)
24030 # On AIX/PPC, the GNU linker is very broken
24031 if test "$host_cpu" != ia64; then
24035 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24036 *** to be unable to reliably create shared libraries on AIX.
24037 *** Therefore, libtool is disabling shared libraries support. If you
24038 *** really care for shared libraries, you may want to modify your PATH
24039 *** so that a non-GNU linker is found, and then restart.
24046 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)'
24047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24048 hardcode_minus_L_GCJ=yes
24050 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24051 # that the semantics of dynamic libraries on AmigaOS, at least up
24052 # to version 4, is to share data among multiple programs linked
24053 # with the same dynamic library. Since this doesn't match the
24054 # behavior of shared libraries on other platforms, we can't use
24060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24061 allow_undefined_flag_GCJ=unsupported
24062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24063 # support --undefined. This deserves some investigation. FIXME
24064 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24070 cygwin* | mingw* | pw32*)
24071 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24072 # as there is no search path for DLLs.
24073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24074 allow_undefined_flag_GCJ=unsupported
24075 always_export_symbols_GCJ=no
24076 enable_shared_with_static_runtimes_GCJ=yes
24077 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24079 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24080 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24081 # If the export-symbols file already is a .def file (1st line
24082 # is EXPORTS), use it as is; otherwise, prepend...
24083 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24084 cp $export_symbols $output_objdir/$soname.def;
24086 echo EXPORTS > $output_objdir/$soname.def;
24087 cat $export_symbols >> $output_objdir/$soname.def;
24089 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24096 hardcode_direct_GCJ=no
24097 hardcode_shlibpath_var_GCJ=no
24098 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24099 export_dynamic_flag_spec_GCJ='${wl}-E'
24100 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24101 # Instead, shared libraries are loaded at an image base (0x10000000 by
24102 # default) and relocated if they conflict, which is a slow very memory
24103 # consuming and fragmenting process. To avoid this, we pick a random,
24104 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24105 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24106 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'
24107 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'
24111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24113 case $cc_basename,$host_cpu in
24114 pgcc*) # Portland Group C compiler
24115 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'
24116 tmp_addflag=' $pic_flag'
24118 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24119 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'
24120 tmp_addflag=' $pic_flag -Mnomain' ;;
24121 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24122 tmp_addflag=' -i_dynamic' ;;
24123 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24124 tmp_addflag=' -i_dynamic -nofor_main' ;;
24125 ifc* | ifort*) # Intel Fortran compiler
24126 tmp_addflag=' -nofor_main' ;;
24128 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24130 if test $supports_anon_versioning = yes; then
24131 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24133 $echo "local: *; };" >> $output_objdir/$libname.ver~
24134 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24143 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24157 *** create shared libraries on Solaris systems. Therefore, libtool
24158 *** is disabling shared libraries support. We urge you to upgrade GNU
24159 *** binutils to release 2.9.1 or newer. Another option is to modify
24160 *** your PATH or compiler configuration so that the native linker is
24161 *** used, and then restart.
24164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24165 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24166 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24173 case `$LD -v 2>&1` in
24174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24179 *** reliably create shared libraries on SCO systems. Therefore, libtool
24180 *** is disabling shared libraries support. We urge you to upgrade GNU
24181 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24182 *** your PATH or compiler configuration so that the native linker is
24183 *** used, and then restart.
24188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24189 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24190 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24191 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24200 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24202 hardcode_direct_GCJ=yes
24203 hardcode_shlibpath_var_GCJ=no
24207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24208 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24209 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24216 if test "$ld_shlibs_GCJ" = no; then
24218 hardcode_libdir_flag_spec_GCJ=
24219 export_dynamic_flag_spec_GCJ=
24220 whole_archive_flag_spec_GCJ=
24223 # PORTME fill in a description of your system's linker (not GNU ld)
24226 allow_undefined_flag_GCJ=unsupported
24227 always_export_symbols_GCJ=yes
24228 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'
24229 # Note: this linker hardcodes the directories in LIBPATH if there
24230 # are no directories specified by -L.
24231 hardcode_minus_L_GCJ=yes
24232 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24233 # Neither direct hardcoding nor static linking is supported with a
24235 hardcode_direct_GCJ=unsupported
24240 if test "$host_cpu" = ia64; then
24241 # On IA64, the linker does run time linking by default, so we don't
24242 # have to do anything special.
24243 aix_use_runtimelinking=no
24244 exp_sym_flag='-Bexport'
24247 # If we're using GNU nm, then we don't want the "-C" option.
24248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24249 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24250 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'
24252 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'
24254 aix_use_runtimelinking=no
24256 # Test if we are trying to use run time linking or normal
24257 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24258 # need to do runtime linking.
24259 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24260 for ld_flag in $LDFLAGS; do
24261 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24262 aix_use_runtimelinking=yes
24269 exp_sym_flag='-bexport'
24270 no_entry_flag='-bnoentry'
24273 # When large executables or shared objects are built, AIX ld can
24274 # have problems creating the table of contents. If linking a library
24275 # or program results in "error TOC overflow" add -mminimal-toc to
24276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24279 archive_cmds_GCJ=''
24280 hardcode_direct_GCJ=yes
24281 hardcode_libdir_separator_GCJ=':'
24282 link_all_deplibs_GCJ=yes
24284 if test "$GCC" = yes; then
24285 case $host_os in aix4.[012]|aix4.[012].*)
24286 # We only want to do this on AIX 4.2 and lower, the check
24287 # below for broken collect2 doesn't work under 4.3+
24288 collect2name=`${CC} -print-prog-name=collect2`
24289 if test -f "$collect2name" && \
24290 strings "$collect2name" | grep resolve_lib_name >/dev/null
24292 # We have reworked collect2
24293 hardcode_direct_GCJ=yes
24295 # We have old collect2
24296 hardcode_direct_GCJ=unsupported
24297 # It fails to find uninstalled libraries when the uninstalled
24298 # path is not listed in the libpath. Setting hardcode_minus_L
24299 # to unsupported forces relinking
24300 hardcode_minus_L_GCJ=yes
24301 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24302 hardcode_libdir_separator_GCJ=
24306 shared_flag='-shared'
24307 if test "$aix_use_runtimelinking" = yes; then
24308 shared_flag="$shared_flag "'${wl}-G'
24312 if test "$host_cpu" = ia64; then
24313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24314 # chokes on -Wl,-G. The following line is correct:
24317 if test "$aix_use_runtimelinking" = yes; then
24318 shared_flag='${wl}-G'
24320 shared_flag='${wl}-bM:SRE'
24325 # It seems that -bexpall does not export symbols beginning with
24326 # underscore (_), so it is better to generate a list of symbols to export.
24327 always_export_symbols_GCJ=yes
24328 if test "$aix_use_runtimelinking" = yes; then
24329 # Warning - without using the other runtime loading flags (-brtl),
24330 # -berok will link without error, but may produce a broken library.
24331 allow_undefined_flag_GCJ='-berok'
24332 # Determine the default libpath from the value encoded in an empty executable.
24333 cat >conftest.$ac_ext <<_ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h. */
24348 rm -f conftest.$ac_objext conftest$ac_exeext
24349 if { (ac_try="$ac_link"
24350 case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_link") 2>conftest.er1
24357 grep -v '^ *+' conftest.er1 >conftest.err
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
24362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24363 { (case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368 (eval "$ac_try") 2>&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; } &&
24372 { ac_try='test -s conftest$ac_exeext'
24373 { (case "(($ac_try" in
24374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375 *) ac_try_echo=$ac_try;;
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378 (eval "$ac_try") 2>&5
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); }; }; then
24383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24385 # Check for a 64-bit object if we didn't find anything.
24386 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; }
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24395 rm -f core conftest.err conftest.$ac_objext \
24396 conftest$ac_exeext conftest.$ac_ext
24397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24399 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24400 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"
24402 if test "$host_cpu" = ia64; then
24403 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24404 allow_undefined_flag_GCJ="-z nodefs"
24405 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"
24407 # Determine the default libpath from the value encoded in an empty executable.
24408 cat >conftest.$ac_ext <<_ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24423 rm -f conftest.$ac_objext conftest$ac_exeext
24424 if { (ac_try="$ac_link"
24425 case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_link") 2>conftest.er1
24432 grep -v '^ *+' conftest.er1 >conftest.err
24434 cat conftest.err >&5
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } &&
24437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24438 { (case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_try") 2>&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; } &&
24447 { ac_try='test -s conftest$ac_exeext'
24448 { (case "(($ac_try" in
24449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450 *) ac_try_echo=$ac_try;;
24452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24453 (eval "$ac_try") 2>&5
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; }; then
24458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24460 # Check for a 64-bit object if we didn't find anything.
24461 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; }
24464 echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24470 rm -f core conftest.err conftest.$ac_objext \
24471 conftest$ac_exeext conftest.$ac_ext
24472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24474 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24475 # Warning - without using the other run time loading flags,
24476 # -berok will link without error, but may produce a broken library.
24477 no_undefined_flag_GCJ=' ${wl}-bernotok'
24478 allow_undefined_flag_GCJ=' ${wl}-berok'
24479 # Exported symbols can be pulled into shared objects from archives
24480 whole_archive_flag_spec_GCJ='$convenience'
24481 archive_cmds_need_lc_GCJ=yes
24482 # This is similar to how AIX traditionally builds its shared libraries.
24483 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'
24489 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)'
24490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24491 hardcode_minus_L_GCJ=yes
24492 # see comment about different semantics on the GNU ld section
24497 export_dynamic_flag_spec_GCJ=-rdynamic
24500 cygwin* | mingw* | pw32*)
24501 # When not using gcc, we currently assume that we are using
24502 # Microsoft Visual C++.
24503 # hardcode_libdir_flag_spec is actually meaningless, as there is
24504 # no search path for DLLs.
24505 hardcode_libdir_flag_spec_GCJ=' '
24506 allow_undefined_flag_GCJ=unsupported
24507 # Tell ltmain to make .lib files, not .a files.
24509 # Tell ltmain to make .dll files, not .so files.
24511 # FIXME: Setting linknames here is a bad hack.
24512 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24513 # The linker will automatically build a .lib file if we build a DLL.
24514 old_archive_From_new_cmds_GCJ='true'
24515 # FIXME: Should let the user specify the lib program.
24516 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24517 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24518 enable_shared_with_static_runtimes_GCJ=yes
24521 darwin* | rhapsody*)
24523 rhapsody* | darwin1.[012])
24524 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24527 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24528 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24530 case ${MACOSX_DEPLOYMENT_TARGET} in
24532 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24535 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24541 archive_cmds_need_lc_GCJ=no
24542 hardcode_direct_GCJ=no
24543 hardcode_automatic_GCJ=yes
24544 hardcode_shlibpath_var_GCJ=unsupported
24545 whole_archive_flag_spec_GCJ=''
24546 link_all_deplibs_GCJ=yes
24547 if test "$GCC" = yes ; then
24548 output_verbose_link_cmd='echo'
24549 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24550 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24551 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24552 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}'
24553 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}'
24555 case $cc_basename in
24557 output_verbose_link_cmd='echo'
24558 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24559 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24560 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24561 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}'
24562 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}'
24572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24573 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24574 hardcode_shlibpath_var_GCJ=no
24581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24582 # support. Future versions do this automatically, but an explicit c++rt0.o
24583 # does not break anything, and helps significantly (at the cost of a little
24586 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24587 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24588 hardcode_direct_GCJ=yes
24589 hardcode_shlibpath_var_GCJ=no
24592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24594 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24595 hardcode_direct_GCJ=yes
24596 hardcode_minus_L_GCJ=yes
24597 hardcode_shlibpath_var_GCJ=no
24600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24601 freebsd* | kfreebsd*-gnu | dragonfly*)
24602 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24603 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24604 hardcode_direct_GCJ=yes
24605 hardcode_shlibpath_var_GCJ=no
24609 if test "$GCC" = yes; then
24610 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'
24612 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'
24614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24615 hardcode_libdir_separator_GCJ=:
24616 hardcode_direct_GCJ=yes
24618 # hardcode_minus_L: Not really in the search PATH,
24619 # but as the default location of the library.
24620 hardcode_minus_L_GCJ=yes
24621 export_dynamic_flag_spec_GCJ='${wl}-E'
24625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24626 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24628 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24630 if test "$with_gnu_ld" = no; then
24631 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24632 hardcode_libdir_separator_GCJ=:
24634 hardcode_direct_GCJ=yes
24635 export_dynamic_flag_spec_GCJ='${wl}-E'
24637 # hardcode_minus_L: Not really in the search PATH,
24638 # but as the default location of the library.
24639 hardcode_minus_L_GCJ=yes
24644 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24647 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24650 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24659 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24662 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24665 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24669 if test "$with_gnu_ld" = no; then
24670 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24671 hardcode_libdir_separator_GCJ=:
24675 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24676 hardcode_direct_GCJ=no
24677 hardcode_shlibpath_var_GCJ=no
24680 hardcode_direct_GCJ=yes
24681 export_dynamic_flag_spec_GCJ='${wl}-E'
24683 # hardcode_minus_L: Not really in the search PATH,
24684 # but as the default location of the library.
24685 hardcode_minus_L_GCJ=yes
24691 irix5* | irix6* | nonstopux*)
24692 if test "$GCC" = yes; then
24693 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'
24695 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'
24696 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24699 hardcode_libdir_separator_GCJ=:
24700 link_all_deplibs_GCJ=yes
24704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24705 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24707 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24710 hardcode_direct_GCJ=yes
24711 hardcode_shlibpath_var_GCJ=no
24715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24716 hardcode_direct_GCJ=yes
24717 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24718 hardcode_libdir_separator_GCJ=:
24719 hardcode_shlibpath_var_GCJ=no
24723 hardcode_direct_GCJ=yes
24724 hardcode_shlibpath_var_GCJ=no
24725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24726 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24727 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24729 export_dynamic_flag_spec_GCJ='${wl}-E'
24732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24734 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24737 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24746 hardcode_minus_L_GCJ=yes
24747 allow_undefined_flag_GCJ=unsupported
24748 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'
24749 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24753 if test "$GCC" = yes; then
24754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24755 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'
24757 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24758 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'
24760 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24761 hardcode_libdir_separator_GCJ=:
24764 osf4* | osf5*) # as osf3* with the addition of -msym flag
24765 if test "$GCC" = yes; then
24766 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24767 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'
24768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24770 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24771 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'
24772 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~
24773 $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'
24775 # Both c and cxx compiler support -rpath directly
24776 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24778 hardcode_libdir_separator_GCJ=:
24782 no_undefined_flag_GCJ=' -z text'
24783 if test "$GCC" = yes; then
24785 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24786 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24787 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24790 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24791 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24792 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24795 hardcode_shlibpath_var_GCJ=no
24797 solaris2.[0-5] | solaris2.[0-5].*) ;;
24799 # The compiler driver will combine linker options so we
24800 # cannot just pass the convience library names through
24801 # without $wl, iff we do not link with $LD.
24802 # Luckily, gcc supports the same syntax we need for Sun Studio.
24803 # Supported since Solaris 2.6 (maybe 2.5.1?)
24806 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24808 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' ;;
24811 link_all_deplibs_GCJ=yes
24815 if test "x$host_vendor" = xsequent; then
24816 # Use $CC to link under sequent, because it throws in some extra .o
24817 # files that make .init and .fini sections work.
24818 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24820 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24823 hardcode_direct_GCJ=yes
24824 hardcode_minus_L_GCJ=yes
24825 hardcode_shlibpath_var_GCJ=no
24829 case $host_vendor in
24831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24832 hardcode_direct_GCJ=yes # is this really true???
24835 ## LD is ld it makes a PLAMLIB
24836 ## CC just makes a GrossModule.
24837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24838 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24839 hardcode_direct_GCJ=no
24842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24843 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24846 runpath_var='LD_RUN_PATH'
24847 hardcode_shlibpath_var_GCJ=no
24851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24852 hardcode_shlibpath_var_GCJ=no
24853 export_dynamic_flag_spec_GCJ='-Bexport'
24857 if test -d /usr/nec; then
24858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24859 hardcode_shlibpath_var_GCJ=no
24860 runpath_var=LD_RUN_PATH
24861 hardcode_runpath_var=yes
24866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24867 no_undefined_flag_GCJ='${wl}-z,text'
24868 archive_cmds_need_lc_GCJ=no
24869 hardcode_shlibpath_var_GCJ=no
24870 runpath_var='LD_RUN_PATH'
24872 if test "$GCC" = yes; then
24873 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24874 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24876 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24877 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24881 sysv5* | sco3.2v5* | sco5v6*)
24882 # Note: We can NOT use -z defs as we might desire, because we do not
24883 # link with -lc, and that would cause any symbols used from libc to
24884 # always be unresolved, which means just about no library would
24885 # ever link correctly. If we're not using GNU ld we use -z text
24886 # though, which does catch some bad symbols but isn't as heavy-handed
24888 no_undefined_flag_GCJ='${wl}-z,text'
24889 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24890 archive_cmds_need_lc_GCJ=no
24891 hardcode_shlibpath_var_GCJ=no
24892 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24893 hardcode_libdir_separator_GCJ=':'
24894 link_all_deplibs_GCJ=yes
24895 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24896 runpath_var='LD_RUN_PATH'
24898 if test "$GCC" = yes; then
24899 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24900 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24902 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24903 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24910 hardcode_shlibpath_var_GCJ=no
24919 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24920 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24921 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24924 # Do we need to explicitly link libc?
24926 case "x$archive_cmds_need_lc_GCJ" in
24928 # Assume -lc should be added
24929 archive_cmds_need_lc_GCJ=yes
24931 if test "$enable_shared" = yes && test "$GCC" = yes; then
24932 case $archive_cmds_GCJ in
24934 # FIXME: we may have to deal with multi-command sequences.
24937 # Test whether the compiler implicitly links with -lc since on some
24938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24939 # to ld, don't add -lc before -lgcc.
24940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24946 (eval $ac_compile) 2>&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } 2>conftest.err; then
24952 libobjs=conftest.$ac_objext
24954 wl=$lt_prog_compiler_wl_GCJ
24955 pic_flag=$lt_prog_compiler_pic_GCJ
24961 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24962 allow_undefined_flag_GCJ=
24963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24964 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); }
24969 archive_cmds_need_lc_GCJ=no
24971 archive_cmds_need_lc_GCJ=yes
24973 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24975 cat conftest.err 1>&5
24978 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24979 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24986 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24988 library_names_spec=
24989 libname_spec='lib$name'
24993 postuninstall_cmds=
24997 shlibpath_overrides_runpath=unknown
24999 dynamic_linker="$host_os ld.so"
25000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25001 if test "$GCC" = yes; then
25002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25003 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25004 # if the path contains ";" then we assume it to be the separator
25005 # otherwise default to the standard path separator (i.e. ":") - it is
25006 # assumed that no part of a normal pathname contains ";" but that should
25007 # okay in the real world where ";" in dirpaths is itself problematic.
25008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25015 need_lib_prefix=unknown
25016 hardcode_into_libs=no
25018 # when you set need_version to no, make sure it does not cause -set_version
25019 # flags to be left without arguments
25020 need_version=unknown
25025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25026 shlibpath_var=LIBPATH
25028 # AIX 3 has no versioning support, so we append a major version to the name.
25029 soname_spec='${libname}${release}${shared_ext}$major'
25036 hardcode_into_libs=yes
25037 if test "$host_cpu" = ia64; then
25038 # AIX 5 supports IA64
25039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25040 shlibpath_var=LD_LIBRARY_PATH
25042 # With GCC up to 2.95.x, collect2 would create an import file
25043 # for dependence libraries. The import file would start with
25044 # the line `#! .'. This would cause the generated library to
25045 # depend on `.', always an invalid library. This was fixed in
25046 # development snapshots of GCC prior to 3.0.
25048 aix4 | aix4.[01] | aix4.[01].*)
25049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25051 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25054 can_build_shared=no
25058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25059 # soname into executable. Probably we can add versioning support to
25060 # collect2, so additional links can be useful in future.
25061 if test "$aix_use_runtimelinking" = yes; then
25062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25063 # instead of lib<name>.a to let people know that these are not
25064 # typical AIX shared libraries.
25065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25067 # We preserve .a as extension for shared libraries through AIX4.2
25068 # and later when we are not doing run time linking.
25069 library_names_spec='${libname}${release}.a $libname.a'
25070 soname_spec='${libname}${release}${shared_ext}$major'
25072 shlibpath_var=LIBPATH
25077 library_names_spec='$libname.ixlibrary $libname.a'
25078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25079 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'
25083 library_names_spec='${libname}${shared_ext}'
25084 dynamic_linker="$host_os ld.so"
25085 shlibpath_var=LIBRARY_PATH
25091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25092 soname_spec='${libname}${release}${shared_ext}$major'
25093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25094 shlibpath_var=LD_LIBRARY_PATH
25095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25097 # the default ld.so.conf also contains /usr/contrib/lib and
25098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25099 # libtool to hard-code these into programs
25102 cygwin* | mingw* | pw32*)
25103 version_type=windows
25108 case $GCC,$host_os in
25109 yes,cygwin* | yes,mingw* | yes,pw32*)
25110 library_names_spec='$libname.dll.a'
25111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25112 postinstall_cmds='base_file=`basename \${file}`~
25113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25114 dldir=$destdir/`dirname \$dlpath`~
25115 test -d \$dldir || mkdir -p \$dldir~
25116 $install_prog $dir/$dlname \$dldir/$dlname~
25117 chmod a+x \$dldir/$dlname'
25118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25119 dlpath=$dir/\$dldll~
25121 shlibpath_overrides_runpath=yes
25125 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25126 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25127 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25130 # MinGW DLLs use traditional 'lib' prefix
25131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25133 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25134 # It is most probably a Windows format PATH printed by
25135 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25136 # path with ; separators, and with drive letters. We can handle the
25137 # drive letters (cygwin fileutils understands them), so leave them,
25138 # especially as we might pass files found there to a mingw objdump,
25139 # which wouldn't understand a cygwinified path. Ahh.
25140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25146 # pw32 DLLs use 'pw' prefix rather than 'lib'
25147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25156 dynamic_linker='Win32 ld.exe'
25157 # FIXME: first we should search . and the directory the executable is in
25161 darwin* | rhapsody*)
25162 dynamic_linker="$host_os dyld"
25163 version_type=darwin
25166 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25167 soname_spec='${libname}${release}${major}$shared_ext'
25168 shlibpath_overrides_runpath=yes
25169 shlibpath_var=DYLD_LIBRARY_PATH
25170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25171 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25172 if test "$GCC" = yes; then
25173 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"`
25175 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25185 soname_spec='${libname}${release}${shared_ext}$major'
25186 shlibpath_var=LD_LIBRARY_PATH
25197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25198 soname_spec='${libname}${release}${shared_ext}$major'
25199 shlibpath_var=LD_LIBRARY_PATH
25200 shlibpath_overrides_runpath=no
25201 hardcode_into_libs=yes
25202 dynamic_linker='GNU ld.so'
25205 freebsd* | dragonfly*)
25206 # DragonFly does not have aout. When/if they implement a new
25207 # versioning mechanism, adjust this.
25208 if test -x /usr/bin/objformat; then
25209 objformat=`/usr/bin/objformat`
25212 freebsd[123]*) objformat=aout ;;
25213 *) objformat=elf ;;
25216 version_type=freebsd-$objformat
25217 case $version_type in
25219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25228 shlibpath_var=LD_LIBRARY_PATH
25231 shlibpath_overrides_runpath=yes
25233 freebsd3.[01]* | freebsdelf3.[01]*)
25234 shlibpath_overrides_runpath=yes
25235 hardcode_into_libs=yes
25237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25239 shlibpath_overrides_runpath=no
25240 hardcode_into_libs=yes
25242 freebsd*) # from 4.6 on
25243 shlibpath_overrides_runpath=yes
25244 hardcode_into_libs=yes
25253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25254 soname_spec='${libname}${release}${shared_ext}$major'
25255 shlibpath_var=LD_LIBRARY_PATH
25256 hardcode_into_libs=yes
25259 hpux9* | hpux10* | hpux11*)
25260 # Give a soname corresponding to the major version so that dld.sl refuses to
25261 # link against other versions.
25268 hardcode_into_libs=yes
25269 dynamic_linker="$host_os dld.so"
25270 shlibpath_var=LD_LIBRARY_PATH
25271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25273 soname_spec='${libname}${release}${shared_ext}$major'
25274 if test "X$HPUX_IA64_MODE" = X32; then
25275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25283 hardcode_into_libs=yes
25284 dynamic_linker="$host_os dld.sl"
25285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25288 soname_spec='${libname}${release}${shared_ext}$major'
25289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25294 dynamic_linker="$host_os dld.sl"
25295 shlibpath_var=SHLIB_PATH
25296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25298 soname_spec='${libname}${release}${shared_ext}$major'
25301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25302 postinstall_cmds='chmod 555 $lib'
25309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25310 soname_spec='${libname}${release}${shared_ext}$major'
25311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25312 shlibpath_var=LD_LIBRARY_PATH
25313 shlibpath_overrides_runpath=no
25314 hardcode_into_libs=yes
25317 irix5* | irix6* | nonstopux*)
25319 nonstopux*) version_type=nonstopux ;;
25321 if test "$lt_cv_prog_gnu_ld" = yes; then
25329 soname_spec='${libname}${release}${shared_ext}$major'
25330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25332 irix5* | nonstopux*)
25333 libsuff= shlibsuff=
25336 case $LD in # libtool.m4 will add one of these switches to LD
25337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25338 libsuff= shlibsuff= libmagic=32-bit;;
25339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25340 libsuff=32 shlibsuff=N32 libmagic=N32;;
25341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25343 *) libsuff= shlibsuff= libmagic=never-match;;
25347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25348 shlibpath_overrides_runpath=no
25349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25351 hardcode_into_libs=yes
25354 # No shared lib support for Linux oldld, aout, or coff.
25355 linux*oldld* | linux*aout* | linux*coff*)
25359 # This must be Linux ELF.
25364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25365 soname_spec='${libname}${release}${shared_ext}$major'
25366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25367 shlibpath_var=LD_LIBRARY_PATH
25368 shlibpath_overrides_runpath=no
25369 # This implies no fast_install, which is unacceptable.
25370 # Some rework will be needed to allow for fast_install
25371 # before this can be enabled.
25372 hardcode_into_libs=yes
25374 # Append ld.so.conf contents to the search path
25375 if test -f /etc/ld.so.conf; then
25376 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' ' '`
25377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25380 # We used to test for /lib/ld.so.1 and disable shared libraries on
25381 # powerpc, because MkLinux only supported shared libraries with the
25382 # GNU dynamic linker. Since this was broken with cross compilers,
25383 # most powerpc-linux boxes support dynamic linking these days and
25384 # people can always --disable-shared, the test was removed, and we
25385 # assume the GNU/Linux dynamic linker is in use.
25386 dynamic_linker='GNU/Linux ld.so'
25393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25394 soname_spec='${libname}${release}${shared_ext}$major'
25395 shlibpath_var=LD_LIBRARY_PATH
25396 shlibpath_overrides_runpath=no
25397 hardcode_into_libs=yes
25398 dynamic_linker='GNU ld.so'
25405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25408 dynamic_linker='NetBSD (a.out) ld.so'
25410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25411 soname_spec='${libname}${release}${shared_ext}$major'
25412 dynamic_linker='NetBSD ld.elf_so'
25414 shlibpath_var=LD_LIBRARY_PATH
25415 shlibpath_overrides_runpath=yes
25416 hardcode_into_libs=yes
25421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25422 shlibpath_var=LD_LIBRARY_PATH
25423 shlibpath_overrides_runpath=yes
25430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25431 soname_spec='${libname}${release}${shared_ext}$major'
25432 shlibpath_var=LD_LIBRARY_PATH
25433 shlibpath_overrides_runpath=yes
25438 sys_lib_dlsearch_path_spec="/usr/lib"
25440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25443 *) need_version=no ;;
25445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25447 shlibpath_var=LD_LIBRARY_PATH
25448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25450 openbsd2.[89] | openbsd2.[89].*)
25451 shlibpath_overrides_runpath=no
25454 shlibpath_overrides_runpath=yes
25458 shlibpath_overrides_runpath=yes
25463 libname_spec='$name'
25466 library_names_spec='$libname${shared_ext} $libname.a'
25467 dynamic_linker='OS/2 ld.exe'
25468 shlibpath_var=LIBPATH
25471 osf3* | osf4* | osf5*)
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 shlibpath_var=LD_LIBRARY_PATH
25478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25489 shlibpath_overrides_runpath=yes
25490 hardcode_into_libs=yes
25491 # ldd complains unless libraries are executable
25492 postinstall_cmds='chmod +x $lib'
25497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 shlibpath_overrides_runpath=yes
25501 if test "$with_gnu_ld" = yes; then
25509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25510 soname_spec='${libname}${release}${shared_ext}$major'
25511 shlibpath_var=LD_LIBRARY_PATH
25512 case $host_vendor in
25514 shlibpath_overrides_runpath=no
25516 export_dynamic_flag_spec='${wl}-Blargedynsym'
25517 runpath_var=LD_RUN_PATH
25525 shlibpath_overrides_runpath=no
25526 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25532 if test -d /usr/nec ;then
25534 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25535 soname_spec='$libname${shared_ext}.$major'
25536 shlibpath_var=LD_LIBRARY_PATH
25540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25541 version_type=freebsd-elf
25544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25545 soname_spec='${libname}${release}${shared_ext}$major'
25546 shlibpath_var=LD_LIBRARY_PATH
25547 hardcode_into_libs=yes
25548 if test "$with_gnu_ld" = yes; then
25549 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25550 shlibpath_overrides_runpath=no
25552 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25553 shlibpath_overrides_runpath=yes
25556 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25560 sys_lib_dlsearch_path_spec='/usr/lib'
25565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25566 soname_spec='${libname}${release}${shared_ext}$major'
25567 shlibpath_var=LD_LIBRARY_PATH
25574 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25575 echo "${ECHO_T}$dynamic_linker" >&6; }
25576 test "$dynamic_linker" = no && can_build_shared=no
25578 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25579 if test "$GCC" = yes; then
25580 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25583 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25584 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25585 hardcode_action_GCJ=
25586 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25587 test -n "$runpath_var_GCJ" || \
25588 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25590 # We can hardcode non-existant directories.
25591 if test "$hardcode_direct_GCJ" != no &&
25592 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25593 # have to relink, otherwise we might link with an installed library
25594 # when we should be linking with a yet-to-be-installed one
25595 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25596 test "$hardcode_minus_L_GCJ" != no; then
25597 # Linking always hardcodes the temporary library directory.
25598 hardcode_action_GCJ=relink
25600 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25601 hardcode_action_GCJ=immediate
25604 # We cannot hardcode anything, or else we can only hardcode existing
25606 hardcode_action_GCJ=unsupported
25608 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25609 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25611 if test "$hardcode_action_GCJ" = relink; then
25612 # Fast installation is not supported
25613 enable_fast_install=no
25614 elif test "$shlibpath_overrides_runpath" = yes ||
25615 test "$enable_shared" = no; then
25616 # Fast installation is not necessary
25617 enable_fast_install=needless
25621 # The else clause should only fire when bootstrapping the
25622 # libtool distribution, otherwise you forgot to ship ltmain.sh
25623 # with your package, and you will get complaints that there are
25624 # no rules to generate ltmain.sh.
25625 if test -f "$ltmain"; then
25626 # See if we are running on zsh, and set the options which allow our commands through
25627 # without removal of \ escapes.
25628 if test -n "${ZSH_VERSION+set}" ; then
25629 setopt NO_GLOB_SUBST
25631 # Now quote all the things that may contain metacharacters while being
25632 # careful not to overquote the AC_SUBSTed values. We take copies of the
25633 # variables and quote the copies for generation of the libtool script.
25634 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25636 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25637 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25638 deplibs_check_method reload_flag reload_cmds need_locks \
25639 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25640 lt_cv_sys_global_symbol_to_c_name_address \
25641 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25642 old_postinstall_cmds old_postuninstall_cmds \
25646 lt_prog_compiler_wl_GCJ \
25647 lt_prog_compiler_pic_GCJ \
25648 lt_prog_compiler_static_GCJ \
25649 lt_prog_compiler_no_builtin_flag_GCJ \
25650 export_dynamic_flag_spec_GCJ \
25651 thread_safe_flag_spec_GCJ \
25652 whole_archive_flag_spec_GCJ \
25653 enable_shared_with_static_runtimes_GCJ \
25654 old_archive_cmds_GCJ \
25655 old_archive_from_new_cmds_GCJ \
25656 predep_objects_GCJ \
25657 postdep_objects_GCJ \
25660 compiler_lib_search_path_GCJ \
25662 archive_expsym_cmds_GCJ \
25663 postinstall_cmds_GCJ \
25664 postuninstall_cmds_GCJ \
25665 old_archive_from_expsyms_cmds_GCJ \
25666 allow_undefined_flag_GCJ \
25667 no_undefined_flag_GCJ \
25668 export_symbols_cmds_GCJ \
25669 hardcode_libdir_flag_spec_GCJ \
25670 hardcode_libdir_flag_spec_ld_GCJ \
25671 hardcode_libdir_separator_GCJ \
25672 hardcode_automatic_GCJ \
25674 module_expsym_cmds_GCJ \
25675 lt_cv_prog_compiler_c_o_GCJ \
25676 exclude_expsyms_GCJ \
25677 include_expsyms_GCJ; do
25680 old_archive_cmds_GCJ | \
25681 old_archive_from_new_cmds_GCJ | \
25682 archive_cmds_GCJ | \
25683 archive_expsym_cmds_GCJ | \
25684 module_cmds_GCJ | \
25685 module_expsym_cmds_GCJ | \
25686 old_archive_from_expsyms_cmds_GCJ | \
25687 export_symbols_cmds_GCJ | \
25688 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25689 postinstall_cmds | postuninstall_cmds | \
25690 old_postinstall_cmds | old_postuninstall_cmds | \
25691 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25692 # Double-quote double-evaled strings.
25693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25702 *'\$0 --fallback-echo"')
25703 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25709 cat <<__EOF__ >> "$cfgfile"
25710 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25714 # Shell to use when invoking shell scripts.
25717 # Whether or not to build shared libraries.
25718 build_libtool_libs=$enable_shared
25720 # Whether or not to build static libraries.
25721 build_old_libs=$enable_static
25723 # Whether or not to add -lc for building shared libraries.
25724 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25726 # Whether or not to disallow shared libs when runtime libs are static
25727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25729 # Whether or not to optimize for fast installation.
25730 fast_install=$enable_fast_install
25733 host_alias=$host_alias
25737 # The build system.
25738 build_alias=$build_alias
25742 # An echo program that does not interpret backslashes.
25747 AR_FLAGS=$lt_AR_FLAGS
25752 # LTCC compiler flags.
25753 LTCFLAGS=$lt_LTCFLAGS
25755 # A language-specific compiler.
25756 CC=$lt_compiler_GCJ
25758 # Is the compiler the GNU C compiler?
25764 # The linker used to build libraries.
25767 # Whether we need hard or soft links.
25770 # A BSD-compatible nm program.
25773 # A symbol stripping program
25776 # Used to examine libraries when file_magic_cmd begins "file"
25777 MAGIC_CMD=$MAGIC_CMD
25779 # Used on cygwin: DLL creation program.
25782 # Used on cygwin: object dumper.
25785 # Used on cygwin: assembler.
25788 # The name of the directory that contains temporary libtool files.
25791 # How to create reloadable object files.
25792 reload_flag=$lt_reload_flag
25793 reload_cmds=$lt_reload_cmds
25795 # How to pass a linker flag through the compiler.
25796 wl=$lt_lt_prog_compiler_wl_GCJ
25798 # Object file suffix (normally "o").
25799 objext="$ac_objext"
25801 # Old archive suffix (normally "a").
25804 # Shared library suffix (normally ".so").
25805 shrext_cmds='$shrext_cmds'
25807 # Executable file suffix (normally "").
25810 # Additional compiler flags for building library objects.
25811 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25814 # What is the maximum length of a command?
25815 max_cmd_len=$lt_cv_sys_max_cmd_len
25817 # Does compiler simultaneously support -c and -o options?
25818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25820 # Must we lock files when doing compilation?
25821 need_locks=$lt_need_locks
25823 # Do we need the lib prefix for modules?
25824 need_lib_prefix=$need_lib_prefix
25826 # Do we need a version for libraries?
25827 need_version=$need_version
25829 # Whether dlopen is supported.
25830 dlopen_support=$enable_dlopen
25832 # Whether dlopen of programs is supported.
25833 dlopen_self=$enable_dlopen_self
25835 # Whether dlopen of statically linked programs is supported.
25836 dlopen_self_static=$enable_dlopen_self_static
25838 # Compiler flag to prevent dynamic linking.
25839 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25841 # Compiler flag to turn off builtin functions.
25842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25844 # Compiler flag to allow reflexive dlopens.
25845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25847 # Compiler flag to generate shared objects directly from archives.
25848 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25850 # Compiler flag to generate thread-safe objects.
25851 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25853 # Library versioning type.
25854 version_type=$version_type
25856 # Format of library name prefix.
25857 libname_spec=$lt_libname_spec
25859 # List of archive names. First name is the real one, the rest are links.
25860 # The last name is the one that the linker finds with -lNAME.
25861 library_names_spec=$lt_library_names_spec
25863 # The coded name of the library, if different from the real name.
25864 soname_spec=$lt_soname_spec
25866 # Commands used to build and install an old-style archive.
25868 old_archive_cmds=$lt_old_archive_cmds_GCJ
25869 old_postinstall_cmds=$lt_old_postinstall_cmds
25870 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25872 # Create an old-style archive from a shared archive.
25873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25875 # Create a temporary old-style archive to link instead of a shared archive.
25876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25878 # Commands used to build and install a shared archive.
25879 archive_cmds=$lt_archive_cmds_GCJ
25880 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25881 postinstall_cmds=$lt_postinstall_cmds
25882 postuninstall_cmds=$lt_postuninstall_cmds
25884 # Commands used to build a loadable module (assumed same as above if empty)
25885 module_cmds=$lt_module_cmds_GCJ
25886 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25888 # Commands to strip libraries.
25889 old_striplib=$lt_old_striplib
25890 striplib=$lt_striplib
25892 # Dependencies to place before the objects being linked to create a
25894 predep_objects=$lt_predep_objects_GCJ
25896 # Dependencies to place after the objects being linked to create a
25898 postdep_objects=$lt_postdep_objects_GCJ
25900 # Dependencies to place before the objects being linked to create a
25902 predeps=$lt_predeps_GCJ
25904 # Dependencies to place after the objects being linked to create a
25906 postdeps=$lt_postdeps_GCJ
25908 # The library search path used internally by the compiler when linking
25909 # a shared library.
25910 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25912 # Method to check whether dependent libraries are shared objects.
25913 deplibs_check_method=$lt_deplibs_check_method
25915 # Command to use when deplibs_check_method == file_magic.
25916 file_magic_cmd=$lt_file_magic_cmd
25918 # Flag that allows shared libraries with undefined symbols to be built.
25919 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25921 # Flag that forces no undefined symbols.
25922 no_undefined_flag=$lt_no_undefined_flag_GCJ
25924 # Commands used to finish a libtool library installation in a directory.
25925 finish_cmds=$lt_finish_cmds
25927 # Same as above, but a single script fragment to be evaled but not shown.
25928 finish_eval=$lt_finish_eval
25930 # Take the output of nm and produce a listing of raw symbols and C names.
25931 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25933 # Transform the output of nm in a proper C declaration
25934 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25936 # Transform the output of nm in a C name address pair
25937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25939 # This is the shared library runtime path variable.
25940 runpath_var=$runpath_var
25942 # This is the shared library path variable.
25943 shlibpath_var=$shlibpath_var
25945 # Is shlibpath searched before the hard-coded library search path?
25946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25948 # How to hardcode a shared library path into an executable.
25949 hardcode_action=$hardcode_action_GCJ
25951 # Whether we should hardcode library paths into libraries.
25952 hardcode_into_libs=$hardcode_into_libs
25954 # Flag to hardcode \$libdir into a binary during linking.
25955 # This must work even if \$libdir does not exist.
25956 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25958 # If ld is used when linking, flag to hardcode \$libdir into
25959 # a binary during linking. This must work even if \$libdir does
25961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25963 # Whether we need a single -rpath flag with a separated argument.
25964 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25966 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25967 # resulting binary.
25968 hardcode_direct=$hardcode_direct_GCJ
25970 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25971 # resulting binary.
25972 hardcode_minus_L=$hardcode_minus_L_GCJ
25974 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25975 # the resulting binary.
25976 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25978 # Set to yes if building a shared library automatically hardcodes DIR into the library
25979 # and all subsequent libraries and executables linked against it.
25980 hardcode_automatic=$hardcode_automatic_GCJ
25982 # Variables whose values should be saved in libtool wrapper scripts and
25983 # restored at relink time.
25984 variables_saved_for_relink="$variables_saved_for_relink"
25986 # Whether libtool must link a program against all its dependency libraries.
25987 link_all_deplibs=$link_all_deplibs_GCJ
25989 # Compile-time system search path for libraries
25990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25992 # Run-time system search path for libraries
25993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25995 # Fix the shell variable \$srcfile for the compiler.
25996 fix_srcfile_path="$fix_srcfile_path_GCJ"
25998 # Set to yes if exported symbols are required.
25999 always_export_symbols=$always_export_symbols_GCJ
26001 # The commands to list exported symbols.
26002 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26004 # The commands to extract the exported symbol list from a shared archive.
26005 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26007 # Symbols that should not be listed in the preloaded symbols.
26008 exclude_expsyms=$lt_exclude_expsyms_GCJ
26010 # Symbols that must always be exported.
26011 include_expsyms=$lt_include_expsyms_GCJ
26013 # ### END LIBTOOL TAG CONFIG: $tagname
26019 # If there is no Makefile yet, we rely on a make rule to execute
26020 # `config.status --recheck' to rerun these tests and create the
26021 # libtool script then.
26022 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26023 if test -f "$ltmain_in"; then
26024 test -f Makefile && make "$ltmain"
26030 ac_cpp='$CPP $CPPFLAGS'
26031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26044 ac_cpp='$CPP $CPPFLAGS'
26045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26050 # Source file extension for RC test sources.
26053 # Object file extension for compiled RC test sources.
26057 # Code to be used in simple compile tests
26058 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26060 # Code to be used in simple link tests
26061 lt_simple_link_test_code="$lt_simple_compile_test_code"
26063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26065 # If no C compiler was specified, use CC.
26068 # If no C compiler flags were specified, use CFLAGS.
26069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26071 # Allow CC to be a program name with arguments.
26075 # save warnings/boilerplate of simple test code
26076 ac_outfile=conftest.$ac_objext
26077 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26079 _lt_compiler_boilerplate=`cat conftest.err`
26082 ac_outfile=conftest.$ac_objext
26083 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26085 _lt_linker_boilerplate=`cat conftest.err`
26089 # Allow CC to be a program name with arguments.
26094 for cc_temp in $compiler""; do
26096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26104 lt_cv_prog_compiler_c_o_RC=yes
26106 # The else clause should only fire when bootstrapping the
26107 # libtool distribution, otherwise you forgot to ship ltmain.sh
26108 # with your package, and you will get complaints that there are
26109 # no rules to generate ltmain.sh.
26110 if test -f "$ltmain"; then
26111 # See if we are running on zsh, and set the options which allow our commands through
26112 # without removal of \ escapes.
26113 if test -n "${ZSH_VERSION+set}" ; then
26114 setopt NO_GLOB_SUBST
26116 # Now quote all the things that may contain metacharacters while being
26117 # careful not to overquote the AC_SUBSTed values. We take copies of the
26118 # variables and quote the copies for generation of the libtool script.
26119 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26121 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26122 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26123 deplibs_check_method reload_flag reload_cmds need_locks \
26124 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26125 lt_cv_sys_global_symbol_to_c_name_address \
26126 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26127 old_postinstall_cmds old_postuninstall_cmds \
26131 lt_prog_compiler_wl_RC \
26132 lt_prog_compiler_pic_RC \
26133 lt_prog_compiler_static_RC \
26134 lt_prog_compiler_no_builtin_flag_RC \
26135 export_dynamic_flag_spec_RC \
26136 thread_safe_flag_spec_RC \
26137 whole_archive_flag_spec_RC \
26138 enable_shared_with_static_runtimes_RC \
26139 old_archive_cmds_RC \
26140 old_archive_from_new_cmds_RC \
26141 predep_objects_RC \
26142 postdep_objects_RC \
26145 compiler_lib_search_path_RC \
26147 archive_expsym_cmds_RC \
26148 postinstall_cmds_RC \
26149 postuninstall_cmds_RC \
26150 old_archive_from_expsyms_cmds_RC \
26151 allow_undefined_flag_RC \
26152 no_undefined_flag_RC \
26153 export_symbols_cmds_RC \
26154 hardcode_libdir_flag_spec_RC \
26155 hardcode_libdir_flag_spec_ld_RC \
26156 hardcode_libdir_separator_RC \
26157 hardcode_automatic_RC \
26159 module_expsym_cmds_RC \
26160 lt_cv_prog_compiler_c_o_RC \
26161 exclude_expsyms_RC \
26162 include_expsyms_RC; do
26165 old_archive_cmds_RC | \
26166 old_archive_from_new_cmds_RC | \
26167 archive_cmds_RC | \
26168 archive_expsym_cmds_RC | \
26170 module_expsym_cmds_RC | \
26171 old_archive_from_expsyms_cmds_RC | \
26172 export_symbols_cmds_RC | \
26173 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26174 postinstall_cmds | postuninstall_cmds | \
26175 old_postinstall_cmds | old_postuninstall_cmds | \
26176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26177 # Double-quote double-evaled strings.
26178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26187 *'\$0 --fallback-echo"')
26188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26194 cat <<__EOF__ >> "$cfgfile"
26195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26199 # Shell to use when invoking shell scripts.
26202 # Whether or not to build shared libraries.
26203 build_libtool_libs=$enable_shared
26205 # Whether or not to build static libraries.
26206 build_old_libs=$enable_static
26208 # Whether or not to add -lc for building shared libraries.
26209 build_libtool_need_lc=$archive_cmds_need_lc_RC
26211 # Whether or not to disallow shared libs when runtime libs are static
26212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26214 # Whether or not to optimize for fast installation.
26215 fast_install=$enable_fast_install
26218 host_alias=$host_alias
26222 # The build system.
26223 build_alias=$build_alias
26227 # An echo program that does not interpret backslashes.
26232 AR_FLAGS=$lt_AR_FLAGS
26237 # LTCC compiler flags.
26238 LTCFLAGS=$lt_LTCFLAGS
26240 # A language-specific compiler.
26243 # Is the compiler the GNU C compiler?
26249 # The linker used to build libraries.
26252 # Whether we need hard or soft links.
26255 # A BSD-compatible nm program.
26258 # A symbol stripping program
26261 # Used to examine libraries when file_magic_cmd begins "file"
26262 MAGIC_CMD=$MAGIC_CMD
26264 # Used on cygwin: DLL creation program.
26267 # Used on cygwin: object dumper.
26270 # Used on cygwin: assembler.
26273 # The name of the directory that contains temporary libtool files.
26276 # How to create reloadable object files.
26277 reload_flag=$lt_reload_flag
26278 reload_cmds=$lt_reload_cmds
26280 # How to pass a linker flag through the compiler.
26281 wl=$lt_lt_prog_compiler_wl_RC
26283 # Object file suffix (normally "o").
26284 objext="$ac_objext"
26286 # Old archive suffix (normally "a").
26289 # Shared library suffix (normally ".so").
26290 shrext_cmds='$shrext_cmds'
26292 # Executable file suffix (normally "").
26295 # Additional compiler flags for building library objects.
26296 pic_flag=$lt_lt_prog_compiler_pic_RC
26299 # What is the maximum length of a command?
26300 max_cmd_len=$lt_cv_sys_max_cmd_len
26302 # Does compiler simultaneously support -c and -o options?
26303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26305 # Must we lock files when doing compilation?
26306 need_locks=$lt_need_locks
26308 # Do we need the lib prefix for modules?
26309 need_lib_prefix=$need_lib_prefix
26311 # Do we need a version for libraries?
26312 need_version=$need_version
26314 # Whether dlopen is supported.
26315 dlopen_support=$enable_dlopen
26317 # Whether dlopen of programs is supported.
26318 dlopen_self=$enable_dlopen_self
26320 # Whether dlopen of statically linked programs is supported.
26321 dlopen_self_static=$enable_dlopen_self_static
26323 # Compiler flag to prevent dynamic linking.
26324 link_static_flag=$lt_lt_prog_compiler_static_RC
26326 # Compiler flag to turn off builtin functions.
26327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26329 # Compiler flag to allow reflexive dlopens.
26330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26332 # Compiler flag to generate shared objects directly from archives.
26333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26335 # Compiler flag to generate thread-safe objects.
26336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26338 # Library versioning type.
26339 version_type=$version_type
26341 # Format of library name prefix.
26342 libname_spec=$lt_libname_spec
26344 # List of archive names. First name is the real one, the rest are links.
26345 # The last name is the one that the linker finds with -lNAME.
26346 library_names_spec=$lt_library_names_spec
26348 # The coded name of the library, if different from the real name.
26349 soname_spec=$lt_soname_spec
26351 # Commands used to build and install an old-style archive.
26353 old_archive_cmds=$lt_old_archive_cmds_RC
26354 old_postinstall_cmds=$lt_old_postinstall_cmds
26355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26357 # Create an old-style archive from a shared archive.
26358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26360 # Create a temporary old-style archive to link instead of a shared archive.
26361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26363 # Commands used to build and install a shared archive.
26364 archive_cmds=$lt_archive_cmds_RC
26365 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26366 postinstall_cmds=$lt_postinstall_cmds
26367 postuninstall_cmds=$lt_postuninstall_cmds
26369 # Commands used to build a loadable module (assumed same as above if empty)
26370 module_cmds=$lt_module_cmds_RC
26371 module_expsym_cmds=$lt_module_expsym_cmds_RC
26373 # Commands to strip libraries.
26374 old_striplib=$lt_old_striplib
26375 striplib=$lt_striplib
26377 # Dependencies to place before the objects being linked to create a
26379 predep_objects=$lt_predep_objects_RC
26381 # Dependencies to place after the objects being linked to create a
26383 postdep_objects=$lt_postdep_objects_RC
26385 # Dependencies to place before the objects being linked to create a
26387 predeps=$lt_predeps_RC
26389 # Dependencies to place after the objects being linked to create a
26391 postdeps=$lt_postdeps_RC
26393 # The library search path used internally by the compiler when linking
26394 # a shared library.
26395 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26397 # Method to check whether dependent libraries are shared objects.
26398 deplibs_check_method=$lt_deplibs_check_method
26400 # Command to use when deplibs_check_method == file_magic.
26401 file_magic_cmd=$lt_file_magic_cmd
26403 # Flag that allows shared libraries with undefined symbols to be built.
26404 allow_undefined_flag=$lt_allow_undefined_flag_RC
26406 # Flag that forces no undefined symbols.
26407 no_undefined_flag=$lt_no_undefined_flag_RC
26409 # Commands used to finish a libtool library installation in a directory.
26410 finish_cmds=$lt_finish_cmds
26412 # Same as above, but a single script fragment to be evaled but not shown.
26413 finish_eval=$lt_finish_eval
26415 # Take the output of nm and produce a listing of raw symbols and C names.
26416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26418 # Transform the output of nm in a proper C declaration
26419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26421 # Transform the output of nm in a C name address pair
26422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26424 # This is the shared library runtime path variable.
26425 runpath_var=$runpath_var
26427 # This is the shared library path variable.
26428 shlibpath_var=$shlibpath_var
26430 # Is shlibpath searched before the hard-coded library search path?
26431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26433 # How to hardcode a shared library path into an executable.
26434 hardcode_action=$hardcode_action_RC
26436 # Whether we should hardcode library paths into libraries.
26437 hardcode_into_libs=$hardcode_into_libs
26439 # Flag to hardcode \$libdir into a binary during linking.
26440 # This must work even if \$libdir does not exist.
26441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26443 # If ld is used when linking, flag to hardcode \$libdir into
26444 # a binary during linking. This must work even if \$libdir does
26446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26448 # Whether we need a single -rpath flag with a separated argument.
26449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26452 # resulting binary.
26453 hardcode_direct=$hardcode_direct_RC
26455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26456 # resulting binary.
26457 hardcode_minus_L=$hardcode_minus_L_RC
26459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26460 # the resulting binary.
26461 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26463 # Set to yes if building a shared library automatically hardcodes DIR into the library
26464 # and all subsequent libraries and executables linked against it.
26465 hardcode_automatic=$hardcode_automatic_RC
26467 # Variables whose values should be saved in libtool wrapper scripts and
26468 # restored at relink time.
26469 variables_saved_for_relink="$variables_saved_for_relink"
26471 # Whether libtool must link a program against all its dependency libraries.
26472 link_all_deplibs=$link_all_deplibs_RC
26474 # Compile-time system search path for libraries
26475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26477 # Run-time system search path for libraries
26478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26480 # Fix the shell variable \$srcfile for the compiler.
26481 fix_srcfile_path="$fix_srcfile_path_RC"
26483 # Set to yes if exported symbols are required.
26484 always_export_symbols=$always_export_symbols_RC
26486 # The commands to list exported symbols.
26487 export_symbols_cmds=$lt_export_symbols_cmds_RC
26489 # The commands to extract the exported symbol list from a shared archive.
26490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26492 # Symbols that should not be listed in the preloaded symbols.
26493 exclude_expsyms=$lt_exclude_expsyms_RC
26495 # Symbols that must always be exported.
26496 include_expsyms=$lt_include_expsyms_RC
26498 # ### END LIBTOOL TAG CONFIG: $tagname
26504 # If there is no Makefile yet, we rely on a make rule to execute
26505 # `config.status --recheck' to rerun these tests and create the
26506 # libtool script then.
26507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26508 if test -f "$ltmain_in"; then
26509 test -f Makefile && make "$ltmain"
26515 ac_cpp='$CPP $CPPFLAGS'
26516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26525 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26526 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26527 { (exit 1); exit 1; }; }
26531 # Append the new tag name to the list of available tags.
26532 if test -n "$tagname" ; then
26533 available_tags="$available_tags $tagname"
26539 # Now substitute the updated list of available tags.
26540 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26541 mv "${ofile}T" "$ofile"
26545 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26546 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26547 { (exit 1); exit 1; }; }
26553 # This can be used to rebuild libtool when needed
26554 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26556 # Always use our own libtool.
26557 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26559 # Prevent multiple expansion
26581 if test "$lt_cv_dlopen_self" = "yes" ; then
26583 cat >>confdefs.h <<\_ACEOF
26584 #define CAN_DLOPEN_SELF 1
26589 etags_version=`$ETAGS --version 2>&1`
26590 case "$etags_version" in
26591 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26592 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26593 *) ETAGSFLAGS="" ;;
26595 ETAGSFLAGS=$ETAGSFLAGS
26598 if test "$WITH_LLVMGCCDIR" = "default" ; then
26599 LLVMGCC="llvm-gcc${EXEEXT}"
26600 LLVMGXX="llvm-g++${EXEEXT}"
26601 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26602 set dummy $LLVMGCC; ac_word=$2
26603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26605 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26610 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26614 for as_dir in $PATH
26617 test -z "$as_dir" && as_dir=.
26618 for ac_exec_ext in '' $ac_executable_extensions; do
26619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26620 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26631 LLVMGCC=$ac_cv_path_LLVMGCC
26632 if test -n "$LLVMGCC"; then
26633 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26634 echo "${ECHO_T}$LLVMGCC" >&6; }
26636 { echo "$as_me:$LINENO: result: no" >&5
26637 echo "${ECHO_T}no" >&6; }
26641 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26642 set dummy $LLVMGXX; ac_word=$2
26643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26645 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26646 echo $ECHO_N "(cached) $ECHO_C" >&6
26650 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26654 for as_dir in $PATH
26657 test -z "$as_dir" && as_dir=.
26658 for ac_exec_ext in '' $ac_executable_extensions; do
26659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26660 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26671 LLVMGXX=$ac_cv_path_LLVMGXX
26672 if test -n "$LLVMGXX"; then
26673 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26674 echo "${ECHO_T}$LLVMGXX" >&6; }
26676 { echo "$as_me:$LINENO: result: no" >&5
26677 echo "${ECHO_T}no" >&6; }
26682 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26683 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26690 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26691 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26704 if test "$GCC" != "yes" && test "$ICC" != "yes"
26706 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26707 echo "$as_me: error: gcc|icc required but not found" >&2;}
26708 { (exit 1); exit 1; }; }
26711 if test "$GXX" != "yes" && test "$IXX" != "yes"
26713 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26714 echo "$as_me: error: g++|icc required but not found" >&2;}
26715 { (exit 1); exit 1; }; }
26718 if test "$GCC" = "yes"
26720 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26721 if test "$gccmajor" -lt "3"
26723 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26724 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26725 { (exit 1); exit 1; }; }
26729 if test -z "$llvm_cv_gnu_make_command"
26731 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26732 echo "$as_me: error: GNU Make required but not found" >&2;}
26733 { (exit 1); exit 1; }; }
26736 { echo "$as_me:$LINENO: result: ok" >&5
26737 echo "${ECHO_T}ok" >&6; }
26741 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26742 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26743 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26746 ac_check_lib_save_LIBS=$LIBS
26748 cat >conftest.$ac_ext <<_ACEOF
26751 cat confdefs.h >>conftest.$ac_ext
26752 cat >>conftest.$ac_ext <<_ACEOF
26753 /* end confdefs.h. */
26755 /* Override any GCC internal prototype to avoid an error.
26756 Use char because int might match the return type of a GCC
26757 builtin and then its argument prototype would still apply. */
26765 return elf_begin ();
26770 rm -f conftest.$ac_objext conftest$ac_exeext
26771 if { (ac_try="$ac_link"
26772 case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_link") 2>conftest.er1
26779 grep -v '^ *+' conftest.er1 >conftest.err
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } &&
26784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26785 { (case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_try") 2>&5
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; } &&
26794 { ac_try='test -s conftest$ac_exeext'
26795 { (case "(($ac_try" in
26796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797 *) ac_try_echo=$ac_try;;
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800 (eval "$ac_try") 2>&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; }; then
26804 ac_cv_lib_elf_elf_begin=yes
26806 echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26809 ac_cv_lib_elf_elf_begin=no
26812 rm -f core conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
26814 LIBS=$ac_check_lib_save_LIBS
26816 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26817 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26818 if test $ac_cv_lib_elf_elf_begin = yes; then
26819 cat >>confdefs.h <<_ACEOF
26820 #define HAVE_LIBELF 1
26828 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26829 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26830 if test "${ac_cv_lib_m_sin+set}" = set; then
26831 echo $ECHO_N "(cached) $ECHO_C" >&6
26833 ac_check_lib_save_LIBS=$LIBS
26835 cat >conftest.$ac_ext <<_ACEOF
26838 cat confdefs.h >>conftest.$ac_ext
26839 cat >>conftest.$ac_ext <<_ACEOF
26840 /* end confdefs.h. */
26842 /* Override any GCC internal prototype to avoid an error.
26843 Use char because int might match the return type of a GCC
26844 builtin and then its argument prototype would still apply. */
26857 rm -f conftest.$ac_objext conftest$ac_exeext
26858 if { (ac_try="$ac_link"
26859 case "(($ac_try" in
26860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861 *) ac_try_echo=$ac_try;;
26863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864 (eval "$ac_link") 2>conftest.er1
26866 grep -v '^ *+' conftest.er1 >conftest.err
26868 cat conftest.err >&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } &&
26871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26872 { (case "(($ac_try" in
26873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874 *) ac_try_echo=$ac_try;;
26876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877 (eval "$ac_try") 2>&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; } &&
26881 { ac_try='test -s conftest$ac_exeext'
26882 { (case "(($ac_try" in
26883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26884 *) ac_try_echo=$ac_try;;
26886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26887 (eval "$ac_try") 2>&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); }; }; then
26891 ac_cv_lib_m_sin=yes
26893 echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26899 rm -f core conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
26901 LIBS=$ac_check_lib_save_LIBS
26903 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26904 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26905 if test $ac_cv_lib_m_sin = yes; then
26906 cat >>confdefs.h <<_ACEOF
26907 #define HAVE_LIBM 1
26914 if test "$llvm_cv_os_type" = "MingW" ; then
26916 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26917 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26918 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26919 echo $ECHO_N "(cached) $ECHO_C" >&6
26921 ac_check_lib_save_LIBS=$LIBS
26922 LIBS="-limagehlp $LIBS"
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26939 rm -f conftest.$ac_objext conftest$ac_exeext
26940 if { (ac_try="$ac_link"
26941 case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_link") 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } &&
26953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26954 { (case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_try") 2>&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; } &&
26963 { ac_try='test -s conftest$ac_exeext'
26964 { (case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_try") 2>&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; }; then
26973 ac_cv_lib_imagehlp_main=yes
26975 echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26978 ac_cv_lib_imagehlp_main=no
26981 rm -f core conftest.err conftest.$ac_objext \
26982 conftest$ac_exeext conftest.$ac_ext
26983 LIBS=$ac_check_lib_save_LIBS
26985 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26986 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26987 if test $ac_cv_lib_imagehlp_main = yes; then
26988 cat >>confdefs.h <<_ACEOF
26989 #define HAVE_LIBIMAGEHLP 1
26992 LIBS="-limagehlp $LIBS"
26997 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26998 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26999 if test "${ac_cv_lib_psapi_main+set}" = set; then
27000 echo $ECHO_N "(cached) $ECHO_C" >&6
27002 ac_check_lib_save_LIBS=$LIBS
27003 LIBS="-lpsapi $LIBS"
27004 cat >conftest.$ac_ext <<_ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h. */
27020 rm -f conftest.$ac_objext conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_link") 2>conftest.er1
27029 grep -v '^ *+' conftest.er1 >conftest.err
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
27034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27035 { (case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_try") 2>&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; } &&
27044 { ac_try='test -s conftest$ac_exeext'
27045 { (case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
27054 ac_cv_lib_psapi_main=yes
27056 echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27059 ac_cv_lib_psapi_main=no
27062 rm -f core conftest.err conftest.$ac_objext \
27063 conftest$ac_exeext conftest.$ac_ext
27064 LIBS=$ac_check_lib_save_LIBS
27066 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27067 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27068 if test $ac_cv_lib_psapi_main = yes; then
27069 cat >>confdefs.h <<_ACEOF
27070 #define HAVE_LIBPSAPI 1
27073 LIBS="-lpsapi $LIBS"
27079 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27080 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27081 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27082 echo $ECHO_N "(cached) $ECHO_C" >&6
27084 ac_func_search_save_LIBS=$LIBS
27085 cat >conftest.$ac_ext <<_ACEOF
27088 cat confdefs.h >>conftest.$ac_ext
27089 cat >>conftest.$ac_ext <<_ACEOF
27090 /* end confdefs.h. */
27092 /* Override any GCC internal prototype to avoid an error.
27093 Use char because int might match the return type of a GCC
27094 builtin and then its argument prototype would still apply. */
27102 return lt_dlopen ();
27107 for ac_lib in '' ltdl; do
27108 if test -z "$ac_lib"; then
27109 ac_res="none required"
27112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27114 rm -f conftest.$ac_objext conftest$ac_exeext
27115 if { (ac_try="$ac_link"
27116 case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_link") 2>conftest.er1
27123 grep -v '^ *+' conftest.er1 >conftest.err
27125 cat conftest.err >&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); } &&
27128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27129 { (case "(($ac_try" in
27130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131 *) ac_try_echo=$ac_try;;
27133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134 (eval "$ac_try") 2>&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; } &&
27138 { ac_try='test -s conftest$ac_exeext'
27139 { (case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144 (eval "$ac_try") 2>&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
27148 ac_cv_search_lt_dlopen=$ac_res
27150 echo "$as_me: failed program was:" >&5
27151 sed 's/^/| /' conftest.$ac_ext >&5
27156 rm -f core conftest.err conftest.$ac_objext \
27158 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27162 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27165 ac_cv_search_lt_dlopen=no
27167 rm conftest.$ac_ext
27168 LIBS=$ac_func_search_save_LIBS
27170 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27171 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27172 ac_res=$ac_cv_search_lt_dlopen
27173 if test "$ac_res" != no; then
27174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27176 cat >>confdefs.h <<\_ACEOF
27177 #define HAVE_LT_DLOPEN 1
27181 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27182 not be available" >&5
27183 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27184 not be available" >&2;}
27188 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27189 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27190 if test "${ac_cv_search_dlopen+set}" = set; then
27191 echo $ECHO_N "(cached) $ECHO_C" >&6
27193 ac_func_search_save_LIBS=$LIBS
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27201 /* Override any GCC internal prototype to avoid an error.
27202 Use char because int might match the return type of a GCC
27203 builtin and then its argument prototype would still apply. */
27216 for ac_lib in '' dl; do
27217 if test -z "$ac_lib"; then
27218 ac_res="none required"
27221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27223 rm -f conftest.$ac_objext conftest$ac_exeext
27224 if { (ac_try="$ac_link"
27225 case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_link") 2>conftest.er1
27232 grep -v '^ *+' conftest.er1 >conftest.err
27234 cat conftest.err >&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); } &&
27237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27238 { (case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_try") 2>&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; } &&
27247 { ac_try='test -s conftest$ac_exeext'
27248 { (case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_try") 2>&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; }; then
27257 ac_cv_search_dlopen=$ac_res
27259 echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27265 rm -f core conftest.err conftest.$ac_objext \
27267 if test "${ac_cv_search_dlopen+set}" = set; then
27271 if test "${ac_cv_search_dlopen+set}" = set; then
27274 ac_cv_search_dlopen=no
27276 rm conftest.$ac_ext
27277 LIBS=$ac_func_search_save_LIBS
27279 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27280 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27281 ac_res=$ac_cv_search_dlopen
27282 if test "$ac_res" != no; then
27283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27285 cat >>confdefs.h <<\_ACEOF
27286 #define HAVE_DLOPEN 1
27290 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27291 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27295 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27296 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27297 if test "${ac_cv_search_mallinfo+set}" = set; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27300 ac_func_search_save_LIBS=$LIBS
27301 cat >conftest.$ac_ext <<_ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h. */
27308 /* Override any GCC internal prototype to avoid an error.
27309 Use char because int might match the return type of a GCC
27310 builtin and then its argument prototype would still apply. */
27318 return mallinfo ();
27323 for ac_lib in '' malloc; do
27324 if test -z "$ac_lib"; then
27325 ac_res="none required"
27328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27330 rm -f conftest.$ac_objext conftest$ac_exeext
27331 if { (ac_try="$ac_link"
27332 case "(($ac_try" in
27333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334 *) ac_try_echo=$ac_try;;
27336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337 (eval "$ac_link") 2>conftest.er1
27339 grep -v '^ *+' conftest.er1 >conftest.err
27341 cat conftest.err >&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } &&
27344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27345 { (case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_try") 2>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; } &&
27354 { ac_try='test -s conftest$ac_exeext'
27355 { (case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360 (eval "$ac_try") 2>&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364 ac_cv_search_mallinfo=$ac_res
27366 echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27372 rm -f core conftest.err conftest.$ac_objext \
27374 if test "${ac_cv_search_mallinfo+set}" = set; then
27378 if test "${ac_cv_search_mallinfo+set}" = set; then
27381 ac_cv_search_mallinfo=no
27383 rm conftest.$ac_ext
27384 LIBS=$ac_func_search_save_LIBS
27386 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27387 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27388 ac_res=$ac_cv_search_mallinfo
27389 if test "$ac_res" != no; then
27390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27392 cat >>confdefs.h <<\_ACEOF
27393 #define HAVE_MALLINFO 1
27399 if test "$ENABLE_THREADS" -eq 1 ; then
27401 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27402 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27403 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 ac_check_lib_save_LIBS=$LIBS
27407 LIBS="-lpthread $LIBS"
27408 cat >conftest.$ac_ext <<_ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h. */
27415 /* Override any GCC internal prototype to avoid an error.
27416 Use char because int might match the return type of a GCC
27417 builtin and then its argument prototype would still apply. */
27421 char pthread_mutex_init ();
27425 return pthread_mutex_init ();
27430 rm -f conftest.$ac_objext conftest$ac_exeext
27431 if { (ac_try="$ac_link"
27432 case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_link") 2>conftest.er1
27439 grep -v '^ *+' conftest.er1 >conftest.err
27441 cat conftest.err >&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } &&
27444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; } &&
27454 { ac_try='test -s conftest$ac_exeext'
27455 { (case "(($ac_try" in
27456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457 *) ac_try_echo=$ac_try;;
27459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27460 (eval "$ac_try") 2>&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; }; then
27464 ac_cv_lib_pthread_pthread_mutex_init=yes
27466 echo "$as_me: failed program was:" >&5
27467 sed 's/^/| /' conftest.$ac_ext >&5
27469 ac_cv_lib_pthread_pthread_mutex_init=no
27472 rm -f core conftest.err conftest.$ac_objext \
27473 conftest$ac_exeext conftest.$ac_ext
27474 LIBS=$ac_check_lib_save_LIBS
27476 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27477 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27478 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27479 cat >>confdefs.h <<_ACEOF
27480 #define HAVE_LIBPTHREAD 1
27483 LIBS="-lpthread $LIBS"
27487 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27488 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27489 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27490 echo $ECHO_N "(cached) $ECHO_C" >&6
27492 ac_func_search_save_LIBS=$LIBS
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27500 /* Override any GCC internal prototype to avoid an error.
27501 Use char because int might match the return type of a GCC
27502 builtin and then its argument prototype would still apply. */
27506 char pthread_mutex_lock ();
27510 return pthread_mutex_lock ();
27515 for ac_lib in '' pthread; do
27516 if test -z "$ac_lib"; then
27517 ac_res="none required"
27520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27522 rm -f conftest.$ac_objext conftest$ac_exeext
27523 if { (ac_try="$ac_link"
27524 case "(($ac_try" in
27525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526 *) ac_try_echo=$ac_try;;
27528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529 (eval "$ac_link") 2>conftest.er1
27531 grep -v '^ *+' conftest.er1 >conftest.err
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
27536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27537 { (case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542 (eval "$ac_try") 2>&5
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; } &&
27546 { ac_try='test -s conftest$ac_exeext'
27547 { (case "(($ac_try" in
27548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549 *) ac_try_echo=$ac_try;;
27551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27552 (eval "$ac_try") 2>&5
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); }; }; then
27556 ac_cv_search_pthread_mutex_lock=$ac_res
27558 echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27564 rm -f core conftest.err conftest.$ac_objext \
27566 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27570 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27573 ac_cv_search_pthread_mutex_lock=no
27575 rm conftest.$ac_ext
27576 LIBS=$ac_func_search_save_LIBS
27578 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27579 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27580 ac_res=$ac_cv_search_pthread_mutex_lock
27581 if test "$ac_res" != no; then
27582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27584 cat >>confdefs.h <<\_ACEOF
27585 #define HAVE_PTHREAD_MUTEX_LOCK 1
27593 # Check whether --with-udis86 was given.
27594 if test "${with_udis86+set}" = set; then
27595 withval=$with_udis86;
27600 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27603 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27604 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27605 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27608 ac_check_lib_save_LIBS=$LIBS
27609 LIBS="-ludis86 $LIBS"
27610 cat >conftest.$ac_ext <<_ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27617 /* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27632 rm -f conftest.$ac_objext conftest$ac_exeext
27633 if { (ac_try="$ac_link"
27634 case "(($ac_try" in
27635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636 *) ac_try_echo=$ac_try;;
27638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27639 (eval "$ac_link") 2>conftest.er1
27641 grep -v '^ *+' conftest.er1 >conftest.err
27643 cat conftest.err >&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); } &&
27646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27647 { (case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_try") 2>&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; } &&
27656 { ac_try='test -s conftest$ac_exeext'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; }; then
27666 ac_cv_lib_udis86_ud_init=yes
27668 echo "$as_me: failed program was:" >&5
27669 sed 's/^/| /' conftest.$ac_ext >&5
27671 ac_cv_lib_udis86_ud_init=no
27674 rm -f core conftest.err conftest.$ac_objext \
27675 conftest$ac_exeext conftest.$ac_ext
27676 LIBS=$ac_check_lib_save_LIBS
27678 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27679 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27680 if test $ac_cv_lib_udis86_ud_init = yes; then
27681 cat >>confdefs.h <<_ACEOF
27682 #define HAVE_LIBUDIS86 1
27685 LIBS="-ludis86 $LIBS"
27689 echo "Error! You need to have libudis86 around."
27701 cat >>confdefs.h <<_ACEOF
27702 #define USE_UDIS86 $USE_UDIS86
27712 ac_header_dirent=no
27713 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27714 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27715 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27716 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27726 #include <sys/types.h>
27738 rm -f conftest.$ac_objext
27739 if { (ac_try="$ac_compile"
27740 case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745 (eval "$ac_compile") 2>conftest.er1
27747 grep -v '^ *+' conftest.er1 >conftest.err
27749 cat conftest.err >&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); } &&
27752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27753 { (case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_try") 2>&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; } &&
27762 { ac_try='test -s conftest.$ac_objext'
27763 { (case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_try") 2>&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; }; then
27772 eval "$as_ac_Header=yes"
27774 echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27777 eval "$as_ac_Header=no"
27780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27782 ac_res=`eval echo '${'$as_ac_Header'}'`
27783 { echo "$as_me:$LINENO: result: $ac_res" >&5
27784 echo "${ECHO_T}$ac_res" >&6; }
27785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27786 cat >>confdefs.h <<_ACEOF
27787 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27790 ac_header_dirent=$ac_hdr; break
27794 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27795 if test $ac_header_dirent = dirent.h; then
27796 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27797 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27798 if test "${ac_cv_search_opendir+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 ac_func_search_save_LIBS=$LIBS
27802 cat >conftest.$ac_ext <<_ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h. */
27809 /* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
27824 for ac_lib in '' dir; do
27825 if test -z "$ac_lib"; then
27826 ac_res="none required"
27829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27831 rm -f conftest.$ac_objext conftest$ac_exeext
27832 if { (ac_try="$ac_link"
27833 case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_link") 2>conftest.er1
27840 grep -v '^ *+' conftest.er1 >conftest.err
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } &&
27845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846 { (case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_try") 2>&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; } &&
27855 { ac_try='test -s conftest$ac_exeext'
27856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
27865 ac_cv_search_opendir=$ac_res
27867 echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27873 rm -f core conftest.err conftest.$ac_objext \
27875 if test "${ac_cv_search_opendir+set}" = set; then
27879 if test "${ac_cv_search_opendir+set}" = set; then
27882 ac_cv_search_opendir=no
27884 rm conftest.$ac_ext
27885 LIBS=$ac_func_search_save_LIBS
27887 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27888 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27889 ac_res=$ac_cv_search_opendir
27890 if test "$ac_res" != no; then
27891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27896 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27897 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27898 if test "${ac_cv_search_opendir+set}" = set; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27901 ac_func_search_save_LIBS=$LIBS
27902 cat >conftest.$ac_ext <<_ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h. */
27909 /* Override any GCC internal prototype to avoid an error.
27910 Use char because int might match the return type of a GCC
27911 builtin and then its argument prototype would still apply. */
27924 for ac_lib in '' x; do
27925 if test -z "$ac_lib"; then
27926 ac_res="none required"
27929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27931 rm -f conftest.$ac_objext conftest$ac_exeext
27932 if { (ac_try="$ac_link"
27933 case "(($ac_try" in
27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935 *) ac_try_echo=$ac_try;;
27937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938 (eval "$ac_link") 2>conftest.er1
27940 grep -v '^ *+' conftest.er1 >conftest.err
27942 cat conftest.err >&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
27945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27946 { (case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951 (eval "$ac_try") 2>&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; } &&
27955 { ac_try='test -s conftest$ac_exeext'
27956 { (case "(($ac_try" in
27957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958 *) ac_try_echo=$ac_try;;
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961 (eval "$ac_try") 2>&5
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; }; then
27965 ac_cv_search_opendir=$ac_res
27967 echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27973 rm -f core conftest.err conftest.$ac_objext \
27975 if test "${ac_cv_search_opendir+set}" = set; then
27979 if test "${ac_cv_search_opendir+set}" = set; then
27982 ac_cv_search_opendir=no
27984 rm conftest.$ac_ext
27985 LIBS=$ac_func_search_save_LIBS
27987 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27988 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27989 ac_res=$ac_cv_search_opendir
27990 if test "$ac_res" != no; then
27991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27997 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27998 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27999 if test "${ac_cv_header_mmap_anon+set}" = set; then
28000 echo $ECHO_N "(cached) $ECHO_C" >&6
28003 ac_cpp='$CPP $CPPFLAGS'
28004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28008 cat >conftest.$ac_ext <<_ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h. */
28014 #include <sys/mman.h>
28015 #include <unistd.h>
28020 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28025 rm -f conftest.$ac_objext
28026 if { (ac_try="$ac_compile"
28027 case "(($ac_try" in
28028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029 *) ac_try_echo=$ac_try;;
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032 (eval "$ac_compile") 2>conftest.er1
28034 grep -v '^ *+' conftest.er1 >conftest.err
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
28039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28040 { (case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_try") 2>&5
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; } &&
28049 { ac_try='test -s conftest.$ac_objext'
28050 { (case "(($ac_try" in
28051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28052 *) ac_try_echo=$ac_try;;
28054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28055 (eval "$ac_try") 2>&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; }; then
28059 ac_cv_header_mmap_anon=yes
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28064 ac_cv_header_mmap_anon=no
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069 ac_cpp='$CPP $CPPFLAGS'
28070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28076 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28077 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28078 if test "$ac_cv_header_mmap_anon" = yes; then
28080 cat >>confdefs.h <<\_ACEOF
28081 #define HAVE_MMAP_ANONYMOUS 1
28086 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28087 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28088 if test "${ac_cv_header_stat_broken+set}" = set; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28091 cat >conftest.$ac_ext <<_ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h. */
28097 #include <sys/types.h>
28098 #include <sys/stat.h>
28100 #if defined S_ISBLK && defined S_IFDIR
28101 # if S_ISBLK (S_IFDIR)
28106 #if defined S_ISBLK && defined S_IFCHR
28107 # if S_ISBLK (S_IFCHR)
28112 #if defined S_ISLNK && defined S_IFREG
28113 # if S_ISLNK (S_IFREG)
28118 #if defined S_ISSOCK && defined S_IFREG
28119 # if S_ISSOCK (S_IFREG)
28125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28126 $EGREP "You lose" >/dev/null 2>&1; then
28127 ac_cv_header_stat_broken=yes
28129 ac_cv_header_stat_broken=no
28134 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28135 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28136 if test $ac_cv_header_stat_broken = yes; then
28138 cat >>confdefs.h <<\_ACEOF
28139 #define STAT_MACROS_BROKEN 1
28144 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28145 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28146 if test "${ac_cv_header_stdc+set}" = set; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28149 cat >conftest.$ac_ext <<_ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28155 #include <stdlib.h>
28156 #include <stdarg.h>
28157 #include <string.h>
28168 rm -f conftest.$ac_objext
28169 if { (ac_try="$ac_compile"
28170 case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_compile") 2>conftest.er1
28177 grep -v '^ *+' conftest.er1 >conftest.err
28179 cat conftest.err >&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); } &&
28182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; } &&
28192 { ac_try='test -s conftest.$ac_objext'
28193 { (case "(($ac_try" in
28194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195 *) ac_try_echo=$ac_try;;
28197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198 (eval "$ac_try") 2>&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
28202 ac_cv_header_stdc=yes
28204 echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28207 ac_cv_header_stdc=no
28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28212 if test $ac_cv_header_stdc = yes; then
28213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28214 cat >conftest.$ac_ext <<_ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h. */
28220 #include <string.h>
28223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28224 $EGREP "memchr" >/dev/null 2>&1; then
28227 ac_cv_header_stdc=no
28233 if test $ac_cv_header_stdc = yes; then
28234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28235 cat >conftest.$ac_ext <<_ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h. */
28241 #include <stdlib.h>
28244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28245 $EGREP "free" >/dev/null 2>&1; then
28248 ac_cv_header_stdc=no
28254 if test $ac_cv_header_stdc = yes; then
28255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28256 if test "$cross_compiling" = yes; then
28259 cat >conftest.$ac_ext <<_ACEOF
28262 cat confdefs.h >>conftest.$ac_ext
28263 cat >>conftest.$ac_ext <<_ACEOF
28264 /* end confdefs.h. */
28266 #include <stdlib.h>
28267 #if ((' ' & 0x0FF) == 0x020)
28268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28271 # define ISLOWER(c) \
28272 (('a' <= (c) && (c) <= 'i') \
28273 || ('j' <= (c) && (c) <= 'r') \
28274 || ('s' <= (c) && (c) <= 'z'))
28275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28283 for (i = 0; i < 256; i++)
28284 if (XOR (islower (i), ISLOWER (i))
28285 || toupper (i) != TOUPPER (i))
28290 rm -f conftest$ac_exeext
28291 if { (ac_try="$ac_link"
28292 case "(($ac_try" in
28293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294 *) ac_try_echo=$ac_try;;
28296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297 (eval "$ac_link") 2>&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28301 { (case "(($ac_try" in
28302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303 *) ac_try_echo=$ac_try;;
28305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306 (eval "$ac_try") 2>&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
28312 echo "$as_me: program exited with status $ac_status" >&5
28313 echo "$as_me: failed program was:" >&5
28314 sed 's/^/| /' conftest.$ac_ext >&5
28316 ( exit $ac_status )
28317 ac_cv_header_stdc=no
28319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28325 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28326 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28327 if test $ac_cv_header_stdc = yes; then
28329 cat >>confdefs.h <<\_ACEOF
28330 #define STDC_HEADERS 1
28335 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28336 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28337 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 #include <sys/types.h>
28347 #include <sys/wait.h>
28348 #ifndef WEXITSTATUS
28349 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28352 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28360 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28365 rm -f conftest.$ac_objext
28366 if { (ac_try="$ac_compile"
28367 case "(($ac_try" in
28368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369 *) ac_try_echo=$ac_try;;
28371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372 (eval "$ac_compile") 2>conftest.er1
28374 grep -v '^ *+' conftest.er1 >conftest.err
28376 cat conftest.err >&5
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); } &&
28379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28380 { (case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_try") 2>&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; } &&
28389 { ac_try='test -s conftest.$ac_objext'
28390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; }; then
28399 ac_cv_header_sys_wait_h=yes
28401 echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28404 ac_cv_header_sys_wait_h=no
28407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28409 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28410 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28411 if test $ac_cv_header_sys_wait_h = yes; then
28413 cat >>confdefs.h <<\_ACEOF
28414 #define HAVE_SYS_WAIT_H 1
28419 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28420 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28421 if test "${ac_cv_header_time+set}" = set; then
28422 echo $ECHO_N "(cached) $ECHO_C" >&6
28424 cat >conftest.$ac_ext <<_ACEOF
28427 cat confdefs.h >>conftest.$ac_ext
28428 cat >>conftest.$ac_ext <<_ACEOF
28429 /* end confdefs.h. */
28430 #include <sys/types.h>
28431 #include <sys/time.h>
28437 if ((struct tm *) 0)
28443 rm -f conftest.$ac_objext
28444 if { (ac_try="$ac_compile"
28445 case "(($ac_try" in
28446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447 *) ac_try_echo=$ac_try;;
28449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450 (eval "$ac_compile") 2>conftest.er1
28452 grep -v '^ *+' conftest.er1 >conftest.err
28454 cat conftest.err >&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); } &&
28457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28458 { (case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_try") 2>&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest.$ac_objext'
28468 { (case "(($ac_try" in
28469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_try") 2>&5
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; }; then
28477 ac_cv_header_time=yes
28479 echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28482 ac_cv_header_time=no
28485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28487 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28488 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28489 if test $ac_cv_header_time = yes; then
28491 cat >>confdefs.h <<\_ACEOF
28492 #define TIME_WITH_SYS_TIME 1
28504 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28511 echo $ECHO_N "(cached) $ECHO_C" >&6
28513 ac_res=`eval echo '${'$as_ac_Header'}'`
28514 { echo "$as_me:$LINENO: result: $ac_res" >&5
28515 echo "${ECHO_T}$ac_res" >&6; }
28517 # Is the header compilable?
28518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 $ac_includes_default
28527 #include <$ac_header>
28529 rm -f conftest.$ac_objext
28530 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28538 grep -v '^ *+' conftest.er1 >conftest.err
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
28543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28544 { (case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_try") 2>&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; } &&
28553 { ac_try='test -s conftest.$ac_objext'
28554 { (case "(($ac_try" in
28555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556 *) ac_try_echo=$ac_try;;
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_try") 2>&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; }; then
28563 ac_header_compiler=yes
28565 echo "$as_me: failed program was:" >&5
28566 sed 's/^/| /' conftest.$ac_ext >&5
28568 ac_header_compiler=no
28571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28573 echo "${ECHO_T}$ac_header_compiler" >&6; }
28575 # Is the header present?
28576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 #include <$ac_header>
28586 if { (ac_try="$ac_cpp conftest.$ac_ext"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28594 grep -v '^ *+' conftest.er1 >conftest.err
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } >/dev/null; then
28599 if test -s conftest.err; then
28600 ac_cpp_err=$ac_c_preproc_warn_flag
28601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28608 if test -z "$ac_cpp_err"; then
28609 ac_header_preproc=yes
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28614 ac_header_preproc=no
28617 rm -f conftest.err conftest.$ac_ext
28618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28619 echo "${ECHO_T}$ac_header_preproc" >&6; }
28621 # So? What about this header?
28622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28628 ac_header_preproc=yes
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28644 ## ----------------------------------- ##
28645 ## Report this to llvmbugs@cs.uiuc.edu ##
28646 ## ----------------------------------- ##
28648 ) | sed "s/^/$as_me: WARNING: /" >&2
28651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28656 eval "$as_ac_Header=\$ac_header_preproc"
28658 ac_res=`eval echo '${'$as_ac_Header'}'`
28659 { echo "$as_me:$LINENO: result: $ac_res" >&5
28660 echo "${ECHO_T}$ac_res" >&6; }
28663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28664 cat >>confdefs.h <<_ACEOF
28665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28678 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28685 echo $ECHO_N "(cached) $ECHO_C" >&6
28687 ac_res=`eval echo '${'$as_ac_Header'}'`
28688 { echo "$as_me:$LINENO: result: $ac_res" >&5
28689 echo "${ECHO_T}$ac_res" >&6; }
28691 # Is the header compilable?
28692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28694 cat >conftest.$ac_ext <<_ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h. */
28700 $ac_includes_default
28701 #include <$ac_header>
28703 rm -f conftest.$ac_objext
28704 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28712 grep -v '^ *+' conftest.er1 >conftest.err
28714 cat conftest.err >&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); } &&
28717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28718 { (case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_try") 2>&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; } &&
28727 { ac_try='test -s conftest.$ac_objext'
28728 { (case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 ac_header_compiler=yes
28739 echo "$as_me: failed program was:" >&5
28740 sed 's/^/| /' conftest.$ac_ext >&5
28742 ac_header_compiler=no
28745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28747 echo "${ECHO_T}$ac_header_compiler" >&6; }
28749 # Is the header present?
28750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28752 cat >conftest.$ac_ext <<_ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28758 #include <$ac_header>
28760 if { (ac_try="$ac_cpp conftest.$ac_ext"
28761 case "(($ac_try" in
28762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763 *) ac_try_echo=$ac_try;;
28765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28768 grep -v '^ *+' conftest.er1 >conftest.err
28770 cat conftest.err >&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } >/dev/null; then
28773 if test -s conftest.err; then
28774 ac_cpp_err=$ac_c_preproc_warn_flag
28775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28782 if test -z "$ac_cpp_err"; then
28783 ac_header_preproc=yes
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_header_preproc=no
28791 rm -f conftest.err conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28793 echo "${ECHO_T}$ac_header_preproc" >&6; }
28795 # So? What about this header?
28796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28802 ac_header_preproc=yes
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28818 ## ----------------------------------- ##
28819 ## Report this to llvmbugs@cs.uiuc.edu ##
28820 ## ----------------------------------- ##
28822 ) | sed "s/^/$as_me: WARNING: /" >&2
28825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28830 eval "$as_ac_Header=\$ac_header_preproc"
28832 ac_res=`eval echo '${'$as_ac_Header'}'`
28833 { echo "$as_me:$LINENO: result: $ac_res" >&5
28834 echo "${ECHO_T}$ac_res" >&6; }
28837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28838 cat >>confdefs.h <<_ACEOF
28839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28851 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28858 echo $ECHO_N "(cached) $ECHO_C" >&6
28860 ac_res=`eval echo '${'$as_ac_Header'}'`
28861 { echo "$as_me:$LINENO: result: $ac_res" >&5
28862 echo "${ECHO_T}$ac_res" >&6; }
28864 # Is the header compilable?
28865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28867 cat >conftest.$ac_ext <<_ACEOF
28870 cat confdefs.h >>conftest.$ac_ext
28871 cat >>conftest.$ac_ext <<_ACEOF
28872 /* end confdefs.h. */
28873 $ac_includes_default
28874 #include <$ac_header>
28876 rm -f conftest.$ac_objext
28877 if { (ac_try="$ac_compile"
28878 case "(($ac_try" in
28879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880 *) ac_try_echo=$ac_try;;
28882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883 (eval "$ac_compile") 2>conftest.er1
28885 grep -v '^ *+' conftest.er1 >conftest.err
28887 cat conftest.err >&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); } &&
28890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28891 { (case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_try") 2>&5
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; } &&
28900 { ac_try='test -s conftest.$ac_objext'
28901 { (case "(($ac_try" in
28902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903 *) ac_try_echo=$ac_try;;
28905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28906 (eval "$ac_try") 2>&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
28910 ac_header_compiler=yes
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28915 ac_header_compiler=no
28918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28920 echo "${ECHO_T}$ac_header_compiler" >&6; }
28922 # Is the header present?
28923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28925 cat >conftest.$ac_ext <<_ACEOF
28928 cat confdefs.h >>conftest.$ac_ext
28929 cat >>conftest.$ac_ext <<_ACEOF
28930 /* end confdefs.h. */
28931 #include <$ac_header>
28933 if { (ac_try="$ac_cpp conftest.$ac_ext"
28934 case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28941 grep -v '^ *+' conftest.er1 >conftest.err
28943 cat conftest.err >&5
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } >/dev/null; then
28946 if test -s conftest.err; then
28947 ac_cpp_err=$ac_c_preproc_warn_flag
28948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28955 if test -z "$ac_cpp_err"; then
28956 ac_header_preproc=yes
28958 echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ac_header_preproc=no
28964 rm -f conftest.err conftest.$ac_ext
28965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28966 echo "${ECHO_T}$ac_header_preproc" >&6; }
28968 # So? What about this header?
28969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28975 ac_header_preproc=yes
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28991 ## ----------------------------------- ##
28992 ## Report this to llvmbugs@cs.uiuc.edu ##
28993 ## ----------------------------------- ##
28995 ) | sed "s/^/$as_me: WARNING: /" >&2
28998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29001 echo $ECHO_N "(cached) $ECHO_C" >&6
29003 eval "$as_ac_Header=\$ac_header_preproc"
29005 ac_res=`eval echo '${'$as_ac_Header'}'`
29006 { echo "$as_me:$LINENO: result: $ac_res" >&5
29007 echo "${ECHO_T}$ac_res" >&6; }
29010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29011 cat >>confdefs.h <<_ACEOF
29012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29022 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29029 echo $ECHO_N "(cached) $ECHO_C" >&6
29031 ac_res=`eval echo '${'$as_ac_Header'}'`
29032 { echo "$as_me:$LINENO: result: $ac_res" >&5
29033 echo "${ECHO_T}$ac_res" >&6; }
29035 # Is the header compilable?
29036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29044 $ac_includes_default
29045 #include <$ac_header>
29047 rm -f conftest.$ac_objext
29048 if { (ac_try="$ac_compile"
29049 case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054 (eval "$ac_compile") 2>conftest.er1
29056 grep -v '^ *+' conftest.er1 >conftest.err
29058 cat conftest.err >&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } &&
29061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29062 { (case "(($ac_try" in
29063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064 *) ac_try_echo=$ac_try;;
29066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067 (eval "$ac_try") 2>&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; } &&
29071 { ac_try='test -s conftest.$ac_objext'
29072 { (case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_try") 2>&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
29081 ac_header_compiler=yes
29083 echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29086 ac_header_compiler=no
29089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29091 echo "${ECHO_T}$ac_header_compiler" >&6; }
29093 # Is the header present?
29094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29096 cat >conftest.$ac_ext <<_ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h. */
29102 #include <$ac_header>
29104 if { (ac_try="$ac_cpp conftest.$ac_ext"
29105 case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29112 grep -v '^ *+' conftest.er1 >conftest.err
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } >/dev/null; then
29117 if test -s conftest.err; then
29118 ac_cpp_err=$ac_c_preproc_warn_flag
29119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29126 if test -z "$ac_cpp_err"; then
29127 ac_header_preproc=yes
29129 echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29132 ac_header_preproc=no
29135 rm -f conftest.err conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29137 echo "${ECHO_T}$ac_header_preproc" >&6; }
29139 # So? What about this header?
29140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29146 ac_header_preproc=yes
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29162 ## ----------------------------------- ##
29163 ## Report this to llvmbugs@cs.uiuc.edu ##
29164 ## ----------------------------------- ##
29166 ) | sed "s/^/$as_me: WARNING: /" >&2
29169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29174 eval "$as_ac_Header=\$ac_header_preproc"
29176 ac_res=`eval echo '${'$as_ac_Header'}'`
29177 { echo "$as_me:$LINENO: result: $ac_res" >&5
29178 echo "${ECHO_T}$ac_res" >&6; }
29181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29182 cat >>confdefs.h <<_ACEOF
29183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29190 if test "$ENABLE_THREADS" -eq 1 ; then
29191 if test "${ac_cv_header_pthread_h+set}" = set; then
29192 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29193 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29194 if test "${ac_cv_header_pthread_h+set}" = set; then
29195 echo $ECHO_N "(cached) $ECHO_C" >&6
29197 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29198 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29200 # Is the header compilable?
29201 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29202 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29203 cat >conftest.$ac_ext <<_ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h. */
29209 $ac_includes_default
29210 #include <pthread.h>
29212 rm -f conftest.$ac_objext
29213 if { (ac_try="$ac_compile"
29214 case "(($ac_try" in
29215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216 *) ac_try_echo=$ac_try;;
29218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219 (eval "$ac_compile") 2>conftest.er1
29221 grep -v '^ *+' conftest.er1 >conftest.err
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } &&
29226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29227 { (case "(($ac_try" in
29228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29229 *) ac_try_echo=$ac_try;;
29231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29232 (eval "$ac_try") 2>&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest.$ac_objext'
29237 { (case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_try") 2>&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; }; then
29246 ac_header_compiler=yes
29248 echo "$as_me: failed program was:" >&5
29249 sed 's/^/| /' conftest.$ac_ext >&5
29251 ac_header_compiler=no
29254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29256 echo "${ECHO_T}$ac_header_compiler" >&6; }
29258 # Is the header present?
29259 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29260 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29261 cat >conftest.$ac_ext <<_ACEOF
29264 cat confdefs.h >>conftest.$ac_ext
29265 cat >>conftest.$ac_ext <<_ACEOF
29266 /* end confdefs.h. */
29267 #include <pthread.h>
29269 if { (ac_try="$ac_cpp conftest.$ac_ext"
29270 case "(($ac_try" in
29271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29272 *) ac_try_echo=$ac_try;;
29274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29277 grep -v '^ *+' conftest.er1 >conftest.err
29279 cat conftest.err >&5
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } >/dev/null; then
29282 if test -s conftest.err; then
29283 ac_cpp_err=$ac_c_preproc_warn_flag
29284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29291 if test -z "$ac_cpp_err"; then
29292 ac_header_preproc=yes
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29297 ac_header_preproc=no
29300 rm -f conftest.err conftest.$ac_ext
29301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29302 echo "${ECHO_T}$ac_header_preproc" >&6; }
29304 # So? What about this header?
29305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29307 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29308 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29309 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29310 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29311 ac_header_preproc=yes
29314 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29315 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29317 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29318 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29319 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29320 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29321 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29322 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29323 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29324 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29325 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29327 ## ----------------------------------- ##
29328 ## Report this to llvmbugs@cs.uiuc.edu ##
29329 ## ----------------------------------- ##
29331 ) | sed "s/^/$as_me: WARNING: /" >&2
29334 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29335 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29336 if test "${ac_cv_header_pthread_h+set}" = set; then
29337 echo $ECHO_N "(cached) $ECHO_C" >&6
29339 ac_cv_header_pthread_h=$ac_header_preproc
29341 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29342 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29345 if test $ac_cv_header_pthread_h = yes; then
29361 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29362 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29363 if test "${ac_cv_huge_val_sanity+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29368 ac_cpp='$CXXCPP $CPPFLAGS'
29369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29374 if test "$cross_compiling" = yes; then
29375 ac_cv_huge_val_sanity=yes
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29387 double x = HUGE_VAL; return x != x;
29392 rm -f conftest$ac_exeext
29393 if { (ac_try="$ac_link"
29394 case "(($ac_try" in
29395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29396 *) ac_try_echo=$ac_try;;
29398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29399 (eval "$ac_link") 2>&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29403 { (case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_try") 2>&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
29412 ac_cv_huge_val_sanity=yes
29414 echo "$as_me: program exited with status $ac_status" >&5
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29418 ( exit $ac_status )
29419 ac_cv_huge_val_sanity=no
29421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29426 ac_cpp='$CPP $CPPFLAGS'
29427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29433 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29434 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29435 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29438 { echo "$as_me:$LINENO: checking for pid_t" >&5
29439 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29440 if test "${ac_cv_type_pid_t+set}" = set; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29443 cat >conftest.$ac_ext <<_ACEOF
29446 cat confdefs.h >>conftest.$ac_ext
29447 cat >>conftest.$ac_ext <<_ACEOF
29448 /* end confdefs.h. */
29449 $ac_includes_default
29450 typedef pid_t ac__type_new_;
29454 if ((ac__type_new_ *) 0)
29456 if (sizeof (ac__type_new_))
29462 rm -f conftest.$ac_objext
29463 if { (ac_try="$ac_compile"
29464 case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_compile") 2>conftest.er1
29471 grep -v '^ *+' conftest.er1 >conftest.err
29473 cat conftest.err >&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } &&
29476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; } &&
29486 { ac_try='test -s conftest.$ac_objext'
29487 { (case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492 (eval "$ac_try") 2>&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; }; then
29496 ac_cv_type_pid_t=yes
29498 echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29501 ac_cv_type_pid_t=no
29504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29506 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29507 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29508 if test $ac_cv_type_pid_t = yes; then
29512 cat >>confdefs.h <<_ACEOF
29518 { echo "$as_me:$LINENO: checking for size_t" >&5
29519 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29520 if test "${ac_cv_type_size_t+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29523 cat >conftest.$ac_ext <<_ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h. */
29529 $ac_includes_default
29530 typedef size_t ac__type_new_;
29534 if ((ac__type_new_ *) 0)
29536 if (sizeof (ac__type_new_))
29542 rm -f conftest.$ac_objext
29543 if { (ac_try="$ac_compile"
29544 case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_compile") 2>conftest.er1
29551 grep -v '^ *+' conftest.er1 >conftest.err
29553 cat conftest.err >&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
29556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest.$ac_objext'
29567 { (case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_try") 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; }; then
29576 ac_cv_type_size_t=yes
29578 echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29581 ac_cv_type_size_t=no
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29586 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29587 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29588 if test $ac_cv_type_size_t = yes; then
29592 cat >>confdefs.h <<_ACEOF
29593 #define size_t unsigned int
29598 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29599 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29600 if test "${ac_cv_type_signal+set}" = set; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29603 cat >conftest.$ac_ext <<_ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h. */
29609 #include <sys/types.h>
29610 #include <signal.h>
29615 return *(signal (0, 0)) (0) == 1;
29620 rm -f conftest.$ac_objext
29621 if { (ac_try="$ac_compile"
29622 case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_compile") 2>conftest.er1
29629 grep -v '^ *+' conftest.er1 >conftest.err
29631 cat conftest.err >&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
29634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635 { (case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try='test -s conftest.$ac_objext'
29645 { (case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
29654 ac_cv_type_signal=int
29656 echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29659 ac_cv_type_signal=void
29662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29665 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29667 cat >>confdefs.h <<_ACEOF
29668 #define RETSIGTYPE $ac_cv_type_signal
29672 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29673 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29674 if test "${ac_cv_struct_tm+set}" = set; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29677 cat >conftest.$ac_ext <<_ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h. */
29683 #include <sys/types.h>
29689 struct tm *tp; tp->tm_sec;
29694 rm -f conftest.$ac_objext
29695 if { (ac_try="$ac_compile"
29696 case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_compile") 2>conftest.er1
29703 grep -v '^ *+' conftest.er1 >conftest.err
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } &&
29708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; } &&
29718 { ac_try='test -s conftest.$ac_objext'
29719 { (case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_try") 2>&5
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
29728 ac_cv_struct_tm=time.h
29730 echo "$as_me: failed program was:" >&5
29731 sed 's/^/| /' conftest.$ac_ext >&5
29733 ac_cv_struct_tm=sys/time.h
29736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29738 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29739 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29740 if test $ac_cv_struct_tm = sys/time.h; then
29742 cat >>confdefs.h <<\_ACEOF
29743 #define TM_IN_SYS_TIME 1
29748 { echo "$as_me:$LINENO: checking for int64_t" >&5
29749 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29750 if test "${ac_cv_type_int64_t+set}" = set; then
29751 echo $ECHO_N "(cached) $ECHO_C" >&6
29753 cat >conftest.$ac_ext <<_ACEOF
29756 cat confdefs.h >>conftest.$ac_ext
29757 cat >>conftest.$ac_ext <<_ACEOF
29758 /* end confdefs.h. */
29759 $ac_includes_default
29760 typedef int64_t ac__type_new_;
29764 if ((ac__type_new_ *) 0)
29766 if (sizeof (ac__type_new_))
29772 rm -f conftest.$ac_objext
29773 if { (ac_try="$ac_compile"
29774 case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_compile") 2>conftest.er1
29781 grep -v '^ *+' conftest.er1 >conftest.err
29783 cat conftest.err >&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } &&
29786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29787 { (case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_try") 2>&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest.$ac_objext'
29797 { (case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_try") 2>&5
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; }; then
29806 ac_cv_type_int64_t=yes
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29811 ac_cv_type_int64_t=no
29814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29816 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29817 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29818 if test $ac_cv_type_int64_t = yes; then
29820 cat >>confdefs.h <<_ACEOF
29821 #define HAVE_INT64_T 1
29826 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29827 echo "$as_me: error: Type int64_t required but not found" >&2;}
29828 { (exit 1); exit 1; }; }
29831 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29832 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29833 if test "${ac_cv_type_uint64_t+set}" = set; then
29834 echo $ECHO_N "(cached) $ECHO_C" >&6
29836 cat >conftest.$ac_ext <<_ACEOF
29839 cat confdefs.h >>conftest.$ac_ext
29840 cat >>conftest.$ac_ext <<_ACEOF
29841 /* end confdefs.h. */
29842 $ac_includes_default
29843 typedef uint64_t ac__type_new_;
29847 if ((ac__type_new_ *) 0)
29849 if (sizeof (ac__type_new_))
29855 rm -f conftest.$ac_objext
29856 if { (ac_try="$ac_compile"
29857 case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_compile") 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
29869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29870 { (case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest.$ac_objext'
29880 { (case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
29889 ac_cv_type_uint64_t=yes
29891 echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29894 ac_cv_type_uint64_t=no
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29899 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29900 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29901 if test $ac_cv_type_uint64_t = yes; then
29903 cat >>confdefs.h <<_ACEOF
29904 #define HAVE_UINT64_T 1
29909 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29910 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29911 if test "${ac_cv_type_u_int64_t+set}" = set; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 cat >conftest.$ac_ext <<_ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h. */
29920 $ac_includes_default
29921 typedef u_int64_t ac__type_new_;
29925 if ((ac__type_new_ *) 0)
29927 if (sizeof (ac__type_new_))
29933 rm -f conftest.$ac_objext
29934 if { (ac_try="$ac_compile"
29935 case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_compile") 2>conftest.er1
29942 grep -v '^ *+' conftest.er1 >conftest.err
29944 cat conftest.err >&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); } &&
29947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29948 { (case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_try") 2>&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; } &&
29957 { ac_try='test -s conftest.$ac_objext'
29958 { (case "(($ac_try" in
29959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960 *) ac_try_echo=$ac_try;;
29962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963 (eval "$ac_try") 2>&5
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; }; then
29967 ac_cv_type_u_int64_t=yes
29969 echo "$as_me: failed program was:" >&5
29970 sed 's/^/| /' conftest.$ac_ext >&5
29972 ac_cv_type_u_int64_t=no
29975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29977 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29978 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29979 if test $ac_cv_type_u_int64_t = yes; then
29981 cat >>confdefs.h <<_ACEOF
29982 #define HAVE_U_INT64_T 1
29987 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29988 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29989 { (exit 1); exit 1; }; }
30003 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30011 cat >conftest.$ac_ext <<_ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h. */
30017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30019 #define $ac_func innocuous_$ac_func
30021 /* System header to define __stub macros and hopefully few prototypes,
30022 which can conflict with char $ac_func (); below.
30023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30024 <limits.h> exists even on freestanding compilers. */
30027 # include <limits.h>
30029 # include <assert.h>
30034 /* Override any GCC internal prototype to avoid an error.
30035 Use char because int might match the return type of a GCC
30036 builtin and then its argument prototype would still apply. */
30041 /* The GNU C library defines this for functions which it implements
30042 to always fail with ENOSYS. Some functions are actually named
30043 something starting with __ and the normal name is an alias. */
30044 #if defined __stub_$ac_func || defined __stub___$ac_func
30051 return $ac_func ();
30056 rm -f conftest.$ac_objext conftest$ac_exeext
30057 if { (ac_try="$ac_link"
30058 case "(($ac_try" in
30059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060 *) ac_try_echo=$ac_try;;
30062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063 (eval "$ac_link") 2>conftest.er1
30065 grep -v '^ *+' conftest.er1 >conftest.err
30067 cat conftest.err >&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); } &&
30070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30071 { (case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_try") 2>&5
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; } &&
30080 { ac_try='test -s conftest$ac_exeext'
30081 { (case "(($ac_try" in
30082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30083 *) ac_try_echo=$ac_try;;
30085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30086 (eval "$ac_try") 2>&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); }; }; then
30090 eval "$as_ac_var=yes"
30092 echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30095 eval "$as_ac_var=no"
30098 rm -f core conftest.err conftest.$ac_objext \
30099 conftest$ac_exeext conftest.$ac_ext
30101 ac_res=`eval echo '${'$as_ac_var'}'`
30102 { echo "$as_me:$LINENO: result: $ac_res" >&5
30103 echo "${ECHO_T}$ac_res" >&6; }
30104 if test `eval echo '${'$as_ac_var'}'` = yes; then
30105 cat >>confdefs.h <<_ACEOF
30106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30117 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30123 echo $ECHO_N "(cached) $ECHO_C" >&6
30125 cat >conftest.$ac_ext <<_ACEOF
30128 cat confdefs.h >>conftest.$ac_ext
30129 cat >>conftest.$ac_ext <<_ACEOF
30130 /* end confdefs.h. */
30131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30133 #define $ac_func innocuous_$ac_func
30135 /* System header to define __stub macros and hopefully few prototypes,
30136 which can conflict with char $ac_func (); below.
30137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30138 <limits.h> exists even on freestanding compilers. */
30141 # include <limits.h>
30143 # include <assert.h>
30148 /* Override any GCC internal prototype to avoid an error.
30149 Use char because int might match the return type of a GCC
30150 builtin and then its argument prototype would still apply. */
30155 /* The GNU C library defines this for functions which it implements
30156 to always fail with ENOSYS. Some functions are actually named
30157 something starting with __ and the normal name is an alias. */
30158 #if defined __stub_$ac_func || defined __stub___$ac_func
30165 return $ac_func ();
30170 rm -f conftest.$ac_objext conftest$ac_exeext
30171 if { (ac_try="$ac_link"
30172 case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_link") 2>conftest.er1
30179 grep -v '^ *+' conftest.er1 >conftest.err
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } &&
30184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185 { (case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_try") 2>&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest$ac_exeext'
30195 { (case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_try") 2>&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; }; then
30204 eval "$as_ac_var=yes"
30206 echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30209 eval "$as_ac_var=no"
30212 rm -f core conftest.err conftest.$ac_objext \
30213 conftest$ac_exeext conftest.$ac_ext
30215 ac_res=`eval echo '${'$as_ac_var'}'`
30216 { echo "$as_me:$LINENO: result: $ac_res" >&5
30217 echo "${ECHO_T}$ac_res" >&6; }
30218 if test `eval echo '${'$as_ac_var'}'` = yes; then
30219 cat >>confdefs.h <<_ACEOF
30220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30229 for ac_func in isatty mkdtemp mkstemp
30231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30235 echo $ECHO_N "(cached) $ECHO_C" >&6
30237 cat >conftest.$ac_ext <<_ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30245 #define $ac_func innocuous_$ac_func
30247 /* System header to define __stub macros and hopefully few prototypes,
30248 which can conflict with char $ac_func (); below.
30249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30250 <limits.h> exists even on freestanding compilers. */
30253 # include <limits.h>
30255 # include <assert.h>
30260 /* Override any GCC internal prototype to avoid an error.
30261 Use char because int might match the return type of a GCC
30262 builtin and then its argument prototype would still apply. */
30267 /* The GNU C library defines this for functions which it implements
30268 to always fail with ENOSYS. Some functions are actually named
30269 something starting with __ and the normal name is an alias. */
30270 #if defined __stub_$ac_func || defined __stub___$ac_func
30277 return $ac_func ();
30282 rm -f conftest.$ac_objext conftest$ac_exeext
30283 if { (ac_try="$ac_link"
30284 case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_link") 2>conftest.er1
30291 grep -v '^ *+' conftest.er1 >conftest.err
30293 cat conftest.err >&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); } &&
30296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30297 { (case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_try") 2>&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; } &&
30306 { ac_try='test -s conftest$ac_exeext'
30307 { (case "(($ac_try" in
30308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309 *) ac_try_echo=$ac_try;;
30311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30312 (eval "$ac_try") 2>&5
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
30316 eval "$as_ac_var=yes"
30318 echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30321 eval "$as_ac_var=no"
30324 rm -f core conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
30327 ac_res=`eval echo '${'$as_ac_var'}'`
30328 { echo "$as_me:$LINENO: result: $ac_res" >&5
30329 echo "${ECHO_T}$ac_res" >&6; }
30330 if test `eval echo '${'$as_ac_var'}'` = yes; then
30331 cat >>confdefs.h <<_ACEOF
30332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30345 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30351 echo $ECHO_N "(cached) $ECHO_C" >&6
30353 cat >conftest.$ac_ext <<_ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h. */
30359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30361 #define $ac_func innocuous_$ac_func
30363 /* System header to define __stub macros and hopefully few prototypes,
30364 which can conflict with char $ac_func (); below.
30365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30366 <limits.h> exists even on freestanding compilers. */
30369 # include <limits.h>
30371 # include <assert.h>
30376 /* Override any GCC internal prototype to avoid an error.
30377 Use char because int might match the return type of a GCC
30378 builtin and then its argument prototype would still apply. */
30383 /* The GNU C library defines this for functions which it implements
30384 to always fail with ENOSYS. Some functions are actually named
30385 something starting with __ and the normal name is an alias. */
30386 #if defined __stub_$ac_func || defined __stub___$ac_func
30393 return $ac_func ();
30398 rm -f conftest.$ac_objext conftest$ac_exeext
30399 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30407 grep -v '^ *+' conftest.er1 >conftest.err
30409 cat conftest.err >&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); } &&
30412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30413 { (case "(($ac_try" in
30414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415 *) ac_try_echo=$ac_try;;
30417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418 (eval "$ac_try") 2>&5
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); }; } &&
30422 { ac_try='test -s conftest$ac_exeext'
30423 { (case "(($ac_try" in
30424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425 *) ac_try_echo=$ac_try;;
30427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30428 (eval "$ac_try") 2>&5
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; }; then
30432 eval "$as_ac_var=yes"
30434 echo "$as_me: failed program was:" >&5
30435 sed 's/^/| /' conftest.$ac_ext >&5
30437 eval "$as_ac_var=no"
30440 rm -f core conftest.err conftest.$ac_objext \
30441 conftest$ac_exeext conftest.$ac_ext
30443 ac_res=`eval echo '${'$as_ac_var'}'`
30444 { echo "$as_me:$LINENO: result: $ac_res" >&5
30445 echo "${ECHO_T}$ac_res" >&6; }
30446 if test `eval echo '${'$as_ac_var'}'` = yes; then
30447 cat >>confdefs.h <<_ACEOF
30448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30458 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30464 echo $ECHO_N "(cached) $ECHO_C" >&6
30466 cat >conftest.$ac_ext <<_ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h. */
30472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30474 #define $ac_func innocuous_$ac_func
30476 /* System header to define __stub macros and hopefully few prototypes,
30477 which can conflict with char $ac_func (); below.
30478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30479 <limits.h> exists even on freestanding compilers. */
30482 # include <limits.h>
30484 # include <assert.h>
30489 /* Override any GCC internal prototype to avoid an error.
30490 Use char because int might match the return type of a GCC
30491 builtin and then its argument prototype would still apply. */
30496 /* The GNU C library defines this for functions which it implements
30497 to always fail with ENOSYS. Some functions are actually named
30498 something starting with __ and the normal name is an alias. */
30499 #if defined __stub_$ac_func || defined __stub___$ac_func
30506 return $ac_func ();
30511 rm -f conftest.$ac_objext conftest$ac_exeext
30512 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30520 grep -v '^ *+' conftest.er1 >conftest.err
30522 cat conftest.err >&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); } &&
30525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30526 { (case "(($ac_try" in
30527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30528 *) ac_try_echo=$ac_try;;
30530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30531 (eval "$ac_try") 2>&5
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; } &&
30535 { ac_try='test -s conftest$ac_exeext'
30536 { (case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_try") 2>&5
30543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544 (exit $ac_status); }; }; then
30545 eval "$as_ac_var=yes"
30547 echo "$as_me: failed program was:" >&5
30548 sed 's/^/| /' conftest.$ac_ext >&5
30550 eval "$as_ac_var=no"
30553 rm -f core conftest.err conftest.$ac_objext \
30554 conftest$ac_exeext conftest.$ac_ext
30556 ac_res=`eval echo '${'$as_ac_var'}'`
30557 { echo "$as_me:$LINENO: result: $ac_res" >&5
30558 echo "${ECHO_T}$ac_res" >&6; }
30559 if test `eval echo '${'$as_ac_var'}'` = yes; then
30560 cat >>confdefs.h <<_ACEOF
30561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30571 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30577 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 cat >conftest.$ac_ext <<_ACEOF
30582 cat confdefs.h >>conftest.$ac_ext
30583 cat >>conftest.$ac_ext <<_ACEOF
30584 /* end confdefs.h. */
30585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30587 #define $ac_func innocuous_$ac_func
30589 /* System header to define __stub macros and hopefully few prototypes,
30590 which can conflict with char $ac_func (); below.
30591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30592 <limits.h> exists even on freestanding compilers. */
30595 # include <limits.h>
30597 # include <assert.h>
30602 /* Override any GCC internal prototype to avoid an error.
30603 Use char because int might match the return type of a GCC
30604 builtin and then its argument prototype would still apply. */
30609 /* The GNU C library defines this for functions which it implements
30610 to always fail with ENOSYS. Some functions are actually named
30611 something starting with __ and the normal name is an alias. */
30612 #if defined __stub_$ac_func || defined __stub___$ac_func
30619 return $ac_func ();
30624 rm -f conftest.$ac_objext conftest$ac_exeext
30625 if { (ac_try="$ac_link"
30626 case "(($ac_try" in
30627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628 *) ac_try_echo=$ac_try;;
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631 (eval "$ac_link") 2>conftest.er1
30633 grep -v '^ *+' conftest.er1 >conftest.err
30635 cat conftest.err >&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } &&
30638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30639 { (case "(($ac_try" in
30640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30641 *) ac_try_echo=$ac_try;;
30643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30644 (eval "$ac_try") 2>&5
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); }; } &&
30648 { ac_try='test -s conftest$ac_exeext'
30649 { (case "(($ac_try" in
30650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651 *) ac_try_echo=$ac_try;;
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654 (eval "$ac_try") 2>&5
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; }; then
30658 eval "$as_ac_var=yes"
30660 echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30663 eval "$as_ac_var=no"
30666 rm -f core conftest.err conftest.$ac_objext \
30667 conftest$ac_exeext conftest.$ac_ext
30669 ac_res=`eval echo '${'$as_ac_var'}'`
30670 { echo "$as_me:$LINENO: result: $ac_res" >&5
30671 echo "${ECHO_T}$ac_res" >&6; }
30672 if test `eval echo '${'$as_ac_var'}'` = yes; then
30673 cat >>confdefs.h <<_ACEOF
30674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30680 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30681 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30682 if test "${llvm_cv_c_printf_a+set}" = set; then
30683 echo $ECHO_N "(cached) $ECHO_C" >&6
30686 ac_cpp='$CPP $CPPFLAGS'
30687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30691 if test "$cross_compiling" = yes; then
30692 llvmac_cv_c_printf_a=no
30694 cat >conftest.$ac_ext <<_ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h. */
30703 #include <stdlib.h>
30709 volatile double A, B;
30713 sprintf(Buffer, "%a", A);
30717 if (A != 0x1.999999999999ap-4)
30724 rm -f 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>&5
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30735 { (case "(($ac_try" in
30736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737 *) ac_try_echo=$ac_try;;
30739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740 (eval "$ac_try") 2>&5
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
30744 llvm_cv_c_printf_a=yes
30746 echo "$as_me: program exited with status $ac_status" >&5
30747 echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30750 ( exit $ac_status )
30751 llvmac_cv_c_printf_a=no
30753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30758 ac_cpp='$CPP $CPPFLAGS'
30759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30764 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30765 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30766 if test "$llvm_cv_c_printf_a" = "yes"; then
30768 cat >>confdefs.h <<\_ACEOF
30769 #define HAVE_PRINTF_A 1
30774 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30775 # for constant arguments. Useless!
30776 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30777 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30778 if test "${ac_cv_working_alloca_h+set}" = set; then
30779 echo $ECHO_N "(cached) $ECHO_C" >&6
30781 cat >conftest.$ac_ext <<_ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h. */
30787 #include <alloca.h>
30791 char *p = (char *) alloca (2 * sizeof (int));
30797 rm -f conftest.$ac_objext conftest$ac_exeext
30798 if { (ac_try="$ac_link"
30799 case "(($ac_try" in
30800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30801 *) ac_try_echo=$ac_try;;
30803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30804 (eval "$ac_link") 2>conftest.er1
30806 grep -v '^ *+' conftest.er1 >conftest.err
30808 cat conftest.err >&5
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } &&
30811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30812 { (case "(($ac_try" in
30813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814 *) ac_try_echo=$ac_try;;
30816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817 (eval "$ac_try") 2>&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; } &&
30821 { ac_try='test -s conftest$ac_exeext'
30822 { (case "(($ac_try" in
30823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30824 *) ac_try_echo=$ac_try;;
30826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30827 (eval "$ac_try") 2>&5
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30831 ac_cv_working_alloca_h=yes
30833 echo "$as_me: failed program was:" >&5
30834 sed 's/^/| /' conftest.$ac_ext >&5
30836 ac_cv_working_alloca_h=no
30839 rm -f core conftest.err conftest.$ac_objext \
30840 conftest$ac_exeext conftest.$ac_ext
30842 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30843 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30844 if test $ac_cv_working_alloca_h = yes; then
30846 cat >>confdefs.h <<\_ACEOF
30847 #define HAVE_ALLOCA_H 1
30852 { echo "$as_me:$LINENO: checking for alloca" >&5
30853 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30854 if test "${ac_cv_func_alloca_works+set}" = set; then
30855 echo $ECHO_N "(cached) $ECHO_C" >&6
30857 cat >conftest.$ac_ext <<_ACEOF
30860 cat confdefs.h >>conftest.$ac_ext
30861 cat >>conftest.$ac_ext <<_ACEOF
30862 /* end confdefs.h. */
30864 # define alloca __builtin_alloca
30867 # include <malloc.h>
30868 # define alloca _alloca
30871 # include <alloca.h>
30876 # ifndef alloca /* predefined by HP cc +Olibcalls */
30887 char *p = (char *) alloca (1);
30893 rm -f conftest.$ac_objext conftest$ac_exeext
30894 if { (ac_try="$ac_link"
30895 case "(($ac_try" in
30896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897 *) ac_try_echo=$ac_try;;
30899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900 (eval "$ac_link") 2>conftest.er1
30902 grep -v '^ *+' conftest.er1 >conftest.err
30904 cat conftest.err >&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); } &&
30907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30908 { (case "(($ac_try" in
30909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910 *) ac_try_echo=$ac_try;;
30912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30913 (eval "$ac_try") 2>&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; } &&
30917 { ac_try='test -s conftest$ac_exeext'
30918 { (case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_try") 2>&5
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); }; }; then
30927 ac_cv_func_alloca_works=yes
30929 echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30932 ac_cv_func_alloca_works=no
30935 rm -f core conftest.err conftest.$ac_objext \
30936 conftest$ac_exeext conftest.$ac_ext
30938 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30939 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30941 if test $ac_cv_func_alloca_works = yes; then
30943 cat >>confdefs.h <<\_ACEOF
30944 #define HAVE_ALLOCA 1
30948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30949 # that cause trouble. Some versions do not even contain alloca or
30950 # contain a buggy version. If you still want to use their alloca,
30951 # use ar to extract alloca.o from them instead of compiling alloca.c.
30953 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30955 cat >>confdefs.h <<\_ACEOF
30960 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30961 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30962 if test "${ac_cv_os_cray+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30965 cat >conftest.$ac_ext <<_ACEOF
30968 cat confdefs.h >>conftest.$ac_ext
30969 cat >>conftest.$ac_ext <<_ACEOF
30970 /* end confdefs.h. */
30971 #if defined CRAY && ! defined CRAY2
30978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30979 $EGREP "webecray" >/dev/null 2>&1; then
30987 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30988 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30989 if test $ac_cv_os_cray = yes; then
30990 for ac_func in _getb67 GETB67 getb67; do
30991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30997 cat >conftest.$ac_ext <<_ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31005 #define $ac_func innocuous_$ac_func
31007 /* System header to define __stub macros and hopefully few prototypes,
31008 which can conflict with char $ac_func (); below.
31009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31010 <limits.h> exists even on freestanding compilers. */
31013 # include <limits.h>
31015 # include <assert.h>
31020 /* Override any GCC internal prototype to avoid an error.
31021 Use char because int might match the return type of a GCC
31022 builtin and then its argument prototype would still apply. */
31027 /* The GNU C library defines this for functions which it implements
31028 to always fail with ENOSYS. Some functions are actually named
31029 something starting with __ and the normal name is an alias. */
31030 #if defined __stub_$ac_func || defined __stub___$ac_func
31037 return $ac_func ();
31042 rm -f conftest.$ac_objext conftest$ac_exeext
31043 if { (ac_try="$ac_link"
31044 case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_link") 2>conftest.er1
31051 grep -v '^ *+' conftest.er1 >conftest.err
31053 cat conftest.err >&5
31054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055 (exit $ac_status); } &&
31056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31057 { (case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_try") 2>&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; } &&
31066 { ac_try='test -s conftest$ac_exeext'
31067 { (case "(($ac_try" in
31068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31069 *) ac_try_echo=$ac_try;;
31071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31072 (eval "$ac_try") 2>&5
31074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075 (exit $ac_status); }; }; then
31076 eval "$as_ac_var=yes"
31078 echo "$as_me: failed program was:" >&5
31079 sed 's/^/| /' conftest.$ac_ext >&5
31081 eval "$as_ac_var=no"
31084 rm -f core conftest.err conftest.$ac_objext \
31085 conftest$ac_exeext conftest.$ac_ext
31087 ac_res=`eval echo '${'$as_ac_var'}'`
31088 { echo "$as_me:$LINENO: result: $ac_res" >&5
31089 echo "${ECHO_T}$ac_res" >&6; }
31090 if test `eval echo '${'$as_ac_var'}'` = yes; then
31092 cat >>confdefs.h <<_ACEOF
31093 #define CRAY_STACKSEG_END $ac_func
31102 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31103 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31104 if test "${ac_cv_c_stack_direction+set}" = set; then
31105 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 if test "$cross_compiling" = yes; then
31108 ac_cv_c_stack_direction=0
31110 cat >conftest.$ac_ext <<_ACEOF
31113 cat confdefs.h >>conftest.$ac_ext
31114 cat >>conftest.$ac_ext <<_ACEOF
31115 /* end confdefs.h. */
31116 $ac_includes_default
31118 find_stack_direction ()
31120 static char *addr = 0;
31125 return find_stack_direction ();
31128 return (&dummy > addr) ? 1 : -1;
31134 return find_stack_direction () < 0;
31137 rm -f conftest$ac_exeext
31138 if { (ac_try="$ac_link"
31139 case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_link") 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31148 { (case "(($ac_try" in
31149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150 *) ac_try_echo=$ac_try;;
31152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31153 (eval "$ac_try") 2>&5
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
31157 ac_cv_c_stack_direction=1
31159 echo "$as_me: program exited with status $ac_status" >&5
31160 echo "$as_me: failed program was:" >&5
31161 sed 's/^/| /' conftest.$ac_ext >&5
31163 ( exit $ac_status )
31164 ac_cv_c_stack_direction=-1
31166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31171 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31172 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31174 cat >>confdefs.h <<_ACEOF
31175 #define STACK_DIRECTION $ac_cv_c_stack_direction
31182 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31183 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31184 if test "${ac_cv_func_rand48+set}" = set; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31188 ac_cpp='$CXXCPP $CPPFLAGS'
31189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31193 cat >conftest.$ac_ext <<_ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h. */
31199 #include <stdlib.h>
31203 srand48(0);lrand48();drand48();
31208 rm -f conftest.$ac_objext
31209 if { (ac_try="$ac_compile"
31210 case "(($ac_try" in
31211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212 *) ac_try_echo=$ac_try;;
31214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215 (eval "$ac_compile") 2>conftest.er1
31217 grep -v '^ *+' conftest.er1 >conftest.err
31219 cat conftest.err >&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); } &&
31222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; } &&
31232 { ac_try='test -s conftest.$ac_objext'
31233 { (case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_try") 2>&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
31242 ac_cv_func_rand48=yes
31244 echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31247 ac_cv_func_rand48=no
31250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31252 ac_cpp='$CPP $CPPFLAGS'
31253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31258 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31259 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31261 if test "$ac_cv_func_rand48" = "yes" ; then
31263 cat >>confdefs.h <<\_ACEOF
31264 #define HAVE_RAND48 1
31270 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31271 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31272 if test "${ac_cv_cxx_namespaces+set}" = set; then
31273 echo $ECHO_N "(cached) $ECHO_C" >&6
31276 ac_cpp='$CXXCPP $CPPFLAGS'
31277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31281 cat >conftest.$ac_ext <<_ACEOF
31284 cat confdefs.h >>conftest.$ac_ext
31285 cat >>conftest.$ac_ext <<_ACEOF
31286 /* end confdefs.h. */
31287 namespace Outer { namespace Inner { int i = 0; }}
31291 using namespace Outer::Inner; return i;
31296 rm -f conftest.$ac_objext
31297 if { (ac_try="$ac_compile"
31298 case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_compile") 2>conftest.er1
31305 grep -v '^ *+' conftest.er1 >conftest.err
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
31310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31311 { (case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_try") 2>&5
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest.$ac_objext'
31321 { (case "(($ac_try" in
31322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323 *) ac_try_echo=$ac_try;;
31325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326 (eval "$ac_try") 2>&5
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; }; then
31330 ac_cv_cxx_namespaces=yes
31332 echo "$as_me: failed program was:" >&5
31333 sed 's/^/| /' conftest.$ac_ext >&5
31335 ac_cv_cxx_namespaces=no
31338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340 ac_cpp='$CPP $CPPFLAGS'
31341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31347 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31348 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31349 if test "$ac_cv_cxx_namespaces" = yes; then
31351 cat >>confdefs.h <<\_ACEOF
31352 #define HAVE_NAMESPACES
31357 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31358 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31359 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
31364 ac_cpp='$CXXCPP $CPPFLAGS'
31365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31369 cat >conftest.$ac_ext <<_ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h. */
31375 #include <ext/hash_map>
31376 #ifdef HAVE_NAMESPACES
31377 using namespace std;
31382 hash_map<int, int> t;
31387 rm -f conftest.$ac_objext
31388 if { (ac_try="$ac_compile"
31389 case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_compile") 2>conftest.er1
31396 grep -v '^ *+' conftest.er1 >conftest.err
31398 cat conftest.err >&5
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); } &&
31401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31402 { (case "(($ac_try" in
31403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31404 *) ac_try_echo=$ac_try;;
31406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31407 (eval "$ac_try") 2>&5
31409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); }; } &&
31411 { ac_try='test -s conftest.$ac_objext'
31412 { (case "(($ac_try" in
31413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414 *) ac_try_echo=$ac_try;;
31416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417 (eval "$ac_try") 2>&5
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; }; then
31421 ac_cv_cxx_have_std_ext_hash_map=yes
31423 echo "$as_me: failed program was:" >&5
31424 sed 's/^/| /' conftest.$ac_ext >&5
31426 ac_cv_cxx_have_std_ext_hash_map=no
31429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31431 ac_cpp='$CPP $CPPFLAGS'
31432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31437 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31438 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31439 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31442 cat >>confdefs.h <<\_ACEOF
31443 #define HAVE_STD_EXT_HASH_MAP 1
31448 cat >>confdefs.h <<\_ACEOF
31449 #define HAVE_STD_EXT_HASH_MAP 0
31454 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31455 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31456 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31461 ac_cpp='$CXXCPP $CPPFLAGS'
31462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31466 cat >conftest.$ac_ext <<_ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h. */
31472 #include <ext/hash_map>
31473 #ifdef HAVE_NAMESPACES
31474 using namespace __gnu_cxx;
31479 hash_map<int,int> t;
31484 rm -f conftest.$ac_objext
31485 if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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 ac_cv_cxx_have_gnu_ext_hash_map=yes
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31523 ac_cv_cxx_have_gnu_ext_hash_map=no
31526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31528 ac_cpp='$CPP $CPPFLAGS'
31529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31534 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31535 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31536 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31539 cat >>confdefs.h <<\_ACEOF
31540 #define HAVE_GNU_EXT_HASH_MAP 1
31545 cat >>confdefs.h <<\_ACEOF
31546 #define HAVE_GNU_EXT_HASH_MAP 0
31551 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31552 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31553 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31554 echo $ECHO_N "(cached) $ECHO_C" >&6
31558 ac_cpp='$CXXCPP $CPPFLAGS'
31559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31563 cat >conftest.$ac_ext <<_ACEOF
31566 cat confdefs.h >>conftest.$ac_ext
31567 cat >>conftest.$ac_ext <<_ACEOF
31568 /* end confdefs.h. */
31569 #include <hash_map>
31573 hash_map<int,int> t;
31578 rm -f conftest.$ac_objext
31579 if { (ac_try="$ac_compile"
31580 case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_compile") 2>conftest.er1
31587 grep -v '^ *+' conftest.er1 >conftest.err
31589 cat conftest.err >&5
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); } &&
31592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31593 { (case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_try") 2>&5
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; } &&
31602 { ac_try='test -s conftest.$ac_objext'
31603 { (case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; }; then
31612 ac_cv_cxx_have_global_hash_map=yes
31614 echo "$as_me: failed program was:" >&5
31615 sed 's/^/| /' conftest.$ac_ext >&5
31617 ac_cv_cxx_have_global_hash_map=no
31620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31622 ac_cpp='$CPP $CPPFLAGS'
31623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31628 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31629 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31630 if test "$ac_cv_cxx_have_global_hash_map" = yes
31633 cat >>confdefs.h <<\_ACEOF
31634 #define HAVE_GLOBAL_HASH_MAP 1
31639 cat >>confdefs.h <<\_ACEOF
31640 #define HAVE_GLOBAL_HASH_MAP 0
31645 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31646 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31647 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31648 echo $ECHO_N "(cached) $ECHO_C" >&6
31652 ac_cpp='$CXXCPP $CPPFLAGS'
31653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31657 cat >conftest.$ac_ext <<_ACEOF
31660 cat confdefs.h >>conftest.$ac_ext
31661 cat >>conftest.$ac_ext <<_ACEOF
31662 /* end confdefs.h. */
31663 #include <ext/hash_set>
31664 #ifdef HAVE_NAMESPACES
31665 using namespace std;
31675 rm -f conftest.$ac_objext
31676 if { (ac_try="$ac_compile"
31677 case "(($ac_try" in
31678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679 *) ac_try_echo=$ac_try;;
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682 (eval "$ac_compile") 2>conftest.er1
31684 grep -v '^ *+' conftest.er1 >conftest.err
31686 cat conftest.err >&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } &&
31689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest.$ac_objext'
31700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; }; then
31709 ac_cv_cxx_have_std_ext_hash_set=yes
31711 echo "$as_me: failed program was:" >&5
31712 sed 's/^/| /' conftest.$ac_ext >&5
31714 ac_cv_cxx_have_std_ext_hash_set=no
31717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31719 ac_cpp='$CPP $CPPFLAGS'
31720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31725 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31726 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31727 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31730 cat >>confdefs.h <<\_ACEOF
31731 #define HAVE_STD_EXT_HASH_SET 1
31736 cat >>confdefs.h <<\_ACEOF
31737 #define HAVE_STD_EXT_HASH_SET 0
31742 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31743 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31744 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31745 echo $ECHO_N "(cached) $ECHO_C" >&6
31749 ac_cpp='$CXXCPP $CPPFLAGS'
31750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31754 cat >conftest.$ac_ext <<_ACEOF
31757 cat confdefs.h >>conftest.$ac_ext
31758 cat >>conftest.$ac_ext <<_ACEOF
31759 /* end confdefs.h. */
31760 #include <ext/hash_set>
31761 #ifdef HAVE_NAMESPACES
31762 using namespace __gnu_cxx;
31772 rm -f conftest.$ac_objext
31773 if { (ac_try="$ac_compile"
31774 case "(($ac_try" in
31775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31776 *) ac_try_echo=$ac_try;;
31778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31779 (eval "$ac_compile") 2>conftest.er1
31781 grep -v '^ *+' conftest.er1 >conftest.err
31783 cat conftest.err >&5
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); } &&
31786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31787 { (case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_try") 2>&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; } &&
31796 { ac_try='test -s conftest.$ac_objext'
31797 { (case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_try") 2>&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; }; then
31806 ac_cv_cxx_have_gnu_ext_hash_set=yes
31808 echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31811 ac_cv_cxx_have_gnu_ext_hash_set=no
31814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31816 ac_cpp='$CPP $CPPFLAGS'
31817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31822 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31823 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31824 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31827 cat >>confdefs.h <<\_ACEOF
31828 #define HAVE_GNU_EXT_HASH_SET 1
31833 cat >>confdefs.h <<\_ACEOF
31834 #define HAVE_GNU_EXT_HASH_SET 0
31839 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31840 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31841 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31846 ac_cpp='$CXXCPP $CPPFLAGS'
31847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31851 cat >conftest.$ac_ext <<_ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h. */
31857 #include <hash_set>
31861 hash_set<int> t; return 0;
31866 rm -f conftest.$ac_objext
31867 if { (ac_try="$ac_compile"
31868 case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_compile") 2>conftest.er1
31875 grep -v '^ *+' conftest.er1 >conftest.err
31877 cat conftest.err >&5
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); } &&
31880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31881 { (case "(($ac_try" in
31882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883 *) ac_try_echo=$ac_try;;
31885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886 (eval "$ac_try") 2>&5
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; } &&
31890 { ac_try='test -s conftest.$ac_objext'
31891 { (case "(($ac_try" in
31892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893 *) ac_try_echo=$ac_try;;
31895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896 (eval "$ac_try") 2>&5
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }; }; then
31900 ac_cv_cxx_have_global_hash_set=yes
31902 echo "$as_me: failed program was:" >&5
31903 sed 's/^/| /' conftest.$ac_ext >&5
31905 ac_cv_cxx_have_global_hash_set=no
31908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31910 ac_cpp='$CPP $CPPFLAGS'
31911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31916 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31917 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31918 if test "$ac_cv_cxx_have_global_hash_set" = yes
31921 cat >>confdefs.h <<\_ACEOF
31922 #define HAVE_GLOBAL_HASH_SET 1
31927 cat >>confdefs.h <<\_ACEOF
31928 #define HAVE_GLOBAL_HASH_SET 0
31933 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31934 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31935 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31940 ac_cpp='$CXXCPP $CPPFLAGS'
31941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31945 cat >conftest.$ac_ext <<_ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h. */
31951 #include <iterator>
31952 #ifdef HAVE_NAMESPACES
31953 using namespace std;
31958 iterator<int,int,int> t; return 0;
31963 rm -f conftest.$ac_objext
31964 if { (ac_try="$ac_compile"
31965 case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_compile") 2>conftest.er1
31972 grep -v '^ *+' conftest.er1 >conftest.err
31974 cat conftest.err >&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } &&
31977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31978 { (case "(($ac_try" in
31979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980 *) ac_try_echo=$ac_try;;
31982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983 (eval "$ac_try") 2>&5
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); }; } &&
31987 { ac_try='test -s conftest.$ac_objext'
31988 { (case "(($ac_try" in
31989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31990 *) ac_try_echo=$ac_try;;
31992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31993 (eval "$ac_try") 2>&5
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); }; }; then
31997 ac_cv_cxx_have_std_iterator=yes
31999 echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32002 ac_cv_cxx_have_std_iterator=no
32005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32007 ac_cpp='$CPP $CPPFLAGS'
32008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32014 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32015 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32016 if test "$ac_cv_cxx_have_std_iterator" = yes
32019 cat >>confdefs.h <<\_ACEOF
32020 #define HAVE_STD_ITERATOR 1
32025 cat >>confdefs.h <<\_ACEOF
32026 #define HAVE_STD_ITERATOR 0
32031 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32032 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32033 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32034 echo $ECHO_N "(cached) $ECHO_C" >&6
32038 ac_cpp='$CXXCPP $CPPFLAGS'
32039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 #include <iterator>
32050 #ifdef HAVE_NAMESPACES
32051 using namespace std;
32056 bidirectional_iterator<int,int> t; return 0;
32061 rm -f conftest.$ac_objext
32062 if { (ac_try="$ac_compile"
32063 case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_compile") 2>conftest.er1
32070 grep -v '^ *+' conftest.er1 >conftest.err
32072 cat conftest.err >&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); } &&
32075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32076 { (case "(($ac_try" in
32077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078 *) ac_try_echo=$ac_try;;
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_try") 2>&5
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; } &&
32085 { ac_try='test -s conftest.$ac_objext'
32086 { (case "(($ac_try" in
32087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088 *) ac_try_echo=$ac_try;;
32090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091 (eval "$ac_try") 2>&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); }; }; then
32095 ac_cv_cxx_have_bi_iterator=yes
32097 echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32100 ac_cv_cxx_have_bi_iterator=no
32103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 ac_cpp='$CPP $CPPFLAGS'
32106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32112 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32113 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32114 if test "$ac_cv_cxx_have_bi_iterator" = yes
32117 cat >>confdefs.h <<\_ACEOF
32118 #define HAVE_BI_ITERATOR 1
32123 cat >>confdefs.h <<\_ACEOF
32124 #define HAVE_BI_ITERATOR 0
32129 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32130 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32131 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32136 ac_cpp='$CXXCPP $CPPFLAGS'
32137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32141 cat >conftest.$ac_ext <<_ACEOF
32144 cat confdefs.h >>conftest.$ac_ext
32145 cat >>conftest.$ac_ext <<_ACEOF
32146 /* end confdefs.h. */
32147 #include <iterator>
32148 #ifdef HAVE_NAMESPACES
32149 using namespace std;
32154 forward_iterator<int,int> t; return 0;
32159 rm -f conftest.$ac_objext
32160 if { (ac_try="$ac_compile"
32161 case "(($ac_try" in
32162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163 *) ac_try_echo=$ac_try;;
32165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166 (eval "$ac_compile") 2>conftest.er1
32168 grep -v '^ *+' conftest.er1 >conftest.err
32170 cat conftest.err >&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } &&
32173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32174 { (case "(($ac_try" in
32175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176 *) ac_try_echo=$ac_try;;
32178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179 (eval "$ac_try") 2>&5
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; } &&
32183 { ac_try='test -s conftest.$ac_objext'
32184 { (case "(($ac_try" in
32185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_try") 2>&5
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; }; then
32193 ac_cv_cxx_have_fwd_iterator=yes
32195 echo "$as_me: failed program was:" >&5
32196 sed 's/^/| /' conftest.$ac_ext >&5
32198 ac_cv_cxx_have_fwd_iterator=no
32201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32203 ac_cpp='$CPP $CPPFLAGS'
32204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32210 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32211 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32212 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32215 cat >>confdefs.h <<\_ACEOF
32216 #define HAVE_FWD_ITERATOR 1
32221 cat >>confdefs.h <<\_ACEOF
32222 #define HAVE_FWD_ITERATOR 0
32228 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32229 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32230 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 ac_cpp='$CXXCPP $CPPFLAGS'
32235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32239 cat >conftest.$ac_ext <<_ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h. */
32254 rm -f conftest.$ac_objext
32255 if { (ac_try="$ac_compile"
32256 case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_compile") 2>conftest.er1
32263 grep -v '^ *+' conftest.er1 >conftest.err
32265 cat conftest.err >&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); } &&
32268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32269 { (case "(($ac_try" in
32270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271 *) ac_try_echo=$ac_try;;
32273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274 (eval "$ac_try") 2>&5
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; } &&
32278 { ac_try='test -s conftest.$ac_objext'
32279 { (case "(($ac_try" in
32280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32281 *) ac_try_echo=$ac_try;;
32283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32284 (eval "$ac_try") 2>&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32288 ac_cv_func_isnan_in_math_h=yes
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 ac_cv_func_isnan_in_math_h=no
32296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32298 ac_cpp='$CPP $CPPFLAGS'
32299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32304 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32305 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32308 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32310 cat >>confdefs.h <<\_ACEOF
32311 #define HAVE_ISNAN_IN_MATH_H 1
32316 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32317 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32318 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
32322 ac_cpp='$CXXCPP $CPPFLAGS'
32323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327 cat >conftest.$ac_ext <<_ACEOF
32330 cat confdefs.h >>conftest.$ac_ext
32331 cat >>conftest.$ac_ext <<_ACEOF
32332 /* end confdefs.h. */
32342 rm -f conftest.$ac_objext
32343 if { (ac_try="$ac_compile"
32344 case "(($ac_try" in
32345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346 *) ac_try_echo=$ac_try;;
32348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349 (eval "$ac_compile") 2>conftest.er1
32351 grep -v '^ *+' conftest.er1 >conftest.err
32353 cat conftest.err >&5
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } &&
32356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32357 { (case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_try") 2>&5
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; } &&
32366 { ac_try='test -s conftest.$ac_objext'
32367 { (case "(($ac_try" in
32368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369 *) ac_try_echo=$ac_try;;
32371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372 (eval "$ac_try") 2>&5
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); }; }; then
32376 ac_cv_func_isnan_in_cmath=yes
32378 echo "$as_me: failed program was:" >&5
32379 sed 's/^/| /' conftest.$ac_ext >&5
32381 ac_cv_func_isnan_in_cmath=no
32384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32386 ac_cpp='$CPP $CPPFLAGS'
32387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32392 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32393 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32395 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32397 cat >>confdefs.h <<\_ACEOF
32398 #define HAVE_ISNAN_IN_CMATH 1
32403 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32404 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32405 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32406 echo $ECHO_N "(cached) $ECHO_C" >&6
32409 ac_cpp='$CXXCPP $CPPFLAGS'
32410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414 cat >conftest.$ac_ext <<_ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h. */
32424 float f; std::isnan(f);
32429 rm -f conftest.$ac_objext
32430 if { (ac_try="$ac_compile"
32431 case "(($ac_try" in
32432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433 *) ac_try_echo=$ac_try;;
32435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436 (eval "$ac_compile") 2>conftest.er1
32438 grep -v '^ *+' conftest.er1 >conftest.err
32440 cat conftest.err >&5
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); } &&
32443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32444 { (case "(($ac_try" in
32445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446 *) ac_try_echo=$ac_try;;
32448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449 (eval "$ac_try") 2>&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; } &&
32453 { ac_try='test -s conftest.$ac_objext'
32454 { (case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_try") 2>&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; }; then
32463 ac_cv_func_std_isnan_in_cmath=yes
32465 echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32468 ac_cv_func_std_isnan_in_cmath=no
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473 ac_cpp='$CPP $CPPFLAGS'
32474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32479 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32480 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32482 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32484 cat >>confdefs.h <<\_ACEOF
32485 #define HAVE_STD_ISNAN_IN_CMATH 1
32491 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32492 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32493 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32497 ac_cpp='$CXXCPP $CPPFLAGS'
32498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32502 cat >conftest.$ac_ext <<_ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h. */
32517 rm -f conftest.$ac_objext
32518 if { (ac_try="$ac_compile"
32519 case "(($ac_try" in
32520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521 *) ac_try_echo=$ac_try;;
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524 (eval "$ac_compile") 2>conftest.er1
32526 grep -v '^ *+' conftest.er1 >conftest.err
32528 cat conftest.err >&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } &&
32531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32532 { (case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_try") 2>&5
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest.$ac_objext'
32542 { (case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_try") 2>&5
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; }; then
32551 ac_cv_func_isinf_in_math_h=yes
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 ac_cv_func_isinf_in_math_h=no
32559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32561 ac_cpp='$CPP $CPPFLAGS'
32562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32567 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32568 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32570 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32572 cat >>confdefs.h <<\_ACEOF
32573 #define HAVE_ISINF_IN_MATH_H 1
32578 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32579 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32580 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32581 echo $ECHO_N "(cached) $ECHO_C" >&6
32584 ac_cpp='$CXXCPP $CPPFLAGS'
32585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32589 cat >conftest.$ac_ext <<_ACEOF
32592 cat confdefs.h >>conftest.$ac_ext
32593 cat >>conftest.$ac_ext <<_ACEOF
32594 /* end confdefs.h. */
32604 rm -f conftest.$ac_objext
32605 if { (ac_try="$ac_compile"
32606 case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_compile") 2>conftest.er1
32613 grep -v '^ *+' conftest.er1 >conftest.err
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } &&
32618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32619 { (case "(($ac_try" in
32620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621 *) ac_try_echo=$ac_try;;
32623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624 (eval "$ac_try") 2>&5
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; } &&
32628 { ac_try='test -s conftest.$ac_objext'
32629 { (case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_try") 2>&5
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
32638 ac_cv_func_isinf_in_cmath=yes
32640 echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32643 ac_cv_func_isinf_in_cmath=no
32646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32648 ac_cpp='$CPP $CPPFLAGS'
32649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32654 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32655 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32657 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32659 cat >>confdefs.h <<\_ACEOF
32660 #define HAVE_ISINF_IN_CMATH 1
32665 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32666 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32667 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32668 echo $ECHO_N "(cached) $ECHO_C" >&6
32671 ac_cpp='$CXXCPP $CPPFLAGS'
32672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32676 cat >conftest.$ac_ext <<_ACEOF
32679 cat confdefs.h >>conftest.$ac_ext
32680 cat >>conftest.$ac_ext <<_ACEOF
32681 /* end confdefs.h. */
32686 float f; std::isinf(f)}
32691 rm -f conftest.$ac_objext
32692 if { (ac_try="$ac_compile"
32693 case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_compile") 2>conftest.er1
32700 grep -v '^ *+' conftest.er1 >conftest.err
32702 cat conftest.err >&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); } &&
32705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32706 { (case "(($ac_try" in
32707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708 *) ac_try_echo=$ac_try;;
32710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711 (eval "$ac_try") 2>&5
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; } &&
32715 { ac_try='test -s conftest.$ac_objext'
32716 { (case "(($ac_try" in
32717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32718 *) ac_try_echo=$ac_try;;
32720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32721 (eval "$ac_try") 2>&5
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; }; then
32725 ac_cv_func_std_isinf_in_cmath=yes
32727 echo "$as_me: failed program was:" >&5
32728 sed 's/^/| /' conftest.$ac_ext >&5
32730 ac_cv_func_std_isinf_in_cmath=no
32733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735 ac_cpp='$CPP $CPPFLAGS'
32736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32741 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32742 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32744 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32746 cat >>confdefs.h <<\_ACEOF
32747 #define HAVE_STD_ISINF_IN_CMATH 1
32752 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32753 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32754 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 ac_cpp='$CXXCPP $CPPFLAGS'
32759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32763 cat >conftest.$ac_ext <<_ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h. */
32769 #include <ieeefp.h>
32773 float f; finite(f);
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_compile") 2>conftest.er1
32787 grep -v '^ *+' conftest.er1 >conftest.err
32789 cat conftest.err >&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } &&
32792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; } &&
32802 { ac_try='test -s conftest.$ac_objext'
32803 { (case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_try") 2>&5
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; }; then
32812 ac_cv_func_finite_in_ieeefp_h=yes
32814 echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32817 ac_cv_func_finite_in_ieeefp_h=no
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822 ac_cpp='$CPP $CPPFLAGS'
32823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32828 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32829 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32831 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32833 cat >>confdefs.h <<\_ACEOF
32834 #define HAVE_FINITE_IN_IEEEFP_H 1
32841 if test "$llvm_cv_platform_type" = "Unix" ; then
32844 for ac_header in stdlib.h unistd.h
32846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32851 echo $ECHO_N "(cached) $ECHO_C" >&6
32853 ac_res=`eval echo '${'$as_ac_Header'}'`
32854 { echo "$as_me:$LINENO: result: $ac_res" >&5
32855 echo "${ECHO_T}$ac_res" >&6; }
32857 # Is the header compilable?
32858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32860 cat >conftest.$ac_ext <<_ACEOF
32863 cat confdefs.h >>conftest.$ac_ext
32864 cat >>conftest.$ac_ext <<_ACEOF
32865 /* end confdefs.h. */
32866 $ac_includes_default
32867 #include <$ac_header>
32869 rm -f conftest.$ac_objext
32870 if { (ac_try="$ac_compile"
32871 case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_compile") 2>conftest.er1
32878 grep -v '^ *+' conftest.er1 >conftest.err
32880 cat conftest.err >&5
32881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); } &&
32883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32884 { (case "(($ac_try" in
32885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32886 *) ac_try_echo=$ac_try;;
32888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889 (eval "$ac_try") 2>&5
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); }; } &&
32893 { ac_try='test -s conftest.$ac_objext'
32894 { (case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_try") 2>&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); }; }; then
32903 ac_header_compiler=yes
32905 echo "$as_me: failed program was:" >&5
32906 sed 's/^/| /' conftest.$ac_ext >&5
32908 ac_header_compiler=no
32911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32913 echo "${ECHO_T}$ac_header_compiler" >&6; }
32915 # Is the header present?
32916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32918 cat >conftest.$ac_ext <<_ACEOF
32921 cat confdefs.h >>conftest.$ac_ext
32922 cat >>conftest.$ac_ext <<_ACEOF
32923 /* end confdefs.h. */
32924 #include <$ac_header>
32926 if { (ac_try="$ac_cpp conftest.$ac_ext"
32927 case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32934 grep -v '^ *+' conftest.er1 >conftest.err
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } >/dev/null; then
32939 if test -s conftest.err; then
32940 ac_cpp_err=$ac_c_preproc_warn_flag
32941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32948 if test -z "$ac_cpp_err"; then
32949 ac_header_preproc=yes
32951 echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.$ac_ext >&5
32954 ac_header_preproc=no
32957 rm -f conftest.err conftest.$ac_ext
32958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32959 echo "${ECHO_T}$ac_header_preproc" >&6; }
32961 # So? What about this header?
32962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32968 ac_header_preproc=yes
32971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32984 ## ----------------------------------- ##
32985 ## Report this to llvmbugs@cs.uiuc.edu ##
32986 ## ----------------------------------- ##
32988 ) | sed "s/^/$as_me: WARNING: /" >&2
32991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32994 echo $ECHO_N "(cached) $ECHO_C" >&6
32996 eval "$as_ac_Header=\$ac_header_preproc"
32998 ac_res=`eval echo '${'$as_ac_Header'}'`
32999 { echo "$as_me:$LINENO: result: $ac_res" >&5
33000 echo "${ECHO_T}$ac_res" >&6; }
33003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33004 cat >>confdefs.h <<_ACEOF
33005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33013 for ac_func in getpagesize
33015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33019 echo $ECHO_N "(cached) $ECHO_C" >&6
33021 cat >conftest.$ac_ext <<_ACEOF
33024 cat confdefs.h >>conftest.$ac_ext
33025 cat >>conftest.$ac_ext <<_ACEOF
33026 /* end confdefs.h. */
33027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33029 #define $ac_func innocuous_$ac_func
33031 /* System header to define __stub macros and hopefully few prototypes,
33032 which can conflict with char $ac_func (); below.
33033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33034 <limits.h> exists even on freestanding compilers. */
33037 # include <limits.h>
33039 # include <assert.h>
33044 /* Override any GCC internal prototype to avoid an error.
33045 Use char because int might match the return type of a GCC
33046 builtin and then its argument prototype would still apply. */
33051 /* The GNU C library defines this for functions which it implements
33052 to always fail with ENOSYS. Some functions are actually named
33053 something starting with __ and the normal name is an alias. */
33054 #if defined __stub_$ac_func || defined __stub___$ac_func
33061 return $ac_func ();
33066 rm -f conftest.$ac_objext conftest$ac_exeext
33067 if { (ac_try="$ac_link"
33068 case "(($ac_try" in
33069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070 *) ac_try_echo=$ac_try;;
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073 (eval "$ac_link") 2>conftest.er1
33075 grep -v '^ *+' conftest.er1 >conftest.err
33077 cat conftest.err >&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } &&
33080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; } &&
33090 { ac_try='test -s conftest$ac_exeext'
33091 { (case "(($ac_try" in
33092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093 *) ac_try_echo=$ac_try;;
33095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096 (eval "$ac_try") 2>&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); }; }; then
33100 eval "$as_ac_var=yes"
33102 echo "$as_me: failed program was:" >&5
33103 sed 's/^/| /' conftest.$ac_ext >&5
33105 eval "$as_ac_var=no"
33108 rm -f core conftest.err conftest.$ac_objext \
33109 conftest$ac_exeext conftest.$ac_ext
33111 ac_res=`eval echo '${'$as_ac_var'}'`
33112 { echo "$as_me:$LINENO: result: $ac_res" >&5
33113 echo "${ECHO_T}$ac_res" >&6; }
33114 if test `eval echo '${'$as_ac_var'}'` = yes; then
33115 cat >>confdefs.h <<_ACEOF
33116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33122 { echo "$as_me:$LINENO: checking for working mmap" >&5
33123 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33124 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33125 echo $ECHO_N "(cached) $ECHO_C" >&6
33127 if test "$cross_compiling" = yes; then
33128 ac_cv_func_mmap_fixed_mapped=no
33130 cat >conftest.$ac_ext <<_ACEOF
33133 cat confdefs.h >>conftest.$ac_ext
33134 cat >>conftest.$ac_ext <<_ACEOF
33135 /* end confdefs.h. */
33136 $ac_includes_default
33137 /* malloc might have been renamed as rpl_malloc. */
33140 /* Thanks to Mike Haertel and Jim Avera for this test.
33141 Here is a matrix of mmap possibilities:
33142 mmap private not fixed
33143 mmap private fixed at somewhere currently unmapped
33144 mmap private fixed at somewhere already mapped
33145 mmap shared not fixed
33146 mmap shared fixed at somewhere currently unmapped
33147 mmap shared fixed at somewhere already mapped
33148 For private mappings, we should verify that changes cannot be read()
33149 back from the file, nor mmap's back from the file at a different
33150 address. (There have been systems where private was not correctly
33151 implemented like the infamous i386 svr4.0, and systems where the
33152 VM page cache was not coherent with the file system buffer cache
33153 like early versions of FreeBSD and possibly contemporary NetBSD.)
33154 For shared mappings, we should conversely verify that changes get
33155 propagated back to all the places they're supposed to be.
33157 Grep wants private fixed already mapped.
33158 The main things grep needs to know about mmap are:
33159 * does it exist and is it safe to write into the mmap'd area
33160 * how to use it (BSD variants) */
33163 #include <sys/mman.h>
33165 #if !STDC_HEADERS && !HAVE_STDLIB_H
33169 /* This mess was copied from the GNU getpagesize.h. */
33170 #if !HAVE_GETPAGESIZE
33171 /* Assume that all systems that can run configure have sys/param.h. */
33172 # if !HAVE_SYS_PARAM_H
33173 # define HAVE_SYS_PARAM_H 1
33176 # ifdef _SC_PAGESIZE
33177 # define getpagesize() sysconf(_SC_PAGESIZE)
33178 # else /* no _SC_PAGESIZE */
33179 # if HAVE_SYS_PARAM_H
33180 # include <sys/param.h>
33181 # ifdef EXEC_PAGESIZE
33182 # define getpagesize() EXEC_PAGESIZE
33183 # else /* no EXEC_PAGESIZE */
33185 # define getpagesize() NBPG * CLSIZE
33188 # endif /* no CLSIZE */
33189 # else /* no NBPG */
33191 # define getpagesize() NBPC
33192 # else /* no NBPC */
33194 # define getpagesize() PAGESIZE
33195 # endif /* PAGESIZE */
33196 # endif /* no NBPC */
33197 # endif /* no NBPG */
33198 # endif /* no EXEC_PAGESIZE */
33199 # else /* no HAVE_SYS_PARAM_H */
33200 # define getpagesize() 8192 /* punt totally */
33201 # endif /* no HAVE_SYS_PARAM_H */
33202 # endif /* no _SC_PAGESIZE */
33204 #endif /* no HAVE_GETPAGESIZE */
33209 char *data, *data2, *data3;
33213 pagesize = getpagesize ();
33215 /* First, make a file with some known garbage in it. */
33216 data = (char *) malloc (pagesize);
33219 for (i = 0; i < pagesize; ++i)
33220 *(data + i) = rand ();
33222 fd = creat ("conftest.mmap", 0600);
33225 if (write (fd, data, pagesize) != pagesize)
33229 /* Next, try to mmap the file at a fixed address which already has
33230 something else allocated at it. If we can, also make sure that
33231 we see the same garbage. */
33232 fd = open ("conftest.mmap", O_RDWR);
33235 data2 = (char *) malloc (2 * pagesize);
33238 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33239 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33242 for (i = 0; i < pagesize; ++i)
33243 if (*(data + i) != *(data2 + i))
33246 /* Finally, make sure that changes to the mapped area do not
33247 percolate back to the file as seen by read(). (This is a bug on
33248 some variants of i386 svr4.0.) */
33249 for (i = 0; i < pagesize; ++i)
33250 *(data2 + i) = *(data2 + i) + 1;
33251 data3 = (char *) malloc (pagesize);
33254 if (read (fd, data3, pagesize) != pagesize)
33256 for (i = 0; i < pagesize; ++i)
33257 if (*(data + i) != *(data3 + i))
33263 rm -f conftest$ac_exeext
33264 if { (ac_try="$ac_link"
33265 case "(($ac_try" in
33266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33267 *) ac_try_echo=$ac_try;;
33269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33270 (eval "$ac_link") 2>&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33274 { (case "(($ac_try" in
33275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276 *) ac_try_echo=$ac_try;;
33278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279 (eval "$ac_try") 2>&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; }; then
33283 ac_cv_func_mmap_fixed_mapped=yes
33285 echo "$as_me: program exited with status $ac_status" >&5
33286 echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33289 ( exit $ac_status )
33290 ac_cv_func_mmap_fixed_mapped=no
33292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33297 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33298 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33299 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33301 cat >>confdefs.h <<\_ACEOF
33302 #define HAVE_MMAP 1
33306 rm -f conftest.mmap
33308 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33309 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33310 if test "${ac_cv_func_mmap_file+set}" = set; then
33311 echo $ECHO_N "(cached) $ECHO_C" >&6
33314 ac_cpp='$CPP $CPPFLAGS'
33315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33319 if test "$cross_compiling" = yes; then
33320 ac_cv_func_mmap_file=no
33322 cat >conftest.$ac_ext <<_ACEOF
33326 cat confdefs.h >>conftest.$ac_ext
33327 cat >>conftest.$ac_ext <<_ACEOF
33328 /* end confdefs.h. */
33330 #include <sys/types.h>
33331 #include <sys/mman.h>
33339 fd = creat ("foo",0777);
33340 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33342 return (fd != (int) MAP_FAILED);
33347 rm -f conftest$ac_exeext
33348 if { (ac_try="$ac_link"
33349 case "(($ac_try" in
33350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351 *) ac_try_echo=$ac_try;;
33353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33354 (eval "$ac_link") 2>&5
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33358 { (case "(($ac_try" in
33359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360 *) ac_try_echo=$ac_try;;
33362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33363 (eval "$ac_try") 2>&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); }; }; then
33367 ac_cv_func_mmap_file=yes
33369 echo "$as_me: program exited with status $ac_status" >&5
33370 echo "$as_me: failed program was:" >&5
33371 sed 's/^/| /' conftest.$ac_ext >&5
33373 ( exit $ac_status )
33374 ac_cv_func_mmap_file=no
33376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33381 ac_cpp='$CPP $CPPFLAGS'
33382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33388 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33389 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33390 if test "$ac_cv_func_mmap_file" = yes; then
33392 cat >>confdefs.h <<\_ACEOF
33393 #define HAVE_MMAP_FILE
33400 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33401 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33402 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33403 echo $ECHO_N "(cached) $ECHO_C" >&6
33405 if test "$llvm_cv_os_type" = "Interix" ; then
33406 ac_cv_need_dev_zero_for_mmap=yes
33408 ac_cv_need_dev_zero_for_mmap=no
33412 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33413 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33414 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33416 cat >>confdefs.h <<\_ACEOF
33417 #define NEED_DEV_ZERO_FOR_MMAP 1
33422 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33424 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33425 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33427 if test "$ac_cv_func_mmap_file" = "no"
33429 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33430 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33435 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33436 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33437 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33438 echo $ECHO_N "(cached) $ECHO_C" >&6
33440 llvm_cv_llvmgcc_sanity="no"
33441 if test -x "$LLVMGCC" ; then
33442 cp /dev/null conftest.c
33443 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33444 grep 'target datalayout =' > /dev/null 2>&1
33445 if test $? -eq 0 ; then
33446 llvm_cv_llvmgcc_sanity="yes"
33451 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33452 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33454 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33455 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33456 LLVMCC1=$llvmcc1path
33458 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33459 LLVMCC1PLUS=$llvmcc1pluspath
33461 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33462 LLVMGCCDIR=$llvmgccdir
33464 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33465 LLVMGCCLIBEXEC=$llvmgcclibexec
33467 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33468 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33469 LLVMGCC_VERSION=$llvmgccversion
33471 LLVMGCC_MAJVERS=$llvmgccmajvers
33475 SHLIBEXT=$libltdl_cv_shlibext
33478 # Translate the various configuration directories and other basic
33479 # information into substitutions that will end up in Makefile.config.in
33480 # that these configured values can be used by the makefiles
33481 if test "${prefix}" = "NONE" ; then
33482 prefix="/usr/local"
33484 eval LLVM_PREFIX="${prefix}";
33485 eval LLVM_BINDIR="${prefix}/bin";
33486 eval LLVM_LIBDIR="${prefix}/lib";
33487 eval LLVM_DATADIR="${prefix}/share/llvm";
33488 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33489 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33490 eval LLVM_INCLUDEDIR="${prefix}/include";
33491 eval LLVM_INFODIR="${prefix}/info";
33492 eval LLVM_MANDIR="${prefix}/man";
33493 LLVM_CONFIGTIME=`date`
33505 # Place the various directores into the config.h file as #defines so that we
33506 # can know about the installation paths within LLVM.
33508 cat >>confdefs.h <<_ACEOF
33509 #define LLVM_PREFIX "$LLVM_PREFIX"
33513 cat >>confdefs.h <<_ACEOF
33514 #define LLVM_BINDIR "$LLVM_BINDIR"
33518 cat >>confdefs.h <<_ACEOF
33519 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33523 cat >>confdefs.h <<_ACEOF
33524 #define LLVM_DATADIR "$LLVM_DATADIR"
33528 cat >>confdefs.h <<_ACEOF
33529 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33533 cat >>confdefs.h <<_ACEOF
33534 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33538 cat >>confdefs.h <<_ACEOF
33539 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33543 cat >>confdefs.h <<_ACEOF
33544 #define LLVM_INFODIR "$LLVM_INFODIR"
33548 cat >>confdefs.h <<_ACEOF
33549 #define LLVM_MANDIR "$LLVM_MANDIR"
33553 cat >>confdefs.h <<_ACEOF
33554 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33559 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33561 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33563 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33565 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33567 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33570 ac_config_files="$ac_config_files Makefile.config"
33573 ac_config_files="$ac_config_files llvm.spec"
33576 ac_config_files="$ac_config_files docs/doxygen.cfg"
33579 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33582 ac_config_commands="$ac_config_commands setup"
33584 ac_config_commands="$ac_config_commands Makefile"
33587 ac_config_commands="$ac_config_commands Makefile.common"
33590 ac_config_commands="$ac_config_commands examples/Makefile"
33593 ac_config_commands="$ac_config_commands lib/Makefile"
33596 ac_config_commands="$ac_config_commands runtime/Makefile"
33599 ac_config_commands="$ac_config_commands test/Makefile"
33602 ac_config_commands="$ac_config_commands test/Makefile.tests"
33605 ac_config_commands="$ac_config_commands tools/Makefile"
33608 ac_config_commands="$ac_config_commands utils/Makefile"
33611 ac_config_commands="$ac_config_commands projects/Makefile"
33615 cat >confcache <<\_ACEOF
33616 # This file is a shell script that caches the results of configure
33617 # tests run on this system so they can be shared between configure
33618 # scripts and configure runs, see configure's option --config-cache.
33619 # It is not useful on other systems. If it contains results you don't
33620 # want to keep, you may remove or edit it.
33622 # config.status only pays attention to the cache file if you give it
33623 # the --recheck option to rerun configure.
33625 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33627 # following values.
33631 # The following way of writing the cache mishandles newlines in values,
33632 # but we know of no workaround that is simple, portable, and efficient.
33633 # So, we kill variables containing newlines.
33634 # Ultrix sh set writes to stderr and can't be redirected directly,
33635 # and sets the high bit in the cache file unless we assign to the vars.
33637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33638 eval ac_val=\$$ac_var
33642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33646 _ | IFS | as_nl) ;; #(
33647 *) $as_unset $ac_var ;;
33653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33654 *${as_nl}ac_space=\ *)
33655 # `set' does not quote correctly, so add quotes (double-quote
33656 # substitution turns \\\\ into \\, and sed turns \\ into \).
33659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33662 # `set' quotes correctly as required by POSIX, so do not add quotes.
33663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33677 if test -w "$cache_file"; then
33678 test "x$cache_file" != "x/dev/null" &&
33679 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33680 echo "$as_me: updating cache $cache_file" >&6;}
33681 cat confcache >$cache_file
33683 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33684 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33690 # Let make expand exec_prefix.
33691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33693 DEFS=-DHAVE_CONFIG_H
33697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33698 # 1. Remove the extension, and $U if already installed.
33699 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33700 ac_i=`echo "$ac_i" | sed "$ac_script"`
33701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33702 # will be set to the directory where LIBOBJS objects are built.
33703 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33704 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33706 LIBOBJS=$ac_libobjs
33708 LTLIBOBJS=$ac_ltlibobjs
33711 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33712 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33713 Usually this means the macro was only invoked conditionally." >&5
33714 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33715 Usually this means the macro was only invoked conditionally." >&2;}
33716 { (exit 1); exit 1; }; }
33718 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33719 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33720 Usually this means the macro was only invoked conditionally." >&5
33721 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33722 Usually this means the macro was only invoked conditionally." >&2;}
33723 { (exit 1); exit 1; }; }
33726 : ${CONFIG_STATUS=./config.status}
33727 ac_clean_files_save=$ac_clean_files
33728 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33729 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33730 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33731 cat >$CONFIG_STATUS <<_ACEOF
33733 # Generated by $as_me.
33734 # Run this file to recreate the current configuration.
33735 # Compiler output produced by configure, useful for debugging
33736 # configure, is in config.log if it exists.
33739 ac_cs_recheck=false
33741 SHELL=\${CONFIG_SHELL-$SHELL}
33744 cat >>$CONFIG_STATUS <<\_ACEOF
33745 ## --------------------- ##
33746 ## M4sh Initialization. ##
33747 ## --------------------- ##
33749 # Be Bourne compatible
33750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33753 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33754 # is contrary to our usage. Disable this feature.
33755 alias -g '${1+"$@"}'='"$@"'
33756 setopt NO_GLOB_SUBST
33758 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33760 BIN_SH=xpg4; export BIN_SH # for Tru64
33761 DUALCASE=1; export DUALCASE # for MKS sh
33765 # Avoid depending upon Character Ranges.
33766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33769 as_cr_digits='0123456789'
33770 as_cr_alnum=$as_cr_Letters$as_cr_digits
33772 # The user is always right.
33773 if test "${PATH_SEPARATOR+set}" != set; then
33774 echo "#! /bin/sh" >conf$$.sh
33775 echo "exit 0" >>conf$$.sh
33777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33785 # Support unset when possible.
33786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33794 # We need space, tab and new line, in precisely that order. Quoting is
33795 # there to prevent editors from complaining about space-tab.
33796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33797 # splitting by setting IFS to empty value.)
33802 # Find who we are. Look in the path if we contain no directory separator.
33804 *[\\/]* ) as_myself=$0 ;;
33805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33806 for as_dir in $PATH
33809 test -z "$as_dir" && as_dir=.
33810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33816 # We did not find ourselves, most probably we were run as `sh COMMAND'
33817 # in which case we are not to be found in the path.
33818 if test "x$as_myself" = x; then
33821 if test ! -f "$as_myself"; then
33822 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33823 { (exit 1); exit 1; }
33826 # Work around bugs in pre-3.0 UWIN ksh.
33827 for as_var in ENV MAIL MAILPATH
33828 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33836 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33837 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33838 LC_TELEPHONE LC_TIME
33840 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33841 eval $as_var=C; export $as_var
33843 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33847 # Required to use basename.
33848 if expr a : '\(a\)' >/dev/null 2>&1 &&
33849 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33855 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33856 as_basename=basename
33862 # Name of the executable.
33863 as_me=`$as_basename -- "$0" ||
33864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33865 X"$0" : 'X\(//\)$' \| \
33866 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33868 sed '/^.*\/\([^/][^/]*\)\/*$/{
33887 as_lineno_1=$LINENO
33888 as_lineno_2=$LINENO
33889 test "x$as_lineno_1" != "x$as_lineno_2" &&
33890 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33892 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33893 # uniformly replaced by the line number. The first 'sed' inserts a
33894 # line-number line after each line using $LINENO; the second 'sed'
33895 # does the real work. The second script uses 'N' to pair each
33896 # line-number line with the line containing $LINENO, and appends
33897 # trailing '-' during substitution so that $LINENO is not a special
33898 # case at line end.
33899 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33900 # scripts with optimization help from Paolo Bonzini. Blame Lee
33901 # E. McMahon (1931-1989) for sed's syntax. :-)
33913 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33916 ' >$as_me.lineno &&
33917 chmod +x "$as_me.lineno" ||
33918 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33919 { (exit 1); exit 1; }; }
33921 # Don't try to exec as it changes $[0], causing all sort of problems
33922 # (the dirname of $[0] is not the place where we might find the
33923 # original and so on. Autoconf is especially sensitive to this).
33924 . "./$as_me.lineno"
33925 # Exit status is that of the last command.
33930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33936 ECHO_C= ECHO_N= ECHO_T=
33937 case `echo -n x` in
33939 case `echo 'x\c'` in
33940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33947 if expr a : '\(a\)' >/dev/null 2>&1 &&
33948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33954 rm -f conf$$ conf$$.exe conf$$.file
33955 if test -d conf$$.dir; then
33956 rm -f conf$$.dir/conf$$.file
33962 if ln -s conf$$.file conf$$ 2>/dev/null; then
33964 # ... but there are two gotchas:
33965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33967 # In both cases, we have to default to `cp -p'.
33968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33970 elif ln conf$$.file conf$$ 2>/dev/null; then
33975 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33976 rmdir conf$$.dir 2>/dev/null
33978 if mkdir -p . 2>/dev/null; then
33981 test -d ./-p && rmdir ./-p
33985 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33986 # systems may use methods other than mode bits to determine executability.
33987 cat >conf$$.file <<_ASEOF
33991 chmod +x conf$$.file
33992 if test -x conf$$.file >/dev/null 2>&1; then
33993 as_executable_p="test -x"
33999 # Sed expression to map a string onto a valid CPP name.
34000 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34002 # Sed expression to map a string onto a valid variable name.
34003 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34008 # Save the log message, to keep $[0] and so on meaningful, and to
34009 # report actual input values of CONFIG_FILES etc. instead of their
34010 # values after options handling.
34012 This file was extended by llvm $as_me 2.0cvs, which was
34013 generated by GNU Autoconf 2.60. Invocation command line was
34015 CONFIG_FILES = $CONFIG_FILES
34016 CONFIG_HEADERS = $CONFIG_HEADERS
34017 CONFIG_LINKS = $CONFIG_LINKS
34018 CONFIG_COMMANDS = $CONFIG_COMMANDS
34021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34026 cat >>$CONFIG_STATUS <<_ACEOF
34027 # Files that config.status was made for.
34028 config_files="$ac_config_files"
34029 config_headers="$ac_config_headers"
34030 config_commands="$ac_config_commands"
34034 cat >>$CONFIG_STATUS <<\_ACEOF
34036 \`$as_me' instantiates files from templates according to the
34037 current configuration.
34039 Usage: $0 [OPTIONS] [FILE]...
34041 -h, --help print this help, then exit
34042 -V, --version print version number, then exit
34043 -q, --quiet do not print progress messages
34044 -d, --debug don't remove temporary files
34045 --recheck update $as_me by reconfiguring in the same conditions
34046 --file=FILE[:TEMPLATE]
34047 instantiate the configuration file FILE
34048 --header=FILE[:TEMPLATE]
34049 instantiate the configuration header FILE
34051 Configuration files:
34054 Configuration headers:
34057 Configuration commands:
34060 Report bugs to <bug-autoconf@gnu.org>."
34063 cat >>$CONFIG_STATUS <<_ACEOF
34065 llvm config.status 2.0cvs
34066 configured by $0, generated by GNU Autoconf 2.60,
34067 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34069 Copyright (C) 2006 Free Software Foundation, Inc.
34070 This config.status script is free software; the Free Software Foundation
34071 gives unlimited permission to copy, distribute and modify it."
34078 cat >>$CONFIG_STATUS <<\_ACEOF
34079 # If no file are specified by the user, then we need to provide default
34080 # value. By we need to know if files were specified by the user.
34086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34087 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34098 # Handling of the options.
34099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34102 echo "$ac_cs_version"; exit ;;
34103 --debug | --debu | --deb | --de | --d | -d )
34105 --file | --fil | --fi | --f )
34107 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34108 ac_need_defaults=false;;
34109 --header | --heade | --head | --hea )
34111 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34112 ac_need_defaults=false;;
34114 # Conflict between --help and --header
34115 { echo "$as_me: error: ambiguous option: $1
34116 Try \`$0 --help' for more information." >&2
34117 { (exit 1); exit 1; }; };;
34118 --help | --hel | -h )
34119 echo "$ac_cs_usage"; exit ;;
34120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34124 # This is an error.
34125 -*) { echo "$as_me: error: unrecognized option: $1
34126 Try \`$0 --help' for more information." >&2
34127 { (exit 1); exit 1; }; } ;;
34129 *) ac_config_targets="$ac_config_targets $1"
34130 ac_need_defaults=false ;;
34136 ac_configure_extra_args=
34138 if $ac_cs_silent; then
34140 ac_configure_extra_args="$ac_configure_extra_args --silent"
34144 cat >>$CONFIG_STATUS <<_ACEOF
34145 if \$ac_cs_recheck; then
34146 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34147 CONFIG_SHELL=$SHELL
34148 export CONFIG_SHELL
34149 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34153 cat >>$CONFIG_STATUS <<\_ACEOF
34157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34158 ## Running $as_me. ##
34164 cat >>$CONFIG_STATUS <<_ACEOF
34168 llvm_src="${srcdir}"
34172 cat >>$CONFIG_STATUS <<\_ACEOF
34174 # Handling of arguments.
34175 for ac_config_target in $ac_config_targets
34177 case $ac_config_target in
34178 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34179 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34180 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34181 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34182 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34183 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34184 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34185 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34186 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34187 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34188 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34189 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34190 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34191 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34192 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34193 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34194 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34195 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34196 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34197 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34199 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34200 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34201 { (exit 1); exit 1; }; };;
34206 # If the user did not use the arguments to specify the items to instantiate,
34207 # then the envvar interface is used. Set only those that are not.
34208 # We use the long form for the default assignment because of an extremely
34209 # bizarre bug on SunOS 4.1.3.
34210 if $ac_need_defaults; then
34211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34216 # Have a temporary directory for convenience. Make it in the build tree
34217 # simply because there is no reason against having it here, and in addition,
34218 # creating and moving files from /tmp can sometimes cause problems.
34219 # Hook for its removal unless debugging.
34220 # Note that there is a small window in which the directory will not be cleaned:
34221 # after its creation but before its name has been assigned to `$tmp'.
34225 trap 'exit_status=$?
34226 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34228 trap '{ (exit 1); exit 1; }' 1 2 13 15
34230 # Create a (secure) tmp directory for tmp files.
34233 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34234 test -n "$tmp" && test -d "$tmp"
34237 tmp=./conf$$-$RANDOM
34238 (umask 077 && mkdir "$tmp")
34241 echo "$me: cannot create a temporary directory in ." >&2
34242 { (exit 1); exit 1; }
34246 # Set up the sed scripts for CONFIG_FILES section.
34249 # No need to generate the scripts if there are no CONFIG_FILES.
34250 # This happens for instance when ./config.status config.h
34251 if test -n "$CONFIG_FILES"; then
34258 for ac_last_try in false false false false false :; do
34259 cat >conf$$subs.sed <<_ACEOF
34260 SHELL!$SHELL$ac_delim
34261 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34262 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34263 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34264 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34265 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34266 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34267 exec_prefix!$exec_prefix$ac_delim
34268 prefix!$prefix$ac_delim
34269 program_transform_name!$program_transform_name$ac_delim
34270 bindir!$bindir$ac_delim
34271 sbindir!$sbindir$ac_delim
34272 libexecdir!$libexecdir$ac_delim
34273 datarootdir!$datarootdir$ac_delim
34274 datadir!$datadir$ac_delim
34275 sysconfdir!$sysconfdir$ac_delim
34276 sharedstatedir!$sharedstatedir$ac_delim
34277 localstatedir!$localstatedir$ac_delim
34278 includedir!$includedir$ac_delim
34279 oldincludedir!$oldincludedir$ac_delim
34280 docdir!$docdir$ac_delim
34281 infodir!$infodir$ac_delim
34282 htmldir!$htmldir$ac_delim
34283 dvidir!$dvidir$ac_delim
34284 pdfdir!$pdfdir$ac_delim
34285 psdir!$psdir$ac_delim
34286 libdir!$libdir$ac_delim
34287 localedir!$localedir$ac_delim
34288 mandir!$mandir$ac_delim
34289 DEFS!$DEFS$ac_delim
34290 ECHO_C!$ECHO_C$ac_delim
34291 ECHO_N!$ECHO_N$ac_delim
34292 ECHO_T!$ECHO_T$ac_delim
34293 LIBS!$LIBS$ac_delim
34294 build_alias!$build_alias$ac_delim
34295 host_alias!$host_alias$ac_delim
34296 target_alias!$target_alias$ac_delim
34297 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34298 subdirs!$subdirs$ac_delim
34299 build!$build$ac_delim
34300 build_cpu!$build_cpu$ac_delim
34301 build_vendor!$build_vendor$ac_delim
34302 build_os!$build_os$ac_delim
34303 host!$host$ac_delim
34304 host_cpu!$host_cpu$ac_delim
34305 host_vendor!$host_vendor$ac_delim
34306 host_os!$host_os$ac_delim
34307 target!$target$ac_delim
34308 target_cpu!$target_cpu$ac_delim
34309 target_vendor!$target_vendor$ac_delim
34310 target_os!$target_os$ac_delim
34312 LINKALL!$LINKALL$ac_delim
34313 NOLINKALL!$NOLINKALL$ac_delim
34314 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34315 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34316 ARCH!$ARCH$ac_delim
34317 ENDIAN!$ENDIAN$ac_delim
34319 CFLAGS!$CFLAGS$ac_delim
34320 LDFLAGS!$LDFLAGS$ac_delim
34321 CPPFLAGS!$CPPFLAGS$ac_delim
34322 ac_ct_CC!$ac_ct_CC$ac_delim
34323 EXEEXT!$EXEEXT$ac_delim
34324 OBJEXT!$OBJEXT$ac_delim
34326 GREP!$GREP$ac_delim
34327 EGREP!$EGREP$ac_delim
34328 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34329 BUILD_CC!$BUILD_CC$ac_delim
34330 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34331 CVSBUILD!$CVSBUILD$ac_delim
34332 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34333 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34334 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34336 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34337 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34338 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34339 ENABLE_PIC!$ENABLE_PIC$ac_delim
34340 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34341 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34342 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34344 CXXFLAGS!$CXXFLAGS$ac_delim
34345 ac_ct_CXX!$ac_ct_CXX$ac_delim
34347 LEXLIB!$LEXLIB$ac_delim
34348 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34349 FLEX!$FLEX$ac_delim
34350 YACC!$YACC$ac_delim
34351 YFLAGS!$YFLAGS$ac_delim
34352 BISON!$BISON$ac_delim
34354 ifGNUmake!$ifGNUmake$ac_delim
34355 LN_S!$LN_S$ac_delim
34359 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34361 elif $ac_last_try; then
34362 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34363 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34364 { (exit 1); exit 1; }; }
34366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34370 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34371 if test -n "$ac_eof"; then
34372 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34373 ac_eof=`expr $ac_eof + 1`
34376 cat >>$CONFIG_STATUS <<_ACEOF
34377 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34381 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34382 s/^/s,@/; s/!/@,|#_!!_#|/
34385 s/'"$ac_delim"'$/,g/; t
34387 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34388 ' >>$CONFIG_STATUS <conf$$subs.sed
34389 rm -f conf$$subs.sed
34390 cat >>$CONFIG_STATUS <<_ACEOF
34396 for ac_last_try in false false false false false :; do
34397 cat >conf$$subs.sed <<_ACEOF
34399 DATE!$DATE$ac_delim
34400 FIND!$FIND$ac_delim
34401 MKDIR!$MKDIR$ac_delim
34403 RANLIB!$RANLIB$ac_delim
34407 BINPWD!$BINPWD$ac_delim
34408 GRAPHVIZ!$GRAPHVIZ$ac_delim
34411 DOTTY!$DOTTY$ac_delim
34412 PERL!$PERL$ac_delim
34413 HAVE_PERL!$HAVE_PERL$ac_delim
34414 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34415 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34416 INSTALL_DATA!$INSTALL_DATA$ac_delim
34417 BZIP2!$BZIP2$ac_delim
34418 DOXYGEN!$DOXYGEN$ac_delim
34419 GROFF!$GROFF$ac_delim
34420 GZIP!$GZIP$ac_delim
34421 POD2HTML!$POD2HTML$ac_delim
34422 POD2MAN!$POD2MAN$ac_delim
34423 RUNTEST!$RUNTEST$ac_delim
34424 TCLSH!$TCLSH$ac_delim
34426 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34427 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34428 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34429 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34430 LIBADD_DL!$LIBADD_DL$ac_delim
34431 ECHO!$ECHO$ac_delim
34433 STRIP!$STRIP$ac_delim
34434 CXXCPP!$CXXCPP$ac_delim
34436 FFLAGS!$FFLAGS$ac_delim
34437 ac_ct_F77!$ac_ct_F77$ac_delim
34438 LIBTOOL!$LIBTOOL$ac_delim
34439 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34440 LLVMGCC!$LLVMGCC$ac_delim
34441 LLVMGXX!$LLVMGXX$ac_delim
34442 USE_UDIS86!$USE_UDIS86$ac_delim
34443 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34444 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34445 ALLOCA!$ALLOCA$ac_delim
34446 MMAP_FILE!$MMAP_FILE$ac_delim
34447 LLVMCC1!$LLVMCC1$ac_delim
34448 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34449 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34450 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34451 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34452 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34453 SHLIBEXT!$SHLIBEXT$ac_delim
34454 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34455 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34456 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34457 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34458 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34459 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34460 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34461 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34462 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34463 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34464 LIBOBJS!$LIBOBJS$ac_delim
34465 LTLIBOBJS!$LTLIBOBJS$ac_delim
34468 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
34470 elif $ac_last_try; then
34471 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34472 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34473 { (exit 1); exit 1; }; }
34475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34479 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34480 if test -n "$ac_eof"; then
34481 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34482 ac_eof=`expr $ac_eof + 1`
34485 cat >>$CONFIG_STATUS <<_ACEOF
34486 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34487 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34490 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34491 s/^/s,@/; s/!/@,|#_!!_#|/
34494 s/'"$ac_delim"'$/,g/; t
34496 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34497 ' >>$CONFIG_STATUS <conf$$subs.sed
34498 rm -f conf$$subs.sed
34499 cat >>$CONFIG_STATUS <<_ACEOF
34506 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34507 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34508 # trailing colons and then remove the whole line if VPATH becomes empty
34509 # (actually we leave an empty line to preserve line numbers).
34510 if test "x$srcdir" = x.; then
34511 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34512 s/:*\$(srcdir):*/:/
34513 s/:*\${srcdir}:*/:/
34515 s/^\([^=]*=[ ]*\):*/\1/
34521 cat >>$CONFIG_STATUS <<\_ACEOF
34522 fi # test -n "$CONFIG_FILES"
34525 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34528 :[FHLC]) ac_mode=$ac_tag; continue;;
34530 case $ac_mode$ac_tag in
34532 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34533 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34534 { (exit 1); exit 1; }; };;
34535 :[FH]-) ac_tag=-:-;;
34536 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34553 -) ac_f="$tmp/stdin";;
34554 *) # Look for the file first in the build tree, then in the source tree
34555 # (if the path is not absolute). The absolute path cannot be DOS-style,
34556 # because $ac_f cannot contain `:'.
34560 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34562 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34563 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34564 { (exit 1); exit 1; }; };;
34566 ac_file_inputs="$ac_file_inputs $ac_f"
34569 # Let's still pretend it is `configure' which instantiates (i.e., don't
34570 # use $as_me), people would be surprised to read:
34571 # /* config.h. Generated by config.status. */
34572 configure_input="Generated from "`IFS=:
34573 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34574 if test x"$ac_file" != x-; then
34575 configure_input="$ac_file. $configure_input"
34576 { echo "$as_me:$LINENO: creating $ac_file" >&5
34577 echo "$as_me: creating $ac_file" >&6;}
34581 *:-:* | *:-) cat >"$tmp/stdin";;
34586 ac_dir=`$as_dirname -- "$ac_file" ||
34587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34588 X"$ac_file" : 'X\(//\)[^/]' \| \
34589 X"$ac_file" : 'X\(//\)$' \| \
34590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34596 /^X\(\/\/\)[^/].*/{
34611 -*) as_dir=./$as_dir;;
34613 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34617 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34618 *) as_qdir=$as_dir;;
34620 as_dirs="'$as_qdir' $as_dirs"
34621 as_dir=`$as_dirname -- "$as_dir" ||
34622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34623 X"$as_dir" : 'X\(//\)[^/]' \| \
34624 X"$as_dir" : 'X\(//\)$' \| \
34625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34631 /^X\(\/\/\)[^/].*/{
34644 test -d "$as_dir" && break
34646 test -z "$as_dirs" || eval "mkdir $as_dirs"
34647 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34648 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34649 { (exit 1); exit 1; }; }; }
34653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34656 # A ".." for each directory in $ac_dir_suffix.
34657 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34658 case $ac_top_builddir_sub in
34659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34663 ac_abs_top_builddir=$ac_pwd
34664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34665 # for backward compatibility:
34666 ac_top_builddir=$ac_top_build_prefix
34669 .) # We are building in place.
34671 ac_top_srcdir=$ac_top_builddir_sub
34672 ac_abs_top_srcdir=$ac_pwd ;;
34673 [\\/]* | ?:[\\/]* ) # Absolute name.
34674 ac_srcdir=$srcdir$ac_dir_suffix;
34675 ac_top_srcdir=$srcdir
34676 ac_abs_top_srcdir=$srcdir ;;
34677 *) # Relative name.
34678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34679 ac_top_srcdir=$ac_top_build_prefix$srcdir
34680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34697 cat >>$CONFIG_STATUS <<\_ACEOF
34698 # If the template does not know about datarootdir, expand it.
34699 # FIXME: This hack should be removed a few years after 2.60.
34700 ac_datarootdir_hack=; ac_datarootdir_seen=
34702 case `sed -n '/datarootdir/ {
34711 ' $ac_file_inputs` in
34712 *datarootdir*) ac_datarootdir_seen=yes;;
34713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34714 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34715 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34717 cat >>$CONFIG_STATUS <<_ACEOF
34718 ac_datarootdir_hack='
34719 s&@datadir@&$datadir&g
34720 s&@docdir@&$docdir&g
34721 s&@infodir@&$infodir&g
34722 s&@localedir@&$localedir&g
34723 s&@mandir@&$mandir&g
34724 s&\\\${datarootdir}&$datarootdir&g' ;;
34728 # Neutralize VPATH when `$srcdir' = `.'.
34729 # Shell code in configure.ac might set extrasub.
34730 # FIXME: do we really want to maintain this feature?
34731 cat >>$CONFIG_STATUS <<_ACEOF
34735 cat >>$CONFIG_STATUS <<\_ACEOF
34737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34738 s&@configure_input@&$configure_input&;t t
34739 s&@top_builddir@&$ac_top_builddir_sub&;t t
34740 s&@srcdir@&$ac_srcdir&;t t
34741 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34742 s&@top_srcdir@&$ac_top_srcdir&;t t
34743 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34744 s&@builddir@&$ac_builddir&;t t
34745 s&@abs_builddir@&$ac_abs_builddir&;t t
34746 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34747 s&@INSTALL@&$ac_INSTALL&;t t
34748 $ac_datarootdir_hack
34749 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34751 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34752 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34753 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34754 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34755 which seems to be undefined. Please make sure it is defined." >&5
34756 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34757 which seems to be undefined. Please make sure it is defined." >&2;}
34761 -) cat "$tmp/out"; rm -f "$tmp/out";;
34762 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34771 # Transform confdefs.h into a sed script `conftest.defines', that
34772 # substitutes the proper values into config.h.in to produce config.h.
34773 rm -f conftest.defines conftest.tail
34774 # First, append a space to every undef/define line, to ease matching.
34775 echo 's/$/ /' >conftest.defines
34776 # Then, protect against being on the right side of a sed subst, or in
34777 # an unquoted here document, in config.status. If some macros were
34778 # called several times there might be several #defines for the same
34779 # symbol, which is useless. But do not sort them, since the last
34780 # AC_DEFINE must be honored.
34781 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34782 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34783 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34784 # PARAMS is the parameter list in the macro definition--in most cases, it's
34785 # just an empty string.
34786 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34787 ac_dB='\\)[ (].*,\\1define\\2'
34795 s/^[ ]*#[ ]*define[ ][ ]*//
34800 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34801 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34802 ' >>conftest.defines
34804 # Remove the space that was appended to ease matching.
34805 # Then replace #undef with comments. This is necessary, for
34806 # example, in the case of _POSIX_SOURCE, which is predefined and required
34807 # on some systems where configure will not decide to define it.
34808 # (The regexp can be short, since the line contains either #define or #undef.)
34810 s,^[ #]*u.*,/* & */,' >>conftest.defines
34812 # Break up conftest.defines:
34813 ac_max_sed_lines=50
34815 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34816 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34817 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34819 ac_in='$ac_file_inputs'
34820 ac_out='"$tmp/out1"'
34821 ac_nxt='"$tmp/out2"'
34825 # Write a here document:
34826 cat >>$CONFIG_STATUS <<_ACEOF
34827 # First, check the format of the line:
34828 cat >"\$tmp/defines.sed" <<\\CEOF
34829 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34830 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34834 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34836 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34837 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34838 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34839 grep . conftest.tail >/dev/null || break
34840 rm -f conftest.defines
34841 mv conftest.tail conftest.defines
34843 rm -f conftest.defines conftest.tail
34845 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34846 cat >>$CONFIG_STATUS <<\_ACEOF
34847 if test x"$ac_file" != x-; then
34848 echo "/* $configure_input */" >"$tmp/config.h"
34849 cat "$ac_result" >>"$tmp/config.h"
34850 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34851 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34852 echo "$as_me: $ac_file is unchanged" >&6;}
34855 mv "$tmp/config.h" $ac_file
34858 echo "/* $configure_input */"
34864 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34865 echo "$as_me: executing $ac_file commands" >&6;}
34870 case $ac_file$ac_mode in
34871 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34872 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34873 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34874 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34875 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34876 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34877 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34878 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34879 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34880 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34881 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34882 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34883 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34884 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34885 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34886 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34887 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34888 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34889 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34890 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34896 { (exit 0); exit 0; }
34898 chmod +x $CONFIG_STATUS
34899 ac_clean_files=$ac_clean_files_save
34902 # configure is writing to config.log, and then calls config.status.
34903 # config.status does its own redirection, appending to config.log.
34904 # Unfortunately, on DOS this fails, as config.log is still kept open
34905 # by configure, so config.status won't be able to write to it; its
34906 # output is simply discarded. So we exec the FD to /dev/null,
34907 # effectively closing config.log, so it can be properly (re)opened and
34908 # appended to by config.status. When coming back to configure, we
34909 # need to make the FD available again.
34910 if test "$no_create" != yes; then
34912 ac_config_status_args=
34913 test "$silent" = yes &&
34914 ac_config_status_args="$ac_config_status_args --quiet"
34916 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34918 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34919 # would make configure fail if this is the last instruction.
34920 $ac_cs_success || { (exit 1); exit 1; }
34924 # CONFIG_SUBDIRS section.
34926 if test "$no_recursion" != yes; then
34928 # Remove --cache-file and --srcdir arguments so they do not pile up.
34929 ac_sub_configure_args=
34931 eval "set x $ac_configure_args"
34935 if test -n "$ac_prev"; then
34940 -cache-file | --cache-file | --cache-fil | --cache-fi \
34941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34942 ac_prev=cache_file ;;
34943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34947 --config-cache | -C)
34949 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34951 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34959 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34961 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34965 # Always prepend --prefix to ensure using the same prefix
34966 # in subdir configurations.
34967 ac_arg="--prefix=$prefix"
34969 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34971 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34974 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34976 # Do not complain, so a configure script can configure whichever
34977 # parts of a large source tree are present.
34978 test -d "$srcdir/$ac_dir" || continue
34980 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34981 echo "$as_me:$LINENO: $ac_msg" >&5
34985 -*) as_dir=./$as_dir;;
34987 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34991 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34992 *) as_qdir=$as_dir;;
34994 as_dirs="'$as_qdir' $as_dirs"
34995 as_dir=`$as_dirname -- "$as_dir" ||
34996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34997 X"$as_dir" : 'X\(//\)[^/]' \| \
34998 X"$as_dir" : 'X\(//\)$' \| \
34999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35005 /^X\(\/\/\)[^/].*/{
35018 test -d "$as_dir" && break
35020 test -z "$as_dirs" || eval "mkdir $as_dirs"
35021 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35022 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35023 { (exit 1); exit 1; }; }; }
35027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35030 # A ".." for each directory in $ac_dir_suffix.
35031 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35032 case $ac_top_builddir_sub in
35033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35037 ac_abs_top_builddir=$ac_pwd
35038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35039 # for backward compatibility:
35040 ac_top_builddir=$ac_top_build_prefix
35043 .) # We are building in place.
35045 ac_top_srcdir=$ac_top_builddir_sub
35046 ac_abs_top_srcdir=$ac_pwd ;;
35047 [\\/]* | ?:[\\/]* ) # Absolute name.
35048 ac_srcdir=$srcdir$ac_dir_suffix;
35049 ac_top_srcdir=$srcdir
35050 ac_abs_top_srcdir=$srcdir ;;
35051 *) # Relative name.
35052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35053 ac_top_srcdir=$ac_top_build_prefix$srcdir
35054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35061 # Check for guested configure; otherwise get Cygnus style configure.
35062 if test -f "$ac_srcdir/configure.gnu"; then
35063 ac_sub_configure=$ac_srcdir/configure.gnu
35064 elif test -f "$ac_srcdir/configure"; then
35065 ac_sub_configure=$ac_srcdir/configure
35066 elif test -f "$ac_srcdir/configure.in"; then
35067 # This should be Cygnus configure.
35068 ac_sub_configure=$ac_aux_dir/configure
35070 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35071 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35075 # The recursion is here.
35076 if test -n "$ac_sub_configure"; then
35077 # Make the cache file name correct relative to the subdirectory.
35078 case $cache_file in
35079 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35080 *) # Relative name.
35081 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35084 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35085 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35086 # The eval makes quoting arguments work.
35087 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35088 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35089 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35090 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35091 { (exit 1); exit 1; }; }