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="HP-UX"
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="Interix"
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="Linux"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,-z,allextract"
2275 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2276 llvm_cv_os_type="SunOS"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Win32"
2282 llvm_cv_platform_type="Win32" ;;
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="MingW"
2287 llvm_cv_platform_type="Win32" ;;
2289 llvm_cv_link_all_option=""
2290 llvm_cv_no_link_all_option=""
2291 llvm_cv_os_type="Unknown"
2292 llvm_cv_platform_type="Unknown" ;;
2295 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2298 if test "$llvm_cv_os_type" = "Unknown" ; then
2299 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2300 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2301 { (exit 1); exit 1; }; }
2307 LINKALL=$llvm_cv_link_all_option
2309 NOLINKALL=$llvm_cv_no_link_all_option
2312 case $llvm_cv_platform_type in
2315 cat >>confdefs.h <<\_ACEOF
2316 #define LLVM_ON_UNIX 1
2326 cat >>confdefs.h <<\_ACEOF
2327 #define LLVM_ON_WIN32 1
2337 { echo "$as_me:$LINENO: checking target architecture" >&5
2338 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2339 if test "${llvm_cv_target_arch+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 i?86-*) llvm_cv_target_arch="x86" ;;
2344 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2345 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2346 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2347 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2348 ia64-*) llvm_cv_target_arch="IA64" ;;
2349 *) llvm_cv_target_arch="Unknown" ;;
2352 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2353 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2355 if test "$llvm_cv_target_arch" = "Unknown" ; then
2356 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2357 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2360 ARCH=$llvm_cv_target_arch
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 if test -n "$CC"; then
2398 { echo "$as_me:$LINENO: result: $CC" >&5
2399 echo "${ECHO_T}$CC" >&6; }
2401 { echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6; }
2407 if test -z "$ac_cv_prog_CC"; then
2409 # Extract the first word of "gcc", so it can be a program name with args.
2410 set dummy gcc; ac_word=$2
2411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$ac_ct_CC"; then
2417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_ac_ct_CC="gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437 if test -n "$ac_ct_CC"; then
2438 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439 echo "${ECHO_T}$ac_ct_CC" >&6; }
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2445 if test "x$ac_ct_CC" = x; then
2448 case $cross_compiling:$ac_tool_warned in
2450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2451 whose name does not start with the host triplet. If you think this
2452 configuration is useful to you, please write to autoconf@gnu.org." >&5
2453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2454 whose name does not start with the host triplet. If you think this
2455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2456 ac_tool_warned=yes ;;
2464 if test -z "$CC"; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}cc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="${ac_tool_prefix}cc"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 if test -n "$CC"; then
2495 { echo "$as_me:$LINENO: result: $CC" >&5
2496 echo "${ECHO_T}$CC" >&6; }
2498 { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2505 if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507 set dummy cc; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2540 if test $# != 0; then
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2551 if test -n "$CC"; then
2552 { echo "$as_me:$LINENO: result: $CC" >&5
2553 echo "${ECHO_T}$CC" >&6; }
2555 { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 for ac_prog in cl.exe
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 if test -n "$CC"; then
2594 { echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6; }
2597 { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2602 test -n "$CC" && break
2605 if test -z "$CC"; then
2607 for ac_prog in cl.exe
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639 echo "${ECHO_T}$ac_ct_CC" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2646 test -n "$ac_ct_CC" && break
2649 if test "x$ac_ct_CC" = x; then
2652 case $cross_compiling:$ac_tool_warned in
2654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet. If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&5
2657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2658 whose name does not start with the host triplet. If you think this
2659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2660 ac_tool_warned=yes ;;
2669 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: no acceptable C compiler found in \$PATH
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2675 # Provide some information about the compiler.
2676 echo "$as_me:$LINENO: checking for C compiler version" >&5
2677 ac_compiler=`set X $ac_compile; echo $2`
2678 { (ac_try="$ac_compiler --version >&5"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler --version >&5") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (ac_try="$ac_compiler -v >&5"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler -v >&5") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (ac_try="$ac_compiler -V >&5"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compiler -V >&5") 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2724 ac_clean_files_save=$ac_clean_files
2725 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2726 # Try to create an executable without -o first, disregard a.out.
2727 # It will help us diagnose broken compilers, and finding out an intuition
2729 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2730 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2731 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2733 # List of possible output files, starting from the most likely.
2734 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2735 # only as a last resort. b.out is created by i960 compilers.
2736 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2738 # The IRIX 6 linker writes into existing files which may not be
2739 # executable, retaining their permissions. Remove them first so a
2740 # subsequent execution test works.
2742 for ac_file in $ac_files
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2751 if { (ac_try="$ac_link_default"
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_link_default") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; then
2761 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2762 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2763 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2764 # so that the user can short-circuit this test for compilers unknown to
2766 for ac_file in $ac_files
2768 test -f "$ac_file" || continue
2770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2773 # We found the default executable, but exeext='' is most
2777 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2779 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781 # We set ac_cv_exeext here because the later test for it is not
2782 # safe: cross compilers may not add the suffix if given an `-o'
2783 # argument, so we may need to know it at that point already.
2784 # Even if this section looks crufty: it has the advantage of
2791 test "$ac_cv_exeext" = no && ac_cv_exeext=
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: C compiler cannot create executables
2800 See \`config.log' for more details." >&2;}
2801 { (exit 77); exit 77; }; }
2804 ac_exeext=$ac_cv_exeext
2805 { echo "$as_me:$LINENO: result: $ac_file" >&5
2806 echo "${ECHO_T}$ac_file" >&6; }
2808 # Check that the compiler produces executables we can run. If not, either
2809 # the compiler is broken, or we cross compile.
2810 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2813 # If not cross compiling, check that we can run a simple program.
2814 if test "$cross_compiling" != yes; then
2815 if { ac_try='./$ac_file'
2816 { (case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_try") 2>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2827 if test "$cross_compiling" = maybe; then
2830 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2831 If you meant to cross compile, use \`--host'.
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: cannot run C compiled programs.
2834 If you meant to cross compile, use \`--host'.
2835 See \`config.log' for more details." >&2;}
2836 { (exit 1); exit 1; }; }
2840 { echo "$as_me:$LINENO: result: yes" >&5
2841 echo "${ECHO_T}yes" >&6; }
2843 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2844 ac_clean_files=$ac_clean_files_save
2845 # Check that the compiler produces executables we can run. If not, either
2846 # the compiler is broken, or we cross compile.
2847 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2848 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2849 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2850 echo "${ECHO_T}$cross_compiling" >&6; }
2852 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2853 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2854 if { (ac_try="$ac_link"
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2860 (eval "$ac_link") 2>&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; then
2864 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2865 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2866 # work properly (i.e., refer to `conftest.exe'), while it won't with
2868 for ac_file in conftest.exe conftest conftest.*; do
2869 test -f "$ac_file" || continue
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2872 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." >&5
2880 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2881 See \`config.log' for more details." >&2;}
2882 { (exit 1); exit 1; }; }
2885 rm -f conftest$ac_cv_exeext
2886 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2887 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2889 rm -f conftest.$ac_ext
2890 EXEEXT=$ac_cv_exeext
2892 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2893 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2894 if test "${ac_cv_objext+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2912 rm -f conftest.o conftest.obj
2913 if { (ac_try="$ac_compile"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compile") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; then
2923 for ac_file in conftest.o conftest.obj conftest.*; do
2924 test -f "$ac_file" || continue;
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2936 See \`config.log' for more details." >&5
2937 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2938 See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }
2942 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2944 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2945 echo "${ECHO_T}$ac_cv_objext" >&6; }
2946 OBJEXT=$ac_cv_objext
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3017 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3019 GCC=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CFLAGS=${CFLAGS+set}
3021 ac_save_CFLAGS=$CFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3023 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cc_g+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_save_c_werror_flag=$ac_c_werror_flag
3028 ac_c_werror_flag=yes
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3210 if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212 elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3219 if test "$GCC" = yes; then
3225 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3226 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3227 if test "${ac_cv_prog_cc_c89+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 ac_cv_prog_cc_c89=no
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3240 #include <sys/types.h>
3241 #include <sys/stat.h>
3242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243 struct buf { int x; };
3244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245 static char *e (p, i)
3251 static char *f (char * (*g) (char **, int), char **p, ...)
3256 s = g (p, va_arg (v,int));
3261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
3264 as 'x'. The following induces an error, until -std is added to get
3265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
3267 that's true only with -std. */
3268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271 inside strings and character constants. */
3273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3275 int test (int i, double x);
3276 struct s1 {int (*f) (int a);};
3277 struct s2 {int (*f) (double a);};
3278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3292 CC="$ac_save_CC $ac_arg"
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3308 { (case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_try") 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_try") 2>&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_cv_prog_cc_c89=$ac_arg
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3335 rm -f core conftest.err conftest.$ac_objext
3336 test "x$ac_cv_prog_cc_c89" != "xno" && break
3338 rm -f conftest.$ac_ext
3343 case "x$ac_cv_prog_cc_c89" in
3345 { echo "$as_me:$LINENO: result: none needed" >&5
3346 echo "${ECHO_T}none needed" >&6; } ;;
3348 { echo "$as_me:$LINENO: result: unsupported" >&5
3349 echo "${ECHO_T}unsupported" >&6; } ;;
3351 CC="$CC $ac_cv_prog_cc_c89"
3352 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3353 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3370 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3371 # On Suns, sometimes $CPP names a directory.
3372 if test -n "$CPP" && test -d "$CPP"; then
3375 if test -z "$CPP"; then
3376 if test "${ac_cv_prog_CPP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 # Double quotes because CPP needs to be expanded
3380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3383 for ac_c_preproc_warn_flag in '' yes
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3398 # include <limits.h>
3400 # include <assert.h>
3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 if test -z "$ac_cpp_err"; then
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Broken: fails on valid input.
3436 rm -f conftest.err conftest.$ac_ext
3438 # OK, works on sane cases. Now check whether nonexistent headers
3439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3448 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 if test -z "$ac_cpp_err"; then
3471 # Broken: success on invalid input.
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 # Passes both tests.
3482 rm -f conftest.err conftest.$ac_ext
3485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486 rm -f conftest.err conftest.$ac_ext
3487 if $ac_preproc_ok; then
3499 { echo "$as_me:$LINENO: result: $CPP" >&5
3500 echo "${ECHO_T}$CPP" >&6; }
3502 for ac_c_preproc_warn_flag in '' yes
3504 # Use a header file that comes with gcc, so configuring glibc
3505 # with a fresh cross-compiler works.
3506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507 # <limits.h> exists even on freestanding compilers.
3508 # On the NeXT, cc -E runs the code through the compiler's parser,
3509 # not just through cpp. "Syntax error" is here to catch this case.
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3517 # include <limits.h>
3519 # include <assert.h>
3523 if { (ac_try="$ac_cpp conftest.$ac_ext"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null; then
3536 if test -s conftest.err; then
3537 ac_cpp_err=$ac_c_preproc_warn_flag
3538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545 if test -z "$ac_cpp_err"; then
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 # Broken: fails on valid input.
3555 rm -f conftest.err conftest.$ac_ext
3557 # OK, works on sane cases. Now check whether nonexistent headers
3558 # can be detected and how.
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <ac_nonexistent.h>
3567 if { (ac_try="$ac_cpp conftest.$ac_ext"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 if test -z "$ac_cpp_err"; then
3590 # Broken: success on invalid input.
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 # Passes both tests.
3601 rm -f conftest.err conftest.$ac_ext
3604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3605 rm -f conftest.err conftest.$ac_ext
3606 if $ac_preproc_ok; then
3609 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details." >&5
3611 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3612 See \`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3624 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3625 if test "${ac_cv_path_GREP+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 # Extract the first word of "grep ggrep" to use in msg output
3629 if test -z "$GREP"; then
3630 set dummy grep ggrep; ac_prog_name=$2
3631 if test "${ac_cv_path_GREP+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 ac_path_GREP_found=false
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3640 test -z "$as_dir" && as_dir=.
3641 for ac_prog in grep ggrep; do
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3644 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3645 # Check for GNU ac_path_GREP and select it if it is found.
3646 # Check for GNU $ac_path_GREP
3647 case `"$ac_path_GREP" --version 2>&1` in
3649 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3652 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
3658 echo 'GREP' >> "conftest.nl"
3659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661 ac_count=`expr $ac_count + 1`
3662 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_GREP="$ac_path_GREP"
3665 ac_path_GREP_max=$ac_count
3667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3674 $ac_path_GREP_found && break 3
3684 GREP="$ac_cv_path_GREP"
3685 if test -z "$GREP"; then
3686 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3687 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3688 { (exit 1); exit 1; }; }
3692 ac_cv_path_GREP=$GREP
3697 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3698 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3699 GREP="$ac_cv_path_GREP"
3702 { echo "$as_me:$LINENO: checking for egrep" >&5
3703 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3704 if test "${ac_cv_path_EGREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3708 then ac_cv_path_EGREP="$GREP -E"
3710 # Extract the first word of "egrep" to use in msg output
3711 if test -z "$EGREP"; then
3712 set dummy egrep; ac_prog_name=$2
3713 if test "${ac_cv_path_EGREP+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 ac_path_EGREP_found=false
3717 # Loop through the user's path and test for each of PROGNAME-LIST
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3722 test -z "$as_dir" && as_dir=.
3723 for ac_prog in egrep; do
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3726 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3727 # Check for GNU ac_path_EGREP and select it if it is found.
3728 # Check for GNU $ac_path_EGREP
3729 case `"$ac_path_EGREP" --version 2>&1` in
3731 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3734 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3737 cat "conftest.in" "conftest.in" >"conftest.tmp"
3738 mv "conftest.tmp" "conftest.in"
3739 cp "conftest.in" "conftest.nl"
3740 echo 'EGREP' >> "conftest.nl"
3741 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3743 ac_count=`expr $ac_count + 1`
3744 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3745 # Best one so far, save it but keep looking for a better one
3746 ac_cv_path_EGREP="$ac_path_EGREP"
3747 ac_path_EGREP_max=$ac_count
3749 # 10*(2^10) chars as input seems more than enough
3750 test $ac_count -gt 10 && break
3752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756 $ac_path_EGREP_found && break 3
3766 EGREP="$ac_cv_path_EGREP"
3767 if test -z "$EGREP"; then
3768 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3769 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3770 { (exit 1); exit 1; }; }
3774 ac_cv_path_EGREP=$EGREP
3780 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3781 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3782 EGREP="$ac_cv_path_EGREP"
3785 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3786 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3787 if test "${ac_cv_header_stdc+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3809 rm -f conftest.$ac_objext
3810 if { (ac_try="$ac_compile"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_compile") 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3824 { (case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_try") 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest.$ac_objext'
3834 { (case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_try") 2>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_cv_header_stdc=yes
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ac_cv_header_stdc=no
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 if test $ac_cv_header_stdc = yes; then
3854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865 $EGREP "memchr" >/dev/null 2>&1; then
3868 ac_cv_header_stdc=no
3874 if test $ac_cv_header_stdc = yes; then
3875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886 $EGREP "free" >/dev/null 2>&1; then
3889 ac_cv_header_stdc=no
3895 if test $ac_cv_header_stdc = yes; then
3896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3897 if test "$cross_compiling" = yes; then
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3908 #if ((' ' & 0x0FF) == 0x020)
3909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3912 # define ISLOWER(c) \
3913 (('a' <= (c) && (c) <= 'i') \
3914 || ('j' <= (c) && (c) <= 'r') \
3915 || ('s' <= (c) && (c) <= 'z'))
3916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3924 for (i = 0; i < 256; i++)
3925 if (XOR (islower (i), ISLOWER (i))
3926 || toupper (i) != TOUPPER (i))
3931 rm -f conftest$ac_exeext
3932 if { (ac_try="$ac_link"
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_link") 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3942 { (case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_try") 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3953 echo "$as_me: program exited with status $ac_status" >&5
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3958 ac_cv_header_stdc=no
3960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3966 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3967 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3968 if test $ac_cv_header_stdc = yes; then
3970 cat >>confdefs.h <<\_ACEOF
3971 #define STDC_HEADERS 1
3976 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3987 inttypes.h stdint.h unistd.h
3989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 cat >conftest.$ac_ext <<_ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4001 $ac_includes_default
4003 #include <$ac_header>
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4020 { (case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_try") 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_try") 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 eval "$as_ac_Header=yes"
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 eval "$as_ac_Header=no"
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 ac_res=`eval echo '${'$as_ac_Header'}'`
4050 { echo "$as_me:$LINENO: result: $ac_res" >&5
4051 echo "${ECHO_T}$ac_res" >&6; }
4052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4063 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4064 if test "${ac_cv_c_bigendian+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 # See if sys/param.h defines the BYTE_ORDER macro.
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <sys/types.h>
4075 #include <sys/param.h>
4080 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4088 rm -f conftest.$ac_objext
4089 if { (ac_try="$ac_compile"
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_try") 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 # It does; now see whether it defined to BIG_ENDIAN or not.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <sys/types.h>
4130 #include <sys/param.h>
4135 #if BYTE_ORDER != BIG_ENDIAN
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_c_bigendian=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_c_bigendian=no
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 # It does not; compile a test program.
4191 if test "$cross_compiling" = yes; then
4192 # try to guess the endianness by grepping values into an object file
4193 ac_cv_c_bigendian=unknown
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4201 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4202 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4203 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4204 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4205 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4209 _ascii (); _ebcdic ();
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4249 ac_cv_c_bigendian=yes
4251 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4252 if test "$ac_cv_c_bigendian" = unknown; then
4253 ac_cv_c_bigendian=no
4255 # finding both strings is unlikely to happen, but who knows?
4256 ac_cv_c_bigendian=unknown
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4279 /* Are we little or big endian? From Harbison&Steele. */
4283 char c[sizeof (long int)];
4286 return u.c[sizeof (long int) - 1] == 1;
4292 rm -f conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_link") 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_c_bigendian=no
4314 echo "$as_me: program exited with status $ac_status" >&5
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4319 ac_cv_c_bigendian=yes
4321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4330 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4331 case $ac_cv_c_bigendian in
4339 { { echo "$as_me:$LINENO: error: unknown endianness
4340 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4341 echo "$as_me: error: unknown endianness
4342 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4343 { (exit 1); exit 1; }; } ;;
4347 if test "$cross_compiling" = yes; then
4348 LLVM_CROSS_COMPILING=1
4351 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4352 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4353 if test "${ac_cv_build_exeext+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4357 ac_cv_build_exeext=.exe
4359 ac_build_prefix=${build_alias}-
4361 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4362 set dummy ${ac_build_prefix}gcc; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$BUILD_CC"; then
4369 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 BUILD_CC=$ac_cv_prog_BUILD_CC
4389 if test -n "$BUILD_CC"; then
4390 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4391 echo "${ECHO_T}$BUILD_CC" >&6; }
4393 { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4398 if test -z "$BUILD_CC"; then
4399 # Extract the first word of "gcc", so it can be a program name with args.
4400 set dummy gcc; ac_word=$2
4401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4403 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 if test -n "$BUILD_CC"; then
4407 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_BUILD_CC="gcc"
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 BUILD_CC=$ac_cv_prog_BUILD_CC
4427 if test -n "$BUILD_CC"; then
4428 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4429 echo "${ECHO_T}$BUILD_CC" >&6; }
4431 { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }
4436 if test -z "$BUILD_CC"; then
4437 # Extract the first word of "cc", so it can be a program name with args.
4438 set dummy cc; ac_word=$2
4439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4441 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test -n "$BUILD_CC"; then
4445 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4456 ac_prog_rejected=yes
4459 ac_cv_prog_BUILD_CC="cc"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 if test $ac_prog_rejected = yes; then
4468 # We found a bogon in the path, so make sure we never use it.
4469 set dummy $ac_cv_prog_BUILD_CC
4471 if test $# != 0; then
4472 # We chose a different compiler from the bogus one.
4473 # However, it has the same basename, so the bogon will be chosen
4474 # first if we set BUILD_CC to just the basename; use the full file name.
4476 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4481 BUILD_CC=$ac_cv_prog_BUILD_CC
4482 if test -n "$BUILD_CC"; then
4483 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4484 echo "${ECHO_T}$BUILD_CC" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4493 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4494 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4495 { (exit 1); exit 1; }; }
4496 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4498 echo 'int main () { return 0; }' > conftest.$ac_ext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4501 (eval $ac_build_link) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; then
4505 for file in conftest.*; do
4507 *.c | *.o | *.obj) ;;
4508 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4512 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4513 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4514 { (exit 1); exit 1; }; }
4517 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4522 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4523 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4524 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4525 ac_build_exeext=$BUILD_EXEEXT
4528 LLVM_CROSS_COMPILING=0
4532 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4543 # Check whether --enable-optimized was given.
4544 if test "${enable_optimized+set}" = set; then
4545 enableval=$enable_optimized;
4550 if test ${enableval} = "no" ; then
4554 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4558 # Check whether --enable-assertions was given.
4559 if test "${enable_assertions+set}" = set; then
4560 enableval=$enable_assertions;
4565 if test ${enableval} = "yes" ; then
4569 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4573 # Check whether --enable-debug-runtime was given.
4574 if test "${enable_debug_runtime+set}" = set; then
4575 enableval=$enable_debug_runtime;
4580 if test ${enableval} = "no" ; then
4584 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4588 # Check whether --enable-jit was given.
4589 if test "${enable_jit+set}" = set; then
4590 enableval=$enable_jit;
4595 if test ${enableval} = "no"
4600 case "$llvm_cv_target_arch" in
4601 x86) TARGET_HAS_JIT=1
4603 Sparc) TARGET_HAS_JIT=1
4605 PowerPC) TARGET_HAS_JIT=1
4607 x86_64) TARGET_HAS_JIT=0
4609 Alpha) TARGET_HAS_JIT=1
4611 IA64) TARGET_HAS_JIT=0
4618 # Check whether --enable-doxygen was given.
4619 if test "${enable_doxygen+set}" = set; then
4620 enableval=$enable_doxygen;
4625 case "$enableval" in
4626 yes) ENABLE_DOXYGEN=1
4628 no) ENABLE_DOXYGEN=0
4630 default) ENABLE_DOXYGEN=0
4632 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4633 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4634 { (exit 1); exit 1; }; } ;;
4637 # Check whether --enable-threads was given.
4638 if test "${enable_threads+set}" = set; then
4639 enableval=$enable_threads;
4644 case "$enableval" in
4645 yes) ENABLE_THREADS=1
4647 no) ENABLE_THREADS=0
4649 default) ENABLE_THREADS=1
4651 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4652 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4653 { (exit 1); exit 1; }; } ;;
4656 cat >>confdefs.h <<_ACEOF
4657 #define ENABLE_THREADS $ENABLE_THREADS
4661 # Check whether --enable-pic was given.
4662 if test "${enable_pic+set}" = set; then
4663 enableval=$enable_pic;
4668 case "$enableval" in
4673 default) ENABLE_PIC=0
4675 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4676 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4680 cat >>confdefs.h <<_ACEOF
4681 #define ENABLE_PIC $ENABLE_PIC
4686 # Check whether --enable-targets was given.
4687 if test "${enable_targets+set}" = set; then
4688 enableval=$enable_targets;
4693 case "$enableval" in
4694 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4696 case "$llvm_cv_target_arch" in
4697 x86) TARGETS_TO_BUILD="X86" ;;
4698 x86_64) TARGETS_TO_BUILD="X86" ;;
4699 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4700 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4701 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4702 IA64) TARGETS_TO_BUILD="IA64" ;;
4703 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4704 echo "$as_me: error: Can not set target to build" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4708 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4710 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4711 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4712 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4713 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4714 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4715 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4716 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4717 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4723 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4724 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4727 # Check whether --enable-cbe-printf-a was given.
4728 if test "${enable_cbe_printf_a+set}" = set; then
4729 enableval=$enable_cbe_printf_a;
4734 case "$enableval" in
4735 yes) ENABLE_CBE_PRINTF_A=1
4737 no) ENABLE_CBE_PRINTF_A=0
4739 default) ENABLE_CBE_PRINTF_A=1
4741 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4742 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4743 { (exit 1); exit 1; }; } ;;
4746 cat >>confdefs.h <<_ACEOF
4747 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4752 # Check whether --with-llvmgccdir was given.
4753 if test "${with_llvmgccdir+set}" = set; then
4754 withval=$with_llvmgccdir;
4760 default) WITH_LLVMGCCDIR=default ;;
4761 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4762 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4763 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4764 { (exit 1); exit 1; }; } ;;
4768 # Check whether --with-extra-options was given.
4769 if test "${with_extra_options+set}" = set; then
4770 withval=$with_extra_options;
4776 default) EXTRA_OPTIONS= ;;
4777 *) EXTRA_OPTIONS=$withval ;;
4779 EXTRA_OPTIONS=$EXTRA_OPTIONS
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4790 # On Suns, sometimes $CPP names a directory.
4791 if test -n "$CPP" && test -d "$CPP"; then
4794 if test -z "$CPP"; then
4795 if test "${ac_cv_prog_CPP+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 # Double quotes because CPP needs to be expanded
4799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4802 for ac_c_preproc_warn_flag in '' yes
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 # include <limits.h>
4819 # include <assert.h>
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null; then
4836 if test -s conftest.err; then
4837 ac_cpp_err=$ac_c_preproc_warn_flag
4838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4845 if test -z "$ac_cpp_err"; then
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 # Broken: fails on valid input.
4855 rm -f conftest.err conftest.$ac_ext
4857 # OK, works on sane cases. Now check whether nonexistent headers
4858 # can be detected and how.
4859 cat >conftest.$ac_ext <<_ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <ac_nonexistent.h>
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 grep -v '^ *+' conftest.er1 >conftest.err
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_c_preproc_warn_flag
4882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4889 if test -z "$ac_cpp_err"; then
4890 # Broken: success on invalid input.
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 # Passes both tests.
4901 rm -f conftest.err conftest.$ac_ext
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then
4918 { echo "$as_me:$LINENO: result: $CPP" >&5
4919 echo "${ECHO_T}$CPP" >&6; }
4921 for ac_c_preproc_warn_flag in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4936 # include <limits.h>
4938 # include <assert.h>
4942 if { (ac_try="$ac_cpp conftest.$ac_ext"
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4950 grep -v '^ *+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null; then
4955 if test -s conftest.err; then
4956 ac_cpp_err=$ac_c_preproc_warn_flag
4957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4964 if test -z "$ac_cpp_err"; then
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 # Broken: fails on valid input.
4974 rm -f conftest.err conftest.$ac_ext
4976 # OK, works on sane cases. Now check whether nonexistent headers
4977 # can be detected and how.
4978 cat >conftest.$ac_ext <<_ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <ac_nonexistent.h>
4986 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_c_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5008 if test -z "$ac_cpp_err"; then
5009 # Broken: success on invalid input.
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 # Passes both tests.
5020 rm -f conftest.err conftest.$ac_ext
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then
5028 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5029 See \`config.log' for more details." >&5
5030 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5031 See \`config.log' for more details." >&2;}
5032 { (exit 1); exit 1; }; }
5036 ac_cpp='$CPP $CPPFLAGS'
5037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 if test -n "$ac_tool_prefix"; then
5049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_CC+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$CC"; then
5057 ac_cv_prog_CC="$CC" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 if test -n "$CC"; then
5078 { echo "$as_me:$LINENO: result: $CC" >&5
5079 echo "${ECHO_T}$CC" >&6; }
5081 { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5086 test -n "$CC" && break
5089 if test -z "$CC"; then
5093 # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 if test -n "$ac_ct_CC"; then
5101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_ac_ct_CC="$ac_prog"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121 if test -n "$ac_ct_CC"; then
5122 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123 echo "${ECHO_T}$ac_ct_CC" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5130 test -n "$ac_ct_CC" && break
5133 if test "x$ac_ct_CC" = x; then
5136 case $cross_compiling:$ac_tool_warned in
5138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet. If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&5
5141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5142 whose name does not start with the host triplet. If you think this
5143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5144 ac_tool_warned=yes ;;
5151 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5152 See \`config.log' for more details." >&5
5153 echo "$as_me: error: no acceptable C compiler found in \$PATH
5154 See \`config.log' for more details." >&2;}
5155 { (exit 1); exit 1; }; }
5157 # Provide some information about the compiler.
5158 echo "$as_me:$LINENO: checking for C compiler version" >&5
5159 ac_compiler=`set X $ac_compile; echo $2`
5160 { (ac_try="$ac_compiler --version >&5"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_compiler --version >&5") 2>&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }
5170 { (ac_try="$ac_compiler -v >&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 -v >&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); }
5191 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5192 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5214 rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compile") 2>conftest.er1
5223 grep -v '^ *+' conftest.er1 >conftest.err
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5229 { (case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_try") 2>&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5260 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5261 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5262 GCC=`test $ac_compiler_gnu = yes && echo yes`
5263 ac_test_CFLAGS=${CFLAGS+set}
5264 ac_save_CFLAGS=$CFLAGS
5265 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5266 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5267 if test "${ac_cv_prog_cc_g+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 ac_save_c_werror_flag=$ac_c_werror_flag
5271 ac_c_werror_flag=yes
5274 cat >conftest.$ac_ext <<_ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5289 rm -f conftest.$ac_objext
5290 if { (ac_try="$ac_compile"
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5304 { (case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5353 grep -v '^ *+' conftest.er1 >conftest.err
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_try") 2>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; } &&
5368 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_c_werror_flag=$ac_save_c_werror_flag
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5400 rm -f conftest.$ac_objext
5401 if { (ac_try="$ac_compile"
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5415 { (case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_try") 2>&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 ac_c_werror_flag=$ac_save_c_werror_flag
5451 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5453 if test "$ac_test_CFLAGS" = set; then
5454 CFLAGS=$ac_save_CFLAGS
5455 elif test $ac_cv_prog_cc_g = yes; then
5456 if test "$GCC" = yes; then
5462 if test "$GCC" = yes; then
5468 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5469 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5470 if test "${ac_cv_prog_cc_c89+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 ac_cv_prog_cc_c89=no
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5483 #include <sys/types.h>
5484 #include <sys/stat.h>
5485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5486 struct buf { int x; };
5487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5488 static char *e (p, i)
5494 static char *f (char * (*g) (char **, int), char **p, ...)
5499 s = g (p, va_arg (v,int));
5504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5505 function prototypes and stuff, but not '\xHH' hex character constants.
5506 These don't provoke an error unfortunately, instead are silently treated
5507 as 'x'. The following induces an error, until -std is added to get
5508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5509 array size at least. It's necessary to write '\x00'==0 to get something
5510 that's true only with -std. */
5511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5513 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5514 inside strings and character constants. */
5516 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5518 int test (int i, double x);
5519 struct s1 {int (*f) (int a);};
5520 struct s2 {int (*f) (double a);};
5521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5532 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5533 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5535 CC="$ac_save_CC $ac_arg"
5536 rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5551 { (case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_try") 2>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5570 ac_cv_prog_cc_c89=$ac_arg
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5578 rm -f core conftest.err conftest.$ac_objext
5579 test "x$ac_cv_prog_cc_c89" != "xno" && break
5581 rm -f conftest.$ac_ext
5586 case "x$ac_cv_prog_cc_c89" in
5588 { echo "$as_me:$LINENO: result: none needed" >&5
5589 echo "${ECHO_T}none needed" >&6; } ;;
5591 { echo "$as_me:$LINENO: result: unsupported" >&5
5592 echo "${ECHO_T}unsupported" >&6; } ;;
5594 CC="$CC $ac_cv_prog_cc_c89"
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5601 ac_cpp='$CPP $CPPFLAGS'
5602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607 ac_cpp='$CXXCPP $CPPFLAGS'
5608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5611 if test -z "$CXX"; then
5612 if test -n "$CCC"; then
5615 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622 if test "${ac_cv_prog_CXX+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 if test -n "$CXX"; then
5626 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 if test -n "$CXX"; then
5647 { echo "$as_me:$LINENO: result: $CXX" >&5
5648 echo "${ECHO_T}$CXX" >&6; }
5650 { echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6; }
5655 test -n "$CXX" && break
5658 if test -z "$CXX"; then
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$ac_ct_CXX"; then
5670 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_ac_ct_CXX="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5690 if test -n "$ac_ct_CXX"; then
5691 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5692 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5694 { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5699 test -n "$ac_ct_CXX" && break
5702 if test "x$ac_ct_CXX" = x; then
5705 case $cross_compiling:$ac_tool_warned in
5707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708 whose name does not start with the host triplet. If you think this
5709 configuration is useful to you, please write to autoconf@gnu.org." >&5
5710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711 whose name does not start with the host triplet. If you think this
5712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5713 ac_tool_warned=yes ;;
5721 # Provide some information about the compiler.
5722 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5723 ac_compiler=`set X $ac_compile; echo $2`
5724 { (ac_try="$ac_compiler --version >&5"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compiler --version >&5") 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }
5734 { (ac_try="$ac_compiler -v >&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 -v >&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); }
5755 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5756 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5757 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5793 { (case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_try") 2>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5824 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5825 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5826 GXX=`test $ac_compiler_gnu = yes && echo yes`
5827 ac_test_CXXFLAGS=${CXXFLAGS+set}
5828 ac_save_CXXFLAGS=$CXXFLAGS
5829 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5830 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5831 if test "${ac_cv_prog_cxx_g+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5835 ac_cxx_werror_flag=yes
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5887 ac_cv_prog_cxx_g=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5893 cat >conftest.$ac_ext <<_ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5949 cat >conftest.$ac_ext <<_ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5998 ac_cv_prog_cxx_g=yes
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6015 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6016 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6017 if test "$ac_test_CXXFLAGS" = set; then
6018 CXXFLAGS=$ac_save_CXXFLAGS
6019 elif test $ac_cv_prog_cxx_g = yes; then
6020 if test "$GXX" = yes; then
6026 if test "$GXX" = yes; then
6033 ac_cpp='$CPP $CPPFLAGS'
6034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038 { echo "$as_me:$LINENO: checking " >&5
6039 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6040 if test "${ac_cv_has_flex+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 for ac_prog in flex lex
6045 # Extract the first word of "$ac_prog", so it can be a program name with args.
6046 set dummy $ac_prog; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_LEX+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$LEX"; then
6053 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_LEX="$ac_prog"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 if test -n "$LEX"; then
6074 { echo "$as_me:$LINENO: result: $LEX" >&5
6075 echo "${ECHO_T}$LEX" >&6; }
6077 { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6082 test -n "$LEX" && break
6084 test -n "$LEX" || LEX=":"
6086 if test -z "$LEXLIB"
6088 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6089 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6090 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 ac_check_lib_save_LIBS=$LIBS
6095 cat >conftest.$ac_ext <<_ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6102 /* Override any GCC internal prototype to avoid an error.
6103 Use char because int might match the return type of a GCC
6104 builtin and then its argument prototype would still apply. */
6117 rm -f conftest.$ac_objext conftest$ac_exeext
6118 if { (ac_try="$ac_link"
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_link") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6132 { (case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6151 ac_cv_lib_fl_yywrap=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_cv_lib_fl_yywrap=no
6159 rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6161 LIBS=$ac_check_lib_save_LIBS
6163 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6164 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6165 if test $ac_cv_lib_fl_yywrap = yes; then
6168 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6169 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6170 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 ac_check_lib_save_LIBS=$LIBS
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6182 /* Override any GCC internal prototype to avoid an error.
6183 Use char because int might match the return type of a GCC
6184 builtin and then its argument prototype would still apply. */
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_link") 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6212 { (case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_try") 2>&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6231 ac_cv_lib_l_yywrap=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 ac_cv_lib_l_yywrap=no
6239 rm -f core conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6243 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6244 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6245 if test $ac_cv_lib_l_yywrap = yes; then
6253 if test "x$LEX" != "x:"; then
6254 { echo "$as_me:$LINENO: checking lex output file root" >&5
6255 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6256 if test "${ac_cv_prog_lex_root+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 # The minimal lex program is just a single line: %%. But some broken lexes
6260 # (Solaris, I think it was) want two %% lines, so accommodate them.
6261 cat >conftest.l <<_ACEOF
6265 { (ac_try="$LEX conftest.l"
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$LEX conftest.l") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6275 if test -f lex.yy.c; then
6276 ac_cv_prog_lex_root=lex.yy
6277 elif test -f lexyy.c; then
6278 ac_cv_prog_lex_root=lexyy
6280 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6281 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6282 { (exit 1); exit 1; }; }
6285 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6286 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6288 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6290 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6291 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 # POSIX says lex can declare yytext either as a pointer or an array; the
6296 # default is implementation-dependent. Figure out which it is, since
6297 # not all implementations provide the %pointer and %array declarations.
6298 ac_cv_prog_lex_yytext_pointer=no
6299 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6301 LIBS="$LIBS $LEXLIB"
6302 cat >conftest.$ac_ext <<_ACEOF
6303 `cat $LEX_OUTPUT_ROOT.c`
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (ac_try="$ac_link"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_link") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6339 ac_cv_prog_lex_yytext_pointer=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6347 rm -f core conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6350 rm -f "${LEX_OUTPUT_ROOT}.c"
6353 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6354 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6355 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6357 cat >>confdefs.h <<\_ACEOF
6358 #define YYTEXT_POINTER 1
6366 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6367 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6368 if test "$LEX" != "flex"; then
6369 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6370 echo "$as_me: error: flex not found but required" >&2;}
6371 { (exit 1); exit 1; }; }
6377 { echo "$as_me:$LINENO: checking " >&5
6378 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6379 if test "${llvm_cv_has_bison+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 for ac_prog in 'bison -y' byacc
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385 set dummy $ac_prog; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_YACC+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 if test -n "$YACC"; then
6392 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_YACC="$ac_prog"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 YACC=$ac_cv_prog_YACC
6412 if test -n "$YACC"; then
6413 { echo "$as_me:$LINENO: result: $YACC" >&5
6414 echo "${ECHO_T}$YACC" >&6; }
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6421 test -n "$YACC" && break
6423 test -n "$YACC" || YACC="yacc"
6426 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6427 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6428 if test "$YACC" != "bison -y"; then
6430 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6431 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6437 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6438 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6439 if test "${lt_cv_path_NM+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 if test -n "$NM"; then
6443 # Let the user override the test.
6446 lt_nm_to_check="${ac_tool_prefix}nm"
6447 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6448 lt_nm_to_check="$lt_nm_to_check nm"
6450 for lt_tmp_nm in $lt_nm_to_check; do
6451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6452 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6454 test -z "$ac_dir" && ac_dir=.
6455 tmp_nm="$ac_dir/$lt_tmp_nm"
6456 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6457 # Check to see if the nm accepts a BSD-compat flag.
6458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6459 # nm: unknown option "B" ignored
6460 # Tru64's nm complains that /dev/null is an invalid object file
6461 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6462 */dev/null* | *'Invalid file or object type'*)
6463 lt_cv_path_NM="$tmp_nm -B"
6467 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6469 lt_cv_path_NM="$tmp_nm -p"
6473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6474 continue # so that we can try to find one that supports BSD flags
6483 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6486 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6487 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6492 { echo "$as_me:$LINENO: checking for GNU make" >&5
6493 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6494 if test "${llvm_cv_gnu_make_command+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 llvm_cv_gnu_make_command=''
6498 for a in "$MAKE" make gmake gnumake ; do
6499 if test -z "$a" ; then continue ; fi ;
6500 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6502 llvm_cv_gnu_make_command=$a ;
6507 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6508 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6509 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6513 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6514 echo "${ECHO_T}\"Not found\"" >&6; };
6518 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6519 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6521 if test "$LN_S" = "ln -s"; then
6522 { echo "$as_me:$LINENO: result: yes" >&5
6523 echo "${ECHO_T}yes" >&6; }
6525 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6526 echo "${ECHO_T}no, using $LN_S" >&6; }
6529 # Extract the first word of "cmp", so it can be a program name with args.
6530 set dummy cmp; ac_word=$2
6531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533 if test "${ac_cv_path_CMP+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6561 if test -n "$CMP"; then
6562 { echo "$as_me:$LINENO: result: $CMP" >&5
6563 echo "${ECHO_T}$CMP" >&6; }
6565 { echo "$as_me:$LINENO: result: no" >&5
6566 echo "${ECHO_T}no" >&6; }
6570 # Extract the first word of "cp", so it can be a program name with args.
6571 set dummy cp; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_path_CP+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6602 if test -n "$CP"; then
6603 { echo "$as_me:$LINENO: result: $CP" >&5
6604 echo "${ECHO_T}$CP" >&6; }
6606 { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6611 # Extract the first word of "date", so it can be a program name with args.
6612 set dummy date; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_path_DATE+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6642 DATE=$ac_cv_path_DATE
6643 if test -n "$DATE"; then
6644 { echo "$as_me:$LINENO: result: $DATE" >&5
6645 echo "${ECHO_T}$DATE" >&6; }
6647 { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6652 # Extract the first word of "find", so it can be a program name with args.
6653 set dummy find; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_path_FIND+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6683 FIND=$ac_cv_path_FIND
6684 if test -n "$FIND"; then
6685 { echo "$as_me:$LINENO: result: $FIND" >&5
6686 echo "${ECHO_T}$FIND" >&6; }
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6693 # Extract the first word of "grep", so it can be a program name with args.
6694 set dummy grep; ac_word=$2
6695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697 if test "${ac_cv_path_GREP+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6724 GREP=$ac_cv_path_GREP
6725 if test -n "$GREP"; then
6726 { echo "$as_me:$LINENO: result: $GREP" >&5
6727 echo "${ECHO_T}$GREP" >&6; }
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6734 # Extract the first word of "mkdir", so it can be a program name with args.
6735 set dummy mkdir; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_path_MKDIR+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6765 MKDIR=$ac_cv_path_MKDIR
6766 if test -n "$MKDIR"; then
6767 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6768 echo "${ECHO_T}$MKDIR" >&6; }
6770 { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6775 # Extract the first word of "mv", so it can be a program name with args.
6776 set dummy mv; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_MV+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6807 if test -n "$MV"; then
6808 { echo "$as_me:$LINENO: result: $MV" >&5
6809 echo "${ECHO_T}$MV" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_RANLIB+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 if test -n "$RANLIB"; then
6825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 RANLIB=$ac_cv_prog_RANLIB
6845 if test -n "$RANLIB"; then
6846 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6847 echo "${ECHO_T}$RANLIB" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6855 if test -z "$ac_cv_prog_RANLIB"; then
6856 ac_ct_RANLIB=$RANLIB
6857 # Extract the first word of "ranlib", so it can be a program name with args.
6858 set dummy ranlib; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 if test -n "$ac_ct_RANLIB"; then
6865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_ac_ct_RANLIB="ranlib"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6885 if test -n "$ac_ct_RANLIB"; then
6886 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6887 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6893 if test "x$ac_ct_RANLIB" = x; then
6896 case $cross_compiling:$ac_tool_warned in
6898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&5
6901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6902 whose name does not start with the host triplet. If you think this
6903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6904 ac_tool_warned=yes ;;
6906 RANLIB=$ac_ct_RANLIB
6909 RANLIB="$ac_cv_prog_RANLIB"
6912 # Extract the first word of "rm", so it can be a program name with args.
6913 set dummy rm; ac_word=$2
6914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6916 if test "${ac_cv_path_RM+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6944 if test -n "$RM"; then
6945 { echo "$as_me:$LINENO: result: $RM" >&5
6946 echo "${ECHO_T}$RM" >&6; }
6948 { echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6; }
6953 # Extract the first word of "sed", so it can be a program name with args.
6954 set dummy sed; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_path_SED+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6985 if test -n "$SED"; then
6986 { echo "$as_me:$LINENO: result: $SED" >&5
6987 echo "${ECHO_T}$SED" >&6; }
6989 { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6994 # Extract the first word of "tar", so it can be a program name with args.
6995 set dummy tar; ac_word=$2
6996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998 if test "${ac_cv_path_TAR+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7026 if test -n "$TAR"; then
7027 { echo "$as_me:$LINENO: result: $TAR" >&5
7028 echo "${ECHO_T}$TAR" >&6; }
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7035 # Extract the first word of "pwd", so it can be a program name with args.
7036 set dummy pwd; ac_word=$2
7037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039 if test "${ac_cv_path_BINPWD+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7066 BINPWD=$ac_cv_path_BINPWD
7067 if test -n "$BINPWD"; then
7068 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7069 echo "${ECHO_T}$BINPWD" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "Graphviz", so it can be a program name with args.
7078 set dummy Graphviz; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7108 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7109 if test -n "$GRAPHVIZ"; then
7110 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7111 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7120 cat >>confdefs.h <<\_ACEOF
7121 #define HAVE_GRAPHVIZ 1
7124 if test "$llvm_cv_os_type" = "MingW" ; then
7125 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7128 cat >>confdefs.h <<_ACEOF
7129 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7133 # Extract the first word of "dot", so it can be a program name with args.
7134 set dummy dot; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_DOT+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7165 if test -n "$DOT"; then
7166 { echo "$as_me:$LINENO: result: $DOT" >&5
7167 echo "${ECHO_T}$DOT" >&6; }
7169 { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7174 if test "$DOT" != "echo dot" ; then
7176 cat >>confdefs.h <<\_ACEOF
7180 if test "$llvm_cv_os_type" = "MingW" ; then
7181 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7184 cat >>confdefs.h <<_ACEOF
7185 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7189 for ac_prog in gv gsview32
7191 # Extract the first word of "$ac_prog", so it can be a program name with args.
7192 set dummy $ac_prog; ac_word=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_path_GV+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 if test -n "$GV"; then
7223 { echo "$as_me:$LINENO: result: $GV" >&5
7224 echo "${ECHO_T}$GV" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 test -n "$GV" && break
7233 test -n "$GV" || GV="echo gv"
7235 if test "$GV" != "echo gv" ; then
7237 cat >>confdefs.h <<\_ACEOF
7241 if test "$llvm_cv_os_type" = "MingW" ; then
7242 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7245 cat >>confdefs.h <<_ACEOF
7246 #define LLVM_PATH_GV "$GV${EXEEXT}"
7250 # Extract the first word of "dotty", so it can be a program name with args.
7251 set dummy dotty; ac_word=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_path_DOTTY+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7269 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7281 DOTTY=$ac_cv_path_DOTTY
7282 if test -n "$DOTTY"; then
7283 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7284 echo "${ECHO_T}$DOTTY" >&6; }
7286 { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7291 if test "$DOTTY" != "echo dotty" ; then
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_DOTTY 1
7297 if test "$llvm_cv_os_type" = "MingW" ; then
7298 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7301 cat >>confdefs.h <<_ACEOF
7302 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7308 # Extract the first word of "perl", so it can be a program name with args.
7309 set dummy perl; ac_word=$2
7310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312 if test "${ac_cv_path_PERL+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7339 PERL=$ac_cv_path_PERL
7340 if test -n "$PERL"; then
7341 { echo "$as_me:$LINENO: result: $PERL" >&5
7342 echo "${ECHO_T}$PERL" >&6; }
7344 { echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6; }
7349 if test "$PERL" != "none"; then
7350 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7351 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7352 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7353 { echo "$as_me:$LINENO: result: yes" >&5
7354 echo "${ECHO_T}yes" >&6; }
7357 { echo "$as_me:$LINENO: result: not found" >&5
7358 echo "${ECHO_T}not found" >&6; }
7363 if test x"$PERL" = xnone; then
7371 # Find a good install program. We prefer a C program (faster),
7372 # so one script is as good as another. But avoid the broken or
7373 # incompatible versions:
7374 # SysV /etc/install, /usr/sbin/install
7375 # SunOS /usr/etc/install
7376 # IRIX /sbin/install
7378 # AmigaOS /C/install, which installs bootblocks on floppy discs
7379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7382 # OS/2's system install, which has a completely different semantic
7383 # ./install, which can be erroneously created by make from ./install.sh.
7384 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7385 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7386 if test -z "$INSTALL"; then
7387 if test "${ac_cv_path_install+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 # Account for people who put trailing slashes in PATH elements.
7397 ./ | .// | /cC/* | \
7398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7399 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7402 # OSF1 and SCO ODT 3.0 have their own names for install.
7403 # Don't use installbsd from OSF since it installs stuff as root
7405 for ac_prog in ginstall scoinst install; do
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7408 if test $ac_prog = install &&
7409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7410 # AIX install. It has an incompatible calling convention.
7412 elif test $ac_prog = install &&
7413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7414 # program-specific install script used by HP pwplus--don't use.
7417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7430 if test "${ac_cv_path_install+set}" = set; then
7431 INSTALL=$ac_cv_path_install
7433 # As a last resort, use the slow shell script. Don't cache a
7434 # value for INSTALL within a source directory, because that will
7435 # break other packages using the cache if that directory is
7436 # removed, or if the value is a relative name.
7437 INSTALL=$ac_install_sh
7440 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7441 echo "${ECHO_T}$INSTALL" >&6; }
7443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7444 # It thinks the first close brace ends the variable substitution.
7445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7452 # Extract the first word of "bzip2", so it can be a program name with args.
7453 set dummy bzip2; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_BZIP2+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7483 BZIP2=$ac_cv_path_BZIP2
7484 if test -n "$BZIP2"; then
7485 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7486 echo "${ECHO_T}$BZIP2" >&6; }
7488 { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7493 # Extract the first word of "doxygen", so it can be a program name with args.
7494 set dummy doxygen; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7524 DOXYGEN=$ac_cv_path_DOXYGEN
7525 if test -n "$DOXYGEN"; then
7526 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7527 echo "${ECHO_T}$DOXYGEN" >&6; }
7529 { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7534 # Extract the first word of "groff", so it can be a program name with args.
7535 set dummy groff; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_GROFF+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7565 GROFF=$ac_cv_path_GROFF
7566 if test -n "$GROFF"; then
7567 { echo "$as_me:$LINENO: result: $GROFF" >&5
7568 echo "${ECHO_T}$GROFF" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 # Extract the first word of "gzip", so it can be a program name with args.
7576 set dummy gzip; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_GZIP+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7606 GZIP=$ac_cv_path_GZIP
7607 if test -n "$GZIP"; then
7608 { echo "$as_me:$LINENO: result: $GZIP" >&5
7609 echo "${ECHO_T}$GZIP" >&6; }
7611 { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7616 # Extract the first word of "pod2html", so it can be a program name with args.
7617 set dummy pod2html; ac_word=$2
7618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7620 if test "${ac_cv_path_POD2HTML+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7647 POD2HTML=$ac_cv_path_POD2HTML
7648 if test -n "$POD2HTML"; then
7649 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7650 echo "${ECHO_T}$POD2HTML" >&6; }
7652 { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7657 # Extract the first word of "pod2man", so it can be a program name with args.
7658 set dummy pod2man; ac_word=$2
7659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661 if test "${ac_cv_path_POD2MAN+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7688 POD2MAN=$ac_cv_path_POD2MAN
7689 if test -n "$POD2MAN"; then
7690 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7691 echo "${ECHO_T}$POD2MAN" >&6; }
7693 { echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6; }
7698 # Extract the first word of "runtest", so it can be a program name with args.
7699 set dummy runtest; ac_word=$2
7700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702 if test "${ac_cv_path_RUNTEST+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7729 RUNTEST=$ac_cv_path_RUNTEST
7730 if test -n "$RUNTEST"; then
7731 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7732 echo "${ECHO_T}$RUNTEST" >&6; }
7734 { echo "$as_me:$LINENO: result: no" >&5
7735 echo "${ECHO_T}no" >&6; }
7741 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7742 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7744 # Check whether --with-tclinclude was given.
7745 if test "${with_tclinclude+set}" = set; then
7746 withval=$with_tclinclude; with_tclinclude=${withval}
7751 if test "${ac_cv_path_tclsh+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 if test x"${with_tclinclude}" != x ; then
7756 if test -f ${with_tclinclude}/tclsh ; then
7757 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7758 elif test -f ${with_tclinclude}/src/tclsh ; then
7759 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7761 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7762 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7763 { (exit 1); exit 1; }; }
7767 if test x"${ac_cv_path_tclsh}" = x ; then
7768 { echo "$as_me:$LINENO: result: none" >&5
7769 echo "${ECHO_T}none" >&6; }
7770 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
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_TCLSH+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 TCLSH=$ac_cv_path_TCLSH
7803 if test -n "$TCLSH"; then
7804 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7805 echo "${ECHO_T}$TCLSH" >&6; }
7807 { echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6; }
7812 test -n "$TCLSH" && break
7815 if test x"${TCLSH}" = x ; then
7816 ac_cv_path_tclsh='';
7818 ac_cv_path_tclsh="${TCLSH}";
7821 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7822 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7823 TCLSH="${ac_cv_path_tclsh}"
7829 # Extract the first word of "zip", so it can be a program name with args.
7830 set dummy zip; ac_word=$2
7831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7833 if test "${ac_cv_path_ZIP+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7861 if test -n "$ZIP"; then
7862 { echo "$as_me:$LINENO: result: $ZIP" >&5
7863 echo "${ECHO_T}$ZIP" >&6; }
7865 { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7871 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7872 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7873 if test "${llvm_cv_link_use_r+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 CFLAGS="$CFLAGS -Wl,-R."
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7894 int main() { return 0; }
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (ac_try="$ac_link"
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_link") 2>conftest.er1
7908 grep -v '^ *+' conftest.er1 >conftest.err
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7914 { (case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_try") 2>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7933 llvm_cv_link_use_r=yes
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 llvm_cv_link_use_r=no
7941 rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7945 ac_cpp='$CPP $CPPFLAGS'
7946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7953 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7954 if test "$llvm_cv_link_use_r" = yes ; then
7956 cat >>confdefs.h <<\_ACEOF
7957 #define HAVE_LINK_R 1
7965 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7966 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7967 if test "${ac_cv_c_const+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7980 /* FIXME: Include the comments suggested by Paul. */
7982 /* Ultrix mips cc rejects this. */
7983 typedef int charset[2];
7985 /* SunOS 4.1.1 cc rejects this. */
7986 char const *const *ccp;
7988 /* NEC SVR4.0.2 mips cc rejects this. */
7989 struct point {int x, y;};
7990 static struct point const zero = {0,0};
7991 /* AIX XL C 1.02.0.0 rejects this.
7992 It does not let you subtract one const X* pointer from another in
7993 an arm of an if-expression whose if-part is not a constant
7995 const char *g = "string";
7996 ccp = &g + (g ? g-g : 0);
7997 /* HPUX 7.0 cc rejects these. */
8000 ccp = (char const *const *) p;
8001 { /* SCO 3.2v4 cc rejects this. */
8003 char const *s = 0 ? (char *) 0 : (char const *) 0;
8008 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8010 const int *foo = &x[0];
8013 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8014 typedef const int *iptr;
8018 { /* AIX XL C 1.02.0.0 rejects this saying
8019 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8020 struct s { int j; const int *ap[3]; };
8021 struct s *b; b->j = 5;
8023 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8027 return !x[0] && !zero.x;
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8079 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8080 if test $ac_cv_c_const = no; then
8082 cat >>confdefs.h <<\_ACEOF
8094 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8095 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8096 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8097 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 #include <sys/types.h>
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_compile") 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_try") 2>&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8153 eval "$as_ac_Header=yes"
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 eval "$as_ac_Header=no"
8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 ac_res=`eval echo '${'$as_ac_Header'}'`
8164 { echo "$as_me:$LINENO: result: $ac_res" >&5
8165 echo "${ECHO_T}$ac_res" >&6; }
8166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8167 cat >>confdefs.h <<_ACEOF
8168 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8171 ac_header_dirent=$ac_hdr; break
8175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8176 if test $ac_header_dirent = dirent.h; then
8177 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8178 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8179 if test "${ac_cv_search_opendir+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 ac_func_search_save_LIBS=$LIBS
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8190 /* Override any GCC internal prototype to avoid an error.
8191 Use char because int might match the return type of a GCC
8192 builtin and then its argument prototype would still apply. */
8205 for ac_lib in '' dir; do
8206 if test -z "$ac_lib"; then
8207 ac_res="none required"
8210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (ac_try="$ac_link"
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_link") 2>conftest.er1
8221 grep -v '^ *+' conftest.er1 >conftest.err
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8246 ac_cv_search_opendir=$ac_res
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8254 rm -f core conftest.err conftest.$ac_objext \
8256 if test "${ac_cv_search_opendir+set}" = set; then
8260 if test "${ac_cv_search_opendir+set}" = set; then
8263 ac_cv_search_opendir=no
8266 LIBS=$ac_func_search_save_LIBS
8268 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8269 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8270 ac_res=$ac_cv_search_opendir
8271 if test "$ac_res" != no; then
8272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8277 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8278 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8279 if test "${ac_cv_search_opendir+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 ac_func_search_save_LIBS=$LIBS
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 /* Override any GCC internal prototype to avoid an error.
8291 Use char because int might match the return type of a GCC
8292 builtin and then its argument prototype would still apply. */
8305 for ac_lib in '' x; do
8306 if test -z "$ac_lib"; then
8307 ac_res="none required"
8310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (ac_try="$ac_link"
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_link") 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8327 { (case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_try") 2>&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8346 ac_cv_search_opendir=$ac_res
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8354 rm -f core conftest.err conftest.$ac_objext \
8356 if test "${ac_cv_search_opendir+set}" = set; then
8360 if test "${ac_cv_search_opendir+set}" = set; then
8363 ac_cv_search_opendir=no
8366 LIBS=$ac_func_search_save_LIBS
8368 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8369 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8370 ac_res=$ac_cv_search_opendir
8371 if test "$ac_res" != no; then
8372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8379 for ac_header in dlfcn.h
8381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 ac_res=`eval echo '${'$as_ac_Header'}'`
8389 { echo "$as_me:$LINENO: result: $ac_res" >&5
8390 echo "${ECHO_T}$ac_res" >&6; }
8392 # Is the header compilable?
8393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 #include <$ac_header>
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8419 { (case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_try") 2>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8438 ac_header_compiler=yes
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ac_header_compiler=no
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8448 echo "${ECHO_T}$ac_header_compiler" >&6; }
8450 # Is the header present?
8451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 #include <$ac_header>
8461 if { (ac_try="$ac_cpp conftest.$ac_ext"
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8469 grep -v '^ *+' conftest.er1 >conftest.err
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } >/dev/null; then
8474 if test -s conftest.err; then
8475 ac_cpp_err=$ac_c_preproc_warn_flag
8476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8483 if test -z "$ac_cpp_err"; then
8484 ac_header_preproc=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_header_preproc=no
8492 rm -f conftest.err conftest.$ac_ext
8493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8494 echo "${ECHO_T}$ac_header_preproc" >&6; }
8496 # So? What about this header?
8497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8503 ac_header_preproc=yes
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8519 ## ----------------------------------- ##
8520 ## Report this to llvmbugs@cs.uiuc.edu ##
8521 ## ----------------------------------- ##
8523 ) | sed "s/^/$as_me: WARNING: /" >&2
8526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 eval "$as_ac_Header=\$ac_header_preproc"
8533 ac_res=`eval echo '${'$as_ac_Header'}'`
8534 { echo "$as_me:$LINENO: result: $ac_res" >&5
8535 echo "${ECHO_T}$ac_res" >&6; }
8538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8539 cat >>confdefs.h <<_ACEOF
8540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8547 # Check whether --enable-ltdl-install was given.
8548 if test "${enable_ltdl_install+set}" = set; then
8549 enableval=$enable_ltdl_install;
8555 if test x"${enable_ltdl_install-no}" != xno; then
8557 INSTALL_LTDL_FALSE='#'
8559 INSTALL_LTDL_TRUE='#'
8565 if test x"${enable_ltdl_convenience-no}" != xno; then
8566 CONVENIENCE_LTDL_TRUE=
8567 CONVENIENCE_LTDL_FALSE='#'
8569 CONVENIENCE_LTDL_TRUE='#'
8570 CONVENIENCE_LTDL_FALSE=
8574 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8577 libname_spec='lib$name'
8585 shlibpath_overrides_runpath=unknown
8587 dynamic_linker="$host_os ld.so"
8588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8589 if test "$GCC" = yes; then
8590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8591 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8592 # if the path contains ";" then we assume it to be the separator
8593 # otherwise default to the standard path separator (i.e. ":") - it is
8594 # assumed that no part of a normal pathname contains ";" but that should
8595 # okay in the real world where ";" in dirpaths is itself problematic.
8596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8603 need_lib_prefix=unknown
8604 hardcode_into_libs=no
8606 # when you set need_version to no, make sure it does not cause -set_version
8607 # flags to be left without arguments
8608 need_version=unknown
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8614 shlibpath_var=LIBPATH
8616 # AIX 3 has no versioning support, so we append a major version to the name.
8617 soname_spec='${libname}${release}${shared_ext}$major'
8624 hardcode_into_libs=yes
8625 if test "$host_cpu" = ia64; then
8626 # AIX 5 supports IA64
8627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8628 shlibpath_var=LD_LIBRARY_PATH
8630 # With GCC up to 2.95.x, collect2 would create an import file
8631 # for dependence libraries. The import file would start with
8632 # the line `#! .'. This would cause the generated library to
8633 # depend on `.', always an invalid library. This was fixed in
8634 # development snapshots of GCC prior to 3.0.
8636 aix4 | aix4.[01] | aix4.[01].*)
8637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8639 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8647 # soname into executable. Probably we can add versioning support to
8648 # collect2, so additional links can be useful in future.
8649 if test "$aix_use_runtimelinking" = yes; then
8650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8651 # instead of lib<name>.a to let people know that these are not
8652 # typical AIX shared libraries.
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8655 # We preserve .a as extension for shared libraries through AIX4.2
8656 # and later when we are not doing run time linking.
8657 library_names_spec='${libname}${release}.a $libname.a'
8658 soname_spec='${libname}${release}${shared_ext}$major'
8660 shlibpath_var=LIBPATH
8665 library_names_spec='$libname.ixlibrary $libname.a'
8666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8667 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'
8671 library_names_spec='${libname}${shared_ext}'
8672 dynamic_linker="$host_os ld.so"
8673 shlibpath_var=LIBRARY_PATH
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8682 shlibpath_var=LD_LIBRARY_PATH
8683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8685 # the default ld.so.conf also contains /usr/contrib/lib and
8686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8687 # libtool to hard-code these into programs
8690 cygwin* | mingw* | pw32*)
8691 version_type=windows
8696 case $GCC,$host_os in
8697 yes,cygwin* | yes,mingw* | yes,pw32*)
8698 library_names_spec='$libname.dll.a'
8699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8700 postinstall_cmds='base_file=`basename \${file}`~
8701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8702 dldir=$destdir/`dirname \$dlpath`~
8703 test -d \$dldir || mkdir -p \$dldir~
8704 $install_prog $dir/$dlname \$dldir/$dlname~
8705 chmod a+x \$dldir/$dlname'
8706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8707 dlpath=$dir/\$dldll~
8709 shlibpath_overrides_runpath=yes
8713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8714 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8715 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8718 # MinGW DLLs use traditional 'lib' prefix
8719 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8721 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8722 # It is most probably a Windows format PATH printed by
8723 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8724 # path with ; separators, and with drive letters. We can handle the
8725 # drive letters (cygwin fileutils understands them), so leave them,
8726 # especially as we might pass files found there to a mingw objdump,
8727 # which wouldn't understand a cygwinified path. Ahh.
8728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8734 # pw32 DLLs use 'pw' prefix rather than 'lib'
8735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8744 dynamic_linker='Win32 ld.exe'
8745 # FIXME: first we should search . and the directory the executable is in
8749 darwin* | rhapsody*)
8750 dynamic_linker="$host_os dyld"
8754 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8755 soname_spec='${libname}${release}${major}$shared_ext'
8756 shlibpath_overrides_runpath=yes
8757 shlibpath_var=DYLD_LIBRARY_PATH
8758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8759 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8760 if test "$GCC" = yes; then
8761 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"`
8763 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8765 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 shlibpath_var=LD_LIBRARY_PATH
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8786 soname_spec='${libname}${release}${shared_ext}$major'
8787 shlibpath_var=LD_LIBRARY_PATH
8788 shlibpath_overrides_runpath=no
8789 hardcode_into_libs=yes
8790 dynamic_linker='GNU ld.so'
8793 freebsd* | dragonfly*)
8794 # DragonFly does not have aout. When/if they implement a new
8795 # versioning mechanism, adjust this.
8796 if test -x /usr/bin/objformat; then
8797 objformat=`/usr/bin/objformat`
8800 freebsd[123]*) objformat=aout ;;
8804 version_type=freebsd-$objformat
8805 case $version_type in
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8816 shlibpath_var=LD_LIBRARY_PATH
8819 shlibpath_overrides_runpath=yes
8821 freebsd3.[01]* | freebsdelf3.[01]*)
8822 shlibpath_overrides_runpath=yes
8823 hardcode_into_libs=yes
8825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8827 shlibpath_overrides_runpath=no
8828 hardcode_into_libs=yes
8830 freebsd*) # from 4.6 on
8831 shlibpath_overrides_runpath=yes
8832 hardcode_into_libs=yes
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 hardcode_into_libs=yes
8847 hpux9* | hpux10* | hpux11*)
8848 # Give a soname corresponding to the major version so that dld.sl refuses to
8849 # link against other versions.
8856 hardcode_into_libs=yes
8857 dynamic_linker="$host_os dld.so"
8858 shlibpath_var=LD_LIBRARY_PATH
8859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 if test "X$HPUX_IA64_MODE" = X32; then
8863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8871 hardcode_into_libs=yes
8872 dynamic_linker="$host_os dld.sl"
8873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882 dynamic_linker="$host_os dld.sl"
8883 shlibpath_var=SHLIB_PATH
8884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
8889 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8890 postinstall_cmds='chmod 555 $lib'
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 shlibpath_overrides_runpath=no
8902 hardcode_into_libs=yes
8905 irix5* | irix6* | nonstopux*)
8907 nonstopux*) version_type=nonstopux ;;
8909 if test "$lt_cv_prog_gnu_ld" = yes; then
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8920 irix5* | nonstopux*)
8924 case $LD in # libtool.m4 will add one of these switches to LD
8925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8926 libsuff= shlibsuff= libmagic=32-bit;;
8927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8928 libsuff=32 shlibsuff=N32 libmagic=N32;;
8929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8930 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8931 *) libsuff= shlibsuff= libmagic=never-match;;
8935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8936 shlibpath_overrides_runpath=no
8937 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8938 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8939 hardcode_into_libs=yes
8942 # No shared lib support for Linux oldld, aout, or coff.
8943 linux*oldld* | linux*aout* | linux*coff*)
8947 # This must be Linux ELF.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 # This implies no fast_install, which is unacceptable.
8958 # Some rework will be needed to allow for fast_install
8959 # before this can be enabled.
8960 hardcode_into_libs=yes
8962 # Append ld.so.conf contents to the search path
8963 if test -f /etc/ld.so.conf; then
8964 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' ' '`
8965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8968 # We used to test for /lib/ld.so.1 and disable shared libraries on
8969 # powerpc, because MkLinux only supported shared libraries with the
8970 # GNU dynamic linker. Since this was broken with cross compilers,
8971 # most powerpc-linux boxes support dynamic linking these days and
8972 # people can always --disable-shared, the test was removed, and we
8973 # assume the GNU/Linux dynamic linker is in use.
8974 dynamic_linker='GNU/Linux ld.so'
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=no
8985 hardcode_into_libs=yes
8986 dynamic_linker='GNU ld.so'
8993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8996 dynamic_linker='NetBSD (a.out) ld.so'
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 dynamic_linker='NetBSD ld.elf_so'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9004 hardcode_into_libs=yes
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 shlibpath_overrides_runpath=yes
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=yes
9026 sys_lib_dlsearch_path_spec="/usr/lib"
9028 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9030 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9031 *) need_version=no ;;
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9038 openbsd2.[89] | openbsd2.[89].*)
9039 shlibpath_overrides_runpath=no
9042 shlibpath_overrides_runpath=yes
9046 shlibpath_overrides_runpath=yes
9051 libname_spec='$name'
9054 library_names_spec='$libname${shared_ext} $libname.a'
9055 dynamic_linker='OS/2 ld.exe'
9056 shlibpath_var=LIBPATH
9059 osf3* | osf4* | osf5*)
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9067 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9078 hardcode_into_libs=yes
9079 # ldd complains unless libraries are executable
9080 postinstall_cmds='chmod +x $lib'
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 if test "$with_gnu_ld" = yes; then
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 case $host_vendor in
9102 shlibpath_overrides_runpath=no
9104 export_dynamic_flag_spec='${wl}-Blargedynsym'
9105 runpath_var=LD_RUN_PATH
9113 shlibpath_overrides_runpath=no
9114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9120 if test -d /usr/nec ;then
9122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9123 soname_spec='$libname${shared_ext}.$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9129 version_type=freebsd-elf
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 hardcode_into_libs=yes
9136 if test "$with_gnu_ld" = yes; then
9137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9138 shlibpath_overrides_runpath=no
9140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9141 shlibpath_overrides_runpath=yes
9144 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9148 sys_lib_dlsearch_path_spec='/usr/lib'
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9162 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9163 echo "${ECHO_T}$dynamic_linker" >&6; }
9164 test "$dynamic_linker" = no && can_build_shared=no
9166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9167 if test "$GCC" = yes; then
9168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9172 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9173 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9174 if test "${libltdl_cv_shlibext+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 eval libltdl_cv_shlibext=$shrext_cmds
9182 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9183 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9184 if test -n "$libltdl_cv_shlibext"; then
9186 cat >>confdefs.h <<_ACEOF
9187 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9193 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9194 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9195 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 libltdl_cv_shlibpath_var="$shlibpath_var"
9200 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9201 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9202 if test -n "$libltdl_cv_shlibpath_var"; then
9204 cat >>confdefs.h <<_ACEOF
9205 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9211 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9212 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9213 if test "${libltdl_cv_sys_search_path+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9218 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9219 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9220 if test -n "$libltdl_cv_sys_search_path"; then
9222 for dir in $libltdl_cv_sys_search_path; do
9223 if test -z "$sys_search_path"; then
9224 sys_search_path="$dir"
9226 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9230 cat >>confdefs.h <<_ACEOF
9231 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9236 { echo "$as_me:$LINENO: checking for objdir" >&5
9237 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9238 if test "${libltdl_cv_objdir+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 libltdl_cv_objdir="$objdir"
9242 if test -n "$objdir"; then
9245 rm -f .libs 2>/dev/null
9246 mkdir .libs 2>/dev/null
9247 if test -d .libs; then
9248 libltdl_cv_objdir=.libs
9250 # MS-DOS does not allow filenames that begin with a dot.
9251 libltdl_cv_objdir=_libs
9253 rmdir .libs 2>/dev/null
9257 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9258 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9260 cat >>confdefs.h <<_ACEOF
9261 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9269 # Check for command to grab the raw symbol name followed by C symbol from nm.
9270 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9271 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 # These are sane defaults that work on at least a few old systems.
9277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9279 # Character class describing NM global symbol codes.
9280 symcode='[BCDEGRST]'
9282 # Regexp to match symbols that can be accessed directly from C.
9283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9285 # Transform an extracted symbol line into a proper C declaration
9286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9288 # Transform an extracted symbol line into symbol name and symbol address
9289 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'"
9291 # Define system-specific variables.
9296 cygwin* | mingw* | pw32*)
9297 symcode='[ABCDGISTW]'
9299 hpux*) # Its linker distinguishes data from code symbols
9300 if test "$host_cpu" = ia64; then
9301 symcode='[ABCDEGRST]'
9303 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9304 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'"
9307 if test "$host_cpu" = ia64; then
9308 symcode='[ABCDGIRSTW]'
9309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9310 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'"
9314 symcode='[BCDEGRST]'
9317 symcode='[BCDEGQRST]'
9328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9336 # Handle CRLF in mingw tool chain
9340 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9344 # If we're using GNU nm, then use its standard symbol codes.
9345 case `$NM -V 2>&1` in
9346 *GNU* | *'with BFD'*)
9347 symcode='[ABCDGIRSTW]' ;;
9350 # Try without a prefix undercore, then with it.
9351 for ac_symprfx in "" "_"; do
9353 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9354 symxfrm="\\1 $ac_symprfx\\2 \\2"
9356 # Write the raw and C identifiers.
9357 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9359 # Check to see that the pipe works correctly.
9363 cat > conftest.$ac_ext <<EOF
9368 void nm_test_func(){}
9372 int main(){nm_test_var='a';nm_test_func();return(0);}
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; then
9380 # Now try to grab the symbols.
9382 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9383 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && test -s "$nlist"; then
9387 # Try sorting and uniquifying the output.
9388 if sort "$nlist" | uniq > "$nlist"T; then
9389 mv -f "$nlist"T "$nlist"
9394 # Make sure that we snagged all the symbols we need.
9395 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9396 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9397 cat <<EOF > conftest.$ac_ext
9403 # Now generate the symbol file.
9404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9406 cat <<EOF >> conftest.$ac_ext
9407 #if defined (__STDC__) && __STDC__
9408 # define lt_ptr_t void *
9410 # define lt_ptr_t char *
9414 /* The mapping between symbol names and symbols. */
9419 lt_preloaded_symbols[] =
9422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9423 cat <<\EOF >> conftest.$ac_ext
9431 # Now try linking the two files.
9432 mv conftest.$ac_objext conftstm.$ac_objext
9433 lt_save_LIBS="$LIBS"
9434 lt_save_CFLAGS="$CFLAGS"
9435 LIBS="conftstm.$ac_objext"
9436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9444 LIBS="$lt_save_LIBS"
9445 CFLAGS="$lt_save_CFLAGS"
9447 echo "cannot find nm_test_func in $nlist" >&5
9450 echo "cannot find nm_test_var in $nlist" >&5
9453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9456 echo "$progname: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 rm -f conftest* conftst*
9461 # Do not use the global_symbol_pipe unless it works.
9462 if test "$pipe_works" = yes; then
9465 lt_cv_sys_global_symbol_pipe=
9471 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9472 lt_cv_sys_global_symbol_to_cdecl=
9474 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9475 { echo "$as_me:$LINENO: result: failed" >&5
9476 echo "${ECHO_T}failed" >&6; }
9478 { echo "$as_me:$LINENO: result: ok" >&5
9479 echo "${ECHO_T}ok" >&6; }
9483 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9484 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9485 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9489 libltdl_cv_preloaded_symbols=yes
9491 libltdl_cv_preloaded_symbols=no
9495 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9496 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9497 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_PRELOADED_SYMBOLS 1
9508 ac_cpp='$CPP $CPPFLAGS'
9509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9514 { echo "$as_me:$LINENO: checking for shl_load" >&5
9515 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9516 if test "${ac_cv_func_shl_load+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9527 #define shl_load innocuous_shl_load
9529 /* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char shl_load (); below.
9531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 <limits.h> exists even on freestanding compilers. */
9535 # include <limits.h>
9537 # include <assert.h>
9542 /* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9549 /* The GNU C library defines this for functions which it implements
9550 to always fail with ENOSYS. Some functions are actually named
9551 something starting with __ and the normal name is an alias. */
9552 #if defined __stub_shl_load || defined __stub___shl_load
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (ac_try="$ac_link"
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9598 ac_cv_func_shl_load=yes
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_func_shl_load=no
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9609 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9610 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9611 if test $ac_cv_func_shl_load = yes; then
9613 cat >>confdefs.h <<\_ACEOF
9614 #define HAVE_SHL_LOAD 1
9618 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9619 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 ac_check_lib_save_LIBS=$LIBS
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9681 ac_cv_lib_dld_shl_load=yes
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_cv_lib_dld_shl_load=no
9689 rm -f core conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9693 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9695 if test $ac_cv_lib_dld_shl_load = yes; then
9697 cat >>confdefs.h <<\_ACEOF
9698 #define HAVE_SHL_LOAD 1
9701 LIBADD_DL="$LIBADD_DL -ldld"
9703 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 ac_check_lib_save_LIBS=$LIBS
9710 cat >conftest.$ac_ext <<_ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9766 ac_cv_lib_dl_dlopen=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_cv_lib_dl_dlopen=no
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9780 if test $ac_cv_lib_dl_dlopen = yes; then
9782 cat >>confdefs.h <<\_ACEOF
9783 #define HAVE_LIBDL 1
9786 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (ac_try="$ac_link"
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_try") 2>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_LIBDL 1
9844 libltdl_cv_func_dlopen="yes"
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9850 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 ac_check_lib_save_LIBS=$LIBS
9856 cat >conftest.$ac_ext <<_ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9863 /* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9912 ac_cv_lib_svld_dlopen=yes
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ac_cv_lib_svld_dlopen=no
9920 rm -f core conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9924 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9925 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9926 if test $ac_cv_lib_svld_dlopen = yes; then
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_LIBDL 1
9932 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9934 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9935 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9936 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 ac_check_lib_save_LIBS=$LIBS
9941 cat >conftest.$ac_ext <<_ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9997 ac_cv_lib_dld_dld_link=yes
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_cv_lib_dld_dld_link=no
10005 rm -f core conftest.err conftest.$ac_objext \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10010 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10011 if test $ac_cv_lib_dld_dld_link = yes; then
10013 cat >>confdefs.h <<\_ACEOF
10017 LIBADD_DL="$LIBADD_DL -ldld"
10019 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10020 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10021 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10032 #define _dyld_func_lookup innocuous__dyld_func_lookup
10034 /* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char _dyld_func_lookup (); below.
10036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10037 <limits.h> exists even on freestanding compilers. */
10040 # include <limits.h>
10042 # include <assert.h>
10045 #undef _dyld_func_lookup
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10053 char _dyld_func_lookup ();
10054 /* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
10057 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10064 return _dyld_func_lookup ();
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_link") 2>conftest.er1
10078 grep -v '^ *+' conftest.er1 >conftest.err
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10084 { (case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_try") 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10103 ac_cv_func__dyld_func_lookup=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_func__dyld_func_lookup=no
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10114 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10115 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10116 if test $ac_cv_func__dyld_func_lookup = yes; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_DYLD 1
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10145 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10147 lt_save_LIBS="$LIBS"
10148 LIBS="$LIBS $LIBADD_DL"
10150 for ac_func in dlerror
10152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10166 #define $ac_func innocuous_$ac_func
10168 /* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char $ac_func (); below.
10170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10171 <limits.h> exists even on freestanding compilers. */
10174 # include <limits.h>
10176 # include <assert.h>
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10188 /* The GNU C library defines this for functions which it implements
10189 to always fail with ENOSYS. Some functions are actually named
10190 something starting with __ and the normal name is an alias. */
10191 #if defined __stub_$ac_func || defined __stub___$ac_func
10198 return $ac_func ();
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10237 eval "$as_ac_var=yes"
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 eval "$as_ac_var=no"
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10248 ac_res=`eval echo '${'$as_ac_var'}'`
10249 { echo "$as_me:$LINENO: result: $ac_res" >&5
10250 echo "${ECHO_T}$ac_res" >&6; }
10251 if test `eval echo '${'$as_ac_var'}'` = yes; then
10252 cat >>confdefs.h <<_ACEOF
10253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10259 LIBS="$lt_save_LIBS"
10262 ac_cpp='$CPP $CPPFLAGS'
10263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10269 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10270 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10271 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 ac_cv_sys_symbol_underscore=no
10275 cat > conftest.$ac_ext <<EOF
10276 void nm_test_func(){}
10277 int main(){nm_test_func;return 0;}
10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280 (eval $ac_compile) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; then
10284 # Now try to grab the symbols.
10285 ac_nlist=conftest.nm
10286 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10287 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && test -s "$ac_nlist"; then
10291 # See whether the symbols have a leading underscore.
10292 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10293 ac_cv_sys_symbol_underscore=yes
10295 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10298 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10302 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10305 echo "configure: failed program was:" >&5
10311 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10312 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10315 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10316 if test x"$libltdl_cv_func_dlopen" = xyes ||
10317 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10318 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10319 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10320 if test "${libltdl_cv_need_uscore+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 libltdl_cv_need_uscore=unknown
10325 LIBS="$LIBS $LIBADD_DL"
10326 if test "$cross_compiling" = yes; then :
10327 libltdl_cv_need_uscore=cross
10329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10330 lt_status=$lt_dlunknown
10331 cat > conftest.$ac_ext <<EOF
10332 #line 10332 "configure"
10333 #include "confdefs.h"
10342 # define LT_DLGLOBAL RTLD_GLOBAL
10345 # define LT_DLGLOBAL DL_GLOBAL
10347 # define LT_DLGLOBAL 0
10351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10352 find out it does not work in some platform. */
10353 #ifndef LT_DLLAZY_OR_NOW
10355 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10358 # define LT_DLLAZY_OR_NOW DL_LAZY
10361 # define LT_DLLAZY_OR_NOW RTLD_NOW
10364 # define LT_DLLAZY_OR_NOW DL_NOW
10366 # define LT_DLLAZY_OR_NOW 0
10374 extern "C" void exit (int);
10377 void fnord() { int i=42;}
10380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10381 int status = $lt_dlunknown;
10385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10387 /* dlclose (self); */
10395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10396 (eval $ac_link) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10400 (./conftest; exit; ) >&5 2>/dev/null
10402 case x$lt_status in
10403 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10404 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10405 x$lt_dlunknown|x*) ;;
10408 # compilation failed
10417 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10418 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10422 if test x"$libltdl_cv_need_uscore" = xyes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define NEED_USCORE 1
10431 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10432 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10433 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 # PORTME does your system automatically load deplibs for dlopen?
10437 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10438 # For now, we just catch OSes we know something about -- in the
10439 # future, we'll try test this programmatically.
10440 libltdl_cv_sys_dlopen_deplibs=unknown
10442 aix3*|aix4.1.*|aix4.2.*)
10443 # Unknown whether this is true for these versions of AIX, but
10444 # we want this `case' here to explicitly catch those versions.
10445 libltdl_cv_sys_dlopen_deplibs=unknown
10448 libltdl_cv_sys_dlopen_deplibs=yes
10451 # Assuming the user has installed a libdl from somewhere, this is true
10452 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10453 libltdl_cv_sys_dlopen_deplibs=yes
10455 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10456 # GNU and its variants, using gnu ld.so (Glibc)
10457 libltdl_cv_sys_dlopen_deplibs=yes
10460 libltdl_cv_sys_dlopen_deplibs=yes
10463 libltdl_cv_sys_dlopen_deplibs=yes
10465 irix[12345]*|irix6.[01]*)
10466 # Catch all versions of IRIX before 6.2, and indicate that we don't
10467 # know how it worked for any of those versions.
10468 libltdl_cv_sys_dlopen_deplibs=unknown
10471 # The case above catches anything before 6.2, and it's known that
10472 # at 6.2 and later dlopen does load deplibs.
10473 libltdl_cv_sys_dlopen_deplibs=yes
10476 libltdl_cv_sys_dlopen_deplibs=yes
10479 libltdl_cv_sys_dlopen_deplibs=yes
10482 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10483 # it did *not* use an RPATH in a shared library to find objects the
10484 # library depends on, so we explictly say `no'.
10485 libltdl_cv_sys_dlopen_deplibs=no
10487 osf5.0|osf5.0a|osf5.1)
10488 # dlopen *does* load deplibs and with the right loader patch applied
10489 # it even uses RPATH in a shared library to search for shared objects
10490 # that the library depends on, but there's no easy way to know if that
10491 # patch is installed. Since this is the case, all we can really
10492 # say is unknown -- it depends on the patch being installed. If
10493 # it is, this changes to `yes'. Without it, it would be `no'.
10494 libltdl_cv_sys_dlopen_deplibs=unknown
10497 # the two cases above should catch all versions of osf <= 5.1. Read
10498 # the comments above for what we know about them.
10499 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10500 # is used to find them so we can finally say `yes'.
10501 libltdl_cv_sys_dlopen_deplibs=yes
10504 libltdl_cv_sys_dlopen_deplibs=yes
10506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10507 libltdl_cv_sys_dlopen_deplibs=yes
10512 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10513 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10514 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define LTDL_DLOPEN_DEPLIBS 1
10523 for ac_header in argz.h
10525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 ac_res=`eval echo '${'$as_ac_Header'}'`
10533 { echo "$as_me:$LINENO: result: $ac_res" >&5
10534 echo "${ECHO_T}$ac_res" >&6; }
10536 # Is the header compilable?
10537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10539 cat >conftest.$ac_ext <<_ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 #include <$ac_header>
10548 rm -f conftest.$ac_objext
10549 if { (ac_try="$ac_compile"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_compile") 2>conftest.er1
10557 grep -v '^ *+' conftest.er1 >conftest.err
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10563 { (case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_try") 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10582 ac_header_compiler=yes
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 ac_header_compiler=no
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10592 echo "${ECHO_T}$ac_header_compiler" >&6; }
10594 # Is the header present?
10595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10597 cat >conftest.$ac_ext <<_ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 #include <$ac_header>
10605 if { (ac_try="$ac_cpp conftest.$ac_ext"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10613 grep -v '^ *+' conftest.er1 >conftest.err
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } >/dev/null; then
10618 if test -s conftest.err; then
10619 ac_cpp_err=$ac_c_preproc_warn_flag
10620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10627 if test -z "$ac_cpp_err"; then
10628 ac_header_preproc=yes
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_header_preproc=no
10636 rm -f conftest.err conftest.$ac_ext
10637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10638 echo "${ECHO_T}$ac_header_preproc" >&6; }
10640 # So? What about this header?
10641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10647 ac_header_preproc=yes
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10663 ## ----------------------------------- ##
10664 ## Report this to llvmbugs@cs.uiuc.edu ##
10665 ## ----------------------------------- ##
10667 ) | sed "s/^/$as_me: WARNING: /" >&2
10670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 eval "$as_ac_Header=\$ac_header_preproc"
10677 ac_res=`eval echo '${'$as_ac_Header'}'`
10678 { echo "$as_me:$LINENO: result: $ac_res" >&5
10679 echo "${ECHO_T}$ac_res" >&6; }
10682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10683 cat >>confdefs.h <<_ACEOF
10684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10692 { echo "$as_me:$LINENO: checking for error_t" >&5
10693 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10694 if test "${ac_cv_type_error_t+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10707 typedef error_t ac__type_new_;
10711 if ((ac__type_new_ *) 0)
10713 if (sizeof (ac__type_new_))
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
10728 grep -v '^ *+' conftest.er1 >conftest.err
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
10733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10753 ac_cv_type_error_t=yes
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_cv_type_error_t=no
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10764 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10765 if test $ac_cv_type_error_t = yes; then
10767 cat >>confdefs.h <<_ACEOF
10768 #define HAVE_ERROR_T 1
10774 cat >>confdefs.h <<\_ACEOF
10775 #define error_t int
10786 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10802 #define $ac_func innocuous_$ac_func
10804 /* System header to define __stub macros and hopefully few prototypes,
10805 which can conflict with char $ac_func (); below.
10806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10807 <limits.h> exists even on freestanding compilers. */
10810 # include <limits.h>
10812 # include <assert.h>
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10824 /* The GNU C library defines this for functions which it implements
10825 to always fail with ENOSYS. Some functions are actually named
10826 something starting with __ and the normal name is an alias. */
10827 #if defined __stub_$ac_func || defined __stub___$ac_func
10834 return $ac_func ();
10839 rm -f conftest.$ac_objext conftest$ac_exeext
10840 if { (ac_try="$ac_link"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_link") 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10873 eval "$as_ac_var=yes"
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 eval "$as_ac_var=no"
10881 rm -f core conftest.err conftest.$ac_objext \
10882 conftest$ac_exeext conftest.$ac_ext
10884 ac_res=`eval echo '${'$as_ac_var'}'`
10885 { echo "$as_me:$LINENO: result: $ac_res" >&5
10886 echo "${ECHO_T}$ac_res" >&6; }
10887 if test `eval echo '${'$as_ac_var'}'` = yes; then
10888 cat >>confdefs.h <<_ACEOF
10889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10922 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 ac_res=`eval echo '${'$as_ac_Header'}'`
10933 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934 echo "${ECHO_T}$ac_res" >&6; }
10936 # Is the header compilable?
10937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 $ac_includes_default
10946 #include <$ac_header>
10948 rm -f conftest.$ac_objext
10949 if { (ac_try="$ac_compile"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_compile") 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10963 { (case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_try") 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10982 ac_header_compiler=yes
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10987 ac_header_compiler=no
10990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10992 echo "${ECHO_T}$ac_header_compiler" >&6; }
10994 # Is the header present?
10995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 #include <$ac_header>
11005 if { (ac_try="$ac_cpp conftest.$ac_ext"
11006 case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } >/dev/null; then
11018 if test -s conftest.err; then
11019 ac_cpp_err=$ac_c_preproc_warn_flag
11020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11027 if test -z "$ac_cpp_err"; then
11028 ac_header_preproc=yes
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_header_preproc=no
11036 rm -f conftest.err conftest.$ac_ext
11037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11038 echo "${ECHO_T}$ac_header_preproc" >&6; }
11040 # So? What about this header?
11041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11047 ac_header_preproc=yes
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11063 ## ----------------------------------- ##
11064 ## Report this to llvmbugs@cs.uiuc.edu ##
11065 ## ----------------------------------- ##
11067 ) | sed "s/^/$as_me: WARNING: /" >&2
11070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 eval "$as_ac_Header=\$ac_header_preproc"
11077 ac_res=`eval echo '${'$as_ac_Header'}'`
11078 { echo "$as_me:$LINENO: result: $ac_res" >&5
11079 echo "${ECHO_T}$ac_res" >&6; }
11082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11083 cat >>confdefs.h <<_ACEOF
11084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11095 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 ac_res=`eval echo '${'$as_ac_Header'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11108 # Is the header compilable?
11109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 $ac_includes_default
11118 #include <$ac_header>
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_compile") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11154 ac_header_compiler=yes
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_header_compiler=no
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11164 echo "${ECHO_T}$ac_header_compiler" >&6; }
11166 # Is the header present?
11167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11169 cat >conftest.$ac_ext <<_ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include <$ac_header>
11177 if { (ac_try="$ac_cpp conftest.$ac_ext"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } >/dev/null; then
11190 if test -s conftest.err; then
11191 ac_cpp_err=$ac_c_preproc_warn_flag
11192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11199 if test -z "$ac_cpp_err"; then
11200 ac_header_preproc=yes
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ac_header_preproc=no
11208 rm -f conftest.err conftest.$ac_ext
11209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11210 echo "${ECHO_T}$ac_header_preproc" >&6; }
11212 # So? What about this header?
11213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11219 ac_header_preproc=yes
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235 ## ----------------------------------- ##
11236 ## Report this to llvmbugs@cs.uiuc.edu ##
11237 ## ----------------------------------- ##
11239 ) | sed "s/^/$as_me: WARNING: /" >&2
11242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 eval "$as_ac_Header=\$ac_header_preproc"
11249 ac_res=`eval echo '${'$as_ac_Header'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11255 cat >>confdefs.h <<_ACEOF
11256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265 for ac_header in string.h strings.h
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11278 # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 #include <$ac_header>
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest.$ac_objext'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_header_compiler=yes
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ac_header_compiler=no
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334 echo "${ECHO_T}$ac_header_compiler" >&6; }
11336 # Is the header present?
11337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11339 cat >conftest.$ac_ext <<_ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #include <$ac_header>
11347 if { (ac_try="$ac_cpp conftest.$ac_ext"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355 grep -v '^ *+' conftest.er1 >conftest.err
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } >/dev/null; then
11360 if test -s conftest.err; then
11361 ac_cpp_err=$ac_c_preproc_warn_flag
11362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11369 if test -z "$ac_cpp_err"; then
11370 ac_header_preproc=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_header_preproc=no
11378 rm -f conftest.err conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380 echo "${ECHO_T}$ac_header_preproc" >&6; }
11382 # So? What about this header?
11383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389 ac_header_preproc=yes
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405 ## ----------------------------------- ##
11406 ## Report this to llvmbugs@cs.uiuc.edu ##
11407 ## ----------------------------------- ##
11409 ) | sed "s/^/$as_me: WARNING: /" >&2
11412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 eval "$as_ac_Header=\$ac_header_preproc"
11419 ac_res=`eval echo '${'$as_ac_Header'}'`
11420 { echo "$as_me:$LINENO: result: $ac_res" >&5
11421 echo "${ECHO_T}$ac_res" >&6; }
11424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11436 for ac_func in strchr index
11438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11452 #define $ac_func innocuous_$ac_func
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char $ac_func (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11460 # include <limits.h>
11462 # include <assert.h>
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11474 /* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
11477 #if defined __stub_$ac_func || defined __stub___$ac_func
11484 return $ac_func ();
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (ac_try="$ac_link"
11491 case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_link") 2>conftest.er1
11498 grep -v '^ *+' conftest.er1 >conftest.err
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11504 { (case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_try") 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11523 eval "$as_ac_var=yes"
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 eval "$as_ac_var=no"
11531 rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11534 ac_res=`eval echo '${'$as_ac_var'}'`
11535 { echo "$as_me:$LINENO: result: $ac_res" >&5
11536 echo "${ECHO_T}$ac_res" >&6; }
11537 if test `eval echo '${'$as_ac_var'}'` = yes; then
11538 cat >>confdefs.h <<_ACEOF
11539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11547 for ac_func in strrchr rindex
11549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11563 #define $ac_func innocuous_$ac_func
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func (); below.
11567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11568 <limits.h> exists even on freestanding compilers. */
11571 # include <limits.h>
11573 # include <assert.h>
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11585 /* The GNU C library defines this for functions which it implements
11586 to always fail with ENOSYS. Some functions are actually named
11587 something starting with __ and the normal name is an alias. */
11588 #if defined __stub_$ac_func || defined __stub___$ac_func
11595 return $ac_func ();
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>conftest.er1
11609 grep -v '^ *+' conftest.er1 >conftest.err
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11634 eval "$as_ac_var=yes"
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 eval "$as_ac_var=no"
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11645 ac_res=`eval echo '${'$as_ac_var'}'`
11646 { echo "$as_me:$LINENO: result: $ac_res" >&5
11647 echo "${ECHO_T}$ac_res" >&6; }
11648 if test `eval echo '${'$as_ac_var'}'` = yes; then
11649 cat >>confdefs.h <<_ACEOF
11650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11658 for ac_func in memcpy bcopy
11660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11674 #define $ac_func innocuous_$ac_func
11676 /* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char $ac_func (); below.
11678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679 <limits.h> exists even on freestanding compilers. */
11682 # include <limits.h>
11684 # include <assert.h>
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined __stub_$ac_func || defined __stub___$ac_func
11706 return $ac_func ();
11711 rm -f conftest.$ac_objext conftest$ac_exeext
11712 if { (ac_try="$ac_link"
11713 case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_link") 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11726 { (case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_try") 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11745 eval "$as_ac_var=yes"
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 eval "$as_ac_var=no"
11753 rm -f core conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext conftest.$ac_ext
11756 ac_res=`eval echo '${'$as_ac_var'}'`
11757 { echo "$as_me:$LINENO: result: $ac_res" >&5
11758 echo "${ECHO_T}$ac_res" >&6; }
11759 if test `eval echo '${'$as_ac_var'}'` = yes; then
11760 cat >>confdefs.h <<_ACEOF
11761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11769 for ac_func in memmove strcmp
11771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 cat >conftest.$ac_ext <<_ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11785 #define $ac_func innocuous_$ac_func
11787 /* System header to define __stub macros and hopefully few prototypes,
11788 which can conflict with char $ac_func (); below.
11789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11790 <limits.h> exists even on freestanding compilers. */
11793 # include <limits.h>
11795 # include <assert.h>
11800 /* Override any GCC internal prototype to avoid an error.
11801 Use char because int might match the return type of a GCC
11802 builtin and then its argument prototype would still apply. */
11807 /* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
11810 #if defined __stub_$ac_func || defined __stub___$ac_func
11817 return $ac_func ();
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (ac_try="$ac_link"
11824 case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_link") 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_try") 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11856 eval "$as_ac_var=yes"
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 eval "$as_ac_var=no"
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11867 ac_res=`eval echo '${'$as_ac_var'}'`
11868 { echo "$as_me:$LINENO: result: $ac_res" >&5
11869 echo "${ECHO_T}$ac_res" >&6; }
11870 if test `eval echo '${'$as_ac_var'}'` = yes; then
11871 cat >>confdefs.h <<_ACEOF
11872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11881 for ac_func in closedir opendir readdir
11883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11897 #define $ac_func innocuous_$ac_func
11899 /* System header to define __stub macros and hopefully few prototypes,
11900 which can conflict with char $ac_func (); below.
11901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11902 <limits.h> exists even on freestanding compilers. */
11905 # include <limits.h>
11907 # include <assert.h>
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11919 /* The GNU C library defines this for functions which it implements
11920 to always fail with ENOSYS. Some functions are actually named
11921 something starting with __ and the normal name is an alias. */
11922 #if defined __stub_$ac_func || defined __stub___$ac_func
11929 return $ac_func ();
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (ac_try="$ac_link"
11936 case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_link") 2>conftest.er1
11943 grep -v '^ *+' conftest.er1 >conftest.err
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11949 { (case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_try") 2>&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11968 eval "$as_ac_var=yes"
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 eval "$as_ac_var=no"
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11979 ac_res=`eval echo '${'$as_ac_var'}'`
11980 { echo "$as_me:$LINENO: result: $ac_res" >&5
11981 echo "${ECHO_T}$ac_res" >&6; }
11982 if test `eval echo '${'$as_ac_var'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11991 # Check whether --enable-shared was given.
11992 if test "${enable_shared+set}" = set; then
11993 enableval=$enable_shared; p=${PACKAGE-default}
11995 yes) enable_shared=yes ;;
11996 no) enable_shared=no ;;
11999 # Look at the argument we got. We use all the common list separators.
12000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12001 for pkg in $enableval; do
12003 if test "X$pkg" = "X$p"; then
12015 # Check whether --enable-static was given.
12016 if test "${enable_static+set}" = set; then
12017 enableval=$enable_static; p=${PACKAGE-default}
12019 yes) enable_static=yes ;;
12020 no) enable_static=no ;;
12023 # Look at the argument we got. We use all the common list separators.
12024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12025 for pkg in $enableval; do
12027 if test "X$pkg" = "X$p"; then
12039 # Check whether --enable-fast-install was given.
12040 if test "${enable_fast_install+set}" = set; then
12041 enableval=$enable_fast_install; p=${PACKAGE-default}
12043 yes) enable_fast_install=yes ;;
12044 no) enable_fast_install=no ;;
12046 enable_fast_install=no
12047 # Look at the argument we got. We use all the common list separators.
12048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12049 for pkg in $enableval; do
12051 if test "X$pkg" = "X$p"; then
12052 enable_fast_install=yes
12059 enable_fast_install=yes
12063 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12064 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12065 if test "${lt_cv_path_SED+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 # Loop through the user's path and test for sed and gsed.
12069 # Then use that list of sed's as ones to test for truncation.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12074 test -z "$as_dir" && as_dir=.
12075 for lt_ac_prog in sed gsed; do
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12078 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12085 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12086 # along with /bin/sed that truncates output.
12087 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12088 test ! -f $lt_ac_sed && continue
12089 cat /dev/null > conftest.in
12091 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12092 # Check for GNU sed and select it if it is found.
12093 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12094 lt_cv_path_SED=$lt_ac_sed
12098 cat conftest.in conftest.in >conftest.tmp
12099 mv conftest.tmp conftest.in
12100 cp conftest.in conftest.nl
12102 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12103 cmp -s conftest.out conftest.nl || break
12104 # 10000 chars as input seems more than enough
12105 test $lt_ac_count -gt 10 && break
12106 lt_ac_count=`expr $lt_ac_count + 1`
12107 if test $lt_ac_count -gt $lt_ac_max; then
12108 lt_ac_max=$lt_ac_count
12109 lt_cv_path_SED=$lt_ac_sed
12116 SED=$lt_cv_path_SED
12117 { echo "$as_me:$LINENO: result: $SED" >&5
12118 echo "${ECHO_T}$SED" >&6; }
12121 # Check whether --with-gnu-ld was given.
12122 if test "${with_gnu_ld+set}" = set; then
12123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12129 if test "$GCC" = yes; then
12130 # Check if gcc -print-prog-name=ld gives a path.
12131 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12132 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12135 # gcc leaves a trailing carriage return which upsets mingw
12136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12141 # Accept absolute paths.
12143 re_direlt='/[^/][^/]*/\.\./'
12144 # Canonicalize the pathname of ld
12145 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12147 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12149 test -z "$LD" && LD="$ac_prog"
12152 # If it fails, then pretend we aren't using GCC.
12156 # If it is relative, then search for the first ld in PATH.
12157 with_gnu_ld=unknown
12160 elif test "$with_gnu_ld" = yes; then
12161 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12162 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12164 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12165 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12167 if test "${lt_cv_path_LD+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 if test -z "$LD"; then
12171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12172 for ac_dir in $PATH; do
12174 test -z "$ac_dir" && ac_dir=.
12175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12176 lt_cv_path_LD="$ac_dir/$ac_prog"
12177 # Check to see if the program is GNU ld. I'd rather use --version,
12178 # but apparently some variants of GNU ld only accept -v.
12179 # Break only if it was the GNU/non-GNU ld that we prefer.
12180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12181 *GNU* | *'with BFD'*)
12182 test "$with_gnu_ld" != no && break
12185 test "$with_gnu_ld" != yes && break
12192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12196 LD="$lt_cv_path_LD"
12197 if test -n "$LD"; then
12198 { echo "$as_me:$LINENO: result: $LD" >&5
12199 echo "${ECHO_T}$LD" >&6; }
12201 { echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6; }
12204 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12205 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12206 { (exit 1); exit 1; }; }
12207 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12208 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12209 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12213 case `$LD -v 2>&1 </dev/null` in
12214 *GNU* | *'with BFD'*)
12215 lt_cv_prog_gnu_ld=yes
12218 lt_cv_prog_gnu_ld=no
12222 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12223 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12224 with_gnu_ld=$lt_cv_prog_gnu_ld
12227 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12228 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12229 if test "${lt_cv_ld_reload_flag+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 lt_cv_ld_reload_flag='-r'
12234 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12235 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12236 reload_flag=$lt_cv_ld_reload_flag
12237 case $reload_flag in
12239 *) reload_flag=" $reload_flag" ;;
12241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12244 if test "$GCC" = yes; then
12245 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12247 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12252 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12253 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12254 if test "${lt_cv_deplibs_check_method+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 lt_cv_file_magic_cmd='$MAGIC_CMD'
12258 lt_cv_file_magic_test_file=
12259 lt_cv_deplibs_check_method='unknown'
12260 # Need to set the preceding variable on all platforms that support
12261 # interlibrary dependencies.
12262 # 'none' -- dependencies not supported.
12263 # `unknown' -- same as none, but documents that we really don't know.
12264 # 'pass_all' -- all dependencies passed with no checks.
12265 # 'test_compile' -- check by making test program.
12266 # 'file_magic [[regex]]' -- check by looking for files in library path
12267 # which responds to the $file_magic_cmd with a given extended regex.
12268 # If you have `file' or equivalent on your system and you're not sure
12269 # whether `pass_all' will *always* work, you probably want this one.
12273 lt_cv_deplibs_check_method=pass_all
12277 lt_cv_deplibs_check_method=pass_all
12281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12282 lt_cv_file_magic_cmd='/usr/bin/file -L'
12283 lt_cv_file_magic_test_file=/shlib/libc.so
12287 # func_win32_libid is a shell function defined in ltmain.sh
12288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12289 lt_cv_file_magic_cmd='func_win32_libid'
12293 # Base MSYS/MinGW do not provide the 'file' command needed by
12294 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12295 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12296 lt_cv_file_magic_cmd='$OBJDUMP -f'
12299 darwin* | rhapsody*)
12300 lt_cv_deplibs_check_method=pass_all
12303 freebsd* | kfreebsd*-gnu | dragonfly*)
12304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12307 # Not sure whether the presence of OpenBSD here was a mistake.
12308 # Let's accept both of them until this is cleared up.
12309 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12310 lt_cv_file_magic_cmd=/usr/bin/file
12311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12315 lt_cv_deplibs_check_method=pass_all
12320 lt_cv_deplibs_check_method=pass_all
12323 hpux10.20* | hpux11*)
12324 lt_cv_file_magic_cmd=/usr/bin/file
12327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12331 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]'
12332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12346 irix5* | irix6* | nonstopux*)
12348 *-32|*"-32 ") libmagic=32-bit;;
12349 *-n32|*"-n32 ") libmagic=N32;;
12350 *-64|*"-64 ") libmagic=64-bit;;
12351 *) libmagic=never-match;;
12353 lt_cv_deplibs_check_method=pass_all
12356 # This must be Linux ELF.
12358 lt_cv_deplibs_check_method=pass_all
12362 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12371 lt_cv_file_magic_cmd=/usr/bin/file
12372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12376 lt_cv_deplibs_check_method=unknown
12380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12387 osf3* | osf4* | osf5*)
12388 lt_cv_deplibs_check_method=pass_all
12392 lt_cv_deplibs_check_method=pass_all
12396 case $host_vendor in
12398 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]'
12399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12402 lt_cv_deplibs_check_method=pass_all
12405 lt_cv_file_magic_cmd='/bin/file'
12406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12409 lt_cv_file_magic_cmd='/bin/file'
12410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12411 lt_cv_file_magic_test_file=/lib/libc.so
12414 lt_cv_deplibs_check_method=pass_all
12417 lt_cv_deplibs_check_method=pass_all
12422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12423 lt_cv_deplibs_check_method=pass_all
12428 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12429 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12430 file_magic_cmd=$lt_cv_file_magic_cmd
12431 deplibs_check_method=$lt_cv_deplibs_check_method
12432 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12436 # If no C compiler was specified, use CC.
12439 # If no C compiler flags were specified, use CFLAGS.
12440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12442 # Allow CC to be a program name with arguments.
12445 # Check whether --enable-libtool-lock was given.
12446 if test "${enable_libtool_lock+set}" = set; then
12447 enableval=$enable_libtool_lock;
12450 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12452 # Some flags need to be propagated to the compiler or linker for good
12456 # Find out which ABI we are using.
12457 echo 'int i;' > conftest.$ac_ext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; then
12463 case `/usr/bin/file conftest.$ac_objext` in
12465 HPUX_IA64_MODE="32"
12468 HPUX_IA64_MODE="64"
12475 # Find out which ABI we are using.
12476 echo '#line 12476 "configure"' > conftest.$ac_ext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; then
12482 if test "$lt_cv_prog_gnu_ld" = yes; then
12483 case `/usr/bin/file conftest.$ac_objext` in
12485 LD="${LD-ld} -melf32bsmip"
12488 LD="${LD-ld} -melf32bmipn32"
12491 LD="${LD-ld} -melf64bmip"
12495 case `/usr/bin/file conftest.$ac_objext` in
12511 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12512 # Find out which ABI we are using.
12513 echo 'int i;' > conftest.$ac_ext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; then
12519 case `/usr/bin/file conftest.o` in
12523 LD="${LD-ld} -m elf_i386"
12525 ppc64-*linux*|powerpc64-*linux*)
12526 LD="${LD-ld} -m elf32ppclinux"
12529 LD="${LD-ld} -m elf_s390"
12532 LD="${LD-ld} -m elf32_sparc"
12539 LD="${LD-ld} -m elf_x86_64"
12541 ppc*-*linux*|powerpc*-*linux*)
12542 LD="${LD-ld} -m elf64ppc"
12545 LD="${LD-ld} -m elf64_s390"
12548 LD="${LD-ld} -m elf64_sparc"
12558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12559 SAVE_CFLAGS="$CFLAGS"
12560 CFLAGS="$CFLAGS -belf"
12561 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12562 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12563 if test "${lt_cv_cc_needs_belf+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 ac_cpp='$CPP $CPPFLAGS'
12568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (ac_try="$ac_link"
12589 case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_link") 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12621 lt_cv_cc_needs_belf=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 lt_cv_cc_needs_belf=no
12629 rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12632 ac_cpp='$CPP $CPPFLAGS'
12633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12638 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12639 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12640 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12641 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12642 CFLAGS="$SAVE_CFLAGS"
12646 # Find out which ABI we are using.
12647 echo 'int i;' > conftest.$ac_ext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; then
12653 case `/usr/bin/file conftest.o` in
12655 case $lt_cv_prog_gnu_ld in
12656 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12657 *) LD="${LD-ld} -64" ;;
12668 need_locks="$enable_libtool_lock"
12673 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12674 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12675 (test "X$CXX" != "Xg++"))) ; then
12677 ac_cpp='$CXXCPP $CPPFLAGS'
12678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12681 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12682 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12683 if test -z "$CXXCPP"; then
12684 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 # Double quotes because CXXCPP needs to be expanded
12688 for CXXCPP in "$CXX -E" "/lib/cpp"
12690 ac_preproc_ok=false
12691 for ac_cxx_preproc_warn_flag in '' yes
12693 # Use a header file that comes with gcc, so configuring glibc
12694 # with a fresh cross-compiler works.
12695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12696 # <limits.h> exists even on freestanding compilers.
12697 # On the NeXT, cc -E runs the code through the compiler's parser,
12698 # not just through cpp. "Syntax error" is here to catch this case.
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 # include <limits.h>
12708 # include <assert.h>
12712 if { (ac_try="$ac_cpp conftest.$ac_ext"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } >/dev/null; then
12725 if test -s conftest.err; then
12726 ac_cpp_err=$ac_cxx_preproc_warn_flag
12727 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12734 if test -z "$ac_cpp_err"; then
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 # Broken: fails on valid input.
12744 rm -f conftest.err conftest.$ac_ext
12746 # OK, works on sane cases. Now check whether nonexistent headers
12747 # can be detected and how.
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 #include <ac_nonexistent.h>
12756 if { (ac_try="$ac_cpp conftest.$ac_ext"
12757 case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12764 grep -v '^ *+' conftest.er1 >conftest.err
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } >/dev/null; then
12769 if test -s conftest.err; then
12770 ac_cpp_err=$ac_cxx_preproc_warn_flag
12771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12778 if test -z "$ac_cpp_err"; then
12779 # Broken: success on invalid input.
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 # Passes both tests.
12790 rm -f conftest.err conftest.$ac_ext
12793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12794 rm -f conftest.err conftest.$ac_ext
12795 if $ac_preproc_ok; then
12800 ac_cv_prog_CXXCPP=$CXXCPP
12803 CXXCPP=$ac_cv_prog_CXXCPP
12805 ac_cv_prog_CXXCPP=$CXXCPP
12807 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12808 echo "${ECHO_T}$CXXCPP" >&6; }
12809 ac_preproc_ok=false
12810 for ac_cxx_preproc_warn_flag in '' yes
12812 # Use a header file that comes with gcc, so configuring glibc
12813 # with a fresh cross-compiler works.
12814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815 # <limits.h> exists even on freestanding compilers.
12816 # On the NeXT, cc -E runs the code through the compiler's parser,
12817 # not just through cpp. "Syntax error" is here to catch this case.
12818 cat >conftest.$ac_ext <<_ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12825 # include <limits.h>
12827 # include <assert.h>
12831 if { (ac_try="$ac_cpp conftest.$ac_ext"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12839 grep -v '^ *+' conftest.er1 >conftest.err
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } >/dev/null; then
12844 if test -s conftest.err; then
12845 ac_cpp_err=$ac_cxx_preproc_warn_flag
12846 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12853 if test -z "$ac_cpp_err"; then
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 # Broken: fails on valid input.
12863 rm -f conftest.err conftest.$ac_ext
12865 # OK, works on sane cases. Now check whether nonexistent headers
12866 # can be detected and how.
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 #include <ac_nonexistent.h>
12875 if { (ac_try="$ac_cpp conftest.$ac_ext"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1 >conftest.err
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } >/dev/null; then
12888 if test -s conftest.err; then
12889 ac_cpp_err=$ac_cxx_preproc_warn_flag
12890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12897 if test -z "$ac_cpp_err"; then
12898 # Broken: success on invalid input.
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 # Passes both tests.
12909 rm -f conftest.err conftest.$ac_ext
12912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12913 rm -f conftest.err conftest.$ac_ext
12914 if $ac_preproc_ok; then
12917 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12918 See \`config.log' for more details." >&5
12919 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12920 See \`config.log' for more details." >&2;}
12921 { (exit 1); exit 1; }; }
12925 ac_cpp='$CXXCPP $CPPFLAGS'
12926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12934 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12935 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12937 if test -n "$ac_tool_prefix"; then
12938 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
12940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12944 if test "${ac_cv_prog_F77+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 if test -n "$F77"; then
12948 ac_cv_prog_F77="$F77" # Let the user override the test.
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12957 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 F77=$ac_cv_prog_F77
12968 if test -n "$F77"; then
12969 { echo "$as_me:$LINENO: result: $F77" >&5
12970 echo "${ECHO_T}$F77" >&6; }
12972 { echo "$as_me:$LINENO: result: no" >&5
12973 echo "${ECHO_T}no" >&6; }
12977 test -n "$F77" && break
12980 if test -z "$F77"; then
12982 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
12984 # Extract the first word of "$ac_prog", so it can be a program name with args.
12985 set dummy $ac_prog; ac_word=$2
12986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12988 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 if test -n "$ac_ct_F77"; then
12992 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13001 ac_cv_prog_ac_ct_F77="$ac_prog"
13002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13012 if test -n "$ac_ct_F77"; then
13013 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13014 echo "${ECHO_T}$ac_ct_F77" >&6; }
13016 { echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6; }
13021 test -n "$ac_ct_F77" && break
13024 if test "x$ac_ct_F77" = x; then
13027 case $cross_compiling:$ac_tool_warned in
13029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13030 whose name does not start with the host triplet. If you think this
13031 configuration is useful to you, please write to autoconf@gnu.org." >&5
13032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13033 whose name does not start with the host triplet. If you think this
13034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13035 ac_tool_warned=yes ;;
13042 # Provide some information about the compiler.
13043 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13044 ac_compiler=`set X $ac_compile; echo $2`
13045 { (ac_try="$ac_compiler --version >&5"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_compiler --version >&5") 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }
13055 { (ac_try="$ac_compiler -v >&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 -v >&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); }
13077 # If we don't use `.F' as extension, the preprocessor is not run on the
13078 # input file. (Note that this only needs to work for GNU compilers.)
13079 ac_save_ext=$ac_ext
13081 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13082 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13083 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13094 rm -f conftest.$ac_objext
13095 if { (ac_try="$ac_compile"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_compile") 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13109 { (case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_try") 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13128 ac_compiler_gnu=yes
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13140 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13141 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13142 ac_ext=$ac_save_ext
13143 ac_test_FFLAGS=${FFLAGS+set}
13144 ac_save_FFLAGS=$FFLAGS
13146 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13147 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13148 if test "${ac_cv_prog_f77_g+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 cat >conftest.$ac_ext <<_ACEOF
13157 rm -f conftest.$ac_objext
13158 if { (ac_try="$ac_compile"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_compile") 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13191 ac_cv_prog_f77_g=yes
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ac_cv_prog_f77_g=no
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13203 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13204 if test "$ac_test_FFLAGS" = set; then
13205 FFLAGS=$ac_save_FFLAGS
13206 elif test $ac_cv_prog_f77_g = yes; then
13207 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13213 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13220 G77=`test $ac_compiler_gnu = yes && echo yes`
13222 ac_cpp='$CPP $CPPFLAGS'
13223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13229 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13231 # find the maximum length of command line arguments
13232 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13233 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13234 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 # On DJGPP, this test can blow up pretty badly due to problems in libc
13243 # (any single argument exceeding 2000 bytes causes a buffer overrun
13244 # during glob expansion). Even if it were fixed, the result of this
13245 # check would be larger than it should be.
13246 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13250 # Under GNU Hurd, this test is not required because there is
13251 # no limit to the length of command line arguments.
13252 # Libtool will interpret -1 as no limit whatsoever
13253 lt_cv_sys_max_cmd_len=-1;
13257 # On Win9x/ME, this test blows up -- it succeeds, but takes
13258 # about 5 minutes as the teststring grows exponentially.
13259 # Worse, since 9x/ME are not pre-emptively multitasking,
13260 # you end up with a "frozen" computer, even though with patience
13261 # the test eventually succeeds (with a max line length of 256k).
13262 # Instead, let's just punt: use the minimum linelength reported by
13263 # all of the supported platforms: 8192 (on NT/2K/XP).
13264 lt_cv_sys_max_cmd_len=8192;
13268 # On AmigaOS with pdksh, this test takes hours, literally.
13269 # So we just punt and use a minimum line length of 8192.
13270 lt_cv_sys_max_cmd_len=8192;
13273 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13274 # This has been around since 386BSD, at least. Likely further.
13275 if test -x /sbin/sysctl; then
13276 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13277 elif test -x /usr/sbin/sysctl; then
13278 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13280 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13282 # And add a safety zone
13283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13288 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13289 lt_cv_sys_max_cmd_len=196608
13293 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13294 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13295 # nice to cause kernel panics so lets avoid the loop below.
13296 # First set a reasonable default.
13297 lt_cv_sys_max_cmd_len=16384
13299 if test -x /sbin/sysconfig; then
13300 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13301 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13306 lt_cv_sys_max_cmd_len=102400
13308 sysv5* | sco5v6* | sysv4.2uw2*)
13309 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13310 if test -n "$kargmax"; then
13311 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13313 lt_cv_sys_max_cmd_len=32768
13317 # If test is not a shell built-in, we'll probably end up computing a
13318 # maximum length that is only half of the actual maximum length, but
13320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13321 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13322 = "XX$teststring") >/dev/null 2>&1 &&
13323 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13324 lt_cv_sys_max_cmd_len=$new_result &&
13325 test $i != 17 # 1/2 MB should be enough
13328 teststring=$teststring$teststring
13331 # Add a significant safety factor because C++ compilers can tack on massive
13332 # amounts of additional arguments before passing them to the linker.
13333 # It appears as though 1/2 is a usable value.
13334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13340 if test -n $lt_cv_sys_max_cmd_len ; then
13341 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13342 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13344 { echo "$as_me:$LINENO: result: none" >&5
13345 echo "${ECHO_T}none" >&6; }
13351 # Check for command to grab the raw symbol name followed by C symbol from nm.
13352 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13353 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13354 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 # These are sane defaults that work on at least a few old systems.
13359 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13361 # Character class describing NM global symbol codes.
13362 symcode='[BCDEGRST]'
13364 # Regexp to match symbols that can be accessed directly from C.
13365 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13367 # Transform an extracted symbol line into a proper C declaration
13368 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13370 # Transform an extracted symbol line into symbol name and symbol address
13371 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'"
13373 # Define system-specific variables.
13378 cygwin* | mingw* | pw32*)
13379 symcode='[ABCDGISTW]'
13381 hpux*) # Its linker distinguishes data from code symbols
13382 if test "$host_cpu" = ia64; then
13383 symcode='[ABCDEGRST]'
13385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13386 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'"
13389 if test "$host_cpu" = ia64; then
13390 symcode='[ABCDGIRSTW]'
13391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13392 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'"
13395 irix* | nonstopux*)
13396 symcode='[BCDEGRST]'
13399 symcode='[BCDEGQRST]'
13410 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13418 # Handle CRLF in mingw tool chain
13422 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13426 # If we're using GNU nm, then use its standard symbol codes.
13427 case `$NM -V 2>&1` in
13428 *GNU* | *'with BFD'*)
13429 symcode='[ABCDGIRSTW]' ;;
13432 # Try without a prefix undercore, then with it.
13433 for ac_symprfx in "" "_"; do
13435 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13436 symxfrm="\\1 $ac_symprfx\\2 \\2"
13438 # Write the raw and C identifiers.
13439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13441 # Check to see that the pipe works correctly.
13445 cat > conftest.$ac_ext <<EOF
13450 void nm_test_func(){}
13454 int main(){nm_test_var='a';nm_test_func();return(0);}
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; then
13462 # Now try to grab the symbols.
13464 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13465 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && test -s "$nlist"; then
13469 # Try sorting and uniquifying the output.
13470 if sort "$nlist" | uniq > "$nlist"T; then
13471 mv -f "$nlist"T "$nlist"
13476 # Make sure that we snagged all the symbols we need.
13477 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13478 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13479 cat <<EOF > conftest.$ac_ext
13485 # Now generate the symbol file.
13486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13488 cat <<EOF >> conftest.$ac_ext
13489 #if defined (__STDC__) && __STDC__
13490 # define lt_ptr_t void *
13492 # define lt_ptr_t char *
13496 /* The mapping between symbol names and symbols. */
13501 lt_preloaded_symbols[] =
13504 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13505 cat <<\EOF >> conftest.$ac_ext
13513 # Now try linking the two files.
13514 mv conftest.$ac_objext conftstm.$ac_objext
13515 lt_save_LIBS="$LIBS"
13516 lt_save_CFLAGS="$CFLAGS"
13517 LIBS="conftstm.$ac_objext"
13518 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13520 (eval $ac_link) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13526 LIBS="$lt_save_LIBS"
13527 CFLAGS="$lt_save_CFLAGS"
13529 echo "cannot find nm_test_func in $nlist" >&5
13532 echo "cannot find nm_test_var in $nlist" >&5
13535 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13538 echo "$progname: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13541 rm -f conftest* conftst*
13543 # Do not use the global_symbol_pipe unless it works.
13544 if test "$pipe_works" = yes; then
13547 lt_cv_sys_global_symbol_pipe=
13553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13554 lt_cv_sys_global_symbol_to_cdecl=
13556 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13557 { echo "$as_me:$LINENO: result: failed" >&5
13558 echo "${ECHO_T}failed" >&6; }
13560 { echo "$as_me:$LINENO: result: ok" >&5
13561 echo "${ECHO_T}ok" >&6; }
13564 { echo "$as_me:$LINENO: checking for objdir" >&5
13565 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13566 if test "${lt_cv_objdir+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 rm -f .libs 2>/dev/null
13570 mkdir .libs 2>/dev/null
13571 if test -d .libs; then
13574 # MS-DOS does not allow filenames that begin with a dot.
13577 rmdir .libs 2>/dev/null
13579 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13580 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13581 objdir=$lt_cv_objdir
13589 # AIX sometimes has problems with the GCC collect2 program. For some
13590 # reason, if we set the COLLECT_NAMES environment variable, the problems
13591 # vanish in a puff of smoke.
13592 if test "X${COLLECT_NAMES+set}" != Xset; then
13594 export COLLECT_NAMES
13599 # Sed substitution that helps us do robust quoting. It backslashifies
13600 # metacharacters that are still active within double-quoted strings.
13601 Xsed='sed -e 1s/^X//'
13602 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13604 # Same as above, but do not quote variable references.
13605 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13607 # Sed substitution to delay expansion of an escaped shell variable in a
13608 # double_quote_subst'ed string.
13609 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13611 # Sed substitution to avoid accidental globbing in evaled expressions
13612 no_glob_subst='s/\*/\\\*/g'
13617 # Global variables:
13618 default_ofile=mklib
13619 can_build_shared=yes
13621 # All known linkers require a `.a' archive for static linking (except MSVC,
13622 # which needs '.lib').
13624 ltmain="$ac_aux_dir/ltmain.sh"
13625 ofile="$default_ofile"
13626 with_gnu_ld="$lt_cv_prog_gnu_ld"
13628 if test -n "$ac_tool_prefix"; then
13629 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13630 set dummy ${ac_tool_prefix}ar; ac_word=$2
13631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13633 if test "${ac_cv_prog_AR+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 if test -n "$AR"; then
13637 ac_cv_prog_AR="$AR" # Let the user override the test.
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13646 ac_cv_prog_AR="${ac_tool_prefix}ar"
13647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 if test -n "$AR"; then
13658 { echo "$as_me:$LINENO: result: $AR" >&5
13659 echo "${ECHO_T}$AR" >&6; }
13661 { echo "$as_me:$LINENO: result: no" >&5
13662 echo "${ECHO_T}no" >&6; }
13667 if test -z "$ac_cv_prog_AR"; then
13669 # Extract the first word of "ar", so it can be a program name with args.
13670 set dummy ar; ac_word=$2
13671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13673 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 if test -n "$ac_ct_AR"; then
13677 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13686 ac_cv_prog_ac_ct_AR="ar"
13687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13697 if test -n "$ac_ct_AR"; then
13698 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13699 echo "${ECHO_T}$ac_ct_AR" >&6; }
13701 { echo "$as_me:$LINENO: result: no" >&5
13702 echo "${ECHO_T}no" >&6; }
13705 if test "x$ac_ct_AR" = x; then
13708 case $cross_compiling:$ac_tool_warned in
13710 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13711 whose name does not start with the host triplet. If you think this
13712 configuration is useful to you, please write to autoconf@gnu.org." >&5
13713 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13714 whose name does not start with the host triplet. If you think this
13715 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13716 ac_tool_warned=yes ;;
13721 AR="$ac_cv_prog_AR"
13724 if test -n "$ac_tool_prefix"; then
13725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13729 if test "${ac_cv_prog_RANLIB+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 if test -n "$RANLIB"; then
13733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 for as_dir in $PATH
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
13741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 RANLIB=$ac_cv_prog_RANLIB
13753 if test -n "$RANLIB"; then
13754 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13755 echo "${ECHO_T}$RANLIB" >&6; }
13757 { echo "$as_me:$LINENO: result: no" >&5
13758 echo "${ECHO_T}no" >&6; }
13763 if test -z "$ac_cv_prog_RANLIB"; then
13764 ac_ct_RANLIB=$RANLIB
13765 # Extract the first word of "ranlib", so it can be a program name with args.
13766 set dummy ranlib; ac_word=$2
13767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13769 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 if test -n "$ac_ct_RANLIB"; then
13773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
13781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13782 ac_cv_prog_ac_ct_RANLIB="ranlib"
13783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13793 if test -n "$ac_ct_RANLIB"; then
13794 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13795 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13797 { echo "$as_me:$LINENO: result: no" >&5
13798 echo "${ECHO_T}no" >&6; }
13801 if test "x$ac_ct_RANLIB" = x; then
13804 case $cross_compiling:$ac_tool_warned in
13806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13807 whose name does not start with the host triplet. If you think this
13808 configuration is useful to you, please write to autoconf@gnu.org." >&5
13809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13810 whose name does not start with the host triplet. If you think this
13811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13812 ac_tool_warned=yes ;;
13814 RANLIB=$ac_ct_RANLIB
13817 RANLIB="$ac_cv_prog_RANLIB"
13820 if test -n "$ac_tool_prefix"; then
13821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13822 set dummy ${ac_tool_prefix}strip; ac_word=$2
13823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13825 if test "${ac_cv_prog_STRIP+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 if test -n "$STRIP"; then
13829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832 for as_dir in $PATH
13835 test -z "$as_dir" && as_dir=.
13836 for ac_exec_ext in '' $ac_executable_extensions; do
13837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 STRIP=$ac_cv_prog_STRIP
13849 if test -n "$STRIP"; then
13850 { echo "$as_me:$LINENO: result: $STRIP" >&5
13851 echo "${ECHO_T}$STRIP" >&6; }
13853 { echo "$as_me:$LINENO: result: no" >&5
13854 echo "${ECHO_T}no" >&6; }
13859 if test -z "$ac_cv_prog_STRIP"; then
13861 # Extract the first word of "strip", so it can be a program name with args.
13862 set dummy strip; ac_word=$2
13863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13865 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 if test -n "$ac_ct_STRIP"; then
13869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13878 ac_cv_prog_ac_ct_STRIP="strip"
13879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13889 if test -n "$ac_ct_STRIP"; then
13890 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13891 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13893 { echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6; }
13897 if test "x$ac_ct_STRIP" = x; then
13900 case $cross_compiling:$ac_tool_warned in
13902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13903 whose name does not start with the host triplet. If you think this
13904 configuration is useful to you, please write to autoconf@gnu.org." >&5
13905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13906 whose name does not start with the host triplet. If you think this
13907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13908 ac_tool_warned=yes ;;
13913 STRIP="$ac_cv_prog_STRIP"
13918 old_CFLAGS="$CFLAGS"
13920 # Set sane defaults for various variables
13921 test -z "$AR" && AR=ar
13922 test -z "$AR_FLAGS" && AR_FLAGS=cru
13923 test -z "$AS" && AS=as
13924 test -z "$CC" && CC=cc
13925 test -z "$LTCC" && LTCC=$CC
13926 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13927 test -z "$DLLTOOL" && DLLTOOL=dlltool
13928 test -z "$LD" && LD=ld
13929 test -z "$LN_S" && LN_S="ln -s"
13930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13931 test -z "$NM" && NM=nm
13932 test -z "$SED" && SED=sed
13933 test -z "$OBJDUMP" && OBJDUMP=objdump
13934 test -z "$RANLIB" && RANLIB=:
13935 test -z "$STRIP" && STRIP=:
13936 test -z "$ac_objext" && ac_objext=o
13938 # Determine commands to create old-style static archives.
13939 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13940 old_postinstall_cmds='chmod 644 $oldlib'
13941 old_postuninstall_cmds=
13943 if test -n "$RANLIB"; then
13946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13955 for cc_temp in $compiler""; do
13957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13963 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13966 # Only perform the check for file, if the check method requires it
13967 case $deplibs_check_method in
13969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13970 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13971 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13972 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13980 lt_save_MAGIC_CMD="$MAGIC_CMD"
13981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13983 for ac_dir in $ac_dummy; do
13985 test -z "$ac_dir" && ac_dir=.
13986 if test -f $ac_dir/${ac_tool_prefix}file; then
13987 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13988 if test -n "$file_magic_test_file"; then
13989 case $deplibs_check_method in
13991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13994 $EGREP "$file_magic_regex" > /dev/null; then
13999 *** Warning: the command libtool uses to detect shared libraries,
14000 *** $file_magic_cmd, produces output that libtool cannot recognize.
14001 *** The result is that libtool may fail to recognize shared libraries
14002 *** as such. This will affect the creation of libtool libraries that
14003 *** depend on shared libraries, but programs linked with such libtool
14004 *** libraries will work regardless of this problem. Nevertheless, you
14005 *** may want to report the problem to your system manager and/or to
14006 *** bug-libtool@gnu.org
14016 MAGIC_CMD="$lt_save_MAGIC_CMD"
14021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14022 if test -n "$MAGIC_CMD"; then
14023 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14024 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14026 { echo "$as_me:$LINENO: result: no" >&5
14027 echo "${ECHO_T}no" >&6; }
14030 if test -z "$lt_cv_path_MAGIC_CMD"; then
14031 if test -n "$ac_tool_prefix"; then
14032 { echo "$as_me:$LINENO: checking for file" >&5
14033 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14034 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14042 lt_save_MAGIC_CMD="$MAGIC_CMD"
14043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14044 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14045 for ac_dir in $ac_dummy; do
14047 test -z "$ac_dir" && ac_dir=.
14048 if test -f $ac_dir/file; then
14049 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14050 if test -n "$file_magic_test_file"; then
14051 case $deplibs_check_method in
14053 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14055 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14056 $EGREP "$file_magic_regex" > /dev/null; then
14061 *** Warning: the command libtool uses to detect shared libraries,
14062 *** $file_magic_cmd, produces output that libtool cannot recognize.
14063 *** The result is that libtool may fail to recognize shared libraries
14064 *** as such. This will affect the creation of libtool libraries that
14065 *** depend on shared libraries, but programs linked with such libtool
14066 *** libraries will work regardless of this problem. Nevertheless, you
14067 *** may want to report the problem to your system manager and/or to
14068 *** bug-libtool@gnu.org
14078 MAGIC_CMD="$lt_save_MAGIC_CMD"
14083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14084 if test -n "$MAGIC_CMD"; then
14085 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14086 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14088 { echo "$as_me:$LINENO: result: no" >&5
14089 echo "${ECHO_T}no" >&6; }
14102 enable_win32_dll=no
14104 # Check whether --enable-libtool-lock was given.
14105 if test "${enable_libtool_lock+set}" = set; then
14106 enableval=$enable_libtool_lock;
14109 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14112 # Check whether --with-pic was given.
14113 if test "${with_pic+set}" = set; then
14114 withval=$with_pic; pic_mode="$withval"
14119 test -z "$pic_mode" && pic_mode=default
14121 # Use C for the default configuration in the libtool script
14125 ac_cpp='$CPP $CPPFLAGS'
14126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14131 # Source file extension for C test sources.
14134 # Object file extension for compiled C test sources.
14138 # Code to be used in simple compile tests
14139 lt_simple_compile_test_code="int some_variable = 0;\n"
14141 # Code to be used in simple link tests
14142 lt_simple_link_test_code='int main(){return(0);}\n'
14145 # If no C compiler was specified, use CC.
14148 # If no C compiler flags were specified, use CFLAGS.
14149 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14151 # Allow CC to be a program name with arguments.
14155 # save warnings/boilerplate of simple test code
14156 ac_outfile=conftest.$ac_objext
14157 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14158 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14159 _lt_compiler_boilerplate=`cat conftest.err`
14162 ac_outfile=conftest.$ac_objext
14163 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14164 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14165 _lt_linker_boilerplate=`cat conftest.err`
14170 lt_prog_compiler_no_builtin_flag=
14172 if test "$GCC" = yes; then
14173 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14176 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14177 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14178 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 lt_cv_prog_compiler_rtti_exceptions=no
14182 ac_outfile=conftest.$ac_objext
14183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14184 lt_compiler_flag="-fno-rtti -fno-exceptions"
14185 # Insert the option either (1) after the last *FLAGS variable, or
14186 # (2) before a word containing "conftest.", or (3) at the end.
14187 # Note that $ac_compile itself does not contain backslashes and begins
14188 # with a dollar sign (not a hyphen), so the echo should work correctly.
14189 # The option is referenced via a variable to avoid confusing sed.
14190 lt_compile=`echo "$ac_compile" | $SED \
14191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14193 -e 's:$: $lt_compiler_flag:'`
14194 (eval echo "\"\$as_me:14194: $lt_compile\"" >&5)
14195 (eval "$lt_compile" 2>conftest.err)
14197 cat conftest.err >&5
14198 echo "$as_me:14198: \$? = $ac_status" >&5
14199 if (exit $ac_status) && test -s "$ac_outfile"; then
14200 # The compiler can only warn and ignore the option if not recognized
14201 # So say no if there are warnings other than the usual output.
14202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14205 lt_cv_prog_compiler_rtti_exceptions=yes
14211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14215 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14222 lt_prog_compiler_wl=
14223 lt_prog_compiler_pic=
14224 lt_prog_compiler_static=
14226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14229 if test "$GCC" = yes; then
14230 lt_prog_compiler_wl='-Wl,'
14231 lt_prog_compiler_static='-static'
14235 # All AIX code is PIC.
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static='-Bstatic'
14243 # FIXME: we need at least 68020 code to build shared libraries, but
14244 # adding the `-m68020' flag to GCC prevents building anything better,
14246 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14250 # PIC is the default for these OSes.
14253 mingw* | pw32* | os2*)
14254 # This hack is so that the source file can tell whether it is being
14255 # built for inclusion in a dll (and should export symbols for example).
14256 lt_prog_compiler_pic='-DDLL_EXPORT'
14259 darwin* | rhapsody*)
14260 # PIC is the default on this platform
14261 # Common symbols not allowed in MH_DYLIB files
14262 lt_prog_compiler_pic='-fno-common'
14266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14267 # Instead, we relocate shared libraries at runtime.
14271 # Just because we use GCC doesn't mean we suddenly get shared libraries
14272 # on systems that don't support them.
14273 lt_prog_compiler_can_build_shared=no
14278 if test -d /usr/nec; then
14279 lt_prog_compiler_pic=-Kconform_pic
14284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14285 # not for PA HP-UX.
14291 lt_prog_compiler_pic='-fPIC'
14297 lt_prog_compiler_pic='-fPIC'
14301 # PORTME Check for flag to pass linker flags through the system compiler.
14304 lt_prog_compiler_wl='-Wl,'
14305 if test "$host_cpu" = ia64; then
14306 # AIX 5 now supports IA64 processor
14307 lt_prog_compiler_static='-Bstatic'
14309 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14313 # PIC is the default on this platform
14314 # Common symbols not allowed in MH_DYLIB files
14315 case $cc_basename in
14317 lt_prog_compiler_pic='-qnocommon'
14318 lt_prog_compiler_wl='-Wl,'
14323 mingw* | pw32* | os2*)
14324 # This hack is so that the source file can tell whether it is being
14325 # built for inclusion in a dll (and should export symbols for example).
14326 lt_prog_compiler_pic='-DDLL_EXPORT'
14329 hpux9* | hpux10* | hpux11*)
14330 lt_prog_compiler_wl='-Wl,'
14331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14332 # not for PA HP-UX.
14338 lt_prog_compiler_pic='+Z'
14341 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14342 lt_prog_compiler_static='${wl}-a ${wl}archive'
14345 irix5* | irix6* | nonstopux*)
14346 lt_prog_compiler_wl='-Wl,'
14347 # PIC (with -KPIC) is the default.
14348 lt_prog_compiler_static='-non_shared'
14352 lt_prog_compiler_pic='-KPIC'
14353 lt_prog_compiler_static='-Bstatic'
14357 case $cc_basename in
14359 lt_prog_compiler_wl='-Wl,'
14360 lt_prog_compiler_pic='-KPIC'
14361 lt_prog_compiler_static='-static'
14363 pgcc* | pgf77* | pgf90* | pgf95*)
14364 # Portland Group compilers (*not* the Pentium gcc compiler,
14365 # which looks to be a dead project)
14366 lt_prog_compiler_wl='-Wl,'
14367 lt_prog_compiler_pic='-fpic'
14368 lt_prog_compiler_static='-Bstatic'
14371 lt_prog_compiler_wl='-Wl,'
14372 # All Alpha code is PIC.
14373 lt_prog_compiler_static='-non_shared'
14378 osf3* | osf4* | osf5*)
14379 lt_prog_compiler_wl='-Wl,'
14380 # All OSF/1 code is PIC.
14381 lt_prog_compiler_static='-non_shared'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14387 case $cc_basename in
14388 f77* | f90* | f95*)
14389 lt_prog_compiler_wl='-Qoption ld ';;
14391 lt_prog_compiler_wl='-Wl,';;
14396 lt_prog_compiler_wl='-Qoption ld '
14397 lt_prog_compiler_pic='-PIC'
14398 lt_prog_compiler_static='-Bstatic'
14401 sysv4 | sysv4.2uw2* | sysv4.3*)
14402 lt_prog_compiler_wl='-Wl,'
14403 lt_prog_compiler_pic='-KPIC'
14404 lt_prog_compiler_static='-Bstatic'
14408 if test -d /usr/nec ;then
14409 lt_prog_compiler_pic='-Kconform_pic'
14410 lt_prog_compiler_static='-Bstatic'
14414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14415 lt_prog_compiler_wl='-Wl,'
14416 lt_prog_compiler_pic='-KPIC'
14417 lt_prog_compiler_static='-Bstatic'
14421 lt_prog_compiler_wl='-Wl,'
14422 lt_prog_compiler_can_build_shared=no
14426 lt_prog_compiler_pic='-pic'
14427 lt_prog_compiler_static='-Bstatic'
14431 lt_prog_compiler_can_build_shared=no
14436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14437 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14440 # Check to make sure the PIC flag actually works.
14442 if test -n "$lt_prog_compiler_pic"; then
14444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14446 if test "${lt_prog_compiler_pic_works+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 lt_prog_compiler_pic_works=no
14450 ac_outfile=conftest.$ac_objext
14451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14453 # Insert the option either (1) after the last *FLAGS variable, or
14454 # (2) before a word containing "conftest.", or (3) at the end.
14455 # Note that $ac_compile itself does not contain backslashes and begins
14456 # with a dollar sign (not a hyphen), so the echo should work correctly.
14457 # The option is referenced via a variable to avoid confusing sed.
14458 lt_compile=`echo "$ac_compile" | $SED \
14459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14461 -e 's:$: $lt_compiler_flag:'`
14462 (eval echo "\"\$as_me:14462: $lt_compile\"" >&5)
14463 (eval "$lt_compile" 2>conftest.err)
14465 cat conftest.err >&5
14466 echo "$as_me:14466: \$? = $ac_status" >&5
14467 if (exit $ac_status) && test -s "$ac_outfile"; then
14468 # The compiler can only warn and ignore the option if not recognized
14469 # So say no if there are warnings other than the usual output.
14470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14473 lt_prog_compiler_pic_works=yes
14479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14480 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14482 if test x"$lt_prog_compiler_pic_works" = xyes; then
14483 case $lt_prog_compiler_pic in
14485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14488 lt_prog_compiler_pic=
14489 lt_prog_compiler_can_build_shared=no
14494 # For platforms which do not support PIC, -DPIC is meaningless:
14496 lt_prog_compiler_pic=
14499 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14504 # Check to make sure the static flag actually works.
14506 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14509 if test "${lt_prog_compiler_static_works+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 lt_prog_compiler_static_works=no
14513 save_LDFLAGS="$LDFLAGS"
14514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14515 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14517 # The linker can only warn and ignore the option if not recognized
14518 # So say no if there are warnings
14519 if test -s conftest.err; then
14520 # Append any errors to the config.log.
14521 cat conftest.err 1>&5
14522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14524 if diff conftest.exp conftest.er2 >/dev/null; then
14525 lt_prog_compiler_static_works=yes
14528 lt_prog_compiler_static_works=yes
14532 LDFLAGS="$save_LDFLAGS"
14535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14536 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14538 if test x"$lt_prog_compiler_static_works" = xyes; then
14541 lt_prog_compiler_static=
14545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14547 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 lt_cv_prog_compiler_c_o=no
14551 $rm -r conftest 2>/dev/null
14555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14557 lt_compiler_flag="-o out/conftest2.$ac_objext"
14558 # Insert the option either (1) after the last *FLAGS variable, or
14559 # (2) before a word containing "conftest.", or (3) at the end.
14560 # Note that $ac_compile itself does not contain backslashes and begins
14561 # with a dollar sign (not a hyphen), so the echo should work correctly.
14562 lt_compile=`echo "$ac_compile" | $SED \
14563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14565 -e 's:$: $lt_compiler_flag:'`
14566 (eval echo "\"\$as_me:14566: $lt_compile\"" >&5)
14567 (eval "$lt_compile" 2>out/conftest.err)
14569 cat out/conftest.err >&5
14570 echo "$as_me:14570: \$? = $ac_status" >&5
14571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14573 # The compiler can only warn and ignore the option if not recognized
14574 # So say no if there are warnings
14575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14578 lt_cv_prog_compiler_c_o=yes
14583 # SGI C++ compiler will create directory out/ii_files/ for
14584 # template instantiation
14585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14586 $rm out/* && rmdir out
14592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14596 hard_links="nottested"
14597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14598 # do not overwrite the value of need_locks provided by the user
14599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14605 ln conftest.a conftest.b 2>&5 || hard_links=no
14606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14607 { echo "$as_me:$LINENO: result: $hard_links" >&5
14608 echo "${ECHO_T}$hard_links" >&6; }
14609 if test "$hard_links" = no; then
14610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14622 allow_undefined_flag=
14623 enable_shared_with_static_runtimes=no
14625 archive_expsym_cmds=
14626 old_archive_From_new_cmds=
14627 old_archive_from_expsyms_cmds=
14628 export_dynamic_flag_spec=
14629 whole_archive_flag_spec=
14630 thread_safe_flag_spec=
14631 hardcode_libdir_flag_spec=
14632 hardcode_libdir_flag_spec_ld=
14633 hardcode_libdir_separator=
14635 hardcode_minus_L=no
14636 hardcode_shlibpath_var=unsupported
14637 link_all_deplibs=unknown
14638 hardcode_automatic=no
14640 module_expsym_cmds=
14641 always_export_symbols=no
14642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14643 # include_expsyms should be a list of space-separated symbols to be *always*
14644 # included in the symbol list
14646 # exclude_expsyms can be an extended regexp of symbols to exclude
14647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14649 # as well as any symbol that contains `d'.
14650 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14652 # platforms (ab)use it in PIC code, but their linkers get confused if
14653 # the symbol is explicitly referenced. Since portable code cannot
14654 # rely on this symbol name, it's probably fine to never include it in
14655 # preloaded symbol tables.
14656 extract_expsyms_cmds=
14657 # Just being paranoid about ensuring that cc_basename is set.
14658 for cc_temp in $compiler""; do
14660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14669 cygwin* | mingw* | pw32*)
14670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14671 # When not using gcc, we currently assume that we are using
14672 # Microsoft Visual C++.
14673 if test "$GCC" != yes; then
14678 # we just hope/assume this is gcc and not c89 (= MSVC++)
14687 if test "$with_gnu_ld" = yes; then
14688 # If archive_cmds runs LD, not CC, wlarc should be empty
14691 # Set some defaults for GNU ld with shared library support. These
14692 # are reset later if shared libraries are not supported. Putting them
14693 # here allows them to be overridden if necessary.
14694 runpath_var=LD_RUN_PATH
14695 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14696 export_dynamic_flag_spec='${wl}--export-dynamic'
14697 # ancient GNU ld didn't support --whole-archive et. al.
14698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14699 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14701 whole_archive_flag_spec=
14703 supports_anon_versioning=no
14704 case `$LD -v 2>/dev/null` in
14705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14708 *\ 2.11.*) ;; # other 2.11 versions
14709 *) supports_anon_versioning=yes ;;
14712 # See if GNU ld supports shared libraries.
14714 aix3* | aix4* | aix5*)
14715 # On AIX/PPC, the GNU linker is very broken
14716 if test "$host_cpu" != ia64; then
14720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14721 *** to be unable to reliably create shared libraries on AIX.
14722 *** Therefore, libtool is disabling shared libraries support. If you
14723 *** really care for shared libraries, you may want to modify your PATH
14724 *** so that a non-GNU linker is found, and then restart.
14731 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)'
14732 hardcode_libdir_flag_spec='-L$libdir'
14733 hardcode_minus_L=yes
14735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14736 # that the semantics of dynamic libraries on AmigaOS, at least up
14737 # to version 4, is to share data among multiple programs linked
14738 # with the same dynamic library. Since this doesn't match the
14739 # behavior of shared libraries on other platforms, we can't use
14745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14746 allow_undefined_flag=unsupported
14747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14748 # support --undefined. This deserves some investigation. FIXME
14749 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14755 cygwin* | mingw* | pw32*)
14756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14757 # as there is no search path for DLLs.
14758 hardcode_libdir_flag_spec='-L$libdir'
14759 allow_undefined_flag=unsupported
14760 always_export_symbols=no
14761 enable_shared_with_static_runtimes=yes
14762 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14764 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14766 # If the export-symbols file already is a .def file (1st line
14767 # is EXPORTS), use it as is; otherwise, prepend...
14768 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14769 cp $export_symbols $output_objdir/$soname.def;
14771 echo EXPORTS > $output_objdir/$soname.def;
14772 cat $export_symbols >> $output_objdir/$soname.def;
14774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14782 hardcode_shlibpath_var=no
14783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14784 export_dynamic_flag_spec='${wl}-E'
14785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14786 # Instead, shared libraries are loaded at an image base (0x10000000 by
14787 # default) and relocated if they conflict, which is a slow very memory
14788 # consuming and fragmenting process. To avoid this, we pick a random,
14789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14790 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14792 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'
14796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14798 case $cc_basename,$host_cpu in
14799 pgcc*) # Portland Group C compiler
14800 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'
14801 tmp_addflag=' $pic_flag'
14803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14804 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'
14805 tmp_addflag=' $pic_flag -Mnomain' ;;
14806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14807 tmp_addflag=' -i_dynamic' ;;
14808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14809 tmp_addflag=' -i_dynamic -nofor_main' ;;
14810 ifc* | ifort*) # Intel Fortran compiler
14811 tmp_addflag=' -nofor_main' ;;
14813 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 if test $supports_anon_versioning = yes; then
14816 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14818 $echo "local: *; };" >> $output_objdir/$libname.ver~
14819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14842 *** create shared libraries on Solaris systems. Therefore, libtool
14843 *** is disabling shared libraries support. We urge you to upgrade GNU
14844 *** binutils to release 2.9.1 or newer. Another option is to modify
14845 *** your PATH or compiler configuration so that the native linker is
14846 *** used, and then restart.
14849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14858 case `$LD -v 2>&1` in
14859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14864 *** reliably create shared libraries on SCO systems. Therefore, libtool
14865 *** is disabling shared libraries support. We urge you to upgrade GNU
14866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14867 *** your PATH or compiler configuration so that the native linker is
14868 *** used, and then restart.
14873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14874 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14876 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14885 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14887 hardcode_direct=yes
14888 hardcode_shlibpath_var=no
14892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14901 if test "$ld_shlibs" = no; then
14903 hardcode_libdir_flag_spec=
14904 export_dynamic_flag_spec=
14905 whole_archive_flag_spec=
14908 # PORTME fill in a description of your system's linker (not GNU ld)
14911 allow_undefined_flag=unsupported
14912 always_export_symbols=yes
14913 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'
14914 # Note: this linker hardcodes the directories in LIBPATH if there
14915 # are no directories specified by -L.
14916 hardcode_minus_L=yes
14917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14918 # Neither direct hardcoding nor static linking is supported with a
14920 hardcode_direct=unsupported
14925 if test "$host_cpu" = ia64; then
14926 # On IA64, the linker does run time linking by default, so we don't
14927 # have to do anything special.
14928 aix_use_runtimelinking=no
14929 exp_sym_flag='-Bexport'
14932 # If we're using GNU nm, then we don't want the "-C" option.
14933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14935 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'
14937 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'
14939 aix_use_runtimelinking=no
14941 # Test if we are trying to use run time linking or normal
14942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14943 # need to do runtime linking.
14944 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14945 for ld_flag in $LDFLAGS; do
14946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14947 aix_use_runtimelinking=yes
14954 exp_sym_flag='-bexport'
14955 no_entry_flag='-bnoentry'
14958 # When large executables or shared objects are built, AIX ld can
14959 # have problems creating the table of contents. If linking a library
14960 # or program results in "error TOC overflow" add -mminimal-toc to
14961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14965 hardcode_direct=yes
14966 hardcode_libdir_separator=':'
14967 link_all_deplibs=yes
14969 if test "$GCC" = yes; then
14970 case $host_os in aix4.[012]|aix4.[012].*)
14971 # We only want to do this on AIX 4.2 and lower, the check
14972 # below for broken collect2 doesn't work under 4.3+
14973 collect2name=`${CC} -print-prog-name=collect2`
14974 if test -f "$collect2name" && \
14975 strings "$collect2name" | grep resolve_lib_name >/dev/null
14977 # We have reworked collect2
14978 hardcode_direct=yes
14980 # We have old collect2
14981 hardcode_direct=unsupported
14982 # It fails to find uninstalled libraries when the uninstalled
14983 # path is not listed in the libpath. Setting hardcode_minus_L
14984 # to unsupported forces relinking
14985 hardcode_minus_L=yes
14986 hardcode_libdir_flag_spec='-L$libdir'
14987 hardcode_libdir_separator=
14991 shared_flag='-shared'
14992 if test "$aix_use_runtimelinking" = yes; then
14993 shared_flag="$shared_flag "'${wl}-G'
14997 if test "$host_cpu" = ia64; then
14998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14999 # chokes on -Wl,-G. The following line is correct:
15002 if test "$aix_use_runtimelinking" = yes; then
15003 shared_flag='${wl}-G'
15005 shared_flag='${wl}-bM:SRE'
15010 # It seems that -bexpall does not export symbols beginning with
15011 # underscore (_), so it is better to generate a list of symbols to export.
15012 always_export_symbols=yes
15013 if test "$aix_use_runtimelinking" = yes; then
15014 # Warning - without using the other runtime loading flags (-brtl),
15015 # -berok will link without error, but may produce a broken library.
15016 allow_undefined_flag='-berok'
15017 # Determine the default libpath from the value encoded in an empty executable.
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15033 rm -f conftest.$ac_objext conftest$ac_exeext
15034 if { (ac_try="$ac_link"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_link") 2>conftest.er1
15042 grep -v '^ *+' conftest.er1 >conftest.err
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15070 # Check for a 64-bit object if we didn't find anything.
15071 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; }
15074 echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15080 rm -f core conftest.err conftest.$ac_objext \
15081 conftest$ac_exeext conftest.$ac_ext
15082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15084 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15085 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"
15087 if test "$host_cpu" = ia64; then
15088 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15089 allow_undefined_flag="-z nodefs"
15090 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"
15092 # Determine the default libpath from the value encoded in an empty executable.
15093 cat >conftest.$ac_ext <<_ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15108 rm -f conftest.$ac_objext conftest$ac_exeext
15109 if { (ac_try="$ac_link"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_link") 2>conftest.er1
15117 grep -v '^ *+' conftest.er1 >conftest.err
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15145 # Check for a 64-bit object if we didn't find anything.
15146 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; }
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15155 rm -f core conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15160 # Warning - without using the other run time loading flags,
15161 # -berok will link without error, but may produce a broken library.
15162 no_undefined_flag=' ${wl}-bernotok'
15163 allow_undefined_flag=' ${wl}-berok'
15164 # Exported symbols can be pulled into shared objects from archives
15165 whole_archive_flag_spec='$convenience'
15166 archive_cmds_need_lc=yes
15167 # This is similar to how AIX traditionally builds its shared libraries.
15168 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'
15174 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)'
15175 hardcode_libdir_flag_spec='-L$libdir'
15176 hardcode_minus_L=yes
15177 # see comment about different semantics on the GNU ld section
15182 export_dynamic_flag_spec=-rdynamic
15185 cygwin* | mingw* | pw32*)
15186 # When not using gcc, we currently assume that we are using
15187 # Microsoft Visual C++.
15188 # hardcode_libdir_flag_spec is actually meaningless, as there is
15189 # no search path for DLLs.
15190 hardcode_libdir_flag_spec=' '
15191 allow_undefined_flag=unsupported
15192 # Tell ltmain to make .lib files, not .a files.
15194 # Tell ltmain to make .dll files, not .so files.
15196 # FIXME: Setting linknames here is a bad hack.
15197 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15198 # The linker will automatically build a .lib file if we build a DLL.
15199 old_archive_From_new_cmds='true'
15200 # FIXME: Should let the user specify the lib program.
15201 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15202 fix_srcfile_path='`cygpath -w "$srcfile"`'
15203 enable_shared_with_static_runtimes=yes
15206 darwin* | rhapsody*)
15208 rhapsody* | darwin1.[012])
15209 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15212 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15213 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15215 case ${MACOSX_DEPLOYMENT_TARGET} in
15217 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15220 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15226 archive_cmds_need_lc=no
15228 hardcode_automatic=yes
15229 hardcode_shlibpath_var=unsupported
15230 whole_archive_flag_spec=''
15231 link_all_deplibs=yes
15232 if test "$GCC" = yes ; then
15233 output_verbose_link_cmd='echo'
15234 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15235 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15236 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15237 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}'
15238 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}'
15240 case $cc_basename in
15242 output_verbose_link_cmd='echo'
15243 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15244 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15246 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}'
15247 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}'
15257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15258 hardcode_libdir_flag_spec='-L$libdir'
15259 hardcode_shlibpath_var=no
15266 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15267 # support. Future versions do this automatically, but an explicit c++rt0.o
15268 # does not break anything, and helps significantly (at the cost of a little
15271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15272 hardcode_libdir_flag_spec='-R$libdir'
15273 hardcode_direct=yes
15274 hardcode_shlibpath_var=no
15277 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15280 hardcode_direct=yes
15281 hardcode_minus_L=yes
15282 hardcode_shlibpath_var=no
15285 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15286 freebsd* | kfreebsd*-gnu | dragonfly*)
15287 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15288 hardcode_libdir_flag_spec='-R$libdir'
15289 hardcode_direct=yes
15290 hardcode_shlibpath_var=no
15294 if test "$GCC" = yes; then
15295 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'
15297 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'
15299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15300 hardcode_libdir_separator=:
15301 hardcode_direct=yes
15303 # hardcode_minus_L: Not really in the search PATH,
15304 # but as the default location of the library.
15305 hardcode_minus_L=yes
15306 export_dynamic_flag_spec='${wl}-E'
15310 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15311 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15315 if test "$with_gnu_ld" = no; then
15316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15317 hardcode_libdir_separator=:
15319 hardcode_direct=yes
15320 export_dynamic_flag_spec='${wl}-E'
15322 # hardcode_minus_L: Not really in the search PATH,
15323 # but as the default location of the library.
15324 hardcode_minus_L=yes
15329 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15332 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15335 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15338 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15344 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15347 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15350 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15354 if test "$with_gnu_ld" = no; then
15355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15356 hardcode_libdir_separator=:
15360 hardcode_libdir_flag_spec_ld='+b $libdir'
15362 hardcode_shlibpath_var=no
15365 hardcode_direct=yes
15366 export_dynamic_flag_spec='${wl}-E'
15368 # hardcode_minus_L: Not really in the search PATH,
15369 # but as the default location of the library.
15370 hardcode_minus_L=yes
15376 irix5* | irix6* | nonstopux*)
15377 if test "$GCC" = yes; then
15378 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'
15380 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'
15381 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15384 hardcode_libdir_separator=:
15385 link_all_deplibs=yes
15389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15392 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15394 hardcode_libdir_flag_spec='-R$libdir'
15395 hardcode_direct=yes
15396 hardcode_shlibpath_var=no
15400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15401 hardcode_direct=yes
15402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15403 hardcode_libdir_separator=:
15404 hardcode_shlibpath_var=no
15408 hardcode_direct=yes
15409 hardcode_shlibpath_var=no
15410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15414 export_dynamic_flag_spec='${wl}-E'
15417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_libdir_flag_spec='-R$libdir'
15422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15430 hardcode_libdir_flag_spec='-L$libdir'
15431 hardcode_minus_L=yes
15432 allow_undefined_flag=unsupported
15433 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'
15434 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15438 if test "$GCC" = yes; then
15439 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15440 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'
15442 allow_undefined_flag=' -expect_unresolved \*'
15443 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'
15445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15446 hardcode_libdir_separator=:
15449 osf4* | osf5*) # as osf3* with the addition of -msym flag
15450 if test "$GCC" = yes; then
15451 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15452 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'
15453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15455 allow_undefined_flag=' -expect_unresolved \*'
15456 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'
15457 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15458 $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'
15460 # Both c and cxx compiler support -rpath directly
15461 hardcode_libdir_flag_spec='-rpath $libdir'
15463 hardcode_libdir_separator=:
15467 no_undefined_flag=' -z text'
15468 if test "$GCC" = yes; then
15470 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15472 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15479 hardcode_libdir_flag_spec='-R$libdir'
15480 hardcode_shlibpath_var=no
15482 solaris2.[0-5] | solaris2.[0-5].*) ;;
15484 # The compiler driver will combine linker options so we
15485 # cannot just pass the convience library names through
15486 # without $wl, iff we do not link with $LD.
15487 # Luckily, gcc supports the same syntax we need for Sun Studio.
15488 # Supported since Solaris 2.6 (maybe 2.5.1?)
15491 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15493 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' ;;
15496 link_all_deplibs=yes
15500 if test "x$host_vendor" = xsequent; then
15501 # Use $CC to link under sequent, because it throws in some extra .o
15502 # files that make .init and .fini sections work.
15503 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_libdir_flag_spec='-L$libdir'
15508 hardcode_direct=yes
15509 hardcode_minus_L=yes
15510 hardcode_shlibpath_var=no
15514 case $host_vendor in
15516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15517 hardcode_direct=yes # is this really true???
15520 ## LD is ld it makes a PLAMLIB
15521 ## CC just makes a GrossModule.
15522 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15523 reload_cmds='$CC -r -o $output$reload_objs'
15527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15531 runpath_var='LD_RUN_PATH'
15532 hardcode_shlibpath_var=no
15536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_shlibpath_var=no
15538 export_dynamic_flag_spec='-Bexport'
15542 if test -d /usr/nec; then
15543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_shlibpath_var=no
15545 runpath_var=LD_RUN_PATH
15546 hardcode_runpath_var=yes
15551 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15552 no_undefined_flag='${wl}-z,text'
15553 archive_cmds_need_lc=no
15554 hardcode_shlibpath_var=no
15555 runpath_var='LD_RUN_PATH'
15557 if test "$GCC" = yes; then
15558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15566 sysv5* | sco3.2v5* | sco5v6*)
15567 # Note: We can NOT use -z defs as we might desire, because we do not
15568 # link with -lc, and that would cause any symbols used from libc to
15569 # always be unresolved, which means just about no library would
15570 # ever link correctly. If we're not using GNU ld we use -z text
15571 # though, which does catch some bad symbols but isn't as heavy-handed
15573 no_undefined_flag='${wl}-z,text'
15574 allow_undefined_flag='${wl}-z,nodefs'
15575 archive_cmds_need_lc=no
15576 hardcode_shlibpath_var=no
15577 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15578 hardcode_libdir_separator=':'
15579 link_all_deplibs=yes
15580 export_dynamic_flag_spec='${wl}-Bexport'
15581 runpath_var='LD_RUN_PATH'
15583 if test "$GCC" = yes; then
15584 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15587 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15594 hardcode_libdir_flag_spec='-L$libdir'
15595 hardcode_shlibpath_var=no
15604 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15605 echo "${ECHO_T}$ld_shlibs" >&6; }
15606 test "$ld_shlibs" = no && can_build_shared=no
15609 # Do we need to explicitly link libc?
15611 case "x$archive_cmds_need_lc" in
15613 # Assume -lc should be added
15614 archive_cmds_need_lc=yes
15616 if test "$enable_shared" = yes && test "$GCC" = yes; then
15617 case $archive_cmds in
15619 # FIXME: we may have to deal with multi-command sequences.
15622 # Test whether the compiler implicitly links with -lc since on some
15623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15624 # to ld, don't add -lc before -lgcc.
15625 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15628 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631 (eval $ac_compile) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } 2>conftest.err; then
15637 libobjs=conftest.$ac_objext
15639 wl=$lt_prog_compiler_wl
15640 pic_flag=$lt_prog_compiler_pic
15646 lt_save_allow_undefined_flag=$allow_undefined_flag
15647 allow_undefined_flag=
15648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15649 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }
15654 archive_cmds_need_lc=no
15656 archive_cmds_need_lc=yes
15658 allow_undefined_flag=$lt_save_allow_undefined_flag
15660 cat conftest.err 1>&5
15663 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15664 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15671 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15672 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15673 library_names_spec=
15674 libname_spec='lib$name'
15678 postuninstall_cmds=
15682 shlibpath_overrides_runpath=unknown
15684 dynamic_linker="$host_os ld.so"
15685 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15686 if test "$GCC" = yes; then
15687 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15688 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15689 # if the path contains ";" then we assume it to be the separator
15690 # otherwise default to the standard path separator (i.e. ":") - it is
15691 # assumed that no part of a normal pathname contains ";" but that should
15692 # okay in the real world where ";" in dirpaths is itself problematic.
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15698 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15700 need_lib_prefix=unknown
15701 hardcode_into_libs=no
15703 # when you set need_version to no, make sure it does not cause -set_version
15704 # flags to be left without arguments
15705 need_version=unknown
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15711 shlibpath_var=LIBPATH
15713 # AIX 3 has no versioning support, so we append a major version to the name.
15714 soname_spec='${libname}${release}${shared_ext}$major'
15721 hardcode_into_libs=yes
15722 if test "$host_cpu" = ia64; then
15723 # AIX 5 supports IA64
15724 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15725 shlibpath_var=LD_LIBRARY_PATH
15727 # With GCC up to 2.95.x, collect2 would create an import file
15728 # for dependence libraries. The import file would start with
15729 # the line `#! .'. This would cause the generated library to
15730 # depend on `.', always an invalid library. This was fixed in
15731 # development snapshots of GCC prior to 3.0.
15733 aix4 | aix4.[01] | aix4.[01].*)
15734 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15736 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15739 can_build_shared=no
15743 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15744 # soname into executable. Probably we can add versioning support to
15745 # collect2, so additional links can be useful in future.
15746 if test "$aix_use_runtimelinking" = yes; then
15747 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15748 # instead of lib<name>.a to let people know that these are not
15749 # typical AIX shared libraries.
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15752 # We preserve .a as extension for shared libraries through AIX4.2
15753 # and later when we are not doing run time linking.
15754 library_names_spec='${libname}${release}.a $libname.a'
15755 soname_spec='${libname}${release}${shared_ext}$major'
15757 shlibpath_var=LIBPATH
15762 library_names_spec='$libname.ixlibrary $libname.a'
15763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15764 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'
15768 library_names_spec='${libname}${shared_ext}'
15769 dynamic_linker="$host_os ld.so"
15770 shlibpath_var=LIBRARY_PATH
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15782 # the default ld.so.conf also contains /usr/contrib/lib and
15783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15784 # libtool to hard-code these into programs
15787 cygwin* | mingw* | pw32*)
15788 version_type=windows
15793 case $GCC,$host_os in
15794 yes,cygwin* | yes,mingw* | yes,pw32*)
15795 library_names_spec='$libname.dll.a'
15796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15797 postinstall_cmds='base_file=`basename \${file}`~
15798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15799 dldir=$destdir/`dirname \$dlpath`~
15800 test -d \$dldir || mkdir -p \$dldir~
15801 $install_prog $dir/$dlname \$dldir/$dlname~
15802 chmod a+x \$dldir/$dlname'
15803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804 dlpath=$dir/\$dldll~
15806 shlibpath_overrides_runpath=yes
15810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15815 # MinGW DLLs use traditional 'lib' prefix
15816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15819 # It is most probably a Windows format PATH printed by
15820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15821 # path with ; separators, and with drive letters. We can handle the
15822 # drive letters (cygwin fileutils understands them), so leave them,
15823 # especially as we might pass files found there to a mingw objdump,
15824 # which wouldn't understand a cygwinified path. Ahh.
15825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15831 # pw32 DLLs use 'pw' prefix rather than 'lib'
15832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15841 dynamic_linker='Win32 ld.exe'
15842 # FIXME: first we should search . and the directory the executable is in
15846 darwin* | rhapsody*)
15847 dynamic_linker="$host_os dyld"
15848 version_type=darwin
15851 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15852 soname_spec='${libname}${release}${major}$shared_ext'
15853 shlibpath_overrides_runpath=yes
15854 shlibpath_var=DYLD_LIBRARY_PATH
15855 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15856 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15857 if test "$GCC" = yes; then
15858 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"`
15860 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 shlibpath_var=LD_LIBRARY_PATH
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=no
15886 hardcode_into_libs=yes
15887 dynamic_linker='GNU ld.so'
15890 freebsd* | dragonfly*)
15891 # DragonFly does not have aout. When/if they implement a new
15892 # versioning mechanism, adjust this.
15893 if test -x /usr/bin/objformat; then
15894 objformat=`/usr/bin/objformat`
15897 freebsd[123]*) objformat=aout ;;
15898 *) objformat=elf ;;
15901 version_type=freebsd-$objformat
15902 case $version_type in
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15913 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=yes
15918 freebsd3.[01]* | freebsdelf3.[01]*)
15919 shlibpath_overrides_runpath=yes
15920 hardcode_into_libs=yes
15922 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15923 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15924 shlibpath_overrides_runpath=no
15925 hardcode_into_libs=yes
15927 freebsd*) # from 4.6 on
15928 shlibpath_overrides_runpath=yes
15929 hardcode_into_libs=yes
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 shlibpath_var=LD_LIBRARY_PATH
15941 hardcode_into_libs=yes
15944 hpux9* | hpux10* | hpux11*)
15945 # Give a soname corresponding to the major version so that dld.sl refuses to
15946 # link against other versions.
15953 hardcode_into_libs=yes
15954 dynamic_linker="$host_os dld.so"
15955 shlibpath_var=LD_LIBRARY_PATH
15956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 if test "X$HPUX_IA64_MODE" = X32; then
15960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15968 hardcode_into_libs=yes
15969 dynamic_linker="$host_os dld.sl"
15970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15979 dynamic_linker="$host_os dld.sl"
15980 shlibpath_var=SHLIB_PATH
15981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
15986 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15987 postinstall_cmds='chmod 555 $lib'
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=no
15999 hardcode_into_libs=yes
16002 irix5* | irix6* | nonstopux*)
16004 nonstopux*) version_type=nonstopux ;;
16006 if test "$lt_cv_prog_gnu_ld" = yes; then
16014 soname_spec='${libname}${release}${shared_ext}$major'
16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16017 irix5* | nonstopux*)
16018 libsuff= shlibsuff=
16021 case $LD in # libtool.m4 will add one of these switches to LD
16022 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16023 libsuff= shlibsuff= libmagic=32-bit;;
16024 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16025 libsuff=32 shlibsuff=N32 libmagic=N32;;
16026 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16027 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16028 *) libsuff= shlibsuff= libmagic=never-match;;
16032 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16033 shlibpath_overrides_runpath=no
16034 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16035 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16036 hardcode_into_libs=yes
16039 # No shared lib support for Linux oldld, aout, or coff.
16040 linux*oldld* | linux*aout* | linux*coff*)
16044 # This must be Linux ELF.
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 shlibpath_overrides_runpath=no
16054 # This implies no fast_install, which is unacceptable.
16055 # Some rework will be needed to allow for fast_install
16056 # before this can be enabled.
16057 hardcode_into_libs=yes
16059 # Append ld.so.conf contents to the search path
16060 if test -f /etc/ld.so.conf; then
16061 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' ' '`
16062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16065 # We used to test for /lib/ld.so.1 and disable shared libraries on
16066 # powerpc, because MkLinux only supported shared libraries with the
16067 # GNU dynamic linker. Since this was broken with cross compilers,
16068 # most powerpc-linux boxes support dynamic linking these days and
16069 # people can always --disable-shared, the test was removed, and we
16070 # assume the GNU/Linux dynamic linker is in use.
16071 dynamic_linker='GNU/Linux ld.so'
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 shlibpath_overrides_runpath=no
16082 hardcode_into_libs=yes
16083 dynamic_linker='GNU ld.so'
16090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16093 dynamic_linker='NetBSD (a.out) ld.so'
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 dynamic_linker='NetBSD ld.elf_so'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 shlibpath_overrides_runpath=yes
16101 hardcode_into_libs=yes
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 shlibpath_overrides_runpath=yes
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=yes
16123 sys_lib_dlsearch_path_spec="/usr/lib"
16125 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16127 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16128 *) need_version=no ;;
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16135 openbsd2.[89] | openbsd2.[89].*)
16136 shlibpath_overrides_runpath=no
16139 shlibpath_overrides_runpath=yes
16143 shlibpath_overrides_runpath=yes
16148 libname_spec='$name'
16151 library_names_spec='$libname${shared_ext} $libname.a'
16152 dynamic_linker='OS/2 ld.exe'
16153 shlibpath_var=LIBPATH
16156 osf3* | osf4* | osf5*)
16160 soname_spec='${libname}${release}${shared_ext}$major'
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 shlibpath_var=LD_LIBRARY_PATH
16163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16176 # ldd complains unless libraries are executable
16177 postinstall_cmds='chmod +x $lib'
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=yes
16186 if test "$with_gnu_ld" = yes; then
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 case $host_vendor in
16199 shlibpath_overrides_runpath=no
16201 export_dynamic_flag_spec='${wl}-Blargedynsym'
16202 runpath_var=LD_RUN_PATH
16210 shlibpath_overrides_runpath=no
16211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16217 if test -d /usr/nec ;then
16219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16220 soname_spec='$libname${shared_ext}.$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16226 version_type=freebsd-elf
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 hardcode_into_libs=yes
16233 if test "$with_gnu_ld" = yes; then
16234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16235 shlibpath_overrides_runpath=no
16237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16238 shlibpath_overrides_runpath=yes
16241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16245 sys_lib_dlsearch_path_spec='/usr/lib'
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 shlibpath_var=LD_LIBRARY_PATH
16259 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16260 echo "${ECHO_T}$dynamic_linker" >&6; }
16261 test "$dynamic_linker" = no && can_build_shared=no
16263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16264 if test "$GCC" = yes; then
16265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16268 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16269 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16271 if test -n "$hardcode_libdir_flag_spec" || \
16272 test -n "$runpath_var" || \
16273 test "X$hardcode_automatic" = "Xyes" ; then
16275 # We can hardcode non-existant directories.
16276 if test "$hardcode_direct" != no &&
16277 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16278 # have to relink, otherwise we might link with an installed library
16279 # when we should be linking with a yet-to-be-installed one
16280 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16281 test "$hardcode_minus_L" != no; then
16282 # Linking always hardcodes the temporary library directory.
16283 hardcode_action=relink
16285 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16286 hardcode_action=immediate
16289 # We cannot hardcode anything, or else we can only hardcode existing
16291 hardcode_action=unsupported
16293 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16294 echo "${ECHO_T}$hardcode_action" >&6; }
16296 if test "$hardcode_action" = relink; then
16297 # Fast installation is not supported
16298 enable_fast_install=no
16299 elif test "$shlibpath_overrides_runpath" = yes ||
16300 test "$enable_shared" = no; then
16301 # Fast installation is not necessary
16302 enable_fast_install=needless
16307 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16308 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16309 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16310 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16311 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16312 { echo "$as_me:$LINENO: result: yes" >&5
16313 echo "${ECHO_T}yes" >&6; }
16315 # FIXME - insert some real tests, host_os isn't really good enough
16318 if test -n "$STRIP" ; then
16319 striplib="$STRIP -x"
16320 { echo "$as_me:$LINENO: result: yes" >&5
16321 echo "${ECHO_T}yes" >&6; }
16323 { echo "$as_me:$LINENO: result: no" >&5
16324 echo "${ECHO_T}no" >&6; }
16328 { echo "$as_me:$LINENO: result: no" >&5
16329 echo "${ECHO_T}no" >&6; }
16334 if test "x$enable_dlopen" != xyes; then
16335 enable_dlopen=unknown
16336 enable_dlopen_self=unknown
16337 enable_dlopen_self_static=unknown
16344 lt_cv_dlopen="load_add_on"
16346 lt_cv_dlopen_self=yes
16350 lt_cv_dlopen="LoadLibrary"
16355 lt_cv_dlopen="dlopen"
16360 # if libdl is installed we need to link against it
16361 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16362 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16363 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 ac_check_lib_save_LIBS=$LIBS
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16375 /* Override any GCC internal prototype to avoid an error.
16376 Use char because int might match the return type of a GCC
16377 builtin and then its argument prototype would still apply. */
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (ac_try="$ac_link"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_link") 2>conftest.er1
16399 grep -v '^ *+' conftest.er1 >conftest.err
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16405 { (case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_try") 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16424 ac_cv_lib_dl_dlopen=yes
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_cv_lib_dl_dlopen=no
16432 rm -f core conftest.err conftest.$ac_objext \
16433 conftest$ac_exeext conftest.$ac_ext
16434 LIBS=$ac_check_lib_save_LIBS
16436 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16437 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16438 if test $ac_cv_lib_dl_dlopen = yes; then
16439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16442 lt_cv_dlopen="dyld"
16444 lt_cv_dlopen_self=yes
16451 { echo "$as_me:$LINENO: checking for shl_load" >&5
16452 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16453 if test "${ac_cv_func_shl_load+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 cat >conftest.$ac_ext <<_ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16464 #define shl_load innocuous_shl_load
16466 /* System header to define __stub macros and hopefully few prototypes,
16467 which can conflict with char shl_load (); below.
16468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16469 <limits.h> exists even on freestanding compilers. */
16472 # include <limits.h>
16474 # include <assert.h>
16479 /* Override any GCC internal prototype to avoid an error.
16480 Use char because int might match the return type of a GCC
16481 builtin and then its argument prototype would still apply. */
16486 /* The GNU C library defines this for functions which it implements
16487 to always fail with ENOSYS. Some functions are actually named
16488 something starting with __ and the normal name is an alias. */
16489 #if defined __stub_shl_load || defined __stub___shl_load
16496 return shl_load ();
16501 rm -f conftest.$ac_objext conftest$ac_exeext
16502 if { (ac_try="$ac_link"
16503 case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_link") 2>conftest.er1
16510 grep -v '^ *+' conftest.er1 >conftest.err
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16516 { (case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_try") 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16535 ac_cv_func_shl_load=yes
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 ac_cv_func_shl_load=no
16543 rm -f core conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext conftest.$ac_ext
16546 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16547 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16548 if test $ac_cv_func_shl_load = yes; then
16549 lt_cv_dlopen="shl_load"
16551 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16552 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16553 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 ac_check_lib_save_LIBS=$LIBS
16558 cat >conftest.$ac_ext <<_ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16565 /* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
16575 return shl_load ();
16580 rm -f conftest.$ac_objext conftest$ac_exeext
16581 if { (ac_try="$ac_link"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_link") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595 { (case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_try") 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16614 ac_cv_lib_dld_shl_load=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_cv_lib_dld_shl_load=no
16622 rm -f core conftest.err conftest.$ac_objext \
16623 conftest$ac_exeext conftest.$ac_ext
16624 LIBS=$ac_check_lib_save_LIBS
16626 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16627 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16628 if test $ac_cv_lib_dld_shl_load = yes; then
16629 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16631 { echo "$as_me:$LINENO: checking for dlopen" >&5
16632 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16633 if test "${ac_cv_func_dlopen+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 cat >conftest.$ac_ext <<_ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16644 #define dlopen innocuous_dlopen
16646 /* System header to define __stub macros and hopefully few prototypes,
16647 which can conflict with char dlopen (); below.
16648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16649 <limits.h> exists even on freestanding compilers. */
16652 # include <limits.h>
16654 # include <assert.h>
16659 /* Override any GCC internal prototype to avoid an error.
16660 Use char because int might match the return type of a GCC
16661 builtin and then its argument prototype would still apply. */
16666 /* The GNU C library defines this for functions which it implements
16667 to always fail with ENOSYS. Some functions are actually named
16668 something starting with __ and the normal name is an alias. */
16669 #if defined __stub_dlopen || defined __stub___dlopen
16681 rm -f conftest.$ac_objext conftest$ac_exeext
16682 if { (ac_try="$ac_link"
16683 case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_link") 2>conftest.er1
16690 grep -v '^ *+' conftest.er1 >conftest.err
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16696 { (case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_try") 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16715 ac_cv_func_dlopen=yes
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 ac_cv_func_dlopen=no
16723 rm -f core conftest.err conftest.$ac_objext \
16724 conftest$ac_exeext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16727 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16728 if test $ac_cv_func_dlopen = yes; then
16729 lt_cv_dlopen="dlopen"
16731 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16732 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 ac_check_lib_save_LIBS=$LIBS
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16745 /* Override any GCC internal prototype to avoid an error.
16746 Use char because int might match the return type of a GCC
16747 builtin and then its argument prototype would still apply. */
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (ac_try="$ac_link"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_link") 2>conftest.er1
16769 grep -v '^ *+' conftest.er1 >conftest.err
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16794 ac_cv_lib_dl_dlopen=yes
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 ac_cv_lib_dl_dlopen=no
16802 rm -f core conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16804 LIBS=$ac_check_lib_save_LIBS
16806 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16807 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16808 if test $ac_cv_lib_dl_dlopen = yes; then
16809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16811 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16812 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16813 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 ac_check_lib_save_LIBS=$LIBS
16817 LIBS="-lsvld $LIBS"
16818 cat >conftest.$ac_ext <<_ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16825 /* Override any GCC internal prototype to avoid an error.
16826 Use char because int might match the return type of a GCC
16827 builtin and then its argument prototype would still apply. */
16840 rm -f conftest.$ac_objext conftest$ac_exeext
16841 if { (ac_try="$ac_link"
16842 case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_link") 2>conftest.er1
16849 grep -v '^ *+' conftest.er1 >conftest.err
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16874 ac_cv_lib_svld_dlopen=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_cv_lib_svld_dlopen=no
16882 rm -f core conftest.err conftest.$ac_objext \
16883 conftest$ac_exeext conftest.$ac_ext
16884 LIBS=$ac_check_lib_save_LIBS
16886 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16887 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16888 if test $ac_cv_lib_svld_dlopen = yes; then
16889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16891 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16892 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16893 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 ac_check_lib_save_LIBS=$LIBS
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 /* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16915 return dld_link ();
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (ac_try="$ac_link"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_link") 2>conftest.er1
16929 grep -v '^ *+' conftest.er1 >conftest.err
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16954 ac_cv_lib_dld_dld_link=yes
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 ac_cv_lib_dld_dld_link=no
16962 rm -f core conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16966 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16967 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16968 if test $ac_cv_lib_dld_dld_link = yes; then
16969 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16990 if test "x$lt_cv_dlopen" != xno; then
16996 case $lt_cv_dlopen in
16998 save_CPPFLAGS="$CPPFLAGS"
16999 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17001 save_LDFLAGS="$LDFLAGS"
17002 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17005 LIBS="$lt_cv_dlopen_libs $LIBS"
17007 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17008 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17009 if test "${lt_cv_dlopen_self+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 if test "$cross_compiling" = yes; then :
17013 lt_cv_dlopen_self=cross
17015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17016 lt_status=$lt_dlunknown
17017 cat > conftest.$ac_ext <<EOF
17018 #line 17018 "configure"
17019 #include "confdefs.h"
17028 # define LT_DLGLOBAL RTLD_GLOBAL
17031 # define LT_DLGLOBAL DL_GLOBAL
17033 # define LT_DLGLOBAL 0
17037 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17038 find out it does not work in some platform. */
17039 #ifndef LT_DLLAZY_OR_NOW
17041 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17044 # define LT_DLLAZY_OR_NOW DL_LAZY
17047 # define LT_DLLAZY_OR_NOW RTLD_NOW
17050 # define LT_DLLAZY_OR_NOW DL_NOW
17052 # define LT_DLLAZY_OR_NOW 0
17060 extern "C" void exit (int);
17063 void fnord() { int i=42;}
17066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17067 int status = $lt_dlunknown;
17071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17072 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17073 /* dlclose (self); */
17081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17086 (./conftest; exit; ) >&5 2>/dev/null
17088 case x$lt_status in
17089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17091 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17094 # compilation failed
17095 lt_cv_dlopen_self=no
17102 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17103 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17105 if test "x$lt_cv_dlopen_self" = xyes; then
17106 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17107 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17108 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17109 if test "${lt_cv_dlopen_self_static+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 if test "$cross_compiling" = yes; then :
17113 lt_cv_dlopen_self_static=cross
17115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17116 lt_status=$lt_dlunknown
17117 cat > conftest.$ac_ext <<EOF
17118 #line 17118 "configure"
17119 #include "confdefs.h"
17128 # define LT_DLGLOBAL RTLD_GLOBAL
17131 # define LT_DLGLOBAL DL_GLOBAL
17133 # define LT_DLGLOBAL 0
17137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17138 find out it does not work in some platform. */
17139 #ifndef LT_DLLAZY_OR_NOW
17141 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17144 # define LT_DLLAZY_OR_NOW DL_LAZY
17147 # define LT_DLLAZY_OR_NOW RTLD_NOW
17150 # define LT_DLLAZY_OR_NOW DL_NOW
17152 # define LT_DLLAZY_OR_NOW 0
17160 extern "C" void exit (int);
17163 void fnord() { int i=42;}
17166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17167 int status = $lt_dlunknown;
17171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17173 /* dlclose (self); */
17181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17182 (eval $ac_link) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17186 (./conftest; exit; ) >&5 2>/dev/null
17188 case x$lt_status in
17189 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17190 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17191 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17194 # compilation failed
17195 lt_cv_dlopen_self_static=no
17202 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17203 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17206 CPPFLAGS="$save_CPPFLAGS"
17207 LDFLAGS="$save_LDFLAGS"
17212 case $lt_cv_dlopen_self in
17213 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17214 *) enable_dlopen_self=unknown ;;
17217 case $lt_cv_dlopen_self_static in
17218 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17219 *) enable_dlopen_self_static=unknown ;;
17224 # Report which library types will actually be built
17225 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17226 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17227 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17228 echo "${ECHO_T}$can_build_shared" >&6; }
17230 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17231 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17232 test "$can_build_shared" = "no" && enable_shared=no
17234 # On AIX, shared libraries and static libraries use the same namespace, and
17235 # are all built from PIC.
17238 test "$enable_shared" = yes && enable_static=no
17239 if test -n "$RANLIB"; then
17240 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17241 postinstall_cmds='$RANLIB $lib'
17246 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17247 test "$enable_shared" = yes && enable_static=no
17251 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17252 echo "${ECHO_T}$enable_shared" >&6; }
17254 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17255 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17256 # Make sure either enable_shared or enable_static is yes.
17257 test "$enable_shared" = yes || enable_static=yes
17258 { echo "$as_me:$LINENO: result: $enable_static" >&5
17259 echo "${ECHO_T}$enable_static" >&6; }
17261 # The else clause should only fire when bootstrapping the
17262 # libtool distribution, otherwise you forgot to ship ltmain.sh
17263 # with your package, and you will get complaints that there are
17264 # no rules to generate ltmain.sh.
17265 if test -f "$ltmain"; then
17266 # See if we are running on zsh, and set the options which allow our commands through
17267 # without removal of \ escapes.
17268 if test -n "${ZSH_VERSION+set}" ; then
17269 setopt NO_GLOB_SUBST
17271 # Now quote all the things that may contain metacharacters while being
17272 # careful not to overquote the AC_SUBSTed values. We take copies of the
17273 # variables and quote the copies for generation of the libtool script.
17274 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17276 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17277 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17278 deplibs_check_method reload_flag reload_cmds need_locks \
17279 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17280 lt_cv_sys_global_symbol_to_c_name_address \
17281 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17282 old_postinstall_cmds old_postuninstall_cmds \
17286 lt_prog_compiler_wl \
17287 lt_prog_compiler_pic \
17288 lt_prog_compiler_static \
17289 lt_prog_compiler_no_builtin_flag \
17290 export_dynamic_flag_spec \
17291 thread_safe_flag_spec \
17292 whole_archive_flag_spec \
17293 enable_shared_with_static_runtimes \
17295 old_archive_from_new_cmds \
17300 compiler_lib_search_path \
17302 archive_expsym_cmds \
17304 postuninstall_cmds \
17305 old_archive_from_expsyms_cmds \
17306 allow_undefined_flag \
17307 no_undefined_flag \
17308 export_symbols_cmds \
17309 hardcode_libdir_flag_spec \
17310 hardcode_libdir_flag_spec_ld \
17311 hardcode_libdir_separator \
17312 hardcode_automatic \
17314 module_expsym_cmds \
17315 lt_cv_prog_compiler_c_o \
17317 include_expsyms; do
17320 old_archive_cmds | \
17321 old_archive_from_new_cmds | \
17323 archive_expsym_cmds | \
17325 module_expsym_cmds | \
17326 old_archive_from_expsyms_cmds | \
17327 export_symbols_cmds | \
17328 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17329 postinstall_cmds | postuninstall_cmds | \
17330 old_postinstall_cmds | old_postuninstall_cmds | \
17331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17332 # Double-quote double-evaled strings.
17333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17342 *'\$0 --fallback-echo"')
17343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17347 cfgfile="${ofile}T"
17348 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17350 { echo "$as_me:$LINENO: creating $ofile" >&5
17351 echo "$as_me: creating $ofile" >&6;}
17353 cat <<__EOF__ >> "$cfgfile"
17356 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17357 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17358 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17361 # Free Software Foundation, Inc.
17363 # This file is part of GNU Libtool:
17364 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17366 # This program is free software; you can redistribute it and/or modify
17367 # it under the terms of the GNU General Public License as published by
17368 # the Free Software Foundation; either version 2 of the License, or
17369 # (at your option) any later version.
17371 # This program is distributed in the hope that it will be useful, but
17372 # WITHOUT ANY WARRANTY; without even the implied warranty of
17373 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17374 # General Public License for more details.
17376 # You should have received a copy of the GNU General Public License
17377 # along with this program; if not, write to the Free Software
17378 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17380 # As a special exception to the GNU General Public License, if you
17381 # distribute this file as part of a program that contains a
17382 # configuration script generated by Autoconf, you may include it under
17383 # the same distribution terms that you use for the rest of that program.
17385 # A sed program that does not truncate output.
17388 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17389 Xsed="$SED -e 1s/^X//"
17391 # The HP-UX ksh and POSIX shell print the target directory to stdout
17392 # if CDPATH is set.
17393 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17395 # The names of the tagged configurations supported by this script.
17398 # ### BEGIN LIBTOOL CONFIG
17400 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17402 # Shell to use when invoking shell scripts.
17405 # Whether or not to build shared libraries.
17406 build_libtool_libs=$enable_shared
17408 # Whether or not to build static libraries.
17409 build_old_libs=$enable_static
17411 # Whether or not to add -lc for building shared libraries.
17412 build_libtool_need_lc=$archive_cmds_need_lc
17414 # Whether or not to disallow shared libs when runtime libs are static
17415 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17417 # Whether or not to optimize for fast installation.
17418 fast_install=$enable_fast_install
17421 host_alias=$host_alias
17425 # The build system.
17426 build_alias=$build_alias
17430 # An echo program that does not interpret backslashes.
17435 AR_FLAGS=$lt_AR_FLAGS
17440 # LTCC compiler flags.
17441 LTCFLAGS=$lt_LTCFLAGS
17443 # A language-specific compiler.
17446 # Is the compiler the GNU C compiler?
17452 # The linker used to build libraries.
17455 # Whether we need hard or soft links.
17458 # A BSD-compatible nm program.
17461 # A symbol stripping program
17464 # Used to examine libraries when file_magic_cmd begins "file"
17465 MAGIC_CMD=$MAGIC_CMD
17467 # Used on cygwin: DLL creation program.
17470 # Used on cygwin: object dumper.
17473 # Used on cygwin: assembler.
17476 # The name of the directory that contains temporary libtool files.
17479 # How to create reloadable object files.
17480 reload_flag=$lt_reload_flag
17481 reload_cmds=$lt_reload_cmds
17483 # How to pass a linker flag through the compiler.
17484 wl=$lt_lt_prog_compiler_wl
17486 # Object file suffix (normally "o").
17487 objext="$ac_objext"
17489 # Old archive suffix (normally "a").
17492 # Shared library suffix (normally ".so").
17493 shrext_cmds='$shrext_cmds'
17495 # Executable file suffix (normally "").
17498 # Additional compiler flags for building library objects.
17499 pic_flag=$lt_lt_prog_compiler_pic
17502 # What is the maximum length of a command?
17503 max_cmd_len=$lt_cv_sys_max_cmd_len
17505 # Does compiler simultaneously support -c and -o options?
17506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17508 # Must we lock files when doing compilation?
17509 need_locks=$lt_need_locks
17511 # Do we need the lib prefix for modules?
17512 need_lib_prefix=$need_lib_prefix
17514 # Do we need a version for libraries?
17515 need_version=$need_version
17517 # Whether dlopen is supported.
17518 dlopen_support=$enable_dlopen
17520 # Whether dlopen of programs is supported.
17521 dlopen_self=$enable_dlopen_self
17523 # Whether dlopen of statically linked programs is supported.
17524 dlopen_self_static=$enable_dlopen_self_static
17526 # Compiler flag to prevent dynamic linking.
17527 link_static_flag=$lt_lt_prog_compiler_static
17529 # Compiler flag to turn off builtin functions.
17530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17532 # Compiler flag to allow reflexive dlopens.
17533 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17535 # Compiler flag to generate shared objects directly from archives.
17536 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17538 # Compiler flag to generate thread-safe objects.
17539 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17541 # Library versioning type.
17542 version_type=$version_type
17544 # Format of library name prefix.
17545 libname_spec=$lt_libname_spec
17547 # List of archive names. First name is the real one, the rest are links.
17548 # The last name is the one that the linker finds with -lNAME.
17549 library_names_spec=$lt_library_names_spec
17551 # The coded name of the library, if different from the real name.
17552 soname_spec=$lt_soname_spec
17554 # Commands used to build and install an old-style archive.
17556 old_archive_cmds=$lt_old_archive_cmds
17557 old_postinstall_cmds=$lt_old_postinstall_cmds
17558 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17560 # Create an old-style archive from a shared archive.
17561 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17563 # Create a temporary old-style archive to link instead of a shared archive.
17564 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17566 # Commands used to build and install a shared archive.
17567 archive_cmds=$lt_archive_cmds
17568 archive_expsym_cmds=$lt_archive_expsym_cmds
17569 postinstall_cmds=$lt_postinstall_cmds
17570 postuninstall_cmds=$lt_postuninstall_cmds
17572 # Commands used to build a loadable module (assumed same as above if empty)
17573 module_cmds=$lt_module_cmds
17574 module_expsym_cmds=$lt_module_expsym_cmds
17576 # Commands to strip libraries.
17577 old_striplib=$lt_old_striplib
17578 striplib=$lt_striplib
17580 # Dependencies to place before the objects being linked to create a
17582 predep_objects=$lt_predep_objects
17584 # Dependencies to place after the objects being linked to create a
17586 postdep_objects=$lt_postdep_objects
17588 # Dependencies to place before the objects being linked to create a
17590 predeps=$lt_predeps
17592 # Dependencies to place after the objects being linked to create a
17594 postdeps=$lt_postdeps
17596 # The library search path used internally by the compiler when linking
17597 # a shared library.
17598 compiler_lib_search_path=$lt_compiler_lib_search_path
17600 # Method to check whether dependent libraries are shared objects.
17601 deplibs_check_method=$lt_deplibs_check_method
17603 # Command to use when deplibs_check_method == file_magic.
17604 file_magic_cmd=$lt_file_magic_cmd
17606 # Flag that allows shared libraries with undefined symbols to be built.
17607 allow_undefined_flag=$lt_allow_undefined_flag
17609 # Flag that forces no undefined symbols.
17610 no_undefined_flag=$lt_no_undefined_flag
17612 # Commands used to finish a libtool library installation in a directory.
17613 finish_cmds=$lt_finish_cmds
17615 # Same as above, but a single script fragment to be evaled but not shown.
17616 finish_eval=$lt_finish_eval
17618 # Take the output of nm and produce a listing of raw symbols and C names.
17619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17621 # Transform the output of nm in a proper C declaration
17622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17624 # Transform the output of nm in a C name address pair
17625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17627 # This is the shared library runtime path variable.
17628 runpath_var=$runpath_var
17630 # This is the shared library path variable.
17631 shlibpath_var=$shlibpath_var
17633 # Is shlibpath searched before the hard-coded library search path?
17634 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17636 # How to hardcode a shared library path into an executable.
17637 hardcode_action=$hardcode_action
17639 # Whether we should hardcode library paths into libraries.
17640 hardcode_into_libs=$hardcode_into_libs
17642 # Flag to hardcode \$libdir into a binary during linking.
17643 # This must work even if \$libdir does not exist.
17644 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17646 # If ld is used when linking, flag to hardcode \$libdir into
17647 # a binary during linking. This must work even if \$libdir does
17649 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17651 # Whether we need a single -rpath flag with a separated argument.
17652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17654 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17655 # resulting binary.
17656 hardcode_direct=$hardcode_direct
17658 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17659 # resulting binary.
17660 hardcode_minus_L=$hardcode_minus_L
17662 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17663 # the resulting binary.
17664 hardcode_shlibpath_var=$hardcode_shlibpath_var
17666 # Set to yes if building a shared library automatically hardcodes DIR into the library
17667 # and all subsequent libraries and executables linked against it.
17668 hardcode_automatic=$hardcode_automatic
17670 # Variables whose values should be saved in libtool wrapper scripts and
17671 # restored at relink time.
17672 variables_saved_for_relink="$variables_saved_for_relink"
17674 # Whether libtool must link a program against all its dependency libraries.
17675 link_all_deplibs=$link_all_deplibs
17677 # Compile-time system search path for libraries
17678 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17680 # Run-time system search path for libraries
17681 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17683 # Fix the shell variable \$srcfile for the compiler.
17684 fix_srcfile_path="$fix_srcfile_path"
17686 # Set to yes if exported symbols are required.
17687 always_export_symbols=$always_export_symbols
17689 # The commands to list exported symbols.
17690 export_symbols_cmds=$lt_export_symbols_cmds
17692 # The commands to extract the exported symbol list from a shared archive.
17693 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17695 # Symbols that should not be listed in the preloaded symbols.
17696 exclude_expsyms=$lt_exclude_expsyms
17698 # Symbols that must always be exported.
17699 include_expsyms=$lt_include_expsyms
17701 # ### END LIBTOOL CONFIG
17708 cat <<\EOF >> "$cfgfile"
17710 # AIX sometimes has problems with the GCC collect2 program. For some
17711 # reason, if we set the COLLECT_NAMES environment variable, the problems
17712 # vanish in a puff of smoke.
17713 if test "X${COLLECT_NAMES+set}" != Xset; then
17715 export COLLECT_NAMES
17721 # We use sed instead of cat because bash on DJGPP gets confused if
17722 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17723 # text mode, it properly converts lines to CR/LF. This bash problem
17724 # is reportedly fixed, but why not run on old versions too?
17725 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17727 mv -f "$cfgfile" "$ofile" || \
17728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17732 # If there is no Makefile yet, we rely on a make rule to execute
17733 # `config.status --recheck' to rerun these tests and create the
17734 # libtool script then.
17735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17736 if test -f "$ltmain_in"; then
17737 test -f Makefile && make "$ltmain"
17743 ac_cpp='$CPP $CPPFLAGS'
17744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17751 # Check whether --with-tags was given.
17752 if test "${with_tags+set}" = set; then
17753 withval=$with_tags; tagnames="$withval"
17757 if test -f "$ltmain" && test -n "$tagnames"; then
17758 if test ! -f "${ofile}"; then
17759 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17760 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17763 if test -z "$LTCC"; then
17764 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17765 if test -z "$LTCC"; then
17766 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17767 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17769 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17770 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17773 if test -z "$LTCFLAGS"; then
17774 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17777 # Extract list of available tagged configurations in $ofile.
17778 # Note that this assumes the entire list is on one line.
17779 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17782 for tagname in $tagnames; do
17784 # Check whether tagname contains only valid characters
17785 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17787 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17788 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17789 { (exit 1); exit 1; }; }
17793 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17795 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17796 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17797 { (exit 1); exit 1; }; }
17800 # Update the list of available tags.
17801 if test -n "$tagname"; then
17802 echo appending configuration tag \"$tagname\" to $ofile
17806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17808 (test "X$CXX" != "Xg++"))) ; then
17810 ac_cpp='$CXXCPP $CPPFLAGS'
17811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17818 archive_cmds_need_lc_CXX=no
17819 allow_undefined_flag_CXX=
17820 always_export_symbols_CXX=no
17821 archive_expsym_cmds_CXX=
17822 export_dynamic_flag_spec_CXX=
17823 hardcode_direct_CXX=no
17824 hardcode_libdir_flag_spec_CXX=
17825 hardcode_libdir_flag_spec_ld_CXX=
17826 hardcode_libdir_separator_CXX=
17827 hardcode_minus_L_CXX=no
17828 hardcode_shlibpath_var_CXX=unsupported
17829 hardcode_automatic_CXX=no
17831 module_expsym_cmds_CXX=
17832 link_all_deplibs_CXX=unknown
17833 old_archive_cmds_CXX=$old_archive_cmds
17834 no_undefined_flag_CXX=
17835 whole_archive_flag_spec_CXX=
17836 enable_shared_with_static_runtimes_CXX=no
17838 # Dependencies to place before and after the object being linked:
17839 predep_objects_CXX=
17840 postdep_objects_CXX=
17843 compiler_lib_search_path_CXX=
17845 # Source file extension for C++ test sources.
17848 # Object file extension for compiled C++ test sources.
17852 # Code to be used in simple compile tests
17853 lt_simple_compile_test_code="int some_variable = 0;\n"
17855 # Code to be used in simple link tests
17856 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17860 # If no C compiler was specified, use CC.
17863 # If no C compiler flags were specified, use CFLAGS.
17864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17866 # Allow CC to be a program name with arguments.
17870 # save warnings/boilerplate of simple test code
17871 ac_outfile=conftest.$ac_objext
17872 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17874 _lt_compiler_boilerplate=`cat conftest.err`
17877 ac_outfile=conftest.$ac_objext
17878 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17880 _lt_linker_boilerplate=`cat conftest.err`
17884 # Allow CC to be a program name with arguments.
17889 lt_save_with_gnu_ld=$with_gnu_ld
17890 lt_save_path_LD=$lt_cv_path_LD
17891 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17892 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17894 $as_unset lt_cv_prog_gnu_ld
17896 if test -n "${lt_cv_path_LDCXX+set}"; then
17897 lt_cv_path_LD=$lt_cv_path_LDCXX
17899 $as_unset lt_cv_path_LD
17901 test -z "${LDCXX+set}" || LD=$LDCXX
17905 for cc_temp in $compiler""; do
17907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17916 # We don't want -fno-exception wen compiling C++ code, so set the
17917 # no_builtin_flag separately
17918 if test "$GXX" = yes; then
17919 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17921 lt_prog_compiler_no_builtin_flag_CXX=
17924 if test "$GXX" = yes; then
17925 # Set up default GNU C++ configuration
17928 # Check whether --with-gnu-ld was given.
17929 if test "${with_gnu_ld+set}" = set; then
17930 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17936 if test "$GCC" = yes; then
17937 # Check if gcc -print-prog-name=ld gives a path.
17938 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17939 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17942 # gcc leaves a trailing carriage return which upsets mingw
17943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17948 # Accept absolute paths.
17950 re_direlt='/[^/][^/]*/\.\./'
17951 # Canonicalize the pathname of ld
17952 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17954 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17956 test -z "$LD" && LD="$ac_prog"
17959 # If it fails, then pretend we aren't using GCC.
17963 # If it is relative, then search for the first ld in PATH.
17964 with_gnu_ld=unknown
17967 elif test "$with_gnu_ld" = yes; then
17968 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17969 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17971 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17972 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17974 if test "${lt_cv_path_LD+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 if test -z "$LD"; then
17978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17979 for ac_dir in $PATH; do
17981 test -z "$ac_dir" && ac_dir=.
17982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17983 lt_cv_path_LD="$ac_dir/$ac_prog"
17984 # Check to see if the program is GNU ld. I'd rather use --version,
17985 # but apparently some variants of GNU ld only accept -v.
17986 # Break only if it was the GNU/non-GNU ld that we prefer.
17987 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17988 *GNU* | *'with BFD'*)
17989 test "$with_gnu_ld" != no && break
17992 test "$with_gnu_ld" != yes && break
17999 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18003 LD="$lt_cv_path_LD"
18004 if test -n "$LD"; then
18005 { echo "$as_me:$LINENO: result: $LD" >&5
18006 echo "${ECHO_T}$LD" >&6; }
18008 { echo "$as_me:$LINENO: result: no" >&5
18009 echo "${ECHO_T}no" >&6; }
18011 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18012 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18013 { (exit 1); exit 1; }; }
18014 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18015 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18016 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18020 case `$LD -v 2>&1 </dev/null` in
18021 *GNU* | *'with BFD'*)
18022 lt_cv_prog_gnu_ld=yes
18025 lt_cv_prog_gnu_ld=no
18029 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18030 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18031 with_gnu_ld=$lt_cv_prog_gnu_ld
18035 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18036 # archiving commands below assume that GNU ld is being used.
18037 if test "$with_gnu_ld" = yes; then
18038 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18039 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'
18041 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18042 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18044 # If archive_cmds runs LD, not CC, wlarc should be empty
18045 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18046 # investigate it a little bit more. (MM)
18049 # ancient GNU ld didn't support --whole-archive et. al.
18050 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18051 grep 'no-whole-archive' > /dev/null; then
18052 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18054 whole_archive_flag_spec_CXX=
18060 # A generic and very simple default shared library creation
18061 # command for GNU C++ for the case where it uses the native
18062 # linker, instead of GNU ld. If possible, this setting should
18063 # overridden to take advantage of the native linker features on
18064 # the platform it is being used on.
18065 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18068 # Commands to make compiler produce verbose output that lists
18069 # what "hidden" libraries, object files and flags are used when
18070 # linking a shared library.
18071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18079 # PORTME: fill in a description of your system's C++ link characteristics
18080 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18085 # FIXME: insert proper C++ library support
18089 if test "$host_cpu" = ia64; then
18090 # On IA64, the linker does run time linking by default, so we don't
18091 # have to do anything special.
18092 aix_use_runtimelinking=no
18093 exp_sym_flag='-Bexport'
18096 aix_use_runtimelinking=no
18098 # Test if we are trying to use run time linking or normal
18099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18100 # need to do runtime linking.
18101 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18102 for ld_flag in $LDFLAGS; do
18105 aix_use_runtimelinking=yes
18113 exp_sym_flag='-bexport'
18114 no_entry_flag='-bnoentry'
18117 # When large executables or shared objects are built, AIX ld can
18118 # have problems creating the table of contents. If linking a library
18119 # or program results in "error TOC overflow" add -mminimal-toc to
18120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18123 archive_cmds_CXX=''
18124 hardcode_direct_CXX=yes
18125 hardcode_libdir_separator_CXX=':'
18126 link_all_deplibs_CXX=yes
18128 if test "$GXX" = yes; then
18129 case $host_os in aix4.[012]|aix4.[012].*)
18130 # We only want to do this on AIX 4.2 and lower, the check
18131 # below for broken collect2 doesn't work under 4.3+
18132 collect2name=`${CC} -print-prog-name=collect2`
18133 if test -f "$collect2name" && \
18134 strings "$collect2name" | grep resolve_lib_name >/dev/null
18136 # We have reworked collect2
18137 hardcode_direct_CXX=yes
18139 # We have old collect2
18140 hardcode_direct_CXX=unsupported
18141 # It fails to find uninstalled libraries when the uninstalled
18142 # path is not listed in the libpath. Setting hardcode_minus_L
18143 # to unsupported forces relinking
18144 hardcode_minus_L_CXX=yes
18145 hardcode_libdir_flag_spec_CXX='-L$libdir'
18146 hardcode_libdir_separator_CXX=
18150 shared_flag='-shared'
18151 if test "$aix_use_runtimelinking" = yes; then
18152 shared_flag="$shared_flag "'${wl}-G'
18156 if test "$host_cpu" = ia64; then
18157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18158 # chokes on -Wl,-G. The following line is correct:
18161 if test "$aix_use_runtimelinking" = yes; then
18162 shared_flag='${wl}-G'
18164 shared_flag='${wl}-bM:SRE'
18169 # It seems that -bexpall does not export symbols beginning with
18170 # underscore (_), so it is better to generate a list of symbols to export.
18171 always_export_symbols_CXX=yes
18172 if test "$aix_use_runtimelinking" = yes; then
18173 # Warning - without using the other runtime loading flags (-brtl),
18174 # -berok will link without error, but may produce a broken library.
18175 allow_undefined_flag_CXX='-berok'
18176 # Determine the default libpath from the value encoded in an empty executable.
18177 cat >conftest.$ac_ext <<_ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18192 rm -f conftest.$ac_objext conftest$ac_exeext
18193 if { (ac_try="$ac_link"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_link") 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18229 # Check for a 64-bit object if we didn't find anything.
18230 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; }
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18239 rm -f core conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18243 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18245 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"
18247 if test "$host_cpu" = ia64; then
18248 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18249 allow_undefined_flag_CXX="-z nodefs"
18250 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"
18252 # Determine the default libpath from the value encoded in an empty executable.
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18305 # Check for a 64-bit object if we didn't find anything.
18306 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; }
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18315 rm -f core conftest.err conftest.$ac_objext \
18316 conftest$ac_exeext conftest.$ac_ext
18317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18319 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18320 # Warning - without using the other run time loading flags,
18321 # -berok will link without error, but may produce a broken library.
18322 no_undefined_flag_CXX=' ${wl}-bernotok'
18323 allow_undefined_flag_CXX=' ${wl}-berok'
18324 # Exported symbols can be pulled into shared objects from archives
18325 whole_archive_flag_spec_CXX='$convenience'
18326 archive_cmds_need_lc_CXX=yes
18327 # This is similar to how AIX traditionally builds its shared libraries.
18328 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'
18334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18335 allow_undefined_flag_CXX=unsupported
18336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18337 # support --undefined. This deserves some investigation. FIXME
18338 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18345 case $cc_basename in
18347 # FIXME: insert proper C++ library support
18353 cygwin* | mingw* | pw32*)
18354 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18355 # as there is no search path for DLLs.
18356 hardcode_libdir_flag_spec_CXX='-L$libdir'
18357 allow_undefined_flag_CXX=unsupported
18358 always_export_symbols_CXX=no
18359 enable_shared_with_static_runtimes_CXX=yes
18361 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18362 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'
18363 # If the export-symbols file already is a .def file (1st line
18364 # is EXPORTS), use it as is; otherwise, prepend...
18365 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18366 cp $export_symbols $output_objdir/$soname.def;
18368 echo EXPORTS > $output_objdir/$soname.def;
18369 cat $export_symbols >> $output_objdir/$soname.def;
18371 $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'
18376 darwin* | rhapsody*)
18378 rhapsody* | darwin1.[012])
18379 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18383 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18385 case ${MACOSX_DEPLOYMENT_TARGET} in
18387 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18390 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18396 archive_cmds_need_lc_CXX=no
18397 hardcode_direct_CXX=no
18398 hardcode_automatic_CXX=yes
18399 hardcode_shlibpath_var_CXX=unsupported
18400 whole_archive_flag_spec_CXX=''
18401 link_all_deplibs_CXX=yes
18403 if test "$GXX" = yes ; then
18404 lt_int_apple_cc_single_mod=no
18405 output_verbose_link_cmd='echo'
18406 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18407 lt_int_apple_cc_single_mod=yes
18409 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18410 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18412 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'
18414 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18415 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18416 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18417 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}'
18419 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}'
18421 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}'
18423 case $cc_basename in
18425 output_verbose_link_cmd='echo'
18426 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'
18427 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18428 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18429 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}'
18430 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}'
18440 case $cc_basename in
18442 # FIXME: insert proper C++ library support
18446 # Green Hills C++ Compiler
18447 # FIXME: insert proper C++ library support
18451 # FIXME: insert proper C++ library support
18457 # C++ shared libraries reported to be fairly broken before switch to ELF
18461 archive_cmds_need_lc_CXX=no
18463 freebsd* | kfreebsd*-gnu | dragonfly*)
18464 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18471 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18472 hardcode_libdir_separator_CXX=:
18473 export_dynamic_flag_spec_CXX='${wl}-E'
18474 hardcode_direct_CXX=yes
18475 hardcode_minus_L_CXX=yes # Not in the search PATH,
18476 # but as the default
18477 # location of the library.
18479 case $cc_basename in
18481 # FIXME: insert proper C++ library support
18485 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'
18486 # Commands to make compiler produce verbose output that lists
18487 # what "hidden" libraries, object files and flags are used when
18488 # linking a shared library.
18490 # There doesn't appear to be a way to prevent this compiler from
18491 # explicitly linking system object files so we need to strip them
18492 # from the output so that they don't get included in the library
18494 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'
18497 if test "$GXX" = yes; then
18498 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'
18500 # FIXME: insert proper C++ library support
18507 if test $with_gnu_ld = no; then
18508 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18509 hardcode_libdir_separator_CXX=:
18513 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18516 export_dynamic_flag_spec_CXX='${wl}-E'
18522 hardcode_direct_CXX=no
18523 hardcode_shlibpath_var_CXX=no
18526 hardcode_direct_CXX=yes
18527 hardcode_minus_L_CXX=yes # Not in the search PATH,
18528 # but as the default
18529 # location of the library.
18533 case $cc_basename in
18535 # FIXME: insert proper C++ library support
18541 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18544 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18547 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18550 # Commands to make compiler produce verbose output that lists
18551 # what "hidden" libraries, object files and flags are used when
18552 # linking a shared library.
18554 # There doesn't appear to be a way to prevent this compiler from
18555 # explicitly linking system object files so we need to strip them
18556 # from the output so that they don't get included in the library
18558 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'
18561 if test "$GXX" = yes; then
18562 if test $with_gnu_ld = no; then
18565 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18568 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18571 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'
18576 # FIXME: insert proper C++ library support
18583 hardcode_direct_CXX=no
18584 hardcode_shlibpath_var_CXX=no
18585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18586 export_dynamic_flag_spec_CXX='${wl}-E'
18587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18588 # Instead, shared libraries are loaded at an image base (0x10000000 by
18589 # default) and relocated if they conflict, which is a slow very memory
18590 # consuming and fragmenting process. To avoid this, we pick a random,
18591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18593 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'
18594 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'
18597 case $cc_basename in
18600 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'
18602 # Archives containing C++ object files must be created using
18603 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18604 # necessary to make sure instantiated templates are included
18606 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18609 if test "$GXX" = yes; then
18610 if test "$with_gnu_ld" = no; then
18611 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'
18613 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'
18616 link_all_deplibs_CXX=yes
18619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18620 hardcode_libdir_separator_CXX=:
18623 case $cc_basename in
18625 # Kuck and Associates, Inc. (KAI) C++ Compiler
18627 # KCC will only create a shared library if the output file
18628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18629 # to its proper name (with version) after linking.
18630 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'
18631 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'
18632 # Commands to make compiler produce verbose output that lists
18633 # what "hidden" libraries, object files and flags are used when
18634 # linking a shared library.
18636 # There doesn't appear to be a way to prevent this compiler from
18637 # explicitly linking system object files so we need to strip them
18638 # from the output so that they don't get included in the library
18640 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'
18642 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18645 # Archives containing C++ object files must be created using
18646 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18647 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18652 # version 8.0 and above of icpc choke on multiply defined symbols
18653 # if we add $predep_objects and $postdep_objects, however 7.1 and
18654 # earlier do not add the objects themselves.
18655 case `$CC -V 2>&1` in
18657 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18658 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'
18660 *) # Version 8.0 or newer
18663 ia64*) tmp_idyn=' -i_dynamic';;
18665 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18666 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'
18669 archive_cmds_need_lc_CXX=no
18670 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18671 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18672 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18675 # Portland Group C++ compiler
18676 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18677 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'
18679 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18681 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'
18685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18686 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'
18688 runpath_var=LD_RUN_PATH
18689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18690 hardcode_libdir_separator_CXX=:
18692 # Commands to make compiler produce verbose output that lists
18693 # what "hidden" libraries, object files and flags are used when
18694 # linking a shared library.
18696 # There doesn't appear to be a way to prevent this compiler from
18697 # explicitly linking system object files so we need to strip them
18698 # from the output so that they don't get included in the library
18700 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'
18705 # FIXME: insert proper C++ library support
18709 # FIXME: insert proper C++ library support
18713 case $cc_basename in
18715 # FIXME: insert proper C++ library support
18719 # FIXME: insert proper C++ library support
18725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18728 hardcode_libdir_flag_spec_CXX='-R$libdir'
18729 hardcode_direct_CXX=yes
18730 hardcode_shlibpath_var_CXX=no
18732 # Workaround some broken pre-1.5 toolchains
18733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18736 # C++ shared libraries are fairly broken
18740 hardcode_direct_CXX=yes
18741 hardcode_shlibpath_var_CXX=no
18742 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18745 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18746 export_dynamic_flag_spec_CXX='${wl}-E'
18747 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18749 output_verbose_link_cmd='echo'
18752 case $cc_basename in
18754 # Kuck and Associates, Inc. (KAI) C++ Compiler
18756 # KCC will only create a shared library if the output file
18757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18758 # to its proper name (with version) after linking.
18759 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'
18761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18762 hardcode_libdir_separator_CXX=:
18764 # Archives containing C++ object files must be created using
18765 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18766 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18770 # Rational C++ 2.4.1
18771 # FIXME: insert proper C++ library support
18775 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18776 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'
18778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18779 hardcode_libdir_separator_CXX=:
18781 # Commands to make compiler produce verbose output that lists
18782 # what "hidden" libraries, object files and flags are used when
18783 # linking a shared library.
18785 # There doesn't appear to be a way to prevent this compiler from
18786 # explicitly linking system object files so we need to strip them
18787 # from the output so that they don't get included in the library
18789 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'
18792 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18793 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18794 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'
18796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18797 hardcode_libdir_separator_CXX=:
18799 # Commands to make compiler produce verbose output that lists
18800 # what "hidden" libraries, object files and flags are used when
18801 # linking a shared library.
18802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18805 # FIXME: insert proper C++ library support
18812 case $cc_basename in
18814 # Kuck and Associates, Inc. (KAI) C++ Compiler
18816 # KCC will only create a shared library if the output file
18817 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18818 # to its proper name (with version) after linking.
18819 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'
18821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18822 hardcode_libdir_separator_CXX=:
18824 # Archives containing C++ object files must be created using
18825 # the KAI C++ compiler.
18826 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18829 # Rational C++ 2.4.1
18830 # FIXME: insert proper C++ library support
18834 allow_undefined_flag_CXX=' -expect_unresolved \*'
18835 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'
18836 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18837 echo "-hidden">> $lib.exp~
18838 $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~
18841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18842 hardcode_libdir_separator_CXX=:
18844 # Commands to make compiler produce verbose output that lists
18845 # what "hidden" libraries, object files and flags are used when
18846 # linking a shared library.
18848 # There doesn't appear to be a way to prevent this compiler from
18849 # explicitly linking system object files so we need to strip them
18850 # from the output so that they don't get included in the library
18852 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'
18855 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18857 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'
18859 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18860 hardcode_libdir_separator_CXX=:
18862 # Commands to make compiler produce verbose output that lists
18863 # what "hidden" libraries, object files and flags are used when
18864 # linking a shared library.
18865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18868 # FIXME: insert proper C++ library support
18875 # FIXME: insert proper C++ library support
18879 case $cc_basename in
18882 # FIXME: insert proper C++ library support
18887 # FIXME: insert proper C++ library support
18891 # FIXME: insert proper C++ library support
18897 case $cc_basename in
18899 # Sun C++ 4.2, 5.x and Centerline C++
18900 archive_cmds_need_lc_CXX=yes
18901 no_undefined_flag_CXX=' -zdefs'
18902 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18903 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18904 $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'
18906 hardcode_libdir_flag_spec_CXX='-R$libdir'
18907 hardcode_shlibpath_var_CXX=no
18909 solaris2.[0-5] | solaris2.[0-5].*) ;;
18911 # The C++ compiler is used as linker so we must use $wl
18912 # flag to pass the commands to the underlying system
18913 # linker. We must also pass each convience library through
18914 # to the system linker between allextract/defaultextract.
18915 # The C++ compiler will combine linker options so we
18916 # cannot just pass the convience library names through
18918 # Supported since Solaris 2.6 (maybe 2.5.1?)
18919 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'
18922 link_all_deplibs_CXX=yes
18924 output_verbose_link_cmd='echo'
18926 # Archives containing C++ object files must be created using
18927 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18928 # necessary to make sure instantiated templates are included
18930 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18933 # Green Hills C++ Compiler
18934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18936 # The C++ compiler must be used to create the archive.
18937 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18940 # GNU C++ compiler with Solaris linker
18941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18942 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18943 if $CC --version | grep -v '^2\.7' > /dev/null; then
18944 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18945 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18946 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18948 # Commands to make compiler produce verbose output that lists
18949 # what "hidden" libraries, object files and flags are used when
18950 # linking a shared library.
18951 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18953 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18955 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18956 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18957 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18962 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18965 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18971 no_undefined_flag_CXX='${wl}-z,text'
18972 archive_cmds_need_lc_CXX=no
18973 hardcode_shlibpath_var_CXX=no
18974 runpath_var='LD_RUN_PATH'
18976 case $cc_basename in
18978 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18979 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18982 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18983 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18987 sysv5* | sco3.2v5* | sco5v6*)
18988 # Note: We can NOT use -z defs as we might desire, because we do not
18989 # link with -lc, and that would cause any symbols used from libc to
18990 # always be unresolved, which means just about no library would
18991 # ever link correctly. If we're not using GNU ld we use -z text
18992 # though, which does catch some bad symbols but isn't as heavy-handed
18994 # For security reasons, it is highly recommended that you always
18995 # use absolute paths for naming shared libraries, and exclude the
18996 # DT_RUNPATH tag from executables and libraries. But doing so
18997 # requires that you compile everything twice, which is a pain.
18998 # So that behaviour is only enabled if SCOABSPATH is set to a
18999 # non-empty value in the environment. Most likely only useful for
19000 # creating official distributions of packages.
19001 # This is a hack until libtool officially supports absolute path
19002 # names for shared libraries.
19003 no_undefined_flag_CXX='${wl}-z,text'
19004 allow_undefined_flag_CXX='${wl}-z,nodefs'
19005 archive_cmds_need_lc_CXX=no
19006 hardcode_shlibpath_var_CXX=no
19007 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19008 hardcode_libdir_separator_CXX=':'
19009 link_all_deplibs_CXX=yes
19010 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19011 runpath_var='LD_RUN_PATH'
19013 case $cc_basename in
19015 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19016 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19019 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19020 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19025 case $cc_basename in
19027 # NonStop-UX NCC 3.20
19028 # FIXME: insert proper C++ library support
19032 # FIXME: insert proper C++ library support
19038 # FIXME: insert proper C++ library support
19042 # FIXME: insert proper C++ library support
19046 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19047 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19048 test "$ld_shlibs_CXX" = no && can_build_shared=no
19054 cat > conftest.$ac_ext <<EOF
19058 Foo (void) { a = 0; }
19064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19065 (eval $ac_compile) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; then
19069 # Parse the compiler output and extract the necessary
19070 # objects, libraries and library flags.
19072 # Sentinel used to keep track of whether or not we are before
19073 # the conftest object file.
19074 pre_test_object_deps_done=no
19076 # The `*' in the case matches for architectures that use `case' in
19077 # $output_verbose_cmd can trigger glob expansion during the loop
19078 # eval without this substitution.
19079 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19081 for p in `eval $output_verbose_link_cmd`; do
19085 # Some compilers place space between "-{L,R}" and the path.
19086 # Remove the space.
19087 if test $p = "-L" \
19088 || test $p = "-R"; then
19095 if test "$pre_test_object_deps_done" = no; then
19098 # Internal compiler library paths should come after those
19099 # provided the user. The postdeps already come after the
19100 # user supplied libs so there is no need to process them.
19101 if test -z "$compiler_lib_search_path_CXX"; then
19102 compiler_lib_search_path_CXX="${prev}${p}"
19104 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19107 # The "-l" case would never come before the object being
19108 # linked, so don't bother handling this case.
19111 if test -z "$postdeps_CXX"; then
19112 postdeps_CXX="${prev}${p}"
19114 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19120 # This assumes that the test object file only shows up
19121 # once in the compiler output.
19122 if test "$p" = "conftest.$objext"; then
19123 pre_test_object_deps_done=yes
19127 if test "$pre_test_object_deps_done" = no; then
19128 if test -z "$predep_objects_CXX"; then
19129 predep_objects_CXX="$p"
19131 predep_objects_CXX="$predep_objects_CXX $p"
19134 if test -z "$postdep_objects_CXX"; then
19135 postdep_objects_CXX="$p"
19137 postdep_objects_CXX="$postdep_objects_CXX $p"
19142 *) ;; # Ignore the rest.
19150 echo "libtool.m4: error: problem compiling CXX test program"
19153 $rm -f confest.$objext
19155 # PORTME: override above test on systems where it is broken
19158 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19159 # hack all around it, let's just trust "g++" to DTRT.
19160 predep_objects_CXX=
19161 postdep_objects_CXX=
19166 case $cc_basename in
19168 # Adding this requires a known-good setup of shared libraries for
19169 # Sun compiler versions before 5.6, else PIC objects from an old
19170 # archive will be linked into the output, leading to subtle bugs.
19171 postdeps_CXX='-lCstd -lCrun'
19178 case " $postdeps_CXX " in
19179 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19182 lt_prog_compiler_wl_CXX=
19183 lt_prog_compiler_pic_CXX=
19184 lt_prog_compiler_static_CXX=
19186 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19187 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19189 # C++ specific cases for pic, static, wl, etc.
19190 if test "$GXX" = yes; then
19191 lt_prog_compiler_wl_CXX='-Wl,'
19192 lt_prog_compiler_static_CXX='-static'
19196 # All AIX code is PIC.
19197 if test "$host_cpu" = ia64; then
19198 # AIX 5 now supports IA64 processor
19199 lt_prog_compiler_static_CXX='-Bstatic'
19203 # FIXME: we need at least 68020 code to build shared libraries, but
19204 # adding the `-m68020' flag to GCC prevents building anything better,
19206 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19208 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19209 # PIC is the default for these OSes.
19211 mingw* | os2* | pw32*)
19212 # This hack is so that the source file can tell whether it is being
19213 # built for inclusion in a dll (and should export symbols for example).
19214 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19216 darwin* | rhapsody*)
19217 # PIC is the default on this platform
19218 # Common symbols not allowed in MH_DYLIB files
19219 lt_prog_compiler_pic_CXX='-fno-common'
19222 # DJGPP does not support shared libraries at all
19223 lt_prog_compiler_pic_CXX=
19226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19227 # Instead, we relocate shared libraries at runtime.
19230 if test -d /usr/nec; then
19231 lt_prog_compiler_pic_CXX=-Kconform_pic
19235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19236 # not for PA HP-UX.
19241 lt_prog_compiler_pic_CXX='-fPIC'
19246 lt_prog_compiler_pic_CXX='-fPIC'
19252 # All AIX code is PIC.
19253 if test "$host_cpu" = ia64; then
19254 # AIX 5 now supports IA64 processor
19255 lt_prog_compiler_static_CXX='-Bstatic'
19257 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19261 case $cc_basename in
19263 # Green Hills C++ Compiler
19264 # _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"
19269 # PIC is the default on this platform
19270 # Common symbols not allowed in MH_DYLIB files
19271 case $cc_basename in
19273 lt_prog_compiler_pic_CXX='-qnocommon'
19274 lt_prog_compiler_wl_CXX='-Wl,'
19279 case $cc_basename in
19281 lt_prog_compiler_pic_CXX='-KPIC'
19284 # Green Hills C++ Compiler
19285 lt_prog_compiler_pic_CXX='-pic'
19291 freebsd* | kfreebsd*-gnu | dragonfly*)
19292 # FreeBSD uses GNU C++
19294 hpux9* | hpux10* | hpux11*)
19295 case $cc_basename in
19297 lt_prog_compiler_wl_CXX='-Wl,'
19298 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19299 if test "$host_cpu" != ia64; then
19300 lt_prog_compiler_pic_CXX='+Z'
19304 lt_prog_compiler_wl_CXX='-Wl,'
19305 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19311 lt_prog_compiler_pic_CXX='+Z'
19320 # This is c89, which is MS Visual C++ (no shared libs)
19321 # Anyone wants to do a port?
19323 irix5* | irix6* | nonstopux*)
19324 case $cc_basename in
19326 lt_prog_compiler_wl_CXX='-Wl,'
19327 lt_prog_compiler_static_CXX='-non_shared'
19328 # CC pic flag -KPIC is the default.
19335 case $cc_basename in
19338 lt_prog_compiler_wl_CXX='--backend -Wl,'
19339 lt_prog_compiler_pic_CXX='-fPIC'
19343 lt_prog_compiler_wl_CXX='-Wl,'
19344 lt_prog_compiler_pic_CXX='-KPIC'
19345 lt_prog_compiler_static_CXX='-static'
19348 # Portland Group C++ compiler.
19349 lt_prog_compiler_wl_CXX='-Wl,'
19350 lt_prog_compiler_pic_CXX='-fpic'
19351 lt_prog_compiler_static_CXX='-Bstatic'
19355 # Make sure the PIC flag is empty. It appears that all Alpha
19356 # Linux and Compaq Tru64 Unix objects are PIC.
19357 lt_prog_compiler_pic_CXX=
19358 lt_prog_compiler_static_CXX='-non_shared'
19369 case $cc_basename in
19371 lt_prog_compiler_pic_CXX='-W c,exportall'
19379 osf3* | osf4* | osf5*)
19380 case $cc_basename in
19382 lt_prog_compiler_wl_CXX='--backend -Wl,'
19385 # Rational C++ 2.4.1
19386 lt_prog_compiler_pic_CXX='-pic'
19389 # Digital/Compaq C++
19390 lt_prog_compiler_wl_CXX='-Wl,'
19391 # Make sure the PIC flag is empty. It appears that all Alpha
19392 # Linux and Compaq Tru64 Unix objects are PIC.
19393 lt_prog_compiler_pic_CXX=
19394 lt_prog_compiler_static_CXX='-non_shared'
19403 case $cc_basename in
19405 # Sun C++ 4.2, 5.x and Centerline C++
19406 lt_prog_compiler_pic_CXX='-KPIC'
19407 lt_prog_compiler_static_CXX='-Bstatic'
19408 lt_prog_compiler_wl_CXX='-Qoption ld '
19411 # Green Hills C++ Compiler
19412 lt_prog_compiler_pic_CXX='-PIC'
19419 case $cc_basename in
19422 lt_prog_compiler_pic_CXX='-pic'
19423 lt_prog_compiler_static_CXX='-Bstatic'
19427 lt_prog_compiler_pic_CXX='-pic'
19434 case $cc_basename in
19436 # NonStop-UX NCC 3.20
19437 lt_prog_compiler_pic_CXX='-KPIC'
19443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19444 case $cc_basename in
19446 lt_prog_compiler_wl_CXX='-Wl,'
19447 lt_prog_compiler_pic_CXX='-KPIC'
19448 lt_prog_compiler_static_CXX='-Bstatic'
19455 lt_prog_compiler_can_build_shared_CXX=no
19460 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19461 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19464 # Check to make sure the PIC flag actually works.
19466 if test -n "$lt_prog_compiler_pic_CXX"; then
19468 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19469 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19470 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 lt_prog_compiler_pic_works_CXX=no
19474 ac_outfile=conftest.$ac_objext
19475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19476 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19477 # Insert the option either (1) after the last *FLAGS variable, or
19478 # (2) before a word containing "conftest.", or (3) at the end.
19479 # Note that $ac_compile itself does not contain backslashes and begins
19480 # with a dollar sign (not a hyphen), so the echo should work correctly.
19481 # The option is referenced via a variable to avoid confusing sed.
19482 lt_compile=`echo "$ac_compile" | $SED \
19483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19485 -e 's:$: $lt_compiler_flag:'`
19486 (eval echo "\"\$as_me:19486: $lt_compile\"" >&5)
19487 (eval "$lt_compile" 2>conftest.err)
19489 cat conftest.err >&5
19490 echo "$as_me:19490: \$? = $ac_status" >&5
19491 if (exit $ac_status) && test -s "$ac_outfile"; then
19492 # The compiler can only warn and ignore the option if not recognized
19493 # So say no if there are warnings other than the usual output.
19494 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19497 lt_prog_compiler_pic_works_CXX=yes
19503 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19504 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19506 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19507 case $lt_prog_compiler_pic_CXX in
19509 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19512 lt_prog_compiler_pic_CXX=
19513 lt_prog_compiler_can_build_shared_CXX=no
19518 # For platforms which do not support PIC, -DPIC is meaningless:
19520 lt_prog_compiler_pic_CXX=
19523 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19528 # Check to make sure the static flag actually works.
19530 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19531 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19532 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19533 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 lt_prog_compiler_static_works_CXX=no
19537 save_LDFLAGS="$LDFLAGS"
19538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19539 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19541 # The linker can only warn and ignore the option if not recognized
19542 # So say no if there are warnings
19543 if test -s conftest.err; then
19544 # Append any errors to the config.log.
19545 cat conftest.err 1>&5
19546 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19548 if diff conftest.exp conftest.er2 >/dev/null; then
19549 lt_prog_compiler_static_works_CXX=yes
19552 lt_prog_compiler_static_works_CXX=yes
19556 LDFLAGS="$save_LDFLAGS"
19559 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19560 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19562 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19565 lt_prog_compiler_static_CXX=
19569 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19570 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19571 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 lt_cv_prog_compiler_c_o_CXX=no
19575 $rm -r conftest 2>/dev/null
19579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19581 lt_compiler_flag="-o out/conftest2.$ac_objext"
19582 # Insert the option either (1) after the last *FLAGS variable, or
19583 # (2) before a word containing "conftest.", or (3) at the end.
19584 # Note that $ac_compile itself does not contain backslashes and begins
19585 # with a dollar sign (not a hyphen), so the echo should work correctly.
19586 lt_compile=`echo "$ac_compile" | $SED \
19587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19589 -e 's:$: $lt_compiler_flag:'`
19590 (eval echo "\"\$as_me:19590: $lt_compile\"" >&5)
19591 (eval "$lt_compile" 2>out/conftest.err)
19593 cat out/conftest.err >&5
19594 echo "$as_me:19594: \$? = $ac_status" >&5
19595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19597 # The compiler can only warn and ignore the option if not recognized
19598 # So say no if there are warnings
19599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19602 lt_cv_prog_compiler_c_o_CXX=yes
19607 # SGI C++ compiler will create directory out/ii_files/ for
19608 # template instantiation
19609 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19610 $rm out/* && rmdir out
19616 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19617 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19620 hard_links="nottested"
19621 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19622 # do not overwrite the value of need_locks provided by the user
19623 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19624 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19629 ln conftest.a conftest.b 2>&5 || hard_links=no
19630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19631 { echo "$as_me:$LINENO: result: $hard_links" >&5
19632 echo "${ECHO_T}$hard_links" >&6; }
19633 if test "$hard_links" = no; then
19634 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19635 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19642 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19643 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19648 # If we're using GNU nm, then we don't want the "-C" option.
19649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19650 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19651 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'
19653 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'
19657 export_symbols_cmds_CXX="$ltdll_cmds"
19660 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'
19663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19667 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19668 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19669 test "$ld_shlibs_CXX" = no && can_build_shared=no
19672 # Do we need to explicitly link libc?
19674 case "x$archive_cmds_need_lc_CXX" in
19676 # Assume -lc should be added
19677 archive_cmds_need_lc_CXX=yes
19679 if test "$enable_shared" = yes && test "$GCC" = yes; then
19680 case $archive_cmds_CXX in
19682 # FIXME: we may have to deal with multi-command sequences.
19685 # Test whether the compiler implicitly links with -lc since on some
19686 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19687 # to ld, don't add -lc before -lgcc.
19688 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19689 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19694 (eval $ac_compile) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } 2>conftest.err; then
19700 libobjs=conftest.$ac_objext
19702 wl=$lt_prog_compiler_wl_CXX
19703 pic_flag=$lt_prog_compiler_pic_CXX
19709 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19710 allow_undefined_flag_CXX=
19711 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19712 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }
19717 archive_cmds_need_lc_CXX=no
19719 archive_cmds_need_lc_CXX=yes
19721 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19723 cat conftest.err 1>&5
19726 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19727 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19734 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19735 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19736 library_names_spec=
19737 libname_spec='lib$name'
19741 postuninstall_cmds=
19745 shlibpath_overrides_runpath=unknown
19747 dynamic_linker="$host_os ld.so"
19748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19749 if test "$GCC" = yes; then
19750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19751 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19752 # if the path contains ";" then we assume it to be the separator
19753 # otherwise default to the standard path separator (i.e. ":") - it is
19754 # assumed that no part of a normal pathname contains ";" but that should
19755 # okay in the real world where ";" in dirpaths is itself problematic.
19756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19763 need_lib_prefix=unknown
19764 hardcode_into_libs=no
19766 # when you set need_version to no, make sure it does not cause -set_version
19767 # flags to be left without arguments
19768 need_version=unknown
19773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19774 shlibpath_var=LIBPATH
19776 # AIX 3 has no versioning support, so we append a major version to the name.
19777 soname_spec='${libname}${release}${shared_ext}$major'
19784 hardcode_into_libs=yes
19785 if test "$host_cpu" = ia64; then
19786 # AIX 5 supports IA64
19787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19788 shlibpath_var=LD_LIBRARY_PATH
19790 # With GCC up to 2.95.x, collect2 would create an import file
19791 # for dependence libraries. The import file would start with
19792 # the line `#! .'. This would cause the generated library to
19793 # depend on `.', always an invalid library. This was fixed in
19794 # development snapshots of GCC prior to 3.0.
19796 aix4 | aix4.[01] | aix4.[01].*)
19797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19799 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19802 can_build_shared=no
19806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19807 # soname into executable. Probably we can add versioning support to
19808 # collect2, so additional links can be useful in future.
19809 if test "$aix_use_runtimelinking" = yes; then
19810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19811 # instead of lib<name>.a to let people know that these are not
19812 # typical AIX shared libraries.
19813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19815 # We preserve .a as extension for shared libraries through AIX4.2
19816 # and later when we are not doing run time linking.
19817 library_names_spec='${libname}${release}.a $libname.a'
19818 soname_spec='${libname}${release}${shared_ext}$major'
19820 shlibpath_var=LIBPATH
19825 library_names_spec='$libname.ixlibrary $libname.a'
19826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19827 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'
19831 library_names_spec='${libname}${shared_ext}'
19832 dynamic_linker="$host_os ld.so"
19833 shlibpath_var=LIBRARY_PATH
19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840 soname_spec='${libname}${release}${shared_ext}$major'
19841 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19842 shlibpath_var=LD_LIBRARY_PATH
19843 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19844 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19845 # the default ld.so.conf also contains /usr/contrib/lib and
19846 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19847 # libtool to hard-code these into programs
19850 cygwin* | mingw* | pw32*)
19851 version_type=windows
19856 case $GCC,$host_os in
19857 yes,cygwin* | yes,mingw* | yes,pw32*)
19858 library_names_spec='$libname.dll.a'
19859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19860 postinstall_cmds='base_file=`basename \${file}`~
19861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19862 dldir=$destdir/`dirname \$dlpath`~
19863 test -d \$dldir || mkdir -p \$dldir~
19864 $install_prog $dir/$dlname \$dldir/$dlname~
19865 chmod a+x \$dldir/$dlname'
19866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19867 dlpath=$dir/\$dldll~
19869 shlibpath_overrides_runpath=yes
19873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19878 # MinGW DLLs use traditional 'lib' prefix
19879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19881 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19882 # It is most probably a Windows format PATH printed by
19883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19884 # path with ; separators, and with drive letters. We can handle the
19885 # drive letters (cygwin fileutils understands them), so leave them,
19886 # especially as we might pass files found there to a mingw objdump,
19887 # which wouldn't understand a cygwinified path. Ahh.
19888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19894 # pw32 DLLs use 'pw' prefix rather than 'lib'
19895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19904 dynamic_linker='Win32 ld.exe'
19905 # FIXME: first we should search . and the directory the executable is in
19909 darwin* | rhapsody*)
19910 dynamic_linker="$host_os dyld"
19911 version_type=darwin
19914 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19915 soname_spec='${libname}${release}${major}$shared_ext'
19916 shlibpath_overrides_runpath=yes
19917 shlibpath_var=DYLD_LIBRARY_PATH
19918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19919 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19920 if test "$GCC" = yes; then
19921 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"`
19923 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19933 soname_spec='${libname}${release}${shared_ext}$major'
19934 shlibpath_var=LD_LIBRARY_PATH
19945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19946 soname_spec='${libname}${release}${shared_ext}$major'
19947 shlibpath_var=LD_LIBRARY_PATH
19948 shlibpath_overrides_runpath=no
19949 hardcode_into_libs=yes
19950 dynamic_linker='GNU ld.so'
19953 freebsd* | dragonfly*)
19954 # DragonFly does not have aout. When/if they implement a new
19955 # versioning mechanism, adjust this.
19956 if test -x /usr/bin/objformat; then
19957 objformat=`/usr/bin/objformat`
19960 freebsd[123]*) objformat=aout ;;
19961 *) objformat=elf ;;
19964 version_type=freebsd-$objformat
19965 case $version_type in
19967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19976 shlibpath_var=LD_LIBRARY_PATH
19979 shlibpath_overrides_runpath=yes
19981 freebsd3.[01]* | freebsdelf3.[01]*)
19982 shlibpath_overrides_runpath=yes
19983 hardcode_into_libs=yes
19985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19987 shlibpath_overrides_runpath=no
19988 hardcode_into_libs=yes
19990 freebsd*) # from 4.6 on
19991 shlibpath_overrides_runpath=yes
19992 hardcode_into_libs=yes
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20003 shlibpath_var=LD_LIBRARY_PATH
20004 hardcode_into_libs=yes
20007 hpux9* | hpux10* | hpux11*)
20008 # Give a soname corresponding to the major version so that dld.sl refuses to
20009 # link against other versions.
20016 hardcode_into_libs=yes
20017 dynamic_linker="$host_os dld.so"
20018 shlibpath_var=LD_LIBRARY_PATH
20019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20021 soname_spec='${libname}${release}${shared_ext}$major'
20022 if test "X$HPUX_IA64_MODE" = X32; then
20023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20031 hardcode_into_libs=yes
20032 dynamic_linker="$host_os dld.sl"
20033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20036 soname_spec='${libname}${release}${shared_ext}$major'
20037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20042 dynamic_linker="$host_os dld.sl"
20043 shlibpath_var=SHLIB_PATH
20044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
20049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20050 postinstall_cmds='chmod 555 $lib'
20057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20058 soname_spec='${libname}${release}${shared_ext}$major'
20059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20060 shlibpath_var=LD_LIBRARY_PATH
20061 shlibpath_overrides_runpath=no
20062 hardcode_into_libs=yes
20065 irix5* | irix6* | nonstopux*)
20067 nonstopux*) version_type=nonstopux ;;
20069 if test "$lt_cv_prog_gnu_ld" = yes; then
20077 soname_spec='${libname}${release}${shared_ext}$major'
20078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20080 irix5* | nonstopux*)
20081 libsuff= shlibsuff=
20084 case $LD in # libtool.m4 will add one of these switches to LD
20085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20086 libsuff= shlibsuff= libmagic=32-bit;;
20087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20088 libsuff=32 shlibsuff=N32 libmagic=N32;;
20089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20091 *) libsuff= shlibsuff= libmagic=never-match;;
20095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20096 shlibpath_overrides_runpath=no
20097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20099 hardcode_into_libs=yes
20102 # No shared lib support for Linux oldld, aout, or coff.
20103 linux*oldld* | linux*aout* | linux*coff*)
20107 # This must be Linux ELF.
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20113 soname_spec='${libname}${release}${shared_ext}$major'
20114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20115 shlibpath_var=LD_LIBRARY_PATH
20116 shlibpath_overrides_runpath=no
20117 # This implies no fast_install, which is unacceptable.
20118 # Some rework will be needed to allow for fast_install
20119 # before this can be enabled.
20120 hardcode_into_libs=yes
20122 # Append ld.so.conf contents to the search path
20123 if test -f /etc/ld.so.conf; then
20124 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' ' '`
20125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20128 # We used to test for /lib/ld.so.1 and disable shared libraries on
20129 # powerpc, because MkLinux only supported shared libraries with the
20130 # GNU dynamic linker. Since this was broken with cross compilers,
20131 # most powerpc-linux boxes support dynamic linking these days and
20132 # people can always --disable-shared, the test was removed, and we
20133 # assume the GNU/Linux dynamic linker is in use.
20134 dynamic_linker='GNU/Linux ld.so'
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 shlibpath_var=LD_LIBRARY_PATH
20144 shlibpath_overrides_runpath=no
20145 hardcode_into_libs=yes
20146 dynamic_linker='GNU ld.so'
20153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20156 dynamic_linker='NetBSD (a.out) ld.so'
20158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20159 soname_spec='${libname}${release}${shared_ext}$major'
20160 dynamic_linker='NetBSD ld.elf_so'
20162 shlibpath_var=LD_LIBRARY_PATH
20163 shlibpath_overrides_runpath=yes
20164 hardcode_into_libs=yes
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20170 shlibpath_var=LD_LIBRARY_PATH
20171 shlibpath_overrides_runpath=yes
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=yes
20186 sys_lib_dlsearch_path_spec="/usr/lib"
20188 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20190 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20191 *) need_version=no ;;
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20198 openbsd2.[89] | openbsd2.[89].*)
20199 shlibpath_overrides_runpath=no
20202 shlibpath_overrides_runpath=yes
20206 shlibpath_overrides_runpath=yes
20211 libname_spec='$name'
20214 library_names_spec='$libname${shared_ext} $libname.a'
20215 dynamic_linker='OS/2 ld.exe'
20216 shlibpath_var=LIBPATH
20219 osf3* | osf4* | osf5*)
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 shlibpath_overrides_runpath=yes
20238 hardcode_into_libs=yes
20239 # ldd complains unless libraries are executable
20240 postinstall_cmds='chmod +x $lib'
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=yes
20249 if test "$with_gnu_ld" = yes; then
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 shlibpath_var=LD_LIBRARY_PATH
20260 case $host_vendor in
20262 shlibpath_overrides_runpath=no
20264 export_dynamic_flag_spec='${wl}-Blargedynsym'
20265 runpath_var=LD_RUN_PATH
20273 shlibpath_overrides_runpath=no
20274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20280 if test -d /usr/nec ;then
20282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20283 soname_spec='$libname${shared_ext}.$major'
20284 shlibpath_var=LD_LIBRARY_PATH
20288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20289 version_type=freebsd-elf
20292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 shlibpath_var=LD_LIBRARY_PATH
20295 hardcode_into_libs=yes
20296 if test "$with_gnu_ld" = yes; then
20297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20298 shlibpath_overrides_runpath=no
20300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20301 shlibpath_overrides_runpath=yes
20304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20308 sys_lib_dlsearch_path_spec='/usr/lib'
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20322 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20323 echo "${ECHO_T}$dynamic_linker" >&6; }
20324 test "$dynamic_linker" = no && can_build_shared=no
20326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20327 if test "$GCC" = yes; then
20328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20331 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20332 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20333 hardcode_action_CXX=
20334 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20335 test -n "$runpath_var_CXX" || \
20336 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20338 # We can hardcode non-existant directories.
20339 if test "$hardcode_direct_CXX" != no &&
20340 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20341 # have to relink, otherwise we might link with an installed library
20342 # when we should be linking with a yet-to-be-installed one
20343 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20344 test "$hardcode_minus_L_CXX" != no; then
20345 # Linking always hardcodes the temporary library directory.
20346 hardcode_action_CXX=relink
20348 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20349 hardcode_action_CXX=immediate
20352 # We cannot hardcode anything, or else we can only hardcode existing
20354 hardcode_action_CXX=unsupported
20356 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20357 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20359 if test "$hardcode_action_CXX" = relink; then
20360 # Fast installation is not supported
20361 enable_fast_install=no
20362 elif test "$shlibpath_overrides_runpath" = yes ||
20363 test "$enable_shared" = no; then
20364 # Fast installation is not necessary
20365 enable_fast_install=needless
20369 # The else clause should only fire when bootstrapping the
20370 # libtool distribution, otherwise you forgot to ship ltmain.sh
20371 # with your package, and you will get complaints that there are
20372 # no rules to generate ltmain.sh.
20373 if test -f "$ltmain"; then
20374 # See if we are running on zsh, and set the options which allow our commands through
20375 # without removal of \ escapes.
20376 if test -n "${ZSH_VERSION+set}" ; then
20377 setopt NO_GLOB_SUBST
20379 # Now quote all the things that may contain metacharacters while being
20380 # careful not to overquote the AC_SUBSTed values. We take copies of the
20381 # variables and quote the copies for generation of the libtool script.
20382 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20384 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20385 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20386 deplibs_check_method reload_flag reload_cmds need_locks \
20387 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20388 lt_cv_sys_global_symbol_to_c_name_address \
20389 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20390 old_postinstall_cmds old_postuninstall_cmds \
20394 lt_prog_compiler_wl_CXX \
20395 lt_prog_compiler_pic_CXX \
20396 lt_prog_compiler_static_CXX \
20397 lt_prog_compiler_no_builtin_flag_CXX \
20398 export_dynamic_flag_spec_CXX \
20399 thread_safe_flag_spec_CXX \
20400 whole_archive_flag_spec_CXX \
20401 enable_shared_with_static_runtimes_CXX \
20402 old_archive_cmds_CXX \
20403 old_archive_from_new_cmds_CXX \
20404 predep_objects_CXX \
20405 postdep_objects_CXX \
20408 compiler_lib_search_path_CXX \
20410 archive_expsym_cmds_CXX \
20411 postinstall_cmds_CXX \
20412 postuninstall_cmds_CXX \
20413 old_archive_from_expsyms_cmds_CXX \
20414 allow_undefined_flag_CXX \
20415 no_undefined_flag_CXX \
20416 export_symbols_cmds_CXX \
20417 hardcode_libdir_flag_spec_CXX \
20418 hardcode_libdir_flag_spec_ld_CXX \
20419 hardcode_libdir_separator_CXX \
20420 hardcode_automatic_CXX \
20422 module_expsym_cmds_CXX \
20423 lt_cv_prog_compiler_c_o_CXX \
20424 exclude_expsyms_CXX \
20425 include_expsyms_CXX; do
20428 old_archive_cmds_CXX | \
20429 old_archive_from_new_cmds_CXX | \
20430 archive_cmds_CXX | \
20431 archive_expsym_cmds_CXX | \
20432 module_cmds_CXX | \
20433 module_expsym_cmds_CXX | \
20434 old_archive_from_expsyms_cmds_CXX | \
20435 export_symbols_cmds_CXX | \
20436 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20437 postinstall_cmds | postuninstall_cmds | \
20438 old_postinstall_cmds | old_postuninstall_cmds | \
20439 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20440 # Double-quote double-evaled strings.
20441 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20444 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20450 *'\$0 --fallback-echo"')
20451 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20457 cat <<__EOF__ >> "$cfgfile"
20458 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20460 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20462 # Shell to use when invoking shell scripts.
20465 # Whether or not to build shared libraries.
20466 build_libtool_libs=$enable_shared
20468 # Whether or not to build static libraries.
20469 build_old_libs=$enable_static
20471 # Whether or not to add -lc for building shared libraries.
20472 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20474 # Whether or not to disallow shared libs when runtime libs are static
20475 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20477 # Whether or not to optimize for fast installation.
20478 fast_install=$enable_fast_install
20481 host_alias=$host_alias
20485 # The build system.
20486 build_alias=$build_alias
20490 # An echo program that does not interpret backslashes.
20495 AR_FLAGS=$lt_AR_FLAGS
20500 # LTCC compiler flags.
20501 LTCFLAGS=$lt_LTCFLAGS
20503 # A language-specific compiler.
20504 CC=$lt_compiler_CXX
20506 # Is the compiler the GNU C compiler?
20512 # The linker used to build libraries.
20515 # Whether we need hard or soft links.
20518 # A BSD-compatible nm program.
20521 # A symbol stripping program
20524 # Used to examine libraries when file_magic_cmd begins "file"
20525 MAGIC_CMD=$MAGIC_CMD
20527 # Used on cygwin: DLL creation program.
20530 # Used on cygwin: object dumper.
20533 # Used on cygwin: assembler.
20536 # The name of the directory that contains temporary libtool files.
20539 # How to create reloadable object files.
20540 reload_flag=$lt_reload_flag
20541 reload_cmds=$lt_reload_cmds
20543 # How to pass a linker flag through the compiler.
20544 wl=$lt_lt_prog_compiler_wl_CXX
20546 # Object file suffix (normally "o").
20547 objext="$ac_objext"
20549 # Old archive suffix (normally "a").
20552 # Shared library suffix (normally ".so").
20553 shrext_cmds='$shrext_cmds'
20555 # Executable file suffix (normally "").
20558 # Additional compiler flags for building library objects.
20559 pic_flag=$lt_lt_prog_compiler_pic_CXX
20562 # What is the maximum length of a command?
20563 max_cmd_len=$lt_cv_sys_max_cmd_len
20565 # Does compiler simultaneously support -c and -o options?
20566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20568 # Must we lock files when doing compilation?
20569 need_locks=$lt_need_locks
20571 # Do we need the lib prefix for modules?
20572 need_lib_prefix=$need_lib_prefix
20574 # Do we need a version for libraries?
20575 need_version=$need_version
20577 # Whether dlopen is supported.
20578 dlopen_support=$enable_dlopen
20580 # Whether dlopen of programs is supported.
20581 dlopen_self=$enable_dlopen_self
20583 # Whether dlopen of statically linked programs is supported.
20584 dlopen_self_static=$enable_dlopen_self_static
20586 # Compiler flag to prevent dynamic linking.
20587 link_static_flag=$lt_lt_prog_compiler_static_CXX
20589 # Compiler flag to turn off builtin functions.
20590 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20592 # Compiler flag to allow reflexive dlopens.
20593 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20595 # Compiler flag to generate shared objects directly from archives.
20596 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20598 # Compiler flag to generate thread-safe objects.
20599 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20601 # Library versioning type.
20602 version_type=$version_type
20604 # Format of library name prefix.
20605 libname_spec=$lt_libname_spec
20607 # List of archive names. First name is the real one, the rest are links.
20608 # The last name is the one that the linker finds with -lNAME.
20609 library_names_spec=$lt_library_names_spec
20611 # The coded name of the library, if different from the real name.
20612 soname_spec=$lt_soname_spec
20614 # Commands used to build and install an old-style archive.
20616 old_archive_cmds=$lt_old_archive_cmds_CXX
20617 old_postinstall_cmds=$lt_old_postinstall_cmds
20618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20620 # Create an old-style archive from a shared archive.
20621 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20623 # Create a temporary old-style archive to link instead of a shared archive.
20624 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20626 # Commands used to build and install a shared archive.
20627 archive_cmds=$lt_archive_cmds_CXX
20628 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20629 postinstall_cmds=$lt_postinstall_cmds
20630 postuninstall_cmds=$lt_postuninstall_cmds
20632 # Commands used to build a loadable module (assumed same as above if empty)
20633 module_cmds=$lt_module_cmds_CXX
20634 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20636 # Commands to strip libraries.
20637 old_striplib=$lt_old_striplib
20638 striplib=$lt_striplib
20640 # Dependencies to place before the objects being linked to create a
20642 predep_objects=$lt_predep_objects_CXX
20644 # Dependencies to place after the objects being linked to create a
20646 postdep_objects=$lt_postdep_objects_CXX
20648 # Dependencies to place before the objects being linked to create a
20650 predeps=$lt_predeps_CXX
20652 # Dependencies to place after the objects being linked to create a
20654 postdeps=$lt_postdeps_CXX
20656 # The library search path used internally by the compiler when linking
20657 # a shared library.
20658 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20660 # Method to check whether dependent libraries are shared objects.
20661 deplibs_check_method=$lt_deplibs_check_method
20663 # Command to use when deplibs_check_method == file_magic.
20664 file_magic_cmd=$lt_file_magic_cmd
20666 # Flag that allows shared libraries with undefined symbols to be built.
20667 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20669 # Flag that forces no undefined symbols.
20670 no_undefined_flag=$lt_no_undefined_flag_CXX
20672 # Commands used to finish a libtool library installation in a directory.
20673 finish_cmds=$lt_finish_cmds
20675 # Same as above, but a single script fragment to be evaled but not shown.
20676 finish_eval=$lt_finish_eval
20678 # Take the output of nm and produce a listing of raw symbols and C names.
20679 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20681 # Transform the output of nm in a proper C declaration
20682 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20684 # Transform the output of nm in a C name address pair
20685 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20687 # This is the shared library runtime path variable.
20688 runpath_var=$runpath_var
20690 # This is the shared library path variable.
20691 shlibpath_var=$shlibpath_var
20693 # Is shlibpath searched before the hard-coded library search path?
20694 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20696 # How to hardcode a shared library path into an executable.
20697 hardcode_action=$hardcode_action_CXX
20699 # Whether we should hardcode library paths into libraries.
20700 hardcode_into_libs=$hardcode_into_libs
20702 # Flag to hardcode \$libdir into a binary during linking.
20703 # This must work even if \$libdir does not exist.
20704 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20706 # If ld is used when linking, flag to hardcode \$libdir into
20707 # a binary during linking. This must work even if \$libdir does
20709 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20711 # Whether we need a single -rpath flag with a separated argument.
20712 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20714 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20715 # resulting binary.
20716 hardcode_direct=$hardcode_direct_CXX
20718 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20719 # resulting binary.
20720 hardcode_minus_L=$hardcode_minus_L_CXX
20722 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20723 # the resulting binary.
20724 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20726 # Set to yes if building a shared library automatically hardcodes DIR into the library
20727 # and all subsequent libraries and executables linked against it.
20728 hardcode_automatic=$hardcode_automatic_CXX
20730 # Variables whose values should be saved in libtool wrapper scripts and
20731 # restored at relink time.
20732 variables_saved_for_relink="$variables_saved_for_relink"
20734 # Whether libtool must link a program against all its dependency libraries.
20735 link_all_deplibs=$link_all_deplibs_CXX
20737 # Compile-time system search path for libraries
20738 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20740 # Run-time system search path for libraries
20741 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20743 # Fix the shell variable \$srcfile for the compiler.
20744 fix_srcfile_path="$fix_srcfile_path_CXX"
20746 # Set to yes if exported symbols are required.
20747 always_export_symbols=$always_export_symbols_CXX
20749 # The commands to list exported symbols.
20750 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20752 # The commands to extract the exported symbol list from a shared archive.
20753 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20755 # Symbols that should not be listed in the preloaded symbols.
20756 exclude_expsyms=$lt_exclude_expsyms_CXX
20758 # Symbols that must always be exported.
20759 include_expsyms=$lt_include_expsyms_CXX
20761 # ### END LIBTOOL TAG CONFIG: $tagname
20767 # If there is no Makefile yet, we rely on a make rule to execute
20768 # `config.status --recheck' to rerun these tests and create the
20769 # libtool script then.
20770 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20771 if test -f "$ltmain_in"; then
20772 test -f Makefile && make "$ltmain"
20778 ac_cpp='$CPP $CPPFLAGS'
20779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20787 with_gnu_ldcxx=$with_gnu_ld
20788 with_gnu_ld=$lt_save_with_gnu_ld
20789 lt_cv_path_LDCXX=$lt_cv_path_LD
20790 lt_cv_path_LD=$lt_save_path_LD
20791 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20792 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20800 if test -n "$F77" && test "X$F77" != "Xno"; then
20803 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20804 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20808 archive_cmds_need_lc_F77=no
20809 allow_undefined_flag_F77=
20810 always_export_symbols_F77=no
20811 archive_expsym_cmds_F77=
20812 export_dynamic_flag_spec_F77=
20813 hardcode_direct_F77=no
20814 hardcode_libdir_flag_spec_F77=
20815 hardcode_libdir_flag_spec_ld_F77=
20816 hardcode_libdir_separator_F77=
20817 hardcode_minus_L_F77=no
20818 hardcode_automatic_F77=no
20820 module_expsym_cmds_F77=
20821 link_all_deplibs_F77=unknown
20822 old_archive_cmds_F77=$old_archive_cmds
20823 no_undefined_flag_F77=
20824 whole_archive_flag_spec_F77=
20825 enable_shared_with_static_runtimes_F77=no
20827 # Source file extension for f77 test sources.
20830 # Object file extension for compiled f77 test sources.
20834 # Code to be used in simple compile tests
20835 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20837 # Code to be used in simple link tests
20838 lt_simple_link_test_code=" program t\n end\n"
20840 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20842 # If no C compiler was specified, use CC.
20845 # If no C compiler flags were specified, use CFLAGS.
20846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20848 # Allow CC to be a program name with arguments.
20852 # save warnings/boilerplate of simple test code
20853 ac_outfile=conftest.$ac_objext
20854 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20855 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20856 _lt_compiler_boilerplate=`cat conftest.err`
20859 ac_outfile=conftest.$ac_objext
20860 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20861 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20862 _lt_linker_boilerplate=`cat conftest.err`
20866 # Allow CC to be a program name with arguments.
20871 for cc_temp in $compiler""; do
20873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20879 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20882 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20883 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20884 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20885 echo "${ECHO_T}$can_build_shared" >&6; }
20887 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20888 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20889 test "$can_build_shared" = "no" && enable_shared=no
20891 # On AIX, shared libraries and static libraries use the same namespace, and
20892 # are all built from PIC.
20895 test "$enable_shared" = yes && enable_static=no
20896 if test -n "$RANLIB"; then
20897 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20898 postinstall_cmds='$RANLIB $lib'
20902 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20903 test "$enable_shared" = yes && enable_static=no
20907 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20908 echo "${ECHO_T}$enable_shared" >&6; }
20910 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20911 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20912 # Make sure either enable_shared or enable_static is yes.
20913 test "$enable_shared" = yes || enable_static=yes
20914 { echo "$as_me:$LINENO: result: $enable_static" >&5
20915 echo "${ECHO_T}$enable_static" >&6; }
20920 lt_prog_compiler_wl_F77=
20921 lt_prog_compiler_pic_F77=
20922 lt_prog_compiler_static_F77=
20924 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20925 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20927 if test "$GCC" = yes; then
20928 lt_prog_compiler_wl_F77='-Wl,'
20929 lt_prog_compiler_static_F77='-static'
20933 # All AIX code is PIC.
20934 if test "$host_cpu" = ia64; then
20935 # AIX 5 now supports IA64 processor
20936 lt_prog_compiler_static_F77='-Bstatic'
20941 # FIXME: we need at least 68020 code to build shared libraries, but
20942 # adding the `-m68020' flag to GCC prevents building anything better,
20944 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20947 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20948 # PIC is the default for these OSes.
20951 mingw* | pw32* | os2*)
20952 # This hack is so that the source file can tell whether it is being
20953 # built for inclusion in a dll (and should export symbols for example).
20954 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20957 darwin* | rhapsody*)
20958 # PIC is the default on this platform
20959 # Common symbols not allowed in MH_DYLIB files
20960 lt_prog_compiler_pic_F77='-fno-common'
20964 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20965 # Instead, we relocate shared libraries at runtime.
20969 # Just because we use GCC doesn't mean we suddenly get shared libraries
20970 # on systems that don't support them.
20971 lt_prog_compiler_can_build_shared_F77=no
20976 if test -d /usr/nec; then
20977 lt_prog_compiler_pic_F77=-Kconform_pic
20982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20983 # not for PA HP-UX.
20989 lt_prog_compiler_pic_F77='-fPIC'
20995 lt_prog_compiler_pic_F77='-fPIC'
20999 # PORTME Check for flag to pass linker flags through the system compiler.
21002 lt_prog_compiler_wl_F77='-Wl,'
21003 if test "$host_cpu" = ia64; then
21004 # AIX 5 now supports IA64 processor
21005 lt_prog_compiler_static_F77='-Bstatic'
21007 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21011 # PIC is the default on this platform
21012 # Common symbols not allowed in MH_DYLIB files
21013 case $cc_basename in
21015 lt_prog_compiler_pic_F77='-qnocommon'
21016 lt_prog_compiler_wl_F77='-Wl,'
21021 mingw* | pw32* | os2*)
21022 # This hack is so that the source file can tell whether it is being
21023 # built for inclusion in a dll (and should export symbols for example).
21024 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21027 hpux9* | hpux10* | hpux11*)
21028 lt_prog_compiler_wl_F77='-Wl,'
21029 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21030 # not for PA HP-UX.
21036 lt_prog_compiler_pic_F77='+Z'
21039 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21040 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21043 irix5* | irix6* | nonstopux*)
21044 lt_prog_compiler_wl_F77='-Wl,'
21045 # PIC (with -KPIC) is the default.
21046 lt_prog_compiler_static_F77='-non_shared'
21050 lt_prog_compiler_pic_F77='-KPIC'
21051 lt_prog_compiler_static_F77='-Bstatic'
21055 case $cc_basename in
21057 lt_prog_compiler_wl_F77='-Wl,'
21058 lt_prog_compiler_pic_F77='-KPIC'
21059 lt_prog_compiler_static_F77='-static'
21061 pgcc* | pgf77* | pgf90* | pgf95*)
21062 # Portland Group compilers (*not* the Pentium gcc compiler,
21063 # which looks to be a dead project)
21064 lt_prog_compiler_wl_F77='-Wl,'
21065 lt_prog_compiler_pic_F77='-fpic'
21066 lt_prog_compiler_static_F77='-Bstatic'
21069 lt_prog_compiler_wl_F77='-Wl,'
21070 # All Alpha code is PIC.
21071 lt_prog_compiler_static_F77='-non_shared'
21076 osf3* | osf4* | osf5*)
21077 lt_prog_compiler_wl_F77='-Wl,'
21078 # All OSF/1 code is PIC.
21079 lt_prog_compiler_static_F77='-non_shared'
21083 lt_prog_compiler_pic_F77='-KPIC'
21084 lt_prog_compiler_static_F77='-Bstatic'
21085 case $cc_basename in
21086 f77* | f90* | f95*)
21087 lt_prog_compiler_wl_F77='-Qoption ld ';;
21089 lt_prog_compiler_wl_F77='-Wl,';;
21094 lt_prog_compiler_wl_F77='-Qoption ld '
21095 lt_prog_compiler_pic_F77='-PIC'
21096 lt_prog_compiler_static_F77='-Bstatic'
21099 sysv4 | sysv4.2uw2* | sysv4.3*)
21100 lt_prog_compiler_wl_F77='-Wl,'
21101 lt_prog_compiler_pic_F77='-KPIC'
21102 lt_prog_compiler_static_F77='-Bstatic'
21106 if test -d /usr/nec ;then
21107 lt_prog_compiler_pic_F77='-Kconform_pic'
21108 lt_prog_compiler_static_F77='-Bstatic'
21112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21113 lt_prog_compiler_wl_F77='-Wl,'
21114 lt_prog_compiler_pic_F77='-KPIC'
21115 lt_prog_compiler_static_F77='-Bstatic'
21119 lt_prog_compiler_wl_F77='-Wl,'
21120 lt_prog_compiler_can_build_shared_F77=no
21124 lt_prog_compiler_pic_F77='-pic'
21125 lt_prog_compiler_static_F77='-Bstatic'
21129 lt_prog_compiler_can_build_shared_F77=no
21134 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21135 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21138 # Check to make sure the PIC flag actually works.
21140 if test -n "$lt_prog_compiler_pic_F77"; then
21142 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21143 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21144 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 lt_prog_compiler_pic_works_F77=no
21148 ac_outfile=conftest.$ac_objext
21149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21150 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21151 # Insert the option either (1) after the last *FLAGS variable, or
21152 # (2) before a word containing "conftest.", or (3) at the end.
21153 # Note that $ac_compile itself does not contain backslashes and begins
21154 # with a dollar sign (not a hyphen), so the echo should work correctly.
21155 # The option is referenced via a variable to avoid confusing sed.
21156 lt_compile=`echo "$ac_compile" | $SED \
21157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21159 -e 's:$: $lt_compiler_flag:'`
21160 (eval echo "\"\$as_me:21160: $lt_compile\"" >&5)
21161 (eval "$lt_compile" 2>conftest.err)
21163 cat conftest.err >&5
21164 echo "$as_me:21164: \$? = $ac_status" >&5
21165 if (exit $ac_status) && test -s "$ac_outfile"; then
21166 # The compiler can only warn and ignore the option if not recognized
21167 # So say no if there are warnings other than the usual output.
21168 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21171 lt_prog_compiler_pic_works_F77=yes
21177 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21178 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21180 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21181 case $lt_prog_compiler_pic_F77 in
21183 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21186 lt_prog_compiler_pic_F77=
21187 lt_prog_compiler_can_build_shared_F77=no
21192 # For platforms which do not support PIC, -DPIC is meaningless:
21194 lt_prog_compiler_pic_F77=
21197 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21202 # Check to make sure the static flag actually works.
21204 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21205 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21206 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21207 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 lt_prog_compiler_static_works_F77=no
21211 save_LDFLAGS="$LDFLAGS"
21212 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21213 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21215 # The linker can only warn and ignore the option if not recognized
21216 # So say no if there are warnings
21217 if test -s conftest.err; then
21218 # Append any errors to the config.log.
21219 cat conftest.err 1>&5
21220 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21222 if diff conftest.exp conftest.er2 >/dev/null; then
21223 lt_prog_compiler_static_works_F77=yes
21226 lt_prog_compiler_static_works_F77=yes
21230 LDFLAGS="$save_LDFLAGS"
21233 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21234 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21236 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21239 lt_prog_compiler_static_F77=
21243 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21244 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21245 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 lt_cv_prog_compiler_c_o_F77=no
21249 $rm -r conftest 2>/dev/null
21253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21255 lt_compiler_flag="-o out/conftest2.$ac_objext"
21256 # Insert the option either (1) after the last *FLAGS variable, or
21257 # (2) before a word containing "conftest.", or (3) at the end.
21258 # Note that $ac_compile itself does not contain backslashes and begins
21259 # with a dollar sign (not a hyphen), so the echo should work correctly.
21260 lt_compile=`echo "$ac_compile" | $SED \
21261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21263 -e 's:$: $lt_compiler_flag:'`
21264 (eval echo "\"\$as_me:21264: $lt_compile\"" >&5)
21265 (eval "$lt_compile" 2>out/conftest.err)
21267 cat out/conftest.err >&5
21268 echo "$as_me:21268: \$? = $ac_status" >&5
21269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21271 # The compiler can only warn and ignore the option if not recognized
21272 # So say no if there are warnings
21273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21276 lt_cv_prog_compiler_c_o_F77=yes
21281 # SGI C++ compiler will create directory out/ii_files/ for
21282 # template instantiation
21283 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21284 $rm out/* && rmdir out
21290 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21291 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21294 hard_links="nottested"
21295 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21296 # do not overwrite the value of need_locks provided by the user
21297 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21298 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21303 ln conftest.a conftest.b 2>&5 || hard_links=no
21304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21305 { echo "$as_me:$LINENO: result: $hard_links" >&5
21306 echo "${ECHO_T}$hard_links" >&6; }
21307 if test "$hard_links" = no; then
21308 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21309 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21316 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21317 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21320 allow_undefined_flag_F77=
21321 enable_shared_with_static_runtimes_F77=no
21323 archive_expsym_cmds_F77=
21324 old_archive_From_new_cmds_F77=
21325 old_archive_from_expsyms_cmds_F77=
21326 export_dynamic_flag_spec_F77=
21327 whole_archive_flag_spec_F77=
21328 thread_safe_flag_spec_F77=
21329 hardcode_libdir_flag_spec_F77=
21330 hardcode_libdir_flag_spec_ld_F77=
21331 hardcode_libdir_separator_F77=
21332 hardcode_direct_F77=no
21333 hardcode_minus_L_F77=no
21334 hardcode_shlibpath_var_F77=unsupported
21335 link_all_deplibs_F77=unknown
21336 hardcode_automatic_F77=no
21338 module_expsym_cmds_F77=
21339 always_export_symbols_F77=no
21340 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21341 # include_expsyms should be a list of space-separated symbols to be *always*
21342 # included in the symbol list
21343 include_expsyms_F77=
21344 # exclude_expsyms can be an extended regexp of symbols to exclude
21345 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21346 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21347 # as well as any symbol that contains `d'.
21348 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21349 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21350 # platforms (ab)use it in PIC code, but their linkers get confused if
21351 # the symbol is explicitly referenced. Since portable code cannot
21352 # rely on this symbol name, it's probably fine to never include it in
21353 # preloaded symbol tables.
21354 extract_expsyms_cmds=
21355 # Just being paranoid about ensuring that cc_basename is set.
21356 for cc_temp in $compiler""; do
21358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21364 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21367 cygwin* | mingw* | pw32*)
21368 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21369 # When not using gcc, we currently assume that we are using
21370 # Microsoft Visual C++.
21371 if test "$GCC" != yes; then
21376 # we just hope/assume this is gcc and not c89 (= MSVC++)
21385 if test "$with_gnu_ld" = yes; then
21386 # If archive_cmds runs LD, not CC, wlarc should be empty
21389 # Set some defaults for GNU ld with shared library support. These
21390 # are reset later if shared libraries are not supported. Putting them
21391 # here allows them to be overridden if necessary.
21392 runpath_var=LD_RUN_PATH
21393 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21394 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21395 # ancient GNU ld didn't support --whole-archive et. al.
21396 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21397 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21399 whole_archive_flag_spec_F77=
21401 supports_anon_versioning=no
21402 case `$LD -v 2>/dev/null` in
21403 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21404 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21405 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21406 *\ 2.11.*) ;; # other 2.11 versions
21407 *) supports_anon_versioning=yes ;;
21410 # See if GNU ld supports shared libraries.
21412 aix3* | aix4* | aix5*)
21413 # On AIX/PPC, the GNU linker is very broken
21414 if test "$host_cpu" != ia64; then
21418 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21419 *** to be unable to reliably create shared libraries on AIX.
21420 *** Therefore, libtool is disabling shared libraries support. If you
21421 *** really care for shared libraries, you may want to modify your PATH
21422 *** so that a non-GNU linker is found, and then restart.
21429 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)'
21430 hardcode_libdir_flag_spec_F77='-L$libdir'
21431 hardcode_minus_L_F77=yes
21433 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21434 # that the semantics of dynamic libraries on AmigaOS, at least up
21435 # to version 4, is to share data among multiple programs linked
21436 # with the same dynamic library. Since this doesn't match the
21437 # behavior of shared libraries on other platforms, we can't use
21443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21444 allow_undefined_flag_F77=unsupported
21445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21446 # support --undefined. This deserves some investigation. FIXME
21447 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21453 cygwin* | mingw* | pw32*)
21454 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21455 # as there is no search path for DLLs.
21456 hardcode_libdir_flag_spec_F77='-L$libdir'
21457 allow_undefined_flag_F77=unsupported
21458 always_export_symbols_F77=no
21459 enable_shared_with_static_runtimes_F77=yes
21460 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21462 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21463 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21464 # If the export-symbols file already is a .def file (1st line
21465 # is EXPORTS), use it as is; otherwise, prepend...
21466 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21467 cp $export_symbols $output_objdir/$soname.def;
21469 echo EXPORTS > $output_objdir/$soname.def;
21470 cat $export_symbols >> $output_objdir/$soname.def;
21472 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21479 hardcode_direct_F77=no
21480 hardcode_shlibpath_var_F77=no
21481 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21482 export_dynamic_flag_spec_F77='${wl}-E'
21483 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21484 # Instead, shared libraries are loaded at an image base (0x10000000 by
21485 # default) and relocated if they conflict, which is a slow very memory
21486 # consuming and fragmenting process. To avoid this, we pick a random,
21487 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21488 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21489 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'
21490 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'
21494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21496 case $cc_basename,$host_cpu in
21497 pgcc*) # Portland Group C compiler
21498 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'
21499 tmp_addflag=' $pic_flag'
21501 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21502 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'
21503 tmp_addflag=' $pic_flag -Mnomain' ;;
21504 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21505 tmp_addflag=' -i_dynamic' ;;
21506 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21507 tmp_addflag=' -i_dynamic -nofor_main' ;;
21508 ifc* | ifort*) # Intel Fortran compiler
21509 tmp_addflag=' -nofor_main' ;;
21511 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21513 if test $supports_anon_versioning = yes; then
21514 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21516 $echo "local: *; };" >> $output_objdir/$libname.ver~
21517 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21526 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21529 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21530 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21535 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21539 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21540 *** create shared libraries on Solaris systems. Therefore, libtool
21541 *** is disabling shared libraries support. We urge you to upgrade GNU
21542 *** binutils to release 2.9.1 or newer. Another option is to modify
21543 *** your PATH or compiler configuration so that the native linker is
21544 *** used, and then restart.
21547 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21548 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21549 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21556 case `$LD -v 2>&1` in
21557 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21561 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21562 *** reliably create shared libraries on SCO systems. Therefore, libtool
21563 *** is disabling shared libraries support. We urge you to upgrade GNU
21564 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21565 *** your PATH or compiler configuration so that the native linker is
21566 *** used, and then restart.
21571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21572 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21583 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21585 hardcode_direct_F77=yes
21586 hardcode_shlibpath_var_F77=no
21590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21592 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21599 if test "$ld_shlibs_F77" = no; then
21601 hardcode_libdir_flag_spec_F77=
21602 export_dynamic_flag_spec_F77=
21603 whole_archive_flag_spec_F77=
21606 # PORTME fill in a description of your system's linker (not GNU ld)
21609 allow_undefined_flag_F77=unsupported
21610 always_export_symbols_F77=yes
21611 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'
21612 # Note: this linker hardcodes the directories in LIBPATH if there
21613 # are no directories specified by -L.
21614 hardcode_minus_L_F77=yes
21615 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21616 # Neither direct hardcoding nor static linking is supported with a
21618 hardcode_direct_F77=unsupported
21623 if test "$host_cpu" = ia64; then
21624 # On IA64, the linker does run time linking by default, so we don't
21625 # have to do anything special.
21626 aix_use_runtimelinking=no
21627 exp_sym_flag='-Bexport'
21630 # If we're using GNU nm, then we don't want the "-C" option.
21631 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21632 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21633 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'
21635 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'
21637 aix_use_runtimelinking=no
21639 # Test if we are trying to use run time linking or normal
21640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21641 # need to do runtime linking.
21642 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21643 for ld_flag in $LDFLAGS; do
21644 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21645 aix_use_runtimelinking=yes
21652 exp_sym_flag='-bexport'
21653 no_entry_flag='-bnoentry'
21656 # When large executables or shared objects are built, AIX ld can
21657 # have problems creating the table of contents. If linking a library
21658 # or program results in "error TOC overflow" add -mminimal-toc to
21659 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21660 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21662 archive_cmds_F77=''
21663 hardcode_direct_F77=yes
21664 hardcode_libdir_separator_F77=':'
21665 link_all_deplibs_F77=yes
21667 if test "$GCC" = yes; then
21668 case $host_os in aix4.[012]|aix4.[012].*)
21669 # We only want to do this on AIX 4.2 and lower, the check
21670 # below for broken collect2 doesn't work under 4.3+
21671 collect2name=`${CC} -print-prog-name=collect2`
21672 if test -f "$collect2name" && \
21673 strings "$collect2name" | grep resolve_lib_name >/dev/null
21675 # We have reworked collect2
21676 hardcode_direct_F77=yes
21678 # We have old collect2
21679 hardcode_direct_F77=unsupported
21680 # It fails to find uninstalled libraries when the uninstalled
21681 # path is not listed in the libpath. Setting hardcode_minus_L
21682 # to unsupported forces relinking
21683 hardcode_minus_L_F77=yes
21684 hardcode_libdir_flag_spec_F77='-L$libdir'
21685 hardcode_libdir_separator_F77=
21689 shared_flag='-shared'
21690 if test "$aix_use_runtimelinking" = yes; then
21691 shared_flag="$shared_flag "'${wl}-G'
21695 if test "$host_cpu" = ia64; then
21696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21697 # chokes on -Wl,-G. The following line is correct:
21700 if test "$aix_use_runtimelinking" = yes; then
21701 shared_flag='${wl}-G'
21703 shared_flag='${wl}-bM:SRE'
21708 # It seems that -bexpall does not export symbols beginning with
21709 # underscore (_), so it is better to generate a list of symbols to export.
21710 always_export_symbols_F77=yes
21711 if test "$aix_use_runtimelinking" = yes; then
21712 # Warning - without using the other runtime loading flags (-brtl),
21713 # -berok will link without error, but may produce a broken library.
21714 allow_undefined_flag_F77='-berok'
21715 # Determine the default libpath from the value encoded in an empty executable.
21716 cat >conftest.$ac_ext <<_ACEOF
21721 rm -f conftest.$ac_objext conftest$ac_exeext
21722 if { (ac_try="$ac_link"
21723 case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_link") 2>conftest.er1
21730 grep -v '^ *+' conftest.er1 >conftest.err
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
21735 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21736 { (case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_try") 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21758 # Check for a 64-bit object if we didn't find anything.
21759 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; }
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21768 rm -f core conftest.err conftest.$ac_objext \
21769 conftest$ac_exeext conftest.$ac_ext
21770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21772 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21773 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"
21775 if test "$host_cpu" = ia64; then
21776 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21777 allow_undefined_flag_F77="-z nodefs"
21778 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"
21780 # Determine the default libpath from the value encoded in an empty executable.
21781 cat >conftest.$ac_ext <<_ACEOF
21786 rm -f conftest.$ac_objext conftest$ac_exeext
21787 if { (ac_try="$ac_link"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_link") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21801 { (case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_try") 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; } &&
21810 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21823 # Check for a 64-bit object if we didn't find anything.
21824 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; }
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21833 rm -f core conftest.err conftest.$ac_objext \
21834 conftest$ac_exeext conftest.$ac_ext
21835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21837 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21838 # Warning - without using the other run time loading flags,
21839 # -berok will link without error, but may produce a broken library.
21840 no_undefined_flag_F77=' ${wl}-bernotok'
21841 allow_undefined_flag_F77=' ${wl}-berok'
21842 # Exported symbols can be pulled into shared objects from archives
21843 whole_archive_flag_spec_F77='$convenience'
21844 archive_cmds_need_lc_F77=yes
21845 # This is similar to how AIX traditionally builds its shared libraries.
21846 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'
21852 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)'
21853 hardcode_libdir_flag_spec_F77='-L$libdir'
21854 hardcode_minus_L_F77=yes
21855 # see comment about different semantics on the GNU ld section
21860 export_dynamic_flag_spec_F77=-rdynamic
21863 cygwin* | mingw* | pw32*)
21864 # When not using gcc, we currently assume that we are using
21865 # Microsoft Visual C++.
21866 # hardcode_libdir_flag_spec is actually meaningless, as there is
21867 # no search path for DLLs.
21868 hardcode_libdir_flag_spec_F77=' '
21869 allow_undefined_flag_F77=unsupported
21870 # Tell ltmain to make .lib files, not .a files.
21872 # Tell ltmain to make .dll files, not .so files.
21874 # FIXME: Setting linknames here is a bad hack.
21875 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21876 # The linker will automatically build a .lib file if we build a DLL.
21877 old_archive_From_new_cmds_F77='true'
21878 # FIXME: Should let the user specify the lib program.
21879 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21880 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21881 enable_shared_with_static_runtimes_F77=yes
21884 darwin* | rhapsody*)
21886 rhapsody* | darwin1.[012])
21887 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21890 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21891 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21893 case ${MACOSX_DEPLOYMENT_TARGET} in
21895 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21898 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21904 archive_cmds_need_lc_F77=no
21905 hardcode_direct_F77=no
21906 hardcode_automatic_F77=yes
21907 hardcode_shlibpath_var_F77=unsupported
21908 whole_archive_flag_spec_F77=''
21909 link_all_deplibs_F77=yes
21910 if test "$GCC" = yes ; then
21911 output_verbose_link_cmd='echo'
21912 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21913 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21915 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}'
21916 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}'
21918 case $cc_basename in
21920 output_verbose_link_cmd='echo'
21921 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21922 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21923 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21924 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}'
21925 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}'
21935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21936 hardcode_libdir_flag_spec_F77='-L$libdir'
21937 hardcode_shlibpath_var_F77=no
21944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21945 # support. Future versions do this automatically, but an explicit c++rt0.o
21946 # does not break anything, and helps significantly (at the cost of a little
21949 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21950 hardcode_libdir_flag_spec_F77='-R$libdir'
21951 hardcode_direct_F77=yes
21952 hardcode_shlibpath_var_F77=no
21955 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21957 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21958 hardcode_direct_F77=yes
21959 hardcode_minus_L_F77=yes
21960 hardcode_shlibpath_var_F77=no
21963 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21964 freebsd* | kfreebsd*-gnu | dragonfly*)
21965 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21966 hardcode_libdir_flag_spec_F77='-R$libdir'
21967 hardcode_direct_F77=yes
21968 hardcode_shlibpath_var_F77=no
21972 if test "$GCC" = yes; then
21973 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'
21975 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'
21977 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21978 hardcode_libdir_separator_F77=:
21979 hardcode_direct_F77=yes
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_F77=yes
21984 export_dynamic_flag_spec_F77='${wl}-E'
21988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21989 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21991 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21993 if test "$with_gnu_ld" = no; then
21994 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21995 hardcode_libdir_separator_F77=:
21997 hardcode_direct_F77=yes
21998 export_dynamic_flag_spec_F77='${wl}-E'
22000 # hardcode_minus_L: Not really in the search PATH,
22001 # but as the default location of the library.
22002 hardcode_minus_L_F77=yes
22007 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22010 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22013 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22016 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22022 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22025 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22028 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22032 if test "$with_gnu_ld" = no; then
22033 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22034 hardcode_libdir_separator_F77=:
22038 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22039 hardcode_direct_F77=no
22040 hardcode_shlibpath_var_F77=no
22043 hardcode_direct_F77=yes
22044 export_dynamic_flag_spec_F77='${wl}-E'
22046 # hardcode_minus_L: Not really in the search PATH,
22047 # but as the default location of the library.
22048 hardcode_minus_L_F77=yes
22054 irix5* | irix6* | nonstopux*)
22055 if test "$GCC" = yes; then
22056 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'
22058 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'
22059 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22062 hardcode_libdir_separator_F77=:
22063 link_all_deplibs_F77=yes
22067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22068 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22070 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22072 hardcode_libdir_flag_spec_F77='-R$libdir'
22073 hardcode_direct_F77=yes
22074 hardcode_shlibpath_var_F77=no
22078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22079 hardcode_direct_F77=yes
22080 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22081 hardcode_libdir_separator_F77=:
22082 hardcode_shlibpath_var_F77=no
22086 hardcode_direct_F77=yes
22087 hardcode_shlibpath_var_F77=no
22088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22089 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22090 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22091 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22092 export_dynamic_flag_spec_F77='${wl}-E'
22095 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22096 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22097 hardcode_libdir_flag_spec_F77='-R$libdir'
22100 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22101 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22108 hardcode_libdir_flag_spec_F77='-L$libdir'
22109 hardcode_minus_L_F77=yes
22110 allow_undefined_flag_F77=unsupported
22111 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'
22112 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22116 if test "$GCC" = yes; then
22117 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22118 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'
22120 allow_undefined_flag_F77=' -expect_unresolved \*'
22121 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'
22123 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22124 hardcode_libdir_separator_F77=:
22127 osf4* | osf5*) # as osf3* with the addition of -msym flag
22128 if test "$GCC" = yes; then
22129 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22130 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'
22131 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22133 allow_undefined_flag_F77=' -expect_unresolved \*'
22134 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'
22135 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~
22136 $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'
22138 # Both c and cxx compiler support -rpath directly
22139 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22141 hardcode_libdir_separator_F77=:
22145 no_undefined_flag_F77=' -z text'
22146 if test "$GCC" = yes; then
22148 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22149 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22150 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22153 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22154 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22155 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22157 hardcode_libdir_flag_spec_F77='-R$libdir'
22158 hardcode_shlibpath_var_F77=no
22160 solaris2.[0-5] | solaris2.[0-5].*) ;;
22162 # The compiler driver will combine linker options so we
22163 # cannot just pass the convience library names through
22164 # without $wl, iff we do not link with $LD.
22165 # Luckily, gcc supports the same syntax we need for Sun Studio.
22166 # Supported since Solaris 2.6 (maybe 2.5.1?)
22169 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22171 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' ;;
22174 link_all_deplibs_F77=yes
22178 if test "x$host_vendor" = xsequent; then
22179 # Use $CC to link under sequent, because it throws in some extra .o
22180 # files that make .init and .fini sections work.
22181 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22183 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22185 hardcode_libdir_flag_spec_F77='-L$libdir'
22186 hardcode_direct_F77=yes
22187 hardcode_minus_L_F77=yes
22188 hardcode_shlibpath_var_F77=no
22192 case $host_vendor in
22194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22195 hardcode_direct_F77=yes # is this really true???
22198 ## LD is ld it makes a PLAMLIB
22199 ## CC just makes a GrossModule.
22200 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22201 reload_cmds_F77='$CC -r -o $output$reload_objs'
22202 hardcode_direct_F77=no
22205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22209 runpath_var='LD_RUN_PATH'
22210 hardcode_shlibpath_var_F77=no
22214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22215 hardcode_shlibpath_var_F77=no
22216 export_dynamic_flag_spec_F77='-Bexport'
22220 if test -d /usr/nec; then
22221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22222 hardcode_shlibpath_var_F77=no
22223 runpath_var=LD_RUN_PATH
22224 hardcode_runpath_var=yes
22229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22230 no_undefined_flag_F77='${wl}-z,text'
22231 archive_cmds_need_lc_F77=no
22232 hardcode_shlibpath_var_F77=no
22233 runpath_var='LD_RUN_PATH'
22235 if test "$GCC" = yes; then
22236 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22239 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22240 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22244 sysv5* | sco3.2v5* | sco5v6*)
22245 # Note: We can NOT use -z defs as we might desire, because we do not
22246 # link with -lc, and that would cause any symbols used from libc to
22247 # always be unresolved, which means just about no library would
22248 # ever link correctly. If we're not using GNU ld we use -z text
22249 # though, which does catch some bad symbols but isn't as heavy-handed
22251 no_undefined_flag_F77='${wl}-z,text'
22252 allow_undefined_flag_F77='${wl}-z,nodefs'
22253 archive_cmds_need_lc_F77=no
22254 hardcode_shlibpath_var_F77=no
22255 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22256 hardcode_libdir_separator_F77=':'
22257 link_all_deplibs_F77=yes
22258 export_dynamic_flag_spec_F77='${wl}-Bexport'
22259 runpath_var='LD_RUN_PATH'
22261 if test "$GCC" = yes; then
22262 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22265 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22266 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22272 hardcode_libdir_flag_spec_F77='-L$libdir'
22273 hardcode_shlibpath_var_F77=no
22282 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22283 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22284 test "$ld_shlibs_F77" = no && can_build_shared=no
22287 # Do we need to explicitly link libc?
22289 case "x$archive_cmds_need_lc_F77" in
22291 # Assume -lc should be added
22292 archive_cmds_need_lc_F77=yes
22294 if test "$enable_shared" = yes && test "$GCC" = yes; then
22295 case $archive_cmds_F77 in
22297 # FIXME: we may have to deal with multi-command sequences.
22300 # Test whether the compiler implicitly links with -lc since on some
22301 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22302 # to ld, don't add -lc before -lgcc.
22303 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22304 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22309 (eval $ac_compile) 2>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } 2>conftest.err; then
22315 libobjs=conftest.$ac_objext
22317 wl=$lt_prog_compiler_wl_F77
22318 pic_flag=$lt_prog_compiler_pic_F77
22324 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22325 allow_undefined_flag_F77=
22326 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22327 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }
22332 archive_cmds_need_lc_F77=no
22334 archive_cmds_need_lc_F77=yes
22336 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22338 cat conftest.err 1>&5
22341 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22342 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22349 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22350 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22351 library_names_spec=
22352 libname_spec='lib$name'
22356 postuninstall_cmds=
22360 shlibpath_overrides_runpath=unknown
22362 dynamic_linker="$host_os ld.so"
22363 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22364 if test "$GCC" = yes; then
22365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22366 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22367 # if the path contains ";" then we assume it to be the separator
22368 # otherwise default to the standard path separator (i.e. ":") - it is
22369 # assumed that no part of a normal pathname contains ";" but that should
22370 # okay in the real world where ";" in dirpaths is itself problematic.
22371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22378 need_lib_prefix=unknown
22379 hardcode_into_libs=no
22381 # when you set need_version to no, make sure it does not cause -set_version
22382 # flags to be left without arguments
22383 need_version=unknown
22388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22389 shlibpath_var=LIBPATH
22391 # AIX 3 has no versioning support, so we append a major version to the name.
22392 soname_spec='${libname}${release}${shared_ext}$major'
22399 hardcode_into_libs=yes
22400 if test "$host_cpu" = ia64; then
22401 # AIX 5 supports IA64
22402 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22403 shlibpath_var=LD_LIBRARY_PATH
22405 # With GCC up to 2.95.x, collect2 would create an import file
22406 # for dependence libraries. The import file would start with
22407 # the line `#! .'. This would cause the generated library to
22408 # depend on `.', always an invalid library. This was fixed in
22409 # development snapshots of GCC prior to 3.0.
22411 aix4 | aix4.[01] | aix4.[01].*)
22412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22414 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22417 can_build_shared=no
22421 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22422 # soname into executable. Probably we can add versioning support to
22423 # collect2, so additional links can be useful in future.
22424 if test "$aix_use_runtimelinking" = yes; then
22425 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22426 # instead of lib<name>.a to let people know that these are not
22427 # typical AIX shared libraries.
22428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22430 # We preserve .a as extension for shared libraries through AIX4.2
22431 # and later when we are not doing run time linking.
22432 library_names_spec='${libname}${release}.a $libname.a'
22433 soname_spec='${libname}${release}${shared_ext}$major'
22435 shlibpath_var=LIBPATH
22440 library_names_spec='$libname.ixlibrary $libname.a'
22441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22442 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'
22446 library_names_spec='${libname}${shared_ext}'
22447 dynamic_linker="$host_os ld.so"
22448 shlibpath_var=LIBRARY_PATH
22454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22455 soname_spec='${libname}${release}${shared_ext}$major'
22456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22457 shlibpath_var=LD_LIBRARY_PATH
22458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22460 # the default ld.so.conf also contains /usr/contrib/lib and
22461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22462 # libtool to hard-code these into programs
22465 cygwin* | mingw* | pw32*)
22466 version_type=windows
22471 case $GCC,$host_os in
22472 yes,cygwin* | yes,mingw* | yes,pw32*)
22473 library_names_spec='$libname.dll.a'
22474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22475 postinstall_cmds='base_file=`basename \${file}`~
22476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22477 dldir=$destdir/`dirname \$dlpath`~
22478 test -d \$dldir || mkdir -p \$dldir~
22479 $install_prog $dir/$dlname \$dldir/$dlname~
22480 chmod a+x \$dldir/$dlname'
22481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22482 dlpath=$dir/\$dldll~
22484 shlibpath_overrides_runpath=yes
22488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22490 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22493 # MinGW DLLs use traditional 'lib' prefix
22494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22496 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22497 # It is most probably a Windows format PATH printed by
22498 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22499 # path with ; separators, and with drive letters. We can handle the
22500 # drive letters (cygwin fileutils understands them), so leave them,
22501 # especially as we might pass files found there to a mingw objdump,
22502 # which wouldn't understand a cygwinified path. Ahh.
22503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22509 # pw32 DLLs use 'pw' prefix rather than 'lib'
22510 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22519 dynamic_linker='Win32 ld.exe'
22520 # FIXME: first we should search . and the directory the executable is in
22524 darwin* | rhapsody*)
22525 dynamic_linker="$host_os dyld"
22526 version_type=darwin
22529 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22530 soname_spec='${libname}${release}${major}$shared_ext'
22531 shlibpath_overrides_runpath=yes
22532 shlibpath_var=DYLD_LIBRARY_PATH
22533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22534 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22535 if test "$GCC" = yes; then
22536 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"`
22538 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22540 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22548 soname_spec='${libname}${release}${shared_ext}$major'
22549 shlibpath_var=LD_LIBRARY_PATH
22560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22561 soname_spec='${libname}${release}${shared_ext}$major'
22562 shlibpath_var=LD_LIBRARY_PATH
22563 shlibpath_overrides_runpath=no
22564 hardcode_into_libs=yes
22565 dynamic_linker='GNU ld.so'
22568 freebsd* | dragonfly*)
22569 # DragonFly does not have aout. When/if they implement a new
22570 # versioning mechanism, adjust this.
22571 if test -x /usr/bin/objformat; then
22572 objformat=`/usr/bin/objformat`
22575 freebsd[123]*) objformat=aout ;;
22576 *) objformat=elf ;;
22579 version_type=freebsd-$objformat
22580 case $version_type in
22582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22591 shlibpath_var=LD_LIBRARY_PATH
22594 shlibpath_overrides_runpath=yes
22596 freebsd3.[01]* | freebsdelf3.[01]*)
22597 shlibpath_overrides_runpath=yes
22598 hardcode_into_libs=yes
22600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22602 shlibpath_overrides_runpath=no
22603 hardcode_into_libs=yes
22605 freebsd*) # from 4.6 on
22606 shlibpath_overrides_runpath=yes
22607 hardcode_into_libs=yes
22616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22617 soname_spec='${libname}${release}${shared_ext}$major'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 hardcode_into_libs=yes
22622 hpux9* | hpux10* | hpux11*)
22623 # Give a soname corresponding to the major version so that dld.sl refuses to
22624 # link against other versions.
22631 hardcode_into_libs=yes
22632 dynamic_linker="$host_os dld.so"
22633 shlibpath_var=LD_LIBRARY_PATH
22634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22636 soname_spec='${libname}${release}${shared_ext}$major'
22637 if test "X$HPUX_IA64_MODE" = X32; then
22638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22640 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22646 hardcode_into_libs=yes
22647 dynamic_linker="$host_os dld.sl"
22648 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651 soname_spec='${libname}${release}${shared_ext}$major'
22652 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22657 dynamic_linker="$host_os dld.sl"
22658 shlibpath_var=SHLIB_PATH
22659 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
22664 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22665 postinstall_cmds='chmod 555 $lib'
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22675 shlibpath_var=LD_LIBRARY_PATH
22676 shlibpath_overrides_runpath=no
22677 hardcode_into_libs=yes
22680 irix5* | irix6* | nonstopux*)
22682 nonstopux*) version_type=nonstopux ;;
22684 if test "$lt_cv_prog_gnu_ld" = yes; then
22692 soname_spec='${libname}${release}${shared_ext}$major'
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22695 irix5* | nonstopux*)
22696 libsuff= shlibsuff=
22699 case $LD in # libtool.m4 will add one of these switches to LD
22700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22701 libsuff= shlibsuff= libmagic=32-bit;;
22702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22703 libsuff=32 shlibsuff=N32 libmagic=N32;;
22704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22706 *) libsuff= shlibsuff= libmagic=never-match;;
22710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22711 shlibpath_overrides_runpath=no
22712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22714 hardcode_into_libs=yes
22717 # No shared lib support for Linux oldld, aout, or coff.
22718 linux*oldld* | linux*aout* | linux*coff*)
22722 # This must be Linux ELF.
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 soname_spec='${libname}${release}${shared_ext}$major'
22729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22730 shlibpath_var=LD_LIBRARY_PATH
22731 shlibpath_overrides_runpath=no
22732 # This implies no fast_install, which is unacceptable.
22733 # Some rework will be needed to allow for fast_install
22734 # before this can be enabled.
22735 hardcode_into_libs=yes
22737 # Append ld.so.conf contents to the search path
22738 if test -f /etc/ld.so.conf; then
22739 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' ' '`
22740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22743 # We used to test for /lib/ld.so.1 and disable shared libraries on
22744 # powerpc, because MkLinux only supported shared libraries with the
22745 # GNU dynamic linker. Since this was broken with cross compilers,
22746 # most powerpc-linux boxes support dynamic linking these days and
22747 # people can always --disable-shared, the test was removed, and we
22748 # assume the GNU/Linux dynamic linker is in use.
22749 dynamic_linker='GNU/Linux ld.so'
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 shlibpath_overrides_runpath=no
22760 hardcode_into_libs=yes
22761 dynamic_linker='GNU ld.so'
22768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22771 dynamic_linker='NetBSD (a.out) ld.so'
22773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22774 soname_spec='${libname}${release}${shared_ext}$major'
22775 dynamic_linker='NetBSD ld.elf_so'
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=yes
22779 hardcode_into_libs=yes
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 shlibpath_overrides_runpath=yes
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=yes
22801 sys_lib_dlsearch_path_spec="/usr/lib"
22803 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22805 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22806 *) need_version=no ;;
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22813 openbsd2.[89] | openbsd2.[89].*)
22814 shlibpath_overrides_runpath=no
22817 shlibpath_overrides_runpath=yes
22821 shlibpath_overrides_runpath=yes
22826 libname_spec='$name'
22829 library_names_spec='$libname${shared_ext} $libname.a'
22830 dynamic_linker='OS/2 ld.exe'
22831 shlibpath_var=LIBPATH
22834 osf3* | osf4* | osf5*)
22838 soname_spec='${libname}${release}${shared_ext}$major'
22839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22840 shlibpath_var=LD_LIBRARY_PATH
22841 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22842 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 shlibpath_overrides_runpath=yes
22853 hardcode_into_libs=yes
22854 # ldd complains unless libraries are executable
22855 postinstall_cmds='chmod +x $lib'
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=yes
22864 if test "$with_gnu_ld" = yes; then
22872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22873 soname_spec='${libname}${release}${shared_ext}$major'
22874 shlibpath_var=LD_LIBRARY_PATH
22875 case $host_vendor in
22877 shlibpath_overrides_runpath=no
22879 export_dynamic_flag_spec='${wl}-Blargedynsym'
22880 runpath_var=LD_RUN_PATH
22888 shlibpath_overrides_runpath=no
22889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22895 if test -d /usr/nec ;then
22897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22898 soname_spec='$libname${shared_ext}.$major'
22899 shlibpath_var=LD_LIBRARY_PATH
22903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22904 version_type=freebsd-elf
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 shlibpath_var=LD_LIBRARY_PATH
22910 hardcode_into_libs=yes
22911 if test "$with_gnu_ld" = yes; then
22912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22913 shlibpath_overrides_runpath=no
22915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22916 shlibpath_overrides_runpath=yes
22919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22923 sys_lib_dlsearch_path_spec='/usr/lib'
22928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22929 soname_spec='${libname}${release}${shared_ext}$major'
22930 shlibpath_var=LD_LIBRARY_PATH
22937 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22938 echo "${ECHO_T}$dynamic_linker" >&6; }
22939 test "$dynamic_linker" = no && can_build_shared=no
22941 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22942 if test "$GCC" = yes; then
22943 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22946 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22947 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22948 hardcode_action_F77=
22949 if test -n "$hardcode_libdir_flag_spec_F77" || \
22950 test -n "$runpath_var_F77" || \
22951 test "X$hardcode_automatic_F77" = "Xyes" ; then
22953 # We can hardcode non-existant directories.
22954 if test "$hardcode_direct_F77" != no &&
22955 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22956 # have to relink, otherwise we might link with an installed library
22957 # when we should be linking with a yet-to-be-installed one
22958 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22959 test "$hardcode_minus_L_F77" != no; then
22960 # Linking always hardcodes the temporary library directory.
22961 hardcode_action_F77=relink
22963 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22964 hardcode_action_F77=immediate
22967 # We cannot hardcode anything, or else we can only hardcode existing
22969 hardcode_action_F77=unsupported
22971 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22972 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22974 if test "$hardcode_action_F77" = relink; then
22975 # Fast installation is not supported
22976 enable_fast_install=no
22977 elif test "$shlibpath_overrides_runpath" = yes ||
22978 test "$enable_shared" = no; then
22979 # Fast installation is not necessary
22980 enable_fast_install=needless
22984 # The else clause should only fire when bootstrapping the
22985 # libtool distribution, otherwise you forgot to ship ltmain.sh
22986 # with your package, and you will get complaints that there are
22987 # no rules to generate ltmain.sh.
22988 if test -f "$ltmain"; then
22989 # See if we are running on zsh, and set the options which allow our commands through
22990 # without removal of \ escapes.
22991 if test -n "${ZSH_VERSION+set}" ; then
22992 setopt NO_GLOB_SUBST
22994 # Now quote all the things that may contain metacharacters while being
22995 # careful not to overquote the AC_SUBSTed values. We take copies of the
22996 # variables and quote the copies for generation of the libtool script.
22997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23001 deplibs_check_method reload_flag reload_cmds need_locks \
23002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23003 lt_cv_sys_global_symbol_to_c_name_address \
23004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23005 old_postinstall_cmds old_postuninstall_cmds \
23009 lt_prog_compiler_wl_F77 \
23010 lt_prog_compiler_pic_F77 \
23011 lt_prog_compiler_static_F77 \
23012 lt_prog_compiler_no_builtin_flag_F77 \
23013 export_dynamic_flag_spec_F77 \
23014 thread_safe_flag_spec_F77 \
23015 whole_archive_flag_spec_F77 \
23016 enable_shared_with_static_runtimes_F77 \
23017 old_archive_cmds_F77 \
23018 old_archive_from_new_cmds_F77 \
23019 predep_objects_F77 \
23020 postdep_objects_F77 \
23023 compiler_lib_search_path_F77 \
23025 archive_expsym_cmds_F77 \
23026 postinstall_cmds_F77 \
23027 postuninstall_cmds_F77 \
23028 old_archive_from_expsyms_cmds_F77 \
23029 allow_undefined_flag_F77 \
23030 no_undefined_flag_F77 \
23031 export_symbols_cmds_F77 \
23032 hardcode_libdir_flag_spec_F77 \
23033 hardcode_libdir_flag_spec_ld_F77 \
23034 hardcode_libdir_separator_F77 \
23035 hardcode_automatic_F77 \
23037 module_expsym_cmds_F77 \
23038 lt_cv_prog_compiler_c_o_F77 \
23039 exclude_expsyms_F77 \
23040 include_expsyms_F77; do
23043 old_archive_cmds_F77 | \
23044 old_archive_from_new_cmds_F77 | \
23045 archive_cmds_F77 | \
23046 archive_expsym_cmds_F77 | \
23047 module_cmds_F77 | \
23048 module_expsym_cmds_F77 | \
23049 old_archive_from_expsyms_cmds_F77 | \
23050 export_symbols_cmds_F77 | \
23051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23052 postinstall_cmds | postuninstall_cmds | \
23053 old_postinstall_cmds | old_postuninstall_cmds | \
23054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23055 # Double-quote double-evaled strings.
23056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23065 *'\$0 --fallback-echo"')
23066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23072 cat <<__EOF__ >> "$cfgfile"
23073 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23077 # Shell to use when invoking shell scripts.
23080 # Whether or not to build shared libraries.
23081 build_libtool_libs=$enable_shared
23083 # Whether or not to build static libraries.
23084 build_old_libs=$enable_static
23086 # Whether or not to add -lc for building shared libraries.
23087 build_libtool_need_lc=$archive_cmds_need_lc_F77
23089 # Whether or not to disallow shared libs when runtime libs are static
23090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23092 # Whether or not to optimize for fast installation.
23093 fast_install=$enable_fast_install
23096 host_alias=$host_alias
23100 # The build system.
23101 build_alias=$build_alias
23105 # An echo program that does not interpret backslashes.
23110 AR_FLAGS=$lt_AR_FLAGS
23115 # LTCC compiler flags.
23116 LTCFLAGS=$lt_LTCFLAGS
23118 # A language-specific compiler.
23119 CC=$lt_compiler_F77
23121 # Is the compiler the GNU C compiler?
23127 # The linker used to build libraries.
23130 # Whether we need hard or soft links.
23133 # A BSD-compatible nm program.
23136 # A symbol stripping program
23139 # Used to examine libraries when file_magic_cmd begins "file"
23140 MAGIC_CMD=$MAGIC_CMD
23142 # Used on cygwin: DLL creation program.
23145 # Used on cygwin: object dumper.
23148 # Used on cygwin: assembler.
23151 # The name of the directory that contains temporary libtool files.
23154 # How to create reloadable object files.
23155 reload_flag=$lt_reload_flag
23156 reload_cmds=$lt_reload_cmds
23158 # How to pass a linker flag through the compiler.
23159 wl=$lt_lt_prog_compiler_wl_F77
23161 # Object file suffix (normally "o").
23162 objext="$ac_objext"
23164 # Old archive suffix (normally "a").
23167 # Shared library suffix (normally ".so").
23168 shrext_cmds='$shrext_cmds'
23170 # Executable file suffix (normally "").
23173 # Additional compiler flags for building library objects.
23174 pic_flag=$lt_lt_prog_compiler_pic_F77
23177 # What is the maximum length of a command?
23178 max_cmd_len=$lt_cv_sys_max_cmd_len
23180 # Does compiler simultaneously support -c and -o options?
23181 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23183 # Must we lock files when doing compilation?
23184 need_locks=$lt_need_locks
23186 # Do we need the lib prefix for modules?
23187 need_lib_prefix=$need_lib_prefix
23189 # Do we need a version for libraries?
23190 need_version=$need_version
23192 # Whether dlopen is supported.
23193 dlopen_support=$enable_dlopen
23195 # Whether dlopen of programs is supported.
23196 dlopen_self=$enable_dlopen_self
23198 # Whether dlopen of statically linked programs is supported.
23199 dlopen_self_static=$enable_dlopen_self_static
23201 # Compiler flag to prevent dynamic linking.
23202 link_static_flag=$lt_lt_prog_compiler_static_F77
23204 # Compiler flag to turn off builtin functions.
23205 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23207 # Compiler flag to allow reflexive dlopens.
23208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23210 # Compiler flag to generate shared objects directly from archives.
23211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23213 # Compiler flag to generate thread-safe objects.
23214 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23216 # Library versioning type.
23217 version_type=$version_type
23219 # Format of library name prefix.
23220 libname_spec=$lt_libname_spec
23222 # List of archive names. First name is the real one, the rest are links.
23223 # The last name is the one that the linker finds with -lNAME.
23224 library_names_spec=$lt_library_names_spec
23226 # The coded name of the library, if different from the real name.
23227 soname_spec=$lt_soname_spec
23229 # Commands used to build and install an old-style archive.
23231 old_archive_cmds=$lt_old_archive_cmds_F77
23232 old_postinstall_cmds=$lt_old_postinstall_cmds
23233 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23235 # Create an old-style archive from a shared archive.
23236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23238 # Create a temporary old-style archive to link instead of a shared archive.
23239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23241 # Commands used to build and install a shared archive.
23242 archive_cmds=$lt_archive_cmds_F77
23243 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23244 postinstall_cmds=$lt_postinstall_cmds
23245 postuninstall_cmds=$lt_postuninstall_cmds
23247 # Commands used to build a loadable module (assumed same as above if empty)
23248 module_cmds=$lt_module_cmds_F77
23249 module_expsym_cmds=$lt_module_expsym_cmds_F77
23251 # Commands to strip libraries.
23252 old_striplib=$lt_old_striplib
23253 striplib=$lt_striplib
23255 # Dependencies to place before the objects being linked to create a
23257 predep_objects=$lt_predep_objects_F77
23259 # Dependencies to place after the objects being linked to create a
23261 postdep_objects=$lt_postdep_objects_F77
23263 # Dependencies to place before the objects being linked to create a
23265 predeps=$lt_predeps_F77
23267 # Dependencies to place after the objects being linked to create a
23269 postdeps=$lt_postdeps_F77
23271 # The library search path used internally by the compiler when linking
23272 # a shared library.
23273 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23275 # Method to check whether dependent libraries are shared objects.
23276 deplibs_check_method=$lt_deplibs_check_method
23278 # Command to use when deplibs_check_method == file_magic.
23279 file_magic_cmd=$lt_file_magic_cmd
23281 # Flag that allows shared libraries with undefined symbols to be built.
23282 allow_undefined_flag=$lt_allow_undefined_flag_F77
23284 # Flag that forces no undefined symbols.
23285 no_undefined_flag=$lt_no_undefined_flag_F77
23287 # Commands used to finish a libtool library installation in a directory.
23288 finish_cmds=$lt_finish_cmds
23290 # Same as above, but a single script fragment to be evaled but not shown.
23291 finish_eval=$lt_finish_eval
23293 # Take the output of nm and produce a listing of raw symbols and C names.
23294 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23296 # Transform the output of nm in a proper C declaration
23297 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23299 # Transform the output of nm in a C name address pair
23300 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23302 # This is the shared library runtime path variable.
23303 runpath_var=$runpath_var
23305 # This is the shared library path variable.
23306 shlibpath_var=$shlibpath_var
23308 # Is shlibpath searched before the hard-coded library search path?
23309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23311 # How to hardcode a shared library path into an executable.
23312 hardcode_action=$hardcode_action_F77
23314 # Whether we should hardcode library paths into libraries.
23315 hardcode_into_libs=$hardcode_into_libs
23317 # Flag to hardcode \$libdir into a binary during linking.
23318 # This must work even if \$libdir does not exist.
23319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23321 # If ld is used when linking, flag to hardcode \$libdir into
23322 # a binary during linking. This must work even if \$libdir does
23324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23326 # Whether we need a single -rpath flag with a separated argument.
23327 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23329 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23330 # resulting binary.
23331 hardcode_direct=$hardcode_direct_F77
23333 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23334 # resulting binary.
23335 hardcode_minus_L=$hardcode_minus_L_F77
23337 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23338 # the resulting binary.
23339 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23341 # Set to yes if building a shared library automatically hardcodes DIR into the library
23342 # and all subsequent libraries and executables linked against it.
23343 hardcode_automatic=$hardcode_automatic_F77
23345 # Variables whose values should be saved in libtool wrapper scripts and
23346 # restored at relink time.
23347 variables_saved_for_relink="$variables_saved_for_relink"
23349 # Whether libtool must link a program against all its dependency libraries.
23350 link_all_deplibs=$link_all_deplibs_F77
23352 # Compile-time system search path for libraries
23353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23355 # Run-time system search path for libraries
23356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23358 # Fix the shell variable \$srcfile for the compiler.
23359 fix_srcfile_path="$fix_srcfile_path_F77"
23361 # Set to yes if exported symbols are required.
23362 always_export_symbols=$always_export_symbols_F77
23364 # The commands to list exported symbols.
23365 export_symbols_cmds=$lt_export_symbols_cmds_F77
23367 # The commands to extract the exported symbol list from a shared archive.
23368 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23370 # Symbols that should not be listed in the preloaded symbols.
23371 exclude_expsyms=$lt_exclude_expsyms_F77
23373 # Symbols that must always be exported.
23374 include_expsyms=$lt_include_expsyms_F77
23376 # ### END LIBTOOL TAG CONFIG: $tagname
23382 # If there is no Makefile yet, we rely on a make rule to execute
23383 # `config.status --recheck' to rerun these tests and create the
23384 # libtool script then.
23385 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23386 if test -f "$ltmain_in"; then
23387 test -f Makefile && make "$ltmain"
23393 ac_cpp='$CPP $CPPFLAGS'
23394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23406 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23408 ac_cpp='$CPP $CPPFLAGS'
23409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23414 # Source file extension for Java test sources.
23417 # Object file extension for compiled Java test sources.
23421 # Code to be used in simple compile tests
23422 lt_simple_compile_test_code="class foo {}\n"
23424 # Code to be used in simple link tests
23425 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23427 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23429 # If no C compiler was specified, use CC.
23432 # If no C compiler flags were specified, use CFLAGS.
23433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23435 # Allow CC to be a program name with arguments.
23439 # save warnings/boilerplate of simple test code
23440 ac_outfile=conftest.$ac_objext
23441 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23443 _lt_compiler_boilerplate=`cat conftest.err`
23446 ac_outfile=conftest.$ac_objext
23447 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23449 _lt_linker_boilerplate=`cat conftest.err`
23453 # Allow CC to be a program name with arguments.
23458 for cc_temp in $compiler""; do
23460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23466 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23469 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23470 archive_cmds_need_lc_GCJ=no
23472 old_archive_cmds_GCJ=$old_archive_cmds
23475 lt_prog_compiler_no_builtin_flag_GCJ=
23477 if test "$GCC" = yes; then
23478 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23481 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23482 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23483 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23484 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 lt_cv_prog_compiler_rtti_exceptions=no
23487 ac_outfile=conftest.$ac_objext
23488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23489 lt_compiler_flag="-fno-rtti -fno-exceptions"
23490 # Insert the option either (1) after the last *FLAGS variable, or
23491 # (2) before a word containing "conftest.", or (3) at the end.
23492 # Note that $ac_compile itself does not contain backslashes and begins
23493 # with a dollar sign (not a hyphen), so the echo should work correctly.
23494 # The option is referenced via a variable to avoid confusing sed.
23495 lt_compile=`echo "$ac_compile" | $SED \
23496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23498 -e 's:$: $lt_compiler_flag:'`
23499 (eval echo "\"\$as_me:23499: $lt_compile\"" >&5)
23500 (eval "$lt_compile" 2>conftest.err)
23502 cat conftest.err >&5
23503 echo "$as_me:23503: \$? = $ac_status" >&5
23504 if (exit $ac_status) && test -s "$ac_outfile"; then
23505 # The compiler can only warn and ignore the option if not recognized
23506 # So say no if there are warnings other than the usual output.
23507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23510 lt_cv_prog_compiler_rtti_exceptions=yes
23516 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23517 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23519 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23520 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23527 lt_prog_compiler_wl_GCJ=
23528 lt_prog_compiler_pic_GCJ=
23529 lt_prog_compiler_static_GCJ=
23531 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23532 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23534 if test "$GCC" = yes; then
23535 lt_prog_compiler_wl_GCJ='-Wl,'
23536 lt_prog_compiler_static_GCJ='-static'
23540 # All AIX code is PIC.
23541 if test "$host_cpu" = ia64; then
23542 # AIX 5 now supports IA64 processor
23543 lt_prog_compiler_static_GCJ='-Bstatic'
23548 # FIXME: we need at least 68020 code to build shared libraries, but
23549 # adding the `-m68020' flag to GCC prevents building anything better,
23551 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23555 # PIC is the default for these OSes.
23558 mingw* | pw32* | os2*)
23559 # This hack is so that the source file can tell whether it is being
23560 # built for inclusion in a dll (and should export symbols for example).
23561 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23564 darwin* | rhapsody*)
23565 # PIC is the default on this platform
23566 # Common symbols not allowed in MH_DYLIB files
23567 lt_prog_compiler_pic_GCJ='-fno-common'
23571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23572 # Instead, we relocate shared libraries at runtime.
23576 # Just because we use GCC doesn't mean we suddenly get shared libraries
23577 # on systems that don't support them.
23578 lt_prog_compiler_can_build_shared_GCJ=no
23583 if test -d /usr/nec; then
23584 lt_prog_compiler_pic_GCJ=-Kconform_pic
23589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23590 # not for PA HP-UX.
23596 lt_prog_compiler_pic_GCJ='-fPIC'
23602 lt_prog_compiler_pic_GCJ='-fPIC'
23606 # PORTME Check for flag to pass linker flags through the system compiler.
23609 lt_prog_compiler_wl_GCJ='-Wl,'
23610 if test "$host_cpu" = ia64; then
23611 # AIX 5 now supports IA64 processor
23612 lt_prog_compiler_static_GCJ='-Bstatic'
23614 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23618 # PIC is the default on this platform
23619 # Common symbols not allowed in MH_DYLIB files
23620 case $cc_basename in
23622 lt_prog_compiler_pic_GCJ='-qnocommon'
23623 lt_prog_compiler_wl_GCJ='-Wl,'
23628 mingw* | pw32* | os2*)
23629 # This hack is so that the source file can tell whether it is being
23630 # built for inclusion in a dll (and should export symbols for example).
23631 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23634 hpux9* | hpux10* | hpux11*)
23635 lt_prog_compiler_wl_GCJ='-Wl,'
23636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23637 # not for PA HP-UX.
23643 lt_prog_compiler_pic_GCJ='+Z'
23646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23647 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23650 irix5* | irix6* | nonstopux*)
23651 lt_prog_compiler_wl_GCJ='-Wl,'
23652 # PIC (with -KPIC) is the default.
23653 lt_prog_compiler_static_GCJ='-non_shared'
23657 lt_prog_compiler_pic_GCJ='-KPIC'
23658 lt_prog_compiler_static_GCJ='-Bstatic'
23662 case $cc_basename in
23664 lt_prog_compiler_wl_GCJ='-Wl,'
23665 lt_prog_compiler_pic_GCJ='-KPIC'
23666 lt_prog_compiler_static_GCJ='-static'
23668 pgcc* | pgf77* | pgf90* | pgf95*)
23669 # Portland Group compilers (*not* the Pentium gcc compiler,
23670 # which looks to be a dead project)
23671 lt_prog_compiler_wl_GCJ='-Wl,'
23672 lt_prog_compiler_pic_GCJ='-fpic'
23673 lt_prog_compiler_static_GCJ='-Bstatic'
23676 lt_prog_compiler_wl_GCJ='-Wl,'
23677 # All Alpha code is PIC.
23678 lt_prog_compiler_static_GCJ='-non_shared'
23683 osf3* | osf4* | osf5*)
23684 lt_prog_compiler_wl_GCJ='-Wl,'
23685 # All OSF/1 code is PIC.
23686 lt_prog_compiler_static_GCJ='-non_shared'
23690 lt_prog_compiler_pic_GCJ='-KPIC'
23691 lt_prog_compiler_static_GCJ='-Bstatic'
23692 case $cc_basename in
23693 f77* | f90* | f95*)
23694 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23696 lt_prog_compiler_wl_GCJ='-Wl,';;
23701 lt_prog_compiler_wl_GCJ='-Qoption ld '
23702 lt_prog_compiler_pic_GCJ='-PIC'
23703 lt_prog_compiler_static_GCJ='-Bstatic'
23706 sysv4 | sysv4.2uw2* | sysv4.3*)
23707 lt_prog_compiler_wl_GCJ='-Wl,'
23708 lt_prog_compiler_pic_GCJ='-KPIC'
23709 lt_prog_compiler_static_GCJ='-Bstatic'
23713 if test -d /usr/nec ;then
23714 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23715 lt_prog_compiler_static_GCJ='-Bstatic'
23719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23720 lt_prog_compiler_wl_GCJ='-Wl,'
23721 lt_prog_compiler_pic_GCJ='-KPIC'
23722 lt_prog_compiler_static_GCJ='-Bstatic'
23726 lt_prog_compiler_wl_GCJ='-Wl,'
23727 lt_prog_compiler_can_build_shared_GCJ=no
23731 lt_prog_compiler_pic_GCJ='-pic'
23732 lt_prog_compiler_static_GCJ='-Bstatic'
23736 lt_prog_compiler_can_build_shared_GCJ=no
23741 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23742 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23745 # Check to make sure the PIC flag actually works.
23747 if test -n "$lt_prog_compiler_pic_GCJ"; then
23749 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23750 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23751 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 lt_prog_compiler_pic_works_GCJ=no
23755 ac_outfile=conftest.$ac_objext
23756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23757 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23758 # Insert the option either (1) after the last *FLAGS variable, or
23759 # (2) before a word containing "conftest.", or (3) at the end.
23760 # Note that $ac_compile itself does not contain backslashes and begins
23761 # with a dollar sign (not a hyphen), so the echo should work correctly.
23762 # The option is referenced via a variable to avoid confusing sed.
23763 lt_compile=`echo "$ac_compile" | $SED \
23764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23766 -e 's:$: $lt_compiler_flag:'`
23767 (eval echo "\"\$as_me:23767: $lt_compile\"" >&5)
23768 (eval "$lt_compile" 2>conftest.err)
23770 cat conftest.err >&5
23771 echo "$as_me:23771: \$? = $ac_status" >&5
23772 if (exit $ac_status) && test -s "$ac_outfile"; then
23773 # The compiler can only warn and ignore the option if not recognized
23774 # So say no if there are warnings other than the usual output.
23775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23778 lt_prog_compiler_pic_works_GCJ=yes
23784 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23785 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23787 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23788 case $lt_prog_compiler_pic_GCJ in
23790 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23793 lt_prog_compiler_pic_GCJ=
23794 lt_prog_compiler_can_build_shared_GCJ=no
23799 # For platforms which do not support PIC, -DPIC is meaningless:
23801 lt_prog_compiler_pic_GCJ=
23804 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23809 # Check to make sure the static flag actually works.
23811 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23812 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23813 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23814 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23817 lt_prog_compiler_static_works_GCJ=no
23818 save_LDFLAGS="$LDFLAGS"
23819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23820 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23822 # The linker can only warn and ignore the option if not recognized
23823 # So say no if there are warnings
23824 if test -s conftest.err; then
23825 # Append any errors to the config.log.
23826 cat conftest.err 1>&5
23827 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23829 if diff conftest.exp conftest.er2 >/dev/null; then
23830 lt_prog_compiler_static_works_GCJ=yes
23833 lt_prog_compiler_static_works_GCJ=yes
23837 LDFLAGS="$save_LDFLAGS"
23840 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23841 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23843 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23846 lt_prog_compiler_static_GCJ=
23850 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23851 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23852 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23855 lt_cv_prog_compiler_c_o_GCJ=no
23856 $rm -r conftest 2>/dev/null
23860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23862 lt_compiler_flag="-o out/conftest2.$ac_objext"
23863 # Insert the option either (1) after the last *FLAGS variable, or
23864 # (2) before a word containing "conftest.", or (3) at the end.
23865 # Note that $ac_compile itself does not contain backslashes and begins
23866 # with a dollar sign (not a hyphen), so the echo should work correctly.
23867 lt_compile=`echo "$ac_compile" | $SED \
23868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23870 -e 's:$: $lt_compiler_flag:'`
23871 (eval echo "\"\$as_me:23871: $lt_compile\"" >&5)
23872 (eval "$lt_compile" 2>out/conftest.err)
23874 cat out/conftest.err >&5
23875 echo "$as_me:23875: \$? = $ac_status" >&5
23876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23878 # The compiler can only warn and ignore the option if not recognized
23879 # So say no if there are warnings
23880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23883 lt_cv_prog_compiler_c_o_GCJ=yes
23888 # SGI C++ compiler will create directory out/ii_files/ for
23889 # template instantiation
23890 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23891 $rm out/* && rmdir out
23897 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23898 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23901 hard_links="nottested"
23902 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23903 # do not overwrite the value of need_locks provided by the user
23904 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23905 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23910 ln conftest.a conftest.b 2>&5 || hard_links=no
23911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23912 { echo "$as_me:$LINENO: result: $hard_links" >&5
23913 echo "${ECHO_T}$hard_links" >&6; }
23914 if test "$hard_links" = no; then
23915 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23916 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23923 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23927 allow_undefined_flag_GCJ=
23928 enable_shared_with_static_runtimes_GCJ=no
23930 archive_expsym_cmds_GCJ=
23931 old_archive_From_new_cmds_GCJ=
23932 old_archive_from_expsyms_cmds_GCJ=
23933 export_dynamic_flag_spec_GCJ=
23934 whole_archive_flag_spec_GCJ=
23935 thread_safe_flag_spec_GCJ=
23936 hardcode_libdir_flag_spec_GCJ=
23937 hardcode_libdir_flag_spec_ld_GCJ=
23938 hardcode_libdir_separator_GCJ=
23939 hardcode_direct_GCJ=no
23940 hardcode_minus_L_GCJ=no
23941 hardcode_shlibpath_var_GCJ=unsupported
23942 link_all_deplibs_GCJ=unknown
23943 hardcode_automatic_GCJ=no
23945 module_expsym_cmds_GCJ=
23946 always_export_symbols_GCJ=no
23947 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23948 # include_expsyms should be a list of space-separated symbols to be *always*
23949 # included in the symbol list
23950 include_expsyms_GCJ=
23951 # exclude_expsyms can be an extended regexp of symbols to exclude
23952 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23953 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23954 # as well as any symbol that contains `d'.
23955 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23957 # platforms (ab)use it in PIC code, but their linkers get confused if
23958 # the symbol is explicitly referenced. Since portable code cannot
23959 # rely on this symbol name, it's probably fine to never include it in
23960 # preloaded symbol tables.
23961 extract_expsyms_cmds=
23962 # Just being paranoid about ensuring that cc_basename is set.
23963 for cc_temp in $compiler""; do
23965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23974 cygwin* | mingw* | pw32*)
23975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23976 # When not using gcc, we currently assume that we are using
23977 # Microsoft Visual C++.
23978 if test "$GCC" != yes; then
23983 # we just hope/assume this is gcc and not c89 (= MSVC++)
23992 if test "$with_gnu_ld" = yes; then
23993 # If archive_cmds runs LD, not CC, wlarc should be empty
23996 # Set some defaults for GNU ld with shared library support. These
23997 # are reset later if shared libraries are not supported. Putting them
23998 # here allows them to be overridden if necessary.
23999 runpath_var=LD_RUN_PATH
24000 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24001 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24002 # ancient GNU ld didn't support --whole-archive et. al.
24003 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24004 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24006 whole_archive_flag_spec_GCJ=
24008 supports_anon_versioning=no
24009 case `$LD -v 2>/dev/null` in
24010 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24013 *\ 2.11.*) ;; # other 2.11 versions
24014 *) supports_anon_versioning=yes ;;
24017 # See if GNU ld supports shared libraries.
24019 aix3* | aix4* | aix5*)
24020 # On AIX/PPC, the GNU linker is very broken
24021 if test "$host_cpu" != ia64; then
24025 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24026 *** to be unable to reliably create shared libraries on AIX.
24027 *** Therefore, libtool is disabling shared libraries support. If you
24028 *** really care for shared libraries, you may want to modify your PATH
24029 *** so that a non-GNU linker is found, and then restart.
24036 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)'
24037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24038 hardcode_minus_L_GCJ=yes
24040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24041 # that the semantics of dynamic libraries on AmigaOS, at least up
24042 # to version 4, is to share data among multiple programs linked
24043 # with the same dynamic library. Since this doesn't match the
24044 # behavior of shared libraries on other platforms, we can't use
24050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24051 allow_undefined_flag_GCJ=unsupported
24052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24053 # support --undefined. This deserves some investigation. FIXME
24054 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24060 cygwin* | mingw* | pw32*)
24061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24062 # as there is no search path for DLLs.
24063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24064 allow_undefined_flag_GCJ=unsupported
24065 always_export_symbols_GCJ=no
24066 enable_shared_with_static_runtimes_GCJ=yes
24067 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24070 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24071 # If the export-symbols file already is a .def file (1st line
24072 # is EXPORTS), use it as is; otherwise, prepend...
24073 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24074 cp $export_symbols $output_objdir/$soname.def;
24076 echo EXPORTS > $output_objdir/$soname.def;
24077 cat $export_symbols >> $output_objdir/$soname.def;
24079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24086 hardcode_direct_GCJ=no
24087 hardcode_shlibpath_var_GCJ=no
24088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24089 export_dynamic_flag_spec_GCJ='${wl}-E'
24090 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24091 # Instead, shared libraries are loaded at an image base (0x10000000 by
24092 # default) and relocated if they conflict, which is a slow very memory
24093 # consuming and fragmenting process. To avoid this, we pick a random,
24094 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24095 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24096 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'
24097 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'
24101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24103 case $cc_basename,$host_cpu in
24104 pgcc*) # Portland Group C compiler
24105 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'
24106 tmp_addflag=' $pic_flag'
24108 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24109 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'
24110 tmp_addflag=' $pic_flag -Mnomain' ;;
24111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24112 tmp_addflag=' -i_dynamic' ;;
24113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24114 tmp_addflag=' -i_dynamic -nofor_main' ;;
24115 ifc* | ifort*) # Intel Fortran compiler
24116 tmp_addflag=' -nofor_main' ;;
24118 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24120 if test $supports_anon_versioning = yes; then
24121 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24123 $echo "local: *; };" >> $output_objdir/$libname.ver~
24124 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24133 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24142 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24146 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24147 *** create shared libraries on Solaris systems. Therefore, libtool
24148 *** is disabling shared libraries support. We urge you to upgrade GNU
24149 *** binutils to release 2.9.1 or newer. Another option is to modify
24150 *** your PATH or compiler configuration so that the native linker is
24151 *** used, and then restart.
24154 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24155 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24156 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24163 case `$LD -v 2>&1` in
24164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24168 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24169 *** reliably create shared libraries on SCO systems. Therefore, libtool
24170 *** is disabling shared libraries support. We urge you to upgrade GNU
24171 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24172 *** your PATH or compiler configuration so that the native linker is
24173 *** used, and then restart.
24178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24179 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24190 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24192 hardcode_direct_GCJ=yes
24193 hardcode_shlibpath_var_GCJ=no
24197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24206 if test "$ld_shlibs_GCJ" = no; then
24208 hardcode_libdir_flag_spec_GCJ=
24209 export_dynamic_flag_spec_GCJ=
24210 whole_archive_flag_spec_GCJ=
24213 # PORTME fill in a description of your system's linker (not GNU ld)
24216 allow_undefined_flag_GCJ=unsupported
24217 always_export_symbols_GCJ=yes
24218 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'
24219 # Note: this linker hardcodes the directories in LIBPATH if there
24220 # are no directories specified by -L.
24221 hardcode_minus_L_GCJ=yes
24222 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24223 # Neither direct hardcoding nor static linking is supported with a
24225 hardcode_direct_GCJ=unsupported
24230 if test "$host_cpu" = ia64; then
24231 # On IA64, the linker does run time linking by default, so we don't
24232 # have to do anything special.
24233 aix_use_runtimelinking=no
24234 exp_sym_flag='-Bexport'
24237 # If we're using GNU nm, then we don't want the "-C" option.
24238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24240 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'
24242 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'
24244 aix_use_runtimelinking=no
24246 # Test if we are trying to use run time linking or normal
24247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24248 # need to do runtime linking.
24249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24250 for ld_flag in $LDFLAGS; do
24251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24252 aix_use_runtimelinking=yes
24259 exp_sym_flag='-bexport'
24260 no_entry_flag='-bnoentry'
24263 # When large executables or shared objects are built, AIX ld can
24264 # have problems creating the table of contents. If linking a library
24265 # or program results in "error TOC overflow" add -mminimal-toc to
24266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24269 archive_cmds_GCJ=''
24270 hardcode_direct_GCJ=yes
24271 hardcode_libdir_separator_GCJ=':'
24272 link_all_deplibs_GCJ=yes
24274 if test "$GCC" = yes; then
24275 case $host_os in aix4.[012]|aix4.[012].*)
24276 # We only want to do this on AIX 4.2 and lower, the check
24277 # below for broken collect2 doesn't work under 4.3+
24278 collect2name=`${CC} -print-prog-name=collect2`
24279 if test -f "$collect2name" && \
24280 strings "$collect2name" | grep resolve_lib_name >/dev/null
24282 # We have reworked collect2
24283 hardcode_direct_GCJ=yes
24285 # We have old collect2
24286 hardcode_direct_GCJ=unsupported
24287 # It fails to find uninstalled libraries when the uninstalled
24288 # path is not listed in the libpath. Setting hardcode_minus_L
24289 # to unsupported forces relinking
24290 hardcode_minus_L_GCJ=yes
24291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24292 hardcode_libdir_separator_GCJ=
24296 shared_flag='-shared'
24297 if test "$aix_use_runtimelinking" = yes; then
24298 shared_flag="$shared_flag "'${wl}-G'
24302 if test "$host_cpu" = ia64; then
24303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24304 # chokes on -Wl,-G. The following line is correct:
24307 if test "$aix_use_runtimelinking" = yes; then
24308 shared_flag='${wl}-G'
24310 shared_flag='${wl}-bM:SRE'
24315 # It seems that -bexpall does not export symbols beginning with
24316 # underscore (_), so it is better to generate a list of symbols to export.
24317 always_export_symbols_GCJ=yes
24318 if test "$aix_use_runtimelinking" = yes; then
24319 # Warning - without using the other runtime loading flags (-brtl),
24320 # -berok will link without error, but may produce a broken library.
24321 allow_undefined_flag_GCJ='-berok'
24322 # Determine the default libpath from the value encoded in an empty executable.
24323 cat >conftest.$ac_ext <<_ACEOF
24326 cat confdefs.h >>conftest.$ac_ext
24327 cat >>conftest.$ac_ext <<_ACEOF
24328 /* end confdefs.h. */
24338 rm -f conftest.$ac_objext conftest$ac_exeext
24339 if { (ac_try="$ac_link"
24340 case "(($ac_try" in
24341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342 *) ac_try_echo=$ac_try;;
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345 (eval "$ac_link") 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
24352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24353 { (case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358 (eval "$ac_try") 2>&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; } &&
24362 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24375 # Check for a 64-bit object if we didn't find anything.
24376 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; }
24379 echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24385 rm -f core conftest.err conftest.$ac_objext \
24386 conftest$ac_exeext conftest.$ac_ext
24387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24389 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24390 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"
24392 if test "$host_cpu" = ia64; then
24393 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24394 allow_undefined_flag_GCJ="-z nodefs"
24395 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"
24397 # Determine the default libpath from the value encoded in an empty executable.
24398 cat >conftest.$ac_ext <<_ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24413 rm -f conftest.$ac_objext conftest$ac_exeext
24414 if { (ac_try="$ac_link"
24415 case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_link") 2>conftest.er1
24422 grep -v '^ *+' conftest.er1 >conftest.err
24424 cat conftest.err >&5
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } &&
24427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24428 { (case "(($ac_try" in
24429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430 *) ac_try_echo=$ac_try;;
24432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24433 (eval "$ac_try") 2>&5
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; } &&
24437 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24450 # Check for a 64-bit object if we didn't find anything.
24451 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; }
24454 echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24460 rm -f core conftest.err conftest.$ac_objext \
24461 conftest$ac_exeext conftest.$ac_ext
24462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24464 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24465 # Warning - without using the other run time loading flags,
24466 # -berok will link without error, but may produce a broken library.
24467 no_undefined_flag_GCJ=' ${wl}-bernotok'
24468 allow_undefined_flag_GCJ=' ${wl}-berok'
24469 # Exported symbols can be pulled into shared objects from archives
24470 whole_archive_flag_spec_GCJ='$convenience'
24471 archive_cmds_need_lc_GCJ=yes
24472 # This is similar to how AIX traditionally builds its shared libraries.
24473 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'
24479 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)'
24480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24481 hardcode_minus_L_GCJ=yes
24482 # see comment about different semantics on the GNU ld section
24487 export_dynamic_flag_spec_GCJ=-rdynamic
24490 cygwin* | mingw* | pw32*)
24491 # When not using gcc, we currently assume that we are using
24492 # Microsoft Visual C++.
24493 # hardcode_libdir_flag_spec is actually meaningless, as there is
24494 # no search path for DLLs.
24495 hardcode_libdir_flag_spec_GCJ=' '
24496 allow_undefined_flag_GCJ=unsupported
24497 # Tell ltmain to make .lib files, not .a files.
24499 # Tell ltmain to make .dll files, not .so files.
24501 # FIXME: Setting linknames here is a bad hack.
24502 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24503 # The linker will automatically build a .lib file if we build a DLL.
24504 old_archive_From_new_cmds_GCJ='true'
24505 # FIXME: Should let the user specify the lib program.
24506 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24507 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24508 enable_shared_with_static_runtimes_GCJ=yes
24511 darwin* | rhapsody*)
24513 rhapsody* | darwin1.[012])
24514 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24517 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24518 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24520 case ${MACOSX_DEPLOYMENT_TARGET} in
24522 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24525 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24531 archive_cmds_need_lc_GCJ=no
24532 hardcode_direct_GCJ=no
24533 hardcode_automatic_GCJ=yes
24534 hardcode_shlibpath_var_GCJ=unsupported
24535 whole_archive_flag_spec_GCJ=''
24536 link_all_deplibs_GCJ=yes
24537 if test "$GCC" = yes ; then
24538 output_verbose_link_cmd='echo'
24539 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24540 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24542 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}'
24543 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}'
24545 case $cc_basename in
24547 output_verbose_link_cmd='echo'
24548 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24549 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24550 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24551 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}'
24552 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}'
24562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24564 hardcode_shlibpath_var_GCJ=no
24571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24572 # support. Future versions do this automatically, but an explicit c++rt0.o
24573 # does not break anything, and helps significantly (at the cost of a little
24576 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24578 hardcode_direct_GCJ=yes
24579 hardcode_shlibpath_var_GCJ=no
24582 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24584 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24585 hardcode_direct_GCJ=yes
24586 hardcode_minus_L_GCJ=yes
24587 hardcode_shlibpath_var_GCJ=no
24590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24591 freebsd* | kfreebsd*-gnu | dragonfly*)
24592 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24594 hardcode_direct_GCJ=yes
24595 hardcode_shlibpath_var_GCJ=no
24599 if test "$GCC" = yes; then
24600 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'
24602 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'
24604 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24605 hardcode_libdir_separator_GCJ=:
24606 hardcode_direct_GCJ=yes
24608 # hardcode_minus_L: Not really in the search PATH,
24609 # but as the default location of the library.
24610 hardcode_minus_L_GCJ=yes
24611 export_dynamic_flag_spec_GCJ='${wl}-E'
24615 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24616 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24618 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24620 if test "$with_gnu_ld" = no; then
24621 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24622 hardcode_libdir_separator_GCJ=:
24624 hardcode_direct_GCJ=yes
24625 export_dynamic_flag_spec_GCJ='${wl}-E'
24627 # hardcode_minus_L: Not really in the search PATH,
24628 # but as the default location of the library.
24629 hardcode_minus_L_GCJ=yes
24634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24637 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24640 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24643 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24649 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24652 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24655 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24659 if test "$with_gnu_ld" = no; then
24660 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24661 hardcode_libdir_separator_GCJ=:
24665 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24666 hardcode_direct_GCJ=no
24667 hardcode_shlibpath_var_GCJ=no
24670 hardcode_direct_GCJ=yes
24671 export_dynamic_flag_spec_GCJ='${wl}-E'
24673 # hardcode_minus_L: Not really in the search PATH,
24674 # but as the default location of the library.
24675 hardcode_minus_L_GCJ=yes
24681 irix5* | irix6* | nonstopux*)
24682 if test "$GCC" = yes; then
24683 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'
24685 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'
24686 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24689 hardcode_libdir_separator_GCJ=:
24690 link_all_deplibs_GCJ=yes
24694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24695 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24697 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24700 hardcode_direct_GCJ=yes
24701 hardcode_shlibpath_var_GCJ=no
24705 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24706 hardcode_direct_GCJ=yes
24707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24708 hardcode_libdir_separator_GCJ=:
24709 hardcode_shlibpath_var_GCJ=no
24713 hardcode_direct_GCJ=yes
24714 hardcode_shlibpath_var_GCJ=no
24715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24716 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24717 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24719 export_dynamic_flag_spec_GCJ='${wl}-E'
24722 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24723 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24724 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24727 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736 hardcode_minus_L_GCJ=yes
24737 allow_undefined_flag_GCJ=unsupported
24738 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'
24739 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24743 if test "$GCC" = yes; then
24744 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24745 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'
24747 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24748 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'
24750 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24751 hardcode_libdir_separator_GCJ=:
24754 osf4* | osf5*) # as osf3* with the addition of -msym flag
24755 if test "$GCC" = yes; then
24756 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24757 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'
24758 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24760 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24761 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'
24762 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~
24763 $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'
24765 # Both c and cxx compiler support -rpath directly
24766 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24768 hardcode_libdir_separator_GCJ=:
24772 no_undefined_flag_GCJ=' -z text'
24773 if test "$GCC" = yes; then
24775 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24776 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24777 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24780 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24781 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24782 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24785 hardcode_shlibpath_var_GCJ=no
24787 solaris2.[0-5] | solaris2.[0-5].*) ;;
24789 # The compiler driver will combine linker options so we
24790 # cannot just pass the convience library names through
24791 # without $wl, iff we do not link with $LD.
24792 # Luckily, gcc supports the same syntax we need for Sun Studio.
24793 # Supported since Solaris 2.6 (maybe 2.5.1?)
24796 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24798 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' ;;
24801 link_all_deplibs_GCJ=yes
24805 if test "x$host_vendor" = xsequent; then
24806 # Use $CC to link under sequent, because it throws in some extra .o
24807 # files that make .init and .fini sections work.
24808 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24810 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24813 hardcode_direct_GCJ=yes
24814 hardcode_minus_L_GCJ=yes
24815 hardcode_shlibpath_var_GCJ=no
24819 case $host_vendor in
24821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24822 hardcode_direct_GCJ=yes # is this really true???
24825 ## LD is ld it makes a PLAMLIB
24826 ## CC just makes a GrossModule.
24827 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24828 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24829 hardcode_direct_GCJ=no
24832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24833 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24836 runpath_var='LD_RUN_PATH'
24837 hardcode_shlibpath_var_GCJ=no
24841 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24842 hardcode_shlibpath_var_GCJ=no
24843 export_dynamic_flag_spec_GCJ='-Bexport'
24847 if test -d /usr/nec; then
24848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24849 hardcode_shlibpath_var_GCJ=no
24850 runpath_var=LD_RUN_PATH
24851 hardcode_runpath_var=yes
24856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24857 no_undefined_flag_GCJ='${wl}-z,text'
24858 archive_cmds_need_lc_GCJ=no
24859 hardcode_shlibpath_var_GCJ=no
24860 runpath_var='LD_RUN_PATH'
24862 if test "$GCC" = yes; then
24863 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24866 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24867 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24871 sysv5* | sco3.2v5* | sco5v6*)
24872 # Note: We can NOT use -z defs as we might desire, because we do not
24873 # link with -lc, and that would cause any symbols used from libc to
24874 # always be unresolved, which means just about no library would
24875 # ever link correctly. If we're not using GNU ld we use -z text
24876 # though, which does catch some bad symbols but isn't as heavy-handed
24878 no_undefined_flag_GCJ='${wl}-z,text'
24879 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24880 archive_cmds_need_lc_GCJ=no
24881 hardcode_shlibpath_var_GCJ=no
24882 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24883 hardcode_libdir_separator_GCJ=':'
24884 link_all_deplibs_GCJ=yes
24885 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24886 runpath_var='LD_RUN_PATH'
24888 if test "$GCC" = yes; then
24889 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24892 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24893 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24900 hardcode_shlibpath_var_GCJ=no
24909 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24910 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24911 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24914 # Do we need to explicitly link libc?
24916 case "x$archive_cmds_need_lc_GCJ" in
24918 # Assume -lc should be added
24919 archive_cmds_need_lc_GCJ=yes
24921 if test "$enable_shared" = yes && test "$GCC" = yes; then
24922 case $archive_cmds_GCJ in
24924 # FIXME: we may have to deal with multi-command sequences.
24927 # Test whether the compiler implicitly links with -lc since on some
24928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24929 # to ld, don't add -lc before -lgcc.
24930 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24936 (eval $ac_compile) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } 2>conftest.err; then
24942 libobjs=conftest.$ac_objext
24944 wl=$lt_prog_compiler_wl_GCJ
24945 pic_flag=$lt_prog_compiler_pic_GCJ
24951 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24952 allow_undefined_flag_GCJ=
24953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24954 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }
24959 archive_cmds_need_lc_GCJ=no
24961 archive_cmds_need_lc_GCJ=yes
24963 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24965 cat conftest.err 1>&5
24968 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24969 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24976 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24977 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24978 library_names_spec=
24979 libname_spec='lib$name'
24983 postuninstall_cmds=
24987 shlibpath_overrides_runpath=unknown
24989 dynamic_linker="$host_os ld.so"
24990 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24991 if test "$GCC" = yes; then
24992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24993 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24994 # if the path contains ";" then we assume it to be the separator
24995 # otherwise default to the standard path separator (i.e. ":") - it is
24996 # assumed that no part of a normal pathname contains ";" but that should
24997 # okay in the real world where ";" in dirpaths is itself problematic.
24998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25005 need_lib_prefix=unknown
25006 hardcode_into_libs=no
25008 # when you set need_version to no, make sure it does not cause -set_version
25009 # flags to be left without arguments
25010 need_version=unknown
25015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25016 shlibpath_var=LIBPATH
25018 # AIX 3 has no versioning support, so we append a major version to the name.
25019 soname_spec='${libname}${release}${shared_ext}$major'
25026 hardcode_into_libs=yes
25027 if test "$host_cpu" = ia64; then
25028 # AIX 5 supports IA64
25029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25030 shlibpath_var=LD_LIBRARY_PATH
25032 # With GCC up to 2.95.x, collect2 would create an import file
25033 # for dependence libraries. The import file would start with
25034 # the line `#! .'. This would cause the generated library to
25035 # depend on `.', always an invalid library. This was fixed in
25036 # development snapshots of GCC prior to 3.0.
25038 aix4 | aix4.[01] | aix4.[01].*)
25039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25041 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25044 can_build_shared=no
25048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25049 # soname into executable. Probably we can add versioning support to
25050 # collect2, so additional links can be useful in future.
25051 if test "$aix_use_runtimelinking" = yes; then
25052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25053 # instead of lib<name>.a to let people know that these are not
25054 # typical AIX shared libraries.
25055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25057 # We preserve .a as extension for shared libraries through AIX4.2
25058 # and later when we are not doing run time linking.
25059 library_names_spec='${libname}${release}.a $libname.a'
25060 soname_spec='${libname}${release}${shared_ext}$major'
25062 shlibpath_var=LIBPATH
25067 library_names_spec='$libname.ixlibrary $libname.a'
25068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25069 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'
25073 library_names_spec='${libname}${shared_ext}'
25074 dynamic_linker="$host_os ld.so"
25075 shlibpath_var=LIBRARY_PATH
25081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25082 soname_spec='${libname}${release}${shared_ext}$major'
25083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25084 shlibpath_var=LD_LIBRARY_PATH
25085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25087 # the default ld.so.conf also contains /usr/contrib/lib and
25088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25089 # libtool to hard-code these into programs
25092 cygwin* | mingw* | pw32*)
25093 version_type=windows
25098 case $GCC,$host_os in
25099 yes,cygwin* | yes,mingw* | yes,pw32*)
25100 library_names_spec='$libname.dll.a'
25101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25102 postinstall_cmds='base_file=`basename \${file}`~
25103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25104 dldir=$destdir/`dirname \$dlpath`~
25105 test -d \$dldir || mkdir -p \$dldir~
25106 $install_prog $dir/$dlname \$dldir/$dlname~
25107 chmod a+x \$dldir/$dlname'
25108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25109 dlpath=$dir/\$dldll~
25111 shlibpath_overrides_runpath=yes
25115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25117 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25120 # MinGW DLLs use traditional 'lib' prefix
25121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25123 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25124 # It is most probably a Windows format PATH printed by
25125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25126 # path with ; separators, and with drive letters. We can handle the
25127 # drive letters (cygwin fileutils understands them), so leave them,
25128 # especially as we might pass files found there to a mingw objdump,
25129 # which wouldn't understand a cygwinified path. Ahh.
25130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25136 # pw32 DLLs use 'pw' prefix rather than 'lib'
25137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25146 dynamic_linker='Win32 ld.exe'
25147 # FIXME: first we should search . and the directory the executable is in
25151 darwin* | rhapsody*)
25152 dynamic_linker="$host_os dyld"
25153 version_type=darwin
25156 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25157 soname_spec='${libname}${release}${major}$shared_ext'
25158 shlibpath_overrides_runpath=yes
25159 shlibpath_var=DYLD_LIBRARY_PATH
25160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25161 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25162 if test "$GCC" = yes; then
25163 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"`
25165 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25175 soname_spec='${libname}${release}${shared_ext}$major'
25176 shlibpath_var=LD_LIBRARY_PATH
25187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25188 soname_spec='${libname}${release}${shared_ext}$major'
25189 shlibpath_var=LD_LIBRARY_PATH
25190 shlibpath_overrides_runpath=no
25191 hardcode_into_libs=yes
25192 dynamic_linker='GNU ld.so'
25195 freebsd* | dragonfly*)
25196 # DragonFly does not have aout. When/if they implement a new
25197 # versioning mechanism, adjust this.
25198 if test -x /usr/bin/objformat; then
25199 objformat=`/usr/bin/objformat`
25202 freebsd[123]*) objformat=aout ;;
25203 *) objformat=elf ;;
25206 version_type=freebsd-$objformat
25207 case $version_type in
25209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25218 shlibpath_var=LD_LIBRARY_PATH
25221 shlibpath_overrides_runpath=yes
25223 freebsd3.[01]* | freebsdelf3.[01]*)
25224 shlibpath_overrides_runpath=yes
25225 hardcode_into_libs=yes
25227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25229 shlibpath_overrides_runpath=no
25230 hardcode_into_libs=yes
25232 freebsd*) # from 4.6 on
25233 shlibpath_overrides_runpath=yes
25234 hardcode_into_libs=yes
25243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25244 soname_spec='${libname}${release}${shared_ext}$major'
25245 shlibpath_var=LD_LIBRARY_PATH
25246 hardcode_into_libs=yes
25249 hpux9* | hpux10* | hpux11*)
25250 # Give a soname corresponding to the major version so that dld.sl refuses to
25251 # link against other versions.
25258 hardcode_into_libs=yes
25259 dynamic_linker="$host_os dld.so"
25260 shlibpath_var=LD_LIBRARY_PATH
25261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25263 soname_spec='${libname}${release}${shared_ext}$major'
25264 if test "X$HPUX_IA64_MODE" = X32; then
25265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25273 hardcode_into_libs=yes
25274 dynamic_linker="$host_os dld.sl"
25275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25278 soname_spec='${libname}${release}${shared_ext}$major'
25279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25284 dynamic_linker="$host_os dld.sl"
25285 shlibpath_var=SHLIB_PATH
25286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
25291 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25292 postinstall_cmds='chmod 555 $lib'
25299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25300 soname_spec='${libname}${release}${shared_ext}$major'
25301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25302 shlibpath_var=LD_LIBRARY_PATH
25303 shlibpath_overrides_runpath=no
25304 hardcode_into_libs=yes
25307 irix5* | irix6* | nonstopux*)
25309 nonstopux*) version_type=nonstopux ;;
25311 if test "$lt_cv_prog_gnu_ld" = yes; then
25319 soname_spec='${libname}${release}${shared_ext}$major'
25320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25322 irix5* | nonstopux*)
25323 libsuff= shlibsuff=
25326 case $LD in # libtool.m4 will add one of these switches to LD
25327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25328 libsuff= shlibsuff= libmagic=32-bit;;
25329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25330 libsuff=32 shlibsuff=N32 libmagic=N32;;
25331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25333 *) libsuff= shlibsuff= libmagic=never-match;;
25337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25338 shlibpath_overrides_runpath=no
25339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25341 hardcode_into_libs=yes
25344 # No shared lib support for Linux oldld, aout, or coff.
25345 linux*oldld* | linux*aout* | linux*coff*)
25349 # This must be Linux ELF.
25354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25355 soname_spec='${libname}${release}${shared_ext}$major'
25356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25357 shlibpath_var=LD_LIBRARY_PATH
25358 shlibpath_overrides_runpath=no
25359 # This implies no fast_install, which is unacceptable.
25360 # Some rework will be needed to allow for fast_install
25361 # before this can be enabled.
25362 hardcode_into_libs=yes
25364 # Append ld.so.conf contents to the search path
25365 if test -f /etc/ld.so.conf; then
25366 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' ' '`
25367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25370 # We used to test for /lib/ld.so.1 and disable shared libraries on
25371 # powerpc, because MkLinux only supported shared libraries with the
25372 # GNU dynamic linker. Since this was broken with cross compilers,
25373 # most powerpc-linux boxes support dynamic linking these days and
25374 # people can always --disable-shared, the test was removed, and we
25375 # assume the GNU/Linux dynamic linker is in use.
25376 dynamic_linker='GNU/Linux ld.so'
25383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25384 soname_spec='${libname}${release}${shared_ext}$major'
25385 shlibpath_var=LD_LIBRARY_PATH
25386 shlibpath_overrides_runpath=no
25387 hardcode_into_libs=yes
25388 dynamic_linker='GNU ld.so'
25395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25398 dynamic_linker='NetBSD (a.out) ld.so'
25400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25401 soname_spec='${libname}${release}${shared_ext}$major'
25402 dynamic_linker='NetBSD ld.elf_so'
25404 shlibpath_var=LD_LIBRARY_PATH
25405 shlibpath_overrides_runpath=yes
25406 hardcode_into_libs=yes
25411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25412 shlibpath_var=LD_LIBRARY_PATH
25413 shlibpath_overrides_runpath=yes
25420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25421 soname_spec='${libname}${release}${shared_ext}$major'
25422 shlibpath_var=LD_LIBRARY_PATH
25423 shlibpath_overrides_runpath=yes
25428 sys_lib_dlsearch_path_spec="/usr/lib"
25430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25432 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25433 *) need_version=no ;;
25435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25437 shlibpath_var=LD_LIBRARY_PATH
25438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25440 openbsd2.[89] | openbsd2.[89].*)
25441 shlibpath_overrides_runpath=no
25444 shlibpath_overrides_runpath=yes
25448 shlibpath_overrides_runpath=yes
25453 libname_spec='$name'
25456 library_names_spec='$libname${shared_ext} $libname.a'
25457 dynamic_linker='OS/2 ld.exe'
25458 shlibpath_var=LIBPATH
25461 osf3* | osf4* | osf5*)
25465 soname_spec='${libname}${release}${shared_ext}$major'
25466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25467 shlibpath_var=LD_LIBRARY_PATH
25468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 shlibpath_overrides_runpath=yes
25480 hardcode_into_libs=yes
25481 # ldd complains unless libraries are executable
25482 postinstall_cmds='chmod +x $lib'
25487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25489 shlibpath_var=LD_LIBRARY_PATH
25490 shlibpath_overrides_runpath=yes
25491 if test "$with_gnu_ld" = yes; then
25499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25500 soname_spec='${libname}${release}${shared_ext}$major'
25501 shlibpath_var=LD_LIBRARY_PATH
25502 case $host_vendor in
25504 shlibpath_overrides_runpath=no
25506 export_dynamic_flag_spec='${wl}-Blargedynsym'
25507 runpath_var=LD_RUN_PATH
25515 shlibpath_overrides_runpath=no
25516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25522 if test -d /usr/nec ;then
25524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25525 soname_spec='$libname${shared_ext}.$major'
25526 shlibpath_var=LD_LIBRARY_PATH
25530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25531 version_type=freebsd-elf
25534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25535 soname_spec='${libname}${release}${shared_ext}$major'
25536 shlibpath_var=LD_LIBRARY_PATH
25537 hardcode_into_libs=yes
25538 if test "$with_gnu_ld" = yes; then
25539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25540 shlibpath_overrides_runpath=no
25542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25543 shlibpath_overrides_runpath=yes
25546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25550 sys_lib_dlsearch_path_spec='/usr/lib'
25555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25556 soname_spec='${libname}${release}${shared_ext}$major'
25557 shlibpath_var=LD_LIBRARY_PATH
25564 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25565 echo "${ECHO_T}$dynamic_linker" >&6; }
25566 test "$dynamic_linker" = no && can_build_shared=no
25568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25569 if test "$GCC" = yes; then
25570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25573 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25575 hardcode_action_GCJ=
25576 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25577 test -n "$runpath_var_GCJ" || \
25578 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25580 # We can hardcode non-existant directories.
25581 if test "$hardcode_direct_GCJ" != no &&
25582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25583 # have to relink, otherwise we might link with an installed library
25584 # when we should be linking with a yet-to-be-installed one
25585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25586 test "$hardcode_minus_L_GCJ" != no; then
25587 # Linking always hardcodes the temporary library directory.
25588 hardcode_action_GCJ=relink
25590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25591 hardcode_action_GCJ=immediate
25594 # We cannot hardcode anything, or else we can only hardcode existing
25596 hardcode_action_GCJ=unsupported
25598 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25599 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25601 if test "$hardcode_action_GCJ" = relink; then
25602 # Fast installation is not supported
25603 enable_fast_install=no
25604 elif test "$shlibpath_overrides_runpath" = yes ||
25605 test "$enable_shared" = no; then
25606 # Fast installation is not necessary
25607 enable_fast_install=needless
25611 # The else clause should only fire when bootstrapping the
25612 # libtool distribution, otherwise you forgot to ship ltmain.sh
25613 # with your package, and you will get complaints that there are
25614 # no rules to generate ltmain.sh.
25615 if test -f "$ltmain"; then
25616 # See if we are running on zsh, and set the options which allow our commands through
25617 # without removal of \ escapes.
25618 if test -n "${ZSH_VERSION+set}" ; then
25619 setopt NO_GLOB_SUBST
25621 # Now quote all the things that may contain metacharacters while being
25622 # careful not to overquote the AC_SUBSTed values. We take copies of the
25623 # variables and quote the copies for generation of the libtool script.
25624 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25626 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25627 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25628 deplibs_check_method reload_flag reload_cmds need_locks \
25629 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25630 lt_cv_sys_global_symbol_to_c_name_address \
25631 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25632 old_postinstall_cmds old_postuninstall_cmds \
25636 lt_prog_compiler_wl_GCJ \
25637 lt_prog_compiler_pic_GCJ \
25638 lt_prog_compiler_static_GCJ \
25639 lt_prog_compiler_no_builtin_flag_GCJ \
25640 export_dynamic_flag_spec_GCJ \
25641 thread_safe_flag_spec_GCJ \
25642 whole_archive_flag_spec_GCJ \
25643 enable_shared_with_static_runtimes_GCJ \
25644 old_archive_cmds_GCJ \
25645 old_archive_from_new_cmds_GCJ \
25646 predep_objects_GCJ \
25647 postdep_objects_GCJ \
25650 compiler_lib_search_path_GCJ \
25652 archive_expsym_cmds_GCJ \
25653 postinstall_cmds_GCJ \
25654 postuninstall_cmds_GCJ \
25655 old_archive_from_expsyms_cmds_GCJ \
25656 allow_undefined_flag_GCJ \
25657 no_undefined_flag_GCJ \
25658 export_symbols_cmds_GCJ \
25659 hardcode_libdir_flag_spec_GCJ \
25660 hardcode_libdir_flag_spec_ld_GCJ \
25661 hardcode_libdir_separator_GCJ \
25662 hardcode_automatic_GCJ \
25664 module_expsym_cmds_GCJ \
25665 lt_cv_prog_compiler_c_o_GCJ \
25666 exclude_expsyms_GCJ \
25667 include_expsyms_GCJ; do
25670 old_archive_cmds_GCJ | \
25671 old_archive_from_new_cmds_GCJ | \
25672 archive_cmds_GCJ | \
25673 archive_expsym_cmds_GCJ | \
25674 module_cmds_GCJ | \
25675 module_expsym_cmds_GCJ | \
25676 old_archive_from_expsyms_cmds_GCJ | \
25677 export_symbols_cmds_GCJ | \
25678 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25679 postinstall_cmds | postuninstall_cmds | \
25680 old_postinstall_cmds | old_postuninstall_cmds | \
25681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25682 # Double-quote double-evaled strings.
25683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25692 *'\$0 --fallback-echo"')
25693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25699 cat <<__EOF__ >> "$cfgfile"
25700 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25702 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25704 # Shell to use when invoking shell scripts.
25707 # Whether or not to build shared libraries.
25708 build_libtool_libs=$enable_shared
25710 # Whether or not to build static libraries.
25711 build_old_libs=$enable_static
25713 # Whether or not to add -lc for building shared libraries.
25714 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25716 # Whether or not to disallow shared libs when runtime libs are static
25717 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25719 # Whether or not to optimize for fast installation.
25720 fast_install=$enable_fast_install
25723 host_alias=$host_alias
25727 # The build system.
25728 build_alias=$build_alias
25732 # An echo program that does not interpret backslashes.
25737 AR_FLAGS=$lt_AR_FLAGS
25742 # LTCC compiler flags.
25743 LTCFLAGS=$lt_LTCFLAGS
25745 # A language-specific compiler.
25746 CC=$lt_compiler_GCJ
25748 # Is the compiler the GNU C compiler?
25754 # The linker used to build libraries.
25757 # Whether we need hard or soft links.
25760 # A BSD-compatible nm program.
25763 # A symbol stripping program
25766 # Used to examine libraries when file_magic_cmd begins "file"
25767 MAGIC_CMD=$MAGIC_CMD
25769 # Used on cygwin: DLL creation program.
25772 # Used on cygwin: object dumper.
25775 # Used on cygwin: assembler.
25778 # The name of the directory that contains temporary libtool files.
25781 # How to create reloadable object files.
25782 reload_flag=$lt_reload_flag
25783 reload_cmds=$lt_reload_cmds
25785 # How to pass a linker flag through the compiler.
25786 wl=$lt_lt_prog_compiler_wl_GCJ
25788 # Object file suffix (normally "o").
25789 objext="$ac_objext"
25791 # Old archive suffix (normally "a").
25794 # Shared library suffix (normally ".so").
25795 shrext_cmds='$shrext_cmds'
25797 # Executable file suffix (normally "").
25800 # Additional compiler flags for building library objects.
25801 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25804 # What is the maximum length of a command?
25805 max_cmd_len=$lt_cv_sys_max_cmd_len
25807 # Does compiler simultaneously support -c and -o options?
25808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25810 # Must we lock files when doing compilation?
25811 need_locks=$lt_need_locks
25813 # Do we need the lib prefix for modules?
25814 need_lib_prefix=$need_lib_prefix
25816 # Do we need a version for libraries?
25817 need_version=$need_version
25819 # Whether dlopen is supported.
25820 dlopen_support=$enable_dlopen
25822 # Whether dlopen of programs is supported.
25823 dlopen_self=$enable_dlopen_self
25825 # Whether dlopen of statically linked programs is supported.
25826 dlopen_self_static=$enable_dlopen_self_static
25828 # Compiler flag to prevent dynamic linking.
25829 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25831 # Compiler flag to turn off builtin functions.
25832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25834 # Compiler flag to allow reflexive dlopens.
25835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25837 # Compiler flag to generate shared objects directly from archives.
25838 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25840 # Compiler flag to generate thread-safe objects.
25841 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25843 # Library versioning type.
25844 version_type=$version_type
25846 # Format of library name prefix.
25847 libname_spec=$lt_libname_spec
25849 # List of archive names. First name is the real one, the rest are links.
25850 # The last name is the one that the linker finds with -lNAME.
25851 library_names_spec=$lt_library_names_spec
25853 # The coded name of the library, if different from the real name.
25854 soname_spec=$lt_soname_spec
25856 # Commands used to build and install an old-style archive.
25858 old_archive_cmds=$lt_old_archive_cmds_GCJ
25859 old_postinstall_cmds=$lt_old_postinstall_cmds
25860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25862 # Create an old-style archive from a shared archive.
25863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25865 # Create a temporary old-style archive to link instead of a shared archive.
25866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25868 # Commands used to build and install a shared archive.
25869 archive_cmds=$lt_archive_cmds_GCJ
25870 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25871 postinstall_cmds=$lt_postinstall_cmds
25872 postuninstall_cmds=$lt_postuninstall_cmds
25874 # Commands used to build a loadable module (assumed same as above if empty)
25875 module_cmds=$lt_module_cmds_GCJ
25876 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25878 # Commands to strip libraries.
25879 old_striplib=$lt_old_striplib
25880 striplib=$lt_striplib
25882 # Dependencies to place before the objects being linked to create a
25884 predep_objects=$lt_predep_objects_GCJ
25886 # Dependencies to place after the objects being linked to create a
25888 postdep_objects=$lt_postdep_objects_GCJ
25890 # Dependencies to place before the objects being linked to create a
25892 predeps=$lt_predeps_GCJ
25894 # Dependencies to place after the objects being linked to create a
25896 postdeps=$lt_postdeps_GCJ
25898 # The library search path used internally by the compiler when linking
25899 # a shared library.
25900 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25902 # Method to check whether dependent libraries are shared objects.
25903 deplibs_check_method=$lt_deplibs_check_method
25905 # Command to use when deplibs_check_method == file_magic.
25906 file_magic_cmd=$lt_file_magic_cmd
25908 # Flag that allows shared libraries with undefined symbols to be built.
25909 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25911 # Flag that forces no undefined symbols.
25912 no_undefined_flag=$lt_no_undefined_flag_GCJ
25914 # Commands used to finish a libtool library installation in a directory.
25915 finish_cmds=$lt_finish_cmds
25917 # Same as above, but a single script fragment to be evaled but not shown.
25918 finish_eval=$lt_finish_eval
25920 # Take the output of nm and produce a listing of raw symbols and C names.
25921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25923 # Transform the output of nm in a proper C declaration
25924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25926 # Transform the output of nm in a C name address pair
25927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25929 # This is the shared library runtime path variable.
25930 runpath_var=$runpath_var
25932 # This is the shared library path variable.
25933 shlibpath_var=$shlibpath_var
25935 # Is shlibpath searched before the hard-coded library search path?
25936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25938 # How to hardcode a shared library path into an executable.
25939 hardcode_action=$hardcode_action_GCJ
25941 # Whether we should hardcode library paths into libraries.
25942 hardcode_into_libs=$hardcode_into_libs
25944 # Flag to hardcode \$libdir into a binary during linking.
25945 # This must work even if \$libdir does not exist.
25946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25948 # If ld is used when linking, flag to hardcode \$libdir into
25949 # a binary during linking. This must work even if \$libdir does
25951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25953 # Whether we need a single -rpath flag with a separated argument.
25954 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25957 # resulting binary.
25958 hardcode_direct=$hardcode_direct_GCJ
25960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25961 # resulting binary.
25962 hardcode_minus_L=$hardcode_minus_L_GCJ
25964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25965 # the resulting binary.
25966 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25968 # Set to yes if building a shared library automatically hardcodes DIR into the library
25969 # and all subsequent libraries and executables linked against it.
25970 hardcode_automatic=$hardcode_automatic_GCJ
25972 # Variables whose values should be saved in libtool wrapper scripts and
25973 # restored at relink time.
25974 variables_saved_for_relink="$variables_saved_for_relink"
25976 # Whether libtool must link a program against all its dependency libraries.
25977 link_all_deplibs=$link_all_deplibs_GCJ
25979 # Compile-time system search path for libraries
25980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25982 # Run-time system search path for libraries
25983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25985 # Fix the shell variable \$srcfile for the compiler.
25986 fix_srcfile_path="$fix_srcfile_path_GCJ"
25988 # Set to yes if exported symbols are required.
25989 always_export_symbols=$always_export_symbols_GCJ
25991 # The commands to list exported symbols.
25992 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25994 # The commands to extract the exported symbol list from a shared archive.
25995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25997 # Symbols that should not be listed in the preloaded symbols.
25998 exclude_expsyms=$lt_exclude_expsyms_GCJ
26000 # Symbols that must always be exported.
26001 include_expsyms=$lt_include_expsyms_GCJ
26003 # ### END LIBTOOL TAG CONFIG: $tagname
26009 # If there is no Makefile yet, we rely on a make rule to execute
26010 # `config.status --recheck' to rerun these tests and create the
26011 # libtool script then.
26012 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26013 if test -f "$ltmain_in"; then
26014 test -f Makefile && make "$ltmain"
26020 ac_cpp='$CPP $CPPFLAGS'
26021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26034 ac_cpp='$CPP $CPPFLAGS'
26035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26040 # Source file extension for RC test sources.
26043 # Object file extension for compiled RC test sources.
26047 # Code to be used in simple compile tests
26048 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26050 # Code to be used in simple link tests
26051 lt_simple_link_test_code="$lt_simple_compile_test_code"
26053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26055 # If no C compiler was specified, use CC.
26058 # If no C compiler flags were specified, use CFLAGS.
26059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26061 # Allow CC to be a program name with arguments.
26065 # save warnings/boilerplate of simple test code
26066 ac_outfile=conftest.$ac_objext
26067 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26069 _lt_compiler_boilerplate=`cat conftest.err`
26072 ac_outfile=conftest.$ac_objext
26073 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26075 _lt_linker_boilerplate=`cat conftest.err`
26079 # Allow CC to be a program name with arguments.
26084 for cc_temp in $compiler""; do
26086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26094 lt_cv_prog_compiler_c_o_RC=yes
26096 # The else clause should only fire when bootstrapping the
26097 # libtool distribution, otherwise you forgot to ship ltmain.sh
26098 # with your package, and you will get complaints that there are
26099 # no rules to generate ltmain.sh.
26100 if test -f "$ltmain"; then
26101 # See if we are running on zsh, and set the options which allow our commands through
26102 # without removal of \ escapes.
26103 if test -n "${ZSH_VERSION+set}" ; then
26104 setopt NO_GLOB_SUBST
26106 # Now quote all the things that may contain metacharacters while being
26107 # careful not to overquote the AC_SUBSTed values. We take copies of the
26108 # variables and quote the copies for generation of the libtool script.
26109 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26111 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26112 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26113 deplibs_check_method reload_flag reload_cmds need_locks \
26114 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26115 lt_cv_sys_global_symbol_to_c_name_address \
26116 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26117 old_postinstall_cmds old_postuninstall_cmds \
26121 lt_prog_compiler_wl_RC \
26122 lt_prog_compiler_pic_RC \
26123 lt_prog_compiler_static_RC \
26124 lt_prog_compiler_no_builtin_flag_RC \
26125 export_dynamic_flag_spec_RC \
26126 thread_safe_flag_spec_RC \
26127 whole_archive_flag_spec_RC \
26128 enable_shared_with_static_runtimes_RC \
26129 old_archive_cmds_RC \
26130 old_archive_from_new_cmds_RC \
26131 predep_objects_RC \
26132 postdep_objects_RC \
26135 compiler_lib_search_path_RC \
26137 archive_expsym_cmds_RC \
26138 postinstall_cmds_RC \
26139 postuninstall_cmds_RC \
26140 old_archive_from_expsyms_cmds_RC \
26141 allow_undefined_flag_RC \
26142 no_undefined_flag_RC \
26143 export_symbols_cmds_RC \
26144 hardcode_libdir_flag_spec_RC \
26145 hardcode_libdir_flag_spec_ld_RC \
26146 hardcode_libdir_separator_RC \
26147 hardcode_automatic_RC \
26149 module_expsym_cmds_RC \
26150 lt_cv_prog_compiler_c_o_RC \
26151 exclude_expsyms_RC \
26152 include_expsyms_RC; do
26155 old_archive_cmds_RC | \
26156 old_archive_from_new_cmds_RC | \
26157 archive_cmds_RC | \
26158 archive_expsym_cmds_RC | \
26160 module_expsym_cmds_RC | \
26161 old_archive_from_expsyms_cmds_RC | \
26162 export_symbols_cmds_RC | \
26163 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26164 postinstall_cmds | postuninstall_cmds | \
26165 old_postinstall_cmds | old_postuninstall_cmds | \
26166 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26167 # Double-quote double-evaled strings.
26168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26177 *'\$0 --fallback-echo"')
26178 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26184 cat <<__EOF__ >> "$cfgfile"
26185 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26189 # Shell to use when invoking shell scripts.
26192 # Whether or not to build shared libraries.
26193 build_libtool_libs=$enable_shared
26195 # Whether or not to build static libraries.
26196 build_old_libs=$enable_static
26198 # Whether or not to add -lc for building shared libraries.
26199 build_libtool_need_lc=$archive_cmds_need_lc_RC
26201 # Whether or not to disallow shared libs when runtime libs are static
26202 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26204 # Whether or not to optimize for fast installation.
26205 fast_install=$enable_fast_install
26208 host_alias=$host_alias
26212 # The build system.
26213 build_alias=$build_alias
26217 # An echo program that does not interpret backslashes.
26222 AR_FLAGS=$lt_AR_FLAGS
26227 # LTCC compiler flags.
26228 LTCFLAGS=$lt_LTCFLAGS
26230 # A language-specific compiler.
26233 # Is the compiler the GNU C compiler?
26239 # The linker used to build libraries.
26242 # Whether we need hard or soft links.
26245 # A BSD-compatible nm program.
26248 # A symbol stripping program
26251 # Used to examine libraries when file_magic_cmd begins "file"
26252 MAGIC_CMD=$MAGIC_CMD
26254 # Used on cygwin: DLL creation program.
26257 # Used on cygwin: object dumper.
26260 # Used on cygwin: assembler.
26263 # The name of the directory that contains temporary libtool files.
26266 # How to create reloadable object files.
26267 reload_flag=$lt_reload_flag
26268 reload_cmds=$lt_reload_cmds
26270 # How to pass a linker flag through the compiler.
26271 wl=$lt_lt_prog_compiler_wl_RC
26273 # Object file suffix (normally "o").
26274 objext="$ac_objext"
26276 # Old archive suffix (normally "a").
26279 # Shared library suffix (normally ".so").
26280 shrext_cmds='$shrext_cmds'
26282 # Executable file suffix (normally "").
26285 # Additional compiler flags for building library objects.
26286 pic_flag=$lt_lt_prog_compiler_pic_RC
26289 # What is the maximum length of a command?
26290 max_cmd_len=$lt_cv_sys_max_cmd_len
26292 # Does compiler simultaneously support -c and -o options?
26293 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26295 # Must we lock files when doing compilation?
26296 need_locks=$lt_need_locks
26298 # Do we need the lib prefix for modules?
26299 need_lib_prefix=$need_lib_prefix
26301 # Do we need a version for libraries?
26302 need_version=$need_version
26304 # Whether dlopen is supported.
26305 dlopen_support=$enable_dlopen
26307 # Whether dlopen of programs is supported.
26308 dlopen_self=$enable_dlopen_self
26310 # Whether dlopen of statically linked programs is supported.
26311 dlopen_self_static=$enable_dlopen_self_static
26313 # Compiler flag to prevent dynamic linking.
26314 link_static_flag=$lt_lt_prog_compiler_static_RC
26316 # Compiler flag to turn off builtin functions.
26317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26319 # Compiler flag to allow reflexive dlopens.
26320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26322 # Compiler flag to generate shared objects directly from archives.
26323 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26325 # Compiler flag to generate thread-safe objects.
26326 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26328 # Library versioning type.
26329 version_type=$version_type
26331 # Format of library name prefix.
26332 libname_spec=$lt_libname_spec
26334 # List of archive names. First name is the real one, the rest are links.
26335 # The last name is the one that the linker finds with -lNAME.
26336 library_names_spec=$lt_library_names_spec
26338 # The coded name of the library, if different from the real name.
26339 soname_spec=$lt_soname_spec
26341 # Commands used to build and install an old-style archive.
26343 old_archive_cmds=$lt_old_archive_cmds_RC
26344 old_postinstall_cmds=$lt_old_postinstall_cmds
26345 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26347 # Create an old-style archive from a shared archive.
26348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26350 # Create a temporary old-style archive to link instead of a shared archive.
26351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26353 # Commands used to build and install a shared archive.
26354 archive_cmds=$lt_archive_cmds_RC
26355 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26356 postinstall_cmds=$lt_postinstall_cmds
26357 postuninstall_cmds=$lt_postuninstall_cmds
26359 # Commands used to build a loadable module (assumed same as above if empty)
26360 module_cmds=$lt_module_cmds_RC
26361 module_expsym_cmds=$lt_module_expsym_cmds_RC
26363 # Commands to strip libraries.
26364 old_striplib=$lt_old_striplib
26365 striplib=$lt_striplib
26367 # Dependencies to place before the objects being linked to create a
26369 predep_objects=$lt_predep_objects_RC
26371 # Dependencies to place after the objects being linked to create a
26373 postdep_objects=$lt_postdep_objects_RC
26375 # Dependencies to place before the objects being linked to create a
26377 predeps=$lt_predeps_RC
26379 # Dependencies to place after the objects being linked to create a
26381 postdeps=$lt_postdeps_RC
26383 # The library search path used internally by the compiler when linking
26384 # a shared library.
26385 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26387 # Method to check whether dependent libraries are shared objects.
26388 deplibs_check_method=$lt_deplibs_check_method
26390 # Command to use when deplibs_check_method == file_magic.
26391 file_magic_cmd=$lt_file_magic_cmd
26393 # Flag that allows shared libraries with undefined symbols to be built.
26394 allow_undefined_flag=$lt_allow_undefined_flag_RC
26396 # Flag that forces no undefined symbols.
26397 no_undefined_flag=$lt_no_undefined_flag_RC
26399 # Commands used to finish a libtool library installation in a directory.
26400 finish_cmds=$lt_finish_cmds
26402 # Same as above, but a single script fragment to be evaled but not shown.
26403 finish_eval=$lt_finish_eval
26405 # Take the output of nm and produce a listing of raw symbols and C names.
26406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26408 # Transform the output of nm in a proper C declaration
26409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26411 # Transform the output of nm in a C name address pair
26412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26414 # This is the shared library runtime path variable.
26415 runpath_var=$runpath_var
26417 # This is the shared library path variable.
26418 shlibpath_var=$shlibpath_var
26420 # Is shlibpath searched before the hard-coded library search path?
26421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26423 # How to hardcode a shared library path into an executable.
26424 hardcode_action=$hardcode_action_RC
26426 # Whether we should hardcode library paths into libraries.
26427 hardcode_into_libs=$hardcode_into_libs
26429 # Flag to hardcode \$libdir into a binary during linking.
26430 # This must work even if \$libdir does not exist.
26431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26433 # If ld is used when linking, flag to hardcode \$libdir into
26434 # a binary during linking. This must work even if \$libdir does
26436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26438 # Whether we need a single -rpath flag with a separated argument.
26439 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26441 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26442 # resulting binary.
26443 hardcode_direct=$hardcode_direct_RC
26445 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26446 # resulting binary.
26447 hardcode_minus_L=$hardcode_minus_L_RC
26449 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26450 # the resulting binary.
26451 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26453 # Set to yes if building a shared library automatically hardcodes DIR into the library
26454 # and all subsequent libraries and executables linked against it.
26455 hardcode_automatic=$hardcode_automatic_RC
26457 # Variables whose values should be saved in libtool wrapper scripts and
26458 # restored at relink time.
26459 variables_saved_for_relink="$variables_saved_for_relink"
26461 # Whether libtool must link a program against all its dependency libraries.
26462 link_all_deplibs=$link_all_deplibs_RC
26464 # Compile-time system search path for libraries
26465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26467 # Run-time system search path for libraries
26468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26470 # Fix the shell variable \$srcfile for the compiler.
26471 fix_srcfile_path="$fix_srcfile_path_RC"
26473 # Set to yes if exported symbols are required.
26474 always_export_symbols=$always_export_symbols_RC
26476 # The commands to list exported symbols.
26477 export_symbols_cmds=$lt_export_symbols_cmds_RC
26479 # The commands to extract the exported symbol list from a shared archive.
26480 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26482 # Symbols that should not be listed in the preloaded symbols.
26483 exclude_expsyms=$lt_exclude_expsyms_RC
26485 # Symbols that must always be exported.
26486 include_expsyms=$lt_include_expsyms_RC
26488 # ### END LIBTOOL TAG CONFIG: $tagname
26494 # If there is no Makefile yet, we rely on a make rule to execute
26495 # `config.status --recheck' to rerun these tests and create the
26496 # libtool script then.
26497 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26498 if test -f "$ltmain_in"; then
26499 test -f Makefile && make "$ltmain"
26505 ac_cpp='$CPP $CPPFLAGS'
26506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26515 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26516 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26517 { (exit 1); exit 1; }; }
26521 # Append the new tag name to the list of available tags.
26522 if test -n "$tagname" ; then
26523 available_tags="$available_tags $tagname"
26529 # Now substitute the updated list of available tags.
26530 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26531 mv "${ofile}T" "$ofile"
26535 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26536 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26537 { (exit 1); exit 1; }; }
26543 # This can be used to rebuild libtool when needed
26544 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26546 # Always use our own libtool.
26547 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26549 # Prevent multiple expansion
26571 if test "$lt_cv_dlopen_self" = "yes" ; then
26573 cat >>confdefs.h <<\_ACEOF
26574 #define CAN_DLOPEN_SELF 1
26579 etags_version=`$ETAGS --version 2>&1`
26580 case "$etags_version" in
26581 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26582 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26583 *) ETAGSFLAGS="" ;;
26585 ETAGSFLAGS=$ETAGSFLAGS
26588 if test "$WITH_LLVMGCCDIR" = "default" ; then
26589 LLVMGCC="llvm-gcc${EXEEXT}"
26590 LLVMGXX="llvm-g++${EXEEXT}"
26591 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26592 set dummy $LLVMGCC; ac_word=$2
26593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26595 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26596 echo $ECHO_N "(cached) $ECHO_C" >&6
26600 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26604 for as_dir in $PATH
26607 test -z "$as_dir" && as_dir=.
26608 for ac_exec_ext in '' $ac_executable_extensions; do
26609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26610 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26621 LLVMGCC=$ac_cv_path_LLVMGCC
26622 if test -n "$LLVMGCC"; then
26623 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26624 echo "${ECHO_T}$LLVMGCC" >&6; }
26626 { echo "$as_me:$LINENO: result: no" >&5
26627 echo "${ECHO_T}no" >&6; }
26631 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26632 set dummy $LLVMGXX; ac_word=$2
26633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26635 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26636 echo $ECHO_N "(cached) $ECHO_C" >&6
26640 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26644 for as_dir in $PATH
26647 test -z "$as_dir" && as_dir=.
26648 for ac_exec_ext in '' $ac_executable_extensions; do
26649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26650 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26661 LLVMGXX=$ac_cv_path_LLVMGXX
26662 if test -n "$LLVMGXX"; then
26663 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26664 echo "${ECHO_T}$LLVMGXX" >&6; }
26666 { echo "$as_me:$LINENO: result: no" >&5
26667 echo "${ECHO_T}no" >&6; }
26672 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26673 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26680 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26681 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26694 if test "$GCC" != "yes" && test "$ICC" != "yes"
26696 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26697 echo "$as_me: error: gcc|icc required but not found" >&2;}
26698 { (exit 1); exit 1; }; }
26701 if test "$GXX" != "yes" && test "$IXX" != "yes"
26703 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26704 echo "$as_me: error: g++|icc required but not found" >&2;}
26705 { (exit 1); exit 1; }; }
26708 if test "$GCC" = "yes"
26710 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26711 if test "$gccmajor" -lt "3"
26713 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26714 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26715 { (exit 1); exit 1; }; }
26719 if test -z "$llvm_cv_gnu_make_command"
26721 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26722 echo "$as_me: error: GNU Make required but not found" >&2;}
26723 { (exit 1); exit 1; }; }
26726 { echo "$as_me:$LINENO: result: ok" >&5
26727 echo "${ECHO_T}ok" >&6; }
26731 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26732 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26733 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26734 echo $ECHO_N "(cached) $ECHO_C" >&6
26736 ac_check_lib_save_LIBS=$LIBS
26738 cat >conftest.$ac_ext <<_ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26745 /* Override any GCC internal prototype to avoid an error.
26746 Use char because int might match the return type of a GCC
26747 builtin and then its argument prototype would still apply. */
26755 return elf_begin ();
26760 rm -f conftest.$ac_objext conftest$ac_exeext
26761 if { (ac_try="$ac_link"
26762 case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767 (eval "$ac_link") 2>conftest.er1
26769 grep -v '^ *+' conftest.er1 >conftest.err
26771 cat conftest.err >&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } &&
26774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26775 { (case "(($ac_try" in
26776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777 *) ac_try_echo=$ac_try;;
26779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780 (eval "$ac_try") 2>&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; } &&
26784 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26794 ac_cv_lib_elf_elf_begin=yes
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_cv_lib_elf_elf_begin=no
26802 rm -f core conftest.err conftest.$ac_objext \
26803 conftest$ac_exeext conftest.$ac_ext
26804 LIBS=$ac_check_lib_save_LIBS
26806 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26807 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26808 if test $ac_cv_lib_elf_elf_begin = yes; then
26809 cat >>confdefs.h <<_ACEOF
26810 #define HAVE_LIBELF 1
26818 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26819 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26820 if test "${ac_cv_lib_m_sin+set}" = set; then
26821 echo $ECHO_N "(cached) $ECHO_C" >&6
26823 ac_check_lib_save_LIBS=$LIBS
26825 cat >conftest.$ac_ext <<_ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h. */
26832 /* Override any GCC internal prototype to avoid an error.
26833 Use char because int might match the return type of a GCC
26834 builtin and then its argument prototype would still apply. */
26847 rm -f conftest.$ac_objext conftest$ac_exeext
26848 if { (ac_try="$ac_link"
26849 case "(($ac_try" in
26850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26851 *) ac_try_echo=$ac_try;;
26853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26854 (eval "$ac_link") 2>conftest.er1
26856 grep -v '^ *+' conftest.er1 >conftest.err
26858 cat conftest.err >&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
26861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26862 { (case "(($ac_try" in
26863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26864 *) ac_try_echo=$ac_try;;
26866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26867 (eval "$ac_try") 2>&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); }; } &&
26871 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26881 ac_cv_lib_m_sin=yes
26883 echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26889 rm -f core conftest.err conftest.$ac_objext \
26890 conftest$ac_exeext conftest.$ac_ext
26891 LIBS=$ac_check_lib_save_LIBS
26893 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26894 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26895 if test $ac_cv_lib_m_sin = yes; then
26896 cat >>confdefs.h <<_ACEOF
26897 #define HAVE_LIBM 1
26904 if test "$llvm_cv_os_type" = "MingW" ; then
26906 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26907 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26908 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26911 ac_check_lib_save_LIBS=$LIBS
26912 LIBS="-limagehlp $LIBS"
26913 cat >conftest.$ac_ext <<_ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h. */
26929 rm -f conftest.$ac_objext conftest$ac_exeext
26930 if { (ac_try="$ac_link"
26931 case "(($ac_try" in
26932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933 *) ac_try_echo=$ac_try;;
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936 (eval "$ac_link") 2>conftest.er1
26938 grep -v '^ *+' conftest.er1 >conftest.err
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
26943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26944 { (case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_try") 2>&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26963 ac_cv_lib_imagehlp_main=yes
26965 echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26968 ac_cv_lib_imagehlp_main=no
26971 rm -f core conftest.err conftest.$ac_objext \
26972 conftest$ac_exeext conftest.$ac_ext
26973 LIBS=$ac_check_lib_save_LIBS
26975 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26976 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26977 if test $ac_cv_lib_imagehlp_main = yes; then
26978 cat >>confdefs.h <<_ACEOF
26979 #define HAVE_LIBIMAGEHLP 1
26982 LIBS="-limagehlp $LIBS"
26987 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26988 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26989 if test "${ac_cv_lib_psapi_main+set}" = set; then
26990 echo $ECHO_N "(cached) $ECHO_C" >&6
26992 ac_check_lib_save_LIBS=$LIBS
26993 LIBS="-lpsapi $LIBS"
26994 cat >conftest.$ac_ext <<_ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h. */
27010 rm -f conftest.$ac_objext conftest$ac_exeext
27011 if { (ac_try="$ac_link"
27012 case "(($ac_try" in
27013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014 *) ac_try_echo=$ac_try;;
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017 (eval "$ac_link") 2>conftest.er1
27019 grep -v '^ *+' conftest.er1 >conftest.err
27021 cat conftest.err >&5
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } &&
27024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27025 { (case "(($ac_try" in
27026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027 *) ac_try_echo=$ac_try;;
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030 (eval "$ac_try") 2>&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; } &&
27034 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27044 ac_cv_lib_psapi_main=yes
27046 echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27049 ac_cv_lib_psapi_main=no
27052 rm -f core conftest.err conftest.$ac_objext \
27053 conftest$ac_exeext conftest.$ac_ext
27054 LIBS=$ac_check_lib_save_LIBS
27056 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27057 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27058 if test $ac_cv_lib_psapi_main = yes; then
27059 cat >>confdefs.h <<_ACEOF
27060 #define HAVE_LIBPSAPI 1
27063 LIBS="-lpsapi $LIBS"
27069 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27070 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27071 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27074 ac_func_search_save_LIBS=$LIBS
27075 cat >conftest.$ac_ext <<_ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h. */
27082 /* Override any GCC internal prototype to avoid an error.
27083 Use char because int might match the return type of a GCC
27084 builtin and then its argument prototype would still apply. */
27092 return lt_dlopen ();
27097 for ac_lib in '' ltdl; do
27098 if test -z "$ac_lib"; then
27099 ac_res="none required"
27102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27104 rm -f conftest.$ac_objext conftest$ac_exeext
27105 if { (ac_try="$ac_link"
27106 case "(($ac_try" in
27107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108 *) ac_try_echo=$ac_try;;
27110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27111 (eval "$ac_link") 2>conftest.er1
27113 grep -v '^ *+' conftest.er1 >conftest.err
27115 cat conftest.err >&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); } &&
27118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27119 { (case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_try") 2>&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; } &&
27128 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27138 ac_cv_search_lt_dlopen=$ac_res
27140 echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27146 rm -f core conftest.err conftest.$ac_objext \
27148 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27152 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27155 ac_cv_search_lt_dlopen=no
27157 rm conftest.$ac_ext
27158 LIBS=$ac_func_search_save_LIBS
27160 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27161 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27162 ac_res=$ac_cv_search_lt_dlopen
27163 if test "$ac_res" != no; then
27164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27166 cat >>confdefs.h <<\_ACEOF
27167 #define HAVE_LT_DLOPEN 1
27171 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27172 not be available" >&5
27173 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27174 not be available" >&2;}
27178 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27179 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27180 if test "${ac_cv_search_dlopen+set}" = set; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 ac_func_search_save_LIBS=$LIBS
27184 cat >conftest.$ac_ext <<_ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27191 /* Override any GCC internal prototype to avoid an error.
27192 Use char because int might match the return type of a GCC
27193 builtin and then its argument prototype would still apply. */
27206 for ac_lib in '' dl; do
27207 if test -z "$ac_lib"; then
27208 ac_res="none required"
27211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27213 rm -f conftest.$ac_objext conftest$ac_exeext
27214 if { (ac_try="$ac_link"
27215 case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_link") 2>conftest.er1
27222 grep -v '^ *+' conftest.er1 >conftest.err
27224 cat conftest.err >&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } &&
27227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27228 { (case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_try") 2>&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; } &&
27237 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27247 ac_cv_search_dlopen=$ac_res
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27255 rm -f core conftest.err conftest.$ac_objext \
27257 if test "${ac_cv_search_dlopen+set}" = set; then
27261 if test "${ac_cv_search_dlopen+set}" = set; then
27264 ac_cv_search_dlopen=no
27266 rm conftest.$ac_ext
27267 LIBS=$ac_func_search_save_LIBS
27269 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27270 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27271 ac_res=$ac_cv_search_dlopen
27272 if test "$ac_res" != no; then
27273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27275 cat >>confdefs.h <<\_ACEOF
27276 #define HAVE_DLOPEN 1
27280 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27281 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27285 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27286 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27287 if test "${ac_cv_search_mallinfo+set}" = set; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27290 ac_func_search_save_LIBS=$LIBS
27291 cat >conftest.$ac_ext <<_ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h. */
27298 /* Override any GCC internal prototype to avoid an error.
27299 Use char because int might match the return type of a GCC
27300 builtin and then its argument prototype would still apply. */
27308 return mallinfo ();
27313 for ac_lib in '' malloc; do
27314 if test -z "$ac_lib"; then
27315 ac_res="none required"
27318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27320 rm -f conftest.$ac_objext conftest$ac_exeext
27321 if { (ac_try="$ac_link"
27322 case "(($ac_try" in
27323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324 *) ac_try_echo=$ac_try;;
27326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327 (eval "$ac_link") 2>conftest.er1
27329 grep -v '^ *+' conftest.er1 >conftest.err
27331 cat conftest.err >&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } &&
27334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27335 { (case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_try") 2>&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; } &&
27344 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27354 ac_cv_search_mallinfo=$ac_res
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27362 rm -f core conftest.err conftest.$ac_objext \
27364 if test "${ac_cv_search_mallinfo+set}" = set; then
27368 if test "${ac_cv_search_mallinfo+set}" = set; then
27371 ac_cv_search_mallinfo=no
27373 rm conftest.$ac_ext
27374 LIBS=$ac_func_search_save_LIBS
27376 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27377 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27378 ac_res=$ac_cv_search_mallinfo
27379 if test "$ac_res" != no; then
27380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27382 cat >>confdefs.h <<\_ACEOF
27383 #define HAVE_MALLINFO 1
27389 if test "$ENABLE_THREADS" -eq 1 ; then
27391 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27392 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27393 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 ac_check_lib_save_LIBS=$LIBS
27397 LIBS="-lpthread $LIBS"
27398 cat >conftest.$ac_ext <<_ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h. */
27405 /* Override any GCC internal prototype to avoid an error.
27406 Use char because int might match the return type of a GCC
27407 builtin and then its argument prototype would still apply. */
27411 char pthread_mutex_init ();
27415 return pthread_mutex_init ();
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421 if { (ac_try="$ac_link"
27422 case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
27429 grep -v '^ *+' conftest.er1 >conftest.err
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_cv_lib_pthread_pthread_mutex_init=yes
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27459 ac_cv_lib_pthread_pthread_mutex_init=no
27462 rm -f core conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext conftest.$ac_ext
27464 LIBS=$ac_check_lib_save_LIBS
27466 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27467 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27468 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27469 cat >>confdefs.h <<_ACEOF
27470 #define HAVE_LIBPTHREAD 1
27473 LIBS="-lpthread $LIBS"
27477 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27478 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27479 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 ac_func_search_save_LIBS=$LIBS
27483 cat >conftest.$ac_ext <<_ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h. */
27490 /* Override any GCC internal prototype to avoid an error.
27491 Use char because int might match the return type of a GCC
27492 builtin and then its argument prototype would still apply. */
27496 char pthread_mutex_lock ();
27500 return pthread_mutex_lock ();
27505 for ac_lib in '' pthread; do
27506 if test -z "$ac_lib"; then
27507 ac_res="none required"
27510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (ac_try="$ac_link"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519 (eval "$ac_link") 2>conftest.er1
27521 grep -v '^ *+' conftest.er1 >conftest.err
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } &&
27526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27527 { (case "(($ac_try" in
27528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27529 *) ac_try_echo=$ac_try;;
27531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27532 (eval "$ac_try") 2>&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); }; } &&
27536 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27546 ac_cv_search_pthread_mutex_lock=$ac_res
27548 echo "$as_me: failed program was:" >&5
27549 sed 's/^/| /' conftest.$ac_ext >&5
27554 rm -f core conftest.err conftest.$ac_objext \
27556 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27560 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27563 ac_cv_search_pthread_mutex_lock=no
27565 rm conftest.$ac_ext
27566 LIBS=$ac_func_search_save_LIBS
27568 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27569 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27570 ac_res=$ac_cv_search_pthread_mutex_lock
27571 if test "$ac_res" != no; then
27572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27574 cat >>confdefs.h <<\_ACEOF
27575 #define HAVE_PTHREAD_MUTEX_LOCK 1
27583 # Check whether --with-udis86 was given.
27584 if test "${with_udis86+set}" = set; then
27585 withval=$with_udis86;
27590 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27593 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27594 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27595 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27596 echo $ECHO_N "(cached) $ECHO_C" >&6
27598 ac_check_lib_save_LIBS=$LIBS
27599 LIBS="-ludis86 $LIBS"
27600 cat >conftest.$ac_ext <<_ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h. */
27607 /* Override any GCC internal prototype to avoid an error.
27608 Use char because int might match the return type of a GCC
27609 builtin and then its argument prototype would still apply. */
27622 rm -f conftest.$ac_objext conftest$ac_exeext
27623 if { (ac_try="$ac_link"
27624 case "(($ac_try" in
27625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27626 *) ac_try_echo=$ac_try;;
27628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27629 (eval "$ac_link") 2>conftest.er1
27631 grep -v '^ *+' conftest.er1 >conftest.err
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
27636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27637 { (case "(($ac_try" in
27638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_try") 2>&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; } &&
27646 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27656 ac_cv_lib_udis86_ud_init=yes
27658 echo "$as_me: failed program was:" >&5
27659 sed 's/^/| /' conftest.$ac_ext >&5
27661 ac_cv_lib_udis86_ud_init=no
27664 rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
27666 LIBS=$ac_check_lib_save_LIBS
27668 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27669 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27670 if test $ac_cv_lib_udis86_ud_init = yes; then
27671 cat >>confdefs.h <<_ACEOF
27672 #define HAVE_LIBUDIS86 1
27675 LIBS="-ludis86 $LIBS"
27679 echo "Error! You need to have libudis86 around."
27691 cat >>confdefs.h <<_ACEOF
27692 #define USE_UDIS86 $USE_UDIS86
27702 ac_header_dirent=no
27703 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27704 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27705 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27706 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27708 echo $ECHO_N "(cached) $ECHO_C" >&6
27710 cat >conftest.$ac_ext <<_ACEOF
27713 cat confdefs.h >>conftest.$ac_ext
27714 cat >>conftest.$ac_ext <<_ACEOF
27715 /* end confdefs.h. */
27716 #include <sys/types.h>
27728 rm -f conftest.$ac_objext
27729 if { (ac_try="$ac_compile"
27730 case "(($ac_try" in
27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732 *) ac_try_echo=$ac_try;;
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735 (eval "$ac_compile") 2>conftest.er1
27737 grep -v '^ *+' conftest.er1 >conftest.err
27739 cat conftest.err >&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } &&
27742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_try") 2>&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; } &&
27752 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27762 eval "$as_ac_Header=yes"
27764 echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27767 eval "$as_ac_Header=no"
27770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27772 ac_res=`eval echo '${'$as_ac_Header'}'`
27773 { echo "$as_me:$LINENO: result: $ac_res" >&5
27774 echo "${ECHO_T}$ac_res" >&6; }
27775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27776 cat >>confdefs.h <<_ACEOF
27777 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27780 ac_header_dirent=$ac_hdr; break
27784 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27785 if test $ac_header_dirent = dirent.h; then
27786 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27787 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27788 if test "${ac_cv_search_opendir+set}" = set; then
27789 echo $ECHO_N "(cached) $ECHO_C" >&6
27791 ac_func_search_save_LIBS=$LIBS
27792 cat >conftest.$ac_ext <<_ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27799 /* Override any GCC internal prototype to avoid an error.
27800 Use char because int might match the return type of a GCC
27801 builtin and then its argument prototype would still apply. */
27814 for ac_lib in '' dir; do
27815 if test -z "$ac_lib"; then
27816 ac_res="none required"
27819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27821 rm -f conftest.$ac_objext conftest$ac_exeext
27822 if { (ac_try="$ac_link"
27823 case "(($ac_try" in
27824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825 *) ac_try_echo=$ac_try;;
27827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828 (eval "$ac_link") 2>conftest.er1
27830 grep -v '^ *+' conftest.er1 >conftest.err
27832 cat conftest.err >&5
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); } &&
27835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27836 { (case "(($ac_try" in
27837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27838 *) ac_try_echo=$ac_try;;
27840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27841 (eval "$ac_try") 2>&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; } &&
27845 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27855 ac_cv_search_opendir=$ac_res
27857 echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27863 rm -f core conftest.err conftest.$ac_objext \
27865 if test "${ac_cv_search_opendir+set}" = set; then
27869 if test "${ac_cv_search_opendir+set}" = set; then
27872 ac_cv_search_opendir=no
27874 rm conftest.$ac_ext
27875 LIBS=$ac_func_search_save_LIBS
27877 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27878 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27879 ac_res=$ac_cv_search_opendir
27880 if test "$ac_res" != no; then
27881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27886 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27887 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27888 if test "${ac_cv_search_opendir+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 ac_func_search_save_LIBS=$LIBS
27892 cat >conftest.$ac_ext <<_ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27899 /* Override any GCC internal prototype to avoid an error.
27900 Use char because int might match the return type of a GCC
27901 builtin and then its argument prototype would still apply. */
27914 for ac_lib in '' x; do
27915 if test -z "$ac_lib"; then
27916 ac_res="none required"
27919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27921 rm -f conftest.$ac_objext conftest$ac_exeext
27922 if { (ac_try="$ac_link"
27923 case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_link") 2>conftest.er1
27930 grep -v '^ *+' conftest.er1 >conftest.err
27932 cat conftest.err >&5
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } &&
27935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27936 { (case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_try") 2>&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; } &&
27945 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27955 ac_cv_search_opendir=$ac_res
27957 echo "$as_me: failed program was:" >&5
27958 sed 's/^/| /' conftest.$ac_ext >&5
27963 rm -f core conftest.err conftest.$ac_objext \
27965 if test "${ac_cv_search_opendir+set}" = set; then
27969 if test "${ac_cv_search_opendir+set}" = set; then
27972 ac_cv_search_opendir=no
27974 rm conftest.$ac_ext
27975 LIBS=$ac_func_search_save_LIBS
27977 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27978 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27979 ac_res=$ac_cv_search_opendir
27980 if test "$ac_res" != no; then
27981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27987 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27988 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27989 if test "${ac_cv_header_mmap_anon+set}" = set; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27993 ac_cpp='$CPP $CPPFLAGS'
27994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 #include <sys/mman.h>
28005 #include <unistd.h>
28010 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28015 rm -f conftest.$ac_objext
28016 if { (ac_try="$ac_compile"
28017 case "(($ac_try" in
28018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28019 *) ac_try_echo=$ac_try;;
28021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28022 (eval "$ac_compile") 2>conftest.er1
28024 grep -v '^ *+' conftest.er1 >conftest.err
28026 cat conftest.err >&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } &&
28029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28030 { (case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_try") 2>&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; } &&
28039 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28049 ac_cv_header_mmap_anon=yes
28051 echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28054 ac_cv_header_mmap_anon=no
28057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28059 ac_cpp='$CPP $CPPFLAGS'
28060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28066 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28067 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28068 if test "$ac_cv_header_mmap_anon" = yes; then
28070 cat >>confdefs.h <<\_ACEOF
28071 #define HAVE_MMAP_ANONYMOUS 1
28076 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28077 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28078 if test "${ac_cv_header_stat_broken+set}" = set; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28081 cat >conftest.$ac_ext <<_ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h. */
28087 #include <sys/types.h>
28088 #include <sys/stat.h>
28090 #if defined S_ISBLK && defined S_IFDIR
28091 # if S_ISBLK (S_IFDIR)
28096 #if defined S_ISBLK && defined S_IFCHR
28097 # if S_ISBLK (S_IFCHR)
28102 #if defined S_ISLNK && defined S_IFREG
28103 # if S_ISLNK (S_IFREG)
28108 #if defined S_ISSOCK && defined S_IFREG
28109 # if S_ISSOCK (S_IFREG)
28115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28116 $EGREP "You lose" >/dev/null 2>&1; then
28117 ac_cv_header_stat_broken=yes
28119 ac_cv_header_stat_broken=no
28124 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28125 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28126 if test $ac_cv_header_stat_broken = yes; then
28128 cat >>confdefs.h <<\_ACEOF
28129 #define STAT_MACROS_BROKEN 1
28134 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28135 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28136 if test "${ac_cv_header_stdc+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
28139 cat >conftest.$ac_ext <<_ACEOF
28142 cat confdefs.h >>conftest.$ac_ext
28143 cat >>conftest.$ac_ext <<_ACEOF
28144 /* end confdefs.h. */
28145 #include <stdlib.h>
28146 #include <stdarg.h>
28147 #include <string.h>
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_compile") 2>conftest.er1
28167 grep -v '^ *+' conftest.er1 >conftest.err
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } &&
28172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28192 ac_cv_header_stdc=yes
28194 echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28197 ac_cv_header_stdc=no
28200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28202 if test $ac_cv_header_stdc = yes; then
28203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28204 cat >conftest.$ac_ext <<_ACEOF
28207 cat confdefs.h >>conftest.$ac_ext
28208 cat >>conftest.$ac_ext <<_ACEOF
28209 /* end confdefs.h. */
28210 #include <string.h>
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214 $EGREP "memchr" >/dev/null 2>&1; then
28217 ac_cv_header_stdc=no
28223 if test $ac_cv_header_stdc = yes; then
28224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28225 cat >conftest.$ac_ext <<_ACEOF
28228 cat confdefs.h >>conftest.$ac_ext
28229 cat >>conftest.$ac_ext <<_ACEOF
28230 /* end confdefs.h. */
28231 #include <stdlib.h>
28234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28235 $EGREP "free" >/dev/null 2>&1; then
28238 ac_cv_header_stdc=no
28244 if test $ac_cv_header_stdc = yes; then
28245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28246 if test "$cross_compiling" = yes; then
28249 cat >conftest.$ac_ext <<_ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h. */
28256 #include <stdlib.h>
28257 #if ((' ' & 0x0FF) == 0x020)
28258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28261 # define ISLOWER(c) \
28262 (('a' <= (c) && (c) <= 'i') \
28263 || ('j' <= (c) && (c) <= 'r') \
28264 || ('s' <= (c) && (c) <= 'z'))
28265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28273 for (i = 0; i < 256; i++)
28274 if (XOR (islower (i), ISLOWER (i))
28275 || toupper (i) != TOUPPER (i))
28280 rm -f conftest$ac_exeext
28281 if { (ac_try="$ac_link"
28282 case "(($ac_try" in
28283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284 *) ac_try_echo=$ac_try;;
28286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287 (eval "$ac_link") 2>&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28291 { (case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_try") 2>&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28302 echo "$as_me: program exited with status $ac_status" >&5
28303 echo "$as_me: failed program was:" >&5
28304 sed 's/^/| /' conftest.$ac_ext >&5
28306 ( exit $ac_status )
28307 ac_cv_header_stdc=no
28309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28315 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28316 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28317 if test $ac_cv_header_stdc = yes; then
28319 cat >>confdefs.h <<\_ACEOF
28320 #define STDC_HEADERS 1
28325 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28326 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28327 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28328 echo $ECHO_N "(cached) $ECHO_C" >&6
28330 cat >conftest.$ac_ext <<_ACEOF
28333 cat confdefs.h >>conftest.$ac_ext
28334 cat >>conftest.$ac_ext <<_ACEOF
28335 /* end confdefs.h. */
28336 #include <sys/types.h>
28337 #include <sys/wait.h>
28338 #ifndef WEXITSTATUS
28339 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28342 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28350 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28355 rm -f conftest.$ac_objext
28356 if { (ac_try="$ac_compile"
28357 case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362 (eval "$ac_compile") 2>conftest.er1
28364 grep -v '^ *+' conftest.er1 >conftest.err
28366 cat conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
28369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28370 { (case "(($ac_try" in
28371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28372 *) ac_try_echo=$ac_try;;
28374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28375 (eval "$ac_try") 2>&5
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; } &&
28379 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28389 ac_cv_header_sys_wait_h=yes
28391 echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28394 ac_cv_header_sys_wait_h=no
28397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28399 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28400 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28401 if test $ac_cv_header_sys_wait_h = yes; then
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_SYS_WAIT_H 1
28409 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28410 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28411 if test "${ac_cv_header_time+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28414 cat >conftest.$ac_ext <<_ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h. */
28420 #include <sys/types.h>
28421 #include <sys/time.h>
28427 if ((struct tm *) 0)
28433 rm -f conftest.$ac_objext
28434 if { (ac_try="$ac_compile"
28435 case "(($ac_try" in
28436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437 *) ac_try_echo=$ac_try;;
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440 (eval "$ac_compile") 2>conftest.er1
28442 grep -v '^ *+' conftest.er1 >conftest.err
28444 cat conftest.err >&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } &&
28447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_try") 2>&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28467 ac_cv_header_time=yes
28469 echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28472 ac_cv_header_time=no
28475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28477 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28478 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28479 if test $ac_cv_header_time = yes; then
28481 cat >>confdefs.h <<\_ACEOF
28482 #define TIME_WITH_SYS_TIME 1
28494 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28503 ac_res=`eval echo '${'$as_ac_Header'}'`
28504 { echo "$as_me:$LINENO: result: $ac_res" >&5
28505 echo "${ECHO_T}$ac_res" >&6; }
28507 # Is the header compilable?
28508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28510 cat >conftest.$ac_ext <<_ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h. */
28516 $ac_includes_default
28517 #include <$ac_header>
28519 rm -f conftest.$ac_objext
28520 if { (ac_try="$ac_compile"
28521 case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_compile") 2>conftest.er1
28528 grep -v '^ *+' conftest.er1 >conftest.err
28530 cat conftest.err >&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } &&
28533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28534 { (case "(($ac_try" in
28535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536 *) ac_try_echo=$ac_try;;
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_try") 2>&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); }; } &&
28543 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28553 ac_header_compiler=yes
28555 echo "$as_me: failed program was:" >&5
28556 sed 's/^/| /' conftest.$ac_ext >&5
28558 ac_header_compiler=no
28561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28563 echo "${ECHO_T}$ac_header_compiler" >&6; }
28565 # Is the header present?
28566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28574 #include <$ac_header>
28576 if { (ac_try="$ac_cpp conftest.$ac_ext"
28577 case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28584 grep -v '^ *+' conftest.er1 >conftest.err
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } >/dev/null; then
28589 if test -s conftest.err; then
28590 ac_cpp_err=$ac_c_preproc_warn_flag
28591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28598 if test -z "$ac_cpp_err"; then
28599 ac_header_preproc=yes
28601 echo "$as_me: failed program was:" >&5
28602 sed 's/^/| /' conftest.$ac_ext >&5
28604 ac_header_preproc=no
28607 rm -f conftest.err conftest.$ac_ext
28608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28609 echo "${ECHO_T}$ac_header_preproc" >&6; }
28611 # So? What about this header?
28612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28618 ac_header_preproc=yes
28621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28634 ## ----------------------------------- ##
28635 ## Report this to llvmbugs@cs.uiuc.edu ##
28636 ## ----------------------------------- ##
28638 ) | sed "s/^/$as_me: WARNING: /" >&2
28641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28646 eval "$as_ac_Header=\$ac_header_preproc"
28648 ac_res=`eval echo '${'$as_ac_Header'}'`
28649 { echo "$as_me:$LINENO: result: $ac_res" >&5
28650 echo "${ECHO_T}$ac_res" >&6; }
28653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28654 cat >>confdefs.h <<_ACEOF
28655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28668 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28675 echo $ECHO_N "(cached) $ECHO_C" >&6
28677 ac_res=`eval echo '${'$as_ac_Header'}'`
28678 { echo "$as_me:$LINENO: result: $ac_res" >&5
28679 echo "${ECHO_T}$ac_res" >&6; }
28681 # Is the header compilable?
28682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28684 cat >conftest.$ac_ext <<_ACEOF
28687 cat confdefs.h >>conftest.$ac_ext
28688 cat >>conftest.$ac_ext <<_ACEOF
28689 /* end confdefs.h. */
28690 $ac_includes_default
28691 #include <$ac_header>
28693 rm -f conftest.$ac_objext
28694 if { (ac_try="$ac_compile"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_compile") 2>conftest.er1
28702 grep -v '^ *+' conftest.er1 >conftest.err
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } &&
28707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28708 { (case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_try") 2>&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28727 ac_header_compiler=yes
28729 echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28732 ac_header_compiler=no
28735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28737 echo "${ECHO_T}$ac_header_compiler" >&6; }
28739 # Is the header present?
28740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28742 cat >conftest.$ac_ext <<_ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h. */
28748 #include <$ac_header>
28750 if { (ac_try="$ac_cpp conftest.$ac_ext"
28751 case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28758 grep -v '^ *+' conftest.er1 >conftest.err
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } >/dev/null; then
28763 if test -s conftest.err; then
28764 ac_cpp_err=$ac_c_preproc_warn_flag
28765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28772 if test -z "$ac_cpp_err"; then
28773 ac_header_preproc=yes
28775 echo "$as_me: failed program was:" >&5
28776 sed 's/^/| /' conftest.$ac_ext >&5
28778 ac_header_preproc=no
28781 rm -f conftest.err conftest.$ac_ext
28782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28783 echo "${ECHO_T}$ac_header_preproc" >&6; }
28785 # So? What about this header?
28786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28792 ac_header_preproc=yes
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28808 ## ----------------------------------- ##
28809 ## Report this to llvmbugs@cs.uiuc.edu ##
28810 ## ----------------------------------- ##
28812 ) | sed "s/^/$as_me: WARNING: /" >&2
28815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28818 echo $ECHO_N "(cached) $ECHO_C" >&6
28820 eval "$as_ac_Header=\$ac_header_preproc"
28822 ac_res=`eval echo '${'$as_ac_Header'}'`
28823 { echo "$as_me:$LINENO: result: $ac_res" >&5
28824 echo "${ECHO_T}$ac_res" >&6; }
28827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28828 cat >>confdefs.h <<_ACEOF
28829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28850 ac_res=`eval echo '${'$as_ac_Header'}'`
28851 { echo "$as_me:$LINENO: result: $ac_res" >&5
28852 echo "${ECHO_T}$ac_res" >&6; }
28854 # Is the header compilable?
28855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28857 cat >conftest.$ac_ext <<_ACEOF
28860 cat confdefs.h >>conftest.$ac_ext
28861 cat >>conftest.$ac_ext <<_ACEOF
28862 /* end confdefs.h. */
28863 $ac_includes_default
28864 #include <$ac_header>
28866 rm -f conftest.$ac_objext
28867 if { (ac_try="$ac_compile"
28868 case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_compile") 2>conftest.er1
28875 grep -v '^ *+' conftest.er1 >conftest.err
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
28880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28881 { (case "(($ac_try" in
28882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_try") 2>&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28900 ac_header_compiler=yes
28902 echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28905 ac_header_compiler=no
28908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28910 echo "${ECHO_T}$ac_header_compiler" >&6; }
28912 # Is the header present?
28913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28915 cat >conftest.$ac_ext <<_ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h. */
28921 #include <$ac_header>
28923 if { (ac_try="$ac_cpp conftest.$ac_ext"
28924 case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28931 grep -v '^ *+' conftest.er1 >conftest.err
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } >/dev/null; then
28936 if test -s conftest.err; then
28937 ac_cpp_err=$ac_c_preproc_warn_flag
28938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28945 if test -z "$ac_cpp_err"; then
28946 ac_header_preproc=yes
28948 echo "$as_me: failed program was:" >&5
28949 sed 's/^/| /' conftest.$ac_ext >&5
28951 ac_header_preproc=no
28954 rm -f conftest.err conftest.$ac_ext
28955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28956 echo "${ECHO_T}$ac_header_preproc" >&6; }
28958 # So? What about this header?
28959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28965 ac_header_preproc=yes
28968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28981 ## ----------------------------------- ##
28982 ## Report this to llvmbugs@cs.uiuc.edu ##
28983 ## ----------------------------------- ##
28985 ) | sed "s/^/$as_me: WARNING: /" >&2
28988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28991 echo $ECHO_N "(cached) $ECHO_C" >&6
28993 eval "$as_ac_Header=\$ac_header_preproc"
28995 ac_res=`eval echo '${'$as_ac_Header'}'`
28996 { echo "$as_me:$LINENO: result: $ac_res" >&5
28997 echo "${ECHO_T}$ac_res" >&6; }
29000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29001 cat >>confdefs.h <<_ACEOF
29002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29012 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29019 echo $ECHO_N "(cached) $ECHO_C" >&6
29021 ac_res=`eval echo '${'$as_ac_Header'}'`
29022 { echo "$as_me:$LINENO: result: $ac_res" >&5
29023 echo "${ECHO_T}$ac_res" >&6; }
29025 # Is the header compilable?
29026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29028 cat >conftest.$ac_ext <<_ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h. */
29034 $ac_includes_default
29035 #include <$ac_header>
29037 rm -f conftest.$ac_objext
29038 if { (ac_try="$ac_compile"
29039 case "(($ac_try" in
29040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29044 (eval "$ac_compile") 2>conftest.er1
29046 grep -v '^ *+' conftest.er1 >conftest.err
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } &&
29051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29052 { (case "(($ac_try" in
29053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054 *) ac_try_echo=$ac_try;;
29056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29057 (eval "$ac_try") 2>&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); }; } &&
29061 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29071 ac_header_compiler=yes
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29076 ac_header_compiler=no
29079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29081 echo "${ECHO_T}$ac_header_compiler" >&6; }
29083 # Is the header present?
29084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29086 cat >conftest.$ac_ext <<_ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h. */
29092 #include <$ac_header>
29094 if { (ac_try="$ac_cpp conftest.$ac_ext"
29095 case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1 >conftest.err
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } >/dev/null; then
29107 if test -s conftest.err; then
29108 ac_cpp_err=$ac_c_preproc_warn_flag
29109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29116 if test -z "$ac_cpp_err"; then
29117 ac_header_preproc=yes
29119 echo "$as_me: failed program was:" >&5
29120 sed 's/^/| /' conftest.$ac_ext >&5
29122 ac_header_preproc=no
29125 rm -f conftest.err conftest.$ac_ext
29126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29127 echo "${ECHO_T}$ac_header_preproc" >&6; }
29129 # So? What about this header?
29130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29136 ac_header_preproc=yes
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29152 ## ----------------------------------- ##
29153 ## Report this to llvmbugs@cs.uiuc.edu ##
29154 ## ----------------------------------- ##
29156 ) | sed "s/^/$as_me: WARNING: /" >&2
29159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29162 echo $ECHO_N "(cached) $ECHO_C" >&6
29164 eval "$as_ac_Header=\$ac_header_preproc"
29166 ac_res=`eval echo '${'$as_ac_Header'}'`
29167 { echo "$as_me:$LINENO: result: $ac_res" >&5
29168 echo "${ECHO_T}$ac_res" >&6; }
29171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29172 cat >>confdefs.h <<_ACEOF
29173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29180 if test "$ENABLE_THREADS" -eq 1 ; then
29181 if test "${ac_cv_header_pthread_h+set}" = set; then
29182 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29183 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29184 if test "${ac_cv_header_pthread_h+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29187 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29188 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29190 # Is the header compilable?
29191 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29192 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29193 cat >conftest.$ac_ext <<_ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 $ac_includes_default
29200 #include <pthread.h>
29202 rm -f conftest.$ac_objext
29203 if { (ac_try="$ac_compile"
29204 case "(($ac_try" in
29205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29206 *) ac_try_echo=$ac_try;;
29208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29209 (eval "$ac_compile") 2>conftest.er1
29211 grep -v '^ *+' conftest.er1 >conftest.err
29213 cat conftest.err >&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } &&
29216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29217 { (case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_try") 2>&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; } &&
29226 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29236 ac_header_compiler=yes
29238 echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29241 ac_header_compiler=no
29244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29246 echo "${ECHO_T}$ac_header_compiler" >&6; }
29248 # Is the header present?
29249 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29250 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29251 cat >conftest.$ac_ext <<_ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29257 #include <pthread.h>
29259 if { (ac_try="$ac_cpp conftest.$ac_ext"
29260 case "(($ac_try" in
29261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262 *) ac_try_echo=$ac_try;;
29264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29267 grep -v '^ *+' conftest.er1 >conftest.err
29269 cat conftest.err >&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } >/dev/null; then
29272 if test -s conftest.err; then
29273 ac_cpp_err=$ac_c_preproc_warn_flag
29274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29281 if test -z "$ac_cpp_err"; then
29282 ac_header_preproc=yes
29284 echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29287 ac_header_preproc=no
29290 rm -f conftest.err conftest.$ac_ext
29291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29292 echo "${ECHO_T}$ac_header_preproc" >&6; }
29294 # So? What about this header?
29295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29297 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29298 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29299 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29300 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29301 ac_header_preproc=yes
29304 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29305 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29306 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29307 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29308 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29309 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29311 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29313 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29314 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29315 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29317 ## ----------------------------------- ##
29318 ## Report this to llvmbugs@cs.uiuc.edu ##
29319 ## ----------------------------------- ##
29321 ) | sed "s/^/$as_me: WARNING: /" >&2
29324 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29325 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29326 if test "${ac_cv_header_pthread_h+set}" = set; then
29327 echo $ECHO_N "(cached) $ECHO_C" >&6
29329 ac_cv_header_pthread_h=$ac_header_preproc
29331 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29332 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29335 if test $ac_cv_header_pthread_h = yes; then
29351 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29352 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29353 if test "${ac_cv_huge_val_sanity+set}" = set; then
29354 echo $ECHO_N "(cached) $ECHO_C" >&6
29358 ac_cpp='$CXXCPP $CPPFLAGS'
29359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29364 if test "$cross_compiling" = yes; then
29365 ac_cv_huge_val_sanity=yes
29367 cat >conftest.$ac_ext <<_ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h. */
29377 double x = HUGE_VAL; return x != x;
29382 rm -f conftest$ac_exeext
29383 if { (ac_try="$ac_link"
29384 case "(($ac_try" in
29385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386 *) ac_try_echo=$ac_try;;
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389 (eval "$ac_link") 2>&5
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29393 { (case "(($ac_try" in
29394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29395 *) ac_try_echo=$ac_try;;
29397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29398 (eval "$ac_try") 2>&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); }; }; then
29402 ac_cv_huge_val_sanity=yes
29404 echo "$as_me: program exited with status $ac_status" >&5
29405 echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29408 ( exit $ac_status )
29409 ac_cv_huge_val_sanity=no
29411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29416 ac_cpp='$CPP $CPPFLAGS'
29417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29423 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29424 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29425 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29428 { echo "$as_me:$LINENO: checking for pid_t" >&5
29429 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29430 if test "${ac_cv_type_pid_t+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29433 cat >conftest.$ac_ext <<_ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29439 $ac_includes_default
29440 typedef pid_t ac__type_new_;
29444 if ((ac__type_new_ *) 0)
29446 if (sizeof (ac__type_new_))
29452 rm -f conftest.$ac_objext
29453 if { (ac_try="$ac_compile"
29454 case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_compile") 2>conftest.er1
29461 grep -v '^ *+' conftest.er1 >conftest.err
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
29466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29486 ac_cv_type_pid_t=yes
29488 echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29491 ac_cv_type_pid_t=no
29494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29496 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29497 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29498 if test $ac_cv_type_pid_t = yes; then
29502 cat >>confdefs.h <<_ACEOF
29508 { echo "$as_me:$LINENO: checking for size_t" >&5
29509 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29510 if test "${ac_cv_type_size_t+set}" = set; then
29511 echo $ECHO_N "(cached) $ECHO_C" >&6
29513 cat >conftest.$ac_ext <<_ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h. */
29519 $ac_includes_default
29520 typedef size_t ac__type_new_;
29524 if ((ac__type_new_ *) 0)
29526 if (sizeof (ac__type_new_))
29532 rm -f conftest.$ac_objext
29533 if { (ac_try="$ac_compile"
29534 case "(($ac_try" in
29535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 *) ac_try_echo=$ac_try;;
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539 (eval "$ac_compile") 2>conftest.er1
29541 grep -v '^ *+' conftest.er1 >conftest.err
29543 cat conftest.err >&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } &&
29546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29547 { (case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_try") 2>&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29566 ac_cv_type_size_t=yes
29568 echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29571 ac_cv_type_size_t=no
29574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29576 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29577 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29578 if test $ac_cv_type_size_t = yes; then
29582 cat >>confdefs.h <<_ACEOF
29583 #define size_t unsigned int
29588 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29589 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29590 if test "${ac_cv_type_signal+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29593 cat >conftest.$ac_ext <<_ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h. */
29599 #include <sys/types.h>
29600 #include <signal.h>
29605 return *(signal (0, 0)) (0) == 1;
29610 rm -f conftest.$ac_objext
29611 if { (ac_try="$ac_compile"
29612 case "(($ac_try" in
29613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614 *) ac_try_echo=$ac_try;;
29616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29617 (eval "$ac_compile") 2>conftest.er1
29619 grep -v '^ *+' conftest.er1 >conftest.err
29621 cat conftest.err >&5
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); } &&
29624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29625 { (case "(($ac_try" in
29626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627 *) ac_try_echo=$ac_try;;
29629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630 (eval "$ac_try") 2>&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); }; } &&
29634 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29644 ac_cv_type_signal=int
29646 echo "$as_me: failed program was:" >&5
29647 sed 's/^/| /' conftest.$ac_ext >&5
29649 ac_cv_type_signal=void
29652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29654 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29655 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29657 cat >>confdefs.h <<_ACEOF
29658 #define RETSIGTYPE $ac_cv_type_signal
29662 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29663 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29664 if test "${ac_cv_struct_tm+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 #include <sys/types.h>
29679 struct tm *tp; tp->tm_sec;
29684 rm -f conftest.$ac_objext
29685 if { (ac_try="$ac_compile"
29686 case "(($ac_try" in
29687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29688 *) ac_try_echo=$ac_try;;
29690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29691 (eval "$ac_compile") 2>conftest.er1
29693 grep -v '^ *+' conftest.er1 >conftest.err
29695 cat conftest.err >&5
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); } &&
29698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29699 { (case "(($ac_try" in
29700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29701 *) ac_try_echo=$ac_try;;
29703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704 (eval "$ac_try") 2>&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; } &&
29708 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29718 ac_cv_struct_tm=time.h
29720 echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29723 ac_cv_struct_tm=sys/time.h
29726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29728 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29729 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29730 if test $ac_cv_struct_tm = sys/time.h; then
29732 cat >>confdefs.h <<\_ACEOF
29733 #define TM_IN_SYS_TIME 1
29738 { echo "$as_me:$LINENO: checking for int64_t" >&5
29739 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29740 if test "${ac_cv_type_int64_t+set}" = set; then
29741 echo $ECHO_N "(cached) $ECHO_C" >&6
29743 cat >conftest.$ac_ext <<_ACEOF
29746 cat confdefs.h >>conftest.$ac_ext
29747 cat >>conftest.$ac_ext <<_ACEOF
29748 /* end confdefs.h. */
29749 $ac_includes_default
29750 typedef int64_t ac__type_new_;
29754 if ((ac__type_new_ *) 0)
29756 if (sizeof (ac__type_new_))
29762 rm -f conftest.$ac_objext
29763 if { (ac_try="$ac_compile"
29764 case "(($ac_try" in
29765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29766 *) ac_try_echo=$ac_try;;
29768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29769 (eval "$ac_compile") 2>conftest.er1
29771 grep -v '^ *+' conftest.er1 >conftest.err
29773 cat conftest.err >&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); } &&
29776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29777 { (case "(($ac_try" in
29778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29779 *) ac_try_echo=$ac_try;;
29781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29782 (eval "$ac_try") 2>&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; } &&
29786 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29796 ac_cv_type_int64_t=yes
29798 echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29801 ac_cv_type_int64_t=no
29804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29806 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29807 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29808 if test $ac_cv_type_int64_t = yes; then
29810 cat >>confdefs.h <<_ACEOF
29811 #define HAVE_INT64_T 1
29816 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29817 echo "$as_me: error: Type int64_t required but not found" >&2;}
29818 { (exit 1); exit 1; }; }
29821 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29822 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29823 if test "${ac_cv_type_uint64_t+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 cat >conftest.$ac_ext <<_ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29832 $ac_includes_default
29833 typedef uint64_t ac__type_new_;
29837 if ((ac__type_new_ *) 0)
29839 if (sizeof (ac__type_new_))
29845 rm -f conftest.$ac_objext
29846 if { (ac_try="$ac_compile"
29847 case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_compile") 2>conftest.er1
29854 grep -v '^ *+' conftest.er1 >conftest.err
29856 cat conftest.err >&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } &&
29859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29860 { (case "(($ac_try" in
29861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29862 *) ac_try_echo=$ac_try;;
29864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29865 (eval "$ac_try") 2>&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; } &&
29869 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29879 ac_cv_type_uint64_t=yes
29881 echo "$as_me: failed program was:" >&5
29882 sed 's/^/| /' conftest.$ac_ext >&5
29884 ac_cv_type_uint64_t=no
29887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29889 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29890 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29891 if test $ac_cv_type_uint64_t = yes; then
29893 cat >>confdefs.h <<_ACEOF
29894 #define HAVE_UINT64_T 1
29899 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29900 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29901 if test "${ac_cv_type_u_int64_t+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29904 cat >conftest.$ac_ext <<_ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29910 $ac_includes_default
29911 typedef u_int64_t ac__type_new_;
29915 if ((ac__type_new_ *) 0)
29917 if (sizeof (ac__type_new_))
29923 rm -f conftest.$ac_objext
29924 if { (ac_try="$ac_compile"
29925 case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_compile") 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
29937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938 { (case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_try") 2>&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; } &&
29947 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29957 ac_cv_type_u_int64_t=yes
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_cv_type_u_int64_t=no
29965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29967 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29968 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29969 if test $ac_cv_type_u_int64_t = yes; then
29971 cat >>confdefs.h <<_ACEOF
29972 #define HAVE_U_INT64_T 1
29977 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29978 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29979 { (exit 1); exit 1; }; }
29993 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
30001 cat >conftest.$ac_ext <<_ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h. */
30007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30009 #define $ac_func innocuous_$ac_func
30011 /* System header to define __stub macros and hopefully few prototypes,
30012 which can conflict with char $ac_func (); below.
30013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30014 <limits.h> exists even on freestanding compilers. */
30017 # include <limits.h>
30019 # include <assert.h>
30024 /* Override any GCC internal prototype to avoid an error.
30025 Use char because int might match the return type of a GCC
30026 builtin and then its argument prototype would still apply. */
30031 /* The GNU C library defines this for functions which it implements
30032 to always fail with ENOSYS. Some functions are actually named
30033 something starting with __ and the normal name is an alias. */
30034 #if defined __stub_$ac_func || defined __stub___$ac_func
30041 return $ac_func ();
30046 rm -f conftest.$ac_objext conftest$ac_exeext
30047 if { (ac_try="$ac_link"
30048 case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_link") 2>conftest.er1
30055 grep -v '^ *+' conftest.er1 >conftest.err
30057 cat conftest.err >&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); } &&
30060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30061 { (case "(($ac_try" in
30062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30063 *) ac_try_echo=$ac_try;;
30065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30066 (eval "$ac_try") 2>&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; } &&
30070 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30080 eval "$as_ac_var=yes"
30082 echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.$ac_ext >&5
30085 eval "$as_ac_var=no"
30088 rm -f core conftest.err conftest.$ac_objext \
30089 conftest$ac_exeext conftest.$ac_ext
30091 ac_res=`eval echo '${'$as_ac_var'}'`
30092 { echo "$as_me:$LINENO: result: $ac_res" >&5
30093 echo "${ECHO_T}$ac_res" >&6; }
30094 if test `eval echo '${'$as_ac_var'}'` = yes; then
30095 cat >>confdefs.h <<_ACEOF
30096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30108 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
30110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 cat >conftest.$ac_ext <<_ACEOF
30119 cat confdefs.h >>conftest.$ac_ext
30120 cat >>conftest.$ac_ext <<_ACEOF
30121 /* end confdefs.h. */
30122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30124 #define $ac_func innocuous_$ac_func
30126 /* System header to define __stub macros and hopefully few prototypes,
30127 which can conflict with char $ac_func (); below.
30128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30129 <limits.h> exists even on freestanding compilers. */
30132 # include <limits.h>
30134 # include <assert.h>
30139 /* Override any GCC internal prototype to avoid an error.
30140 Use char because int might match the return type of a GCC
30141 builtin and then its argument prototype would still apply. */
30146 /* The GNU C library defines this for functions which it implements
30147 to always fail with ENOSYS. Some functions are actually named
30148 something starting with __ and the normal name is an alias. */
30149 #if defined __stub_$ac_func || defined __stub___$ac_func
30156 return $ac_func ();
30161 rm -f conftest.$ac_objext conftest$ac_exeext
30162 if { (ac_try="$ac_link"
30163 case "(($ac_try" in
30164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165 *) ac_try_echo=$ac_try;;
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168 (eval "$ac_link") 2>conftest.er1
30170 grep -v '^ *+' conftest.er1 >conftest.err
30172 cat conftest.err >&5
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); } &&
30175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30176 { (case "(($ac_try" in
30177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178 *) ac_try_echo=$ac_try;;
30180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181 (eval "$ac_try") 2>&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); }; } &&
30185 { ac_try='test -s conftest$ac_exeext'
30186 { (case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195 eval "$as_ac_var=yes"
30197 echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30200 eval "$as_ac_var=no"
30203 rm -f core conftest.err conftest.$ac_objext \
30204 conftest$ac_exeext conftest.$ac_ext
30206 ac_res=`eval echo '${'$as_ac_var'}'`
30207 { echo "$as_me:$LINENO: result: $ac_res" >&5
30208 echo "${ECHO_T}$ac_res" >&6; }
30209 if test `eval echo '${'$as_ac_var'}'` = yes; then
30210 cat >>confdefs.h <<_ACEOF
30211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30224 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30230 echo $ECHO_N "(cached) $ECHO_C" >&6
30232 cat >conftest.$ac_ext <<_ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h. */
30238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30240 #define $ac_func innocuous_$ac_func
30242 /* System header to define __stub macros and hopefully few prototypes,
30243 which can conflict with char $ac_func (); below.
30244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30245 <limits.h> exists even on freestanding compilers. */
30248 # include <limits.h>
30250 # include <assert.h>
30255 /* Override any GCC internal prototype to avoid an error.
30256 Use char because int might match the return type of a GCC
30257 builtin and then its argument prototype would still apply. */
30262 /* The GNU C library defines this for functions which it implements
30263 to always fail with ENOSYS. Some functions are actually named
30264 something starting with __ and the normal name is an alias. */
30265 #if defined __stub_$ac_func || defined __stub___$ac_func
30272 return $ac_func ();
30277 rm -f conftest.$ac_objext conftest$ac_exeext
30278 if { (ac_try="$ac_link"
30279 case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_link") 2>conftest.er1
30286 grep -v '^ *+' conftest.er1 >conftest.err
30288 cat conftest.err >&5
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); } &&
30291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30292 { (case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_try") 2>&5
30299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300 (exit $ac_status); }; } &&
30301 { ac_try='test -s conftest$ac_exeext'
30302 { (case "(($ac_try" in
30303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30304 *) ac_try_echo=$ac_try;;
30306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30307 (eval "$ac_try") 2>&5
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; }; then
30311 eval "$as_ac_var=yes"
30313 echo "$as_me: failed program was:" >&5
30314 sed 's/^/| /' conftest.$ac_ext >&5
30316 eval "$as_ac_var=no"
30319 rm -f core conftest.err conftest.$ac_objext \
30320 conftest$ac_exeext conftest.$ac_ext
30322 ac_res=`eval echo '${'$as_ac_var'}'`
30323 { echo "$as_me:$LINENO: result: $ac_res" >&5
30324 echo "${ECHO_T}$ac_res" >&6; }
30325 if test `eval echo '${'$as_ac_var'}'` = yes; then
30326 cat >>confdefs.h <<_ACEOF
30327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
30345 cat >conftest.$ac_ext <<_ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30353 #define $ac_func innocuous_$ac_func
30355 /* System header to define __stub macros and hopefully few prototypes,
30356 which can conflict with char $ac_func (); below.
30357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30358 <limits.h> exists even on freestanding compilers. */
30361 # include <limits.h>
30363 # include <assert.h>
30368 /* Override any GCC internal prototype to avoid an error.
30369 Use char because int might match the return type of a GCC
30370 builtin and then its argument prototype would still apply. */
30375 /* The GNU C library defines this for functions which it implements
30376 to always fail with ENOSYS. Some functions are actually named
30377 something starting with __ and the normal name is an alias. */
30378 #if defined __stub_$ac_func || defined __stub___$ac_func
30385 return $ac_func ();
30390 rm -f conftest.$ac_objext conftest$ac_exeext
30391 if { (ac_try="$ac_link"
30392 case "(($ac_try" in
30393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30394 *) ac_try_echo=$ac_try;;
30396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30397 (eval "$ac_link") 2>conftest.er1
30399 grep -v '^ *+' conftest.er1 >conftest.err
30401 cat conftest.err >&5
30402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); } &&
30404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30405 { (case "(($ac_try" in
30406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30407 *) ac_try_echo=$ac_try;;
30409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30410 (eval "$ac_try") 2>&5
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); }; } &&
30414 { ac_try='test -s conftest$ac_exeext'
30415 { (case "(($ac_try" in
30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417 *) ac_try_echo=$ac_try;;
30419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420 (eval "$ac_try") 2>&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; }; then
30424 eval "$as_ac_var=yes"
30426 echo "$as_me: failed program was:" >&5
30427 sed 's/^/| /' conftest.$ac_ext >&5
30429 eval "$as_ac_var=no"
30432 rm -f core conftest.err conftest.$ac_objext \
30433 conftest$ac_exeext conftest.$ac_ext
30435 ac_res=`eval echo '${'$as_ac_var'}'`
30436 { echo "$as_me:$LINENO: result: $ac_res" >&5
30437 echo "${ECHO_T}$ac_res" >&6; }
30438 if test `eval echo '${'$as_ac_var'}'` = yes; then
30439 cat >>confdefs.h <<_ACEOF
30440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30450 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30456 echo $ECHO_N "(cached) $ECHO_C" >&6
30458 cat >conftest.$ac_ext <<_ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h. */
30464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30466 #define $ac_func innocuous_$ac_func
30468 /* System header to define __stub macros and hopefully few prototypes,
30469 which can conflict with char $ac_func (); below.
30470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30471 <limits.h> exists even on freestanding compilers. */
30474 # include <limits.h>
30476 # include <assert.h>
30481 /* Override any GCC internal prototype to avoid an error.
30482 Use char because int might match the return type of a GCC
30483 builtin and then its argument prototype would still apply. */
30488 /* The GNU C library defines this for functions which it implements
30489 to always fail with ENOSYS. Some functions are actually named
30490 something starting with __ and the normal name is an alias. */
30491 #if defined __stub_$ac_func || defined __stub___$ac_func
30498 return $ac_func ();
30503 rm -f conftest.$ac_objext conftest$ac_exeext
30504 if { (ac_try="$ac_link"
30505 case "(($ac_try" in
30506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30507 *) ac_try_echo=$ac_try;;
30509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30510 (eval "$ac_link") 2>conftest.er1
30512 grep -v '^ *+' conftest.er1 >conftest.err
30514 cat conftest.err >&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); } &&
30517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30518 { (case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_try") 2>&5
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; } &&
30527 { ac_try='test -s conftest$ac_exeext'
30528 { (case "(($ac_try" in
30529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530 *) ac_try_echo=$ac_try;;
30532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30533 (eval "$ac_try") 2>&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; }; then
30537 eval "$as_ac_var=yes"
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30542 eval "$as_ac_var=no"
30545 rm -f core conftest.err conftest.$ac_objext \
30546 conftest$ac_exeext conftest.$ac_ext
30548 ac_res=`eval echo '${'$as_ac_var'}'`
30549 { echo "$as_me:$LINENO: result: $ac_res" >&5
30550 echo "${ECHO_T}$ac_res" >&6; }
30551 if test `eval echo '${'$as_ac_var'}'` = yes; then
30552 cat >>confdefs.h <<_ACEOF
30553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30559 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30560 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30561 if test "${llvm_cv_c_printf_a+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
30565 ac_cpp='$CPP $CPPFLAGS'
30566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30570 if test "$cross_compiling" = yes; then
30571 llvmac_cv_c_printf_a=no
30573 cat >conftest.$ac_ext <<_ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h. */
30582 #include <stdlib.h>
30588 volatile double A, B;
30592 sprintf(Buffer, "%a", A);
30596 if (A != 0x1.999999999999ap-4)
30603 rm -f conftest$ac_exeext
30604 if { (ac_try="$ac_link"
30605 case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_link") 2>&5
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30614 { (case "(($ac_try" in
30615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30616 *) ac_try_echo=$ac_try;;
30618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30619 (eval "$ac_try") 2>&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
30623 llvm_cv_c_printf_a=yes
30625 echo "$as_me: program exited with status $ac_status" >&5
30626 echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30629 ( exit $ac_status )
30630 llvmac_cv_c_printf_a=no
30632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30637 ac_cpp='$CPP $CPPFLAGS'
30638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30643 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30644 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30645 if test "$llvm_cv_c_printf_a" = "yes"; then
30647 cat >>confdefs.h <<\_ACEOF
30648 #define HAVE_PRINTF_A 1
30653 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30654 # for constant arguments. Useless!
30655 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30656 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30657 if test "${ac_cv_working_alloca_h+set}" = set; then
30658 echo $ECHO_N "(cached) $ECHO_C" >&6
30660 cat >conftest.$ac_ext <<_ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h. */
30666 #include <alloca.h>
30670 char *p = (char *) alloca (2 * sizeof (int));
30676 rm -f conftest.$ac_objext conftest$ac_exeext
30677 if { (ac_try="$ac_link"
30678 case "(($ac_try" in
30679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680 *) ac_try_echo=$ac_try;;
30682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683 (eval "$ac_link") 2>conftest.er1
30685 grep -v '^ *+' conftest.er1 >conftest.err
30687 cat conftest.err >&5
30688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); } &&
30690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30691 { (case "(($ac_try" in
30692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693 *) ac_try_echo=$ac_try;;
30695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696 (eval "$ac_try") 2>&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; } &&
30700 { ac_try='test -s conftest$ac_exeext'
30701 { (case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_try") 2>&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; }; then
30710 ac_cv_working_alloca_h=yes
30712 echo "$as_me: failed program was:" >&5
30713 sed 's/^/| /' conftest.$ac_ext >&5
30715 ac_cv_working_alloca_h=no
30718 rm -f core conftest.err conftest.$ac_objext \
30719 conftest$ac_exeext conftest.$ac_ext
30721 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30722 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30723 if test $ac_cv_working_alloca_h = yes; then
30725 cat >>confdefs.h <<\_ACEOF
30726 #define HAVE_ALLOCA_H 1
30731 { echo "$as_me:$LINENO: checking for alloca" >&5
30732 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30733 if test "${ac_cv_func_alloca_works+set}" = set; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30736 cat >conftest.$ac_ext <<_ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h. */
30743 # define alloca __builtin_alloca
30746 # include <malloc.h>
30747 # define alloca _alloca
30750 # include <alloca.h>
30755 # ifndef alloca /* predefined by HP cc +Olibcalls */
30766 char *p = (char *) alloca (1);
30772 rm -f conftest.$ac_objext conftest$ac_exeext
30773 if { (ac_try="$ac_link"
30774 case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_link") 2>conftest.er1
30781 grep -v '^ *+' conftest.er1 >conftest.err
30783 cat conftest.err >&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
30786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30787 { (case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; } &&
30796 { ac_try='test -s conftest$ac_exeext'
30797 { (case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_try") 2>&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
30806 ac_cv_func_alloca_works=yes
30808 echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30811 ac_cv_func_alloca_works=no
30814 rm -f core conftest.err conftest.$ac_objext \
30815 conftest$ac_exeext conftest.$ac_ext
30817 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30818 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30820 if test $ac_cv_func_alloca_works = yes; then
30822 cat >>confdefs.h <<\_ACEOF
30823 #define HAVE_ALLOCA 1
30827 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30828 # that cause trouble. Some versions do not even contain alloca or
30829 # contain a buggy version. If you still want to use their alloca,
30830 # use ar to extract alloca.o from them instead of compiling alloca.c.
30832 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30834 cat >>confdefs.h <<\_ACEOF
30839 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30840 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30841 if test "${ac_cv_os_cray+set}" = set; then
30842 echo $ECHO_N "(cached) $ECHO_C" >&6
30844 cat >conftest.$ac_ext <<_ACEOF
30847 cat confdefs.h >>conftest.$ac_ext
30848 cat >>conftest.$ac_ext <<_ACEOF
30849 /* end confdefs.h. */
30850 #if defined CRAY && ! defined CRAY2
30857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30858 $EGREP "webecray" >/dev/null 2>&1; then
30866 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30867 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30868 if test $ac_cv_os_cray = yes; then
30869 for ac_func in _getb67 GETB67 getb67; do
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30876 cat >conftest.$ac_ext <<_ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h. */
30882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30884 #define $ac_func innocuous_$ac_func
30886 /* System header to define __stub macros and hopefully few prototypes,
30887 which can conflict with char $ac_func (); below.
30888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889 <limits.h> exists even on freestanding compilers. */
30892 # include <limits.h>
30894 # include <assert.h>
30899 /* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
30906 /* The GNU C library defines this for functions which it implements
30907 to always fail with ENOSYS. Some functions are actually named
30908 something starting with __ and the normal name is an alias. */
30909 #if defined __stub_$ac_func || defined __stub___$ac_func
30916 return $ac_func ();
30921 rm -f conftest.$ac_objext conftest$ac_exeext
30922 if { (ac_try="$ac_link"
30923 case "(($ac_try" in
30924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925 *) ac_try_echo=$ac_try;;
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928 (eval "$ac_link") 2>conftest.er1
30930 grep -v '^ *+' conftest.er1 >conftest.err
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } &&
30935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936 { (case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_try") 2>&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; } &&
30945 { ac_try='test -s conftest$ac_exeext'
30946 { (case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_try") 2>&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; }; then
30955 eval "$as_ac_var=yes"
30957 echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30960 eval "$as_ac_var=no"
30963 rm -f core conftest.err conftest.$ac_objext \
30964 conftest$ac_exeext conftest.$ac_ext
30966 ac_res=`eval echo '${'$as_ac_var'}'`
30967 { echo "$as_me:$LINENO: result: $ac_res" >&5
30968 echo "${ECHO_T}$ac_res" >&6; }
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30971 cat >>confdefs.h <<_ACEOF
30972 #define CRAY_STACKSEG_END $ac_func
30981 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30982 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30983 if test "${ac_cv_c_stack_direction+set}" = set; then
30984 echo $ECHO_N "(cached) $ECHO_C" >&6
30986 if test "$cross_compiling" = yes; then
30987 ac_cv_c_stack_direction=0
30989 cat >conftest.$ac_ext <<_ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h. */
30995 $ac_includes_default
30997 find_stack_direction ()
30999 static char *addr = 0;
31004 return find_stack_direction ();
31007 return (&dummy > addr) ? 1 : -1;
31013 return find_stack_direction () < 0;
31016 rm -f conftest$ac_exeext
31017 if { (ac_try="$ac_link"
31018 case "(($ac_try" in
31019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31020 *) ac_try_echo=$ac_try;;
31022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31023 (eval "$ac_link") 2>&5
31025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31027 { (case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_try") 2>&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
31036 ac_cv_c_stack_direction=1
31038 echo "$as_me: program exited with status $ac_status" >&5
31039 echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31042 ( exit $ac_status )
31043 ac_cv_c_stack_direction=-1
31045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31050 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31051 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31053 cat >>confdefs.h <<_ACEOF
31054 #define STACK_DIRECTION $ac_cv_c_stack_direction
31061 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31062 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31063 if test "${ac_cv_func_rand48+set}" = set; then
31064 echo $ECHO_N "(cached) $ECHO_C" >&6
31067 ac_cpp='$CXXCPP $CPPFLAGS'
31068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31072 cat >conftest.$ac_ext <<_ACEOF
31075 cat confdefs.h >>conftest.$ac_ext
31076 cat >>conftest.$ac_ext <<_ACEOF
31077 /* end confdefs.h. */
31078 #include <stdlib.h>
31082 srand48(0);lrand48();drand48();
31087 rm -f conftest.$ac_objext
31088 if { (ac_try="$ac_compile"
31089 case "(($ac_try" in
31090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31091 *) ac_try_echo=$ac_try;;
31093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31094 (eval "$ac_compile") 2>conftest.er1
31096 grep -v '^ *+' conftest.er1 >conftest.err
31098 cat conftest.err >&5
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } &&
31101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31102 { (case "(($ac_try" in
31103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31104 *) ac_try_echo=$ac_try;;
31106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31107 (eval "$ac_try") 2>&5
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); }; } &&
31111 { ac_try='test -s conftest.$ac_objext'
31112 { (case "(($ac_try" in
31113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31114 *) ac_try_echo=$ac_try;;
31116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31117 (eval "$ac_try") 2>&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; }; then
31121 ac_cv_func_rand48=yes
31123 echo "$as_me: failed program was:" >&5
31124 sed 's/^/| /' conftest.$ac_ext >&5
31126 ac_cv_func_rand48=no
31129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31131 ac_cpp='$CPP $CPPFLAGS'
31132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31137 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31138 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31140 if test "$ac_cv_func_rand48" = "yes" ; then
31142 cat >>confdefs.h <<\_ACEOF
31143 #define HAVE_RAND48 1
31149 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31150 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31151 if test "${ac_cv_cxx_namespaces+set}" = set; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31155 ac_cpp='$CXXCPP $CPPFLAGS'
31156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31160 cat >conftest.$ac_ext <<_ACEOF
31163 cat confdefs.h >>conftest.$ac_ext
31164 cat >>conftest.$ac_ext <<_ACEOF
31165 /* end confdefs.h. */
31166 namespace Outer { namespace Inner { int i = 0; }}
31170 using namespace Outer::Inner; return i;
31175 rm -f conftest.$ac_objext
31176 if { (ac_try="$ac_compile"
31177 case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_compile") 2>conftest.er1
31184 grep -v '^ *+' conftest.er1 >conftest.err
31186 cat conftest.err >&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
31189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31190 { (case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_try") 2>&5
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); }; } &&
31199 { ac_try='test -s conftest.$ac_objext'
31200 { (case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_try") 2>&5
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; }; then
31209 ac_cv_cxx_namespaces=yes
31211 echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31214 ac_cv_cxx_namespaces=no
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31219 ac_cpp='$CPP $CPPFLAGS'
31220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31226 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31227 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31228 if test "$ac_cv_cxx_namespaces" = yes; then
31230 cat >>confdefs.h <<\_ACEOF
31231 #define HAVE_NAMESPACES
31236 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31237 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31238 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31239 echo $ECHO_N "(cached) $ECHO_C" >&6
31243 ac_cpp='$CXXCPP $CPPFLAGS'
31244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31248 cat >conftest.$ac_ext <<_ACEOF
31251 cat confdefs.h >>conftest.$ac_ext
31252 cat >>conftest.$ac_ext <<_ACEOF
31253 /* end confdefs.h. */
31254 #include <ext/hash_map>
31255 #ifdef HAVE_NAMESPACES
31256 using namespace std;
31261 hash_map<int, int> t;
31266 rm -f conftest.$ac_objext
31267 if { (ac_try="$ac_compile"
31268 case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273 (eval "$ac_compile") 2>conftest.er1
31275 grep -v '^ *+' conftest.er1 >conftest.err
31277 cat conftest.err >&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } &&
31280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
31290 { ac_try='test -s conftest.$ac_objext'
31291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
31300 ac_cv_cxx_have_std_ext_hash_map=yes
31302 echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31305 ac_cv_cxx_have_std_ext_hash_map=no
31308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31310 ac_cpp='$CPP $CPPFLAGS'
31311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31317 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31318 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31321 cat >>confdefs.h <<\_ACEOF
31322 #define HAVE_STD_EXT_HASH_MAP 1
31327 cat >>confdefs.h <<\_ACEOF
31328 #define HAVE_STD_EXT_HASH_MAP 0
31333 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31334 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31335 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31336 echo $ECHO_N "(cached) $ECHO_C" >&6
31340 ac_cpp='$CXXCPP $CPPFLAGS'
31341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31345 cat >conftest.$ac_ext <<_ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h. */
31351 #include <ext/hash_map>
31352 #ifdef HAVE_NAMESPACES
31353 using namespace __gnu_cxx;
31358 hash_map<int,int> t;
31363 rm -f conftest.$ac_objext
31364 if { (ac_try="$ac_compile"
31365 case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_compile") 2>conftest.er1
31372 grep -v '^ *+' conftest.er1 >conftest.err
31374 cat conftest.err >&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } &&
31377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31378 { (case "(($ac_try" in
31379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31380 *) ac_try_echo=$ac_try;;
31382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31383 (eval "$ac_try") 2>&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); }; } &&
31387 { ac_try='test -s conftest.$ac_objext'
31388 { (case "(($ac_try" in
31389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390 *) ac_try_echo=$ac_try;;
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_try") 2>&5
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; }; then
31397 ac_cv_cxx_have_gnu_ext_hash_map=yes
31399 echo "$as_me: failed program was:" >&5
31400 sed 's/^/| /' conftest.$ac_ext >&5
31402 ac_cv_cxx_have_gnu_ext_hash_map=no
31405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31407 ac_cpp='$CPP $CPPFLAGS'
31408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31413 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31414 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31415 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31418 cat >>confdefs.h <<\_ACEOF
31419 #define HAVE_GNU_EXT_HASH_MAP 1
31424 cat >>confdefs.h <<\_ACEOF
31425 #define HAVE_GNU_EXT_HASH_MAP 0
31430 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31431 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31432 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31437 ac_cpp='$CXXCPP $CPPFLAGS'
31438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31442 cat >conftest.$ac_ext <<_ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h. */
31448 #include <hash_map>
31452 hash_map<int,int> t;
31457 rm -f conftest.$ac_objext
31458 if { (ac_try="$ac_compile"
31459 case "(($ac_try" in
31460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31461 *) ac_try_echo=$ac_try;;
31463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31464 (eval "$ac_compile") 2>conftest.er1
31466 grep -v '^ *+' conftest.er1 >conftest.err
31468 cat conftest.err >&5
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); } &&
31471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31472 { (case "(($ac_try" in
31473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_try") 2>&5
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; } &&
31481 { ac_try='test -s conftest.$ac_objext'
31482 { (case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_try") 2>&5
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
31491 ac_cv_cxx_have_global_hash_map=yes
31493 echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.$ac_ext >&5
31496 ac_cv_cxx_have_global_hash_map=no
31499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31501 ac_cpp='$CPP $CPPFLAGS'
31502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31508 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31509 if test "$ac_cv_cxx_have_global_hash_map" = yes
31512 cat >>confdefs.h <<\_ACEOF
31513 #define HAVE_GLOBAL_HASH_MAP 1
31518 cat >>confdefs.h <<\_ACEOF
31519 #define HAVE_GLOBAL_HASH_MAP 0
31524 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31525 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31526 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31527 echo $ECHO_N "(cached) $ECHO_C" >&6
31531 ac_cpp='$CXXCPP $CPPFLAGS'
31532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31536 cat >conftest.$ac_ext <<_ACEOF
31539 cat confdefs.h >>conftest.$ac_ext
31540 cat >>conftest.$ac_ext <<_ACEOF
31541 /* end confdefs.h. */
31542 #include <ext/hash_set>
31543 #ifdef HAVE_NAMESPACES
31544 using namespace std;
31554 rm -f conftest.$ac_objext
31555 if { (ac_try="$ac_compile"
31556 case "(($ac_try" in
31557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558 *) ac_try_echo=$ac_try;;
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561 (eval "$ac_compile") 2>conftest.er1
31563 grep -v '^ *+' conftest.er1 >conftest.err
31565 cat conftest.err >&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); } &&
31568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; } &&
31578 { ac_try='test -s conftest.$ac_objext'
31579 { (case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_try") 2>&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; }; then
31588 ac_cv_cxx_have_std_ext_hash_set=yes
31590 echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31593 ac_cv_cxx_have_std_ext_hash_set=no
31596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31598 ac_cpp='$CPP $CPPFLAGS'
31599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31604 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31605 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31606 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31609 cat >>confdefs.h <<\_ACEOF
31610 #define HAVE_STD_EXT_HASH_SET 1
31615 cat >>confdefs.h <<\_ACEOF
31616 #define HAVE_STD_EXT_HASH_SET 0
31621 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31622 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31623 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31624 echo $ECHO_N "(cached) $ECHO_C" >&6
31628 ac_cpp='$CXXCPP $CPPFLAGS'
31629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31633 cat >conftest.$ac_ext <<_ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h. */
31639 #include <ext/hash_set>
31640 #ifdef HAVE_NAMESPACES
31641 using namespace __gnu_cxx;
31651 rm -f conftest.$ac_objext
31652 if { (ac_try="$ac_compile"
31653 case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_compile") 2>conftest.er1
31660 grep -v '^ *+' conftest.er1 >conftest.err
31662 cat conftest.err >&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } &&
31665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; } &&
31675 { ac_try='test -s conftest.$ac_objext'
31676 { (case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_try") 2>&5
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); }; }; then
31685 ac_cv_cxx_have_gnu_ext_hash_set=yes
31687 echo "$as_me: failed program was:" >&5
31688 sed 's/^/| /' conftest.$ac_ext >&5
31690 ac_cv_cxx_have_gnu_ext_hash_set=no
31693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31695 ac_cpp='$CPP $CPPFLAGS'
31696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31701 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31702 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31703 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31706 cat >>confdefs.h <<\_ACEOF
31707 #define HAVE_GNU_EXT_HASH_SET 1
31712 cat >>confdefs.h <<\_ACEOF
31713 #define HAVE_GNU_EXT_HASH_SET 0
31718 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31719 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31720 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31721 echo $ECHO_N "(cached) $ECHO_C" >&6
31725 ac_cpp='$CXXCPP $CPPFLAGS'
31726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31730 cat >conftest.$ac_ext <<_ACEOF
31733 cat confdefs.h >>conftest.$ac_ext
31734 cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h. */
31736 #include <hash_set>
31740 hash_set<int> t; return 0;
31745 rm -f conftest.$ac_objext
31746 if { (ac_try="$ac_compile"
31747 case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_compile") 2>conftest.er1
31754 grep -v '^ *+' conftest.er1 >conftest.err
31756 cat conftest.err >&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); } &&
31759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31760 { (case "(($ac_try" in
31761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_try") 2>&5
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; } &&
31769 { ac_try='test -s conftest.$ac_objext'
31770 { (case "(($ac_try" in
31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772 *) ac_try_echo=$ac_try;;
31774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775 (eval "$ac_try") 2>&5
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); }; }; then
31779 ac_cv_cxx_have_global_hash_set=yes
31781 echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31784 ac_cv_cxx_have_global_hash_set=no
31787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31789 ac_cpp='$CPP $CPPFLAGS'
31790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31795 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31796 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31797 if test "$ac_cv_cxx_have_global_hash_set" = yes
31800 cat >>confdefs.h <<\_ACEOF
31801 #define HAVE_GLOBAL_HASH_SET 1
31806 cat >>confdefs.h <<\_ACEOF
31807 #define HAVE_GLOBAL_HASH_SET 0
31812 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31813 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31814 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31815 echo $ECHO_N "(cached) $ECHO_C" >&6
31819 ac_cpp='$CXXCPP $CPPFLAGS'
31820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31824 cat >conftest.$ac_ext <<_ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31830 #include <iterator>
31831 #ifdef HAVE_NAMESPACES
31832 using namespace std;
31837 iterator<int,int,int> t; return 0;
31842 rm -f conftest.$ac_objext
31843 if { (ac_try="$ac_compile"
31844 case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_compile") 2>conftest.er1
31851 grep -v '^ *+' conftest.er1 >conftest.err
31853 cat conftest.err >&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); } &&
31856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31857 { (case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_try") 2>&5
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; } &&
31866 { ac_try='test -s conftest.$ac_objext'
31867 { (case "(($ac_try" in
31868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31869 *) ac_try_echo=$ac_try;;
31871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31872 (eval "$ac_try") 2>&5
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); }; }; then
31876 ac_cv_cxx_have_std_iterator=yes
31878 echo "$as_me: failed program was:" >&5
31879 sed 's/^/| /' conftest.$ac_ext >&5
31881 ac_cv_cxx_have_std_iterator=no
31884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31886 ac_cpp='$CPP $CPPFLAGS'
31887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31893 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31894 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31895 if test "$ac_cv_cxx_have_std_iterator" = yes
31898 cat >>confdefs.h <<\_ACEOF
31899 #define HAVE_STD_ITERATOR 1
31904 cat >>confdefs.h <<\_ACEOF
31905 #define HAVE_STD_ITERATOR 0
31910 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31911 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31912 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31913 echo $ECHO_N "(cached) $ECHO_C" >&6
31917 ac_cpp='$CXXCPP $CPPFLAGS'
31918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31922 cat >conftest.$ac_ext <<_ACEOF
31925 cat confdefs.h >>conftest.$ac_ext
31926 cat >>conftest.$ac_ext <<_ACEOF
31927 /* end confdefs.h. */
31928 #include <iterator>
31929 #ifdef HAVE_NAMESPACES
31930 using namespace std;
31935 bidirectional_iterator<int,int> t; return 0;
31940 rm -f conftest.$ac_objext
31941 if { (ac_try="$ac_compile"
31942 case "(($ac_try" in
31943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944 *) ac_try_echo=$ac_try;;
31946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947 (eval "$ac_compile") 2>conftest.er1
31949 grep -v '^ *+' conftest.er1 >conftest.err
31951 cat conftest.err >&5
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); } &&
31954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31955 { (case "(($ac_try" in
31956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957 *) ac_try_echo=$ac_try;;
31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960 (eval "$ac_try") 2>&5
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); }; } &&
31964 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; }; then
31974 ac_cv_cxx_have_bi_iterator=yes
31976 echo "$as_me: failed program was:" >&5
31977 sed 's/^/| /' conftest.$ac_ext >&5
31979 ac_cv_cxx_have_bi_iterator=no
31982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31984 ac_cpp='$CPP $CPPFLAGS'
31985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31992 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31993 if test "$ac_cv_cxx_have_bi_iterator" = yes
31996 cat >>confdefs.h <<\_ACEOF
31997 #define HAVE_BI_ITERATOR 1
32002 cat >>confdefs.h <<\_ACEOF
32003 #define HAVE_BI_ITERATOR 0
32008 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32009 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32010 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
32015 ac_cpp='$CXXCPP $CPPFLAGS'
32016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32020 cat >conftest.$ac_ext <<_ACEOF
32023 cat confdefs.h >>conftest.$ac_ext
32024 cat >>conftest.$ac_ext <<_ACEOF
32025 /* end confdefs.h. */
32026 #include <iterator>
32027 #ifdef HAVE_NAMESPACES
32028 using namespace std;
32033 forward_iterator<int,int> t; return 0;
32038 rm -f conftest.$ac_objext
32039 if { (ac_try="$ac_compile"
32040 case "(($ac_try" in
32041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32042 *) ac_try_echo=$ac_try;;
32044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045 (eval "$ac_compile") 2>conftest.er1
32047 grep -v '^ *+' conftest.er1 >conftest.err
32049 cat conftest.err >&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } &&
32052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32053 { (case "(($ac_try" in
32054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055 *) ac_try_echo=$ac_try;;
32057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058 (eval "$ac_try") 2>&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; } &&
32062 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; }; then
32072 ac_cv_cxx_have_fwd_iterator=yes
32074 echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32077 ac_cv_cxx_have_fwd_iterator=no
32080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32082 ac_cpp='$CPP $CPPFLAGS'
32083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32089 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32090 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32091 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32094 cat >>confdefs.h <<\_ACEOF
32095 #define HAVE_FWD_ITERATOR 1
32100 cat >>confdefs.h <<\_ACEOF
32101 #define HAVE_FWD_ITERATOR 0
32107 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32108 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32109 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32113 ac_cpp='$CXXCPP $CPPFLAGS'
32114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32118 cat >conftest.$ac_ext <<_ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h. */
32133 rm -f conftest.$ac_objext
32134 if { (ac_try="$ac_compile"
32135 case "(($ac_try" in
32136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137 *) ac_try_echo=$ac_try;;
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_compile") 2>conftest.er1
32142 grep -v '^ *+' conftest.er1 >conftest.err
32144 cat conftest.err >&5
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); } &&
32147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32148 { (case "(($ac_try" in
32149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32150 *) ac_try_echo=$ac_try;;
32152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32153 (eval "$ac_try") 2>&5
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); }; } &&
32157 { ac_try='test -s conftest.$ac_objext'
32158 { (case "(($ac_try" in
32159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160 *) ac_try_echo=$ac_try;;
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_try") 2>&5
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; }; then
32167 ac_cv_func_isnan_in_math_h=yes
32169 echo "$as_me: failed program was:" >&5
32170 sed 's/^/| /' conftest.$ac_ext >&5
32172 ac_cv_func_isnan_in_math_h=no
32175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177 ac_cpp='$CPP $CPPFLAGS'
32178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32183 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32184 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32187 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32189 cat >>confdefs.h <<\_ACEOF
32190 #define HAVE_ISNAN_IN_MATH_H 1
32195 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32196 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32197 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32198 echo $ECHO_N "(cached) $ECHO_C" >&6
32201 ac_cpp='$CXXCPP $CPPFLAGS'
32202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32206 cat >conftest.$ac_ext <<_ACEOF
32209 cat confdefs.h >>conftest.$ac_ext
32210 cat >>conftest.$ac_ext <<_ACEOF
32211 /* end confdefs.h. */
32221 rm -f conftest.$ac_objext
32222 if { (ac_try="$ac_compile"
32223 case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_compile") 2>conftest.er1
32230 grep -v '^ *+' conftest.er1 >conftest.err
32232 cat conftest.err >&5
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); } &&
32235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32236 { (case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_try") 2>&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; } &&
32245 { ac_try='test -s conftest.$ac_objext'
32246 { (case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_try") 2>&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; }; then
32255 ac_cv_func_isnan_in_cmath=yes
32257 echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.$ac_ext >&5
32260 ac_cv_func_isnan_in_cmath=no
32263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32265 ac_cpp='$CPP $CPPFLAGS'
32266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32271 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32272 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32274 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32276 cat >>confdefs.h <<\_ACEOF
32277 #define HAVE_ISNAN_IN_CMATH 1
32282 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32283 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32284 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32285 echo $ECHO_N "(cached) $ECHO_C" >&6
32288 ac_cpp='$CXXCPP $CPPFLAGS'
32289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32293 cat >conftest.$ac_ext <<_ACEOF
32296 cat confdefs.h >>conftest.$ac_ext
32297 cat >>conftest.$ac_ext <<_ACEOF
32298 /* end confdefs.h. */
32303 float f; std::isnan(f);
32308 rm -f conftest.$ac_objext
32309 if { (ac_try="$ac_compile"
32310 case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315 (eval "$ac_compile") 2>conftest.er1
32317 grep -v '^ *+' conftest.er1 >conftest.err
32319 cat conftest.err >&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
32322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32323 { (case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_try") 2>&5
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; } &&
32332 { ac_try='test -s conftest.$ac_objext'
32333 { (case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_try") 2>&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_cv_func_std_isnan_in_cmath=yes
32344 echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.$ac_ext >&5
32347 ac_cv_func_std_isnan_in_cmath=no
32350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32352 ac_cpp='$CPP $CPPFLAGS'
32353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32358 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32359 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32361 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32363 cat >>confdefs.h <<\_ACEOF
32364 #define HAVE_STD_ISNAN_IN_CMATH 1
32370 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32371 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32372 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32373 echo $ECHO_N "(cached) $ECHO_C" >&6
32376 ac_cpp='$CXXCPP $CPPFLAGS'
32377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32381 cat >conftest.$ac_ext <<_ACEOF
32384 cat confdefs.h >>conftest.$ac_ext
32385 cat >>conftest.$ac_ext <<_ACEOF
32386 /* end confdefs.h. */
32396 rm -f conftest.$ac_objext
32397 if { (ac_try="$ac_compile"
32398 case "(($ac_try" in
32399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32400 *) ac_try_echo=$ac_try;;
32402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32403 (eval "$ac_compile") 2>conftest.er1
32405 grep -v '^ *+' conftest.er1 >conftest.err
32407 cat conftest.err >&5
32408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); } &&
32410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32411 { (case "(($ac_try" in
32412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32413 *) ac_try_echo=$ac_try;;
32415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32416 (eval "$ac_try") 2>&5
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); }; } &&
32420 { ac_try='test -s conftest.$ac_objext'
32421 { (case "(($ac_try" in
32422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32423 *) ac_try_echo=$ac_try;;
32425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32426 (eval "$ac_try") 2>&5
32428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 (exit $ac_status); }; }; then
32430 ac_cv_func_isinf_in_math_h=yes
32432 echo "$as_me: failed program was:" >&5
32433 sed 's/^/| /' conftest.$ac_ext >&5
32435 ac_cv_func_isinf_in_math_h=no
32438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32440 ac_cpp='$CPP $CPPFLAGS'
32441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32446 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32447 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32449 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32451 cat >>confdefs.h <<\_ACEOF
32452 #define HAVE_ISINF_IN_MATH_H 1
32457 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32458 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32459 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32463 ac_cpp='$CXXCPP $CPPFLAGS'
32464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468 cat >conftest.$ac_ext <<_ACEOF
32471 cat confdefs.h >>conftest.$ac_ext
32472 cat >>conftest.$ac_ext <<_ACEOF
32473 /* end confdefs.h. */
32483 rm -f conftest.$ac_objext
32484 if { (ac_try="$ac_compile"
32485 case "(($ac_try" in
32486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487 *) ac_try_echo=$ac_try;;
32489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32490 (eval "$ac_compile") 2>conftest.er1
32492 grep -v '^ *+' conftest.er1 >conftest.err
32494 cat conftest.err >&5
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } &&
32497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32498 { (case "(($ac_try" in
32499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32500 *) ac_try_echo=$ac_try;;
32502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_try") 2>&5
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); }; } &&
32507 { ac_try='test -s conftest.$ac_objext'
32508 { (case "(($ac_try" in
32509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510 *) ac_try_echo=$ac_try;;
32512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32513 (eval "$ac_try") 2>&5
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); }; }; then
32517 ac_cv_func_isinf_in_cmath=yes
32519 echo "$as_me: failed program was:" >&5
32520 sed 's/^/| /' conftest.$ac_ext >&5
32522 ac_cv_func_isinf_in_cmath=no
32525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32527 ac_cpp='$CPP $CPPFLAGS'
32528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32533 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32534 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32536 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_ISINF_IN_CMATH 1
32544 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32545 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32546 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32547 echo $ECHO_N "(cached) $ECHO_C" >&6
32550 ac_cpp='$CXXCPP $CPPFLAGS'
32551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32555 cat >conftest.$ac_ext <<_ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h. */
32565 float f; std::isinf(f)}
32570 rm -f conftest.$ac_objext
32571 if { (ac_try="$ac_compile"
32572 case "(($ac_try" in
32573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32574 *) ac_try_echo=$ac_try;;
32576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32577 (eval "$ac_compile") 2>conftest.er1
32579 grep -v '^ *+' conftest.er1 >conftest.err
32581 cat conftest.err >&5
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); } &&
32584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32585 { (case "(($ac_try" in
32586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32587 *) ac_try_echo=$ac_try;;
32589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32590 (eval "$ac_try") 2>&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; } &&
32594 { ac_try='test -s conftest.$ac_objext'
32595 { (case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_try") 2>&5
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; }; then
32604 ac_cv_func_std_isinf_in_cmath=yes
32606 echo "$as_me: failed program was:" >&5
32607 sed 's/^/| /' conftest.$ac_ext >&5
32609 ac_cv_func_std_isinf_in_cmath=no
32612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32614 ac_cpp='$CPP $CPPFLAGS'
32615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32620 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32621 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32623 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32625 cat >>confdefs.h <<\_ACEOF
32626 #define HAVE_STD_ISINF_IN_CMATH 1
32631 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32632 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32633 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32637 ac_cpp='$CXXCPP $CPPFLAGS'
32638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32642 cat >conftest.$ac_ext <<_ACEOF
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h. */
32648 #include <ieeefp.h>
32652 float f; finite(f);
32657 rm -f conftest.$ac_objext
32658 if { (ac_try="$ac_compile"
32659 case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_compile") 2>conftest.er1
32666 grep -v '^ *+' conftest.er1 >conftest.err
32668 cat conftest.err >&5
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); } &&
32671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32672 { (case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_try") 2>&5
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; } &&
32681 { ac_try='test -s conftest.$ac_objext'
32682 { (case "(($ac_try" in
32683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684 *) ac_try_echo=$ac_try;;
32686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687 (eval "$ac_try") 2>&5
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); }; }; then
32691 ac_cv_func_finite_in_ieeefp_h=yes
32693 echo "$as_me: failed program was:" >&5
32694 sed 's/^/| /' conftest.$ac_ext >&5
32696 ac_cv_func_finite_in_ieeefp_h=no
32699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32701 ac_cpp='$CPP $CPPFLAGS'
32702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32707 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32708 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32710 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32712 cat >>confdefs.h <<\_ACEOF
32713 #define HAVE_FINITE_IN_IEEEFP_H 1
32720 if test "$llvm_cv_platform_type" = "Unix" ; then
32723 for ac_header in stdlib.h unistd.h
32725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32730 echo $ECHO_N "(cached) $ECHO_C" >&6
32732 ac_res=`eval echo '${'$as_ac_Header'}'`
32733 { echo "$as_me:$LINENO: result: $ac_res" >&5
32734 echo "${ECHO_T}$ac_res" >&6; }
32736 # Is the header compilable?
32737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32739 cat >conftest.$ac_ext <<_ACEOF
32742 cat confdefs.h >>conftest.$ac_ext
32743 cat >>conftest.$ac_ext <<_ACEOF
32744 /* end confdefs.h. */
32745 $ac_includes_default
32746 #include <$ac_header>
32748 rm -f conftest.$ac_objext
32749 if { (ac_try="$ac_compile"
32750 case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_compile") 2>conftest.er1
32757 grep -v '^ *+' conftest.er1 >conftest.err
32759 cat conftest.err >&5
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); } &&
32762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32763 { (case "(($ac_try" in
32764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765 *) ac_try_echo=$ac_try;;
32767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768 (eval "$ac_try") 2>&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); }; } &&
32772 { ac_try='test -s conftest.$ac_objext'
32773 { (case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_try") 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ac_header_compiler=yes
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ac_header_compiler=no
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32792 echo "${ECHO_T}$ac_header_compiler" >&6; }
32794 # Is the header present?
32795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32797 cat >conftest.$ac_ext <<_ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h. */
32803 #include <$ac_header>
32805 if { (ac_try="$ac_cpp conftest.$ac_ext"
32806 case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32813 grep -v '^ *+' conftest.er1 >conftest.err
32815 cat conftest.err >&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } >/dev/null; then
32818 if test -s conftest.err; then
32819 ac_cpp_err=$ac_c_preproc_warn_flag
32820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32827 if test -z "$ac_cpp_err"; then
32828 ac_header_preproc=yes
32830 echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32833 ac_header_preproc=no
32836 rm -f conftest.err conftest.$ac_ext
32837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32838 echo "${ECHO_T}$ac_header_preproc" >&6; }
32840 # So? What about this header?
32841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32847 ac_header_preproc=yes
32850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32863 ## ----------------------------------- ##
32864 ## Report this to llvmbugs@cs.uiuc.edu ##
32865 ## ----------------------------------- ##
32867 ) | sed "s/^/$as_me: WARNING: /" >&2
32870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32873 echo $ECHO_N "(cached) $ECHO_C" >&6
32875 eval "$as_ac_Header=\$ac_header_preproc"
32877 ac_res=`eval echo '${'$as_ac_Header'}'`
32878 { echo "$as_me:$LINENO: result: $ac_res" >&5
32879 echo "${ECHO_T}$ac_res" >&6; }
32882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32883 cat >>confdefs.h <<_ACEOF
32884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32892 for ac_func in getpagesize
32894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32900 cat >conftest.$ac_ext <<_ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h. */
32906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32908 #define $ac_func innocuous_$ac_func
32910 /* System header to define __stub macros and hopefully few prototypes,
32911 which can conflict with char $ac_func (); below.
32912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32913 <limits.h> exists even on freestanding compilers. */
32916 # include <limits.h>
32918 # include <assert.h>
32923 /* Override any GCC internal prototype to avoid an error.
32924 Use char because int might match the return type of a GCC
32925 builtin and then its argument prototype would still apply. */
32930 /* The GNU C library defines this for functions which it implements
32931 to always fail with ENOSYS. Some functions are actually named
32932 something starting with __ and the normal name is an alias. */
32933 #if defined __stub_$ac_func || defined __stub___$ac_func
32940 return $ac_func ();
32945 rm -f conftest.$ac_objext conftest$ac_exeext
32946 if { (ac_try="$ac_link"
32947 case "(($ac_try" in
32948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949 *) ac_try_echo=$ac_try;;
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952 (eval "$ac_link") 2>conftest.er1
32954 grep -v '^ *+' conftest.er1 >conftest.err
32956 cat conftest.err >&5
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); } &&
32959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32960 { (case "(($ac_try" in
32961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32962 *) ac_try_echo=$ac_try;;
32964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32965 (eval "$ac_try") 2>&5
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); }; } &&
32969 { ac_try='test -s conftest$ac_exeext'
32970 { (case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975 (eval "$ac_try") 2>&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); }; }; then
32979 eval "$as_ac_var=yes"
32981 echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.$ac_ext >&5
32984 eval "$as_ac_var=no"
32987 rm -f core conftest.err conftest.$ac_objext \
32988 conftest$ac_exeext conftest.$ac_ext
32990 ac_res=`eval echo '${'$as_ac_var'}'`
32991 { echo "$as_me:$LINENO: result: $ac_res" >&5
32992 echo "${ECHO_T}$ac_res" >&6; }
32993 if test `eval echo '${'$as_ac_var'}'` = yes; then
32994 cat >>confdefs.h <<_ACEOF
32995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33001 { echo "$as_me:$LINENO: checking for working mmap" >&5
33002 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33003 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33004 echo $ECHO_N "(cached) $ECHO_C" >&6
33006 if test "$cross_compiling" = yes; then
33007 ac_cv_func_mmap_fixed_mapped=no
33009 cat >conftest.$ac_ext <<_ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33015 $ac_includes_default
33016 /* malloc might have been renamed as rpl_malloc. */
33019 /* Thanks to Mike Haertel and Jim Avera for this test.
33020 Here is a matrix of mmap possibilities:
33021 mmap private not fixed
33022 mmap private fixed at somewhere currently unmapped
33023 mmap private fixed at somewhere already mapped
33024 mmap shared not fixed
33025 mmap shared fixed at somewhere currently unmapped
33026 mmap shared fixed at somewhere already mapped
33027 For private mappings, we should verify that changes cannot be read()
33028 back from the file, nor mmap's back from the file at a different
33029 address. (There have been systems where private was not correctly
33030 implemented like the infamous i386 svr4.0, and systems where the
33031 VM page cache was not coherent with the file system buffer cache
33032 like early versions of FreeBSD and possibly contemporary NetBSD.)
33033 For shared mappings, we should conversely verify that changes get
33034 propagated back to all the places they're supposed to be.
33036 Grep wants private fixed already mapped.
33037 The main things grep needs to know about mmap are:
33038 * does it exist and is it safe to write into the mmap'd area
33039 * how to use it (BSD variants) */
33042 #include <sys/mman.h>
33044 #if !STDC_HEADERS && !HAVE_STDLIB_H
33048 /* This mess was copied from the GNU getpagesize.h. */
33049 #if !HAVE_GETPAGESIZE
33050 /* Assume that all systems that can run configure have sys/param.h. */
33051 # if !HAVE_SYS_PARAM_H
33052 # define HAVE_SYS_PARAM_H 1
33055 # ifdef _SC_PAGESIZE
33056 # define getpagesize() sysconf(_SC_PAGESIZE)
33057 # else /* no _SC_PAGESIZE */
33058 # if HAVE_SYS_PARAM_H
33059 # include <sys/param.h>
33060 # ifdef EXEC_PAGESIZE
33061 # define getpagesize() EXEC_PAGESIZE
33062 # else /* no EXEC_PAGESIZE */
33064 # define getpagesize() NBPG * CLSIZE
33067 # endif /* no CLSIZE */
33068 # else /* no NBPG */
33070 # define getpagesize() NBPC
33071 # else /* no NBPC */
33073 # define getpagesize() PAGESIZE
33074 # endif /* PAGESIZE */
33075 # endif /* no NBPC */
33076 # endif /* no NBPG */
33077 # endif /* no EXEC_PAGESIZE */
33078 # else /* no HAVE_SYS_PARAM_H */
33079 # define getpagesize() 8192 /* punt totally */
33080 # endif /* no HAVE_SYS_PARAM_H */
33081 # endif /* no _SC_PAGESIZE */
33083 #endif /* no HAVE_GETPAGESIZE */
33088 char *data, *data2, *data3;
33092 pagesize = getpagesize ();
33094 /* First, make a file with some known garbage in it. */
33095 data = (char *) malloc (pagesize);
33098 for (i = 0; i < pagesize; ++i)
33099 *(data + i) = rand ();
33101 fd = creat ("conftest.mmap", 0600);
33104 if (write (fd, data, pagesize) != pagesize)
33108 /* Next, try to mmap the file at a fixed address which already has
33109 something else allocated at it. If we can, also make sure that
33110 we see the same garbage. */
33111 fd = open ("conftest.mmap", O_RDWR);
33114 data2 = (char *) malloc (2 * pagesize);
33117 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33118 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33119 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33121 for (i = 0; i < pagesize; ++i)
33122 if (*(data + i) != *(data2 + i))
33125 /* Finally, make sure that changes to the mapped area do not
33126 percolate back to the file as seen by read(). (This is a bug on
33127 some variants of i386 svr4.0.) */
33128 for (i = 0; i < pagesize; ++i)
33129 *(data2 + i) = *(data2 + i) + 1;
33130 data3 = (char *) malloc (pagesize);
33133 if (read (fd, data3, pagesize) != pagesize)
33135 for (i = 0; i < pagesize; ++i)
33136 if (*(data + i) != *(data3 + i))
33142 rm -f conftest$ac_exeext
33143 if { (ac_try="$ac_link"
33144 case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_link") 2>&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33153 { (case "(($ac_try" in
33154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155 *) ac_try_echo=$ac_try;;
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158 (eval "$ac_try") 2>&5
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; }; then
33162 ac_cv_func_mmap_fixed_mapped=yes
33164 echo "$as_me: program exited with status $ac_status" >&5
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33168 ( exit $ac_status )
33169 ac_cv_func_mmap_fixed_mapped=no
33171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33176 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33177 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33180 cat >>confdefs.h <<\_ACEOF
33181 #define HAVE_MMAP 1
33185 rm -f conftest.mmap
33187 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33188 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33189 if test "${ac_cv_func_mmap_file+set}" = set; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33193 ac_cpp='$CPP $CPPFLAGS'
33194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33198 if test "$cross_compiling" = yes; then
33199 ac_cv_func_mmap_file=no
33201 cat >conftest.$ac_ext <<_ACEOF
33205 cat confdefs.h >>conftest.$ac_ext
33206 cat >>conftest.$ac_ext <<_ACEOF
33207 /* end confdefs.h. */
33209 #include <sys/types.h>
33210 #include <sys/mman.h>
33218 fd = creat ("foo",0777);
33219 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33221 return (fd != (int) MAP_FAILED);
33226 rm -f conftest$ac_exeext
33227 if { (ac_try="$ac_link"
33228 case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_link") 2>&5
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33237 { (case "(($ac_try" in
33238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239 *) ac_try_echo=$ac_try;;
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242 (eval "$ac_try") 2>&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); }; }; then
33246 ac_cv_func_mmap_file=yes
33248 echo "$as_me: program exited with status $ac_status" >&5
33249 echo "$as_me: failed program was:" >&5
33250 sed 's/^/| /' conftest.$ac_ext >&5
33252 ( exit $ac_status )
33253 ac_cv_func_mmap_file=no
33255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33260 ac_cpp='$CPP $CPPFLAGS'
33261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33267 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33268 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33269 if test "$ac_cv_func_mmap_file" = yes; then
33271 cat >>confdefs.h <<\_ACEOF
33272 #define HAVE_MMAP_FILE
33279 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33280 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33281 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33282 echo $ECHO_N "(cached) $ECHO_C" >&6
33284 if test "$llvm_cv_os_type" = "Interix" ; then
33285 ac_cv_need_dev_zero_for_mmap=yes
33287 ac_cv_need_dev_zero_for_mmap=no
33291 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33292 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33293 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33295 cat >>confdefs.h <<\_ACEOF
33296 #define NEED_DEV_ZERO_FOR_MMAP 1
33301 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33303 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33304 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33306 if test "$ac_cv_func_mmap_file" = "no"
33308 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33309 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33314 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33315 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33316 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33317 echo $ECHO_N "(cached) $ECHO_C" >&6
33319 llvm_cv_llvmgcc_sanity="no"
33320 if test -x "$LLVMGCC" ; then
33321 cp /dev/null conftest.c
33322 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33323 if test $? -eq 0 ; then
33324 llvm_cv_llvmgcc_sanity="yes"
33329 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33330 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33332 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33333 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33334 LLVMCC1=$llvmcc1path
33336 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33337 LLVMCC1PLUS=$llvmcc1pluspath
33339 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33340 LLVMGCCDIR=$llvmgccdir
33342 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33343 LLVMGCCLIBEXEC=$llvmgcclibexec
33345 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33346 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33347 LLVMGCC_VERSION=$llvmgccversion
33349 LLVMGCC_MAJVERS=$llvmgccmajvers
33353 SHLIBEXT=$libltdl_cv_shlibext
33356 # Translate the various configuration directories and other basic
33357 # information into substitutions that will end up in Makefile.config.in
33358 # that these configured values can be used by the makefiles
33359 if test "${prefix}" = "NONE" ; then
33360 prefix="/usr/local"
33362 eval LLVM_PREFIX="${prefix}";
33363 eval LLVM_BINDIR="${prefix}/bin";
33364 eval LLVM_LIBDIR="${prefix}/lib";
33365 eval LLVM_DATADIR="${prefix}/share/llvm";
33366 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33367 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33368 eval LLVM_INCLUDEDIR="${prefix}/include";
33369 eval LLVM_INFODIR="${prefix}/info";
33370 eval LLVM_MANDIR="${prefix}/man";
33371 LLVM_CONFIGTIME=`date`
33383 # Place the various directores into the config.h file as #defines so that we
33384 # can know about the installation paths within LLVM.
33386 cat >>confdefs.h <<_ACEOF
33387 #define LLVM_PREFIX "$LLVM_PREFIX"
33391 cat >>confdefs.h <<_ACEOF
33392 #define LLVM_BINDIR "$LLVM_BINDIR"
33396 cat >>confdefs.h <<_ACEOF
33397 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33401 cat >>confdefs.h <<_ACEOF
33402 #define LLVM_DATADIR "$LLVM_DATADIR"
33406 cat >>confdefs.h <<_ACEOF
33407 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33411 cat >>confdefs.h <<_ACEOF
33412 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33416 cat >>confdefs.h <<_ACEOF
33417 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33421 cat >>confdefs.h <<_ACEOF
33422 #define LLVM_INFODIR "$LLVM_INFODIR"
33426 cat >>confdefs.h <<_ACEOF
33427 #define LLVM_MANDIR "$LLVM_MANDIR"
33431 cat >>confdefs.h <<_ACEOF
33432 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33437 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33439 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33441 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33443 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33445 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33448 ac_config_files="$ac_config_files Makefile.config"
33451 ac_config_files="$ac_config_files llvm.spec"
33454 ac_config_files="$ac_config_files docs/doxygen.cfg"
33457 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33460 ac_config_commands="$ac_config_commands setup"
33462 ac_config_commands="$ac_config_commands Makefile"
33465 ac_config_commands="$ac_config_commands Makefile.common"
33468 ac_config_commands="$ac_config_commands examples/Makefile"
33471 ac_config_commands="$ac_config_commands lib/Makefile"
33474 ac_config_commands="$ac_config_commands runtime/Makefile"
33477 ac_config_commands="$ac_config_commands test/Makefile"
33480 ac_config_commands="$ac_config_commands test/Makefile.tests"
33483 ac_config_commands="$ac_config_commands tools/Makefile"
33486 ac_config_commands="$ac_config_commands utils/Makefile"
33489 ac_config_commands="$ac_config_commands projects/Makefile"
33493 cat >confcache <<\_ACEOF
33494 # This file is a shell script that caches the results of configure
33495 # tests run on this system so they can be shared between configure
33496 # scripts and configure runs, see configure's option --config-cache.
33497 # It is not useful on other systems. If it contains results you don't
33498 # want to keep, you may remove or edit it.
33500 # config.status only pays attention to the cache file if you give it
33501 # the --recheck option to rerun configure.
33503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33505 # following values.
33509 # The following way of writing the cache mishandles newlines in values,
33510 # but we know of no workaround that is simple, portable, and efficient.
33511 # So, we kill variables containing newlines.
33512 # Ultrix sh set writes to stderr and can't be redirected directly,
33513 # and sets the high bit in the cache file unless we assign to the vars.
33515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33516 eval ac_val=\$$ac_var
33520 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33521 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33524 _ | IFS | as_nl) ;; #(
33525 *) $as_unset $ac_var ;;
33531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33532 *${as_nl}ac_space=\ *)
33533 # `set' does not quote correctly, so add quotes (double-quote
33534 # substitution turns \\\\ into \\, and sed turns \\ into \).
33537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33540 # `set' quotes correctly as required by POSIX, so do not add quotes.
33541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33554 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33555 if test -w "$cache_file"; then
33556 test "x$cache_file" != "x/dev/null" &&
33557 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33558 echo "$as_me: updating cache $cache_file" >&6;}
33559 cat confcache >$cache_file
33561 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33562 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33568 # Let make expand exec_prefix.
33569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33571 DEFS=-DHAVE_CONFIG_H
33575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33576 # 1. Remove the extension, and $U if already installed.
33577 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33578 ac_i=`echo "$ac_i" | sed "$ac_script"`
33579 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33580 # will be set to the directory where LIBOBJS objects are built.
33581 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33582 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33584 LIBOBJS=$ac_libobjs
33586 LTLIBOBJS=$ac_ltlibobjs
33589 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33590 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33591 Usually this means the macro was only invoked conditionally." >&5
33592 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33593 Usually this means the macro was only invoked conditionally." >&2;}
33594 { (exit 1); exit 1; }; }
33596 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33597 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33598 Usually this means the macro was only invoked conditionally." >&5
33599 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33600 Usually this means the macro was only invoked conditionally." >&2;}
33601 { (exit 1); exit 1; }; }
33604 : ${CONFIG_STATUS=./config.status}
33605 ac_clean_files_save=$ac_clean_files
33606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33607 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33608 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33609 cat >$CONFIG_STATUS <<_ACEOF
33611 # Generated by $as_me.
33612 # Run this file to recreate the current configuration.
33613 # Compiler output produced by configure, useful for debugging
33614 # configure, is in config.log if it exists.
33617 ac_cs_recheck=false
33619 SHELL=\${CONFIG_SHELL-$SHELL}
33622 cat >>$CONFIG_STATUS <<\_ACEOF
33623 ## --------------------- ##
33624 ## M4sh Initialization. ##
33625 ## --------------------- ##
33627 # Be Bourne compatible
33628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33631 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33632 # is contrary to our usage. Disable this feature.
33633 alias -g '${1+"$@"}'='"$@"'
33634 setopt NO_GLOB_SUBST
33636 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33638 BIN_SH=xpg4; export BIN_SH # for Tru64
33639 DUALCASE=1; export DUALCASE # for MKS sh
33643 # Avoid depending upon Character Ranges.
33644 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33645 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33646 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33647 as_cr_digits='0123456789'
33648 as_cr_alnum=$as_cr_Letters$as_cr_digits
33650 # The user is always right.
33651 if test "${PATH_SEPARATOR+set}" != set; then
33652 echo "#! /bin/sh" >conf$$.sh
33653 echo "exit 0" >>conf$$.sh
33655 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33663 # Support unset when possible.
33664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33672 # We need space, tab and new line, in precisely that order. Quoting is
33673 # there to prevent editors from complaining about space-tab.
33674 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33675 # splitting by setting IFS to empty value.)
33680 # Find who we are. Look in the path if we contain no directory separator.
33682 *[\\/]* ) as_myself=$0 ;;
33683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33684 for as_dir in $PATH
33687 test -z "$as_dir" && as_dir=.
33688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33694 # We did not find ourselves, most probably we were run as `sh COMMAND'
33695 # in which case we are not to be found in the path.
33696 if test "x$as_myself" = x; then
33699 if test ! -f "$as_myself"; then
33700 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33701 { (exit 1); exit 1; }
33704 # Work around bugs in pre-3.0 UWIN ksh.
33705 for as_var in ENV MAIL MAILPATH
33706 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33714 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33715 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33716 LC_TELEPHONE LC_TIME
33718 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33719 eval $as_var=C; export $as_var
33721 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33725 # Required to use basename.
33726 if expr a : '\(a\)' >/dev/null 2>&1 &&
33727 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33733 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33734 as_basename=basename
33740 # Name of the executable.
33741 as_me=`$as_basename -- "$0" ||
33742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33743 X"$0" : 'X\(//\)$' \| \
33744 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33746 sed '/^.*\/\([^/][^/]*\)\/*$/{
33765 as_lineno_1=$LINENO
33766 as_lineno_2=$LINENO
33767 test "x$as_lineno_1" != "x$as_lineno_2" &&
33768 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33770 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33771 # uniformly replaced by the line number. The first 'sed' inserts a
33772 # line-number line after each line using $LINENO; the second 'sed'
33773 # does the real work. The second script uses 'N' to pair each
33774 # line-number line with the line containing $LINENO, and appends
33775 # trailing '-' during substitution so that $LINENO is not a special
33776 # case at line end.
33777 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33778 # scripts with optimization help from Paolo Bonzini. Blame Lee
33779 # E. McMahon (1931-1989) for sed's syntax. :-)
33791 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33794 ' >$as_me.lineno &&
33795 chmod +x "$as_me.lineno" ||
33796 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33797 { (exit 1); exit 1; }; }
33799 # Don't try to exec as it changes $[0], causing all sort of problems
33800 # (the dirname of $[0] is not the place where we might find the
33801 # original and so on. Autoconf is especially sensitive to this).
33802 . "./$as_me.lineno"
33803 # Exit status is that of the last command.
33808 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33814 ECHO_C= ECHO_N= ECHO_T=
33815 case `echo -n x` in
33817 case `echo 'x\c'` in
33818 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33825 if expr a : '\(a\)' >/dev/null 2>&1 &&
33826 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33832 rm -f conf$$ conf$$.exe conf$$.file
33833 if test -d conf$$.dir; then
33834 rm -f conf$$.dir/conf$$.file
33840 if ln -s conf$$.file conf$$ 2>/dev/null; then
33842 # ... but there are two gotchas:
33843 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33844 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33845 # In both cases, we have to default to `cp -p'.
33846 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33848 elif ln conf$$.file conf$$ 2>/dev/null; then
33853 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33854 rmdir conf$$.dir 2>/dev/null
33856 if mkdir -p . 2>/dev/null; then
33859 test -d ./-p && rmdir ./-p
33863 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33864 # systems may use methods other than mode bits to determine executability.
33865 cat >conf$$.file <<_ASEOF
33869 chmod +x conf$$.file
33870 if test -x conf$$.file >/dev/null 2>&1; then
33871 as_executable_p="test -x"
33877 # Sed expression to map a string onto a valid CPP name.
33878 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33880 # Sed expression to map a string onto a valid variable name.
33881 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33886 # Save the log message, to keep $[0] and so on meaningful, and to
33887 # report actual input values of CONFIG_FILES etc. instead of their
33888 # values after options handling.
33890 This file was extended by llvm $as_me 2.0cvs, which was
33891 generated by GNU Autoconf 2.60. Invocation command line was
33893 CONFIG_FILES = $CONFIG_FILES
33894 CONFIG_HEADERS = $CONFIG_HEADERS
33895 CONFIG_LINKS = $CONFIG_LINKS
33896 CONFIG_COMMANDS = $CONFIG_COMMANDS
33899 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33904 cat >>$CONFIG_STATUS <<_ACEOF
33905 # Files that config.status was made for.
33906 config_files="$ac_config_files"
33907 config_headers="$ac_config_headers"
33908 config_commands="$ac_config_commands"
33912 cat >>$CONFIG_STATUS <<\_ACEOF
33914 \`$as_me' instantiates files from templates according to the
33915 current configuration.
33917 Usage: $0 [OPTIONS] [FILE]...
33919 -h, --help print this help, then exit
33920 -V, --version print version number, then exit
33921 -q, --quiet do not print progress messages
33922 -d, --debug don't remove temporary files
33923 --recheck update $as_me by reconfiguring in the same conditions
33924 --file=FILE[:TEMPLATE]
33925 instantiate the configuration file FILE
33926 --header=FILE[:TEMPLATE]
33927 instantiate the configuration header FILE
33929 Configuration files:
33932 Configuration headers:
33935 Configuration commands:
33938 Report bugs to <bug-autoconf@gnu.org>."
33941 cat >>$CONFIG_STATUS <<_ACEOF
33943 llvm config.status 2.0cvs
33944 configured by $0, generated by GNU Autoconf 2.60,
33945 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33947 Copyright (C) 2006 Free Software Foundation, Inc.
33948 This config.status script is free software; the Free Software Foundation
33949 gives unlimited permission to copy, distribute and modify it."
33956 cat >>$CONFIG_STATUS <<\_ACEOF
33957 # If no file are specified by the user, then we need to provide default
33958 # value. By we need to know if files were specified by the user.
33964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33976 # Handling of the options.
33977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33979 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33980 echo "$ac_cs_version"; exit ;;
33981 --debug | --debu | --deb | --de | --d | -d )
33983 --file | --fil | --fi | --f )
33985 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33986 ac_need_defaults=false;;
33987 --header | --heade | --head | --hea )
33989 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33990 ac_need_defaults=false;;
33992 # Conflict between --help and --header
33993 { echo "$as_me: error: ambiguous option: $1
33994 Try \`$0 --help' for more information." >&2
33995 { (exit 1); exit 1; }; };;
33996 --help | --hel | -h )
33997 echo "$ac_cs_usage"; exit ;;
33998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34002 # This is an error.
34003 -*) { echo "$as_me: error: unrecognized option: $1
34004 Try \`$0 --help' for more information." >&2
34005 { (exit 1); exit 1; }; } ;;
34007 *) ac_config_targets="$ac_config_targets $1"
34008 ac_need_defaults=false ;;
34014 ac_configure_extra_args=
34016 if $ac_cs_silent; then
34018 ac_configure_extra_args="$ac_configure_extra_args --silent"
34022 cat >>$CONFIG_STATUS <<_ACEOF
34023 if \$ac_cs_recheck; then
34024 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34025 CONFIG_SHELL=$SHELL
34026 export CONFIG_SHELL
34027 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34031 cat >>$CONFIG_STATUS <<\_ACEOF
34035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34036 ## Running $as_me. ##
34042 cat >>$CONFIG_STATUS <<_ACEOF
34046 llvm_src="${srcdir}"
34050 cat >>$CONFIG_STATUS <<\_ACEOF
34052 # Handling of arguments.
34053 for ac_config_target in $ac_config_targets
34055 case $ac_config_target in
34056 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34057 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34058 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34059 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34060 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34061 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34062 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34063 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34064 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34065 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34066 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34067 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34068 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34069 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34070 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34071 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34072 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34073 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34074 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34075 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34077 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34079 { (exit 1); exit 1; }; };;
34084 # If the user did not use the arguments to specify the items to instantiate,
34085 # then the envvar interface is used. Set only those that are not.
34086 # We use the long form for the default assignment because of an extremely
34087 # bizarre bug on SunOS 4.1.3.
34088 if $ac_need_defaults; then
34089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34094 # Have a temporary directory for convenience. Make it in the build tree
34095 # simply because there is no reason against having it here, and in addition,
34096 # creating and moving files from /tmp can sometimes cause problems.
34097 # Hook for its removal unless debugging.
34098 # Note that there is a small window in which the directory will not be cleaned:
34099 # after its creation but before its name has been assigned to `$tmp'.
34103 trap 'exit_status=$?
34104 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34106 trap '{ (exit 1); exit 1; }' 1 2 13 15
34108 # Create a (secure) tmp directory for tmp files.
34111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34112 test -n "$tmp" && test -d "$tmp"
34115 tmp=./conf$$-$RANDOM
34116 (umask 077 && mkdir "$tmp")
34119 echo "$me: cannot create a temporary directory in ." >&2
34120 { (exit 1); exit 1; }
34124 # Set up the sed scripts for CONFIG_FILES section.
34127 # No need to generate the scripts if there are no CONFIG_FILES.
34128 # This happens for instance when ./config.status config.h
34129 if test -n "$CONFIG_FILES"; then
34136 for ac_last_try in false false false false false :; do
34137 cat >conf$$subs.sed <<_ACEOF
34138 SHELL!$SHELL$ac_delim
34139 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34140 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34141 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34142 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34143 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34144 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34145 exec_prefix!$exec_prefix$ac_delim
34146 prefix!$prefix$ac_delim
34147 program_transform_name!$program_transform_name$ac_delim
34148 bindir!$bindir$ac_delim
34149 sbindir!$sbindir$ac_delim
34150 libexecdir!$libexecdir$ac_delim
34151 datarootdir!$datarootdir$ac_delim
34152 datadir!$datadir$ac_delim
34153 sysconfdir!$sysconfdir$ac_delim
34154 sharedstatedir!$sharedstatedir$ac_delim
34155 localstatedir!$localstatedir$ac_delim
34156 includedir!$includedir$ac_delim
34157 oldincludedir!$oldincludedir$ac_delim
34158 docdir!$docdir$ac_delim
34159 infodir!$infodir$ac_delim
34160 htmldir!$htmldir$ac_delim
34161 dvidir!$dvidir$ac_delim
34162 pdfdir!$pdfdir$ac_delim
34163 psdir!$psdir$ac_delim
34164 libdir!$libdir$ac_delim
34165 localedir!$localedir$ac_delim
34166 mandir!$mandir$ac_delim
34167 DEFS!$DEFS$ac_delim
34168 ECHO_C!$ECHO_C$ac_delim
34169 ECHO_N!$ECHO_N$ac_delim
34170 ECHO_T!$ECHO_T$ac_delim
34171 LIBS!$LIBS$ac_delim
34172 build_alias!$build_alias$ac_delim
34173 host_alias!$host_alias$ac_delim
34174 target_alias!$target_alias$ac_delim
34175 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34176 subdirs!$subdirs$ac_delim
34177 build!$build$ac_delim
34178 build_cpu!$build_cpu$ac_delim
34179 build_vendor!$build_vendor$ac_delim
34180 build_os!$build_os$ac_delim
34181 host!$host$ac_delim
34182 host_cpu!$host_cpu$ac_delim
34183 host_vendor!$host_vendor$ac_delim
34184 host_os!$host_os$ac_delim
34185 target!$target$ac_delim
34186 target_cpu!$target_cpu$ac_delim
34187 target_vendor!$target_vendor$ac_delim
34188 target_os!$target_os$ac_delim
34190 LINKALL!$LINKALL$ac_delim
34191 NOLINKALL!$NOLINKALL$ac_delim
34192 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34193 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34194 ARCH!$ARCH$ac_delim
34195 ENDIAN!$ENDIAN$ac_delim
34197 CFLAGS!$CFLAGS$ac_delim
34198 LDFLAGS!$LDFLAGS$ac_delim
34199 CPPFLAGS!$CPPFLAGS$ac_delim
34200 ac_ct_CC!$ac_ct_CC$ac_delim
34201 EXEEXT!$EXEEXT$ac_delim
34202 OBJEXT!$OBJEXT$ac_delim
34204 GREP!$GREP$ac_delim
34205 EGREP!$EGREP$ac_delim
34206 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34207 BUILD_CC!$BUILD_CC$ac_delim
34208 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34209 CVSBUILD!$CVSBUILD$ac_delim
34210 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34211 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34212 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34214 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34215 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34216 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34217 ENABLE_PIC!$ENABLE_PIC$ac_delim
34218 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34219 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34220 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34222 CXXFLAGS!$CXXFLAGS$ac_delim
34223 ac_ct_CXX!$ac_ct_CXX$ac_delim
34225 LEXLIB!$LEXLIB$ac_delim
34226 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34227 FLEX!$FLEX$ac_delim
34228 YACC!$YACC$ac_delim
34229 YFLAGS!$YFLAGS$ac_delim
34230 BISON!$BISON$ac_delim
34232 ifGNUmake!$ifGNUmake$ac_delim
34233 LN_S!$LN_S$ac_delim
34237 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34239 elif $ac_last_try; then
34240 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34241 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34242 { (exit 1); exit 1; }; }
34244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34248 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34249 if test -n "$ac_eof"; then
34250 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34251 ac_eof=`expr $ac_eof + 1`
34254 cat >>$CONFIG_STATUS <<_ACEOF
34255 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34259 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34260 s/^/s,@/; s/!/@,|#_!!_#|/
34263 s/'"$ac_delim"'$/,g/; t
34265 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34266 ' >>$CONFIG_STATUS <conf$$subs.sed
34267 rm -f conf$$subs.sed
34268 cat >>$CONFIG_STATUS <<_ACEOF
34274 for ac_last_try in false false false false false :; do
34275 cat >conf$$subs.sed <<_ACEOF
34277 DATE!$DATE$ac_delim
34278 FIND!$FIND$ac_delim
34279 MKDIR!$MKDIR$ac_delim
34281 RANLIB!$RANLIB$ac_delim
34285 BINPWD!$BINPWD$ac_delim
34286 GRAPHVIZ!$GRAPHVIZ$ac_delim
34289 DOTTY!$DOTTY$ac_delim
34290 PERL!$PERL$ac_delim
34291 HAVE_PERL!$HAVE_PERL$ac_delim
34292 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34293 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34294 INSTALL_DATA!$INSTALL_DATA$ac_delim
34295 BZIP2!$BZIP2$ac_delim
34296 DOXYGEN!$DOXYGEN$ac_delim
34297 GROFF!$GROFF$ac_delim
34298 GZIP!$GZIP$ac_delim
34299 POD2HTML!$POD2HTML$ac_delim
34300 POD2MAN!$POD2MAN$ac_delim
34301 RUNTEST!$RUNTEST$ac_delim
34302 TCLSH!$TCLSH$ac_delim
34304 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34305 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34306 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34307 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34308 LIBADD_DL!$LIBADD_DL$ac_delim
34309 ECHO!$ECHO$ac_delim
34311 STRIP!$STRIP$ac_delim
34312 CXXCPP!$CXXCPP$ac_delim
34314 FFLAGS!$FFLAGS$ac_delim
34315 ac_ct_F77!$ac_ct_F77$ac_delim
34316 LIBTOOL!$LIBTOOL$ac_delim
34317 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34318 LLVMGCC!$LLVMGCC$ac_delim
34319 LLVMGXX!$LLVMGXX$ac_delim
34320 USE_UDIS86!$USE_UDIS86$ac_delim
34321 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34322 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34323 ALLOCA!$ALLOCA$ac_delim
34324 MMAP_FILE!$MMAP_FILE$ac_delim
34325 LLVMCC1!$LLVMCC1$ac_delim
34326 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34327 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34328 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34329 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34330 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34331 SHLIBEXT!$SHLIBEXT$ac_delim
34332 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34333 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34334 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34335 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34336 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34337 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34338 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34339 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34340 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34341 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34342 LIBOBJS!$LIBOBJS$ac_delim
34343 LTLIBOBJS!$LTLIBOBJS$ac_delim
34346 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
34348 elif $ac_last_try; then
34349 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34350 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34351 { (exit 1); exit 1; }; }
34353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34357 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34358 if test -n "$ac_eof"; then
34359 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34360 ac_eof=`expr $ac_eof + 1`
34363 cat >>$CONFIG_STATUS <<_ACEOF
34364 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34368 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34369 s/^/s,@/; s/!/@,|#_!!_#|/
34372 s/'"$ac_delim"'$/,g/; t
34374 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34375 ' >>$CONFIG_STATUS <conf$$subs.sed
34376 rm -f conf$$subs.sed
34377 cat >>$CONFIG_STATUS <<_ACEOF
34384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34386 # trailing colons and then remove the whole line if VPATH becomes empty
34387 # (actually we leave an empty line to preserve line numbers).
34388 if test "x$srcdir" = x.; then
34389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34390 s/:*\$(srcdir):*/:/
34391 s/:*\${srcdir}:*/:/
34393 s/^\([^=]*=[ ]*\):*/\1/
34399 cat >>$CONFIG_STATUS <<\_ACEOF
34400 fi # test -n "$CONFIG_FILES"
34403 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34406 :[FHLC]) ac_mode=$ac_tag; continue;;
34408 case $ac_mode$ac_tag in
34410 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34411 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34412 { (exit 1); exit 1; }; };;
34413 :[FH]-) ac_tag=-:-;;
34414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34431 -) ac_f="$tmp/stdin";;
34432 *) # Look for the file first in the build tree, then in the source tree
34433 # (if the path is not absolute). The absolute path cannot be DOS-style,
34434 # because $ac_f cannot contain `:'.
34438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34440 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34441 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34442 { (exit 1); exit 1; }; };;
34444 ac_file_inputs="$ac_file_inputs $ac_f"
34447 # Let's still pretend it is `configure' which instantiates (i.e., don't
34448 # use $as_me), people would be surprised to read:
34449 # /* config.h. Generated by config.status. */
34450 configure_input="Generated from "`IFS=:
34451 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34452 if test x"$ac_file" != x-; then
34453 configure_input="$ac_file. $configure_input"
34454 { echo "$as_me:$LINENO: creating $ac_file" >&5
34455 echo "$as_me: creating $ac_file" >&6;}
34459 *:-:* | *:-) cat >"$tmp/stdin";;
34464 ac_dir=`$as_dirname -- "$ac_file" ||
34465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34466 X"$ac_file" : 'X\(//\)[^/]' \| \
34467 X"$ac_file" : 'X\(//\)$' \| \
34468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34474 /^X\(\/\/\)[^/].*/{
34489 -*) as_dir=./$as_dir;;
34491 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34495 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34496 *) as_qdir=$as_dir;;
34498 as_dirs="'$as_qdir' $as_dirs"
34499 as_dir=`$as_dirname -- "$as_dir" ||
34500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34501 X"$as_dir" : 'X\(//\)[^/]' \| \
34502 X"$as_dir" : 'X\(//\)$' \| \
34503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34509 /^X\(\/\/\)[^/].*/{
34522 test -d "$as_dir" && break
34524 test -z "$as_dirs" || eval "mkdir $as_dirs"
34525 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34526 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34527 { (exit 1); exit 1; }; }; }
34531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34534 # A ".." for each directory in $ac_dir_suffix.
34535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34536 case $ac_top_builddir_sub in
34537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34541 ac_abs_top_builddir=$ac_pwd
34542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34543 # for backward compatibility:
34544 ac_top_builddir=$ac_top_build_prefix
34547 .) # We are building in place.
34549 ac_top_srcdir=$ac_top_builddir_sub
34550 ac_abs_top_srcdir=$ac_pwd ;;
34551 [\\/]* | ?:[\\/]* ) # Absolute name.
34552 ac_srcdir=$srcdir$ac_dir_suffix;
34553 ac_top_srcdir=$srcdir
34554 ac_abs_top_srcdir=$srcdir ;;
34555 *) # Relative name.
34556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34557 ac_top_srcdir=$ac_top_build_prefix$srcdir
34558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34575 cat >>$CONFIG_STATUS <<\_ACEOF
34576 # If the template does not know about datarootdir, expand it.
34577 # FIXME: This hack should be removed a few years after 2.60.
34578 ac_datarootdir_hack=; ac_datarootdir_seen=
34580 case `sed -n '/datarootdir/ {
34589 ' $ac_file_inputs` in
34590 *datarootdir*) ac_datarootdir_seen=yes;;
34591 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34592 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34593 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34595 cat >>$CONFIG_STATUS <<_ACEOF
34596 ac_datarootdir_hack='
34597 s&@datadir@&$datadir&g
34598 s&@docdir@&$docdir&g
34599 s&@infodir@&$infodir&g
34600 s&@localedir@&$localedir&g
34601 s&@mandir@&$mandir&g
34602 s&\\\${datarootdir}&$datarootdir&g' ;;
34606 # Neutralize VPATH when `$srcdir' = `.'.
34607 # Shell code in configure.ac might set extrasub.
34608 # FIXME: do we really want to maintain this feature?
34609 cat >>$CONFIG_STATUS <<_ACEOF
34613 cat >>$CONFIG_STATUS <<\_ACEOF
34615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34616 s&@configure_input@&$configure_input&;t t
34617 s&@top_builddir@&$ac_top_builddir_sub&;t t
34618 s&@srcdir@&$ac_srcdir&;t t
34619 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34620 s&@top_srcdir@&$ac_top_srcdir&;t t
34621 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34622 s&@builddir@&$ac_builddir&;t t
34623 s&@abs_builddir@&$ac_abs_builddir&;t t
34624 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34625 s&@INSTALL@&$ac_INSTALL&;t t
34626 $ac_datarootdir_hack
34627 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34630 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34632 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34633 which seems to be undefined. Please make sure it is defined." >&5
34634 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34635 which seems to be undefined. Please make sure it is defined." >&2;}
34639 -) cat "$tmp/out"; rm -f "$tmp/out";;
34640 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34649 # Transform confdefs.h into a sed script `conftest.defines', that
34650 # substitutes the proper values into config.h.in to produce config.h.
34651 rm -f conftest.defines conftest.tail
34652 # First, append a space to every undef/define line, to ease matching.
34653 echo 's/$/ /' >conftest.defines
34654 # Then, protect against being on the right side of a sed subst, or in
34655 # an unquoted here document, in config.status. If some macros were
34656 # called several times there might be several #defines for the same
34657 # symbol, which is useless. But do not sort them, since the last
34658 # AC_DEFINE must be honored.
34659 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34660 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34661 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34662 # PARAMS is the parameter list in the macro definition--in most cases, it's
34663 # just an empty string.
34664 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34665 ac_dB='\\)[ (].*,\\1define\\2'
34673 s/^[ ]*#[ ]*define[ ][ ]*//
34678 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34679 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34680 ' >>conftest.defines
34682 # Remove the space that was appended to ease matching.
34683 # Then replace #undef with comments. This is necessary, for
34684 # example, in the case of _POSIX_SOURCE, which is predefined and required
34685 # on some systems where configure will not decide to define it.
34686 # (The regexp can be short, since the line contains either #define or #undef.)
34688 s,^[ #]*u.*,/* & */,' >>conftest.defines
34690 # Break up conftest.defines:
34691 ac_max_sed_lines=50
34693 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34694 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34695 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34697 ac_in='$ac_file_inputs'
34698 ac_out='"$tmp/out1"'
34699 ac_nxt='"$tmp/out2"'
34703 # Write a here document:
34704 cat >>$CONFIG_STATUS <<_ACEOF
34705 # First, check the format of the line:
34706 cat >"\$tmp/defines.sed" <<\\CEOF
34707 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34708 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34712 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34714 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34715 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34716 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34717 grep . conftest.tail >/dev/null || break
34718 rm -f conftest.defines
34719 mv conftest.tail conftest.defines
34721 rm -f conftest.defines conftest.tail
34723 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34724 cat >>$CONFIG_STATUS <<\_ACEOF
34725 if test x"$ac_file" != x-; then
34726 echo "/* $configure_input */" >"$tmp/config.h"
34727 cat "$ac_result" >>"$tmp/config.h"
34728 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34729 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34730 echo "$as_me: $ac_file is unchanged" >&6;}
34733 mv "$tmp/config.h" $ac_file
34736 echo "/* $configure_input */"
34742 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34743 echo "$as_me: executing $ac_file commands" >&6;}
34748 case $ac_file$ac_mode in
34749 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34750 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34751 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34752 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34753 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34754 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34755 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34756 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34757 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34758 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34759 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34760 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34761 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34762 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34763 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34764 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34765 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34766 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34767 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34768 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34774 { (exit 0); exit 0; }
34776 chmod +x $CONFIG_STATUS
34777 ac_clean_files=$ac_clean_files_save
34780 # configure is writing to config.log, and then calls config.status.
34781 # config.status does its own redirection, appending to config.log.
34782 # Unfortunately, on DOS this fails, as config.log is still kept open
34783 # by configure, so config.status won't be able to write to it; its
34784 # output is simply discarded. So we exec the FD to /dev/null,
34785 # effectively closing config.log, so it can be properly (re)opened and
34786 # appended to by config.status. When coming back to configure, we
34787 # need to make the FD available again.
34788 if test "$no_create" != yes; then
34790 ac_config_status_args=
34791 test "$silent" = yes &&
34792 ac_config_status_args="$ac_config_status_args --quiet"
34794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34797 # would make configure fail if this is the last instruction.
34798 $ac_cs_success || { (exit 1); exit 1; }
34802 # CONFIG_SUBDIRS section.
34804 if test "$no_recursion" != yes; then
34806 # Remove --cache-file and --srcdir arguments so they do not pile up.
34807 ac_sub_configure_args=
34809 eval "set x $ac_configure_args"
34813 if test -n "$ac_prev"; then
34818 -cache-file | --cache-file | --cache-fil | --cache-fi \
34819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34820 ac_prev=cache_file ;;
34821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34825 --config-cache | -C)
34827 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34829 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34831 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34833 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34837 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34839 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34843 # Always prepend --prefix to ensure using the same prefix
34844 # in subdir configurations.
34845 ac_arg="--prefix=$prefix"
34847 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34849 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34852 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34854 # Do not complain, so a configure script can configure whichever
34855 # parts of a large source tree are present.
34856 test -d "$srcdir/$ac_dir" || continue
34858 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34859 echo "$as_me:$LINENO: $ac_msg" >&5
34863 -*) as_dir=./$as_dir;;
34865 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34869 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34870 *) as_qdir=$as_dir;;
34872 as_dirs="'$as_qdir' $as_dirs"
34873 as_dir=`$as_dirname -- "$as_dir" ||
34874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34875 X"$as_dir" : 'X\(//\)[^/]' \| \
34876 X"$as_dir" : 'X\(//\)$' \| \
34877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34883 /^X\(\/\/\)[^/].*/{
34896 test -d "$as_dir" && break
34898 test -z "$as_dirs" || eval "mkdir $as_dirs"
34899 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34900 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34901 { (exit 1); exit 1; }; }; }
34905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34908 # A ".." for each directory in $ac_dir_suffix.
34909 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34910 case $ac_top_builddir_sub in
34911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34915 ac_abs_top_builddir=$ac_pwd
34916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34917 # for backward compatibility:
34918 ac_top_builddir=$ac_top_build_prefix
34921 .) # We are building in place.
34923 ac_top_srcdir=$ac_top_builddir_sub
34924 ac_abs_top_srcdir=$ac_pwd ;;
34925 [\\/]* | ?:[\\/]* ) # Absolute name.
34926 ac_srcdir=$srcdir$ac_dir_suffix;
34927 ac_top_srcdir=$srcdir
34928 ac_abs_top_srcdir=$srcdir ;;
34929 *) # Relative name.
34930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34931 ac_top_srcdir=$ac_top_build_prefix$srcdir
34932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34939 # Check for guested configure; otherwise get Cygnus style configure.
34940 if test -f "$ac_srcdir/configure.gnu"; then
34941 ac_sub_configure=$ac_srcdir/configure.gnu
34942 elif test -f "$ac_srcdir/configure"; then
34943 ac_sub_configure=$ac_srcdir/configure
34944 elif test -f "$ac_srcdir/configure.in"; then
34945 # This should be Cygnus configure.
34946 ac_sub_configure=$ac_aux_dir/configure
34948 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34953 # The recursion is here.
34954 if test -n "$ac_sub_configure"; then
34955 # Make the cache file name correct relative to the subdirectory.
34956 case $cache_file in
34957 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34958 *) # Relative name.
34959 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34962 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34963 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34964 # The eval makes quoting arguments work.
34965 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34966 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34967 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34968 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34969 { (exit 1); exit 1; }; }